@marleena/trb-proto 1.0.51 → 1.0.53

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