@marleena/trb-proto 1.0.57 → 1.0.59
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.
- package/gen/js-ts/strategysearch/StrategysearchServiceClientPb.ts +86 -0
- package/gen/js-ts/strategysearch/search_pb.d.ts +184 -0
- package/gen/js-ts/strategysearch/search_pb.js +1548 -15
- package/gen/js-ts/strategysearch/strategysearch_pb.d.ts +104 -0
- package/gen/js-ts/strategysearch/strategysearch_pb.js +891 -1
- package/package.json +1 -1
|
@@ -37,9 +37,13 @@ goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetRequest', null,
|
|
|
37
37
|
goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetResponse', null, global);
|
|
38
38
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsRequest', null, global);
|
|
39
39
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsResponse', null, global);
|
|
40
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.GetParamImportancesRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.GetParamImportancesResponse', null, global);
|
|
40
42
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetSearchProgressRequest', null, global);
|
|
41
43
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchPresetsRequest', null, global);
|
|
42
44
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchPresetsResponse', null, global);
|
|
45
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchTrialsRequest', null, global);
|
|
46
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchTrialsResponse', null, global);
|
|
43
47
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesRequest', null, global);
|
|
44
48
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesResponse', null, global);
|
|
45
49
|
goog.exportSymbol('proto.trb.strategysearch.v1.SearchPreset', null, global);
|
|
@@ -150,6 +154,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
150
154
|
*/
|
|
151
155
|
proto.trb.strategysearch.v1.GetBestTrialsResponse.displayName = 'proto.trb.strategysearch.v1.GetBestTrialsResponse';
|
|
152
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Generated by JsPbCodeGenerator.
|
|
159
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
160
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
161
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
162
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
163
|
+
* valid.
|
|
164
|
+
* @extends {jspb.Message}
|
|
165
|
+
* @constructor
|
|
166
|
+
*/
|
|
167
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest = function(opt_data) {
|
|
168
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
169
|
+
};
|
|
170
|
+
goog.inherits(proto.trb.strategysearch.v1.ListSearchTrialsRequest, jspb.Message);
|
|
171
|
+
if (goog.DEBUG && !COMPILED) {
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
* @override
|
|
175
|
+
*/
|
|
176
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.displayName = 'proto.trb.strategysearch.v1.ListSearchTrialsRequest';
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Generated by JsPbCodeGenerator.
|
|
180
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
181
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
182
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
183
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
184
|
+
* valid.
|
|
185
|
+
* @extends {jspb.Message}
|
|
186
|
+
* @constructor
|
|
187
|
+
*/
|
|
188
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse = function(opt_data) {
|
|
189
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.ListSearchTrialsResponse.repeatedFields_, null);
|
|
190
|
+
};
|
|
191
|
+
goog.inherits(proto.trb.strategysearch.v1.ListSearchTrialsResponse, jspb.Message);
|
|
192
|
+
if (goog.DEBUG && !COMPILED) {
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
* @override
|
|
196
|
+
*/
|
|
197
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.displayName = 'proto.trb.strategysearch.v1.ListSearchTrialsResponse';
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Generated by JsPbCodeGenerator.
|
|
201
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
202
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
203
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
204
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
205
|
+
* valid.
|
|
206
|
+
* @extends {jspb.Message}
|
|
207
|
+
* @constructor
|
|
208
|
+
*/
|
|
209
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest = function(opt_data) {
|
|
210
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
211
|
+
};
|
|
212
|
+
goog.inherits(proto.trb.strategysearch.v1.GetParamImportancesRequest, jspb.Message);
|
|
213
|
+
if (goog.DEBUG && !COMPILED) {
|
|
214
|
+
/**
|
|
215
|
+
* @public
|
|
216
|
+
* @override
|
|
217
|
+
*/
|
|
218
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.displayName = 'proto.trb.strategysearch.v1.GetParamImportancesRequest';
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Generated by JsPbCodeGenerator.
|
|
222
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
223
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
224
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
225
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
226
|
+
* valid.
|
|
227
|
+
* @extends {jspb.Message}
|
|
228
|
+
* @constructor
|
|
229
|
+
*/
|
|
230
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse = function(opt_data) {
|
|
231
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.GetParamImportancesResponse.repeatedFields_, null);
|
|
232
|
+
};
|
|
233
|
+
goog.inherits(proto.trb.strategysearch.v1.GetParamImportancesResponse, jspb.Message);
|
|
234
|
+
if (goog.DEBUG && !COMPILED) {
|
|
235
|
+
/**
|
|
236
|
+
* @public
|
|
237
|
+
* @override
|
|
238
|
+
*/
|
|
239
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.displayName = 'proto.trb.strategysearch.v1.GetParamImportancesResponse';
|
|
240
|
+
}
|
|
153
241
|
/**
|
|
154
242
|
* Generated by JsPbCodeGenerator.
|
|
155
243
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -383,7 +471,9 @@ baseSpec: (f = msg.getBaseSpec()) && strategysearch_spec_pb.StrategySearchSpec.t
|
|
|
383
471
|
searchSpaceList: jspb.Message.toObjectList(msg.getSearchSpaceList(),
|
|
384
472
|
strategysearch_search_pb.ParamRange.toObject, includeInstance),
|
|
385
473
|
study: (f = msg.getStudy()) && strategysearch_search_pb.StudyConfig.toObject(includeInstance, f),
|
|
386
|
-
config: (f = msg.getConfig()) && strategysearch_backtest_pb.BacktestConfig.toObject(includeInstance, f)
|
|
474
|
+
config: (f = msg.getConfig()) && strategysearch_backtest_pb.BacktestConfig.toObject(includeInstance, f),
|
|
475
|
+
template: (f = msg.getTemplate()) && strategysearch_search_pb.StrategyTemplate.toObject(includeInstance, f),
|
|
476
|
+
marketSpace: (f = msg.getMarketSpace()) && strategysearch_search_pb.MarketSpace.toObject(includeInstance, f)
|
|
387
477
|
};
|
|
388
478
|
|
|
389
479
|
if (includeInstance) {
|
|
@@ -444,6 +534,16 @@ proto.trb.strategysearch.v1.SubmitSearchRequest.deserializeBinaryFromReader = fu
|
|
|
444
534
|
reader.readMessage(value,strategysearch_backtest_pb.BacktestConfig.deserializeBinaryFromReader);
|
|
445
535
|
msg.setConfig(value);
|
|
446
536
|
break;
|
|
537
|
+
case 6:
|
|
538
|
+
var value = new strategysearch_search_pb.StrategyTemplate;
|
|
539
|
+
reader.readMessage(value,strategysearch_search_pb.StrategyTemplate.deserializeBinaryFromReader);
|
|
540
|
+
msg.setTemplate(value);
|
|
541
|
+
break;
|
|
542
|
+
case 7:
|
|
543
|
+
var value = new strategysearch_search_pb.MarketSpace;
|
|
544
|
+
reader.readMessage(value,strategysearch_search_pb.MarketSpace.deserializeBinaryFromReader);
|
|
545
|
+
msg.setMarketSpace(value);
|
|
546
|
+
break;
|
|
447
547
|
default:
|
|
448
548
|
reader.skipField();
|
|
449
549
|
break;
|
|
@@ -512,6 +612,22 @@ proto.trb.strategysearch.v1.SubmitSearchRequest.serializeBinaryToWriter = functi
|
|
|
512
612
|
strategysearch_backtest_pb.BacktestConfig.serializeBinaryToWriter
|
|
513
613
|
);
|
|
514
614
|
}
|
|
615
|
+
f = message.getTemplate();
|
|
616
|
+
if (f != null) {
|
|
617
|
+
writer.writeMessage(
|
|
618
|
+
6,
|
|
619
|
+
f,
|
|
620
|
+
strategysearch_search_pb.StrategyTemplate.serializeBinaryToWriter
|
|
621
|
+
);
|
|
622
|
+
}
|
|
623
|
+
f = message.getMarketSpace();
|
|
624
|
+
if (f != null) {
|
|
625
|
+
writer.writeMessage(
|
|
626
|
+
7,
|
|
627
|
+
f,
|
|
628
|
+
strategysearch_search_pb.MarketSpace.serializeBinaryToWriter
|
|
629
|
+
);
|
|
630
|
+
}
|
|
515
631
|
};
|
|
516
632
|
|
|
517
633
|
|
|
@@ -682,6 +798,80 @@ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.hasConfig = function()
|
|
|
682
798
|
};
|
|
683
799
|
|
|
684
800
|
|
|
801
|
+
/**
|
|
802
|
+
* optional StrategyTemplate template = 6;
|
|
803
|
+
* @return {?proto.trb.strategysearch.v1.StrategyTemplate}
|
|
804
|
+
*/
|
|
805
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.getTemplate = function() {
|
|
806
|
+
return /** @type{?proto.trb.strategysearch.v1.StrategyTemplate} */ (
|
|
807
|
+
jspb.Message.getWrapperField(this, strategysearch_search_pb.StrategyTemplate, 6));
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* @param {?proto.trb.strategysearch.v1.StrategyTemplate|undefined} value
|
|
813
|
+
* @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
|
|
814
|
+
*/
|
|
815
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.setTemplate = function(value) {
|
|
816
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Clears the message field making it undefined.
|
|
822
|
+
* @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
|
|
823
|
+
*/
|
|
824
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.clearTemplate = function() {
|
|
825
|
+
return this.setTemplate(undefined);
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Returns whether this field is set.
|
|
831
|
+
* @return {boolean}
|
|
832
|
+
*/
|
|
833
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.hasTemplate = function() {
|
|
834
|
+
return jspb.Message.getField(this, 6) != null;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* optional MarketSpace market_space = 7;
|
|
840
|
+
* @return {?proto.trb.strategysearch.v1.MarketSpace}
|
|
841
|
+
*/
|
|
842
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.getMarketSpace = function() {
|
|
843
|
+
return /** @type{?proto.trb.strategysearch.v1.MarketSpace} */ (
|
|
844
|
+
jspb.Message.getWrapperField(this, strategysearch_search_pb.MarketSpace, 7));
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* @param {?proto.trb.strategysearch.v1.MarketSpace|undefined} value
|
|
850
|
+
* @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
|
|
851
|
+
*/
|
|
852
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.setMarketSpace = function(value) {
|
|
853
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Clears the message field making it undefined.
|
|
859
|
+
* @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
|
|
860
|
+
*/
|
|
861
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.clearMarketSpace = function() {
|
|
862
|
+
return this.setMarketSpace(undefined);
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Returns whether this field is set.
|
|
868
|
+
* @return {boolean}
|
|
869
|
+
*/
|
|
870
|
+
proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.hasMarketSpace = function() {
|
|
871
|
+
return jspb.Message.getField(this, 7) != null;
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
|
|
685
875
|
|
|
686
876
|
|
|
687
877
|
|
|
@@ -1295,6 +1485,706 @@ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.clearItemsList = fun
|
|
|
1295
1485
|
|
|
1296
1486
|
|
|
1297
1487
|
|
|
1488
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1489
|
+
/**
|
|
1490
|
+
* Creates an object representation of this proto.
|
|
1491
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1492
|
+
* Optional fields that are not set will be set to undefined.
|
|
1493
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1494
|
+
* For the list of reserved names please see:
|
|
1495
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1496
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1497
|
+
* JSPB instance for transitional soy proto support:
|
|
1498
|
+
* http://goto/soy-param-migration
|
|
1499
|
+
* @return {!Object}
|
|
1500
|
+
*/
|
|
1501
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1502
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsRequest.toObject(opt_includeInstance, this);
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Static version of the {@see toObject} method.
|
|
1508
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1509
|
+
* the JSPB instance for transitional soy proto support:
|
|
1510
|
+
* http://goto/soy-param-migration
|
|
1511
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} msg The msg instance to transform.
|
|
1512
|
+
* @return {!Object}
|
|
1513
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1514
|
+
*/
|
|
1515
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.toObject = function(includeInstance, msg) {
|
|
1516
|
+
var f, obj = {
|
|
1517
|
+
searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1518
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1519
|
+
offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
1520
|
+
};
|
|
1521
|
+
|
|
1522
|
+
if (includeInstance) {
|
|
1523
|
+
obj.$jspbMessageInstance = msg;
|
|
1524
|
+
}
|
|
1525
|
+
return obj;
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1532
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1533
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest}
|
|
1534
|
+
*/
|
|
1535
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinary = function(bytes) {
|
|
1536
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1537
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchTrialsRequest;
|
|
1538
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1544
|
+
* given reader into the given message object.
|
|
1545
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} msg The message object to deserialize into.
|
|
1546
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1547
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest}
|
|
1548
|
+
*/
|
|
1549
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1550
|
+
while (reader.nextField()) {
|
|
1551
|
+
if (reader.isEndGroup()) {
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1554
|
+
var field = reader.getFieldNumber();
|
|
1555
|
+
switch (field) {
|
|
1556
|
+
case 1:
|
|
1557
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1558
|
+
msg.setSearchId(value);
|
|
1559
|
+
break;
|
|
1560
|
+
case 2:
|
|
1561
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1562
|
+
msg.setLimit(value);
|
|
1563
|
+
break;
|
|
1564
|
+
case 3:
|
|
1565
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1566
|
+
msg.setOffset(value);
|
|
1567
|
+
break;
|
|
1568
|
+
default:
|
|
1569
|
+
reader.skipField();
|
|
1570
|
+
break;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
return msg;
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1579
|
+
* @return {!Uint8Array}
|
|
1580
|
+
*/
|
|
1581
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.serializeBinary = function() {
|
|
1582
|
+
var writer = new jspb.BinaryWriter();
|
|
1583
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.serializeBinaryToWriter(this, writer);
|
|
1584
|
+
return writer.getResultBuffer();
|
|
1585
|
+
};
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1590
|
+
* format), writing to the given BinaryWriter.
|
|
1591
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} message
|
|
1592
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1593
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1594
|
+
*/
|
|
1595
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1596
|
+
var f = undefined;
|
|
1597
|
+
f = message.getSearchId();
|
|
1598
|
+
if (f.length > 0) {
|
|
1599
|
+
writer.writeString(
|
|
1600
|
+
1,
|
|
1601
|
+
f
|
|
1602
|
+
);
|
|
1603
|
+
}
|
|
1604
|
+
f = message.getLimit();
|
|
1605
|
+
if (f !== 0) {
|
|
1606
|
+
writer.writeInt32(
|
|
1607
|
+
2,
|
|
1608
|
+
f
|
|
1609
|
+
);
|
|
1610
|
+
}
|
|
1611
|
+
f = message.getOffset();
|
|
1612
|
+
if (f !== 0) {
|
|
1613
|
+
writer.writeInt32(
|
|
1614
|
+
3,
|
|
1615
|
+
f
|
|
1616
|
+
);
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* optional string search_id = 1;
|
|
1623
|
+
* @return {string}
|
|
1624
|
+
*/
|
|
1625
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getSearchId = function() {
|
|
1626
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* @param {string} value
|
|
1632
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
|
|
1633
|
+
*/
|
|
1634
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setSearchId = function(value) {
|
|
1635
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* optional int32 limit = 2;
|
|
1641
|
+
* @return {number}
|
|
1642
|
+
*/
|
|
1643
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getLimit = function() {
|
|
1644
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* @param {number} value
|
|
1650
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
|
|
1651
|
+
*/
|
|
1652
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setLimit = function(value) {
|
|
1653
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* optional int32 offset = 3;
|
|
1659
|
+
* @return {number}
|
|
1660
|
+
*/
|
|
1661
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getOffset = function() {
|
|
1662
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* @param {number} value
|
|
1668
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
|
|
1669
|
+
*/
|
|
1670
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setOffset = function(value) {
|
|
1671
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* List of repeated fields within this message type.
|
|
1678
|
+
* @private {!Array<number>}
|
|
1679
|
+
* @const
|
|
1680
|
+
*/
|
|
1681
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.repeatedFields_ = [1];
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1686
|
+
/**
|
|
1687
|
+
* Creates an object representation of this proto.
|
|
1688
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1689
|
+
* Optional fields that are not set will be set to undefined.
|
|
1690
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1691
|
+
* For the list of reserved names please see:
|
|
1692
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1693
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1694
|
+
* JSPB instance for transitional soy proto support:
|
|
1695
|
+
* http://goto/soy-param-migration
|
|
1696
|
+
* @return {!Object}
|
|
1697
|
+
*/
|
|
1698
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1699
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsResponse.toObject(opt_includeInstance, this);
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Static version of the {@see toObject} method.
|
|
1705
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1706
|
+
* the JSPB instance for transitional soy proto support:
|
|
1707
|
+
* http://goto/soy-param-migration
|
|
1708
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} msg The msg instance to transform.
|
|
1709
|
+
* @return {!Object}
|
|
1710
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1711
|
+
*/
|
|
1712
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.toObject = function(includeInstance, msg) {
|
|
1713
|
+
var f, obj = {
|
|
1714
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
1715
|
+
strategysearch_search_pb.Trial.toObject, includeInstance),
|
|
1716
|
+
total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
if (includeInstance) {
|
|
1720
|
+
obj.$jspbMessageInstance = msg;
|
|
1721
|
+
}
|
|
1722
|
+
return obj;
|
|
1723
|
+
};
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1729
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1730
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse}
|
|
1731
|
+
*/
|
|
1732
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinary = function(bytes) {
|
|
1733
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1734
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchTrialsResponse;
|
|
1735
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1741
|
+
* given reader into the given message object.
|
|
1742
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} msg The message object to deserialize into.
|
|
1743
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1744
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse}
|
|
1745
|
+
*/
|
|
1746
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1747
|
+
while (reader.nextField()) {
|
|
1748
|
+
if (reader.isEndGroup()) {
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1751
|
+
var field = reader.getFieldNumber();
|
|
1752
|
+
switch (field) {
|
|
1753
|
+
case 1:
|
|
1754
|
+
var value = new strategysearch_search_pb.Trial;
|
|
1755
|
+
reader.readMessage(value,strategysearch_search_pb.Trial.deserializeBinaryFromReader);
|
|
1756
|
+
msg.addItems(value);
|
|
1757
|
+
break;
|
|
1758
|
+
case 2:
|
|
1759
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1760
|
+
msg.setTotal(value);
|
|
1761
|
+
break;
|
|
1762
|
+
default:
|
|
1763
|
+
reader.skipField();
|
|
1764
|
+
break;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
return msg;
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1773
|
+
* @return {!Uint8Array}
|
|
1774
|
+
*/
|
|
1775
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.serializeBinary = function() {
|
|
1776
|
+
var writer = new jspb.BinaryWriter();
|
|
1777
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.serializeBinaryToWriter(this, writer);
|
|
1778
|
+
return writer.getResultBuffer();
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1784
|
+
* format), writing to the given BinaryWriter.
|
|
1785
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} message
|
|
1786
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1787
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1788
|
+
*/
|
|
1789
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1790
|
+
var f = undefined;
|
|
1791
|
+
f = message.getItemsList();
|
|
1792
|
+
if (f.length > 0) {
|
|
1793
|
+
writer.writeRepeatedMessage(
|
|
1794
|
+
1,
|
|
1795
|
+
f,
|
|
1796
|
+
strategysearch_search_pb.Trial.serializeBinaryToWriter
|
|
1797
|
+
);
|
|
1798
|
+
}
|
|
1799
|
+
f = message.getTotal();
|
|
1800
|
+
if (f !== 0) {
|
|
1801
|
+
writer.writeInt32(
|
|
1802
|
+
2,
|
|
1803
|
+
f
|
|
1804
|
+
);
|
|
1805
|
+
}
|
|
1806
|
+
};
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* repeated Trial items = 1;
|
|
1811
|
+
* @return {!Array<!proto.trb.strategysearch.v1.Trial>}
|
|
1812
|
+
*/
|
|
1813
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.getItemsList = function() {
|
|
1814
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.Trial>} */ (
|
|
1815
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.Trial, 1));
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* @param {!Array<!proto.trb.strategysearch.v1.Trial>} value
|
|
1821
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
|
|
1822
|
+
*/
|
|
1823
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.setItemsList = function(value) {
|
|
1824
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* @param {!proto.trb.strategysearch.v1.Trial=} opt_value
|
|
1830
|
+
* @param {number=} opt_index
|
|
1831
|
+
* @return {!proto.trb.strategysearch.v1.Trial}
|
|
1832
|
+
*/
|
|
1833
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
1834
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.Trial, opt_index);
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Clears the list making it empty but non-null.
|
|
1840
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
|
|
1841
|
+
*/
|
|
1842
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.clearItemsList = function() {
|
|
1843
|
+
return this.setItemsList([]);
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* optional int32 total = 2;
|
|
1849
|
+
* @return {number}
|
|
1850
|
+
*/
|
|
1851
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.getTotal = function() {
|
|
1852
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1853
|
+
};
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* @param {number} value
|
|
1858
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
|
|
1859
|
+
*/
|
|
1860
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.setTotal = function(value) {
|
|
1861
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1869
|
+
/**
|
|
1870
|
+
* Creates an object representation of this proto.
|
|
1871
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1872
|
+
* Optional fields that are not set will be set to undefined.
|
|
1873
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1874
|
+
* For the list of reserved names please see:
|
|
1875
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1876
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1877
|
+
* JSPB instance for transitional soy proto support:
|
|
1878
|
+
* http://goto/soy-param-migration
|
|
1879
|
+
* @return {!Object}
|
|
1880
|
+
*/
|
|
1881
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1882
|
+
return proto.trb.strategysearch.v1.GetParamImportancesRequest.toObject(opt_includeInstance, this);
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* Static version of the {@see toObject} method.
|
|
1888
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1889
|
+
* the JSPB instance for transitional soy proto support:
|
|
1890
|
+
* http://goto/soy-param-migration
|
|
1891
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} msg The msg instance to transform.
|
|
1892
|
+
* @return {!Object}
|
|
1893
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1894
|
+
*/
|
|
1895
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.toObject = function(includeInstance, msg) {
|
|
1896
|
+
var f, obj = {
|
|
1897
|
+
searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1898
|
+
metric: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
if (includeInstance) {
|
|
1902
|
+
obj.$jspbMessageInstance = msg;
|
|
1903
|
+
}
|
|
1904
|
+
return obj;
|
|
1905
|
+
};
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1911
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1912
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest}
|
|
1913
|
+
*/
|
|
1914
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinary = function(bytes) {
|
|
1915
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1916
|
+
var msg = new proto.trb.strategysearch.v1.GetParamImportancesRequest;
|
|
1917
|
+
return proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinaryFromReader(msg, reader);
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1923
|
+
* given reader into the given message object.
|
|
1924
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} msg The message object to deserialize into.
|
|
1925
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1926
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest}
|
|
1927
|
+
*/
|
|
1928
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1929
|
+
while (reader.nextField()) {
|
|
1930
|
+
if (reader.isEndGroup()) {
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
var field = reader.getFieldNumber();
|
|
1934
|
+
switch (field) {
|
|
1935
|
+
case 1:
|
|
1936
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1937
|
+
msg.setSearchId(value);
|
|
1938
|
+
break;
|
|
1939
|
+
case 2:
|
|
1940
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1941
|
+
msg.setMetric(value);
|
|
1942
|
+
break;
|
|
1943
|
+
default:
|
|
1944
|
+
reader.skipField();
|
|
1945
|
+
break;
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
return msg;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1954
|
+
* @return {!Uint8Array}
|
|
1955
|
+
*/
|
|
1956
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.serializeBinary = function() {
|
|
1957
|
+
var writer = new jspb.BinaryWriter();
|
|
1958
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.serializeBinaryToWriter(this, writer);
|
|
1959
|
+
return writer.getResultBuffer();
|
|
1960
|
+
};
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1965
|
+
* format), writing to the given BinaryWriter.
|
|
1966
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} message
|
|
1967
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1968
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1969
|
+
*/
|
|
1970
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1971
|
+
var f = undefined;
|
|
1972
|
+
f = message.getSearchId();
|
|
1973
|
+
if (f.length > 0) {
|
|
1974
|
+
writer.writeString(
|
|
1975
|
+
1,
|
|
1976
|
+
f
|
|
1977
|
+
);
|
|
1978
|
+
}
|
|
1979
|
+
f = message.getMetric();
|
|
1980
|
+
if (f.length > 0) {
|
|
1981
|
+
writer.writeString(
|
|
1982
|
+
2,
|
|
1983
|
+
f
|
|
1984
|
+
);
|
|
1985
|
+
}
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* optional string search_id = 1;
|
|
1991
|
+
* @return {string}
|
|
1992
|
+
*/
|
|
1993
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.getSearchId = function() {
|
|
1994
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* @param {string} value
|
|
2000
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest} returns this
|
|
2001
|
+
*/
|
|
2002
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.setSearchId = function(value) {
|
|
2003
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* optional string metric = 2;
|
|
2009
|
+
* @return {string}
|
|
2010
|
+
*/
|
|
2011
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.getMetric = function() {
|
|
2012
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* @param {string} value
|
|
2018
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest} returns this
|
|
2019
|
+
*/
|
|
2020
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.setMetric = function(value) {
|
|
2021
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* List of repeated fields within this message type.
|
|
2028
|
+
* @private {!Array<number>}
|
|
2029
|
+
* @const
|
|
2030
|
+
*/
|
|
2031
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.repeatedFields_ = [1];
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2036
|
+
/**
|
|
2037
|
+
* Creates an object representation of this proto.
|
|
2038
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2039
|
+
* Optional fields that are not set will be set to undefined.
|
|
2040
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2041
|
+
* For the list of reserved names please see:
|
|
2042
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2043
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2044
|
+
* JSPB instance for transitional soy proto support:
|
|
2045
|
+
* http://goto/soy-param-migration
|
|
2046
|
+
* @return {!Object}
|
|
2047
|
+
*/
|
|
2048
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2049
|
+
return proto.trb.strategysearch.v1.GetParamImportancesResponse.toObject(opt_includeInstance, this);
|
|
2050
|
+
};
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* Static version of the {@see toObject} method.
|
|
2055
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2056
|
+
* the JSPB instance for transitional soy proto support:
|
|
2057
|
+
* http://goto/soy-param-migration
|
|
2058
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} msg The msg instance to transform.
|
|
2059
|
+
* @return {!Object}
|
|
2060
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2061
|
+
*/
|
|
2062
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.toObject = function(includeInstance, msg) {
|
|
2063
|
+
var f, obj = {
|
|
2064
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
2065
|
+
strategysearch_search_pb.ParamImportance.toObject, includeInstance)
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
if (includeInstance) {
|
|
2069
|
+
obj.$jspbMessageInstance = msg;
|
|
2070
|
+
}
|
|
2071
|
+
return obj;
|
|
2072
|
+
};
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2078
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2079
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse}
|
|
2080
|
+
*/
|
|
2081
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinary = function(bytes) {
|
|
2082
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2083
|
+
var msg = new proto.trb.strategysearch.v1.GetParamImportancesResponse;
|
|
2084
|
+
return proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinaryFromReader(msg, reader);
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2090
|
+
* given reader into the given message object.
|
|
2091
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} msg The message object to deserialize into.
|
|
2092
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2093
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse}
|
|
2094
|
+
*/
|
|
2095
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2096
|
+
while (reader.nextField()) {
|
|
2097
|
+
if (reader.isEndGroup()) {
|
|
2098
|
+
break;
|
|
2099
|
+
}
|
|
2100
|
+
var field = reader.getFieldNumber();
|
|
2101
|
+
switch (field) {
|
|
2102
|
+
case 1:
|
|
2103
|
+
var value = new strategysearch_search_pb.ParamImportance;
|
|
2104
|
+
reader.readMessage(value,strategysearch_search_pb.ParamImportance.deserializeBinaryFromReader);
|
|
2105
|
+
msg.addItems(value);
|
|
2106
|
+
break;
|
|
2107
|
+
default:
|
|
2108
|
+
reader.skipField();
|
|
2109
|
+
break;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
return msg;
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2118
|
+
* @return {!Uint8Array}
|
|
2119
|
+
*/
|
|
2120
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.serializeBinary = function() {
|
|
2121
|
+
var writer = new jspb.BinaryWriter();
|
|
2122
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.serializeBinaryToWriter(this, writer);
|
|
2123
|
+
return writer.getResultBuffer();
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2129
|
+
* format), writing to the given BinaryWriter.
|
|
2130
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} message
|
|
2131
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2132
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2133
|
+
*/
|
|
2134
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2135
|
+
var f = undefined;
|
|
2136
|
+
f = message.getItemsList();
|
|
2137
|
+
if (f.length > 0) {
|
|
2138
|
+
writer.writeRepeatedMessage(
|
|
2139
|
+
1,
|
|
2140
|
+
f,
|
|
2141
|
+
strategysearch_search_pb.ParamImportance.serializeBinaryToWriter
|
|
2142
|
+
);
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* repeated ParamImportance items = 1;
|
|
2149
|
+
* @return {!Array<!proto.trb.strategysearch.v1.ParamImportance>}
|
|
2150
|
+
*/
|
|
2151
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.getItemsList = function() {
|
|
2152
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.ParamImportance>} */ (
|
|
2153
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.ParamImportance, 1));
|
|
2154
|
+
};
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* @param {!Array<!proto.trb.strategysearch.v1.ParamImportance>} value
|
|
2159
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse} returns this
|
|
2160
|
+
*/
|
|
2161
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.setItemsList = function(value) {
|
|
2162
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2163
|
+
};
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* @param {!proto.trb.strategysearch.v1.ParamImportance=} opt_value
|
|
2168
|
+
* @param {number=} opt_index
|
|
2169
|
+
* @return {!proto.trb.strategysearch.v1.ParamImportance}
|
|
2170
|
+
*/
|
|
2171
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
2172
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.ParamImportance, opt_index);
|
|
2173
|
+
};
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* Clears the list making it empty but non-null.
|
|
2178
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse} returns this
|
|
2179
|
+
*/
|
|
2180
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.clearItemsList = function() {
|
|
2181
|
+
return this.setItemsList([]);
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
|
|
1298
2188
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1299
2189
|
/**
|
|
1300
2190
|
* Creates an object representation of this proto.
|