@marleena/trb-proto 1.0.31 → 1.0.33

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