@marleena/trb-proto 1.0.58 → 1.0.61

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.
@@ -36,8 +36,12 @@ goog.exportSymbol('proto.trb.strategysearch.v1.FloatRange', null, global);
36
36
  goog.exportSymbol('proto.trb.strategysearch.v1.GpSamplerParams', null, global);
37
37
  goog.exportSymbol('proto.trb.strategysearch.v1.GridSamplerParams', null, global);
38
38
  goog.exportSymbol('proto.trb.strategysearch.v1.HyperbandPrunerParams', null, global);
39
+ goog.exportSymbol('proto.trb.strategysearch.v1.IndicatorTypeRanges', null, global);
39
40
  goog.exportSymbol('proto.trb.strategysearch.v1.IntRange', null, global);
40
41
  goog.exportSymbol('proto.trb.strategysearch.v1.LogFloatRange', null, global);
42
+ goog.exportSymbol('proto.trb.strategysearch.v1.MarketCandidate', null, global);
43
+ goog.exportSymbol('proto.trb.strategysearch.v1.MarketMode', null, global);
44
+ goog.exportSymbol('proto.trb.strategysearch.v1.MarketSpace', null, global);
41
45
  goog.exportSymbol('proto.trb.strategysearch.v1.MedianPrunerParams', null, global);
42
46
  goog.exportSymbol('proto.trb.strategysearch.v1.NopPrunerParams', null, global);
43
47
  goog.exportSymbol('proto.trb.strategysearch.v1.NsgaIiSamplerParams', null, global);
@@ -59,6 +63,7 @@ goog.exportSymbol('proto.trb.strategysearch.v1.SearchRun', null, global);
59
63
  goog.exportSymbol('proto.trb.strategysearch.v1.SearchTask', null, global);
60
64
  goog.exportSymbol('proto.trb.strategysearch.v1.SeedTrial', null, global);
61
65
  goog.exportSymbol('proto.trb.strategysearch.v1.Storage', null, global);
66
+ goog.exportSymbol('proto.trb.strategysearch.v1.StrategyTemplate', null, global);
62
67
  goog.exportSymbol('proto.trb.strategysearch.v1.StudyConfig', null, global);
63
68
  goog.exportSymbol('proto.trb.strategysearch.v1.SuccessiveHalvingPrunerParams', null, global);
64
69
  goog.exportSymbol('proto.trb.strategysearch.v1.ThresholdPrunerParams', null, global);
@@ -845,6 +850,90 @@ if (goog.DEBUG && !COMPILED) {
845
850
  */
846
851
  proto.trb.strategysearch.v1.SearchTask.displayName = 'proto.trb.strategysearch.v1.SearchTask';
847
852
  }
853
+ /**
854
+ * Generated by JsPbCodeGenerator.
855
+ * @param {Array=} opt_data Optional initial data array, typically from a
856
+ * server response, or constructed directly in Javascript. The array is used
857
+ * in place and becomes part of the constructed object. It is not cloned.
858
+ * If no data is provided, the constructed object will be empty, but still
859
+ * valid.
860
+ * @extends {jspb.Message}
861
+ * @constructor
862
+ */
863
+ proto.trb.strategysearch.v1.IndicatorTypeRanges = function(opt_data) {
864
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.IndicatorTypeRanges.repeatedFields_, null);
865
+ };
866
+ goog.inherits(proto.trb.strategysearch.v1.IndicatorTypeRanges, jspb.Message);
867
+ if (goog.DEBUG && !COMPILED) {
868
+ /**
869
+ * @public
870
+ * @override
871
+ */
872
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.displayName = 'proto.trb.strategysearch.v1.IndicatorTypeRanges';
873
+ }
874
+ /**
875
+ * Generated by JsPbCodeGenerator.
876
+ * @param {Array=} opt_data Optional initial data array, typically from a
877
+ * server response, or constructed directly in Javascript. The array is used
878
+ * in place and becomes part of the constructed object. It is not cloned.
879
+ * If no data is provided, the constructed object will be empty, but still
880
+ * valid.
881
+ * @extends {jspb.Message}
882
+ * @constructor
883
+ */
884
+ proto.trb.strategysearch.v1.StrategyTemplate = function(opt_data) {
885
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.StrategyTemplate.repeatedFields_, null);
886
+ };
887
+ goog.inherits(proto.trb.strategysearch.v1.StrategyTemplate, jspb.Message);
888
+ if (goog.DEBUG && !COMPILED) {
889
+ /**
890
+ * @public
891
+ * @override
892
+ */
893
+ proto.trb.strategysearch.v1.StrategyTemplate.displayName = 'proto.trb.strategysearch.v1.StrategyTemplate';
894
+ }
895
+ /**
896
+ * Generated by JsPbCodeGenerator.
897
+ * @param {Array=} opt_data Optional initial data array, typically from a
898
+ * server response, or constructed directly in Javascript. The array is used
899
+ * in place and becomes part of the constructed object. It is not cloned.
900
+ * If no data is provided, the constructed object will be empty, but still
901
+ * valid.
902
+ * @extends {jspb.Message}
903
+ * @constructor
904
+ */
905
+ proto.trb.strategysearch.v1.MarketCandidate = function(opt_data) {
906
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
907
+ };
908
+ goog.inherits(proto.trb.strategysearch.v1.MarketCandidate, jspb.Message);
909
+ if (goog.DEBUG && !COMPILED) {
910
+ /**
911
+ * @public
912
+ * @override
913
+ */
914
+ proto.trb.strategysearch.v1.MarketCandidate.displayName = 'proto.trb.strategysearch.v1.MarketCandidate';
915
+ }
916
+ /**
917
+ * Generated by JsPbCodeGenerator.
918
+ * @param {Array=} opt_data Optional initial data array, typically from a
919
+ * server response, or constructed directly in Javascript. The array is used
920
+ * in place and becomes part of the constructed object. It is not cloned.
921
+ * If no data is provided, the constructed object will be empty, but still
922
+ * valid.
923
+ * @extends {jspb.Message}
924
+ * @constructor
925
+ */
926
+ proto.trb.strategysearch.v1.MarketSpace = function(opt_data) {
927
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.MarketSpace.repeatedFields_, null);
928
+ };
929
+ goog.inherits(proto.trb.strategysearch.v1.MarketSpace, jspb.Message);
930
+ if (goog.DEBUG && !COMPILED) {
931
+ /**
932
+ * @public
933
+ * @override
934
+ */
935
+ proto.trb.strategysearch.v1.MarketSpace.displayName = 'proto.trb.strategysearch.v1.MarketSpace';
936
+ }
848
937
 
849
938
 
850
939
 
@@ -9485,7 +9574,7 @@ proto.trb.strategysearch.v1.SearchProgress.prototype.setError = function(value)
9485
9574
  * @private {!Array<number>}
9486
9575
  * @const
9487
9576
  */
9488
- proto.trb.strategysearch.v1.SearchRun.repeatedFields_ = [4];
9577
+ proto.trb.strategysearch.v1.SearchRun.repeatedFields_ = [4,14];
9489
9578
 
9490
9579
 
9491
9580
 
@@ -9529,7 +9618,11 @@ progress: (f = msg.getProgress()) && proto.trb.strategysearch.v1.SearchProgress.
9529
9618
  engineVersion: jspb.Message.getFieldWithDefault(msg, 8, ""),
9530
9619
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
9531
9620
  startedAt: (f = msg.getStartedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
9532
- finishedAt: (f = msg.getFinishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
9621
+ finishedAt: (f = msg.getFinishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
9622
+ template: (f = msg.getTemplate()) && proto.trb.strategysearch.v1.StrategyTemplate.toObject(includeInstance, f),
9623
+ marketSpace: (f = msg.getMarketSpace()) && proto.trb.strategysearch.v1.MarketSpace.toObject(includeInstance, f),
9624
+ marketCandidatesList: jspb.Message.toObjectList(msg.getMarketCandidatesList(),
9625
+ proto.trb.strategysearch.v1.MarketCandidate.toObject, includeInstance)
9533
9626
  };
9534
9627
 
9535
9628
  if (includeInstance) {
@@ -9618,6 +9711,21 @@ proto.trb.strategysearch.v1.SearchRun.deserializeBinaryFromReader = function(msg
9618
9711
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
9619
9712
  msg.setFinishedAt(value);
9620
9713
  break;
9714
+ case 12:
9715
+ var value = new proto.trb.strategysearch.v1.StrategyTemplate;
9716
+ reader.readMessage(value,proto.trb.strategysearch.v1.StrategyTemplate.deserializeBinaryFromReader);
9717
+ msg.setTemplate(value);
9718
+ break;
9719
+ case 13:
9720
+ var value = new proto.trb.strategysearch.v1.MarketSpace;
9721
+ reader.readMessage(value,proto.trb.strategysearch.v1.MarketSpace.deserializeBinaryFromReader);
9722
+ msg.setMarketSpace(value);
9723
+ break;
9724
+ case 14:
9725
+ var value = new proto.trb.strategysearch.v1.MarketCandidate;
9726
+ reader.readMessage(value,proto.trb.strategysearch.v1.MarketCandidate.deserializeBinaryFromReader);
9727
+ msg.addMarketCandidates(value);
9728
+ break;
9621
9729
  default:
9622
9730
  reader.skipField();
9623
9731
  break;
@@ -9732,6 +9840,30 @@ proto.trb.strategysearch.v1.SearchRun.serializeBinaryToWriter = function(message
9732
9840
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
9733
9841
  );
9734
9842
  }
9843
+ f = message.getTemplate();
9844
+ if (f != null) {
9845
+ writer.writeMessage(
9846
+ 12,
9847
+ f,
9848
+ proto.trb.strategysearch.v1.StrategyTemplate.serializeBinaryToWriter
9849
+ );
9850
+ }
9851
+ f = message.getMarketSpace();
9852
+ if (f != null) {
9853
+ writer.writeMessage(
9854
+ 13,
9855
+ f,
9856
+ proto.trb.strategysearch.v1.MarketSpace.serializeBinaryToWriter
9857
+ );
9858
+ }
9859
+ f = message.getMarketCandidatesList();
9860
+ if (f.length > 0) {
9861
+ writer.writeRepeatedMessage(
9862
+ 14,
9863
+ f,
9864
+ proto.trb.strategysearch.v1.MarketCandidate.serializeBinaryToWriter
9865
+ );
9866
+ }
9735
9867
  };
9736
9868
 
9737
9869
 
@@ -10086,6 +10218,118 @@ proto.trb.strategysearch.v1.SearchRun.prototype.hasFinishedAt = function() {
10086
10218
  };
10087
10219
 
10088
10220
 
10221
+ /**
10222
+ * optional StrategyTemplate template = 12;
10223
+ * @return {?proto.trb.strategysearch.v1.StrategyTemplate}
10224
+ */
10225
+ proto.trb.strategysearch.v1.SearchRun.prototype.getTemplate = function() {
10226
+ return /** @type{?proto.trb.strategysearch.v1.StrategyTemplate} */ (
10227
+ jspb.Message.getWrapperField(this, proto.trb.strategysearch.v1.StrategyTemplate, 12));
10228
+ };
10229
+
10230
+
10231
+ /**
10232
+ * @param {?proto.trb.strategysearch.v1.StrategyTemplate|undefined} value
10233
+ * @return {!proto.trb.strategysearch.v1.SearchRun} returns this
10234
+ */
10235
+ proto.trb.strategysearch.v1.SearchRun.prototype.setTemplate = function(value) {
10236
+ return jspb.Message.setWrapperField(this, 12, value);
10237
+ };
10238
+
10239
+
10240
+ /**
10241
+ * Clears the message field making it undefined.
10242
+ * @return {!proto.trb.strategysearch.v1.SearchRun} returns this
10243
+ */
10244
+ proto.trb.strategysearch.v1.SearchRun.prototype.clearTemplate = function() {
10245
+ return this.setTemplate(undefined);
10246
+ };
10247
+
10248
+
10249
+ /**
10250
+ * Returns whether this field is set.
10251
+ * @return {boolean}
10252
+ */
10253
+ proto.trb.strategysearch.v1.SearchRun.prototype.hasTemplate = function() {
10254
+ return jspb.Message.getField(this, 12) != null;
10255
+ };
10256
+
10257
+
10258
+ /**
10259
+ * optional MarketSpace market_space = 13;
10260
+ * @return {?proto.trb.strategysearch.v1.MarketSpace}
10261
+ */
10262
+ proto.trb.strategysearch.v1.SearchRun.prototype.getMarketSpace = function() {
10263
+ return /** @type{?proto.trb.strategysearch.v1.MarketSpace} */ (
10264
+ jspb.Message.getWrapperField(this, proto.trb.strategysearch.v1.MarketSpace, 13));
10265
+ };
10266
+
10267
+
10268
+ /**
10269
+ * @param {?proto.trb.strategysearch.v1.MarketSpace|undefined} value
10270
+ * @return {!proto.trb.strategysearch.v1.SearchRun} returns this
10271
+ */
10272
+ proto.trb.strategysearch.v1.SearchRun.prototype.setMarketSpace = function(value) {
10273
+ return jspb.Message.setWrapperField(this, 13, value);
10274
+ };
10275
+
10276
+
10277
+ /**
10278
+ * Clears the message field making it undefined.
10279
+ * @return {!proto.trb.strategysearch.v1.SearchRun} returns this
10280
+ */
10281
+ proto.trb.strategysearch.v1.SearchRun.prototype.clearMarketSpace = function() {
10282
+ return this.setMarketSpace(undefined);
10283
+ };
10284
+
10285
+
10286
+ /**
10287
+ * Returns whether this field is set.
10288
+ * @return {boolean}
10289
+ */
10290
+ proto.trb.strategysearch.v1.SearchRun.prototype.hasMarketSpace = function() {
10291
+ return jspb.Message.getField(this, 13) != null;
10292
+ };
10293
+
10294
+
10295
+ /**
10296
+ * repeated MarketCandidate market_candidates = 14;
10297
+ * @return {!Array<!proto.trb.strategysearch.v1.MarketCandidate>}
10298
+ */
10299
+ proto.trb.strategysearch.v1.SearchRun.prototype.getMarketCandidatesList = function() {
10300
+ return /** @type{!Array<!proto.trb.strategysearch.v1.MarketCandidate>} */ (
10301
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.strategysearch.v1.MarketCandidate, 14));
10302
+ };
10303
+
10304
+
10305
+ /**
10306
+ * @param {!Array<!proto.trb.strategysearch.v1.MarketCandidate>} value
10307
+ * @return {!proto.trb.strategysearch.v1.SearchRun} returns this
10308
+ */
10309
+ proto.trb.strategysearch.v1.SearchRun.prototype.setMarketCandidatesList = function(value) {
10310
+ return jspb.Message.setRepeatedWrapperField(this, 14, value);
10311
+ };
10312
+
10313
+
10314
+ /**
10315
+ * @param {!proto.trb.strategysearch.v1.MarketCandidate=} opt_value
10316
+ * @param {number=} opt_index
10317
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate}
10318
+ */
10319
+ proto.trb.strategysearch.v1.SearchRun.prototype.addMarketCandidates = function(opt_value, opt_index) {
10320
+ return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.trb.strategysearch.v1.MarketCandidate, opt_index);
10321
+ };
10322
+
10323
+
10324
+ /**
10325
+ * Clears the list making it empty but non-null.
10326
+ * @return {!proto.trb.strategysearch.v1.SearchRun} returns this
10327
+ */
10328
+ proto.trb.strategysearch.v1.SearchRun.prototype.clearMarketCandidatesList = function() {
10329
+ return this.setMarketCandidatesList([]);
10330
+ };
10331
+
10332
+
10089
10333
 
10090
10334
 
10091
10335
 
@@ -10216,16 +10460,1123 @@ proto.trb.strategysearch.v1.SearchTask.prototype.setSearchId = function(value) {
10216
10460
  };
10217
10461
 
10218
10462
 
10463
+
10219
10464
  /**
10220
- * @enum {number}
10465
+ * List of repeated fields within this message type.
10466
+ * @private {!Array<number>}
10467
+ * @const
10221
10468
  */
10222
- proto.trb.strategysearch.v1.TrialState = {
10223
- TRIAL_STATE_UNSPECIFIED: 0,
10224
- TRIAL_STATE_RUNNING: 1,
10225
- TRIAL_STATE_WAITING: 2,
10226
- TRIAL_STATE_COMPLETE: 3,
10227
- TRIAL_STATE_PRUNED: 4,
10228
- TRIAL_STATE_FAIL: 5
10469
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.repeatedFields_ = [2];
10470
+
10471
+
10472
+
10473
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10474
+ /**
10475
+ * Creates an object representation of this proto.
10476
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10477
+ * Optional fields that are not set will be set to undefined.
10478
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10479
+ * For the list of reserved names please see:
10480
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10481
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10482
+ * JSPB instance for transitional soy proto support:
10483
+ * http://goto/soy-param-migration
10484
+ * @return {!Object}
10485
+ */
10486
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.toObject = function(opt_includeInstance) {
10487
+ return proto.trb.strategysearch.v1.IndicatorTypeRanges.toObject(opt_includeInstance, this);
10488
+ };
10489
+
10490
+
10491
+ /**
10492
+ * Static version of the {@see toObject} method.
10493
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10494
+ * the JSPB instance for transitional soy proto support:
10495
+ * http://goto/soy-param-migration
10496
+ * @param {!proto.trb.strategysearch.v1.IndicatorTypeRanges} msg The msg instance to transform.
10497
+ * @return {!Object}
10498
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10499
+ */
10500
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.toObject = function(includeInstance, msg) {
10501
+ var f, obj = {
10502
+ indicatorType: jspb.Message.getFieldWithDefault(msg, 1, ""),
10503
+ fieldRangesList: jspb.Message.toObjectList(msg.getFieldRangesList(),
10504
+ proto.trb.strategysearch.v1.ParamRange.toObject, includeInstance)
10505
+ };
10506
+
10507
+ if (includeInstance) {
10508
+ obj.$jspbMessageInstance = msg;
10509
+ }
10510
+ return obj;
10511
+ };
10512
+ }
10513
+
10514
+
10515
+ /**
10516
+ * Deserializes binary data (in protobuf wire format).
10517
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10518
+ * @return {!proto.trb.strategysearch.v1.IndicatorTypeRanges}
10519
+ */
10520
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.deserializeBinary = function(bytes) {
10521
+ var reader = new jspb.BinaryReader(bytes);
10522
+ var msg = new proto.trb.strategysearch.v1.IndicatorTypeRanges;
10523
+ return proto.trb.strategysearch.v1.IndicatorTypeRanges.deserializeBinaryFromReader(msg, reader);
10524
+ };
10525
+
10526
+
10527
+ /**
10528
+ * Deserializes binary data (in protobuf wire format) from the
10529
+ * given reader into the given message object.
10530
+ * @param {!proto.trb.strategysearch.v1.IndicatorTypeRanges} msg The message object to deserialize into.
10531
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10532
+ * @return {!proto.trb.strategysearch.v1.IndicatorTypeRanges}
10533
+ */
10534
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.deserializeBinaryFromReader = function(msg, reader) {
10535
+ while (reader.nextField()) {
10536
+ if (reader.isEndGroup()) {
10537
+ break;
10538
+ }
10539
+ var field = reader.getFieldNumber();
10540
+ switch (field) {
10541
+ case 1:
10542
+ var value = /** @type {string} */ (reader.readString());
10543
+ msg.setIndicatorType(value);
10544
+ break;
10545
+ case 2:
10546
+ var value = new proto.trb.strategysearch.v1.ParamRange;
10547
+ reader.readMessage(value,proto.trb.strategysearch.v1.ParamRange.deserializeBinaryFromReader);
10548
+ msg.addFieldRanges(value);
10549
+ break;
10550
+ default:
10551
+ reader.skipField();
10552
+ break;
10553
+ }
10554
+ }
10555
+ return msg;
10556
+ };
10557
+
10558
+
10559
+ /**
10560
+ * Serializes the message to binary data (in protobuf wire format).
10561
+ * @return {!Uint8Array}
10562
+ */
10563
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.serializeBinary = function() {
10564
+ var writer = new jspb.BinaryWriter();
10565
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.serializeBinaryToWriter(this, writer);
10566
+ return writer.getResultBuffer();
10567
+ };
10568
+
10569
+
10570
+ /**
10571
+ * Serializes the given message to binary data (in protobuf wire
10572
+ * format), writing to the given BinaryWriter.
10573
+ * @param {!proto.trb.strategysearch.v1.IndicatorTypeRanges} message
10574
+ * @param {!jspb.BinaryWriter} writer
10575
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10576
+ */
10577
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.serializeBinaryToWriter = function(message, writer) {
10578
+ var f = undefined;
10579
+ f = message.getIndicatorType();
10580
+ if (f.length > 0) {
10581
+ writer.writeString(
10582
+ 1,
10583
+ f
10584
+ );
10585
+ }
10586
+ f = message.getFieldRangesList();
10587
+ if (f.length > 0) {
10588
+ writer.writeRepeatedMessage(
10589
+ 2,
10590
+ f,
10591
+ proto.trb.strategysearch.v1.ParamRange.serializeBinaryToWriter
10592
+ );
10593
+ }
10594
+ };
10595
+
10596
+
10597
+ /**
10598
+ * optional string indicator_type = 1;
10599
+ * @return {string}
10600
+ */
10601
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.getIndicatorType = function() {
10602
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10603
+ };
10604
+
10605
+
10606
+ /**
10607
+ * @param {string} value
10608
+ * @return {!proto.trb.strategysearch.v1.IndicatorTypeRanges} returns this
10609
+ */
10610
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.setIndicatorType = function(value) {
10611
+ return jspb.Message.setProto3StringField(this, 1, value);
10612
+ };
10613
+
10614
+
10615
+ /**
10616
+ * repeated ParamRange field_ranges = 2;
10617
+ * @return {!Array<!proto.trb.strategysearch.v1.ParamRange>}
10618
+ */
10619
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.getFieldRangesList = function() {
10620
+ return /** @type{!Array<!proto.trb.strategysearch.v1.ParamRange>} */ (
10621
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.strategysearch.v1.ParamRange, 2));
10622
+ };
10623
+
10624
+
10625
+ /**
10626
+ * @param {!Array<!proto.trb.strategysearch.v1.ParamRange>} value
10627
+ * @return {!proto.trb.strategysearch.v1.IndicatorTypeRanges} returns this
10628
+ */
10629
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.setFieldRangesList = function(value) {
10630
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
10631
+ };
10632
+
10633
+
10634
+ /**
10635
+ * @param {!proto.trb.strategysearch.v1.ParamRange=} opt_value
10636
+ * @param {number=} opt_index
10637
+ * @return {!proto.trb.strategysearch.v1.ParamRange}
10638
+ */
10639
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.addFieldRanges = function(opt_value, opt_index) {
10640
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.trb.strategysearch.v1.ParamRange, opt_index);
10641
+ };
10642
+
10643
+
10644
+ /**
10645
+ * Clears the list making it empty but non-null.
10646
+ * @return {!proto.trb.strategysearch.v1.IndicatorTypeRanges} returns this
10647
+ */
10648
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.prototype.clearFieldRangesList = function() {
10649
+ return this.setFieldRangesList([]);
10650
+ };
10651
+
10652
+
10653
+
10654
+ /**
10655
+ * List of repeated fields within this message type.
10656
+ * @private {!Array<number>}
10657
+ * @const
10658
+ */
10659
+ proto.trb.strategysearch.v1.StrategyTemplate.repeatedFields_ = [1,5,6];
10660
+
10661
+
10662
+
10663
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10664
+ /**
10665
+ * Creates an object representation of this proto.
10666
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10667
+ * Optional fields that are not set will be set to undefined.
10668
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10669
+ * For the list of reserved names please see:
10670
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10671
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10672
+ * JSPB instance for transitional soy proto support:
10673
+ * http://goto/soy-param-migration
10674
+ * @return {!Object}
10675
+ */
10676
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.toObject = function(opt_includeInstance) {
10677
+ return proto.trb.strategysearch.v1.StrategyTemplate.toObject(opt_includeInstance, this);
10678
+ };
10679
+
10680
+
10681
+ /**
10682
+ * Static version of the {@see toObject} method.
10683
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10684
+ * the JSPB instance for transitional soy proto support:
10685
+ * http://goto/soy-param-migration
10686
+ * @param {!proto.trb.strategysearch.v1.StrategyTemplate} msg The msg instance to transform.
10687
+ * @return {!Object}
10688
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10689
+ */
10690
+ proto.trb.strategysearch.v1.StrategyTemplate.toObject = function(includeInstance, msg) {
10691
+ var f, obj = {
10692
+ indicatorPaletteList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
10693
+ maxIndicators: jspb.Message.getFieldWithDefault(msg, 2, 0),
10694
+ maxConditionsEntry: jspb.Message.getFieldWithDefault(msg, 3, 0),
10695
+ maxConditionsExit: jspb.Message.getFieldWithDefault(msg, 4, 0),
10696
+ typeRangesList: jspb.Message.toObjectList(msg.getTypeRangesList(),
10697
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.toObject, includeInstance),
10698
+ allowedOpsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
10699
+ };
10700
+
10701
+ if (includeInstance) {
10702
+ obj.$jspbMessageInstance = msg;
10703
+ }
10704
+ return obj;
10705
+ };
10706
+ }
10707
+
10708
+
10709
+ /**
10710
+ * Deserializes binary data (in protobuf wire format).
10711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10712
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate}
10713
+ */
10714
+ proto.trb.strategysearch.v1.StrategyTemplate.deserializeBinary = function(bytes) {
10715
+ var reader = new jspb.BinaryReader(bytes);
10716
+ var msg = new proto.trb.strategysearch.v1.StrategyTemplate;
10717
+ return proto.trb.strategysearch.v1.StrategyTemplate.deserializeBinaryFromReader(msg, reader);
10718
+ };
10719
+
10720
+
10721
+ /**
10722
+ * Deserializes binary data (in protobuf wire format) from the
10723
+ * given reader into the given message object.
10724
+ * @param {!proto.trb.strategysearch.v1.StrategyTemplate} msg The message object to deserialize into.
10725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10726
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate}
10727
+ */
10728
+ proto.trb.strategysearch.v1.StrategyTemplate.deserializeBinaryFromReader = function(msg, reader) {
10729
+ while (reader.nextField()) {
10730
+ if (reader.isEndGroup()) {
10731
+ break;
10732
+ }
10733
+ var field = reader.getFieldNumber();
10734
+ switch (field) {
10735
+ case 1:
10736
+ var value = /** @type {string} */ (reader.readString());
10737
+ msg.addIndicatorPalette(value);
10738
+ break;
10739
+ case 2:
10740
+ var value = /** @type {number} */ (reader.readUint32());
10741
+ msg.setMaxIndicators(value);
10742
+ break;
10743
+ case 3:
10744
+ var value = /** @type {number} */ (reader.readUint32());
10745
+ msg.setMaxConditionsEntry(value);
10746
+ break;
10747
+ case 4:
10748
+ var value = /** @type {number} */ (reader.readUint32());
10749
+ msg.setMaxConditionsExit(value);
10750
+ break;
10751
+ case 5:
10752
+ var value = new proto.trb.strategysearch.v1.IndicatorTypeRanges;
10753
+ reader.readMessage(value,proto.trb.strategysearch.v1.IndicatorTypeRanges.deserializeBinaryFromReader);
10754
+ msg.addTypeRanges(value);
10755
+ break;
10756
+ case 6:
10757
+ var values = /** @type {!Array<!proto.trb.strategysearch.v1.CompareOp>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
10758
+ for (var i = 0; i < values.length; i++) {
10759
+ msg.addAllowedOps(values[i]);
10760
+ }
10761
+ break;
10762
+ default:
10763
+ reader.skipField();
10764
+ break;
10765
+ }
10766
+ }
10767
+ return msg;
10768
+ };
10769
+
10770
+
10771
+ /**
10772
+ * Serializes the message to binary data (in protobuf wire format).
10773
+ * @return {!Uint8Array}
10774
+ */
10775
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.serializeBinary = function() {
10776
+ var writer = new jspb.BinaryWriter();
10777
+ proto.trb.strategysearch.v1.StrategyTemplate.serializeBinaryToWriter(this, writer);
10778
+ return writer.getResultBuffer();
10779
+ };
10780
+
10781
+
10782
+ /**
10783
+ * Serializes the given message to binary data (in protobuf wire
10784
+ * format), writing to the given BinaryWriter.
10785
+ * @param {!proto.trb.strategysearch.v1.StrategyTemplate} message
10786
+ * @param {!jspb.BinaryWriter} writer
10787
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10788
+ */
10789
+ proto.trb.strategysearch.v1.StrategyTemplate.serializeBinaryToWriter = function(message, writer) {
10790
+ var f = undefined;
10791
+ f = message.getIndicatorPaletteList();
10792
+ if (f.length > 0) {
10793
+ writer.writeRepeatedString(
10794
+ 1,
10795
+ f
10796
+ );
10797
+ }
10798
+ f = message.getMaxIndicators();
10799
+ if (f !== 0) {
10800
+ writer.writeUint32(
10801
+ 2,
10802
+ f
10803
+ );
10804
+ }
10805
+ f = message.getMaxConditionsEntry();
10806
+ if (f !== 0) {
10807
+ writer.writeUint32(
10808
+ 3,
10809
+ f
10810
+ );
10811
+ }
10812
+ f = message.getMaxConditionsExit();
10813
+ if (f !== 0) {
10814
+ writer.writeUint32(
10815
+ 4,
10816
+ f
10817
+ );
10818
+ }
10819
+ f = message.getTypeRangesList();
10820
+ if (f.length > 0) {
10821
+ writer.writeRepeatedMessage(
10822
+ 5,
10823
+ f,
10824
+ proto.trb.strategysearch.v1.IndicatorTypeRanges.serializeBinaryToWriter
10825
+ );
10826
+ }
10827
+ f = message.getAllowedOpsList();
10828
+ if (f.length > 0) {
10829
+ writer.writePackedEnum(
10830
+ 6,
10831
+ f
10832
+ );
10833
+ }
10834
+ };
10835
+
10836
+
10837
+ /**
10838
+ * repeated string indicator_palette = 1;
10839
+ * @return {!Array<string>}
10840
+ */
10841
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.getIndicatorPaletteList = function() {
10842
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
10843
+ };
10844
+
10845
+
10846
+ /**
10847
+ * @param {!Array<string>} value
10848
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10849
+ */
10850
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.setIndicatorPaletteList = function(value) {
10851
+ return jspb.Message.setField(this, 1, value || []);
10852
+ };
10853
+
10854
+
10855
+ /**
10856
+ * @param {string} value
10857
+ * @param {number=} opt_index
10858
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10859
+ */
10860
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.addIndicatorPalette = function(value, opt_index) {
10861
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
10862
+ };
10863
+
10864
+
10865
+ /**
10866
+ * Clears the list making it empty but non-null.
10867
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10868
+ */
10869
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.clearIndicatorPaletteList = function() {
10870
+ return this.setIndicatorPaletteList([]);
10871
+ };
10872
+
10873
+
10874
+ /**
10875
+ * optional uint32 max_indicators = 2;
10876
+ * @return {number}
10877
+ */
10878
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.getMaxIndicators = function() {
10879
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
10880
+ };
10881
+
10882
+
10883
+ /**
10884
+ * @param {number} value
10885
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10886
+ */
10887
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.setMaxIndicators = function(value) {
10888
+ return jspb.Message.setProto3IntField(this, 2, value);
10889
+ };
10890
+
10891
+
10892
+ /**
10893
+ * optional uint32 max_conditions_entry = 3;
10894
+ * @return {number}
10895
+ */
10896
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.getMaxConditionsEntry = function() {
10897
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
10898
+ };
10899
+
10900
+
10901
+ /**
10902
+ * @param {number} value
10903
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10904
+ */
10905
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.setMaxConditionsEntry = function(value) {
10906
+ return jspb.Message.setProto3IntField(this, 3, value);
10907
+ };
10908
+
10909
+
10910
+ /**
10911
+ * optional uint32 max_conditions_exit = 4;
10912
+ * @return {number}
10913
+ */
10914
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.getMaxConditionsExit = function() {
10915
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
10916
+ };
10917
+
10918
+
10919
+ /**
10920
+ * @param {number} value
10921
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10922
+ */
10923
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.setMaxConditionsExit = function(value) {
10924
+ return jspb.Message.setProto3IntField(this, 4, value);
10925
+ };
10926
+
10927
+
10928
+ /**
10929
+ * repeated IndicatorTypeRanges type_ranges = 5;
10930
+ * @return {!Array<!proto.trb.strategysearch.v1.IndicatorTypeRanges>}
10931
+ */
10932
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.getTypeRangesList = function() {
10933
+ return /** @type{!Array<!proto.trb.strategysearch.v1.IndicatorTypeRanges>} */ (
10934
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.strategysearch.v1.IndicatorTypeRanges, 5));
10935
+ };
10936
+
10937
+
10938
+ /**
10939
+ * @param {!Array<!proto.trb.strategysearch.v1.IndicatorTypeRanges>} value
10940
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10941
+ */
10942
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.setTypeRangesList = function(value) {
10943
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
10944
+ };
10945
+
10946
+
10947
+ /**
10948
+ * @param {!proto.trb.strategysearch.v1.IndicatorTypeRanges=} opt_value
10949
+ * @param {number=} opt_index
10950
+ * @return {!proto.trb.strategysearch.v1.IndicatorTypeRanges}
10951
+ */
10952
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.addTypeRanges = function(opt_value, opt_index) {
10953
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.trb.strategysearch.v1.IndicatorTypeRanges, opt_index);
10954
+ };
10955
+
10956
+
10957
+ /**
10958
+ * Clears the list making it empty but non-null.
10959
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10960
+ */
10961
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.clearTypeRangesList = function() {
10962
+ return this.setTypeRangesList([]);
10963
+ };
10964
+
10965
+
10966
+ /**
10967
+ * repeated CompareOp allowed_ops = 6;
10968
+ * @return {!Array<!proto.trb.strategysearch.v1.CompareOp>}
10969
+ */
10970
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.getAllowedOpsList = function() {
10971
+ return /** @type {!Array<!proto.trb.strategysearch.v1.CompareOp>} */ (jspb.Message.getRepeatedField(this, 6));
10972
+ };
10973
+
10974
+
10975
+ /**
10976
+ * @param {!Array<!proto.trb.strategysearch.v1.CompareOp>} value
10977
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10978
+ */
10979
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.setAllowedOpsList = function(value) {
10980
+ return jspb.Message.setField(this, 6, value || []);
10981
+ };
10982
+
10983
+
10984
+ /**
10985
+ * @param {!proto.trb.strategysearch.v1.CompareOp} value
10986
+ * @param {number=} opt_index
10987
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10988
+ */
10989
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.addAllowedOps = function(value, opt_index) {
10990
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
10991
+ };
10992
+
10993
+
10994
+ /**
10995
+ * Clears the list making it empty but non-null.
10996
+ * @return {!proto.trb.strategysearch.v1.StrategyTemplate} returns this
10997
+ */
10998
+ proto.trb.strategysearch.v1.StrategyTemplate.prototype.clearAllowedOpsList = function() {
10999
+ return this.setAllowedOpsList([]);
11000
+ };
11001
+
11002
+
11003
+
11004
+
11005
+
11006
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11007
+ /**
11008
+ * Creates an object representation of this proto.
11009
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11010
+ * Optional fields that are not set will be set to undefined.
11011
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11012
+ * For the list of reserved names please see:
11013
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11014
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11015
+ * JSPB instance for transitional soy proto support:
11016
+ * http://goto/soy-param-migration
11017
+ * @return {!Object}
11018
+ */
11019
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.toObject = function(opt_includeInstance) {
11020
+ return proto.trb.strategysearch.v1.MarketCandidate.toObject(opt_includeInstance, this);
11021
+ };
11022
+
11023
+
11024
+ /**
11025
+ * Static version of the {@see toObject} method.
11026
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11027
+ * the JSPB instance for transitional soy proto support:
11028
+ * http://goto/soy-param-migration
11029
+ * @param {!proto.trb.strategysearch.v1.MarketCandidate} msg The msg instance to transform.
11030
+ * @return {!Object}
11031
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11032
+ */
11033
+ proto.trb.strategysearch.v1.MarketCandidate.toObject = function(includeInstance, msg) {
11034
+ var f, obj = {
11035
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
11036
+ interval: jspb.Message.getFieldWithDefault(msg, 2, 0),
11037
+ availableStart: (f = msg.getAvailableStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
11038
+ availableEnd: (f = msg.getAvailableEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
11039
+ };
11040
+
11041
+ if (includeInstance) {
11042
+ obj.$jspbMessageInstance = msg;
11043
+ }
11044
+ return obj;
11045
+ };
11046
+ }
11047
+
11048
+
11049
+ /**
11050
+ * Deserializes binary data (in protobuf wire format).
11051
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11052
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate}
11053
+ */
11054
+ proto.trb.strategysearch.v1.MarketCandidate.deserializeBinary = function(bytes) {
11055
+ var reader = new jspb.BinaryReader(bytes);
11056
+ var msg = new proto.trb.strategysearch.v1.MarketCandidate;
11057
+ return proto.trb.strategysearch.v1.MarketCandidate.deserializeBinaryFromReader(msg, reader);
11058
+ };
11059
+
11060
+
11061
+ /**
11062
+ * Deserializes binary data (in protobuf wire format) from the
11063
+ * given reader into the given message object.
11064
+ * @param {!proto.trb.strategysearch.v1.MarketCandidate} msg The message object to deserialize into.
11065
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11066
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate}
11067
+ */
11068
+ proto.trb.strategysearch.v1.MarketCandidate.deserializeBinaryFromReader = function(msg, reader) {
11069
+ while (reader.nextField()) {
11070
+ if (reader.isEndGroup()) {
11071
+ break;
11072
+ }
11073
+ var field = reader.getFieldNumber();
11074
+ switch (field) {
11075
+ case 1:
11076
+ var value = /** @type {string} */ (reader.readString());
11077
+ msg.setUid(value);
11078
+ break;
11079
+ case 2:
11080
+ var value = /** @type {number} */ (reader.readInt32());
11081
+ msg.setInterval(value);
11082
+ break;
11083
+ case 3:
11084
+ var value = new google_protobuf_timestamp_pb.Timestamp;
11085
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
11086
+ msg.setAvailableStart(value);
11087
+ break;
11088
+ case 4:
11089
+ var value = new google_protobuf_timestamp_pb.Timestamp;
11090
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
11091
+ msg.setAvailableEnd(value);
11092
+ break;
11093
+ default:
11094
+ reader.skipField();
11095
+ break;
11096
+ }
11097
+ }
11098
+ return msg;
11099
+ };
11100
+
11101
+
11102
+ /**
11103
+ * Serializes the message to binary data (in protobuf wire format).
11104
+ * @return {!Uint8Array}
11105
+ */
11106
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.serializeBinary = function() {
11107
+ var writer = new jspb.BinaryWriter();
11108
+ proto.trb.strategysearch.v1.MarketCandidate.serializeBinaryToWriter(this, writer);
11109
+ return writer.getResultBuffer();
11110
+ };
11111
+
11112
+
11113
+ /**
11114
+ * Serializes the given message to binary data (in protobuf wire
11115
+ * format), writing to the given BinaryWriter.
11116
+ * @param {!proto.trb.strategysearch.v1.MarketCandidate} message
11117
+ * @param {!jspb.BinaryWriter} writer
11118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11119
+ */
11120
+ proto.trb.strategysearch.v1.MarketCandidate.serializeBinaryToWriter = function(message, writer) {
11121
+ var f = undefined;
11122
+ f = message.getUid();
11123
+ if (f.length > 0) {
11124
+ writer.writeString(
11125
+ 1,
11126
+ f
11127
+ );
11128
+ }
11129
+ f = message.getInterval();
11130
+ if (f !== 0) {
11131
+ writer.writeInt32(
11132
+ 2,
11133
+ f
11134
+ );
11135
+ }
11136
+ f = message.getAvailableStart();
11137
+ if (f != null) {
11138
+ writer.writeMessage(
11139
+ 3,
11140
+ f,
11141
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
11142
+ );
11143
+ }
11144
+ f = message.getAvailableEnd();
11145
+ if (f != null) {
11146
+ writer.writeMessage(
11147
+ 4,
11148
+ f,
11149
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
11150
+ );
11151
+ }
11152
+ };
11153
+
11154
+
11155
+ /**
11156
+ * optional string uid = 1;
11157
+ * @return {string}
11158
+ */
11159
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.getUid = function() {
11160
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11161
+ };
11162
+
11163
+
11164
+ /**
11165
+ * @param {string} value
11166
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate} returns this
11167
+ */
11168
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.setUid = function(value) {
11169
+ return jspb.Message.setProto3StringField(this, 1, value);
11170
+ };
11171
+
11172
+
11173
+ /**
11174
+ * optional int32 interval = 2;
11175
+ * @return {number}
11176
+ */
11177
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.getInterval = function() {
11178
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11179
+ };
11180
+
11181
+
11182
+ /**
11183
+ * @param {number} value
11184
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate} returns this
11185
+ */
11186
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.setInterval = function(value) {
11187
+ return jspb.Message.setProto3IntField(this, 2, value);
11188
+ };
11189
+
11190
+
11191
+ /**
11192
+ * optional google.protobuf.Timestamp available_start = 3;
11193
+ * @return {?proto.google.protobuf.Timestamp}
11194
+ */
11195
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.getAvailableStart = function() {
11196
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
11197
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
11198
+ };
11199
+
11200
+
11201
+ /**
11202
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
11203
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate} returns this
11204
+ */
11205
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.setAvailableStart = function(value) {
11206
+ return jspb.Message.setWrapperField(this, 3, value);
11207
+ };
11208
+
11209
+
11210
+ /**
11211
+ * Clears the message field making it undefined.
11212
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate} returns this
11213
+ */
11214
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.clearAvailableStart = function() {
11215
+ return this.setAvailableStart(undefined);
11216
+ };
11217
+
11218
+
11219
+ /**
11220
+ * Returns whether this field is set.
11221
+ * @return {boolean}
11222
+ */
11223
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.hasAvailableStart = function() {
11224
+ return jspb.Message.getField(this, 3) != null;
11225
+ };
11226
+
11227
+
11228
+ /**
11229
+ * optional google.protobuf.Timestamp available_end = 4;
11230
+ * @return {?proto.google.protobuf.Timestamp}
11231
+ */
11232
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.getAvailableEnd = function() {
11233
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
11234
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
11235
+ };
11236
+
11237
+
11238
+ /**
11239
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
11240
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate} returns this
11241
+ */
11242
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.setAvailableEnd = function(value) {
11243
+ return jspb.Message.setWrapperField(this, 4, value);
11244
+ };
11245
+
11246
+
11247
+ /**
11248
+ * Clears the message field making it undefined.
11249
+ * @return {!proto.trb.strategysearch.v1.MarketCandidate} returns this
11250
+ */
11251
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.clearAvailableEnd = function() {
11252
+ return this.setAvailableEnd(undefined);
11253
+ };
11254
+
11255
+
11256
+ /**
11257
+ * Returns whether this field is set.
11258
+ * @return {boolean}
11259
+ */
11260
+ proto.trb.strategysearch.v1.MarketCandidate.prototype.hasAvailableEnd = function() {
11261
+ return jspb.Message.getField(this, 4) != null;
11262
+ };
11263
+
11264
+
11265
+
11266
+ /**
11267
+ * List of repeated fields within this message type.
11268
+ * @private {!Array<number>}
11269
+ * @const
11270
+ */
11271
+ proto.trb.strategysearch.v1.MarketSpace.repeatedFields_ = [2,3];
11272
+
11273
+
11274
+
11275
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11276
+ /**
11277
+ * Creates an object representation of this proto.
11278
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11279
+ * Optional fields that are not set will be set to undefined.
11280
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11281
+ * For the list of reserved names please see:
11282
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11283
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11284
+ * JSPB instance for transitional soy proto support:
11285
+ * http://goto/soy-param-migration
11286
+ * @return {!Object}
11287
+ */
11288
+ proto.trb.strategysearch.v1.MarketSpace.prototype.toObject = function(opt_includeInstance) {
11289
+ return proto.trb.strategysearch.v1.MarketSpace.toObject(opt_includeInstance, this);
11290
+ };
11291
+
11292
+
11293
+ /**
11294
+ * Static version of the {@see toObject} method.
11295
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11296
+ * the JSPB instance for transitional soy proto support:
11297
+ * http://goto/soy-param-migration
11298
+ * @param {!proto.trb.strategysearch.v1.MarketSpace} msg The msg instance to transform.
11299
+ * @return {!Object}
11300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11301
+ */
11302
+ proto.trb.strategysearch.v1.MarketSpace.toObject = function(includeInstance, msg) {
11303
+ var f, obj = {
11304
+ mode: jspb.Message.getFieldWithDefault(msg, 1, 0),
11305
+ uidFilterList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11306
+ intervalFilterList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
11307
+ periodLengthDays: jspb.Message.getFieldWithDefault(msg, 4, 0),
11308
+ minHistoryDays: jspb.Message.getFieldWithDefault(msg, 5, 0)
11309
+ };
11310
+
11311
+ if (includeInstance) {
11312
+ obj.$jspbMessageInstance = msg;
11313
+ }
11314
+ return obj;
11315
+ };
11316
+ }
11317
+
11318
+
11319
+ /**
11320
+ * Deserializes binary data (in protobuf wire format).
11321
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11322
+ * @return {!proto.trb.strategysearch.v1.MarketSpace}
11323
+ */
11324
+ proto.trb.strategysearch.v1.MarketSpace.deserializeBinary = function(bytes) {
11325
+ var reader = new jspb.BinaryReader(bytes);
11326
+ var msg = new proto.trb.strategysearch.v1.MarketSpace;
11327
+ return proto.trb.strategysearch.v1.MarketSpace.deserializeBinaryFromReader(msg, reader);
11328
+ };
11329
+
11330
+
11331
+ /**
11332
+ * Deserializes binary data (in protobuf wire format) from the
11333
+ * given reader into the given message object.
11334
+ * @param {!proto.trb.strategysearch.v1.MarketSpace} msg The message object to deserialize into.
11335
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11336
+ * @return {!proto.trb.strategysearch.v1.MarketSpace}
11337
+ */
11338
+ proto.trb.strategysearch.v1.MarketSpace.deserializeBinaryFromReader = function(msg, reader) {
11339
+ while (reader.nextField()) {
11340
+ if (reader.isEndGroup()) {
11341
+ break;
11342
+ }
11343
+ var field = reader.getFieldNumber();
11344
+ switch (field) {
11345
+ case 1:
11346
+ var value = /** @type {!proto.trb.strategysearch.v1.MarketMode} */ (reader.readEnum());
11347
+ msg.setMode(value);
11348
+ break;
11349
+ case 2:
11350
+ var value = /** @type {string} */ (reader.readString());
11351
+ msg.addUidFilter(value);
11352
+ break;
11353
+ case 3:
11354
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
11355
+ for (var i = 0; i < values.length; i++) {
11356
+ msg.addIntervalFilter(values[i]);
11357
+ }
11358
+ break;
11359
+ case 4:
11360
+ var value = /** @type {number} */ (reader.readUint32());
11361
+ msg.setPeriodLengthDays(value);
11362
+ break;
11363
+ case 5:
11364
+ var value = /** @type {number} */ (reader.readUint32());
11365
+ msg.setMinHistoryDays(value);
11366
+ break;
11367
+ default:
11368
+ reader.skipField();
11369
+ break;
11370
+ }
11371
+ }
11372
+ return msg;
11373
+ };
11374
+
11375
+
11376
+ /**
11377
+ * Serializes the message to binary data (in protobuf wire format).
11378
+ * @return {!Uint8Array}
11379
+ */
11380
+ proto.trb.strategysearch.v1.MarketSpace.prototype.serializeBinary = function() {
11381
+ var writer = new jspb.BinaryWriter();
11382
+ proto.trb.strategysearch.v1.MarketSpace.serializeBinaryToWriter(this, writer);
11383
+ return writer.getResultBuffer();
11384
+ };
11385
+
11386
+
11387
+ /**
11388
+ * Serializes the given message to binary data (in protobuf wire
11389
+ * format), writing to the given BinaryWriter.
11390
+ * @param {!proto.trb.strategysearch.v1.MarketSpace} message
11391
+ * @param {!jspb.BinaryWriter} writer
11392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11393
+ */
11394
+ proto.trb.strategysearch.v1.MarketSpace.serializeBinaryToWriter = function(message, writer) {
11395
+ var f = undefined;
11396
+ f = message.getMode();
11397
+ if (f !== 0.0) {
11398
+ writer.writeEnum(
11399
+ 1,
11400
+ f
11401
+ );
11402
+ }
11403
+ f = message.getUidFilterList();
11404
+ if (f.length > 0) {
11405
+ writer.writeRepeatedString(
11406
+ 2,
11407
+ f
11408
+ );
11409
+ }
11410
+ f = message.getIntervalFilterList();
11411
+ if (f.length > 0) {
11412
+ writer.writePackedInt32(
11413
+ 3,
11414
+ f
11415
+ );
11416
+ }
11417
+ f = message.getPeriodLengthDays();
11418
+ if (f !== 0) {
11419
+ writer.writeUint32(
11420
+ 4,
11421
+ f
11422
+ );
11423
+ }
11424
+ f = message.getMinHistoryDays();
11425
+ if (f !== 0) {
11426
+ writer.writeUint32(
11427
+ 5,
11428
+ f
11429
+ );
11430
+ }
11431
+ };
11432
+
11433
+
11434
+ /**
11435
+ * optional MarketMode mode = 1;
11436
+ * @return {!proto.trb.strategysearch.v1.MarketMode}
11437
+ */
11438
+ proto.trb.strategysearch.v1.MarketSpace.prototype.getMode = function() {
11439
+ return /** @type {!proto.trb.strategysearch.v1.MarketMode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
11440
+ };
11441
+
11442
+
11443
+ /**
11444
+ * @param {!proto.trb.strategysearch.v1.MarketMode} value
11445
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11446
+ */
11447
+ proto.trb.strategysearch.v1.MarketSpace.prototype.setMode = function(value) {
11448
+ return jspb.Message.setProto3EnumField(this, 1, value);
11449
+ };
11450
+
11451
+
11452
+ /**
11453
+ * repeated string uid_filter = 2;
11454
+ * @return {!Array<string>}
11455
+ */
11456
+ proto.trb.strategysearch.v1.MarketSpace.prototype.getUidFilterList = function() {
11457
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11458
+ };
11459
+
11460
+
11461
+ /**
11462
+ * @param {!Array<string>} value
11463
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11464
+ */
11465
+ proto.trb.strategysearch.v1.MarketSpace.prototype.setUidFilterList = function(value) {
11466
+ return jspb.Message.setField(this, 2, value || []);
11467
+ };
11468
+
11469
+
11470
+ /**
11471
+ * @param {string} value
11472
+ * @param {number=} opt_index
11473
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11474
+ */
11475
+ proto.trb.strategysearch.v1.MarketSpace.prototype.addUidFilter = function(value, opt_index) {
11476
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11477
+ };
11478
+
11479
+
11480
+ /**
11481
+ * Clears the list making it empty but non-null.
11482
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11483
+ */
11484
+ proto.trb.strategysearch.v1.MarketSpace.prototype.clearUidFilterList = function() {
11485
+ return this.setUidFilterList([]);
11486
+ };
11487
+
11488
+
11489
+ /**
11490
+ * repeated int32 interval_filter = 3;
11491
+ * @return {!Array<number>}
11492
+ */
11493
+ proto.trb.strategysearch.v1.MarketSpace.prototype.getIntervalFilterList = function() {
11494
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
11495
+ };
11496
+
11497
+
11498
+ /**
11499
+ * @param {!Array<number>} value
11500
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11501
+ */
11502
+ proto.trb.strategysearch.v1.MarketSpace.prototype.setIntervalFilterList = function(value) {
11503
+ return jspb.Message.setField(this, 3, value || []);
11504
+ };
11505
+
11506
+
11507
+ /**
11508
+ * @param {number} value
11509
+ * @param {number=} opt_index
11510
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11511
+ */
11512
+ proto.trb.strategysearch.v1.MarketSpace.prototype.addIntervalFilter = function(value, opt_index) {
11513
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
11514
+ };
11515
+
11516
+
11517
+ /**
11518
+ * Clears the list making it empty but non-null.
11519
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11520
+ */
11521
+ proto.trb.strategysearch.v1.MarketSpace.prototype.clearIntervalFilterList = function() {
11522
+ return this.setIntervalFilterList([]);
11523
+ };
11524
+
11525
+
11526
+ /**
11527
+ * optional uint32 period_length_days = 4;
11528
+ * @return {number}
11529
+ */
11530
+ proto.trb.strategysearch.v1.MarketSpace.prototype.getPeriodLengthDays = function() {
11531
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
11532
+ };
11533
+
11534
+
11535
+ /**
11536
+ * @param {number} value
11537
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11538
+ */
11539
+ proto.trb.strategysearch.v1.MarketSpace.prototype.setPeriodLengthDays = function(value) {
11540
+ return jspb.Message.setProto3IntField(this, 4, value);
11541
+ };
11542
+
11543
+
11544
+ /**
11545
+ * optional uint32 min_history_days = 5;
11546
+ * @return {number}
11547
+ */
11548
+ proto.trb.strategysearch.v1.MarketSpace.prototype.getMinHistoryDays = function() {
11549
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
11550
+ };
11551
+
11552
+
11553
+ /**
11554
+ * @param {number} value
11555
+ * @return {!proto.trb.strategysearch.v1.MarketSpace} returns this
11556
+ */
11557
+ proto.trb.strategysearch.v1.MarketSpace.prototype.setMinHistoryDays = function(value) {
11558
+ return jspb.Message.setProto3IntField(this, 5, value);
11559
+ };
11560
+
11561
+
11562
+ /**
11563
+ * @enum {number}
11564
+ */
11565
+ proto.trb.strategysearch.v1.TrialState = {
11566
+ TRIAL_STATE_UNSPECIFIED: 0,
11567
+ TRIAL_STATE_RUNNING: 1,
11568
+ TRIAL_STATE_WAITING: 2,
11569
+ TRIAL_STATE_COMPLETE: 3,
11570
+ TRIAL_STATE_PRUNED: 4,
11571
+ TRIAL_STATE_FAIL: 5
11572
+ };
11573
+
11574
+ /**
11575
+ * @enum {number}
11576
+ */
11577
+ proto.trb.strategysearch.v1.MarketMode = {
11578
+ MARKET_MODE_PALETTE: 0,
11579
+ MARKET_MODE_RANDOM: 1
10229
11580
  };
10230
11581
 
10231
11582
  goog.object.extend(exports, proto.trb.strategysearch.v1);