@marleena/trb-proto 1.0.52 → 1.0.54

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