@marleena/trb-proto 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,420 @@
1
+ // source: moex/moex.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ goog.exportSymbol('proto.moex.contract.v1.DealingRequest', null, global);
27
+ goog.exportSymbol('proto.moex.contract.v1.DealingResponse', null, global);
28
+ /**
29
+ * Generated by JsPbCodeGenerator.
30
+ * @param {Array=} opt_data Optional initial data array, typically from a
31
+ * server response, or constructed directly in Javascript. The array is used
32
+ * in place and becomes part of the constructed object. It is not cloned.
33
+ * If no data is provided, the constructed object will be empty, but still
34
+ * valid.
35
+ * @extends {jspb.Message}
36
+ * @constructor
37
+ */
38
+ proto.moex.contract.v1.DealingRequest = function(opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
40
+ };
41
+ goog.inherits(proto.moex.contract.v1.DealingRequest, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.moex.contract.v1.DealingRequest.displayName = 'proto.moex.contract.v1.DealingRequest';
48
+ }
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.moex.contract.v1.DealingResponse = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
61
+ };
62
+ goog.inherits(proto.moex.contract.v1.DealingResponse, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.moex.contract.v1.DealingResponse.displayName = 'proto.moex.contract.v1.DealingResponse';
69
+ }
70
+
71
+
72
+
73
+ if (jspb.Message.GENERATE_TO_OBJECT) {
74
+ /**
75
+ * Creates an object representation of this proto.
76
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77
+ * Optional fields that are not set will be set to undefined.
78
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
79
+ * For the list of reserved names please see:
80
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
81
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
82
+ * JSPB instance for transitional soy proto support:
83
+ * http://goto/soy-param-migration
84
+ * @return {!Object}
85
+ */
86
+ proto.moex.contract.v1.DealingRequest.prototype.toObject = function(opt_includeInstance) {
87
+ return proto.moex.contract.v1.DealingRequest.toObject(opt_includeInstance, this);
88
+ };
89
+
90
+
91
+ /**
92
+ * Static version of the {@see toObject} method.
93
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
94
+ * the JSPB instance for transitional soy proto support:
95
+ * http://goto/soy-param-migration
96
+ * @param {!proto.moex.contract.v1.DealingRequest} msg The msg instance to transform.
97
+ * @return {!Object}
98
+ * @suppress {unusedLocalVariables} f is only used for nested messages
99
+ */
100
+ proto.moex.contract.v1.DealingRequest.toObject = function(includeInstance, msg) {
101
+ var f, obj = {
102
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
103
+ header: jspb.Message.getFieldWithDefault(msg, 2, ""),
104
+ logon: jspb.Message.getFieldWithDefault(msg, 3, ""),
105
+ instrument: jspb.Message.getFieldWithDefault(msg, 4, "")
106
+ };
107
+
108
+ if (includeInstance) {
109
+ obj.$jspbMessageInstance = msg;
110
+ }
111
+ return obj;
112
+ };
113
+ }
114
+
115
+
116
+ /**
117
+ * Deserializes binary data (in protobuf wire format).
118
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
119
+ * @return {!proto.moex.contract.v1.DealingRequest}
120
+ */
121
+ proto.moex.contract.v1.DealingRequest.deserializeBinary = function(bytes) {
122
+ var reader = new jspb.BinaryReader(bytes);
123
+ var msg = new proto.moex.contract.v1.DealingRequest;
124
+ return proto.moex.contract.v1.DealingRequest.deserializeBinaryFromReader(msg, reader);
125
+ };
126
+
127
+
128
+ /**
129
+ * Deserializes binary data (in protobuf wire format) from the
130
+ * given reader into the given message object.
131
+ * @param {!proto.moex.contract.v1.DealingRequest} msg The message object to deserialize into.
132
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
133
+ * @return {!proto.moex.contract.v1.DealingRequest}
134
+ */
135
+ proto.moex.contract.v1.DealingRequest.deserializeBinaryFromReader = function(msg, reader) {
136
+ while (reader.nextField()) {
137
+ if (reader.isEndGroup()) {
138
+ break;
139
+ }
140
+ var field = reader.getFieldNumber();
141
+ switch (field) {
142
+ case 1:
143
+ var value = /** @type {string} */ (reader.readString());
144
+ msg.setAddress(value);
145
+ break;
146
+ case 2:
147
+ var value = /** @type {string} */ (reader.readString());
148
+ msg.setHeader(value);
149
+ break;
150
+ case 3:
151
+ var value = /** @type {string} */ (reader.readString());
152
+ msg.setLogon(value);
153
+ break;
154
+ case 4:
155
+ var value = /** @type {string} */ (reader.readString());
156
+ msg.setInstrument(value);
157
+ break;
158
+ default:
159
+ reader.skipField();
160
+ break;
161
+ }
162
+ }
163
+ return msg;
164
+ };
165
+
166
+
167
+ /**
168
+ * Serializes the message to binary data (in protobuf wire format).
169
+ * @return {!Uint8Array}
170
+ */
171
+ proto.moex.contract.v1.DealingRequest.prototype.serializeBinary = function() {
172
+ var writer = new jspb.BinaryWriter();
173
+ proto.moex.contract.v1.DealingRequest.serializeBinaryToWriter(this, writer);
174
+ return writer.getResultBuffer();
175
+ };
176
+
177
+
178
+ /**
179
+ * Serializes the given message to binary data (in protobuf wire
180
+ * format), writing to the given BinaryWriter.
181
+ * @param {!proto.moex.contract.v1.DealingRequest} message
182
+ * @param {!jspb.BinaryWriter} writer
183
+ * @suppress {unusedLocalVariables} f is only used for nested messages
184
+ */
185
+ proto.moex.contract.v1.DealingRequest.serializeBinaryToWriter = function(message, writer) {
186
+ var f = undefined;
187
+ f = message.getAddress();
188
+ if (f.length > 0) {
189
+ writer.writeString(
190
+ 1,
191
+ f
192
+ );
193
+ }
194
+ f = message.getHeader();
195
+ if (f.length > 0) {
196
+ writer.writeString(
197
+ 2,
198
+ f
199
+ );
200
+ }
201
+ f = message.getLogon();
202
+ if (f.length > 0) {
203
+ writer.writeString(
204
+ 3,
205
+ f
206
+ );
207
+ }
208
+ f = message.getInstrument();
209
+ if (f.length > 0) {
210
+ writer.writeString(
211
+ 4,
212
+ f
213
+ );
214
+ }
215
+ };
216
+
217
+
218
+ /**
219
+ * optional string address = 1;
220
+ * @return {string}
221
+ */
222
+ proto.moex.contract.v1.DealingRequest.prototype.getAddress = function() {
223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
224
+ };
225
+
226
+
227
+ /**
228
+ * @param {string} value
229
+ * @return {!proto.moex.contract.v1.DealingRequest} returns this
230
+ */
231
+ proto.moex.contract.v1.DealingRequest.prototype.setAddress = function(value) {
232
+ return jspb.Message.setProto3StringField(this, 1, value);
233
+ };
234
+
235
+
236
+ /**
237
+ * optional string header = 2;
238
+ * @return {string}
239
+ */
240
+ proto.moex.contract.v1.DealingRequest.prototype.getHeader = function() {
241
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
242
+ };
243
+
244
+
245
+ /**
246
+ * @param {string} value
247
+ * @return {!proto.moex.contract.v1.DealingRequest} returns this
248
+ */
249
+ proto.moex.contract.v1.DealingRequest.prototype.setHeader = function(value) {
250
+ return jspb.Message.setProto3StringField(this, 2, value);
251
+ };
252
+
253
+
254
+ /**
255
+ * optional string logon = 3;
256
+ * @return {string}
257
+ */
258
+ proto.moex.contract.v1.DealingRequest.prototype.getLogon = function() {
259
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
260
+ };
261
+
262
+
263
+ /**
264
+ * @param {string} value
265
+ * @return {!proto.moex.contract.v1.DealingRequest} returns this
266
+ */
267
+ proto.moex.contract.v1.DealingRequest.prototype.setLogon = function(value) {
268
+ return jspb.Message.setProto3StringField(this, 3, value);
269
+ };
270
+
271
+
272
+ /**
273
+ * optional string instrument = 4;
274
+ * @return {string}
275
+ */
276
+ proto.moex.contract.v1.DealingRequest.prototype.getInstrument = function() {
277
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
278
+ };
279
+
280
+
281
+ /**
282
+ * @param {string} value
283
+ * @return {!proto.moex.contract.v1.DealingRequest} returns this
284
+ */
285
+ proto.moex.contract.v1.DealingRequest.prototype.setInstrument = function(value) {
286
+ return jspb.Message.setProto3StringField(this, 4, value);
287
+ };
288
+
289
+
290
+
291
+
292
+
293
+ if (jspb.Message.GENERATE_TO_OBJECT) {
294
+ /**
295
+ * Creates an object representation of this proto.
296
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
297
+ * Optional fields that are not set will be set to undefined.
298
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
299
+ * For the list of reserved names please see:
300
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
301
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
302
+ * JSPB instance for transitional soy proto support:
303
+ * http://goto/soy-param-migration
304
+ * @return {!Object}
305
+ */
306
+ proto.moex.contract.v1.DealingResponse.prototype.toObject = function(opt_includeInstance) {
307
+ return proto.moex.contract.v1.DealingResponse.toObject(opt_includeInstance, this);
308
+ };
309
+
310
+
311
+ /**
312
+ * Static version of the {@see toObject} method.
313
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
314
+ * the JSPB instance for transitional soy proto support:
315
+ * http://goto/soy-param-migration
316
+ * @param {!proto.moex.contract.v1.DealingResponse} msg The msg instance to transform.
317
+ * @return {!Object}
318
+ * @suppress {unusedLocalVariables} f is only used for nested messages
319
+ */
320
+ proto.moex.contract.v1.DealingResponse.toObject = function(includeInstance, msg) {
321
+ var f, obj = {
322
+ response: jspb.Message.getFieldWithDefault(msg, 1, "")
323
+ };
324
+
325
+ if (includeInstance) {
326
+ obj.$jspbMessageInstance = msg;
327
+ }
328
+ return obj;
329
+ };
330
+ }
331
+
332
+
333
+ /**
334
+ * Deserializes binary data (in protobuf wire format).
335
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
336
+ * @return {!proto.moex.contract.v1.DealingResponse}
337
+ */
338
+ proto.moex.contract.v1.DealingResponse.deserializeBinary = function(bytes) {
339
+ var reader = new jspb.BinaryReader(bytes);
340
+ var msg = new proto.moex.contract.v1.DealingResponse;
341
+ return proto.moex.contract.v1.DealingResponse.deserializeBinaryFromReader(msg, reader);
342
+ };
343
+
344
+
345
+ /**
346
+ * Deserializes binary data (in protobuf wire format) from the
347
+ * given reader into the given message object.
348
+ * @param {!proto.moex.contract.v1.DealingResponse} msg The message object to deserialize into.
349
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
350
+ * @return {!proto.moex.contract.v1.DealingResponse}
351
+ */
352
+ proto.moex.contract.v1.DealingResponse.deserializeBinaryFromReader = function(msg, reader) {
353
+ while (reader.nextField()) {
354
+ if (reader.isEndGroup()) {
355
+ break;
356
+ }
357
+ var field = reader.getFieldNumber();
358
+ switch (field) {
359
+ case 1:
360
+ var value = /** @type {string} */ (reader.readString());
361
+ msg.setResponse(value);
362
+ break;
363
+ default:
364
+ reader.skipField();
365
+ break;
366
+ }
367
+ }
368
+ return msg;
369
+ };
370
+
371
+
372
+ /**
373
+ * Serializes the message to binary data (in protobuf wire format).
374
+ * @return {!Uint8Array}
375
+ */
376
+ proto.moex.contract.v1.DealingResponse.prototype.serializeBinary = function() {
377
+ var writer = new jspb.BinaryWriter();
378
+ proto.moex.contract.v1.DealingResponse.serializeBinaryToWriter(this, writer);
379
+ return writer.getResultBuffer();
380
+ };
381
+
382
+
383
+ /**
384
+ * Serializes the given message to binary data (in protobuf wire
385
+ * format), writing to the given BinaryWriter.
386
+ * @param {!proto.moex.contract.v1.DealingResponse} message
387
+ * @param {!jspb.BinaryWriter} writer
388
+ * @suppress {unusedLocalVariables} f is only used for nested messages
389
+ */
390
+ proto.moex.contract.v1.DealingResponse.serializeBinaryToWriter = function(message, writer) {
391
+ var f = undefined;
392
+ f = message.getResponse();
393
+ if (f.length > 0) {
394
+ writer.writeString(
395
+ 1,
396
+ f
397
+ );
398
+ }
399
+ };
400
+
401
+
402
+ /**
403
+ * optional string Response = 1;
404
+ * @return {string}
405
+ */
406
+ proto.moex.contract.v1.DealingResponse.prototype.getResponse = function() {
407
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
408
+ };
409
+
410
+
411
+ /**
412
+ * @param {string} value
413
+ * @return {!proto.moex.contract.v1.DealingResponse} returns this
414
+ */
415
+ proto.moex.contract.v1.DealingResponse.prototype.setResponse = function(value) {
416
+ return jspb.Message.setProto3StringField(this, 1, value);
417
+ };
418
+
419
+
420
+ goog.object.extend(exports, proto.moex.contract.v1);