@marleena/trb-proto 1.0.31 → 1.0.32

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.
@@ -212,5 +212,48 @@ export class ClickHouseClient {
212
212
  this.methodDescriptorListLastDownloads);
213
213
  }
214
214
 
215
+ methodDescriptorListCandles = new grpcWeb.MethodDescriptor(
216
+ '/trb.clickhouse.v1.ClickHouse/ListCandles',
217
+ grpcWeb.MethodType.UNARY,
218
+ clickhouse_clickhouse_pb.ListCandlesRequest,
219
+ clickhouse_clickhouse_pb.ListCandlesResponse,
220
+ (request: clickhouse_clickhouse_pb.ListCandlesRequest) => {
221
+ return request.serializeBinary();
222
+ },
223
+ clickhouse_clickhouse_pb.ListCandlesResponse.deserializeBinary
224
+ );
225
+
226
+ listCandles(
227
+ request: clickhouse_clickhouse_pb.ListCandlesRequest,
228
+ metadata?: grpcWeb.Metadata | null): Promise<clickhouse_clickhouse_pb.ListCandlesResponse>;
229
+
230
+ listCandles(
231
+ request: clickhouse_clickhouse_pb.ListCandlesRequest,
232
+ metadata: grpcWeb.Metadata | null,
233
+ callback: (err: grpcWeb.RpcError,
234
+ response: clickhouse_clickhouse_pb.ListCandlesResponse) => void): grpcWeb.ClientReadableStream<clickhouse_clickhouse_pb.ListCandlesResponse>;
235
+
236
+ listCandles(
237
+ request: clickhouse_clickhouse_pb.ListCandlesRequest,
238
+ metadata?: grpcWeb.Metadata | null,
239
+ callback?: (err: grpcWeb.RpcError,
240
+ response: clickhouse_clickhouse_pb.ListCandlesResponse) => void) {
241
+ if (callback !== undefined) {
242
+ return this.client_.rpcCall(
243
+ this.hostname_ +
244
+ '/trb.clickhouse.v1.ClickHouse/ListCandles',
245
+ request,
246
+ metadata || {},
247
+ this.methodDescriptorListCandles,
248
+ callback);
249
+ }
250
+ return this.client_.unaryCall(
251
+ this.hostname_ +
252
+ '/trb.clickhouse.v1.ClickHouse/ListCandles',
253
+ request,
254
+ metadata || {},
255
+ this.methodDescriptorListCandles);
256
+ }
257
+
215
258
  }
216
259
 
@@ -289,3 +289,117 @@ export namespace LastDownload {
289
289
  }
290
290
  }
291
291
 
292
+ export class ListCandlesRequest extends jspb.Message {
293
+ getUid(): string;
294
+ setUid(value: string): ListCandlesRequest;
295
+
296
+ getInterval(): number;
297
+ setInterval(value: number): ListCandlesRequest;
298
+
299
+ getFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
300
+ setFrom(value?: google_protobuf_timestamp_pb.Timestamp): ListCandlesRequest;
301
+ hasFrom(): boolean;
302
+ clearFrom(): ListCandlesRequest;
303
+
304
+ getTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
305
+ setTo(value?: google_protobuf_timestamp_pb.Timestamp): ListCandlesRequest;
306
+ hasTo(): boolean;
307
+ clearTo(): ListCandlesRequest;
308
+
309
+ getLimit(): number;
310
+ setLimit(value: number): ListCandlesRequest;
311
+
312
+ serializeBinary(): Uint8Array;
313
+ toObject(includeInstance?: boolean): ListCandlesRequest.AsObject;
314
+ static toObject(includeInstance: boolean, msg: ListCandlesRequest): ListCandlesRequest.AsObject;
315
+ static serializeBinaryToWriter(message: ListCandlesRequest, writer: jspb.BinaryWriter): void;
316
+ static deserializeBinary(bytes: Uint8Array): ListCandlesRequest;
317
+ static deserializeBinaryFromReader(message: ListCandlesRequest, reader: jspb.BinaryReader): ListCandlesRequest;
318
+ }
319
+
320
+ export namespace ListCandlesRequest {
321
+ export type AsObject = {
322
+ uid: string,
323
+ interval: number,
324
+ from?: google_protobuf_timestamp_pb.Timestamp.AsObject,
325
+ to?: google_protobuf_timestamp_pb.Timestamp.AsObject,
326
+ limit: number,
327
+ }
328
+ }
329
+
330
+ export class HistoricCandleRow extends jspb.Message {
331
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
332
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): HistoricCandleRow;
333
+ hasTime(): boolean;
334
+ clearTime(): HistoricCandleRow;
335
+
336
+ getOpen(): number;
337
+ setOpen(value: number): HistoricCandleRow;
338
+
339
+ getHigh(): number;
340
+ setHigh(value: number): HistoricCandleRow;
341
+
342
+ getLow(): number;
343
+ setLow(value: number): HistoricCandleRow;
344
+
345
+ getClose(): number;
346
+ setClose(value: number): HistoricCandleRow;
347
+
348
+ getVolume(): number;
349
+ setVolume(value: number): HistoricCandleRow;
350
+
351
+ getVolumeBuy(): number;
352
+ setVolumeBuy(value: number): HistoricCandleRow;
353
+
354
+ getVolumeSell(): number;
355
+ setVolumeSell(value: number): HistoricCandleRow;
356
+
357
+ getCandleSource(): number;
358
+ setCandleSource(value: number): HistoricCandleRow;
359
+
360
+ getIsComplete(): boolean;
361
+ setIsComplete(value: boolean): HistoricCandleRow;
362
+
363
+ serializeBinary(): Uint8Array;
364
+ toObject(includeInstance?: boolean): HistoricCandleRow.AsObject;
365
+ static toObject(includeInstance: boolean, msg: HistoricCandleRow): HistoricCandleRow.AsObject;
366
+ static serializeBinaryToWriter(message: HistoricCandleRow, writer: jspb.BinaryWriter): void;
367
+ static deserializeBinary(bytes: Uint8Array): HistoricCandleRow;
368
+ static deserializeBinaryFromReader(message: HistoricCandleRow, reader: jspb.BinaryReader): HistoricCandleRow;
369
+ }
370
+
371
+ export namespace HistoricCandleRow {
372
+ export type AsObject = {
373
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
374
+ open: number,
375
+ high: number,
376
+ low: number,
377
+ close: number,
378
+ volume: number,
379
+ volumeBuy: number,
380
+ volumeSell: number,
381
+ candleSource: number,
382
+ isComplete: boolean,
383
+ }
384
+ }
385
+
386
+ export class ListCandlesResponse extends jspb.Message {
387
+ getItemsList(): Array<HistoricCandleRow>;
388
+ setItemsList(value: Array<HistoricCandleRow>): ListCandlesResponse;
389
+ clearItemsList(): ListCandlesResponse;
390
+ addItems(value?: HistoricCandleRow, index?: number): HistoricCandleRow;
391
+
392
+ serializeBinary(): Uint8Array;
393
+ toObject(includeInstance?: boolean): ListCandlesResponse.AsObject;
394
+ static toObject(includeInstance: boolean, msg: ListCandlesResponse): ListCandlesResponse.AsObject;
395
+ static serializeBinaryToWriter(message: ListCandlesResponse, writer: jspb.BinaryWriter): void;
396
+ static deserializeBinary(bytes: Uint8Array): ListCandlesResponse;
397
+ static deserializeBinaryFromReader(message: ListCandlesResponse, reader: jspb.BinaryReader): ListCandlesResponse;
398
+ }
399
+
400
+ export namespace ListCandlesResponse {
401
+ export type AsObject = {
402
+ itemsList: Array<HistoricCandleRow.AsObject>,
403
+ }
404
+ }
405
+
@@ -27,9 +27,12 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
27
27
  goog.object.extend(proto, google_protobuf_timestamp_pb);
28
28
  var api_tinvest_instruments_pb = require('../api/tinvest/instruments_pb.js');
29
29
  goog.object.extend(proto, api_tinvest_instruments_pb);
30
+ goog.exportSymbol('proto.trb.clickhouse.v1.HistoricCandleRow', null, global);
30
31
  goog.exportSymbol('proto.trb.clickhouse.v1.InstrumentListItem', null, global);
31
32
  goog.exportSymbol('proto.trb.clickhouse.v1.InstrumentVersion', null, global);
32
33
  goog.exportSymbol('proto.trb.clickhouse.v1.LastDownload', null, global);
34
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListCandlesRequest', null, global);
35
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListCandlesResponse', null, global);
33
36
  goog.exportSymbol('proto.trb.clickhouse.v1.ListFilter', null, global);
34
37
  goog.exportSymbol('proto.trb.clickhouse.v1.ListInstrumentVersionsRequest', null, global);
35
38
  goog.exportSymbol('proto.trb.clickhouse.v1.ListInstrumentVersionsResponse', null, global);
@@ -269,6 +272,69 @@ if (goog.DEBUG && !COMPILED) {
269
272
  */
270
273
  proto.trb.clickhouse.v1.LastDownload.displayName = 'proto.trb.clickhouse.v1.LastDownload';
271
274
  }
275
+ /**
276
+ * Generated by JsPbCodeGenerator.
277
+ * @param {Array=} opt_data Optional initial data array, typically from a
278
+ * server response, or constructed directly in Javascript. The array is used
279
+ * in place and becomes part of the constructed object. It is not cloned.
280
+ * If no data is provided, the constructed object will be empty, but still
281
+ * valid.
282
+ * @extends {jspb.Message}
283
+ * @constructor
284
+ */
285
+ proto.trb.clickhouse.v1.ListCandlesRequest = function(opt_data) {
286
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
287
+ };
288
+ goog.inherits(proto.trb.clickhouse.v1.ListCandlesRequest, jspb.Message);
289
+ if (goog.DEBUG && !COMPILED) {
290
+ /**
291
+ * @public
292
+ * @override
293
+ */
294
+ proto.trb.clickhouse.v1.ListCandlesRequest.displayName = 'proto.trb.clickhouse.v1.ListCandlesRequest';
295
+ }
296
+ /**
297
+ * Generated by JsPbCodeGenerator.
298
+ * @param {Array=} opt_data Optional initial data array, typically from a
299
+ * server response, or constructed directly in Javascript. The array is used
300
+ * in place and becomes part of the constructed object. It is not cloned.
301
+ * If no data is provided, the constructed object will be empty, but still
302
+ * valid.
303
+ * @extends {jspb.Message}
304
+ * @constructor
305
+ */
306
+ proto.trb.clickhouse.v1.HistoricCandleRow = function(opt_data) {
307
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
308
+ };
309
+ goog.inherits(proto.trb.clickhouse.v1.HistoricCandleRow, jspb.Message);
310
+ if (goog.DEBUG && !COMPILED) {
311
+ /**
312
+ * @public
313
+ * @override
314
+ */
315
+ proto.trb.clickhouse.v1.HistoricCandleRow.displayName = 'proto.trb.clickhouse.v1.HistoricCandleRow';
316
+ }
317
+ /**
318
+ * Generated by JsPbCodeGenerator.
319
+ * @param {Array=} opt_data Optional initial data array, typically from a
320
+ * server response, or constructed directly in Javascript. The array is used
321
+ * in place and becomes part of the constructed object. It is not cloned.
322
+ * If no data is provided, the constructed object will be empty, but still
323
+ * valid.
324
+ * @extends {jspb.Message}
325
+ * @constructor
326
+ */
327
+ proto.trb.clickhouse.v1.ListCandlesResponse = function(opt_data) {
328
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.clickhouse.v1.ListCandlesResponse.repeatedFields_, null);
329
+ };
330
+ goog.inherits(proto.trb.clickhouse.v1.ListCandlesResponse, jspb.Message);
331
+ if (goog.DEBUG && !COMPILED) {
332
+ /**
333
+ * @public
334
+ * @override
335
+ */
336
+ proto.trb.clickhouse.v1.ListCandlesResponse.displayName = 'proto.trb.clickhouse.v1.ListCandlesResponse';
337
+ }
272
338
 
273
339
 
274
340
 
@@ -2437,4 +2503,877 @@ proto.trb.clickhouse.v1.LastDownload.prototype.setHasDownload = function(value)
2437
2503
  };
2438
2504
 
2439
2505
 
2506
+
2507
+
2508
+
2509
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2510
+ /**
2511
+ * Creates an object representation of this proto.
2512
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2513
+ * Optional fields that are not set will be set to undefined.
2514
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2515
+ * For the list of reserved names please see:
2516
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2517
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2518
+ * JSPB instance for transitional soy proto support:
2519
+ * http://goto/soy-param-migration
2520
+ * @return {!Object}
2521
+ */
2522
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.toObject = function(opt_includeInstance) {
2523
+ return proto.trb.clickhouse.v1.ListCandlesRequest.toObject(opt_includeInstance, this);
2524
+ };
2525
+
2526
+
2527
+ /**
2528
+ * Static version of the {@see toObject} method.
2529
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2530
+ * the JSPB instance for transitional soy proto support:
2531
+ * http://goto/soy-param-migration
2532
+ * @param {!proto.trb.clickhouse.v1.ListCandlesRequest} msg The msg instance to transform.
2533
+ * @return {!Object}
2534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2535
+ */
2536
+ proto.trb.clickhouse.v1.ListCandlesRequest.toObject = function(includeInstance, msg) {
2537
+ var f, obj = {
2538
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
2539
+ interval: jspb.Message.getFieldWithDefault(msg, 2, 0),
2540
+ from: (f = msg.getFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2541
+ to: (f = msg.getTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2542
+ limit: jspb.Message.getFieldWithDefault(msg, 5, 0)
2543
+ };
2544
+
2545
+ if (includeInstance) {
2546
+ obj.$jspbMessageInstance = msg;
2547
+ }
2548
+ return obj;
2549
+ };
2550
+ }
2551
+
2552
+
2553
+ /**
2554
+ * Deserializes binary data (in protobuf wire format).
2555
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2556
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest}
2557
+ */
2558
+ proto.trb.clickhouse.v1.ListCandlesRequest.deserializeBinary = function(bytes) {
2559
+ var reader = new jspb.BinaryReader(bytes);
2560
+ var msg = new proto.trb.clickhouse.v1.ListCandlesRequest;
2561
+ return proto.trb.clickhouse.v1.ListCandlesRequest.deserializeBinaryFromReader(msg, reader);
2562
+ };
2563
+
2564
+
2565
+ /**
2566
+ * Deserializes binary data (in protobuf wire format) from the
2567
+ * given reader into the given message object.
2568
+ * @param {!proto.trb.clickhouse.v1.ListCandlesRequest} msg The message object to deserialize into.
2569
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2570
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest}
2571
+ */
2572
+ proto.trb.clickhouse.v1.ListCandlesRequest.deserializeBinaryFromReader = function(msg, reader) {
2573
+ while (reader.nextField()) {
2574
+ if (reader.isEndGroup()) {
2575
+ break;
2576
+ }
2577
+ var field = reader.getFieldNumber();
2578
+ switch (field) {
2579
+ case 1:
2580
+ var value = /** @type {string} */ (reader.readString());
2581
+ msg.setUid(value);
2582
+ break;
2583
+ case 2:
2584
+ var value = /** @type {number} */ (reader.readInt32());
2585
+ msg.setInterval(value);
2586
+ break;
2587
+ case 3:
2588
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2589
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2590
+ msg.setFrom(value);
2591
+ break;
2592
+ case 4:
2593
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2594
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2595
+ msg.setTo(value);
2596
+ break;
2597
+ case 5:
2598
+ var value = /** @type {number} */ (reader.readInt32());
2599
+ msg.setLimit(value);
2600
+ break;
2601
+ default:
2602
+ reader.skipField();
2603
+ break;
2604
+ }
2605
+ }
2606
+ return msg;
2607
+ };
2608
+
2609
+
2610
+ /**
2611
+ * Serializes the message to binary data (in protobuf wire format).
2612
+ * @return {!Uint8Array}
2613
+ */
2614
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.serializeBinary = function() {
2615
+ var writer = new jspb.BinaryWriter();
2616
+ proto.trb.clickhouse.v1.ListCandlesRequest.serializeBinaryToWriter(this, writer);
2617
+ return writer.getResultBuffer();
2618
+ };
2619
+
2620
+
2621
+ /**
2622
+ * Serializes the given message to binary data (in protobuf wire
2623
+ * format), writing to the given BinaryWriter.
2624
+ * @param {!proto.trb.clickhouse.v1.ListCandlesRequest} message
2625
+ * @param {!jspb.BinaryWriter} writer
2626
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2627
+ */
2628
+ proto.trb.clickhouse.v1.ListCandlesRequest.serializeBinaryToWriter = function(message, writer) {
2629
+ var f = undefined;
2630
+ f = message.getUid();
2631
+ if (f.length > 0) {
2632
+ writer.writeString(
2633
+ 1,
2634
+ f
2635
+ );
2636
+ }
2637
+ f = message.getInterval();
2638
+ if (f !== 0) {
2639
+ writer.writeInt32(
2640
+ 2,
2641
+ f
2642
+ );
2643
+ }
2644
+ f = message.getFrom();
2645
+ if (f != null) {
2646
+ writer.writeMessage(
2647
+ 3,
2648
+ f,
2649
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2650
+ );
2651
+ }
2652
+ f = message.getTo();
2653
+ if (f != null) {
2654
+ writer.writeMessage(
2655
+ 4,
2656
+ f,
2657
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2658
+ );
2659
+ }
2660
+ f = message.getLimit();
2661
+ if (f !== 0) {
2662
+ writer.writeInt32(
2663
+ 5,
2664
+ f
2665
+ );
2666
+ }
2667
+ };
2668
+
2669
+
2670
+ /**
2671
+ * optional string uid = 1;
2672
+ * @return {string}
2673
+ */
2674
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.getUid = function() {
2675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2676
+ };
2677
+
2678
+
2679
+ /**
2680
+ * @param {string} value
2681
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest} returns this
2682
+ */
2683
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.setUid = function(value) {
2684
+ return jspb.Message.setProto3StringField(this, 1, value);
2685
+ };
2686
+
2687
+
2688
+ /**
2689
+ * optional int32 interval = 2;
2690
+ * @return {number}
2691
+ */
2692
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.getInterval = function() {
2693
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2694
+ };
2695
+
2696
+
2697
+ /**
2698
+ * @param {number} value
2699
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest} returns this
2700
+ */
2701
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.setInterval = function(value) {
2702
+ return jspb.Message.setProto3IntField(this, 2, value);
2703
+ };
2704
+
2705
+
2706
+ /**
2707
+ * optional google.protobuf.Timestamp from = 3;
2708
+ * @return {?proto.google.protobuf.Timestamp}
2709
+ */
2710
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.getFrom = function() {
2711
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2712
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2713
+ };
2714
+
2715
+
2716
+ /**
2717
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2718
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest} returns this
2719
+ */
2720
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.setFrom = function(value) {
2721
+ return jspb.Message.setWrapperField(this, 3, value);
2722
+ };
2723
+
2724
+
2725
+ /**
2726
+ * Clears the message field making it undefined.
2727
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest} returns this
2728
+ */
2729
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.clearFrom = function() {
2730
+ return this.setFrom(undefined);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * Returns whether this field is set.
2736
+ * @return {boolean}
2737
+ */
2738
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.hasFrom = function() {
2739
+ return jspb.Message.getField(this, 3) != null;
2740
+ };
2741
+
2742
+
2743
+ /**
2744
+ * optional google.protobuf.Timestamp to = 4;
2745
+ * @return {?proto.google.protobuf.Timestamp}
2746
+ */
2747
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.getTo = function() {
2748
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2749
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2750
+ };
2751
+
2752
+
2753
+ /**
2754
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2755
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest} returns this
2756
+ */
2757
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.setTo = function(value) {
2758
+ return jspb.Message.setWrapperField(this, 4, value);
2759
+ };
2760
+
2761
+
2762
+ /**
2763
+ * Clears the message field making it undefined.
2764
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest} returns this
2765
+ */
2766
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.clearTo = function() {
2767
+ return this.setTo(undefined);
2768
+ };
2769
+
2770
+
2771
+ /**
2772
+ * Returns whether this field is set.
2773
+ * @return {boolean}
2774
+ */
2775
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.hasTo = function() {
2776
+ return jspb.Message.getField(this, 4) != null;
2777
+ };
2778
+
2779
+
2780
+ /**
2781
+ * optional int32 limit = 5;
2782
+ * @return {number}
2783
+ */
2784
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.getLimit = function() {
2785
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2786
+ };
2787
+
2788
+
2789
+ /**
2790
+ * @param {number} value
2791
+ * @return {!proto.trb.clickhouse.v1.ListCandlesRequest} returns this
2792
+ */
2793
+ proto.trb.clickhouse.v1.ListCandlesRequest.prototype.setLimit = function(value) {
2794
+ return jspb.Message.setProto3IntField(this, 5, value);
2795
+ };
2796
+
2797
+
2798
+
2799
+
2800
+
2801
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2802
+ /**
2803
+ * Creates an object representation of this proto.
2804
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2805
+ * Optional fields that are not set will be set to undefined.
2806
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2807
+ * For the list of reserved names please see:
2808
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2809
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2810
+ * JSPB instance for transitional soy proto support:
2811
+ * http://goto/soy-param-migration
2812
+ * @return {!Object}
2813
+ */
2814
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.toObject = function(opt_includeInstance) {
2815
+ return proto.trb.clickhouse.v1.HistoricCandleRow.toObject(opt_includeInstance, this);
2816
+ };
2817
+
2818
+
2819
+ /**
2820
+ * Static version of the {@see toObject} method.
2821
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2822
+ * the JSPB instance for transitional soy proto support:
2823
+ * http://goto/soy-param-migration
2824
+ * @param {!proto.trb.clickhouse.v1.HistoricCandleRow} msg The msg instance to transform.
2825
+ * @return {!Object}
2826
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2827
+ */
2828
+ proto.trb.clickhouse.v1.HistoricCandleRow.toObject = function(includeInstance, msg) {
2829
+ var f, obj = {
2830
+ time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2831
+ open: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2832
+ high: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
2833
+ low: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2834
+ close: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
2835
+ volume: jspb.Message.getFieldWithDefault(msg, 6, 0),
2836
+ volumeBuy: jspb.Message.getFieldWithDefault(msg, 7, 0),
2837
+ volumeSell: jspb.Message.getFieldWithDefault(msg, 8, 0),
2838
+ candleSource: jspb.Message.getFieldWithDefault(msg, 9, 0),
2839
+ isComplete: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
2840
+ };
2841
+
2842
+ if (includeInstance) {
2843
+ obj.$jspbMessageInstance = msg;
2844
+ }
2845
+ return obj;
2846
+ };
2847
+ }
2848
+
2849
+
2850
+ /**
2851
+ * Deserializes binary data (in protobuf wire format).
2852
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2853
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow}
2854
+ */
2855
+ proto.trb.clickhouse.v1.HistoricCandleRow.deserializeBinary = function(bytes) {
2856
+ var reader = new jspb.BinaryReader(bytes);
2857
+ var msg = new proto.trb.clickhouse.v1.HistoricCandleRow;
2858
+ return proto.trb.clickhouse.v1.HistoricCandleRow.deserializeBinaryFromReader(msg, reader);
2859
+ };
2860
+
2861
+
2862
+ /**
2863
+ * Deserializes binary data (in protobuf wire format) from the
2864
+ * given reader into the given message object.
2865
+ * @param {!proto.trb.clickhouse.v1.HistoricCandleRow} msg The message object to deserialize into.
2866
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2867
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow}
2868
+ */
2869
+ proto.trb.clickhouse.v1.HistoricCandleRow.deserializeBinaryFromReader = function(msg, reader) {
2870
+ while (reader.nextField()) {
2871
+ if (reader.isEndGroup()) {
2872
+ break;
2873
+ }
2874
+ var field = reader.getFieldNumber();
2875
+ switch (field) {
2876
+ case 1:
2877
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2878
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2879
+ msg.setTime(value);
2880
+ break;
2881
+ case 2:
2882
+ var value = /** @type {number} */ (reader.readDouble());
2883
+ msg.setOpen(value);
2884
+ break;
2885
+ case 3:
2886
+ var value = /** @type {number} */ (reader.readDouble());
2887
+ msg.setHigh(value);
2888
+ break;
2889
+ case 4:
2890
+ var value = /** @type {number} */ (reader.readDouble());
2891
+ msg.setLow(value);
2892
+ break;
2893
+ case 5:
2894
+ var value = /** @type {number} */ (reader.readDouble());
2895
+ msg.setClose(value);
2896
+ break;
2897
+ case 6:
2898
+ var value = /** @type {number} */ (reader.readInt64());
2899
+ msg.setVolume(value);
2900
+ break;
2901
+ case 7:
2902
+ var value = /** @type {number} */ (reader.readInt64());
2903
+ msg.setVolumeBuy(value);
2904
+ break;
2905
+ case 8:
2906
+ var value = /** @type {number} */ (reader.readInt64());
2907
+ msg.setVolumeSell(value);
2908
+ break;
2909
+ case 9:
2910
+ var value = /** @type {number} */ (reader.readInt32());
2911
+ msg.setCandleSource(value);
2912
+ break;
2913
+ case 10:
2914
+ var value = /** @type {boolean} */ (reader.readBool());
2915
+ msg.setIsComplete(value);
2916
+ break;
2917
+ default:
2918
+ reader.skipField();
2919
+ break;
2920
+ }
2921
+ }
2922
+ return msg;
2923
+ };
2924
+
2925
+
2926
+ /**
2927
+ * Serializes the message to binary data (in protobuf wire format).
2928
+ * @return {!Uint8Array}
2929
+ */
2930
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.serializeBinary = function() {
2931
+ var writer = new jspb.BinaryWriter();
2932
+ proto.trb.clickhouse.v1.HistoricCandleRow.serializeBinaryToWriter(this, writer);
2933
+ return writer.getResultBuffer();
2934
+ };
2935
+
2936
+
2937
+ /**
2938
+ * Serializes the given message to binary data (in protobuf wire
2939
+ * format), writing to the given BinaryWriter.
2940
+ * @param {!proto.trb.clickhouse.v1.HistoricCandleRow} message
2941
+ * @param {!jspb.BinaryWriter} writer
2942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2943
+ */
2944
+ proto.trb.clickhouse.v1.HistoricCandleRow.serializeBinaryToWriter = function(message, writer) {
2945
+ var f = undefined;
2946
+ f = message.getTime();
2947
+ if (f != null) {
2948
+ writer.writeMessage(
2949
+ 1,
2950
+ f,
2951
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2952
+ );
2953
+ }
2954
+ f = message.getOpen();
2955
+ if (f !== 0.0) {
2956
+ writer.writeDouble(
2957
+ 2,
2958
+ f
2959
+ );
2960
+ }
2961
+ f = message.getHigh();
2962
+ if (f !== 0.0) {
2963
+ writer.writeDouble(
2964
+ 3,
2965
+ f
2966
+ );
2967
+ }
2968
+ f = message.getLow();
2969
+ if (f !== 0.0) {
2970
+ writer.writeDouble(
2971
+ 4,
2972
+ f
2973
+ );
2974
+ }
2975
+ f = message.getClose();
2976
+ if (f !== 0.0) {
2977
+ writer.writeDouble(
2978
+ 5,
2979
+ f
2980
+ );
2981
+ }
2982
+ f = message.getVolume();
2983
+ if (f !== 0) {
2984
+ writer.writeInt64(
2985
+ 6,
2986
+ f
2987
+ );
2988
+ }
2989
+ f = message.getVolumeBuy();
2990
+ if (f !== 0) {
2991
+ writer.writeInt64(
2992
+ 7,
2993
+ f
2994
+ );
2995
+ }
2996
+ f = message.getVolumeSell();
2997
+ if (f !== 0) {
2998
+ writer.writeInt64(
2999
+ 8,
3000
+ f
3001
+ );
3002
+ }
3003
+ f = message.getCandleSource();
3004
+ if (f !== 0) {
3005
+ writer.writeInt32(
3006
+ 9,
3007
+ f
3008
+ );
3009
+ }
3010
+ f = message.getIsComplete();
3011
+ if (f) {
3012
+ writer.writeBool(
3013
+ 10,
3014
+ f
3015
+ );
3016
+ }
3017
+ };
3018
+
3019
+
3020
+ /**
3021
+ * optional google.protobuf.Timestamp time = 1;
3022
+ * @return {?proto.google.protobuf.Timestamp}
3023
+ */
3024
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getTime = function() {
3025
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3026
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
3027
+ };
3028
+
3029
+
3030
+ /**
3031
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3032
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3033
+ */
3034
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setTime = function(value) {
3035
+ return jspb.Message.setWrapperField(this, 1, value);
3036
+ };
3037
+
3038
+
3039
+ /**
3040
+ * Clears the message field making it undefined.
3041
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3042
+ */
3043
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.clearTime = function() {
3044
+ return this.setTime(undefined);
3045
+ };
3046
+
3047
+
3048
+ /**
3049
+ * Returns whether this field is set.
3050
+ * @return {boolean}
3051
+ */
3052
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.hasTime = function() {
3053
+ return jspb.Message.getField(this, 1) != null;
3054
+ };
3055
+
3056
+
3057
+ /**
3058
+ * optional double open = 2;
3059
+ * @return {number}
3060
+ */
3061
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getOpen = function() {
3062
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
3063
+ };
3064
+
3065
+
3066
+ /**
3067
+ * @param {number} value
3068
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3069
+ */
3070
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setOpen = function(value) {
3071
+ return jspb.Message.setProto3FloatField(this, 2, value);
3072
+ };
3073
+
3074
+
3075
+ /**
3076
+ * optional double high = 3;
3077
+ * @return {number}
3078
+ */
3079
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getHigh = function() {
3080
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
3081
+ };
3082
+
3083
+
3084
+ /**
3085
+ * @param {number} value
3086
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3087
+ */
3088
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setHigh = function(value) {
3089
+ return jspb.Message.setProto3FloatField(this, 3, value);
3090
+ };
3091
+
3092
+
3093
+ /**
3094
+ * optional double low = 4;
3095
+ * @return {number}
3096
+ */
3097
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getLow = function() {
3098
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
3099
+ };
3100
+
3101
+
3102
+ /**
3103
+ * @param {number} value
3104
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3105
+ */
3106
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setLow = function(value) {
3107
+ return jspb.Message.setProto3FloatField(this, 4, value);
3108
+ };
3109
+
3110
+
3111
+ /**
3112
+ * optional double close = 5;
3113
+ * @return {number}
3114
+ */
3115
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getClose = function() {
3116
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
3117
+ };
3118
+
3119
+
3120
+ /**
3121
+ * @param {number} value
3122
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3123
+ */
3124
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setClose = function(value) {
3125
+ return jspb.Message.setProto3FloatField(this, 5, value);
3126
+ };
3127
+
3128
+
3129
+ /**
3130
+ * optional int64 volume = 6;
3131
+ * @return {number}
3132
+ */
3133
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getVolume = function() {
3134
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3135
+ };
3136
+
3137
+
3138
+ /**
3139
+ * @param {number} value
3140
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3141
+ */
3142
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setVolume = function(value) {
3143
+ return jspb.Message.setProto3IntField(this, 6, value);
3144
+ };
3145
+
3146
+
3147
+ /**
3148
+ * optional int64 volume_buy = 7;
3149
+ * @return {number}
3150
+ */
3151
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getVolumeBuy = function() {
3152
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3153
+ };
3154
+
3155
+
3156
+ /**
3157
+ * @param {number} value
3158
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3159
+ */
3160
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setVolumeBuy = function(value) {
3161
+ return jspb.Message.setProto3IntField(this, 7, value);
3162
+ };
3163
+
3164
+
3165
+ /**
3166
+ * optional int64 volume_sell = 8;
3167
+ * @return {number}
3168
+ */
3169
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getVolumeSell = function() {
3170
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
3171
+ };
3172
+
3173
+
3174
+ /**
3175
+ * @param {number} value
3176
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3177
+ */
3178
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setVolumeSell = function(value) {
3179
+ return jspb.Message.setProto3IntField(this, 8, value);
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * optional int32 candle_source = 9;
3185
+ * @return {number}
3186
+ */
3187
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getCandleSource = function() {
3188
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
3189
+ };
3190
+
3191
+
3192
+ /**
3193
+ * @param {number} value
3194
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3195
+ */
3196
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setCandleSource = function(value) {
3197
+ return jspb.Message.setProto3IntField(this, 9, value);
3198
+ };
3199
+
3200
+
3201
+ /**
3202
+ * optional bool is_complete = 10;
3203
+ * @return {boolean}
3204
+ */
3205
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.getIsComplete = function() {
3206
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * @param {boolean} value
3212
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow} returns this
3213
+ */
3214
+ proto.trb.clickhouse.v1.HistoricCandleRow.prototype.setIsComplete = function(value) {
3215
+ return jspb.Message.setProto3BooleanField(this, 10, value);
3216
+ };
3217
+
3218
+
3219
+
3220
+ /**
3221
+ * List of repeated fields within this message type.
3222
+ * @private {!Array<number>}
3223
+ * @const
3224
+ */
3225
+ proto.trb.clickhouse.v1.ListCandlesResponse.repeatedFields_ = [1];
3226
+
3227
+
3228
+
3229
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3230
+ /**
3231
+ * Creates an object representation of this proto.
3232
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3233
+ * Optional fields that are not set will be set to undefined.
3234
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3235
+ * For the list of reserved names please see:
3236
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3237
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3238
+ * JSPB instance for transitional soy proto support:
3239
+ * http://goto/soy-param-migration
3240
+ * @return {!Object}
3241
+ */
3242
+ proto.trb.clickhouse.v1.ListCandlesResponse.prototype.toObject = function(opt_includeInstance) {
3243
+ return proto.trb.clickhouse.v1.ListCandlesResponse.toObject(opt_includeInstance, this);
3244
+ };
3245
+
3246
+
3247
+ /**
3248
+ * Static version of the {@see toObject} method.
3249
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3250
+ * the JSPB instance for transitional soy proto support:
3251
+ * http://goto/soy-param-migration
3252
+ * @param {!proto.trb.clickhouse.v1.ListCandlesResponse} msg The msg instance to transform.
3253
+ * @return {!Object}
3254
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3255
+ */
3256
+ proto.trb.clickhouse.v1.ListCandlesResponse.toObject = function(includeInstance, msg) {
3257
+ var f, obj = {
3258
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
3259
+ proto.trb.clickhouse.v1.HistoricCandleRow.toObject, includeInstance)
3260
+ };
3261
+
3262
+ if (includeInstance) {
3263
+ obj.$jspbMessageInstance = msg;
3264
+ }
3265
+ return obj;
3266
+ };
3267
+ }
3268
+
3269
+
3270
+ /**
3271
+ * Deserializes binary data (in protobuf wire format).
3272
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3273
+ * @return {!proto.trb.clickhouse.v1.ListCandlesResponse}
3274
+ */
3275
+ proto.trb.clickhouse.v1.ListCandlesResponse.deserializeBinary = function(bytes) {
3276
+ var reader = new jspb.BinaryReader(bytes);
3277
+ var msg = new proto.trb.clickhouse.v1.ListCandlesResponse;
3278
+ return proto.trb.clickhouse.v1.ListCandlesResponse.deserializeBinaryFromReader(msg, reader);
3279
+ };
3280
+
3281
+
3282
+ /**
3283
+ * Deserializes binary data (in protobuf wire format) from the
3284
+ * given reader into the given message object.
3285
+ * @param {!proto.trb.clickhouse.v1.ListCandlesResponse} msg The message object to deserialize into.
3286
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3287
+ * @return {!proto.trb.clickhouse.v1.ListCandlesResponse}
3288
+ */
3289
+ proto.trb.clickhouse.v1.ListCandlesResponse.deserializeBinaryFromReader = function(msg, reader) {
3290
+ while (reader.nextField()) {
3291
+ if (reader.isEndGroup()) {
3292
+ break;
3293
+ }
3294
+ var field = reader.getFieldNumber();
3295
+ switch (field) {
3296
+ case 1:
3297
+ var value = new proto.trb.clickhouse.v1.HistoricCandleRow;
3298
+ reader.readMessage(value,proto.trb.clickhouse.v1.HistoricCandleRow.deserializeBinaryFromReader);
3299
+ msg.addItems(value);
3300
+ break;
3301
+ default:
3302
+ reader.skipField();
3303
+ break;
3304
+ }
3305
+ }
3306
+ return msg;
3307
+ };
3308
+
3309
+
3310
+ /**
3311
+ * Serializes the message to binary data (in protobuf wire format).
3312
+ * @return {!Uint8Array}
3313
+ */
3314
+ proto.trb.clickhouse.v1.ListCandlesResponse.prototype.serializeBinary = function() {
3315
+ var writer = new jspb.BinaryWriter();
3316
+ proto.trb.clickhouse.v1.ListCandlesResponse.serializeBinaryToWriter(this, writer);
3317
+ return writer.getResultBuffer();
3318
+ };
3319
+
3320
+
3321
+ /**
3322
+ * Serializes the given message to binary data (in protobuf wire
3323
+ * format), writing to the given BinaryWriter.
3324
+ * @param {!proto.trb.clickhouse.v1.ListCandlesResponse} message
3325
+ * @param {!jspb.BinaryWriter} writer
3326
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3327
+ */
3328
+ proto.trb.clickhouse.v1.ListCandlesResponse.serializeBinaryToWriter = function(message, writer) {
3329
+ var f = undefined;
3330
+ f = message.getItemsList();
3331
+ if (f.length > 0) {
3332
+ writer.writeRepeatedMessage(
3333
+ 1,
3334
+ f,
3335
+ proto.trb.clickhouse.v1.HistoricCandleRow.serializeBinaryToWriter
3336
+ );
3337
+ }
3338
+ };
3339
+
3340
+
3341
+ /**
3342
+ * repeated HistoricCandleRow items = 1;
3343
+ * @return {!Array<!proto.trb.clickhouse.v1.HistoricCandleRow>}
3344
+ */
3345
+ proto.trb.clickhouse.v1.ListCandlesResponse.prototype.getItemsList = function() {
3346
+ return /** @type{!Array<!proto.trb.clickhouse.v1.HistoricCandleRow>} */ (
3347
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.clickhouse.v1.HistoricCandleRow, 1));
3348
+ };
3349
+
3350
+
3351
+ /**
3352
+ * @param {!Array<!proto.trb.clickhouse.v1.HistoricCandleRow>} value
3353
+ * @return {!proto.trb.clickhouse.v1.ListCandlesResponse} returns this
3354
+ */
3355
+ proto.trb.clickhouse.v1.ListCandlesResponse.prototype.setItemsList = function(value) {
3356
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3357
+ };
3358
+
3359
+
3360
+ /**
3361
+ * @param {!proto.trb.clickhouse.v1.HistoricCandleRow=} opt_value
3362
+ * @param {number=} opt_index
3363
+ * @return {!proto.trb.clickhouse.v1.HistoricCandleRow}
3364
+ */
3365
+ proto.trb.clickhouse.v1.ListCandlesResponse.prototype.addItems = function(opt_value, opt_index) {
3366
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.clickhouse.v1.HistoricCandleRow, opt_index);
3367
+ };
3368
+
3369
+
3370
+ /**
3371
+ * Clears the list making it empty but non-null.
3372
+ * @return {!proto.trb.clickhouse.v1.ListCandlesResponse} returns this
3373
+ */
3374
+ proto.trb.clickhouse.v1.ListCandlesResponse.prototype.clearItemsList = function() {
3375
+ return this.setItemsList([]);
3376
+ };
3377
+
3378
+
2440
3379
  goog.object.extend(exports, proto.trb.clickhouse.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marleena/trb-proto",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {