@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,2094 @@
1
+ // source: tinvest/common.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_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.BrandData', null, global);
27
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.ErrorDetail', null, global);
28
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.InstrumentStatus', null, global);
29
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.InstrumentType', null, global);
30
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.MoneyValue', null, global);
31
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.Page', null, global);
32
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.PageResponse', null, global);
33
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.Ping', null, global);
34
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings', null, global);
35
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.PingRequest', null, global);
36
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.PriceType', null, global);
37
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.Quotation', null, global);
38
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.RealExchange', null, global);
39
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata', null, global);
40
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.ResultSubscriptionStatus', null, global);
41
+ goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.SecurityTradingStatus', null, global);
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
+ };
55
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.MoneyValue, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.displayName = 'proto.tinkoff.public.invest.api.contract.v1.MoneyValue';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.tinkoff.public.invest.api.contract.v1.Quotation = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.Quotation, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.displayName = 'proto.tinkoff.public.invest.api.contract.v1.Quotation';
83
+ }
84
+ /**
85
+ * Generated by JsPbCodeGenerator.
86
+ * @param {Array=} opt_data Optional initial data array, typically from a
87
+ * server response, or constructed directly in Javascript. The array is used
88
+ * in place and becomes part of the constructed object. It is not cloned.
89
+ * If no data is provided, the constructed object will be empty, but still
90
+ * valid.
91
+ * @extends {jspb.Message}
92
+ * @constructor
93
+ */
94
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest = function(opt_data) {
95
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
96
+ };
97
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.PingRequest, jspb.Message);
98
+ if (goog.DEBUG && !COMPILED) {
99
+ /**
100
+ * @public
101
+ * @override
102
+ */
103
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.displayName = 'proto.tinkoff.public.invest.api.contract.v1.PingRequest';
104
+ }
105
+ /**
106
+ * Generated by JsPbCodeGenerator.
107
+ * @param {Array=} opt_data Optional initial data array, typically from a
108
+ * server response, or constructed directly in Javascript. The array is used
109
+ * in place and becomes part of the constructed object. It is not cloned.
110
+ * If no data is provided, the constructed object will be empty, but still
111
+ * valid.
112
+ * @extends {jspb.Message}
113
+ * @constructor
114
+ */
115
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings = function(opt_data) {
116
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
117
+ };
118
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings, jspb.Message);
119
+ if (goog.DEBUG && !COMPILED) {
120
+ /**
121
+ * @public
122
+ * @override
123
+ */
124
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.displayName = 'proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings';
125
+ }
126
+ /**
127
+ * Generated by JsPbCodeGenerator.
128
+ * @param {Array=} opt_data Optional initial data array, typically from a
129
+ * server response, or constructed directly in Javascript. The array is used
130
+ * in place and becomes part of the constructed object. It is not cloned.
131
+ * If no data is provided, the constructed object will be empty, but still
132
+ * valid.
133
+ * @extends {jspb.Message}
134
+ * @constructor
135
+ */
136
+ proto.tinkoff.public.invest.api.contract.v1.Ping = function(opt_data) {
137
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
138
+ };
139
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.Ping, jspb.Message);
140
+ if (goog.DEBUG && !COMPILED) {
141
+ /**
142
+ * @public
143
+ * @override
144
+ */
145
+ proto.tinkoff.public.invest.api.contract.v1.Ping.displayName = 'proto.tinkoff.public.invest.api.contract.v1.Ping';
146
+ }
147
+ /**
148
+ * Generated by JsPbCodeGenerator.
149
+ * @param {Array=} opt_data Optional initial data array, typically from a
150
+ * server response, or constructed directly in Javascript. The array is used
151
+ * in place and becomes part of the constructed object. It is not cloned.
152
+ * If no data is provided, the constructed object will be empty, but still
153
+ * valid.
154
+ * @extends {jspb.Message}
155
+ * @constructor
156
+ */
157
+ proto.tinkoff.public.invest.api.contract.v1.Page = function(opt_data) {
158
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
159
+ };
160
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.Page, jspb.Message);
161
+ if (goog.DEBUG && !COMPILED) {
162
+ /**
163
+ * @public
164
+ * @override
165
+ */
166
+ proto.tinkoff.public.invest.api.contract.v1.Page.displayName = 'proto.tinkoff.public.invest.api.contract.v1.Page';
167
+ }
168
+ /**
169
+ * Generated by JsPbCodeGenerator.
170
+ * @param {Array=} opt_data Optional initial data array, typically from a
171
+ * server response, or constructed directly in Javascript. The array is used
172
+ * in place and becomes part of the constructed object. It is not cloned.
173
+ * If no data is provided, the constructed object will be empty, but still
174
+ * valid.
175
+ * @extends {jspb.Message}
176
+ * @constructor
177
+ */
178
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse = function(opt_data) {
179
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
180
+ };
181
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.PageResponse, jspb.Message);
182
+ if (goog.DEBUG && !COMPILED) {
183
+ /**
184
+ * @public
185
+ * @override
186
+ */
187
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.displayName = 'proto.tinkoff.public.invest.api.contract.v1.PageResponse';
188
+ }
189
+ /**
190
+ * Generated by JsPbCodeGenerator.
191
+ * @param {Array=} opt_data Optional initial data array, typically from a
192
+ * server response, or constructed directly in Javascript. The array is used
193
+ * in place and becomes part of the constructed object. It is not cloned.
194
+ * If no data is provided, the constructed object will be empty, but still
195
+ * valid.
196
+ * @extends {jspb.Message}
197
+ * @constructor
198
+ */
199
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata = function(opt_data) {
200
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
201
+ };
202
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata, jspb.Message);
203
+ if (goog.DEBUG && !COMPILED) {
204
+ /**
205
+ * @public
206
+ * @override
207
+ */
208
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.displayName = 'proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata';
209
+ }
210
+ /**
211
+ * Generated by JsPbCodeGenerator.
212
+ * @param {Array=} opt_data Optional initial data array, typically from a
213
+ * server response, or constructed directly in Javascript. The array is used
214
+ * in place and becomes part of the constructed object. It is not cloned.
215
+ * If no data is provided, the constructed object will be empty, but still
216
+ * valid.
217
+ * @extends {jspb.Message}
218
+ * @constructor
219
+ */
220
+ proto.tinkoff.public.invest.api.contract.v1.BrandData = function(opt_data) {
221
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
222
+ };
223
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.BrandData, jspb.Message);
224
+ if (goog.DEBUG && !COMPILED) {
225
+ /**
226
+ * @public
227
+ * @override
228
+ */
229
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.displayName = 'proto.tinkoff.public.invest.api.contract.v1.BrandData';
230
+ }
231
+ /**
232
+ * Generated by JsPbCodeGenerator.
233
+ * @param {Array=} opt_data Optional initial data array, typically from a
234
+ * server response, or constructed directly in Javascript. The array is used
235
+ * in place and becomes part of the constructed object. It is not cloned.
236
+ * If no data is provided, the constructed object will be empty, but still
237
+ * valid.
238
+ * @extends {jspb.Message}
239
+ * @constructor
240
+ */
241
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail = function(opt_data) {
242
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
243
+ };
244
+ goog.inherits(proto.tinkoff.public.invest.api.contract.v1.ErrorDetail, jspb.Message);
245
+ if (goog.DEBUG && !COMPILED) {
246
+ /**
247
+ * @public
248
+ * @override
249
+ */
250
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.displayName = 'proto.tinkoff.public.invest.api.contract.v1.ErrorDetail';
251
+ }
252
+
253
+
254
+
255
+ if (jspb.Message.GENERATE_TO_OBJECT) {
256
+ /**
257
+ * Creates an object representation of this proto.
258
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
259
+ * Optional fields that are not set will be set to undefined.
260
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
261
+ * For the list of reserved names please see:
262
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
263
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
264
+ * JSPB instance for transitional soy proto support:
265
+ * http://goto/soy-param-migration
266
+ * @return {!Object}
267
+ */
268
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.toObject = function(opt_includeInstance) {
269
+ return proto.tinkoff.public.invest.api.contract.v1.MoneyValue.toObject(opt_includeInstance, this);
270
+ };
271
+
272
+
273
+ /**
274
+ * Static version of the {@see toObject} method.
275
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
276
+ * the JSPB instance for transitional soy proto support:
277
+ * http://goto/soy-param-migration
278
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue} msg The msg instance to transform.
279
+ * @return {!Object}
280
+ * @suppress {unusedLocalVariables} f is only used for nested messages
281
+ */
282
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.toObject = function(includeInstance, msg) {
283
+ var f, obj = {
284
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
285
+ units: jspb.Message.getFieldWithDefault(msg, 2, 0),
286
+ nano: jspb.Message.getFieldWithDefault(msg, 3, 0)
287
+ };
288
+
289
+ if (includeInstance) {
290
+ obj.$jspbMessageInstance = msg;
291
+ }
292
+ return obj;
293
+ };
294
+ }
295
+
296
+
297
+ /**
298
+ * Deserializes binary data (in protobuf wire format).
299
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
300
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue}
301
+ */
302
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.deserializeBinary = function(bytes) {
303
+ var reader = new jspb.BinaryReader(bytes);
304
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.MoneyValue;
305
+ return proto.tinkoff.public.invest.api.contract.v1.MoneyValue.deserializeBinaryFromReader(msg, reader);
306
+ };
307
+
308
+
309
+ /**
310
+ * Deserializes binary data (in protobuf wire format) from the
311
+ * given reader into the given message object.
312
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue} msg The message object to deserialize into.
313
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
314
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue}
315
+ */
316
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.deserializeBinaryFromReader = function(msg, reader) {
317
+ while (reader.nextField()) {
318
+ if (reader.isEndGroup()) {
319
+ break;
320
+ }
321
+ var field = reader.getFieldNumber();
322
+ switch (field) {
323
+ case 1:
324
+ var value = /** @type {string} */ (reader.readString());
325
+ msg.setCurrency(value);
326
+ break;
327
+ case 2:
328
+ var value = /** @type {number} */ (reader.readInt64());
329
+ msg.setUnits(value);
330
+ break;
331
+ case 3:
332
+ var value = /** @type {number} */ (reader.readInt32());
333
+ msg.setNano(value);
334
+ break;
335
+ default:
336
+ reader.skipField();
337
+ break;
338
+ }
339
+ }
340
+ return msg;
341
+ };
342
+
343
+
344
+ /**
345
+ * Serializes the message to binary data (in protobuf wire format).
346
+ * @return {!Uint8Array}
347
+ */
348
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.serializeBinary = function() {
349
+ var writer = new jspb.BinaryWriter();
350
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.serializeBinaryToWriter(this, writer);
351
+ return writer.getResultBuffer();
352
+ };
353
+
354
+
355
+ /**
356
+ * Serializes the given message to binary data (in protobuf wire
357
+ * format), writing to the given BinaryWriter.
358
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue} message
359
+ * @param {!jspb.BinaryWriter} writer
360
+ * @suppress {unusedLocalVariables} f is only used for nested messages
361
+ */
362
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.serializeBinaryToWriter = function(message, writer) {
363
+ var f = undefined;
364
+ f = message.getCurrency();
365
+ if (f.length > 0) {
366
+ writer.writeString(
367
+ 1,
368
+ f
369
+ );
370
+ }
371
+ f = message.getUnits();
372
+ if (f !== 0) {
373
+ writer.writeInt64(
374
+ 2,
375
+ f
376
+ );
377
+ }
378
+ f = message.getNano();
379
+ if (f !== 0) {
380
+ writer.writeInt32(
381
+ 3,
382
+ f
383
+ );
384
+ }
385
+ };
386
+
387
+
388
+ /**
389
+ * optional string currency = 1;
390
+ * @return {string}
391
+ */
392
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.getCurrency = function() {
393
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
394
+ };
395
+
396
+
397
+ /**
398
+ * @param {string} value
399
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue} returns this
400
+ */
401
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.setCurrency = function(value) {
402
+ return jspb.Message.setProto3StringField(this, 1, value);
403
+ };
404
+
405
+
406
+ /**
407
+ * optional int64 units = 2;
408
+ * @return {number}
409
+ */
410
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.getUnits = function() {
411
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
412
+ };
413
+
414
+
415
+ /**
416
+ * @param {number} value
417
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue} returns this
418
+ */
419
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.setUnits = function(value) {
420
+ return jspb.Message.setProto3IntField(this, 2, value);
421
+ };
422
+
423
+
424
+ /**
425
+ * optional int32 nano = 3;
426
+ * @return {number}
427
+ */
428
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.getNano = function() {
429
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
430
+ };
431
+
432
+
433
+ /**
434
+ * @param {number} value
435
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.MoneyValue} returns this
436
+ */
437
+ proto.tinkoff.public.invest.api.contract.v1.MoneyValue.prototype.setNano = function(value) {
438
+ return jspb.Message.setProto3IntField(this, 3, value);
439
+ };
440
+
441
+
442
+
443
+
444
+
445
+ if (jspb.Message.GENERATE_TO_OBJECT) {
446
+ /**
447
+ * Creates an object representation of this proto.
448
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
449
+ * Optional fields that are not set will be set to undefined.
450
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
451
+ * For the list of reserved names please see:
452
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
453
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
454
+ * JSPB instance for transitional soy proto support:
455
+ * http://goto/soy-param-migration
456
+ * @return {!Object}
457
+ */
458
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.prototype.toObject = function(opt_includeInstance) {
459
+ return proto.tinkoff.public.invest.api.contract.v1.Quotation.toObject(opt_includeInstance, this);
460
+ };
461
+
462
+
463
+ /**
464
+ * Static version of the {@see toObject} method.
465
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
466
+ * the JSPB instance for transitional soy proto support:
467
+ * http://goto/soy-param-migration
468
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Quotation} msg The msg instance to transform.
469
+ * @return {!Object}
470
+ * @suppress {unusedLocalVariables} f is only used for nested messages
471
+ */
472
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.toObject = function(includeInstance, msg) {
473
+ var f, obj = {
474
+ units: jspb.Message.getFieldWithDefault(msg, 1, 0),
475
+ nano: jspb.Message.getFieldWithDefault(msg, 2, 0)
476
+ };
477
+
478
+ if (includeInstance) {
479
+ obj.$jspbMessageInstance = msg;
480
+ }
481
+ return obj;
482
+ };
483
+ }
484
+
485
+
486
+ /**
487
+ * Deserializes binary data (in protobuf wire format).
488
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
489
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Quotation}
490
+ */
491
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.deserializeBinary = function(bytes) {
492
+ var reader = new jspb.BinaryReader(bytes);
493
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.Quotation;
494
+ return proto.tinkoff.public.invest.api.contract.v1.Quotation.deserializeBinaryFromReader(msg, reader);
495
+ };
496
+
497
+
498
+ /**
499
+ * Deserializes binary data (in protobuf wire format) from the
500
+ * given reader into the given message object.
501
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Quotation} msg The message object to deserialize into.
502
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
503
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Quotation}
504
+ */
505
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.deserializeBinaryFromReader = function(msg, reader) {
506
+ while (reader.nextField()) {
507
+ if (reader.isEndGroup()) {
508
+ break;
509
+ }
510
+ var field = reader.getFieldNumber();
511
+ switch (field) {
512
+ case 1:
513
+ var value = /** @type {number} */ (reader.readInt64());
514
+ msg.setUnits(value);
515
+ break;
516
+ case 2:
517
+ var value = /** @type {number} */ (reader.readInt32());
518
+ msg.setNano(value);
519
+ break;
520
+ default:
521
+ reader.skipField();
522
+ break;
523
+ }
524
+ }
525
+ return msg;
526
+ };
527
+
528
+
529
+ /**
530
+ * Serializes the message to binary data (in protobuf wire format).
531
+ * @return {!Uint8Array}
532
+ */
533
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.prototype.serializeBinary = function() {
534
+ var writer = new jspb.BinaryWriter();
535
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.serializeBinaryToWriter(this, writer);
536
+ return writer.getResultBuffer();
537
+ };
538
+
539
+
540
+ /**
541
+ * Serializes the given message to binary data (in protobuf wire
542
+ * format), writing to the given BinaryWriter.
543
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Quotation} message
544
+ * @param {!jspb.BinaryWriter} writer
545
+ * @suppress {unusedLocalVariables} f is only used for nested messages
546
+ */
547
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.serializeBinaryToWriter = function(message, writer) {
548
+ var f = undefined;
549
+ f = message.getUnits();
550
+ if (f !== 0) {
551
+ writer.writeInt64(
552
+ 1,
553
+ f
554
+ );
555
+ }
556
+ f = message.getNano();
557
+ if (f !== 0) {
558
+ writer.writeInt32(
559
+ 2,
560
+ f
561
+ );
562
+ }
563
+ };
564
+
565
+
566
+ /**
567
+ * optional int64 units = 1;
568
+ * @return {number}
569
+ */
570
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.prototype.getUnits = function() {
571
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
572
+ };
573
+
574
+
575
+ /**
576
+ * @param {number} value
577
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Quotation} returns this
578
+ */
579
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.prototype.setUnits = function(value) {
580
+ return jspb.Message.setProto3IntField(this, 1, value);
581
+ };
582
+
583
+
584
+ /**
585
+ * optional int32 nano = 2;
586
+ * @return {number}
587
+ */
588
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.prototype.getNano = function() {
589
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
590
+ };
591
+
592
+
593
+ /**
594
+ * @param {number} value
595
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Quotation} returns this
596
+ */
597
+ proto.tinkoff.public.invest.api.contract.v1.Quotation.prototype.setNano = function(value) {
598
+ return jspb.Message.setProto3IntField(this, 2, value);
599
+ };
600
+
601
+
602
+
603
+
604
+
605
+ if (jspb.Message.GENERATE_TO_OBJECT) {
606
+ /**
607
+ * Creates an object representation of this proto.
608
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
609
+ * Optional fields that are not set will be set to undefined.
610
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
611
+ * For the list of reserved names please see:
612
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
613
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
614
+ * JSPB instance for transitional soy proto support:
615
+ * http://goto/soy-param-migration
616
+ * @return {!Object}
617
+ */
618
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.prototype.toObject = function(opt_includeInstance) {
619
+ return proto.tinkoff.public.invest.api.contract.v1.PingRequest.toObject(opt_includeInstance, this);
620
+ };
621
+
622
+
623
+ /**
624
+ * Static version of the {@see toObject} method.
625
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
626
+ * the JSPB instance for transitional soy proto support:
627
+ * http://goto/soy-param-migration
628
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PingRequest} msg The msg instance to transform.
629
+ * @return {!Object}
630
+ * @suppress {unusedLocalVariables} f is only used for nested messages
631
+ */
632
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.toObject = function(includeInstance, msg) {
633
+ var f, obj = {
634
+ time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
635
+ };
636
+
637
+ if (includeInstance) {
638
+ obj.$jspbMessageInstance = msg;
639
+ }
640
+ return obj;
641
+ };
642
+ }
643
+
644
+
645
+ /**
646
+ * Deserializes binary data (in protobuf wire format).
647
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
648
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingRequest}
649
+ */
650
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.deserializeBinary = function(bytes) {
651
+ var reader = new jspb.BinaryReader(bytes);
652
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.PingRequest;
653
+ return proto.tinkoff.public.invest.api.contract.v1.PingRequest.deserializeBinaryFromReader(msg, reader);
654
+ };
655
+
656
+
657
+ /**
658
+ * Deserializes binary data (in protobuf wire format) from the
659
+ * given reader into the given message object.
660
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PingRequest} msg The message object to deserialize into.
661
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
662
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingRequest}
663
+ */
664
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
665
+ while (reader.nextField()) {
666
+ if (reader.isEndGroup()) {
667
+ break;
668
+ }
669
+ var field = reader.getFieldNumber();
670
+ switch (field) {
671
+ case 1:
672
+ var value = new google_protobuf_timestamp_pb.Timestamp;
673
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
674
+ msg.setTime(value);
675
+ break;
676
+ default:
677
+ reader.skipField();
678
+ break;
679
+ }
680
+ }
681
+ return msg;
682
+ };
683
+
684
+
685
+ /**
686
+ * Serializes the message to binary data (in protobuf wire format).
687
+ * @return {!Uint8Array}
688
+ */
689
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.prototype.serializeBinary = function() {
690
+ var writer = new jspb.BinaryWriter();
691
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.serializeBinaryToWriter(this, writer);
692
+ return writer.getResultBuffer();
693
+ };
694
+
695
+
696
+ /**
697
+ * Serializes the given message to binary data (in protobuf wire
698
+ * format), writing to the given BinaryWriter.
699
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PingRequest} message
700
+ * @param {!jspb.BinaryWriter} writer
701
+ * @suppress {unusedLocalVariables} f is only used for nested messages
702
+ */
703
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.serializeBinaryToWriter = function(message, writer) {
704
+ var f = undefined;
705
+ f = message.getTime();
706
+ if (f != null) {
707
+ writer.writeMessage(
708
+ 1,
709
+ f,
710
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
711
+ );
712
+ }
713
+ };
714
+
715
+
716
+ /**
717
+ * optional google.protobuf.Timestamp time = 1;
718
+ * @return {?proto.google.protobuf.Timestamp}
719
+ */
720
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.prototype.getTime = function() {
721
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
722
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
723
+ };
724
+
725
+
726
+ /**
727
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
728
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingRequest} returns this
729
+ */
730
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.prototype.setTime = function(value) {
731
+ return jspb.Message.setWrapperField(this, 1, value);
732
+ };
733
+
734
+
735
+ /**
736
+ * Clears the message field making it undefined.
737
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingRequest} returns this
738
+ */
739
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.prototype.clearTime = function() {
740
+ return this.setTime(undefined);
741
+ };
742
+
743
+
744
+ /**
745
+ * Returns whether this field is set.
746
+ * @return {boolean}
747
+ */
748
+ proto.tinkoff.public.invest.api.contract.v1.PingRequest.prototype.hasTime = function() {
749
+ return jspb.Message.getField(this, 1) != null;
750
+ };
751
+
752
+
753
+
754
+
755
+
756
+ if (jspb.Message.GENERATE_TO_OBJECT) {
757
+ /**
758
+ * Creates an object representation of this proto.
759
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
760
+ * Optional fields that are not set will be set to undefined.
761
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
762
+ * For the list of reserved names please see:
763
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
764
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
765
+ * JSPB instance for transitional soy proto support:
766
+ * http://goto/soy-param-migration
767
+ * @return {!Object}
768
+ */
769
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.prototype.toObject = function(opt_includeInstance) {
770
+ return proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.toObject(opt_includeInstance, this);
771
+ };
772
+
773
+
774
+ /**
775
+ * Static version of the {@see toObject} method.
776
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
777
+ * the JSPB instance for transitional soy proto support:
778
+ * http://goto/soy-param-migration
779
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings} msg The msg instance to transform.
780
+ * @return {!Object}
781
+ * @suppress {unusedLocalVariables} f is only used for nested messages
782
+ */
783
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.toObject = function(includeInstance, msg) {
784
+ var f, obj = {
785
+ pingDelayMs: (f = jspb.Message.getField(msg, 15)) == null ? undefined : f
786
+ };
787
+
788
+ if (includeInstance) {
789
+ obj.$jspbMessageInstance = msg;
790
+ }
791
+ return obj;
792
+ };
793
+ }
794
+
795
+
796
+ /**
797
+ * Deserializes binary data (in protobuf wire format).
798
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
799
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings}
800
+ */
801
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.deserializeBinary = function(bytes) {
802
+ var reader = new jspb.BinaryReader(bytes);
803
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings;
804
+ return proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.deserializeBinaryFromReader(msg, reader);
805
+ };
806
+
807
+
808
+ /**
809
+ * Deserializes binary data (in protobuf wire format) from the
810
+ * given reader into the given message object.
811
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings} msg The message object to deserialize into.
812
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
813
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings}
814
+ */
815
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.deserializeBinaryFromReader = function(msg, reader) {
816
+ while (reader.nextField()) {
817
+ if (reader.isEndGroup()) {
818
+ break;
819
+ }
820
+ var field = reader.getFieldNumber();
821
+ switch (field) {
822
+ case 15:
823
+ var value = /** @type {number} */ (reader.readInt32());
824
+ msg.setPingDelayMs(value);
825
+ break;
826
+ default:
827
+ reader.skipField();
828
+ break;
829
+ }
830
+ }
831
+ return msg;
832
+ };
833
+
834
+
835
+ /**
836
+ * Serializes the message to binary data (in protobuf wire format).
837
+ * @return {!Uint8Array}
838
+ */
839
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.prototype.serializeBinary = function() {
840
+ var writer = new jspb.BinaryWriter();
841
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.serializeBinaryToWriter(this, writer);
842
+ return writer.getResultBuffer();
843
+ };
844
+
845
+
846
+ /**
847
+ * Serializes the given message to binary data (in protobuf wire
848
+ * format), writing to the given BinaryWriter.
849
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings} message
850
+ * @param {!jspb.BinaryWriter} writer
851
+ * @suppress {unusedLocalVariables} f is only used for nested messages
852
+ */
853
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.serializeBinaryToWriter = function(message, writer) {
854
+ var f = undefined;
855
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
856
+ if (f != null) {
857
+ writer.writeInt32(
858
+ 15,
859
+ f
860
+ );
861
+ }
862
+ };
863
+
864
+
865
+ /**
866
+ * optional int32 ping_delay_ms = 15;
867
+ * @return {number}
868
+ */
869
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.prototype.getPingDelayMs = function() {
870
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
871
+ };
872
+
873
+
874
+ /**
875
+ * @param {number} value
876
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings} returns this
877
+ */
878
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.prototype.setPingDelayMs = function(value) {
879
+ return jspb.Message.setField(this, 15, value);
880
+ };
881
+
882
+
883
+ /**
884
+ * Clears the field making it undefined.
885
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings} returns this
886
+ */
887
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.prototype.clearPingDelayMs = function() {
888
+ return jspb.Message.setField(this, 15, undefined);
889
+ };
890
+
891
+
892
+ /**
893
+ * Returns whether this field is set.
894
+ * @return {boolean}
895
+ */
896
+ proto.tinkoff.public.invest.api.contract.v1.PingDelaySettings.prototype.hasPingDelayMs = function() {
897
+ return jspb.Message.getField(this, 15) != null;
898
+ };
899
+
900
+
901
+
902
+
903
+
904
+ if (jspb.Message.GENERATE_TO_OBJECT) {
905
+ /**
906
+ * Creates an object representation of this proto.
907
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
908
+ * Optional fields that are not set will be set to undefined.
909
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
910
+ * For the list of reserved names please see:
911
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
912
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
913
+ * JSPB instance for transitional soy proto support:
914
+ * http://goto/soy-param-migration
915
+ * @return {!Object}
916
+ */
917
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.toObject = function(opt_includeInstance) {
918
+ return proto.tinkoff.public.invest.api.contract.v1.Ping.toObject(opt_includeInstance, this);
919
+ };
920
+
921
+
922
+ /**
923
+ * Static version of the {@see toObject} method.
924
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
925
+ * the JSPB instance for transitional soy proto support:
926
+ * http://goto/soy-param-migration
927
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Ping} msg The msg instance to transform.
928
+ * @return {!Object}
929
+ * @suppress {unusedLocalVariables} f is only used for nested messages
930
+ */
931
+ proto.tinkoff.public.invest.api.contract.v1.Ping.toObject = function(includeInstance, msg) {
932
+ var f, obj = {
933
+ time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
934
+ streamId: jspb.Message.getFieldWithDefault(msg, 2, ""),
935
+ pingRequestTime: (f = msg.getPingRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
936
+ };
937
+
938
+ if (includeInstance) {
939
+ obj.$jspbMessageInstance = msg;
940
+ }
941
+ return obj;
942
+ };
943
+ }
944
+
945
+
946
+ /**
947
+ * Deserializes binary data (in protobuf wire format).
948
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
949
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Ping}
950
+ */
951
+ proto.tinkoff.public.invest.api.contract.v1.Ping.deserializeBinary = function(bytes) {
952
+ var reader = new jspb.BinaryReader(bytes);
953
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.Ping;
954
+ return proto.tinkoff.public.invest.api.contract.v1.Ping.deserializeBinaryFromReader(msg, reader);
955
+ };
956
+
957
+
958
+ /**
959
+ * Deserializes binary data (in protobuf wire format) from the
960
+ * given reader into the given message object.
961
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Ping} msg The message object to deserialize into.
962
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
963
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Ping}
964
+ */
965
+ proto.tinkoff.public.invest.api.contract.v1.Ping.deserializeBinaryFromReader = function(msg, reader) {
966
+ while (reader.nextField()) {
967
+ if (reader.isEndGroup()) {
968
+ break;
969
+ }
970
+ var field = reader.getFieldNumber();
971
+ switch (field) {
972
+ case 1:
973
+ var value = new google_protobuf_timestamp_pb.Timestamp;
974
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
975
+ msg.setTime(value);
976
+ break;
977
+ case 2:
978
+ var value = /** @type {string} */ (reader.readString());
979
+ msg.setStreamId(value);
980
+ break;
981
+ case 4:
982
+ var value = new google_protobuf_timestamp_pb.Timestamp;
983
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
984
+ msg.setPingRequestTime(value);
985
+ break;
986
+ default:
987
+ reader.skipField();
988
+ break;
989
+ }
990
+ }
991
+ return msg;
992
+ };
993
+
994
+
995
+ /**
996
+ * Serializes the message to binary data (in protobuf wire format).
997
+ * @return {!Uint8Array}
998
+ */
999
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.serializeBinary = function() {
1000
+ var writer = new jspb.BinaryWriter();
1001
+ proto.tinkoff.public.invest.api.contract.v1.Ping.serializeBinaryToWriter(this, writer);
1002
+ return writer.getResultBuffer();
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * Serializes the given message to binary data (in protobuf wire
1008
+ * format), writing to the given BinaryWriter.
1009
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Ping} message
1010
+ * @param {!jspb.BinaryWriter} writer
1011
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1012
+ */
1013
+ proto.tinkoff.public.invest.api.contract.v1.Ping.serializeBinaryToWriter = function(message, writer) {
1014
+ var f = undefined;
1015
+ f = message.getTime();
1016
+ if (f != null) {
1017
+ writer.writeMessage(
1018
+ 1,
1019
+ f,
1020
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1021
+ );
1022
+ }
1023
+ f = message.getStreamId();
1024
+ if (f.length > 0) {
1025
+ writer.writeString(
1026
+ 2,
1027
+ f
1028
+ );
1029
+ }
1030
+ f = message.getPingRequestTime();
1031
+ if (f != null) {
1032
+ writer.writeMessage(
1033
+ 4,
1034
+ f,
1035
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1036
+ );
1037
+ }
1038
+ };
1039
+
1040
+
1041
+ /**
1042
+ * optional google.protobuf.Timestamp time = 1;
1043
+ * @return {?proto.google.protobuf.Timestamp}
1044
+ */
1045
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.getTime = function() {
1046
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1047
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1053
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Ping} returns this
1054
+ */
1055
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.setTime = function(value) {
1056
+ return jspb.Message.setWrapperField(this, 1, value);
1057
+ };
1058
+
1059
+
1060
+ /**
1061
+ * Clears the message field making it undefined.
1062
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Ping} returns this
1063
+ */
1064
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.clearTime = function() {
1065
+ return this.setTime(undefined);
1066
+ };
1067
+
1068
+
1069
+ /**
1070
+ * Returns whether this field is set.
1071
+ * @return {boolean}
1072
+ */
1073
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.hasTime = function() {
1074
+ return jspb.Message.getField(this, 1) != null;
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * optional string stream_id = 2;
1080
+ * @return {string}
1081
+ */
1082
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.getStreamId = function() {
1083
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * @param {string} value
1089
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Ping} returns this
1090
+ */
1091
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.setStreamId = function(value) {
1092
+ return jspb.Message.setProto3StringField(this, 2, value);
1093
+ };
1094
+
1095
+
1096
+ /**
1097
+ * optional google.protobuf.Timestamp ping_request_time = 4;
1098
+ * @return {?proto.google.protobuf.Timestamp}
1099
+ */
1100
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.getPingRequestTime = function() {
1101
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1102
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1108
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Ping} returns this
1109
+ */
1110
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.setPingRequestTime = function(value) {
1111
+ return jspb.Message.setWrapperField(this, 4, value);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * Clears the message field making it undefined.
1117
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Ping} returns this
1118
+ */
1119
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.clearPingRequestTime = function() {
1120
+ return this.setPingRequestTime(undefined);
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * Returns whether this field is set.
1126
+ * @return {boolean}
1127
+ */
1128
+ proto.tinkoff.public.invest.api.contract.v1.Ping.prototype.hasPingRequestTime = function() {
1129
+ return jspb.Message.getField(this, 4) != null;
1130
+ };
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1137
+ /**
1138
+ * Creates an object representation of this proto.
1139
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1140
+ * Optional fields that are not set will be set to undefined.
1141
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1142
+ * For the list of reserved names please see:
1143
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1144
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1145
+ * JSPB instance for transitional soy proto support:
1146
+ * http://goto/soy-param-migration
1147
+ * @return {!Object}
1148
+ */
1149
+ proto.tinkoff.public.invest.api.contract.v1.Page.prototype.toObject = function(opt_includeInstance) {
1150
+ return proto.tinkoff.public.invest.api.contract.v1.Page.toObject(opt_includeInstance, this);
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * Static version of the {@see toObject} method.
1156
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1157
+ * the JSPB instance for transitional soy proto support:
1158
+ * http://goto/soy-param-migration
1159
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Page} msg The msg instance to transform.
1160
+ * @return {!Object}
1161
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1162
+ */
1163
+ proto.tinkoff.public.invest.api.contract.v1.Page.toObject = function(includeInstance, msg) {
1164
+ var f, obj = {
1165
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1166
+ pageNumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
1167
+ };
1168
+
1169
+ if (includeInstance) {
1170
+ obj.$jspbMessageInstance = msg;
1171
+ }
1172
+ return obj;
1173
+ };
1174
+ }
1175
+
1176
+
1177
+ /**
1178
+ * Deserializes binary data (in protobuf wire format).
1179
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1180
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Page}
1181
+ */
1182
+ proto.tinkoff.public.invest.api.contract.v1.Page.deserializeBinary = function(bytes) {
1183
+ var reader = new jspb.BinaryReader(bytes);
1184
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.Page;
1185
+ return proto.tinkoff.public.invest.api.contract.v1.Page.deserializeBinaryFromReader(msg, reader);
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * Deserializes binary data (in protobuf wire format) from the
1191
+ * given reader into the given message object.
1192
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Page} msg The message object to deserialize into.
1193
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1194
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Page}
1195
+ */
1196
+ proto.tinkoff.public.invest.api.contract.v1.Page.deserializeBinaryFromReader = function(msg, reader) {
1197
+ while (reader.nextField()) {
1198
+ if (reader.isEndGroup()) {
1199
+ break;
1200
+ }
1201
+ var field = reader.getFieldNumber();
1202
+ switch (field) {
1203
+ case 1:
1204
+ var value = /** @type {number} */ (reader.readInt32());
1205
+ msg.setLimit(value);
1206
+ break;
1207
+ case 2:
1208
+ var value = /** @type {number} */ (reader.readInt32());
1209
+ msg.setPageNumber(value);
1210
+ break;
1211
+ default:
1212
+ reader.skipField();
1213
+ break;
1214
+ }
1215
+ }
1216
+ return msg;
1217
+ };
1218
+
1219
+
1220
+ /**
1221
+ * Serializes the message to binary data (in protobuf wire format).
1222
+ * @return {!Uint8Array}
1223
+ */
1224
+ proto.tinkoff.public.invest.api.contract.v1.Page.prototype.serializeBinary = function() {
1225
+ var writer = new jspb.BinaryWriter();
1226
+ proto.tinkoff.public.invest.api.contract.v1.Page.serializeBinaryToWriter(this, writer);
1227
+ return writer.getResultBuffer();
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Serializes the given message to binary data (in protobuf wire
1233
+ * format), writing to the given BinaryWriter.
1234
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.Page} message
1235
+ * @param {!jspb.BinaryWriter} writer
1236
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1237
+ */
1238
+ proto.tinkoff.public.invest.api.contract.v1.Page.serializeBinaryToWriter = function(message, writer) {
1239
+ var f = undefined;
1240
+ f = message.getLimit();
1241
+ if (f !== 0) {
1242
+ writer.writeInt32(
1243
+ 1,
1244
+ f
1245
+ );
1246
+ }
1247
+ f = message.getPageNumber();
1248
+ if (f !== 0) {
1249
+ writer.writeInt32(
1250
+ 2,
1251
+ f
1252
+ );
1253
+ }
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * optional int32 limit = 1;
1259
+ * @return {number}
1260
+ */
1261
+ proto.tinkoff.public.invest.api.contract.v1.Page.prototype.getLimit = function() {
1262
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * @param {number} value
1268
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Page} returns this
1269
+ */
1270
+ proto.tinkoff.public.invest.api.contract.v1.Page.prototype.setLimit = function(value) {
1271
+ return jspb.Message.setProto3IntField(this, 1, value);
1272
+ };
1273
+
1274
+
1275
+ /**
1276
+ * optional int32 page_number = 2;
1277
+ * @return {number}
1278
+ */
1279
+ proto.tinkoff.public.invest.api.contract.v1.Page.prototype.getPageNumber = function() {
1280
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * @param {number} value
1286
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.Page} returns this
1287
+ */
1288
+ proto.tinkoff.public.invest.api.contract.v1.Page.prototype.setPageNumber = function(value) {
1289
+ return jspb.Message.setProto3IntField(this, 2, value);
1290
+ };
1291
+
1292
+
1293
+
1294
+
1295
+
1296
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1297
+ /**
1298
+ * Creates an object representation of this proto.
1299
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1300
+ * Optional fields that are not set will be set to undefined.
1301
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1302
+ * For the list of reserved names please see:
1303
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1304
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1305
+ * JSPB instance for transitional soy proto support:
1306
+ * http://goto/soy-param-migration
1307
+ * @return {!Object}
1308
+ */
1309
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.toObject = function(opt_includeInstance) {
1310
+ return proto.tinkoff.public.invest.api.contract.v1.PageResponse.toObject(opt_includeInstance, this);
1311
+ };
1312
+
1313
+
1314
+ /**
1315
+ * Static version of the {@see toObject} method.
1316
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1317
+ * the JSPB instance for transitional soy proto support:
1318
+ * http://goto/soy-param-migration
1319
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PageResponse} msg The msg instance to transform.
1320
+ * @return {!Object}
1321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1322
+ */
1323
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.toObject = function(includeInstance, msg) {
1324
+ var f, obj = {
1325
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1326
+ pageNumber: jspb.Message.getFieldWithDefault(msg, 2, 0),
1327
+ totalCount: jspb.Message.getFieldWithDefault(msg, 3, 0)
1328
+ };
1329
+
1330
+ if (includeInstance) {
1331
+ obj.$jspbMessageInstance = msg;
1332
+ }
1333
+ return obj;
1334
+ };
1335
+ }
1336
+
1337
+
1338
+ /**
1339
+ * Deserializes binary data (in protobuf wire format).
1340
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1341
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PageResponse}
1342
+ */
1343
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.deserializeBinary = function(bytes) {
1344
+ var reader = new jspb.BinaryReader(bytes);
1345
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.PageResponse;
1346
+ return proto.tinkoff.public.invest.api.contract.v1.PageResponse.deserializeBinaryFromReader(msg, reader);
1347
+ };
1348
+
1349
+
1350
+ /**
1351
+ * Deserializes binary data (in protobuf wire format) from the
1352
+ * given reader into the given message object.
1353
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PageResponse} msg The message object to deserialize into.
1354
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1355
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PageResponse}
1356
+ */
1357
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.deserializeBinaryFromReader = function(msg, reader) {
1358
+ while (reader.nextField()) {
1359
+ if (reader.isEndGroup()) {
1360
+ break;
1361
+ }
1362
+ var field = reader.getFieldNumber();
1363
+ switch (field) {
1364
+ case 1:
1365
+ var value = /** @type {number} */ (reader.readInt32());
1366
+ msg.setLimit(value);
1367
+ break;
1368
+ case 2:
1369
+ var value = /** @type {number} */ (reader.readInt32());
1370
+ msg.setPageNumber(value);
1371
+ break;
1372
+ case 3:
1373
+ var value = /** @type {number} */ (reader.readInt32());
1374
+ msg.setTotalCount(value);
1375
+ break;
1376
+ default:
1377
+ reader.skipField();
1378
+ break;
1379
+ }
1380
+ }
1381
+ return msg;
1382
+ };
1383
+
1384
+
1385
+ /**
1386
+ * Serializes the message to binary data (in protobuf wire format).
1387
+ * @return {!Uint8Array}
1388
+ */
1389
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.serializeBinary = function() {
1390
+ var writer = new jspb.BinaryWriter();
1391
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.serializeBinaryToWriter(this, writer);
1392
+ return writer.getResultBuffer();
1393
+ };
1394
+
1395
+
1396
+ /**
1397
+ * Serializes the given message to binary data (in protobuf wire
1398
+ * format), writing to the given BinaryWriter.
1399
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.PageResponse} message
1400
+ * @param {!jspb.BinaryWriter} writer
1401
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1402
+ */
1403
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.serializeBinaryToWriter = function(message, writer) {
1404
+ var f = undefined;
1405
+ f = message.getLimit();
1406
+ if (f !== 0) {
1407
+ writer.writeInt32(
1408
+ 1,
1409
+ f
1410
+ );
1411
+ }
1412
+ f = message.getPageNumber();
1413
+ if (f !== 0) {
1414
+ writer.writeInt32(
1415
+ 2,
1416
+ f
1417
+ );
1418
+ }
1419
+ f = message.getTotalCount();
1420
+ if (f !== 0) {
1421
+ writer.writeInt32(
1422
+ 3,
1423
+ f
1424
+ );
1425
+ }
1426
+ };
1427
+
1428
+
1429
+ /**
1430
+ * optional int32 limit = 1;
1431
+ * @return {number}
1432
+ */
1433
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.getLimit = function() {
1434
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1435
+ };
1436
+
1437
+
1438
+ /**
1439
+ * @param {number} value
1440
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PageResponse} returns this
1441
+ */
1442
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.setLimit = function(value) {
1443
+ return jspb.Message.setProto3IntField(this, 1, value);
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * optional int32 page_number = 2;
1449
+ * @return {number}
1450
+ */
1451
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.getPageNumber = function() {
1452
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1453
+ };
1454
+
1455
+
1456
+ /**
1457
+ * @param {number} value
1458
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PageResponse} returns this
1459
+ */
1460
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.setPageNumber = function(value) {
1461
+ return jspb.Message.setProto3IntField(this, 2, value);
1462
+ };
1463
+
1464
+
1465
+ /**
1466
+ * optional int32 total_count = 3;
1467
+ * @return {number}
1468
+ */
1469
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.getTotalCount = function() {
1470
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * @param {number} value
1476
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.PageResponse} returns this
1477
+ */
1478
+ proto.tinkoff.public.invest.api.contract.v1.PageResponse.prototype.setTotalCount = function(value) {
1479
+ return jspb.Message.setProto3IntField(this, 3, value);
1480
+ };
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1487
+ /**
1488
+ * Creates an object representation of this proto.
1489
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1490
+ * Optional fields that are not set will be set to undefined.
1491
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1492
+ * For the list of reserved names please see:
1493
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1494
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1495
+ * JSPB instance for transitional soy proto support:
1496
+ * http://goto/soy-param-migration
1497
+ * @return {!Object}
1498
+ */
1499
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.toObject = function(opt_includeInstance) {
1500
+ return proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.toObject(opt_includeInstance, this);
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * Static version of the {@see toObject} method.
1506
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1507
+ * the JSPB instance for transitional soy proto support:
1508
+ * http://goto/soy-param-migration
1509
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} msg The msg instance to transform.
1510
+ * @return {!Object}
1511
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1512
+ */
1513
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.toObject = function(includeInstance, msg) {
1514
+ var f, obj = {
1515
+ trackingId: jspb.Message.getFieldWithDefault(msg, 42, ""),
1516
+ serverTime: (f = msg.getServerTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1517
+ };
1518
+
1519
+ if (includeInstance) {
1520
+ obj.$jspbMessageInstance = msg;
1521
+ }
1522
+ return obj;
1523
+ };
1524
+ }
1525
+
1526
+
1527
+ /**
1528
+ * Deserializes binary data (in protobuf wire format).
1529
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1530
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata}
1531
+ */
1532
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.deserializeBinary = function(bytes) {
1533
+ var reader = new jspb.BinaryReader(bytes);
1534
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata;
1535
+ return proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.deserializeBinaryFromReader(msg, reader);
1536
+ };
1537
+
1538
+
1539
+ /**
1540
+ * Deserializes binary data (in protobuf wire format) from the
1541
+ * given reader into the given message object.
1542
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} msg The message object to deserialize into.
1543
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1544
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata}
1545
+ */
1546
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.deserializeBinaryFromReader = function(msg, reader) {
1547
+ while (reader.nextField()) {
1548
+ if (reader.isEndGroup()) {
1549
+ break;
1550
+ }
1551
+ var field = reader.getFieldNumber();
1552
+ switch (field) {
1553
+ case 42:
1554
+ var value = /** @type {string} */ (reader.readString());
1555
+ msg.setTrackingId(value);
1556
+ break;
1557
+ case 43:
1558
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1559
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1560
+ msg.setServerTime(value);
1561
+ break;
1562
+ default:
1563
+ reader.skipField();
1564
+ break;
1565
+ }
1566
+ }
1567
+ return msg;
1568
+ };
1569
+
1570
+
1571
+ /**
1572
+ * Serializes the message to binary data (in protobuf wire format).
1573
+ * @return {!Uint8Array}
1574
+ */
1575
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.serializeBinary = function() {
1576
+ var writer = new jspb.BinaryWriter();
1577
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.serializeBinaryToWriter(this, writer);
1578
+ return writer.getResultBuffer();
1579
+ };
1580
+
1581
+
1582
+ /**
1583
+ * Serializes the given message to binary data (in protobuf wire
1584
+ * format), writing to the given BinaryWriter.
1585
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} message
1586
+ * @param {!jspb.BinaryWriter} writer
1587
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1588
+ */
1589
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.serializeBinaryToWriter = function(message, writer) {
1590
+ var f = undefined;
1591
+ f = message.getTrackingId();
1592
+ if (f.length > 0) {
1593
+ writer.writeString(
1594
+ 42,
1595
+ f
1596
+ );
1597
+ }
1598
+ f = message.getServerTime();
1599
+ if (f != null) {
1600
+ writer.writeMessage(
1601
+ 43,
1602
+ f,
1603
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1604
+ );
1605
+ }
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * optional string tracking_id = 42;
1611
+ * @return {string}
1612
+ */
1613
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.getTrackingId = function() {
1614
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 42, ""));
1615
+ };
1616
+
1617
+
1618
+ /**
1619
+ * @param {string} value
1620
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} returns this
1621
+ */
1622
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.setTrackingId = function(value) {
1623
+ return jspb.Message.setProto3StringField(this, 42, value);
1624
+ };
1625
+
1626
+
1627
+ /**
1628
+ * optional google.protobuf.Timestamp server_time = 43;
1629
+ * @return {?proto.google.protobuf.Timestamp}
1630
+ */
1631
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.getServerTime = function() {
1632
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1633
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 43));
1634
+ };
1635
+
1636
+
1637
+ /**
1638
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1639
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} returns this
1640
+ */
1641
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.setServerTime = function(value) {
1642
+ return jspb.Message.setWrapperField(this, 43, value);
1643
+ };
1644
+
1645
+
1646
+ /**
1647
+ * Clears the message field making it undefined.
1648
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata} returns this
1649
+ */
1650
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.clearServerTime = function() {
1651
+ return this.setServerTime(undefined);
1652
+ };
1653
+
1654
+
1655
+ /**
1656
+ * Returns whether this field is set.
1657
+ * @return {boolean}
1658
+ */
1659
+ proto.tinkoff.public.invest.api.contract.v1.ResponseMetadata.prototype.hasServerTime = function() {
1660
+ return jspb.Message.getField(this, 43) != null;
1661
+ };
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1668
+ /**
1669
+ * Creates an object representation of this proto.
1670
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1671
+ * Optional fields that are not set will be set to undefined.
1672
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1673
+ * For the list of reserved names please see:
1674
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1675
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1676
+ * JSPB instance for transitional soy proto support:
1677
+ * http://goto/soy-param-migration
1678
+ * @return {!Object}
1679
+ */
1680
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.toObject = function(opt_includeInstance) {
1681
+ return proto.tinkoff.public.invest.api.contract.v1.BrandData.toObject(opt_includeInstance, this);
1682
+ };
1683
+
1684
+
1685
+ /**
1686
+ * Static version of the {@see toObject} method.
1687
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1688
+ * the JSPB instance for transitional soy proto support:
1689
+ * http://goto/soy-param-migration
1690
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.BrandData} msg The msg instance to transform.
1691
+ * @return {!Object}
1692
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1693
+ */
1694
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.toObject = function(includeInstance, msg) {
1695
+ var f, obj = {
1696
+ logoName: jspb.Message.getFieldWithDefault(msg, 1, ""),
1697
+ logoBaseColor: jspb.Message.getFieldWithDefault(msg, 2, ""),
1698
+ textColor: jspb.Message.getFieldWithDefault(msg, 3, "")
1699
+ };
1700
+
1701
+ if (includeInstance) {
1702
+ obj.$jspbMessageInstance = msg;
1703
+ }
1704
+ return obj;
1705
+ };
1706
+ }
1707
+
1708
+
1709
+ /**
1710
+ * Deserializes binary data (in protobuf wire format).
1711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1712
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.BrandData}
1713
+ */
1714
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.deserializeBinary = function(bytes) {
1715
+ var reader = new jspb.BinaryReader(bytes);
1716
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.BrandData;
1717
+ return proto.tinkoff.public.invest.api.contract.v1.BrandData.deserializeBinaryFromReader(msg, reader);
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * Deserializes binary data (in protobuf wire format) from the
1723
+ * given reader into the given message object.
1724
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.BrandData} msg The message object to deserialize into.
1725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1726
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.BrandData}
1727
+ */
1728
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.deserializeBinaryFromReader = function(msg, reader) {
1729
+ while (reader.nextField()) {
1730
+ if (reader.isEndGroup()) {
1731
+ break;
1732
+ }
1733
+ var field = reader.getFieldNumber();
1734
+ switch (field) {
1735
+ case 1:
1736
+ var value = /** @type {string} */ (reader.readString());
1737
+ msg.setLogoName(value);
1738
+ break;
1739
+ case 2:
1740
+ var value = /** @type {string} */ (reader.readString());
1741
+ msg.setLogoBaseColor(value);
1742
+ break;
1743
+ case 3:
1744
+ var value = /** @type {string} */ (reader.readString());
1745
+ msg.setTextColor(value);
1746
+ break;
1747
+ default:
1748
+ reader.skipField();
1749
+ break;
1750
+ }
1751
+ }
1752
+ return msg;
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * Serializes the message to binary data (in protobuf wire format).
1758
+ * @return {!Uint8Array}
1759
+ */
1760
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.serializeBinary = function() {
1761
+ var writer = new jspb.BinaryWriter();
1762
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.serializeBinaryToWriter(this, writer);
1763
+ return writer.getResultBuffer();
1764
+ };
1765
+
1766
+
1767
+ /**
1768
+ * Serializes the given message to binary data (in protobuf wire
1769
+ * format), writing to the given BinaryWriter.
1770
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.BrandData} message
1771
+ * @param {!jspb.BinaryWriter} writer
1772
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1773
+ */
1774
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.serializeBinaryToWriter = function(message, writer) {
1775
+ var f = undefined;
1776
+ f = message.getLogoName();
1777
+ if (f.length > 0) {
1778
+ writer.writeString(
1779
+ 1,
1780
+ f
1781
+ );
1782
+ }
1783
+ f = message.getLogoBaseColor();
1784
+ if (f.length > 0) {
1785
+ writer.writeString(
1786
+ 2,
1787
+ f
1788
+ );
1789
+ }
1790
+ f = message.getTextColor();
1791
+ if (f.length > 0) {
1792
+ writer.writeString(
1793
+ 3,
1794
+ f
1795
+ );
1796
+ }
1797
+ };
1798
+
1799
+
1800
+ /**
1801
+ * optional string logo_name = 1;
1802
+ * @return {string}
1803
+ */
1804
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.getLogoName = function() {
1805
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * @param {string} value
1811
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.BrandData} returns this
1812
+ */
1813
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.setLogoName = function(value) {
1814
+ return jspb.Message.setProto3StringField(this, 1, value);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * optional string logo_base_color = 2;
1820
+ * @return {string}
1821
+ */
1822
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.getLogoBaseColor = function() {
1823
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1824
+ };
1825
+
1826
+
1827
+ /**
1828
+ * @param {string} value
1829
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.BrandData} returns this
1830
+ */
1831
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.setLogoBaseColor = function(value) {
1832
+ return jspb.Message.setProto3StringField(this, 2, value);
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * optional string text_color = 3;
1838
+ * @return {string}
1839
+ */
1840
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.getTextColor = function() {
1841
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1842
+ };
1843
+
1844
+
1845
+ /**
1846
+ * @param {string} value
1847
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.BrandData} returns this
1848
+ */
1849
+ proto.tinkoff.public.invest.api.contract.v1.BrandData.prototype.setTextColor = function(value) {
1850
+ return jspb.Message.setProto3StringField(this, 3, value);
1851
+ };
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1858
+ /**
1859
+ * Creates an object representation of this proto.
1860
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1861
+ * Optional fields that are not set will be set to undefined.
1862
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1863
+ * For the list of reserved names please see:
1864
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1865
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1866
+ * JSPB instance for transitional soy proto support:
1867
+ * http://goto/soy-param-migration
1868
+ * @return {!Object}
1869
+ */
1870
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.prototype.toObject = function(opt_includeInstance) {
1871
+ return proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.toObject(opt_includeInstance, this);
1872
+ };
1873
+
1874
+
1875
+ /**
1876
+ * Static version of the {@see toObject} method.
1877
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1878
+ * the JSPB instance for transitional soy proto support:
1879
+ * http://goto/soy-param-migration
1880
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.ErrorDetail} msg The msg instance to transform.
1881
+ * @return {!Object}
1882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1883
+ */
1884
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.toObject = function(includeInstance, msg) {
1885
+ var f, obj = {
1886
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
1887
+ message: jspb.Message.getFieldWithDefault(msg, 3, "")
1888
+ };
1889
+
1890
+ if (includeInstance) {
1891
+ obj.$jspbMessageInstance = msg;
1892
+ }
1893
+ return obj;
1894
+ };
1895
+ }
1896
+
1897
+
1898
+ /**
1899
+ * Deserializes binary data (in protobuf wire format).
1900
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1901
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ErrorDetail}
1902
+ */
1903
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.deserializeBinary = function(bytes) {
1904
+ var reader = new jspb.BinaryReader(bytes);
1905
+ var msg = new proto.tinkoff.public.invest.api.contract.v1.ErrorDetail;
1906
+ return proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.deserializeBinaryFromReader(msg, reader);
1907
+ };
1908
+
1909
+
1910
+ /**
1911
+ * Deserializes binary data (in protobuf wire format) from the
1912
+ * given reader into the given message object.
1913
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.ErrorDetail} msg The message object to deserialize into.
1914
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1915
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ErrorDetail}
1916
+ */
1917
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.deserializeBinaryFromReader = function(msg, reader) {
1918
+ while (reader.nextField()) {
1919
+ if (reader.isEndGroup()) {
1920
+ break;
1921
+ }
1922
+ var field = reader.getFieldNumber();
1923
+ switch (field) {
1924
+ case 1:
1925
+ var value = /** @type {string} */ (reader.readString());
1926
+ msg.setCode(value);
1927
+ break;
1928
+ case 3:
1929
+ var value = /** @type {string} */ (reader.readString());
1930
+ msg.setMessage(value);
1931
+ break;
1932
+ default:
1933
+ reader.skipField();
1934
+ break;
1935
+ }
1936
+ }
1937
+ return msg;
1938
+ };
1939
+
1940
+
1941
+ /**
1942
+ * Serializes the message to binary data (in protobuf wire format).
1943
+ * @return {!Uint8Array}
1944
+ */
1945
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.prototype.serializeBinary = function() {
1946
+ var writer = new jspb.BinaryWriter();
1947
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.serializeBinaryToWriter(this, writer);
1948
+ return writer.getResultBuffer();
1949
+ };
1950
+
1951
+
1952
+ /**
1953
+ * Serializes the given message to binary data (in protobuf wire
1954
+ * format), writing to the given BinaryWriter.
1955
+ * @param {!proto.tinkoff.public.invest.api.contract.v1.ErrorDetail} message
1956
+ * @param {!jspb.BinaryWriter} writer
1957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1958
+ */
1959
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.serializeBinaryToWriter = function(message, writer) {
1960
+ var f = undefined;
1961
+ f = message.getCode();
1962
+ if (f.length > 0) {
1963
+ writer.writeString(
1964
+ 1,
1965
+ f
1966
+ );
1967
+ }
1968
+ f = message.getMessage();
1969
+ if (f.length > 0) {
1970
+ writer.writeString(
1971
+ 3,
1972
+ f
1973
+ );
1974
+ }
1975
+ };
1976
+
1977
+
1978
+ /**
1979
+ * optional string code = 1;
1980
+ * @return {string}
1981
+ */
1982
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.prototype.getCode = function() {
1983
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1984
+ };
1985
+
1986
+
1987
+ /**
1988
+ * @param {string} value
1989
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ErrorDetail} returns this
1990
+ */
1991
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.prototype.setCode = function(value) {
1992
+ return jspb.Message.setProto3StringField(this, 1, value);
1993
+ };
1994
+
1995
+
1996
+ /**
1997
+ * optional string message = 3;
1998
+ * @return {string}
1999
+ */
2000
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.prototype.getMessage = function() {
2001
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2002
+ };
2003
+
2004
+
2005
+ /**
2006
+ * @param {string} value
2007
+ * @return {!proto.tinkoff.public.invest.api.contract.v1.ErrorDetail} returns this
2008
+ */
2009
+ proto.tinkoff.public.invest.api.contract.v1.ErrorDetail.prototype.setMessage = function(value) {
2010
+ return jspb.Message.setProto3StringField(this, 3, value);
2011
+ };
2012
+
2013
+
2014
+ /**
2015
+ * @enum {number}
2016
+ */
2017
+ proto.tinkoff.public.invest.api.contract.v1.InstrumentType = {
2018
+ INSTRUMENT_TYPE_UNSPECIFIED: 0,
2019
+ INSTRUMENT_TYPE_BOND: 1,
2020
+ INSTRUMENT_TYPE_SHARE: 2,
2021
+ INSTRUMENT_TYPE_CURRENCY: 3,
2022
+ INSTRUMENT_TYPE_ETF: 4,
2023
+ INSTRUMENT_TYPE_FUTURES: 5,
2024
+ INSTRUMENT_TYPE_SP: 6,
2025
+ INSTRUMENT_TYPE_OPTION: 7,
2026
+ INSTRUMENT_TYPE_CLEARING_CERTIFICATE: 8,
2027
+ INSTRUMENT_TYPE_INDEX: 9,
2028
+ INSTRUMENT_TYPE_COMMODITY: 10,
2029
+ INSTRUMENT_TYPE_DFA: 11
2030
+ };
2031
+
2032
+ /**
2033
+ * @enum {number}
2034
+ */
2035
+ proto.tinkoff.public.invest.api.contract.v1.InstrumentStatus = {
2036
+ INSTRUMENT_STATUS_UNSPECIFIED: 0,
2037
+ INSTRUMENT_STATUS_BASE: 1,
2038
+ INSTRUMENT_STATUS_ALL: 2
2039
+ };
2040
+
2041
+ /**
2042
+ * @enum {number}
2043
+ */
2044
+ proto.tinkoff.public.invest.api.contract.v1.SecurityTradingStatus = {
2045
+ SECURITY_TRADING_STATUS_UNSPECIFIED: 0,
2046
+ SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING: 1,
2047
+ SECURITY_TRADING_STATUS_OPENING_PERIOD: 2,
2048
+ SECURITY_TRADING_STATUS_CLOSING_PERIOD: 3,
2049
+ SECURITY_TRADING_STATUS_BREAK_IN_TRADING: 4,
2050
+ SECURITY_TRADING_STATUS_NORMAL_TRADING: 5,
2051
+ SECURITY_TRADING_STATUS_CLOSING_AUCTION: 6,
2052
+ SECURITY_TRADING_STATUS_DARK_POOL_AUCTION: 7,
2053
+ SECURITY_TRADING_STATUS_DISCRETE_AUCTION: 8,
2054
+ SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD: 9,
2055
+ SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE: 10,
2056
+ SECURITY_TRADING_STATUS_SESSION_ASSIGNED: 11,
2057
+ SECURITY_TRADING_STATUS_SESSION_CLOSE: 12,
2058
+ SECURITY_TRADING_STATUS_SESSION_OPEN: 13,
2059
+ SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING: 14,
2060
+ SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING: 15,
2061
+ SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING: 16,
2062
+ SECURITY_TRADING_STATUS_STABILIZATION_AUCTION: 17
2063
+ };
2064
+
2065
+ /**
2066
+ * @enum {number}
2067
+ */
2068
+ proto.tinkoff.public.invest.api.contract.v1.PriceType = {
2069
+ PRICE_TYPE_UNSPECIFIED: 0,
2070
+ PRICE_TYPE_POINT: 1,
2071
+ PRICE_TYPE_CURRENCY: 2
2072
+ };
2073
+
2074
+ /**
2075
+ * @enum {number}
2076
+ */
2077
+ proto.tinkoff.public.invest.api.contract.v1.ResultSubscriptionStatus = {
2078
+ RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED: 0,
2079
+ RESULT_SUBSCRIPTION_STATUS_OK: 1,
2080
+ RESULT_SUBSCRIPTION_STATUS_ERROR: 13
2081
+ };
2082
+
2083
+ /**
2084
+ * @enum {number}
2085
+ */
2086
+ proto.tinkoff.public.invest.api.contract.v1.RealExchange = {
2087
+ REAL_EXCHANGE_UNSPECIFIED: 0,
2088
+ REAL_EXCHANGE_MOEX: 1,
2089
+ REAL_EXCHANGE_RTS: 2,
2090
+ REAL_EXCHANGE_OTC: 3,
2091
+ REAL_EXCHANGE_DEALER: 4
2092
+ };
2093
+
2094
+ goog.object.extend(exports, proto.tinkoff.public.invest.api.contract.v1);