@marleena/trb-proto 1.0.53 → 1.0.55

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.
@@ -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, null, null);
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
 
@@ -209,6 +209,15 @@ export class SearchBudget extends jspb.Message {
209
209
  getSeed(): number;
210
210
  setSeed(value: number): SearchBudget;
211
211
 
212
+ getHalvingEta(): number;
213
+ setHalvingEta(value: number): SearchBudget;
214
+
215
+ getLowFidelityFrac(): number;
216
+ setLowFidelityFrac(value: number): SearchBudget;
217
+
218
+ getDisableCache(): boolean;
219
+ setDisableCache(value: boolean): SearchBudget;
220
+
212
221
  serializeBinary(): Uint8Array;
213
222
  toObject(includeInstance?: boolean): SearchBudget.AsObject;
214
223
  static toObject(includeInstance: boolean, msg: SearchBudget): SearchBudget.AsObject;
@@ -225,6 +234,81 @@ export namespace SearchBudget {
225
234
  population: number,
226
235
  generations: number,
227
236
  seed: number,
237
+ halvingEta: number,
238
+ lowFidelityFrac: number,
239
+ disableCache: boolean,
240
+ }
241
+ }
242
+
243
+ export class EvalTask extends jspb.Message {
244
+ getEvalId(): string;
245
+ setEvalId(value: string): EvalTask;
246
+
247
+ getSearchId(): string;
248
+ setSearchId(value: string): EvalTask;
249
+
250
+ getSpec(): strategy_spec_pb.StrategySpec | undefined;
251
+ setSpec(value?: strategy_spec_pb.StrategySpec): EvalTask;
252
+ hasSpec(): boolean;
253
+ clearSpec(): EvalTask;
254
+
255
+ getConfig(): strategy_backtest_pb.BacktestConfig | undefined;
256
+ setConfig(value?: strategy_backtest_pb.BacktestConfig): EvalTask;
257
+ hasConfig(): boolean;
258
+ clearConfig(): EvalTask;
259
+
260
+ getDataFraction(): number;
261
+ setDataFraction(value: number): EvalTask;
262
+
263
+ getReplySubject(): string;
264
+ setReplySubject(value: string): EvalTask;
265
+
266
+ serializeBinary(): Uint8Array;
267
+ toObject(includeInstance?: boolean): EvalTask.AsObject;
268
+ static toObject(includeInstance: boolean, msg: EvalTask): EvalTask.AsObject;
269
+ static serializeBinaryToWriter(message: EvalTask, writer: jspb.BinaryWriter): void;
270
+ static deserializeBinary(bytes: Uint8Array): EvalTask;
271
+ static deserializeBinaryFromReader(message: EvalTask, reader: jspb.BinaryReader): EvalTask;
272
+ }
273
+
274
+ export namespace EvalTask {
275
+ export type AsObject = {
276
+ evalId: string,
277
+ searchId: string,
278
+ spec?: strategy_spec_pb.StrategySpec.AsObject,
279
+ config?: strategy_backtest_pb.BacktestConfig.AsObject,
280
+ dataFraction: number,
281
+ replySubject: string,
282
+ }
283
+ }
284
+
285
+ export class EvalResult extends jspb.Message {
286
+ getEvalId(): string;
287
+ setEvalId(value: string): EvalResult;
288
+
289
+ getMetricsMap(): jspb.Map<string, number>;
290
+ clearMetricsMap(): EvalResult;
291
+
292
+ getError(): string;
293
+ setError(value: string): EvalResult;
294
+
295
+ getEngineVersion(): string;
296
+ setEngineVersion(value: string): EvalResult;
297
+
298
+ serializeBinary(): Uint8Array;
299
+ toObject(includeInstance?: boolean): EvalResult.AsObject;
300
+ static toObject(includeInstance: boolean, msg: EvalResult): EvalResult.AsObject;
301
+ static serializeBinaryToWriter(message: EvalResult, writer: jspb.BinaryWriter): void;
302
+ static deserializeBinary(bytes: Uint8Array): EvalResult;
303
+ static deserializeBinaryFromReader(message: EvalResult, reader: jspb.BinaryReader): EvalResult;
304
+ }
305
+
306
+ export namespace EvalResult {
307
+ export type AsObject = {
308
+ evalId: string,
309
+ metricsMap: Array<[string, number]>,
310
+ error: string,
311
+ engineVersion: string,
228
312
  }
229
313
  }
230
314