@marleena/trb-proto 1.0.53 → 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.
|
@@ -14,6 +14,20 @@ export class ListFilter extends jspb.Message {
|
|
|
14
14
|
getOffset(): number;
|
|
15
15
|
setOffset(value: number): ListFilter;
|
|
16
16
|
|
|
17
|
+
getSortBy(): string;
|
|
18
|
+
setSortBy(value: string): ListFilter;
|
|
19
|
+
|
|
20
|
+
getSortDesc(): boolean;
|
|
21
|
+
setSortDesc(value: boolean): ListFilter;
|
|
22
|
+
|
|
23
|
+
getFieldFiltersList(): Array<FieldFilter>;
|
|
24
|
+
setFieldFiltersList(value: Array<FieldFilter>): ListFilter;
|
|
25
|
+
clearFieldFiltersList(): ListFilter;
|
|
26
|
+
addFieldFilters(value?: FieldFilter, index?: number): FieldFilter;
|
|
27
|
+
|
|
28
|
+
getIntervalFilter(): number;
|
|
29
|
+
setIntervalFilter(value: number): ListFilter;
|
|
30
|
+
|
|
17
31
|
serializeBinary(): Uint8Array;
|
|
18
32
|
toObject(includeInstance?: boolean): ListFilter.AsObject;
|
|
19
33
|
static toObject(includeInstance: boolean, msg: ListFilter): ListFilter.AsObject;
|
|
@@ -27,6 +41,32 @@ export namespace ListFilter {
|
|
|
27
41
|
q: string,
|
|
28
42
|
limit: number,
|
|
29
43
|
offset: number,
|
|
44
|
+
sortBy: string,
|
|
45
|
+
sortDesc: boolean,
|
|
46
|
+
fieldFiltersList: Array<FieldFilter.AsObject>,
|
|
47
|
+
intervalFilter: number,
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class FieldFilter extends jspb.Message {
|
|
52
|
+
getField(): string;
|
|
53
|
+
setField(value: string): FieldFilter;
|
|
54
|
+
|
|
55
|
+
getValue(): string;
|
|
56
|
+
setValue(value: string): FieldFilter;
|
|
57
|
+
|
|
58
|
+
serializeBinary(): Uint8Array;
|
|
59
|
+
toObject(includeInstance?: boolean): FieldFilter.AsObject;
|
|
60
|
+
static toObject(includeInstance: boolean, msg: FieldFilter): FieldFilter.AsObject;
|
|
61
|
+
static serializeBinaryToWriter(message: FieldFilter, writer: jspb.BinaryWriter): void;
|
|
62
|
+
static deserializeBinary(bytes: Uint8Array): FieldFilter;
|
|
63
|
+
static deserializeBinaryFromReader(message: FieldFilter, reader: jspb.BinaryReader): FieldFilter;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace FieldFilter {
|
|
67
|
+
export type AsObject = {
|
|
68
|
+
field: string,
|
|
69
|
+
value: string,
|
|
30
70
|
}
|
|
31
71
|
}
|
|
32
72
|
|
|
@@ -56,6 +96,9 @@ export class ListLastDownloadsResponse extends jspb.Message {
|
|
|
56
96
|
clearItemsList(): ListLastDownloadsResponse;
|
|
57
97
|
addItems(value?: LastDownload, index?: number): LastDownload;
|
|
58
98
|
|
|
99
|
+
getTotal(): number;
|
|
100
|
+
setTotal(value: number): ListLastDownloadsResponse;
|
|
101
|
+
|
|
59
102
|
serializeBinary(): Uint8Array;
|
|
60
103
|
toObject(includeInstance?: boolean): ListLastDownloadsResponse.AsObject;
|
|
61
104
|
static toObject(includeInstance: boolean, msg: ListLastDownloadsResponse): ListLastDownloadsResponse.AsObject;
|
|
@@ -67,6 +110,7 @@ export class ListLastDownloadsResponse extends jspb.Message {
|
|
|
67
110
|
export namespace ListLastDownloadsResponse {
|
|
68
111
|
export type AsObject = {
|
|
69
112
|
itemsList: Array<LastDownload.AsObject>,
|
|
113
|
+
total: number,
|
|
70
114
|
}
|
|
71
115
|
}
|
|
72
116
|
|
|
@@ -25,6 +25,7 @@ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
|
|
|
25
25
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
26
26
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
27
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
28
|
+
goog.exportSymbol('proto.trb.historiccandle.v1.FieldFilter', null, global);
|
|
28
29
|
goog.exportSymbol('proto.trb.historiccandle.v1.HistoricCandleRow', null, global);
|
|
29
30
|
goog.exportSymbol('proto.trb.historiccandle.v1.LastDownload', null, global);
|
|
30
31
|
goog.exportSymbol('proto.trb.historiccandle.v1.ListCandlesRequest', null, global);
|
|
@@ -43,7 +44,7 @@ goog.exportSymbol('proto.trb.historiccandle.v1.ListLastDownloadsResponse', null,
|
|
|
43
44
|
* @constructor
|
|
44
45
|
*/
|
|
45
46
|
proto.trb.historiccandle.v1.ListFilter = function(opt_data) {
|
|
46
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
47
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.historiccandle.v1.ListFilter.repeatedFields_, null);
|
|
47
48
|
};
|
|
48
49
|
goog.inherits(proto.trb.historiccandle.v1.ListFilter, jspb.Message);
|
|
49
50
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -53,6 +54,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
53
54
|
*/
|
|
54
55
|
proto.trb.historiccandle.v1.ListFilter.displayName = 'proto.trb.historiccandle.v1.ListFilter';
|
|
55
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
|
+
}
|
|
56
78
|
/**
|
|
57
79
|
* Generated by JsPbCodeGenerator.
|
|
58
80
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -180,6 +202,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
180
202
|
proto.trb.historiccandle.v1.ListCandlesResponse.displayName = 'proto.trb.historiccandle.v1.ListCandlesResponse';
|
|
181
203
|
}
|
|
182
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
|
+
|
|
183
212
|
|
|
184
213
|
|
|
185
214
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -213,7 +242,12 @@ proto.trb.historiccandle.v1.ListFilter.toObject = function(includeInstance, msg)
|
|
|
213
242
|
var f, obj = {
|
|
214
243
|
q: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
215
244
|
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
216
|
-
offset: jspb.Message.getFieldWithDefault(msg, 3, 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)
|
|
217
251
|
};
|
|
218
252
|
|
|
219
253
|
if (includeInstance) {
|
|
@@ -262,6 +296,23 @@ proto.trb.historiccandle.v1.ListFilter.deserializeBinaryFromReader = function(ms
|
|
|
262
296
|
var value = /** @type {number} */ (reader.readInt32());
|
|
263
297
|
msg.setOffset(value);
|
|
264
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;
|
|
265
316
|
default:
|
|
266
317
|
reader.skipField();
|
|
267
318
|
break;
|
|
@@ -312,6 +363,35 @@ proto.trb.historiccandle.v1.ListFilter.serializeBinaryToWriter = function(messag
|
|
|
312
363
|
f
|
|
313
364
|
);
|
|
314
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
|
+
}
|
|
315
395
|
};
|
|
316
396
|
|
|
317
397
|
|
|
@@ -369,6 +449,258 @@ proto.trb.historiccandle.v1.ListFilter.prototype.setOffset = function(value) {
|
|
|
369
449
|
};
|
|
370
450
|
|
|
371
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
|
+
|
|
372
704
|
|
|
373
705
|
|
|
374
706
|
|
|
@@ -560,7 +892,8 @@ proto.trb.historiccandle.v1.ListLastDownloadsResponse.prototype.toObject = funct
|
|
|
560
892
|
proto.trb.historiccandle.v1.ListLastDownloadsResponse.toObject = function(includeInstance, msg) {
|
|
561
893
|
var f, obj = {
|
|
562
894
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
563
|
-
proto.trb.historiccandle.v1.LastDownload.toObject, includeInstance)
|
|
895
|
+
proto.trb.historiccandle.v1.LastDownload.toObject, includeInstance),
|
|
896
|
+
total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
564
897
|
};
|
|
565
898
|
|
|
566
899
|
if (includeInstance) {
|
|
@@ -602,6 +935,10 @@ proto.trb.historiccandle.v1.ListLastDownloadsResponse.deserializeBinaryFromReade
|
|
|
602
935
|
reader.readMessage(value,proto.trb.historiccandle.v1.LastDownload.deserializeBinaryFromReader);
|
|
603
936
|
msg.addItems(value);
|
|
604
937
|
break;
|
|
938
|
+
case 2:
|
|
939
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
940
|
+
msg.setTotal(value);
|
|
941
|
+
break;
|
|
605
942
|
default:
|
|
606
943
|
reader.skipField();
|
|
607
944
|
break;
|
|
@@ -639,6 +976,13 @@ proto.trb.historiccandle.v1.ListLastDownloadsResponse.serializeBinaryToWriter =
|
|
|
639
976
|
proto.trb.historiccandle.v1.LastDownload.serializeBinaryToWriter
|
|
640
977
|
);
|
|
641
978
|
}
|
|
979
|
+
f = message.getTotal();
|
|
980
|
+
if (f !== 0) {
|
|
981
|
+
writer.writeInt32(
|
|
982
|
+
2,
|
|
983
|
+
f
|
|
984
|
+
);
|
|
985
|
+
}
|
|
642
986
|
};
|
|
643
987
|
|
|
644
988
|
|
|
@@ -680,6 +1024,24 @@ proto.trb.historiccandle.v1.ListLastDownloadsResponse.prototype.clearItemsList =
|
|
|
680
1024
|
};
|
|
681
1025
|
|
|
682
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
|
+
|
|
683
1045
|
|
|
684
1046
|
|
|
685
1047
|
|
|
@@ -15,6 +15,17 @@ export class ListFilter extends jspb.Message {
|
|
|
15
15
|
getOffset(): number;
|
|
16
16
|
setOffset(value: number): ListFilter;
|
|
17
17
|
|
|
18
|
+
getSortBy(): string;
|
|
19
|
+
setSortBy(value: string): ListFilter;
|
|
20
|
+
|
|
21
|
+
getSortDesc(): boolean;
|
|
22
|
+
setSortDesc(value: boolean): ListFilter;
|
|
23
|
+
|
|
24
|
+
getFieldFiltersList(): Array<FieldFilter>;
|
|
25
|
+
setFieldFiltersList(value: Array<FieldFilter>): ListFilter;
|
|
26
|
+
clearFieldFiltersList(): ListFilter;
|
|
27
|
+
addFieldFilters(value?: FieldFilter, index?: number): FieldFilter;
|
|
28
|
+
|
|
18
29
|
serializeBinary(): Uint8Array;
|
|
19
30
|
toObject(includeInstance?: boolean): ListFilter.AsObject;
|
|
20
31
|
static toObject(includeInstance: boolean, msg: ListFilter): ListFilter.AsObject;
|
|
@@ -28,6 +39,31 @@ export namespace ListFilter {
|
|
|
28
39
|
q: string,
|
|
29
40
|
limit: number,
|
|
30
41
|
offset: number,
|
|
42
|
+
sortBy: string,
|
|
43
|
+
sortDesc: boolean,
|
|
44
|
+
fieldFiltersList: Array<FieldFilter.AsObject>,
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class FieldFilter extends jspb.Message {
|
|
49
|
+
getField(): string;
|
|
50
|
+
setField(value: string): FieldFilter;
|
|
51
|
+
|
|
52
|
+
getValue(): string;
|
|
53
|
+
setValue(value: string): FieldFilter;
|
|
54
|
+
|
|
55
|
+
serializeBinary(): Uint8Array;
|
|
56
|
+
toObject(includeInstance?: boolean): FieldFilter.AsObject;
|
|
57
|
+
static toObject(includeInstance: boolean, msg: FieldFilter): FieldFilter.AsObject;
|
|
58
|
+
static serializeBinaryToWriter(message: FieldFilter, writer: jspb.BinaryWriter): void;
|
|
59
|
+
static deserializeBinary(bytes: Uint8Array): FieldFilter;
|
|
60
|
+
static deserializeBinaryFromReader(message: FieldFilter, reader: jspb.BinaryReader): FieldFilter;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export namespace FieldFilter {
|
|
64
|
+
export type AsObject = {
|
|
65
|
+
field: string,
|
|
66
|
+
value: string,
|
|
31
67
|
}
|
|
32
68
|
}
|
|
33
69
|
|
|
@@ -91,6 +127,9 @@ export class ListInstrumentsResponse extends jspb.Message {
|
|
|
91
127
|
clearItemsList(): ListInstrumentsResponse;
|
|
92
128
|
addItems(value?: InstrumentListItem, index?: number): InstrumentListItem;
|
|
93
129
|
|
|
130
|
+
getTotal(): number;
|
|
131
|
+
setTotal(value: number): ListInstrumentsResponse;
|
|
132
|
+
|
|
94
133
|
serializeBinary(): Uint8Array;
|
|
95
134
|
toObject(includeInstance?: boolean): ListInstrumentsResponse.AsObject;
|
|
96
135
|
static toObject(includeInstance: boolean, msg: ListInstrumentsResponse): ListInstrumentsResponse.AsObject;
|
|
@@ -102,6 +141,7 @@ export class ListInstrumentsResponse extends jspb.Message {
|
|
|
102
141
|
export namespace ListInstrumentsResponse {
|
|
103
142
|
export type AsObject = {
|
|
104
143
|
itemsList: Array<InstrumentListItem.AsObject>,
|
|
144
|
+
total: number,
|
|
105
145
|
}
|
|
106
146
|
}
|
|
107
147
|
|
|
@@ -27,6 +27,7 @@ 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.instruments.v1.FieldFilter', null, global);
|
|
30
31
|
goog.exportSymbol('proto.trb.instruments.v1.InstrumentListItem', null, global);
|
|
31
32
|
goog.exportSymbol('proto.trb.instruments.v1.InstrumentVersion', null, global);
|
|
32
33
|
goog.exportSymbol('proto.trb.instruments.v1.ListFilter', null, global);
|
|
@@ -48,7 +49,7 @@ goog.exportSymbol('proto.trb.instruments.v1.UpsertInstrumentsResponse', null, gl
|
|
|
48
49
|
* @constructor
|
|
49
50
|
*/
|
|
50
51
|
proto.trb.instruments.v1.ListFilter = function(opt_data) {
|
|
51
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
52
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.instruments.v1.ListFilter.repeatedFields_, null);
|
|
52
53
|
};
|
|
53
54
|
goog.inherits(proto.trb.instruments.v1.ListFilter, jspb.Message);
|
|
54
55
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -58,6 +59,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
58
59
|
*/
|
|
59
60
|
proto.trb.instruments.v1.ListFilter.displayName = 'proto.trb.instruments.v1.ListFilter';
|
|
60
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Generated by JsPbCodeGenerator.
|
|
64
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
65
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
66
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
67
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
68
|
+
* valid.
|
|
69
|
+
* @extends {jspb.Message}
|
|
70
|
+
* @constructor
|
|
71
|
+
*/
|
|
72
|
+
proto.trb.instruments.v1.FieldFilter = function(opt_data) {
|
|
73
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
74
|
+
};
|
|
75
|
+
goog.inherits(proto.trb.instruments.v1.FieldFilter, jspb.Message);
|
|
76
|
+
if (goog.DEBUG && !COMPILED) {
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
* @override
|
|
80
|
+
*/
|
|
81
|
+
proto.trb.instruments.v1.FieldFilter.displayName = 'proto.trb.instruments.v1.FieldFilter';
|
|
82
|
+
}
|
|
61
83
|
/**
|
|
62
84
|
* Generated by JsPbCodeGenerator.
|
|
63
85
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -248,6 +270,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
248
270
|
proto.trb.instruments.v1.SyncInstrumentsResponse.displayName = 'proto.trb.instruments.v1.SyncInstrumentsResponse';
|
|
249
271
|
}
|
|
250
272
|
|
|
273
|
+
/**
|
|
274
|
+
* List of repeated fields within this message type.
|
|
275
|
+
* @private {!Array<number>}
|
|
276
|
+
* @const
|
|
277
|
+
*/
|
|
278
|
+
proto.trb.instruments.v1.ListFilter.repeatedFields_ = [6];
|
|
279
|
+
|
|
251
280
|
|
|
252
281
|
|
|
253
282
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -281,7 +310,11 @@ proto.trb.instruments.v1.ListFilter.toObject = function(includeInstance, msg) {
|
|
|
281
310
|
var f, obj = {
|
|
282
311
|
q: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
283
312
|
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
284
|
-
offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
313
|
+
offset: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
314
|
+
sortBy: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
315
|
+
sortDesc: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
316
|
+
fieldFiltersList: jspb.Message.toObjectList(msg.getFieldFiltersList(),
|
|
317
|
+
proto.trb.instruments.v1.FieldFilter.toObject, includeInstance)
|
|
285
318
|
};
|
|
286
319
|
|
|
287
320
|
if (includeInstance) {
|
|
@@ -330,6 +363,19 @@ proto.trb.instruments.v1.ListFilter.deserializeBinaryFromReader = function(msg,
|
|
|
330
363
|
var value = /** @type {number} */ (reader.readInt32());
|
|
331
364
|
msg.setOffset(value);
|
|
332
365
|
break;
|
|
366
|
+
case 4:
|
|
367
|
+
var value = /** @type {string} */ (reader.readString());
|
|
368
|
+
msg.setSortBy(value);
|
|
369
|
+
break;
|
|
370
|
+
case 5:
|
|
371
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
372
|
+
msg.setSortDesc(value);
|
|
373
|
+
break;
|
|
374
|
+
case 6:
|
|
375
|
+
var value = new proto.trb.instruments.v1.FieldFilter;
|
|
376
|
+
reader.readMessage(value,proto.trb.instruments.v1.FieldFilter.deserializeBinaryFromReader);
|
|
377
|
+
msg.addFieldFilters(value);
|
|
378
|
+
break;
|
|
333
379
|
default:
|
|
334
380
|
reader.skipField();
|
|
335
381
|
break;
|
|
@@ -380,6 +426,28 @@ proto.trb.instruments.v1.ListFilter.serializeBinaryToWriter = function(message,
|
|
|
380
426
|
f
|
|
381
427
|
);
|
|
382
428
|
}
|
|
429
|
+
f = message.getSortBy();
|
|
430
|
+
if (f.length > 0) {
|
|
431
|
+
writer.writeString(
|
|
432
|
+
4,
|
|
433
|
+
f
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
f = message.getSortDesc();
|
|
437
|
+
if (f) {
|
|
438
|
+
writer.writeBool(
|
|
439
|
+
5,
|
|
440
|
+
f
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
f = message.getFieldFiltersList();
|
|
444
|
+
if (f.length > 0) {
|
|
445
|
+
writer.writeRepeatedMessage(
|
|
446
|
+
6,
|
|
447
|
+
f,
|
|
448
|
+
proto.trb.instruments.v1.FieldFilter.serializeBinaryToWriter
|
|
449
|
+
);
|
|
450
|
+
}
|
|
383
451
|
};
|
|
384
452
|
|
|
385
453
|
|
|
@@ -437,6 +505,240 @@ proto.trb.instruments.v1.ListFilter.prototype.setOffset = function(value) {
|
|
|
437
505
|
};
|
|
438
506
|
|
|
439
507
|
|
|
508
|
+
/**
|
|
509
|
+
* optional string sort_by = 4;
|
|
510
|
+
* @return {string}
|
|
511
|
+
*/
|
|
512
|
+
proto.trb.instruments.v1.ListFilter.prototype.getSortBy = function() {
|
|
513
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @param {string} value
|
|
519
|
+
* @return {!proto.trb.instruments.v1.ListFilter} returns this
|
|
520
|
+
*/
|
|
521
|
+
proto.trb.instruments.v1.ListFilter.prototype.setSortBy = function(value) {
|
|
522
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* optional bool sort_desc = 5;
|
|
528
|
+
* @return {boolean}
|
|
529
|
+
*/
|
|
530
|
+
proto.trb.instruments.v1.ListFilter.prototype.getSortDesc = function() {
|
|
531
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @param {boolean} value
|
|
537
|
+
* @return {!proto.trb.instruments.v1.ListFilter} returns this
|
|
538
|
+
*/
|
|
539
|
+
proto.trb.instruments.v1.ListFilter.prototype.setSortDesc = function(value) {
|
|
540
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* repeated FieldFilter field_filters = 6;
|
|
546
|
+
* @return {!Array<!proto.trb.instruments.v1.FieldFilter>}
|
|
547
|
+
*/
|
|
548
|
+
proto.trb.instruments.v1.ListFilter.prototype.getFieldFiltersList = function() {
|
|
549
|
+
return /** @type{!Array<!proto.trb.instruments.v1.FieldFilter>} */ (
|
|
550
|
+
jspb.Message.getRepeatedWrapperField(this, proto.trb.instruments.v1.FieldFilter, 6));
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* @param {!Array<!proto.trb.instruments.v1.FieldFilter>} value
|
|
556
|
+
* @return {!proto.trb.instruments.v1.ListFilter} returns this
|
|
557
|
+
*/
|
|
558
|
+
proto.trb.instruments.v1.ListFilter.prototype.setFieldFiltersList = function(value) {
|
|
559
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* @param {!proto.trb.instruments.v1.FieldFilter=} opt_value
|
|
565
|
+
* @param {number=} opt_index
|
|
566
|
+
* @return {!proto.trb.instruments.v1.FieldFilter}
|
|
567
|
+
*/
|
|
568
|
+
proto.trb.instruments.v1.ListFilter.prototype.addFieldFilters = function(opt_value, opt_index) {
|
|
569
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.trb.instruments.v1.FieldFilter, opt_index);
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Clears the list making it empty but non-null.
|
|
575
|
+
* @return {!proto.trb.instruments.v1.ListFilter} returns this
|
|
576
|
+
*/
|
|
577
|
+
proto.trb.instruments.v1.ListFilter.prototype.clearFieldFiltersList = function() {
|
|
578
|
+
return this.setFieldFiltersList([]);
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
586
|
+
/**
|
|
587
|
+
* Creates an object representation of this proto.
|
|
588
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
589
|
+
* Optional fields that are not set will be set to undefined.
|
|
590
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
591
|
+
* For the list of reserved names please see:
|
|
592
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
593
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
594
|
+
* JSPB instance for transitional soy proto support:
|
|
595
|
+
* http://goto/soy-param-migration
|
|
596
|
+
* @return {!Object}
|
|
597
|
+
*/
|
|
598
|
+
proto.trb.instruments.v1.FieldFilter.prototype.toObject = function(opt_includeInstance) {
|
|
599
|
+
return proto.trb.instruments.v1.FieldFilter.toObject(opt_includeInstance, this);
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Static version of the {@see toObject} method.
|
|
605
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
606
|
+
* the JSPB instance for transitional soy proto support:
|
|
607
|
+
* http://goto/soy-param-migration
|
|
608
|
+
* @param {!proto.trb.instruments.v1.FieldFilter} msg The msg instance to transform.
|
|
609
|
+
* @return {!Object}
|
|
610
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
611
|
+
*/
|
|
612
|
+
proto.trb.instruments.v1.FieldFilter.toObject = function(includeInstance, msg) {
|
|
613
|
+
var f, obj = {
|
|
614
|
+
field: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
615
|
+
value: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
if (includeInstance) {
|
|
619
|
+
obj.$jspbMessageInstance = msg;
|
|
620
|
+
}
|
|
621
|
+
return obj;
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Deserializes binary data (in protobuf wire format).
|
|
628
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
629
|
+
* @return {!proto.trb.instruments.v1.FieldFilter}
|
|
630
|
+
*/
|
|
631
|
+
proto.trb.instruments.v1.FieldFilter.deserializeBinary = function(bytes) {
|
|
632
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
633
|
+
var msg = new proto.trb.instruments.v1.FieldFilter;
|
|
634
|
+
return proto.trb.instruments.v1.FieldFilter.deserializeBinaryFromReader(msg, reader);
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
640
|
+
* given reader into the given message object.
|
|
641
|
+
* @param {!proto.trb.instruments.v1.FieldFilter} msg The message object to deserialize into.
|
|
642
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
643
|
+
* @return {!proto.trb.instruments.v1.FieldFilter}
|
|
644
|
+
*/
|
|
645
|
+
proto.trb.instruments.v1.FieldFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
646
|
+
while (reader.nextField()) {
|
|
647
|
+
if (reader.isEndGroup()) {
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
var field = reader.getFieldNumber();
|
|
651
|
+
switch (field) {
|
|
652
|
+
case 1:
|
|
653
|
+
var value = /** @type {string} */ (reader.readString());
|
|
654
|
+
msg.setField(value);
|
|
655
|
+
break;
|
|
656
|
+
case 2:
|
|
657
|
+
var value = /** @type {string} */ (reader.readString());
|
|
658
|
+
msg.setValue(value);
|
|
659
|
+
break;
|
|
660
|
+
default:
|
|
661
|
+
reader.skipField();
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
return msg;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
671
|
+
* @return {!Uint8Array}
|
|
672
|
+
*/
|
|
673
|
+
proto.trb.instruments.v1.FieldFilter.prototype.serializeBinary = function() {
|
|
674
|
+
var writer = new jspb.BinaryWriter();
|
|
675
|
+
proto.trb.instruments.v1.FieldFilter.serializeBinaryToWriter(this, writer);
|
|
676
|
+
return writer.getResultBuffer();
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
682
|
+
* format), writing to the given BinaryWriter.
|
|
683
|
+
* @param {!proto.trb.instruments.v1.FieldFilter} message
|
|
684
|
+
* @param {!jspb.BinaryWriter} writer
|
|
685
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
686
|
+
*/
|
|
687
|
+
proto.trb.instruments.v1.FieldFilter.serializeBinaryToWriter = function(message, writer) {
|
|
688
|
+
var f = undefined;
|
|
689
|
+
f = message.getField();
|
|
690
|
+
if (f.length > 0) {
|
|
691
|
+
writer.writeString(
|
|
692
|
+
1,
|
|
693
|
+
f
|
|
694
|
+
);
|
|
695
|
+
}
|
|
696
|
+
f = message.getValue();
|
|
697
|
+
if (f.length > 0) {
|
|
698
|
+
writer.writeString(
|
|
699
|
+
2,
|
|
700
|
+
f
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* optional string field = 1;
|
|
708
|
+
* @return {string}
|
|
709
|
+
*/
|
|
710
|
+
proto.trb.instruments.v1.FieldFilter.prototype.getField = function() {
|
|
711
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @param {string} value
|
|
717
|
+
* @return {!proto.trb.instruments.v1.FieldFilter} returns this
|
|
718
|
+
*/
|
|
719
|
+
proto.trb.instruments.v1.FieldFilter.prototype.setField = function(value) {
|
|
720
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* optional string value = 2;
|
|
726
|
+
* @return {string}
|
|
727
|
+
*/
|
|
728
|
+
proto.trb.instruments.v1.FieldFilter.prototype.getValue = function() {
|
|
729
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @param {string} value
|
|
735
|
+
* @return {!proto.trb.instruments.v1.FieldFilter} returns this
|
|
736
|
+
*/
|
|
737
|
+
proto.trb.instruments.v1.FieldFilter.prototype.setValue = function(value) {
|
|
738
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
|
|
440
742
|
|
|
441
743
|
|
|
442
744
|
|
|
@@ -890,7 +1192,8 @@ proto.trb.instruments.v1.ListInstrumentsResponse.prototype.toObject = function(o
|
|
|
890
1192
|
proto.trb.instruments.v1.ListInstrumentsResponse.toObject = function(includeInstance, msg) {
|
|
891
1193
|
var f, obj = {
|
|
892
1194
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
893
|
-
proto.trb.instruments.v1.InstrumentListItem.toObject, includeInstance)
|
|
1195
|
+
proto.trb.instruments.v1.InstrumentListItem.toObject, includeInstance),
|
|
1196
|
+
total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
894
1197
|
};
|
|
895
1198
|
|
|
896
1199
|
if (includeInstance) {
|
|
@@ -932,6 +1235,10 @@ proto.trb.instruments.v1.ListInstrumentsResponse.deserializeBinaryFromReader = f
|
|
|
932
1235
|
reader.readMessage(value,proto.trb.instruments.v1.InstrumentListItem.deserializeBinaryFromReader);
|
|
933
1236
|
msg.addItems(value);
|
|
934
1237
|
break;
|
|
1238
|
+
case 2:
|
|
1239
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1240
|
+
msg.setTotal(value);
|
|
1241
|
+
break;
|
|
935
1242
|
default:
|
|
936
1243
|
reader.skipField();
|
|
937
1244
|
break;
|
|
@@ -969,6 +1276,13 @@ proto.trb.instruments.v1.ListInstrumentsResponse.serializeBinaryToWriter = funct
|
|
|
969
1276
|
proto.trb.instruments.v1.InstrumentListItem.serializeBinaryToWriter
|
|
970
1277
|
);
|
|
971
1278
|
}
|
|
1279
|
+
f = message.getTotal();
|
|
1280
|
+
if (f !== 0) {
|
|
1281
|
+
writer.writeInt32(
|
|
1282
|
+
2,
|
|
1283
|
+
f
|
|
1284
|
+
);
|
|
1285
|
+
}
|
|
972
1286
|
};
|
|
973
1287
|
|
|
974
1288
|
|
|
@@ -1010,6 +1324,24 @@ proto.trb.instruments.v1.ListInstrumentsResponse.prototype.clearItemsList = func
|
|
|
1010
1324
|
};
|
|
1011
1325
|
|
|
1012
1326
|
|
|
1327
|
+
/**
|
|
1328
|
+
* optional int32 total = 2;
|
|
1329
|
+
* @return {number}
|
|
1330
|
+
*/
|
|
1331
|
+
proto.trb.instruments.v1.ListInstrumentsResponse.prototype.getTotal = function() {
|
|
1332
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* @param {number} value
|
|
1338
|
+
* @return {!proto.trb.instruments.v1.ListInstrumentsResponse} returns this
|
|
1339
|
+
*/
|
|
1340
|
+
proto.trb.instruments.v1.ListInstrumentsResponse.prototype.setTotal = function(value) {
|
|
1341
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
|
|
1013
1345
|
|
|
1014
1346
|
|
|
1015
1347
|
|