@marleena/trb-proto 1.0.56 → 1.0.58
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 +215 -0
- package/gen/js-ts/strategysearch/search_pb.d.ts +22 -0
- package/gen/js-ts/strategysearch/search_pb.js +182 -0
- package/gen/js-ts/strategysearch/strategysearch_pb.d.ts +269 -0
- package/gen/js-ts/strategysearch/strategysearch_pb.js +2390 -91
- package/package.json +1 -1
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var google_api_annotations_pb = require('../google/api/annotations_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
26
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
28
|
var strategysearch_spec_pb = require('../strategysearch/spec_pb.js');
|
|
27
29
|
goog.object.extend(proto, strategysearch_spec_pb);
|
|
28
30
|
var strategysearch_backtest_pb = require('../strategysearch/backtest_pb.js');
|
|
@@ -30,11 +32,21 @@ goog.object.extend(proto, strategysearch_backtest_pb);
|
|
|
30
32
|
var strategysearch_search_pb = require('../strategysearch/search_pb.js');
|
|
31
33
|
goog.object.extend(proto, strategysearch_search_pb);
|
|
32
34
|
goog.exportSymbol('proto.trb.strategysearch.v1.CancelSearchRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.CreateSearchPresetRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetResponse', null, global);
|
|
33
38
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsRequest', null, global);
|
|
34
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);
|
|
35
42
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetSearchProgressRequest', null, global);
|
|
43
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchPresetsRequest', null, global);
|
|
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);
|
|
36
47
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesRequest', null, global);
|
|
37
48
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesResponse', null, global);
|
|
49
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.SearchPreset', null, global);
|
|
38
50
|
goog.exportSymbol('proto.trb.strategysearch.v1.SubmitSearchRequest', null, global);
|
|
39
51
|
goog.exportSymbol('proto.trb.strategysearch.v1.SubmitSearchResponse', null, global);
|
|
40
52
|
/**
|
|
@@ -142,6 +154,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
142
154
|
*/
|
|
143
155
|
proto.trb.strategysearch.v1.GetBestTrialsResponse.displayName = 'proto.trb.strategysearch.v1.GetBestTrialsResponse';
|
|
144
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
|
+
}
|
|
145
241
|
/**
|
|
146
242
|
* Generated by JsPbCodeGenerator.
|
|
147
243
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -205,6 +301,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
205
301
|
*/
|
|
206
302
|
proto.trb.strategysearch.v1.CancelSearchRequest.displayName = 'proto.trb.strategysearch.v1.CancelSearchRequest';
|
|
207
303
|
}
|
|
304
|
+
/**
|
|
305
|
+
* Generated by JsPbCodeGenerator.
|
|
306
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
307
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
308
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
309
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
310
|
+
* valid.
|
|
311
|
+
* @extends {jspb.Message}
|
|
312
|
+
* @constructor
|
|
313
|
+
*/
|
|
314
|
+
proto.trb.strategysearch.v1.SearchPreset = function(opt_data) {
|
|
315
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.SearchPreset.repeatedFields_, null);
|
|
316
|
+
};
|
|
317
|
+
goog.inherits(proto.trb.strategysearch.v1.SearchPreset, jspb.Message);
|
|
318
|
+
if (goog.DEBUG && !COMPILED) {
|
|
319
|
+
/**
|
|
320
|
+
* @public
|
|
321
|
+
* @override
|
|
322
|
+
*/
|
|
323
|
+
proto.trb.strategysearch.v1.SearchPreset.displayName = 'proto.trb.strategysearch.v1.SearchPreset';
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Generated by JsPbCodeGenerator.
|
|
327
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
328
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
329
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
330
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
331
|
+
* valid.
|
|
332
|
+
* @extends {jspb.Message}
|
|
333
|
+
* @constructor
|
|
334
|
+
*/
|
|
335
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest = function(opt_data) {
|
|
336
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.CreateSearchPresetRequest.repeatedFields_, null);
|
|
337
|
+
};
|
|
338
|
+
goog.inherits(proto.trb.strategysearch.v1.CreateSearchPresetRequest, jspb.Message);
|
|
339
|
+
if (goog.DEBUG && !COMPILED) {
|
|
340
|
+
/**
|
|
341
|
+
* @public
|
|
342
|
+
* @override
|
|
343
|
+
*/
|
|
344
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.displayName = 'proto.trb.strategysearch.v1.CreateSearchPresetRequest';
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Generated by JsPbCodeGenerator.
|
|
348
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
349
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
350
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
351
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
352
|
+
* valid.
|
|
353
|
+
* @extends {jspb.Message}
|
|
354
|
+
* @constructor
|
|
355
|
+
*/
|
|
356
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest = function(opt_data) {
|
|
357
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
358
|
+
};
|
|
359
|
+
goog.inherits(proto.trb.strategysearch.v1.ListSearchPresetsRequest, jspb.Message);
|
|
360
|
+
if (goog.DEBUG && !COMPILED) {
|
|
361
|
+
/**
|
|
362
|
+
* @public
|
|
363
|
+
* @override
|
|
364
|
+
*/
|
|
365
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.displayName = 'proto.trb.strategysearch.v1.ListSearchPresetsRequest';
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Generated by JsPbCodeGenerator.
|
|
369
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
370
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
371
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
372
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
373
|
+
* valid.
|
|
374
|
+
* @extends {jspb.Message}
|
|
375
|
+
* @constructor
|
|
376
|
+
*/
|
|
377
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse = function(opt_data) {
|
|
378
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.ListSearchPresetsResponse.repeatedFields_, null);
|
|
379
|
+
};
|
|
380
|
+
goog.inherits(proto.trb.strategysearch.v1.ListSearchPresetsResponse, jspb.Message);
|
|
381
|
+
if (goog.DEBUG && !COMPILED) {
|
|
382
|
+
/**
|
|
383
|
+
* @public
|
|
384
|
+
* @override
|
|
385
|
+
*/
|
|
386
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.displayName = 'proto.trb.strategysearch.v1.ListSearchPresetsResponse';
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Generated by JsPbCodeGenerator.
|
|
390
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
391
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
392
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
393
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
394
|
+
* valid.
|
|
395
|
+
* @extends {jspb.Message}
|
|
396
|
+
* @constructor
|
|
397
|
+
*/
|
|
398
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest = function(opt_data) {
|
|
399
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
400
|
+
};
|
|
401
|
+
goog.inherits(proto.trb.strategysearch.v1.DeleteSearchPresetRequest, jspb.Message);
|
|
402
|
+
if (goog.DEBUG && !COMPILED) {
|
|
403
|
+
/**
|
|
404
|
+
* @public
|
|
405
|
+
* @override
|
|
406
|
+
*/
|
|
407
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.displayName = 'proto.trb.strategysearch.v1.DeleteSearchPresetRequest';
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Generated by JsPbCodeGenerator.
|
|
411
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
412
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
413
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
414
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
415
|
+
* valid.
|
|
416
|
+
* @extends {jspb.Message}
|
|
417
|
+
* @constructor
|
|
418
|
+
*/
|
|
419
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse = function(opt_data) {
|
|
420
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
421
|
+
};
|
|
422
|
+
goog.inherits(proto.trb.strategysearch.v1.DeleteSearchPresetResponse, jspb.Message);
|
|
423
|
+
if (goog.DEBUG && !COMPILED) {
|
|
424
|
+
/**
|
|
425
|
+
* @public
|
|
426
|
+
* @override
|
|
427
|
+
*/
|
|
428
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.displayName = 'proto.trb.strategysearch.v1.DeleteSearchPresetResponse';
|
|
429
|
+
}
|
|
208
430
|
|
|
209
431
|
/**
|
|
210
432
|
* List of repeated fields within this message type.
|
|
@@ -1174,8 +1396,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1174
1396
|
* http://goto/soy-param-migration
|
|
1175
1397
|
* @return {!Object}
|
|
1176
1398
|
*/
|
|
1177
|
-
proto.trb.strategysearch.v1.
|
|
1178
|
-
return proto.trb.strategysearch.v1.
|
|
1399
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1400
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsRequest.toObject(opt_includeInstance, this);
|
|
1179
1401
|
};
|
|
1180
1402
|
|
|
1181
1403
|
|
|
@@ -1184,13 +1406,13 @@ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.toObject = function(op
|
|
|
1184
1406
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1185
1407
|
* the JSPB instance for transitional soy proto support:
|
|
1186
1408
|
* http://goto/soy-param-migration
|
|
1187
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1409
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} msg The msg instance to transform.
|
|
1188
1410
|
* @return {!Object}
|
|
1189
1411
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1190
1412
|
*/
|
|
1191
|
-
proto.trb.strategysearch.v1.
|
|
1413
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.toObject = function(includeInstance, msg) {
|
|
1192
1414
|
var f, obj = {
|
|
1193
|
-
|
|
1415
|
+
searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1194
1416
|
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1195
1417
|
offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
1196
1418
|
};
|
|
@@ -1206,23 +1428,23 @@ offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
|
1206
1428
|
/**
|
|
1207
1429
|
* Deserializes binary data (in protobuf wire format).
|
|
1208
1430
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1209
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1431
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest}
|
|
1210
1432
|
*/
|
|
1211
|
-
proto.trb.strategysearch.v1.
|
|
1433
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinary = function(bytes) {
|
|
1212
1434
|
var reader = new jspb.BinaryReader(bytes);
|
|
1213
|
-
var msg = new proto.trb.strategysearch.v1.
|
|
1214
|
-
return proto.trb.strategysearch.v1.
|
|
1435
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchTrialsRequest;
|
|
1436
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1215
1437
|
};
|
|
1216
1438
|
|
|
1217
1439
|
|
|
1218
1440
|
/**
|
|
1219
1441
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1220
1442
|
* given reader into the given message object.
|
|
1221
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1443
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} msg The message object to deserialize into.
|
|
1222
1444
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1223
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1445
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest}
|
|
1224
1446
|
*/
|
|
1225
|
-
proto.trb.strategysearch.v1.
|
|
1447
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1226
1448
|
while (reader.nextField()) {
|
|
1227
1449
|
if (reader.isEndGroup()) {
|
|
1228
1450
|
break;
|
|
@@ -1230,8 +1452,8 @@ proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinaryFromReader = fu
|
|
|
1230
1452
|
var field = reader.getFieldNumber();
|
|
1231
1453
|
switch (field) {
|
|
1232
1454
|
case 1:
|
|
1233
|
-
var value = /** @type {
|
|
1234
|
-
msg.
|
|
1455
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1456
|
+
msg.setSearchId(value);
|
|
1235
1457
|
break;
|
|
1236
1458
|
case 2:
|
|
1237
1459
|
var value = /** @type {number} */ (reader.readInt32());
|
|
@@ -1254,9 +1476,9 @@ proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinaryFromReader = fu
|
|
|
1254
1476
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1255
1477
|
* @return {!Uint8Array}
|
|
1256
1478
|
*/
|
|
1257
|
-
proto.trb.strategysearch.v1.
|
|
1479
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.serializeBinary = function() {
|
|
1258
1480
|
var writer = new jspb.BinaryWriter();
|
|
1259
|
-
proto.trb.strategysearch.v1.
|
|
1481
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.serializeBinaryToWriter(this, writer);
|
|
1260
1482
|
return writer.getResultBuffer();
|
|
1261
1483
|
};
|
|
1262
1484
|
|
|
@@ -1264,15 +1486,15 @@ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.serializeBinary = func
|
|
|
1264
1486
|
/**
|
|
1265
1487
|
* Serializes the given message to binary data (in protobuf wire
|
|
1266
1488
|
* format), writing to the given BinaryWriter.
|
|
1267
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1489
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} message
|
|
1268
1490
|
* @param {!jspb.BinaryWriter} writer
|
|
1269
1491
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1270
1492
|
*/
|
|
1271
|
-
proto.trb.strategysearch.v1.
|
|
1493
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1272
1494
|
var f = undefined;
|
|
1273
|
-
f = message.
|
|
1274
|
-
if (f
|
|
1275
|
-
writer.
|
|
1495
|
+
f = message.getSearchId();
|
|
1496
|
+
if (f.length > 0) {
|
|
1497
|
+
writer.writeString(
|
|
1276
1498
|
1,
|
|
1277
1499
|
f
|
|
1278
1500
|
);
|
|
@@ -1295,20 +1517,20 @@ proto.trb.strategysearch.v1.ListSearchesRequest.serializeBinaryToWriter = functi
|
|
|
1295
1517
|
|
|
1296
1518
|
|
|
1297
1519
|
/**
|
|
1298
|
-
* optional
|
|
1299
|
-
* @return {
|
|
1520
|
+
* optional string search_id = 1;
|
|
1521
|
+
* @return {string}
|
|
1300
1522
|
*/
|
|
1301
|
-
proto.trb.strategysearch.v1.
|
|
1302
|
-
return /** @type {
|
|
1523
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getSearchId = function() {
|
|
1524
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1303
1525
|
};
|
|
1304
1526
|
|
|
1305
1527
|
|
|
1306
1528
|
/**
|
|
1307
|
-
* @param {
|
|
1308
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1529
|
+
* @param {string} value
|
|
1530
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
|
|
1309
1531
|
*/
|
|
1310
|
-
proto.trb.strategysearch.v1.
|
|
1311
|
-
return jspb.Message.
|
|
1532
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setSearchId = function(value) {
|
|
1533
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1312
1534
|
};
|
|
1313
1535
|
|
|
1314
1536
|
|
|
@@ -1316,16 +1538,16 @@ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setStatus = function(v
|
|
|
1316
1538
|
* optional int32 limit = 2;
|
|
1317
1539
|
* @return {number}
|
|
1318
1540
|
*/
|
|
1319
|
-
proto.trb.strategysearch.v1.
|
|
1541
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getLimit = function() {
|
|
1320
1542
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1321
1543
|
};
|
|
1322
1544
|
|
|
1323
1545
|
|
|
1324
1546
|
/**
|
|
1325
1547
|
* @param {number} value
|
|
1326
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1548
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
|
|
1327
1549
|
*/
|
|
1328
|
-
proto.trb.strategysearch.v1.
|
|
1550
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setLimit = function(value) {
|
|
1329
1551
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1330
1552
|
};
|
|
1331
1553
|
|
|
@@ -1334,16 +1556,16 @@ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setLimit = function(va
|
|
|
1334
1556
|
* optional int32 offset = 3;
|
|
1335
1557
|
* @return {number}
|
|
1336
1558
|
*/
|
|
1337
|
-
proto.trb.strategysearch.v1.
|
|
1559
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getOffset = function() {
|
|
1338
1560
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1339
1561
|
};
|
|
1340
1562
|
|
|
1341
1563
|
|
|
1342
1564
|
/**
|
|
1343
1565
|
* @param {number} value
|
|
1344
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1566
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
|
|
1345
1567
|
*/
|
|
1346
|
-
proto.trb.strategysearch.v1.
|
|
1568
|
+
proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setOffset = function(value) {
|
|
1347
1569
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1348
1570
|
};
|
|
1349
1571
|
|
|
@@ -1354,7 +1576,7 @@ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setOffset = function(v
|
|
|
1354
1576
|
* @private {!Array<number>}
|
|
1355
1577
|
* @const
|
|
1356
1578
|
*/
|
|
1357
|
-
proto.trb.strategysearch.v1.
|
|
1579
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.repeatedFields_ = [1];
|
|
1358
1580
|
|
|
1359
1581
|
|
|
1360
1582
|
|
|
@@ -1371,8 +1593,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1371
1593
|
* http://goto/soy-param-migration
|
|
1372
1594
|
* @return {!Object}
|
|
1373
1595
|
*/
|
|
1374
|
-
proto.trb.strategysearch.v1.
|
|
1375
|
-
return proto.trb.strategysearch.v1.
|
|
1596
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1597
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsResponse.toObject(opt_includeInstance, this);
|
|
1376
1598
|
};
|
|
1377
1599
|
|
|
1378
1600
|
|
|
@@ -1381,14 +1603,14 @@ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.toObject = function(o
|
|
|
1381
1603
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1382
1604
|
* the JSPB instance for transitional soy proto support:
|
|
1383
1605
|
* http://goto/soy-param-migration
|
|
1384
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1606
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} msg The msg instance to transform.
|
|
1385
1607
|
* @return {!Object}
|
|
1386
1608
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1387
1609
|
*/
|
|
1388
|
-
proto.trb.strategysearch.v1.
|
|
1610
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.toObject = function(includeInstance, msg) {
|
|
1389
1611
|
var f, obj = {
|
|
1390
1612
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
1391
|
-
strategysearch_search_pb.
|
|
1613
|
+
strategysearch_search_pb.Trial.toObject, includeInstance),
|
|
1392
1614
|
total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1393
1615
|
};
|
|
1394
1616
|
|
|
@@ -1403,23 +1625,23 @@ total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
|
1403
1625
|
/**
|
|
1404
1626
|
* Deserializes binary data (in protobuf wire format).
|
|
1405
1627
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1406
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1628
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse}
|
|
1407
1629
|
*/
|
|
1408
|
-
proto.trb.strategysearch.v1.
|
|
1630
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinary = function(bytes) {
|
|
1409
1631
|
var reader = new jspb.BinaryReader(bytes);
|
|
1410
|
-
var msg = new proto.trb.strategysearch.v1.
|
|
1411
|
-
return proto.trb.strategysearch.v1.
|
|
1632
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchTrialsResponse;
|
|
1633
|
+
return proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1412
1634
|
};
|
|
1413
1635
|
|
|
1414
1636
|
|
|
1415
1637
|
/**
|
|
1416
1638
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1417
1639
|
* given reader into the given message object.
|
|
1418
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1640
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} msg The message object to deserialize into.
|
|
1419
1641
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1420
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1642
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse}
|
|
1421
1643
|
*/
|
|
1422
|
-
proto.trb.strategysearch.v1.
|
|
1644
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1423
1645
|
while (reader.nextField()) {
|
|
1424
1646
|
if (reader.isEndGroup()) {
|
|
1425
1647
|
break;
|
|
@@ -1427,8 +1649,8 @@ proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinaryFromReader = f
|
|
|
1427
1649
|
var field = reader.getFieldNumber();
|
|
1428
1650
|
switch (field) {
|
|
1429
1651
|
case 1:
|
|
1430
|
-
var value = new strategysearch_search_pb.
|
|
1431
|
-
reader.readMessage(value,strategysearch_search_pb.
|
|
1652
|
+
var value = new strategysearch_search_pb.Trial;
|
|
1653
|
+
reader.readMessage(value,strategysearch_search_pb.Trial.deserializeBinaryFromReader);
|
|
1432
1654
|
msg.addItems(value);
|
|
1433
1655
|
break;
|
|
1434
1656
|
case 2:
|
|
@@ -1448,9 +1670,9 @@ proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinaryFromReader = f
|
|
|
1448
1670
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1449
1671
|
* @return {!Uint8Array}
|
|
1450
1672
|
*/
|
|
1451
|
-
proto.trb.strategysearch.v1.
|
|
1673
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.serializeBinary = function() {
|
|
1452
1674
|
var writer = new jspb.BinaryWriter();
|
|
1453
|
-
proto.trb.strategysearch.v1.
|
|
1675
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.serializeBinaryToWriter(this, writer);
|
|
1454
1676
|
return writer.getResultBuffer();
|
|
1455
1677
|
};
|
|
1456
1678
|
|
|
@@ -1458,18 +1680,18 @@ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.serializeBinary = fun
|
|
|
1458
1680
|
/**
|
|
1459
1681
|
* Serializes the given message to binary data (in protobuf wire
|
|
1460
1682
|
* format), writing to the given BinaryWriter.
|
|
1461
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1683
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} message
|
|
1462
1684
|
* @param {!jspb.BinaryWriter} writer
|
|
1463
1685
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1464
1686
|
*/
|
|
1465
|
-
proto.trb.strategysearch.v1.
|
|
1687
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1466
1688
|
var f = undefined;
|
|
1467
1689
|
f = message.getItemsList();
|
|
1468
1690
|
if (f.length > 0) {
|
|
1469
1691
|
writer.writeRepeatedMessage(
|
|
1470
1692
|
1,
|
|
1471
1693
|
f,
|
|
1472
|
-
strategysearch_search_pb.
|
|
1694
|
+
strategysearch_search_pb.Trial.serializeBinaryToWriter
|
|
1473
1695
|
);
|
|
1474
1696
|
}
|
|
1475
1697
|
f = message.getTotal();
|
|
@@ -1483,39 +1705,39 @@ proto.trb.strategysearch.v1.ListSearchesResponse.serializeBinaryToWriter = funct
|
|
|
1483
1705
|
|
|
1484
1706
|
|
|
1485
1707
|
/**
|
|
1486
|
-
* repeated
|
|
1487
|
-
* @return {!Array<!proto.trb.strategysearch.v1.
|
|
1708
|
+
* repeated Trial items = 1;
|
|
1709
|
+
* @return {!Array<!proto.trb.strategysearch.v1.Trial>}
|
|
1488
1710
|
*/
|
|
1489
|
-
proto.trb.strategysearch.v1.
|
|
1490
|
-
return /** @type{!Array<!proto.trb.strategysearch.v1.
|
|
1491
|
-
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.
|
|
1711
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.getItemsList = function() {
|
|
1712
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.Trial>} */ (
|
|
1713
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.Trial, 1));
|
|
1492
1714
|
};
|
|
1493
1715
|
|
|
1494
1716
|
|
|
1495
1717
|
/**
|
|
1496
|
-
* @param {!Array<!proto.trb.strategysearch.v1.
|
|
1497
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1718
|
+
* @param {!Array<!proto.trb.strategysearch.v1.Trial>} value
|
|
1719
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
|
|
1498
1720
|
*/
|
|
1499
|
-
proto.trb.strategysearch.v1.
|
|
1721
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.setItemsList = function(value) {
|
|
1500
1722
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1501
1723
|
};
|
|
1502
1724
|
|
|
1503
1725
|
|
|
1504
1726
|
/**
|
|
1505
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1727
|
+
* @param {!proto.trb.strategysearch.v1.Trial=} opt_value
|
|
1506
1728
|
* @param {number=} opt_index
|
|
1507
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1729
|
+
* @return {!proto.trb.strategysearch.v1.Trial}
|
|
1508
1730
|
*/
|
|
1509
|
-
proto.trb.strategysearch.v1.
|
|
1510
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.
|
|
1731
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
1732
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.Trial, opt_index);
|
|
1511
1733
|
};
|
|
1512
1734
|
|
|
1513
1735
|
|
|
1514
1736
|
/**
|
|
1515
1737
|
* Clears the list making it empty but non-null.
|
|
1516
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1738
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
|
|
1517
1739
|
*/
|
|
1518
|
-
proto.trb.strategysearch.v1.
|
|
1740
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.clearItemsList = function() {
|
|
1519
1741
|
return this.setItemsList([]);
|
|
1520
1742
|
};
|
|
1521
1743
|
|
|
@@ -1524,16 +1746,16 @@ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.clearItemsList = func
|
|
|
1524
1746
|
* optional int32 total = 2;
|
|
1525
1747
|
* @return {number}
|
|
1526
1748
|
*/
|
|
1527
|
-
proto.trb.strategysearch.v1.
|
|
1749
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.getTotal = function() {
|
|
1528
1750
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1529
1751
|
};
|
|
1530
1752
|
|
|
1531
1753
|
|
|
1532
1754
|
/**
|
|
1533
1755
|
* @param {number} value
|
|
1534
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1756
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
|
|
1535
1757
|
*/
|
|
1536
|
-
proto.trb.strategysearch.v1.
|
|
1758
|
+
proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.setTotal = function(value) {
|
|
1537
1759
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1538
1760
|
};
|
|
1539
1761
|
|
|
@@ -1554,8 +1776,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1554
1776
|
* http://goto/soy-param-migration
|
|
1555
1777
|
* @return {!Object}
|
|
1556
1778
|
*/
|
|
1557
|
-
proto.trb.strategysearch.v1.
|
|
1558
|
-
return proto.trb.strategysearch.v1.
|
|
1779
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1780
|
+
return proto.trb.strategysearch.v1.GetParamImportancesRequest.toObject(opt_includeInstance, this);
|
|
1559
1781
|
};
|
|
1560
1782
|
|
|
1561
1783
|
|
|
@@ -1564,13 +1786,14 @@ proto.trb.strategysearch.v1.CancelSearchRequest.prototype.toObject = function(op
|
|
|
1564
1786
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1565
1787
|
* the JSPB instance for transitional soy proto support:
|
|
1566
1788
|
* http://goto/soy-param-migration
|
|
1567
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1789
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} msg The msg instance to transform.
|
|
1568
1790
|
* @return {!Object}
|
|
1569
1791
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1570
1792
|
*/
|
|
1571
|
-
proto.trb.strategysearch.v1.
|
|
1793
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.toObject = function(includeInstance, msg) {
|
|
1572
1794
|
var f, obj = {
|
|
1573
|
-
searchId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1795
|
+
searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1796
|
+
metric: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1574
1797
|
};
|
|
1575
1798
|
|
|
1576
1799
|
if (includeInstance) {
|
|
@@ -1584,23 +1807,23 @@ searchId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
|
1584
1807
|
/**
|
|
1585
1808
|
* Deserializes binary data (in protobuf wire format).
|
|
1586
1809
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1587
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1810
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest}
|
|
1588
1811
|
*/
|
|
1589
|
-
proto.trb.strategysearch.v1.
|
|
1812
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinary = function(bytes) {
|
|
1590
1813
|
var reader = new jspb.BinaryReader(bytes);
|
|
1591
|
-
var msg = new proto.trb.strategysearch.v1.
|
|
1592
|
-
return proto.trb.strategysearch.v1.
|
|
1814
|
+
var msg = new proto.trb.strategysearch.v1.GetParamImportancesRequest;
|
|
1815
|
+
return proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinaryFromReader(msg, reader);
|
|
1593
1816
|
};
|
|
1594
1817
|
|
|
1595
1818
|
|
|
1596
1819
|
/**
|
|
1597
1820
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1598
1821
|
* given reader into the given message object.
|
|
1599
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1822
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} msg The message object to deserialize into.
|
|
1600
1823
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1601
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1824
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest}
|
|
1602
1825
|
*/
|
|
1603
|
-
proto.trb.strategysearch.v1.
|
|
1826
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1604
1827
|
while (reader.nextField()) {
|
|
1605
1828
|
if (reader.isEndGroup()) {
|
|
1606
1829
|
break;
|
|
@@ -1611,6 +1834,10 @@ proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinaryFromReader = fu
|
|
|
1611
1834
|
var value = /** @type {string} */ (reader.readString());
|
|
1612
1835
|
msg.setSearchId(value);
|
|
1613
1836
|
break;
|
|
1837
|
+
case 2:
|
|
1838
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1839
|
+
msg.setMetric(value);
|
|
1840
|
+
break;
|
|
1614
1841
|
default:
|
|
1615
1842
|
reader.skipField();
|
|
1616
1843
|
break;
|
|
@@ -1624,9 +1851,9 @@ proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinaryFromReader = fu
|
|
|
1624
1851
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1625
1852
|
* @return {!Uint8Array}
|
|
1626
1853
|
*/
|
|
1627
|
-
proto.trb.strategysearch.v1.
|
|
1854
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.serializeBinary = function() {
|
|
1628
1855
|
var writer = new jspb.BinaryWriter();
|
|
1629
|
-
proto.trb.strategysearch.v1.
|
|
1856
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.serializeBinaryToWriter(this, writer);
|
|
1630
1857
|
return writer.getResultBuffer();
|
|
1631
1858
|
};
|
|
1632
1859
|
|
|
@@ -1634,11 +1861,11 @@ proto.trb.strategysearch.v1.CancelSearchRequest.prototype.serializeBinary = func
|
|
|
1634
1861
|
/**
|
|
1635
1862
|
* Serializes the given message to binary data (in protobuf wire
|
|
1636
1863
|
* format), writing to the given BinaryWriter.
|
|
1637
|
-
* @param {!proto.trb.strategysearch.v1.
|
|
1864
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} message
|
|
1638
1865
|
* @param {!jspb.BinaryWriter} writer
|
|
1639
1866
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1640
1867
|
*/
|
|
1641
|
-
proto.trb.strategysearch.v1.
|
|
1868
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1642
1869
|
var f = undefined;
|
|
1643
1870
|
f = message.getSearchId();
|
|
1644
1871
|
if (f.length > 0) {
|
|
@@ -1647,6 +1874,13 @@ proto.trb.strategysearch.v1.CancelSearchRequest.serializeBinaryToWriter = functi
|
|
|
1647
1874
|
f
|
|
1648
1875
|
);
|
|
1649
1876
|
}
|
|
1877
|
+
f = message.getMetric();
|
|
1878
|
+
if (f.length > 0) {
|
|
1879
|
+
writer.writeString(
|
|
1880
|
+
2,
|
|
1881
|
+
f
|
|
1882
|
+
);
|
|
1883
|
+
}
|
|
1650
1884
|
};
|
|
1651
1885
|
|
|
1652
1886
|
|
|
@@ -1654,16 +1888,2081 @@ proto.trb.strategysearch.v1.CancelSearchRequest.serializeBinaryToWriter = functi
|
|
|
1654
1888
|
* optional string search_id = 1;
|
|
1655
1889
|
* @return {string}
|
|
1656
1890
|
*/
|
|
1657
|
-
proto.trb.strategysearch.v1.
|
|
1891
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.getSearchId = function() {
|
|
1658
1892
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1659
1893
|
};
|
|
1660
1894
|
|
|
1661
1895
|
|
|
1662
1896
|
/**
|
|
1663
1897
|
* @param {string} value
|
|
1664
|
-
* @return {!proto.trb.strategysearch.v1.
|
|
1898
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest} returns this
|
|
1665
1899
|
*/
|
|
1666
|
-
proto.trb.strategysearch.v1.
|
|
1900
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.setSearchId = function(value) {
|
|
1901
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* optional string metric = 2;
|
|
1907
|
+
* @return {string}
|
|
1908
|
+
*/
|
|
1909
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.getMetric = function() {
|
|
1910
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* @param {string} value
|
|
1916
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest} returns this
|
|
1917
|
+
*/
|
|
1918
|
+
proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.setMetric = function(value) {
|
|
1919
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* List of repeated fields within this message type.
|
|
1926
|
+
* @private {!Array<number>}
|
|
1927
|
+
* @const
|
|
1928
|
+
*/
|
|
1929
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.repeatedFields_ = [1];
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1934
|
+
/**
|
|
1935
|
+
* Creates an object representation of this proto.
|
|
1936
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1937
|
+
* Optional fields that are not set will be set to undefined.
|
|
1938
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1939
|
+
* For the list of reserved names please see:
|
|
1940
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1941
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1942
|
+
* JSPB instance for transitional soy proto support:
|
|
1943
|
+
* http://goto/soy-param-migration
|
|
1944
|
+
* @return {!Object}
|
|
1945
|
+
*/
|
|
1946
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1947
|
+
return proto.trb.strategysearch.v1.GetParamImportancesResponse.toObject(opt_includeInstance, this);
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* Static version of the {@see toObject} method.
|
|
1953
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1954
|
+
* the JSPB instance for transitional soy proto support:
|
|
1955
|
+
* http://goto/soy-param-migration
|
|
1956
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} msg The msg instance to transform.
|
|
1957
|
+
* @return {!Object}
|
|
1958
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1959
|
+
*/
|
|
1960
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.toObject = function(includeInstance, msg) {
|
|
1961
|
+
var f, obj = {
|
|
1962
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
1963
|
+
strategysearch_search_pb.ParamImportance.toObject, includeInstance)
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
if (includeInstance) {
|
|
1967
|
+
obj.$jspbMessageInstance = msg;
|
|
1968
|
+
}
|
|
1969
|
+
return obj;
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1976
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1977
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse}
|
|
1978
|
+
*/
|
|
1979
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinary = function(bytes) {
|
|
1980
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1981
|
+
var msg = new proto.trb.strategysearch.v1.GetParamImportancesResponse;
|
|
1982
|
+
return proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinaryFromReader(msg, reader);
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1988
|
+
* given reader into the given message object.
|
|
1989
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} msg The message object to deserialize into.
|
|
1990
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1991
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse}
|
|
1992
|
+
*/
|
|
1993
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1994
|
+
while (reader.nextField()) {
|
|
1995
|
+
if (reader.isEndGroup()) {
|
|
1996
|
+
break;
|
|
1997
|
+
}
|
|
1998
|
+
var field = reader.getFieldNumber();
|
|
1999
|
+
switch (field) {
|
|
2000
|
+
case 1:
|
|
2001
|
+
var value = new strategysearch_search_pb.ParamImportance;
|
|
2002
|
+
reader.readMessage(value,strategysearch_search_pb.ParamImportance.deserializeBinaryFromReader);
|
|
2003
|
+
msg.addItems(value);
|
|
2004
|
+
break;
|
|
2005
|
+
default:
|
|
2006
|
+
reader.skipField();
|
|
2007
|
+
break;
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
return msg;
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
/**
|
|
2015
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2016
|
+
* @return {!Uint8Array}
|
|
2017
|
+
*/
|
|
2018
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.serializeBinary = function() {
|
|
2019
|
+
var writer = new jspb.BinaryWriter();
|
|
2020
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.serializeBinaryToWriter(this, writer);
|
|
2021
|
+
return writer.getResultBuffer();
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2027
|
+
* format), writing to the given BinaryWriter.
|
|
2028
|
+
* @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} message
|
|
2029
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2030
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2031
|
+
*/
|
|
2032
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2033
|
+
var f = undefined;
|
|
2034
|
+
f = message.getItemsList();
|
|
2035
|
+
if (f.length > 0) {
|
|
2036
|
+
writer.writeRepeatedMessage(
|
|
2037
|
+
1,
|
|
2038
|
+
f,
|
|
2039
|
+
strategysearch_search_pb.ParamImportance.serializeBinaryToWriter
|
|
2040
|
+
);
|
|
2041
|
+
}
|
|
2042
|
+
};
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* repeated ParamImportance items = 1;
|
|
2047
|
+
* @return {!Array<!proto.trb.strategysearch.v1.ParamImportance>}
|
|
2048
|
+
*/
|
|
2049
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.getItemsList = function() {
|
|
2050
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.ParamImportance>} */ (
|
|
2051
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.ParamImportance, 1));
|
|
2052
|
+
};
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* @param {!Array<!proto.trb.strategysearch.v1.ParamImportance>} value
|
|
2057
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse} returns this
|
|
2058
|
+
*/
|
|
2059
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.setItemsList = function(value) {
|
|
2060
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2061
|
+
};
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* @param {!proto.trb.strategysearch.v1.ParamImportance=} opt_value
|
|
2066
|
+
* @param {number=} opt_index
|
|
2067
|
+
* @return {!proto.trb.strategysearch.v1.ParamImportance}
|
|
2068
|
+
*/
|
|
2069
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
2070
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.ParamImportance, opt_index);
|
|
2071
|
+
};
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Clears the list making it empty but non-null.
|
|
2076
|
+
* @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse} returns this
|
|
2077
|
+
*/
|
|
2078
|
+
proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.clearItemsList = function() {
|
|
2079
|
+
return this.setItemsList([]);
|
|
2080
|
+
};
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2087
|
+
/**
|
|
2088
|
+
* Creates an object representation of this proto.
|
|
2089
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2090
|
+
* Optional fields that are not set will be set to undefined.
|
|
2091
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2092
|
+
* For the list of reserved names please see:
|
|
2093
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2094
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2095
|
+
* JSPB instance for transitional soy proto support:
|
|
2096
|
+
* http://goto/soy-param-migration
|
|
2097
|
+
* @return {!Object}
|
|
2098
|
+
*/
|
|
2099
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2100
|
+
return proto.trb.strategysearch.v1.ListSearchesRequest.toObject(opt_includeInstance, this);
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Static version of the {@see toObject} method.
|
|
2106
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2107
|
+
* the JSPB instance for transitional soy proto support:
|
|
2108
|
+
* http://goto/soy-param-migration
|
|
2109
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchesRequest} msg The msg instance to transform.
|
|
2110
|
+
* @return {!Object}
|
|
2111
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2112
|
+
*/
|
|
2113
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.toObject = function(includeInstance, msg) {
|
|
2114
|
+
var f, obj = {
|
|
2115
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2116
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2117
|
+
offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
if (includeInstance) {
|
|
2121
|
+
obj.$jspbMessageInstance = msg;
|
|
2122
|
+
}
|
|
2123
|
+
return obj;
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2130
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2131
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesRequest}
|
|
2132
|
+
*/
|
|
2133
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinary = function(bytes) {
|
|
2134
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2135
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchesRequest;
|
|
2136
|
+
return proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinaryFromReader(msg, reader);
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2142
|
+
* given reader into the given message object.
|
|
2143
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchesRequest} msg The message object to deserialize into.
|
|
2144
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2145
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesRequest}
|
|
2146
|
+
*/
|
|
2147
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2148
|
+
while (reader.nextField()) {
|
|
2149
|
+
if (reader.isEndGroup()) {
|
|
2150
|
+
break;
|
|
2151
|
+
}
|
|
2152
|
+
var field = reader.getFieldNumber();
|
|
2153
|
+
switch (field) {
|
|
2154
|
+
case 1:
|
|
2155
|
+
var value = /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (reader.readEnum());
|
|
2156
|
+
msg.setStatus(value);
|
|
2157
|
+
break;
|
|
2158
|
+
case 2:
|
|
2159
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2160
|
+
msg.setLimit(value);
|
|
2161
|
+
break;
|
|
2162
|
+
case 3:
|
|
2163
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2164
|
+
msg.setOffset(value);
|
|
2165
|
+
break;
|
|
2166
|
+
default:
|
|
2167
|
+
reader.skipField();
|
|
2168
|
+
break;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
return msg;
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2177
|
+
* @return {!Uint8Array}
|
|
2178
|
+
*/
|
|
2179
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.serializeBinary = function() {
|
|
2180
|
+
var writer = new jspb.BinaryWriter();
|
|
2181
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.serializeBinaryToWriter(this, writer);
|
|
2182
|
+
return writer.getResultBuffer();
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2188
|
+
* format), writing to the given BinaryWriter.
|
|
2189
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchesRequest} message
|
|
2190
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2191
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2192
|
+
*/
|
|
2193
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2194
|
+
var f = undefined;
|
|
2195
|
+
f = message.getStatus();
|
|
2196
|
+
if (f !== 0.0) {
|
|
2197
|
+
writer.writeEnum(
|
|
2198
|
+
1,
|
|
2199
|
+
f
|
|
2200
|
+
);
|
|
2201
|
+
}
|
|
2202
|
+
f = message.getLimit();
|
|
2203
|
+
if (f !== 0) {
|
|
2204
|
+
writer.writeInt32(
|
|
2205
|
+
2,
|
|
2206
|
+
f
|
|
2207
|
+
);
|
|
2208
|
+
}
|
|
2209
|
+
f = message.getOffset();
|
|
2210
|
+
if (f !== 0) {
|
|
2211
|
+
writer.writeInt32(
|
|
2212
|
+
3,
|
|
2213
|
+
f
|
|
2214
|
+
);
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* optional RunStatus status = 1;
|
|
2221
|
+
* @return {!proto.trb.strategysearch.v1.RunStatus}
|
|
2222
|
+
*/
|
|
2223
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.getStatus = function() {
|
|
2224
|
+
return /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* @param {!proto.trb.strategysearch.v1.RunStatus} value
|
|
2230
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesRequest} returns this
|
|
2231
|
+
*/
|
|
2232
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setStatus = function(value) {
|
|
2233
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* optional int32 limit = 2;
|
|
2239
|
+
* @return {number}
|
|
2240
|
+
*/
|
|
2241
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.getLimit = function() {
|
|
2242
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* @param {number} value
|
|
2248
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesRequest} returns this
|
|
2249
|
+
*/
|
|
2250
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setLimit = function(value) {
|
|
2251
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2252
|
+
};
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* optional int32 offset = 3;
|
|
2257
|
+
* @return {number}
|
|
2258
|
+
*/
|
|
2259
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.getOffset = function() {
|
|
2260
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
/**
|
|
2265
|
+
* @param {number} value
|
|
2266
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesRequest} returns this
|
|
2267
|
+
*/
|
|
2268
|
+
proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setOffset = function(value) {
|
|
2269
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* List of repeated fields within this message type.
|
|
2276
|
+
* @private {!Array<number>}
|
|
2277
|
+
* @const
|
|
2278
|
+
*/
|
|
2279
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.repeatedFields_ = [1];
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2284
|
+
/**
|
|
2285
|
+
* Creates an object representation of this proto.
|
|
2286
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2287
|
+
* Optional fields that are not set will be set to undefined.
|
|
2288
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2289
|
+
* For the list of reserved names please see:
|
|
2290
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2291
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2292
|
+
* JSPB instance for transitional soy proto support:
|
|
2293
|
+
* http://goto/soy-param-migration
|
|
2294
|
+
* @return {!Object}
|
|
2295
|
+
*/
|
|
2296
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2297
|
+
return proto.trb.strategysearch.v1.ListSearchesResponse.toObject(opt_includeInstance, this);
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Static version of the {@see toObject} method.
|
|
2303
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2304
|
+
* the JSPB instance for transitional soy proto support:
|
|
2305
|
+
* http://goto/soy-param-migration
|
|
2306
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchesResponse} msg The msg instance to transform.
|
|
2307
|
+
* @return {!Object}
|
|
2308
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2309
|
+
*/
|
|
2310
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.toObject = function(includeInstance, msg) {
|
|
2311
|
+
var f, obj = {
|
|
2312
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
2313
|
+
strategysearch_search_pb.SearchRun.toObject, includeInstance),
|
|
2314
|
+
total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2315
|
+
};
|
|
2316
|
+
|
|
2317
|
+
if (includeInstance) {
|
|
2318
|
+
obj.$jspbMessageInstance = msg;
|
|
2319
|
+
}
|
|
2320
|
+
return obj;
|
|
2321
|
+
};
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2327
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2328
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesResponse}
|
|
2329
|
+
*/
|
|
2330
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinary = function(bytes) {
|
|
2331
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2332
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchesResponse;
|
|
2333
|
+
return proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinaryFromReader(msg, reader);
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2339
|
+
* given reader into the given message object.
|
|
2340
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchesResponse} msg The message object to deserialize into.
|
|
2341
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2342
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesResponse}
|
|
2343
|
+
*/
|
|
2344
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2345
|
+
while (reader.nextField()) {
|
|
2346
|
+
if (reader.isEndGroup()) {
|
|
2347
|
+
break;
|
|
2348
|
+
}
|
|
2349
|
+
var field = reader.getFieldNumber();
|
|
2350
|
+
switch (field) {
|
|
2351
|
+
case 1:
|
|
2352
|
+
var value = new strategysearch_search_pb.SearchRun;
|
|
2353
|
+
reader.readMessage(value,strategysearch_search_pb.SearchRun.deserializeBinaryFromReader);
|
|
2354
|
+
msg.addItems(value);
|
|
2355
|
+
break;
|
|
2356
|
+
case 2:
|
|
2357
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2358
|
+
msg.setTotal(value);
|
|
2359
|
+
break;
|
|
2360
|
+
default:
|
|
2361
|
+
reader.skipField();
|
|
2362
|
+
break;
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
return msg;
|
|
2366
|
+
};
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2371
|
+
* @return {!Uint8Array}
|
|
2372
|
+
*/
|
|
2373
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.serializeBinary = function() {
|
|
2374
|
+
var writer = new jspb.BinaryWriter();
|
|
2375
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.serializeBinaryToWriter(this, writer);
|
|
2376
|
+
return writer.getResultBuffer();
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2382
|
+
* format), writing to the given BinaryWriter.
|
|
2383
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchesResponse} message
|
|
2384
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2385
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2386
|
+
*/
|
|
2387
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2388
|
+
var f = undefined;
|
|
2389
|
+
f = message.getItemsList();
|
|
2390
|
+
if (f.length > 0) {
|
|
2391
|
+
writer.writeRepeatedMessage(
|
|
2392
|
+
1,
|
|
2393
|
+
f,
|
|
2394
|
+
strategysearch_search_pb.SearchRun.serializeBinaryToWriter
|
|
2395
|
+
);
|
|
2396
|
+
}
|
|
2397
|
+
f = message.getTotal();
|
|
2398
|
+
if (f !== 0) {
|
|
2399
|
+
writer.writeInt32(
|
|
2400
|
+
2,
|
|
2401
|
+
f
|
|
2402
|
+
);
|
|
2403
|
+
}
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* repeated SearchRun items = 1;
|
|
2409
|
+
* @return {!Array<!proto.trb.strategysearch.v1.SearchRun>}
|
|
2410
|
+
*/
|
|
2411
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.getItemsList = function() {
|
|
2412
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.SearchRun>} */ (
|
|
2413
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.SearchRun, 1));
|
|
2414
|
+
};
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* @param {!Array<!proto.trb.strategysearch.v1.SearchRun>} value
|
|
2419
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesResponse} returns this
|
|
2420
|
+
*/
|
|
2421
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.setItemsList = function(value) {
|
|
2422
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2423
|
+
};
|
|
2424
|
+
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* @param {!proto.trb.strategysearch.v1.SearchRun=} opt_value
|
|
2428
|
+
* @param {number=} opt_index
|
|
2429
|
+
* @return {!proto.trb.strategysearch.v1.SearchRun}
|
|
2430
|
+
*/
|
|
2431
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
2432
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.SearchRun, opt_index);
|
|
2433
|
+
};
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* Clears the list making it empty but non-null.
|
|
2438
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesResponse} returns this
|
|
2439
|
+
*/
|
|
2440
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.clearItemsList = function() {
|
|
2441
|
+
return this.setItemsList([]);
|
|
2442
|
+
};
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* optional int32 total = 2;
|
|
2447
|
+
* @return {number}
|
|
2448
|
+
*/
|
|
2449
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.getTotal = function() {
|
|
2450
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
* @param {number} value
|
|
2456
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchesResponse} returns this
|
|
2457
|
+
*/
|
|
2458
|
+
proto.trb.strategysearch.v1.ListSearchesResponse.prototype.setTotal = function(value) {
|
|
2459
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2460
|
+
};
|
|
2461
|
+
|
|
2462
|
+
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2467
|
+
/**
|
|
2468
|
+
* Creates an object representation of this proto.
|
|
2469
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2470
|
+
* Optional fields that are not set will be set to undefined.
|
|
2471
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2472
|
+
* For the list of reserved names please see:
|
|
2473
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2474
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2475
|
+
* JSPB instance for transitional soy proto support:
|
|
2476
|
+
* http://goto/soy-param-migration
|
|
2477
|
+
* @return {!Object}
|
|
2478
|
+
*/
|
|
2479
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2480
|
+
return proto.trb.strategysearch.v1.CancelSearchRequest.toObject(opt_includeInstance, this);
|
|
2481
|
+
};
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
/**
|
|
2485
|
+
* Static version of the {@see toObject} method.
|
|
2486
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2487
|
+
* the JSPB instance for transitional soy proto support:
|
|
2488
|
+
* http://goto/soy-param-migration
|
|
2489
|
+
* @param {!proto.trb.strategysearch.v1.CancelSearchRequest} msg The msg instance to transform.
|
|
2490
|
+
* @return {!Object}
|
|
2491
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2492
|
+
*/
|
|
2493
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.toObject = function(includeInstance, msg) {
|
|
2494
|
+
var f, obj = {
|
|
2495
|
+
searchId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2496
|
+
};
|
|
2497
|
+
|
|
2498
|
+
if (includeInstance) {
|
|
2499
|
+
obj.$jspbMessageInstance = msg;
|
|
2500
|
+
}
|
|
2501
|
+
return obj;
|
|
2502
|
+
};
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2508
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2509
|
+
* @return {!proto.trb.strategysearch.v1.CancelSearchRequest}
|
|
2510
|
+
*/
|
|
2511
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinary = function(bytes) {
|
|
2512
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2513
|
+
var msg = new proto.trb.strategysearch.v1.CancelSearchRequest;
|
|
2514
|
+
return proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinaryFromReader(msg, reader);
|
|
2515
|
+
};
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2520
|
+
* given reader into the given message object.
|
|
2521
|
+
* @param {!proto.trb.strategysearch.v1.CancelSearchRequest} msg The message object to deserialize into.
|
|
2522
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2523
|
+
* @return {!proto.trb.strategysearch.v1.CancelSearchRequest}
|
|
2524
|
+
*/
|
|
2525
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2526
|
+
while (reader.nextField()) {
|
|
2527
|
+
if (reader.isEndGroup()) {
|
|
2528
|
+
break;
|
|
2529
|
+
}
|
|
2530
|
+
var field = reader.getFieldNumber();
|
|
2531
|
+
switch (field) {
|
|
2532
|
+
case 1:
|
|
2533
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2534
|
+
msg.setSearchId(value);
|
|
2535
|
+
break;
|
|
2536
|
+
default:
|
|
2537
|
+
reader.skipField();
|
|
2538
|
+
break;
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
return msg;
|
|
2542
|
+
};
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
/**
|
|
2546
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2547
|
+
* @return {!Uint8Array}
|
|
2548
|
+
*/
|
|
2549
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.prototype.serializeBinary = function() {
|
|
2550
|
+
var writer = new jspb.BinaryWriter();
|
|
2551
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.serializeBinaryToWriter(this, writer);
|
|
2552
|
+
return writer.getResultBuffer();
|
|
2553
|
+
};
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2558
|
+
* format), writing to the given BinaryWriter.
|
|
2559
|
+
* @param {!proto.trb.strategysearch.v1.CancelSearchRequest} message
|
|
2560
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2561
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2562
|
+
*/
|
|
2563
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2564
|
+
var f = undefined;
|
|
2565
|
+
f = message.getSearchId();
|
|
2566
|
+
if (f.length > 0) {
|
|
2567
|
+
writer.writeString(
|
|
2568
|
+
1,
|
|
2569
|
+
f
|
|
2570
|
+
);
|
|
2571
|
+
}
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* optional string search_id = 1;
|
|
2577
|
+
* @return {string}
|
|
2578
|
+
*/
|
|
2579
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.prototype.getSearchId = function() {
|
|
2580
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* @param {string} value
|
|
2586
|
+
* @return {!proto.trb.strategysearch.v1.CancelSearchRequest} returns this
|
|
2587
|
+
*/
|
|
2588
|
+
proto.trb.strategysearch.v1.CancelSearchRequest.prototype.setSearchId = function(value) {
|
|
2589
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2590
|
+
};
|
|
2591
|
+
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* List of repeated fields within this message type.
|
|
2596
|
+
* @private {!Array<number>}
|
|
2597
|
+
* @const
|
|
2598
|
+
*/
|
|
2599
|
+
proto.trb.strategysearch.v1.SearchPreset.repeatedFields_ = [4];
|
|
2600
|
+
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2604
|
+
/**
|
|
2605
|
+
* Creates an object representation of this proto.
|
|
2606
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2607
|
+
* Optional fields that are not set will be set to undefined.
|
|
2608
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2609
|
+
* For the list of reserved names please see:
|
|
2610
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2611
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2612
|
+
* JSPB instance for transitional soy proto support:
|
|
2613
|
+
* http://goto/soy-param-migration
|
|
2614
|
+
* @return {!Object}
|
|
2615
|
+
*/
|
|
2616
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.toObject = function(opt_includeInstance) {
|
|
2617
|
+
return proto.trb.strategysearch.v1.SearchPreset.toObject(opt_includeInstance, this);
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* Static version of the {@see toObject} method.
|
|
2623
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2624
|
+
* the JSPB instance for transitional soy proto support:
|
|
2625
|
+
* http://goto/soy-param-migration
|
|
2626
|
+
* @param {!proto.trb.strategysearch.v1.SearchPreset} msg The msg instance to transform.
|
|
2627
|
+
* @return {!Object}
|
|
2628
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2629
|
+
*/
|
|
2630
|
+
proto.trb.strategysearch.v1.SearchPreset.toObject = function(includeInstance, msg) {
|
|
2631
|
+
var f, obj = {
|
|
2632
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2633
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2634
|
+
baseSpec: (f = msg.getBaseSpec()) && strategysearch_spec_pb.StrategySearchSpec.toObject(includeInstance, f),
|
|
2635
|
+
searchSpaceList: jspb.Message.toObjectList(msg.getSearchSpaceList(),
|
|
2636
|
+
strategysearch_search_pb.ParamRange.toObject, includeInstance),
|
|
2637
|
+
study: (f = msg.getStudy()) && strategysearch_search_pb.StudyConfig.toObject(includeInstance, f),
|
|
2638
|
+
config: (f = msg.getConfig()) && strategysearch_backtest_pb.BacktestConfig.toObject(includeInstance, f),
|
|
2639
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2642
|
+
if (includeInstance) {
|
|
2643
|
+
obj.$jspbMessageInstance = msg;
|
|
2644
|
+
}
|
|
2645
|
+
return obj;
|
|
2646
|
+
};
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
/**
|
|
2651
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2652
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2653
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset}
|
|
2654
|
+
*/
|
|
2655
|
+
proto.trb.strategysearch.v1.SearchPreset.deserializeBinary = function(bytes) {
|
|
2656
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2657
|
+
var msg = new proto.trb.strategysearch.v1.SearchPreset;
|
|
2658
|
+
return proto.trb.strategysearch.v1.SearchPreset.deserializeBinaryFromReader(msg, reader);
|
|
2659
|
+
};
|
|
2660
|
+
|
|
2661
|
+
|
|
2662
|
+
/**
|
|
2663
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2664
|
+
* given reader into the given message object.
|
|
2665
|
+
* @param {!proto.trb.strategysearch.v1.SearchPreset} msg The message object to deserialize into.
|
|
2666
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2667
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset}
|
|
2668
|
+
*/
|
|
2669
|
+
proto.trb.strategysearch.v1.SearchPreset.deserializeBinaryFromReader = function(msg, reader) {
|
|
2670
|
+
while (reader.nextField()) {
|
|
2671
|
+
if (reader.isEndGroup()) {
|
|
2672
|
+
break;
|
|
2673
|
+
}
|
|
2674
|
+
var field = reader.getFieldNumber();
|
|
2675
|
+
switch (field) {
|
|
2676
|
+
case 1:
|
|
2677
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2678
|
+
msg.setId(value);
|
|
2679
|
+
break;
|
|
2680
|
+
case 2:
|
|
2681
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2682
|
+
msg.setName(value);
|
|
2683
|
+
break;
|
|
2684
|
+
case 3:
|
|
2685
|
+
var value = new strategysearch_spec_pb.StrategySearchSpec;
|
|
2686
|
+
reader.readMessage(value,strategysearch_spec_pb.StrategySearchSpec.deserializeBinaryFromReader);
|
|
2687
|
+
msg.setBaseSpec(value);
|
|
2688
|
+
break;
|
|
2689
|
+
case 4:
|
|
2690
|
+
var value = new strategysearch_search_pb.ParamRange;
|
|
2691
|
+
reader.readMessage(value,strategysearch_search_pb.ParamRange.deserializeBinaryFromReader);
|
|
2692
|
+
msg.addSearchSpace(value);
|
|
2693
|
+
break;
|
|
2694
|
+
case 5:
|
|
2695
|
+
var value = new strategysearch_search_pb.StudyConfig;
|
|
2696
|
+
reader.readMessage(value,strategysearch_search_pb.StudyConfig.deserializeBinaryFromReader);
|
|
2697
|
+
msg.setStudy(value);
|
|
2698
|
+
break;
|
|
2699
|
+
case 6:
|
|
2700
|
+
var value = new strategysearch_backtest_pb.BacktestConfig;
|
|
2701
|
+
reader.readMessage(value,strategysearch_backtest_pb.BacktestConfig.deserializeBinaryFromReader);
|
|
2702
|
+
msg.setConfig(value);
|
|
2703
|
+
break;
|
|
2704
|
+
case 7:
|
|
2705
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2706
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2707
|
+
msg.setCreatedAt(value);
|
|
2708
|
+
break;
|
|
2709
|
+
default:
|
|
2710
|
+
reader.skipField();
|
|
2711
|
+
break;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
return msg;
|
|
2715
|
+
};
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
/**
|
|
2719
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2720
|
+
* @return {!Uint8Array}
|
|
2721
|
+
*/
|
|
2722
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.serializeBinary = function() {
|
|
2723
|
+
var writer = new jspb.BinaryWriter();
|
|
2724
|
+
proto.trb.strategysearch.v1.SearchPreset.serializeBinaryToWriter(this, writer);
|
|
2725
|
+
return writer.getResultBuffer();
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2731
|
+
* format), writing to the given BinaryWriter.
|
|
2732
|
+
* @param {!proto.trb.strategysearch.v1.SearchPreset} message
|
|
2733
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2734
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2735
|
+
*/
|
|
2736
|
+
proto.trb.strategysearch.v1.SearchPreset.serializeBinaryToWriter = function(message, writer) {
|
|
2737
|
+
var f = undefined;
|
|
2738
|
+
f = message.getId();
|
|
2739
|
+
if (f.length > 0) {
|
|
2740
|
+
writer.writeString(
|
|
2741
|
+
1,
|
|
2742
|
+
f
|
|
2743
|
+
);
|
|
2744
|
+
}
|
|
2745
|
+
f = message.getName();
|
|
2746
|
+
if (f.length > 0) {
|
|
2747
|
+
writer.writeString(
|
|
2748
|
+
2,
|
|
2749
|
+
f
|
|
2750
|
+
);
|
|
2751
|
+
}
|
|
2752
|
+
f = message.getBaseSpec();
|
|
2753
|
+
if (f != null) {
|
|
2754
|
+
writer.writeMessage(
|
|
2755
|
+
3,
|
|
2756
|
+
f,
|
|
2757
|
+
strategysearch_spec_pb.StrategySearchSpec.serializeBinaryToWriter
|
|
2758
|
+
);
|
|
2759
|
+
}
|
|
2760
|
+
f = message.getSearchSpaceList();
|
|
2761
|
+
if (f.length > 0) {
|
|
2762
|
+
writer.writeRepeatedMessage(
|
|
2763
|
+
4,
|
|
2764
|
+
f,
|
|
2765
|
+
strategysearch_search_pb.ParamRange.serializeBinaryToWriter
|
|
2766
|
+
);
|
|
2767
|
+
}
|
|
2768
|
+
f = message.getStudy();
|
|
2769
|
+
if (f != null) {
|
|
2770
|
+
writer.writeMessage(
|
|
2771
|
+
5,
|
|
2772
|
+
f,
|
|
2773
|
+
strategysearch_search_pb.StudyConfig.serializeBinaryToWriter
|
|
2774
|
+
);
|
|
2775
|
+
}
|
|
2776
|
+
f = message.getConfig();
|
|
2777
|
+
if (f != null) {
|
|
2778
|
+
writer.writeMessage(
|
|
2779
|
+
6,
|
|
2780
|
+
f,
|
|
2781
|
+
strategysearch_backtest_pb.BacktestConfig.serializeBinaryToWriter
|
|
2782
|
+
);
|
|
2783
|
+
}
|
|
2784
|
+
f = message.getCreatedAt();
|
|
2785
|
+
if (f != null) {
|
|
2786
|
+
writer.writeMessage(
|
|
2787
|
+
7,
|
|
2788
|
+
f,
|
|
2789
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2790
|
+
);
|
|
2791
|
+
}
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
/**
|
|
2796
|
+
* optional string id = 1;
|
|
2797
|
+
* @return {string}
|
|
2798
|
+
*/
|
|
2799
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.getId = function() {
|
|
2800
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2803
|
+
|
|
2804
|
+
/**
|
|
2805
|
+
* @param {string} value
|
|
2806
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2807
|
+
*/
|
|
2808
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.setId = function(value) {
|
|
2809
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2810
|
+
};
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* optional string name = 2;
|
|
2815
|
+
* @return {string}
|
|
2816
|
+
*/
|
|
2817
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.getName = function() {
|
|
2818
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2819
|
+
};
|
|
2820
|
+
|
|
2821
|
+
|
|
2822
|
+
/**
|
|
2823
|
+
* @param {string} value
|
|
2824
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2825
|
+
*/
|
|
2826
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.setName = function(value) {
|
|
2827
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2828
|
+
};
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* optional StrategySearchSpec base_spec = 3;
|
|
2833
|
+
* @return {?proto.trb.strategysearch.v1.StrategySearchSpec}
|
|
2834
|
+
*/
|
|
2835
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.getBaseSpec = function() {
|
|
2836
|
+
return /** @type{?proto.trb.strategysearch.v1.StrategySearchSpec} */ (
|
|
2837
|
+
jspb.Message.getWrapperField(this, strategysearch_spec_pb.StrategySearchSpec, 3));
|
|
2838
|
+
};
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* @param {?proto.trb.strategysearch.v1.StrategySearchSpec|undefined} value
|
|
2843
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2844
|
+
*/
|
|
2845
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.setBaseSpec = function(value) {
|
|
2846
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Clears the message field making it undefined.
|
|
2852
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2853
|
+
*/
|
|
2854
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.clearBaseSpec = function() {
|
|
2855
|
+
return this.setBaseSpec(undefined);
|
|
2856
|
+
};
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
/**
|
|
2860
|
+
* Returns whether this field is set.
|
|
2861
|
+
* @return {boolean}
|
|
2862
|
+
*/
|
|
2863
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.hasBaseSpec = function() {
|
|
2864
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* repeated ParamRange search_space = 4;
|
|
2870
|
+
* @return {!Array<!proto.trb.strategysearch.v1.ParamRange>}
|
|
2871
|
+
*/
|
|
2872
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.getSearchSpaceList = function() {
|
|
2873
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.ParamRange>} */ (
|
|
2874
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.ParamRange, 4));
|
|
2875
|
+
};
|
|
2876
|
+
|
|
2877
|
+
|
|
2878
|
+
/**
|
|
2879
|
+
* @param {!Array<!proto.trb.strategysearch.v1.ParamRange>} value
|
|
2880
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2881
|
+
*/
|
|
2882
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.setSearchSpaceList = function(value) {
|
|
2883
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
2884
|
+
};
|
|
2885
|
+
|
|
2886
|
+
|
|
2887
|
+
/**
|
|
2888
|
+
* @param {!proto.trb.strategysearch.v1.ParamRange=} opt_value
|
|
2889
|
+
* @param {number=} opt_index
|
|
2890
|
+
* @return {!proto.trb.strategysearch.v1.ParamRange}
|
|
2891
|
+
*/
|
|
2892
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.addSearchSpace = function(opt_value, opt_index) {
|
|
2893
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.trb.strategysearch.v1.ParamRange, opt_index);
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* Clears the list making it empty but non-null.
|
|
2899
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2900
|
+
*/
|
|
2901
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.clearSearchSpaceList = function() {
|
|
2902
|
+
return this.setSearchSpaceList([]);
|
|
2903
|
+
};
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
/**
|
|
2907
|
+
* optional StudyConfig study = 5;
|
|
2908
|
+
* @return {?proto.trb.strategysearch.v1.StudyConfig}
|
|
2909
|
+
*/
|
|
2910
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.getStudy = function() {
|
|
2911
|
+
return /** @type{?proto.trb.strategysearch.v1.StudyConfig} */ (
|
|
2912
|
+
jspb.Message.getWrapperField(this, strategysearch_search_pb.StudyConfig, 5));
|
|
2913
|
+
};
|
|
2914
|
+
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* @param {?proto.trb.strategysearch.v1.StudyConfig|undefined} value
|
|
2918
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2919
|
+
*/
|
|
2920
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.setStudy = function(value) {
|
|
2921
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
2922
|
+
};
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Clears the message field making it undefined.
|
|
2927
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2928
|
+
*/
|
|
2929
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.clearStudy = function() {
|
|
2930
|
+
return this.setStudy(undefined);
|
|
2931
|
+
};
|
|
2932
|
+
|
|
2933
|
+
|
|
2934
|
+
/**
|
|
2935
|
+
* Returns whether this field is set.
|
|
2936
|
+
* @return {boolean}
|
|
2937
|
+
*/
|
|
2938
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.hasStudy = function() {
|
|
2939
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2940
|
+
};
|
|
2941
|
+
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* optional BacktestConfig config = 6;
|
|
2945
|
+
* @return {?proto.trb.strategysearch.v1.BacktestConfig}
|
|
2946
|
+
*/
|
|
2947
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.getConfig = function() {
|
|
2948
|
+
return /** @type{?proto.trb.strategysearch.v1.BacktestConfig} */ (
|
|
2949
|
+
jspb.Message.getWrapperField(this, strategysearch_backtest_pb.BacktestConfig, 6));
|
|
2950
|
+
};
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* @param {?proto.trb.strategysearch.v1.BacktestConfig|undefined} value
|
|
2955
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2956
|
+
*/
|
|
2957
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.setConfig = function(value) {
|
|
2958
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
2959
|
+
};
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* Clears the message field making it undefined.
|
|
2964
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2965
|
+
*/
|
|
2966
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.clearConfig = function() {
|
|
2967
|
+
return this.setConfig(undefined);
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* Returns whether this field is set.
|
|
2973
|
+
* @return {boolean}
|
|
2974
|
+
*/
|
|
2975
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.hasConfig = function() {
|
|
2976
|
+
return jspb.Message.getField(this, 6) != null;
|
|
2977
|
+
};
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
/**
|
|
2981
|
+
* optional google.protobuf.Timestamp created_at = 7;
|
|
2982
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2983
|
+
*/
|
|
2984
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.getCreatedAt = function() {
|
|
2985
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2986
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2992
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
2993
|
+
*/
|
|
2994
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.setCreatedAt = function(value) {
|
|
2995
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
2996
|
+
};
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* Clears the message field making it undefined.
|
|
3001
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset} returns this
|
|
3002
|
+
*/
|
|
3003
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.clearCreatedAt = function() {
|
|
3004
|
+
return this.setCreatedAt(undefined);
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
/**
|
|
3009
|
+
* Returns whether this field is set.
|
|
3010
|
+
* @return {boolean}
|
|
3011
|
+
*/
|
|
3012
|
+
proto.trb.strategysearch.v1.SearchPreset.prototype.hasCreatedAt = function() {
|
|
3013
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3014
|
+
};
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* List of repeated fields within this message type.
|
|
3020
|
+
* @private {!Array<number>}
|
|
3021
|
+
* @const
|
|
3022
|
+
*/
|
|
3023
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.repeatedFields_ = [3];
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3028
|
+
/**
|
|
3029
|
+
* Creates an object representation of this proto.
|
|
3030
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3031
|
+
* Optional fields that are not set will be set to undefined.
|
|
3032
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3033
|
+
* For the list of reserved names please see:
|
|
3034
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3035
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3036
|
+
* JSPB instance for transitional soy proto support:
|
|
3037
|
+
* http://goto/soy-param-migration
|
|
3038
|
+
* @return {!Object}
|
|
3039
|
+
*/
|
|
3040
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3041
|
+
return proto.trb.strategysearch.v1.CreateSearchPresetRequest.toObject(opt_includeInstance, this);
|
|
3042
|
+
};
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
/**
|
|
3046
|
+
* Static version of the {@see toObject} method.
|
|
3047
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3048
|
+
* the JSPB instance for transitional soy proto support:
|
|
3049
|
+
* http://goto/soy-param-migration
|
|
3050
|
+
* @param {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} msg The msg instance to transform.
|
|
3051
|
+
* @return {!Object}
|
|
3052
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3053
|
+
*/
|
|
3054
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.toObject = function(includeInstance, msg) {
|
|
3055
|
+
var f, obj = {
|
|
3056
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3057
|
+
baseSpec: (f = msg.getBaseSpec()) && strategysearch_spec_pb.StrategySearchSpec.toObject(includeInstance, f),
|
|
3058
|
+
searchSpaceList: jspb.Message.toObjectList(msg.getSearchSpaceList(),
|
|
3059
|
+
strategysearch_search_pb.ParamRange.toObject, includeInstance),
|
|
3060
|
+
study: (f = msg.getStudy()) && strategysearch_search_pb.StudyConfig.toObject(includeInstance, f),
|
|
3061
|
+
config: (f = msg.getConfig()) && strategysearch_backtest_pb.BacktestConfig.toObject(includeInstance, f)
|
|
3062
|
+
};
|
|
3063
|
+
|
|
3064
|
+
if (includeInstance) {
|
|
3065
|
+
obj.$jspbMessageInstance = msg;
|
|
3066
|
+
}
|
|
3067
|
+
return obj;
|
|
3068
|
+
};
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
/**
|
|
3073
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3074
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3075
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest}
|
|
3076
|
+
*/
|
|
3077
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.deserializeBinary = function(bytes) {
|
|
3078
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3079
|
+
var msg = new proto.trb.strategysearch.v1.CreateSearchPresetRequest;
|
|
3080
|
+
return proto.trb.strategysearch.v1.CreateSearchPresetRequest.deserializeBinaryFromReader(msg, reader);
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
/**
|
|
3085
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3086
|
+
* given reader into the given message object.
|
|
3087
|
+
* @param {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} msg The message object to deserialize into.
|
|
3088
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3089
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest}
|
|
3090
|
+
*/
|
|
3091
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3092
|
+
while (reader.nextField()) {
|
|
3093
|
+
if (reader.isEndGroup()) {
|
|
3094
|
+
break;
|
|
3095
|
+
}
|
|
3096
|
+
var field = reader.getFieldNumber();
|
|
3097
|
+
switch (field) {
|
|
3098
|
+
case 1:
|
|
3099
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3100
|
+
msg.setName(value);
|
|
3101
|
+
break;
|
|
3102
|
+
case 2:
|
|
3103
|
+
var value = new strategysearch_spec_pb.StrategySearchSpec;
|
|
3104
|
+
reader.readMessage(value,strategysearch_spec_pb.StrategySearchSpec.deserializeBinaryFromReader);
|
|
3105
|
+
msg.setBaseSpec(value);
|
|
3106
|
+
break;
|
|
3107
|
+
case 3:
|
|
3108
|
+
var value = new strategysearch_search_pb.ParamRange;
|
|
3109
|
+
reader.readMessage(value,strategysearch_search_pb.ParamRange.deserializeBinaryFromReader);
|
|
3110
|
+
msg.addSearchSpace(value);
|
|
3111
|
+
break;
|
|
3112
|
+
case 4:
|
|
3113
|
+
var value = new strategysearch_search_pb.StudyConfig;
|
|
3114
|
+
reader.readMessage(value,strategysearch_search_pb.StudyConfig.deserializeBinaryFromReader);
|
|
3115
|
+
msg.setStudy(value);
|
|
3116
|
+
break;
|
|
3117
|
+
case 5:
|
|
3118
|
+
var value = new strategysearch_backtest_pb.BacktestConfig;
|
|
3119
|
+
reader.readMessage(value,strategysearch_backtest_pb.BacktestConfig.deserializeBinaryFromReader);
|
|
3120
|
+
msg.setConfig(value);
|
|
3121
|
+
break;
|
|
3122
|
+
default:
|
|
3123
|
+
reader.skipField();
|
|
3124
|
+
break;
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
return msg;
|
|
3128
|
+
};
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
/**
|
|
3132
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3133
|
+
* @return {!Uint8Array}
|
|
3134
|
+
*/
|
|
3135
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.serializeBinary = function() {
|
|
3136
|
+
var writer = new jspb.BinaryWriter();
|
|
3137
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.serializeBinaryToWriter(this, writer);
|
|
3138
|
+
return writer.getResultBuffer();
|
|
3139
|
+
};
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
/**
|
|
3143
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3144
|
+
* format), writing to the given BinaryWriter.
|
|
3145
|
+
* @param {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} message
|
|
3146
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3147
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3148
|
+
*/
|
|
3149
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3150
|
+
var f = undefined;
|
|
3151
|
+
f = message.getName();
|
|
3152
|
+
if (f.length > 0) {
|
|
3153
|
+
writer.writeString(
|
|
3154
|
+
1,
|
|
3155
|
+
f
|
|
3156
|
+
);
|
|
3157
|
+
}
|
|
3158
|
+
f = message.getBaseSpec();
|
|
3159
|
+
if (f != null) {
|
|
3160
|
+
writer.writeMessage(
|
|
3161
|
+
2,
|
|
3162
|
+
f,
|
|
3163
|
+
strategysearch_spec_pb.StrategySearchSpec.serializeBinaryToWriter
|
|
3164
|
+
);
|
|
3165
|
+
}
|
|
3166
|
+
f = message.getSearchSpaceList();
|
|
3167
|
+
if (f.length > 0) {
|
|
3168
|
+
writer.writeRepeatedMessage(
|
|
3169
|
+
3,
|
|
3170
|
+
f,
|
|
3171
|
+
strategysearch_search_pb.ParamRange.serializeBinaryToWriter
|
|
3172
|
+
);
|
|
3173
|
+
}
|
|
3174
|
+
f = message.getStudy();
|
|
3175
|
+
if (f != null) {
|
|
3176
|
+
writer.writeMessage(
|
|
3177
|
+
4,
|
|
3178
|
+
f,
|
|
3179
|
+
strategysearch_search_pb.StudyConfig.serializeBinaryToWriter
|
|
3180
|
+
);
|
|
3181
|
+
}
|
|
3182
|
+
f = message.getConfig();
|
|
3183
|
+
if (f != null) {
|
|
3184
|
+
writer.writeMessage(
|
|
3185
|
+
5,
|
|
3186
|
+
f,
|
|
3187
|
+
strategysearch_backtest_pb.BacktestConfig.serializeBinaryToWriter
|
|
3188
|
+
);
|
|
3189
|
+
}
|
|
3190
|
+
};
|
|
3191
|
+
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* optional string name = 1;
|
|
3195
|
+
* @return {string}
|
|
3196
|
+
*/
|
|
3197
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.getName = function() {
|
|
3198
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3199
|
+
};
|
|
3200
|
+
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* @param {string} value
|
|
3204
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3205
|
+
*/
|
|
3206
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.setName = function(value) {
|
|
3207
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* optional StrategySearchSpec base_spec = 2;
|
|
3213
|
+
* @return {?proto.trb.strategysearch.v1.StrategySearchSpec}
|
|
3214
|
+
*/
|
|
3215
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.getBaseSpec = function() {
|
|
3216
|
+
return /** @type{?proto.trb.strategysearch.v1.StrategySearchSpec} */ (
|
|
3217
|
+
jspb.Message.getWrapperField(this, strategysearch_spec_pb.StrategySearchSpec, 2));
|
|
3218
|
+
};
|
|
3219
|
+
|
|
3220
|
+
|
|
3221
|
+
/**
|
|
3222
|
+
* @param {?proto.trb.strategysearch.v1.StrategySearchSpec|undefined} value
|
|
3223
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3224
|
+
*/
|
|
3225
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.setBaseSpec = function(value) {
|
|
3226
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3227
|
+
};
|
|
3228
|
+
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* Clears the message field making it undefined.
|
|
3232
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3233
|
+
*/
|
|
3234
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.clearBaseSpec = function() {
|
|
3235
|
+
return this.setBaseSpec(undefined);
|
|
3236
|
+
};
|
|
3237
|
+
|
|
3238
|
+
|
|
3239
|
+
/**
|
|
3240
|
+
* Returns whether this field is set.
|
|
3241
|
+
* @return {boolean}
|
|
3242
|
+
*/
|
|
3243
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.hasBaseSpec = function() {
|
|
3244
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3245
|
+
};
|
|
3246
|
+
|
|
3247
|
+
|
|
3248
|
+
/**
|
|
3249
|
+
* repeated ParamRange search_space = 3;
|
|
3250
|
+
* @return {!Array<!proto.trb.strategysearch.v1.ParamRange>}
|
|
3251
|
+
*/
|
|
3252
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.getSearchSpaceList = function() {
|
|
3253
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.ParamRange>} */ (
|
|
3254
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.ParamRange, 3));
|
|
3255
|
+
};
|
|
3256
|
+
|
|
3257
|
+
|
|
3258
|
+
/**
|
|
3259
|
+
* @param {!Array<!proto.trb.strategysearch.v1.ParamRange>} value
|
|
3260
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3261
|
+
*/
|
|
3262
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.setSearchSpaceList = function(value) {
|
|
3263
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
3264
|
+
};
|
|
3265
|
+
|
|
3266
|
+
|
|
3267
|
+
/**
|
|
3268
|
+
* @param {!proto.trb.strategysearch.v1.ParamRange=} opt_value
|
|
3269
|
+
* @param {number=} opt_index
|
|
3270
|
+
* @return {!proto.trb.strategysearch.v1.ParamRange}
|
|
3271
|
+
*/
|
|
3272
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.addSearchSpace = function(opt_value, opt_index) {
|
|
3273
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.trb.strategysearch.v1.ParamRange, opt_index);
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
|
|
3277
|
+
/**
|
|
3278
|
+
* Clears the list making it empty but non-null.
|
|
3279
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3280
|
+
*/
|
|
3281
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.clearSearchSpaceList = function() {
|
|
3282
|
+
return this.setSearchSpaceList([]);
|
|
3283
|
+
};
|
|
3284
|
+
|
|
3285
|
+
|
|
3286
|
+
/**
|
|
3287
|
+
* optional StudyConfig study = 4;
|
|
3288
|
+
* @return {?proto.trb.strategysearch.v1.StudyConfig}
|
|
3289
|
+
*/
|
|
3290
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.getStudy = function() {
|
|
3291
|
+
return /** @type{?proto.trb.strategysearch.v1.StudyConfig} */ (
|
|
3292
|
+
jspb.Message.getWrapperField(this, strategysearch_search_pb.StudyConfig, 4));
|
|
3293
|
+
};
|
|
3294
|
+
|
|
3295
|
+
|
|
3296
|
+
/**
|
|
3297
|
+
* @param {?proto.trb.strategysearch.v1.StudyConfig|undefined} value
|
|
3298
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3299
|
+
*/
|
|
3300
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.setStudy = function(value) {
|
|
3301
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
3302
|
+
};
|
|
3303
|
+
|
|
3304
|
+
|
|
3305
|
+
/**
|
|
3306
|
+
* Clears the message field making it undefined.
|
|
3307
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3308
|
+
*/
|
|
3309
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.clearStudy = function() {
|
|
3310
|
+
return this.setStudy(undefined);
|
|
3311
|
+
};
|
|
3312
|
+
|
|
3313
|
+
|
|
3314
|
+
/**
|
|
3315
|
+
* Returns whether this field is set.
|
|
3316
|
+
* @return {boolean}
|
|
3317
|
+
*/
|
|
3318
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.hasStudy = function() {
|
|
3319
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3320
|
+
};
|
|
3321
|
+
|
|
3322
|
+
|
|
3323
|
+
/**
|
|
3324
|
+
* optional BacktestConfig config = 5;
|
|
3325
|
+
* @return {?proto.trb.strategysearch.v1.BacktestConfig}
|
|
3326
|
+
*/
|
|
3327
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.getConfig = function() {
|
|
3328
|
+
return /** @type{?proto.trb.strategysearch.v1.BacktestConfig} */ (
|
|
3329
|
+
jspb.Message.getWrapperField(this, strategysearch_backtest_pb.BacktestConfig, 5));
|
|
3330
|
+
};
|
|
3331
|
+
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* @param {?proto.trb.strategysearch.v1.BacktestConfig|undefined} value
|
|
3335
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3336
|
+
*/
|
|
3337
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.setConfig = function(value) {
|
|
3338
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
3339
|
+
};
|
|
3340
|
+
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Clears the message field making it undefined.
|
|
3344
|
+
* @return {!proto.trb.strategysearch.v1.CreateSearchPresetRequest} returns this
|
|
3345
|
+
*/
|
|
3346
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.clearConfig = function() {
|
|
3347
|
+
return this.setConfig(undefined);
|
|
3348
|
+
};
|
|
3349
|
+
|
|
3350
|
+
|
|
3351
|
+
/**
|
|
3352
|
+
* Returns whether this field is set.
|
|
3353
|
+
* @return {boolean}
|
|
3354
|
+
*/
|
|
3355
|
+
proto.trb.strategysearch.v1.CreateSearchPresetRequest.prototype.hasConfig = function() {
|
|
3356
|
+
return jspb.Message.getField(this, 5) != null;
|
|
3357
|
+
};
|
|
3358
|
+
|
|
3359
|
+
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
|
|
3363
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3364
|
+
/**
|
|
3365
|
+
* Creates an object representation of this proto.
|
|
3366
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3367
|
+
* Optional fields that are not set will be set to undefined.
|
|
3368
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3369
|
+
* For the list of reserved names please see:
|
|
3370
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3371
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3372
|
+
* JSPB instance for transitional soy proto support:
|
|
3373
|
+
* http://goto/soy-param-migration
|
|
3374
|
+
* @return {!Object}
|
|
3375
|
+
*/
|
|
3376
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3377
|
+
return proto.trb.strategysearch.v1.ListSearchPresetsRequest.toObject(opt_includeInstance, this);
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Static version of the {@see toObject} method.
|
|
3383
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3384
|
+
* the JSPB instance for transitional soy proto support:
|
|
3385
|
+
* http://goto/soy-param-migration
|
|
3386
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchPresetsRequest} msg The msg instance to transform.
|
|
3387
|
+
* @return {!Object}
|
|
3388
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3389
|
+
*/
|
|
3390
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.toObject = function(includeInstance, msg) {
|
|
3391
|
+
var f, obj = {
|
|
3392
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3393
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
3394
|
+
};
|
|
3395
|
+
|
|
3396
|
+
if (includeInstance) {
|
|
3397
|
+
obj.$jspbMessageInstance = msg;
|
|
3398
|
+
}
|
|
3399
|
+
return obj;
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3406
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3407
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsRequest}
|
|
3408
|
+
*/
|
|
3409
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.deserializeBinary = function(bytes) {
|
|
3410
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3411
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchPresetsRequest;
|
|
3412
|
+
return proto.trb.strategysearch.v1.ListSearchPresetsRequest.deserializeBinaryFromReader(msg, reader);
|
|
3413
|
+
};
|
|
3414
|
+
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3418
|
+
* given reader into the given message object.
|
|
3419
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchPresetsRequest} msg The message object to deserialize into.
|
|
3420
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3421
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsRequest}
|
|
3422
|
+
*/
|
|
3423
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3424
|
+
while (reader.nextField()) {
|
|
3425
|
+
if (reader.isEndGroup()) {
|
|
3426
|
+
break;
|
|
3427
|
+
}
|
|
3428
|
+
var field = reader.getFieldNumber();
|
|
3429
|
+
switch (field) {
|
|
3430
|
+
case 1:
|
|
3431
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3432
|
+
msg.setLimit(value);
|
|
3433
|
+
break;
|
|
3434
|
+
case 2:
|
|
3435
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3436
|
+
msg.setOffset(value);
|
|
3437
|
+
break;
|
|
3438
|
+
default:
|
|
3439
|
+
reader.skipField();
|
|
3440
|
+
break;
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
return msg;
|
|
3444
|
+
};
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3449
|
+
* @return {!Uint8Array}
|
|
3450
|
+
*/
|
|
3451
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.prototype.serializeBinary = function() {
|
|
3452
|
+
var writer = new jspb.BinaryWriter();
|
|
3453
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.serializeBinaryToWriter(this, writer);
|
|
3454
|
+
return writer.getResultBuffer();
|
|
3455
|
+
};
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
/**
|
|
3459
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3460
|
+
* format), writing to the given BinaryWriter.
|
|
3461
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchPresetsRequest} message
|
|
3462
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3463
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3464
|
+
*/
|
|
3465
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3466
|
+
var f = undefined;
|
|
3467
|
+
f = message.getLimit();
|
|
3468
|
+
if (f !== 0) {
|
|
3469
|
+
writer.writeInt32(
|
|
3470
|
+
1,
|
|
3471
|
+
f
|
|
3472
|
+
);
|
|
3473
|
+
}
|
|
3474
|
+
f = message.getOffset();
|
|
3475
|
+
if (f !== 0) {
|
|
3476
|
+
writer.writeInt32(
|
|
3477
|
+
2,
|
|
3478
|
+
f
|
|
3479
|
+
);
|
|
3480
|
+
}
|
|
3481
|
+
};
|
|
3482
|
+
|
|
3483
|
+
|
|
3484
|
+
/**
|
|
3485
|
+
* optional int32 limit = 1;
|
|
3486
|
+
* @return {number}
|
|
3487
|
+
*/
|
|
3488
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.prototype.getLimit = function() {
|
|
3489
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3490
|
+
};
|
|
3491
|
+
|
|
3492
|
+
|
|
3493
|
+
/**
|
|
3494
|
+
* @param {number} value
|
|
3495
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsRequest} returns this
|
|
3496
|
+
*/
|
|
3497
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.prototype.setLimit = function(value) {
|
|
3498
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* optional int32 offset = 2;
|
|
3504
|
+
* @return {number}
|
|
3505
|
+
*/
|
|
3506
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.prototype.getOffset = function() {
|
|
3507
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3508
|
+
};
|
|
3509
|
+
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* @param {number} value
|
|
3513
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsRequest} returns this
|
|
3514
|
+
*/
|
|
3515
|
+
proto.trb.strategysearch.v1.ListSearchPresetsRequest.prototype.setOffset = function(value) {
|
|
3516
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
|
|
3520
|
+
|
|
3521
|
+
/**
|
|
3522
|
+
* List of repeated fields within this message type.
|
|
3523
|
+
* @private {!Array<number>}
|
|
3524
|
+
* @const
|
|
3525
|
+
*/
|
|
3526
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.repeatedFields_ = [1];
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3531
|
+
/**
|
|
3532
|
+
* Creates an object representation of this proto.
|
|
3533
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3534
|
+
* Optional fields that are not set will be set to undefined.
|
|
3535
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3536
|
+
* For the list of reserved names please see:
|
|
3537
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3538
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3539
|
+
* JSPB instance for transitional soy proto support:
|
|
3540
|
+
* http://goto/soy-param-migration
|
|
3541
|
+
* @return {!Object}
|
|
3542
|
+
*/
|
|
3543
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3544
|
+
return proto.trb.strategysearch.v1.ListSearchPresetsResponse.toObject(opt_includeInstance, this);
|
|
3545
|
+
};
|
|
3546
|
+
|
|
3547
|
+
|
|
3548
|
+
/**
|
|
3549
|
+
* Static version of the {@see toObject} method.
|
|
3550
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3551
|
+
* the JSPB instance for transitional soy proto support:
|
|
3552
|
+
* http://goto/soy-param-migration
|
|
3553
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchPresetsResponse} msg The msg instance to transform.
|
|
3554
|
+
* @return {!Object}
|
|
3555
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3556
|
+
*/
|
|
3557
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.toObject = function(includeInstance, msg) {
|
|
3558
|
+
var f, obj = {
|
|
3559
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
3560
|
+
proto.trb.strategysearch.v1.SearchPreset.toObject, includeInstance),
|
|
3561
|
+
total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3564
|
+
if (includeInstance) {
|
|
3565
|
+
obj.$jspbMessageInstance = msg;
|
|
3566
|
+
}
|
|
3567
|
+
return obj;
|
|
3568
|
+
};
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
|
|
3572
|
+
/**
|
|
3573
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3574
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3575
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsResponse}
|
|
3576
|
+
*/
|
|
3577
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.deserializeBinary = function(bytes) {
|
|
3578
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3579
|
+
var msg = new proto.trb.strategysearch.v1.ListSearchPresetsResponse;
|
|
3580
|
+
return proto.trb.strategysearch.v1.ListSearchPresetsResponse.deserializeBinaryFromReader(msg, reader);
|
|
3581
|
+
};
|
|
3582
|
+
|
|
3583
|
+
|
|
3584
|
+
/**
|
|
3585
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3586
|
+
* given reader into the given message object.
|
|
3587
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchPresetsResponse} msg The message object to deserialize into.
|
|
3588
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3589
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsResponse}
|
|
3590
|
+
*/
|
|
3591
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3592
|
+
while (reader.nextField()) {
|
|
3593
|
+
if (reader.isEndGroup()) {
|
|
3594
|
+
break;
|
|
3595
|
+
}
|
|
3596
|
+
var field = reader.getFieldNumber();
|
|
3597
|
+
switch (field) {
|
|
3598
|
+
case 1:
|
|
3599
|
+
var value = new proto.trb.strategysearch.v1.SearchPreset;
|
|
3600
|
+
reader.readMessage(value,proto.trb.strategysearch.v1.SearchPreset.deserializeBinaryFromReader);
|
|
3601
|
+
msg.addItems(value);
|
|
3602
|
+
break;
|
|
3603
|
+
case 2:
|
|
3604
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3605
|
+
msg.setTotal(value);
|
|
3606
|
+
break;
|
|
3607
|
+
default:
|
|
3608
|
+
reader.skipField();
|
|
3609
|
+
break;
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
return msg;
|
|
3613
|
+
};
|
|
3614
|
+
|
|
3615
|
+
|
|
3616
|
+
/**
|
|
3617
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3618
|
+
* @return {!Uint8Array}
|
|
3619
|
+
*/
|
|
3620
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.serializeBinary = function() {
|
|
3621
|
+
var writer = new jspb.BinaryWriter();
|
|
3622
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.serializeBinaryToWriter(this, writer);
|
|
3623
|
+
return writer.getResultBuffer();
|
|
3624
|
+
};
|
|
3625
|
+
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3629
|
+
* format), writing to the given BinaryWriter.
|
|
3630
|
+
* @param {!proto.trb.strategysearch.v1.ListSearchPresetsResponse} message
|
|
3631
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3632
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3633
|
+
*/
|
|
3634
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3635
|
+
var f = undefined;
|
|
3636
|
+
f = message.getItemsList();
|
|
3637
|
+
if (f.length > 0) {
|
|
3638
|
+
writer.writeRepeatedMessage(
|
|
3639
|
+
1,
|
|
3640
|
+
f,
|
|
3641
|
+
proto.trb.strategysearch.v1.SearchPreset.serializeBinaryToWriter
|
|
3642
|
+
);
|
|
3643
|
+
}
|
|
3644
|
+
f = message.getTotal();
|
|
3645
|
+
if (f !== 0) {
|
|
3646
|
+
writer.writeInt32(
|
|
3647
|
+
2,
|
|
3648
|
+
f
|
|
3649
|
+
);
|
|
3650
|
+
}
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3653
|
+
|
|
3654
|
+
/**
|
|
3655
|
+
* repeated SearchPreset items = 1;
|
|
3656
|
+
* @return {!Array<!proto.trb.strategysearch.v1.SearchPreset>}
|
|
3657
|
+
*/
|
|
3658
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.getItemsList = function() {
|
|
3659
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.SearchPreset>} */ (
|
|
3660
|
+
jspb.Message.getRepeatedWrapperField(this, proto.trb.strategysearch.v1.SearchPreset, 1));
|
|
3661
|
+
};
|
|
3662
|
+
|
|
3663
|
+
|
|
3664
|
+
/**
|
|
3665
|
+
* @param {!Array<!proto.trb.strategysearch.v1.SearchPreset>} value
|
|
3666
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsResponse} returns this
|
|
3667
|
+
*/
|
|
3668
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.setItemsList = function(value) {
|
|
3669
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* @param {!proto.trb.strategysearch.v1.SearchPreset=} opt_value
|
|
3675
|
+
* @param {number=} opt_index
|
|
3676
|
+
* @return {!proto.trb.strategysearch.v1.SearchPreset}
|
|
3677
|
+
*/
|
|
3678
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
3679
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.SearchPreset, opt_index);
|
|
3680
|
+
};
|
|
3681
|
+
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* Clears the list making it empty but non-null.
|
|
3685
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsResponse} returns this
|
|
3686
|
+
*/
|
|
3687
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.clearItemsList = function() {
|
|
3688
|
+
return this.setItemsList([]);
|
|
3689
|
+
};
|
|
3690
|
+
|
|
3691
|
+
|
|
3692
|
+
/**
|
|
3693
|
+
* optional int32 total = 2;
|
|
3694
|
+
* @return {number}
|
|
3695
|
+
*/
|
|
3696
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.getTotal = function() {
|
|
3697
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3698
|
+
};
|
|
3699
|
+
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* @param {number} value
|
|
3703
|
+
* @return {!proto.trb.strategysearch.v1.ListSearchPresetsResponse} returns this
|
|
3704
|
+
*/
|
|
3705
|
+
proto.trb.strategysearch.v1.ListSearchPresetsResponse.prototype.setTotal = function(value) {
|
|
3706
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
|
|
3711
|
+
|
|
3712
|
+
|
|
3713
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3714
|
+
/**
|
|
3715
|
+
* Creates an object representation of this proto.
|
|
3716
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3717
|
+
* Optional fields that are not set will be set to undefined.
|
|
3718
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3719
|
+
* For the list of reserved names please see:
|
|
3720
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3721
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3722
|
+
* JSPB instance for transitional soy proto support:
|
|
3723
|
+
* http://goto/soy-param-migration
|
|
3724
|
+
* @return {!Object}
|
|
3725
|
+
*/
|
|
3726
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3727
|
+
return proto.trb.strategysearch.v1.DeleteSearchPresetRequest.toObject(opt_includeInstance, this);
|
|
3728
|
+
};
|
|
3729
|
+
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* Static version of the {@see toObject} method.
|
|
3733
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3734
|
+
* the JSPB instance for transitional soy proto support:
|
|
3735
|
+
* http://goto/soy-param-migration
|
|
3736
|
+
* @param {!proto.trb.strategysearch.v1.DeleteSearchPresetRequest} msg The msg instance to transform.
|
|
3737
|
+
* @return {!Object}
|
|
3738
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3739
|
+
*/
|
|
3740
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.toObject = function(includeInstance, msg) {
|
|
3741
|
+
var f, obj = {
|
|
3742
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3743
|
+
};
|
|
3744
|
+
|
|
3745
|
+
if (includeInstance) {
|
|
3746
|
+
obj.$jspbMessageInstance = msg;
|
|
3747
|
+
}
|
|
3748
|
+
return obj;
|
|
3749
|
+
};
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
|
|
3753
|
+
/**
|
|
3754
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3755
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3756
|
+
* @return {!proto.trb.strategysearch.v1.DeleteSearchPresetRequest}
|
|
3757
|
+
*/
|
|
3758
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.deserializeBinary = function(bytes) {
|
|
3759
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3760
|
+
var msg = new proto.trb.strategysearch.v1.DeleteSearchPresetRequest;
|
|
3761
|
+
return proto.trb.strategysearch.v1.DeleteSearchPresetRequest.deserializeBinaryFromReader(msg, reader);
|
|
3762
|
+
};
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
/**
|
|
3766
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3767
|
+
* given reader into the given message object.
|
|
3768
|
+
* @param {!proto.trb.strategysearch.v1.DeleteSearchPresetRequest} msg The message object to deserialize into.
|
|
3769
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3770
|
+
* @return {!proto.trb.strategysearch.v1.DeleteSearchPresetRequest}
|
|
3771
|
+
*/
|
|
3772
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3773
|
+
while (reader.nextField()) {
|
|
3774
|
+
if (reader.isEndGroup()) {
|
|
3775
|
+
break;
|
|
3776
|
+
}
|
|
3777
|
+
var field = reader.getFieldNumber();
|
|
3778
|
+
switch (field) {
|
|
3779
|
+
case 1:
|
|
3780
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3781
|
+
msg.setId(value);
|
|
3782
|
+
break;
|
|
3783
|
+
default:
|
|
3784
|
+
reader.skipField();
|
|
3785
|
+
break;
|
|
3786
|
+
}
|
|
3787
|
+
}
|
|
3788
|
+
return msg;
|
|
3789
|
+
};
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
/**
|
|
3793
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3794
|
+
* @return {!Uint8Array}
|
|
3795
|
+
*/
|
|
3796
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.prototype.serializeBinary = function() {
|
|
3797
|
+
var writer = new jspb.BinaryWriter();
|
|
3798
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.serializeBinaryToWriter(this, writer);
|
|
3799
|
+
return writer.getResultBuffer();
|
|
3800
|
+
};
|
|
3801
|
+
|
|
3802
|
+
|
|
3803
|
+
/**
|
|
3804
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3805
|
+
* format), writing to the given BinaryWriter.
|
|
3806
|
+
* @param {!proto.trb.strategysearch.v1.DeleteSearchPresetRequest} message
|
|
3807
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3808
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3809
|
+
*/
|
|
3810
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3811
|
+
var f = undefined;
|
|
3812
|
+
f = message.getId();
|
|
3813
|
+
if (f.length > 0) {
|
|
3814
|
+
writer.writeString(
|
|
3815
|
+
1,
|
|
3816
|
+
f
|
|
3817
|
+
);
|
|
3818
|
+
}
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
/**
|
|
3823
|
+
* optional string id = 1;
|
|
3824
|
+
* @return {string}
|
|
3825
|
+
*/
|
|
3826
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.prototype.getId = function() {
|
|
3827
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3828
|
+
};
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
/**
|
|
3832
|
+
* @param {string} value
|
|
3833
|
+
* @return {!proto.trb.strategysearch.v1.DeleteSearchPresetRequest} returns this
|
|
3834
|
+
*/
|
|
3835
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetRequest.prototype.setId = function(value) {
|
|
3836
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3837
|
+
};
|
|
3838
|
+
|
|
3839
|
+
|
|
3840
|
+
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3844
|
+
/**
|
|
3845
|
+
* Creates an object representation of this proto.
|
|
3846
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3847
|
+
* Optional fields that are not set will be set to undefined.
|
|
3848
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3849
|
+
* For the list of reserved names please see:
|
|
3850
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3851
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3852
|
+
* JSPB instance for transitional soy proto support:
|
|
3853
|
+
* http://goto/soy-param-migration
|
|
3854
|
+
* @return {!Object}
|
|
3855
|
+
*/
|
|
3856
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3857
|
+
return proto.trb.strategysearch.v1.DeleteSearchPresetResponse.toObject(opt_includeInstance, this);
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
|
|
3861
|
+
/**
|
|
3862
|
+
* Static version of the {@see toObject} method.
|
|
3863
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3864
|
+
* the JSPB instance for transitional soy proto support:
|
|
3865
|
+
* http://goto/soy-param-migration
|
|
3866
|
+
* @param {!proto.trb.strategysearch.v1.DeleteSearchPresetResponse} msg The msg instance to transform.
|
|
3867
|
+
* @return {!Object}
|
|
3868
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3869
|
+
*/
|
|
3870
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.toObject = function(includeInstance, msg) {
|
|
3871
|
+
var f, obj = {
|
|
3872
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3873
|
+
};
|
|
3874
|
+
|
|
3875
|
+
if (includeInstance) {
|
|
3876
|
+
obj.$jspbMessageInstance = msg;
|
|
3877
|
+
}
|
|
3878
|
+
return obj;
|
|
3879
|
+
};
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
|
|
3883
|
+
/**
|
|
3884
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3885
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3886
|
+
* @return {!proto.trb.strategysearch.v1.DeleteSearchPresetResponse}
|
|
3887
|
+
*/
|
|
3888
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.deserializeBinary = function(bytes) {
|
|
3889
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3890
|
+
var msg = new proto.trb.strategysearch.v1.DeleteSearchPresetResponse;
|
|
3891
|
+
return proto.trb.strategysearch.v1.DeleteSearchPresetResponse.deserializeBinaryFromReader(msg, reader);
|
|
3892
|
+
};
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3897
|
+
* given reader into the given message object.
|
|
3898
|
+
* @param {!proto.trb.strategysearch.v1.DeleteSearchPresetResponse} msg The message object to deserialize into.
|
|
3899
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3900
|
+
* @return {!proto.trb.strategysearch.v1.DeleteSearchPresetResponse}
|
|
3901
|
+
*/
|
|
3902
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3903
|
+
while (reader.nextField()) {
|
|
3904
|
+
if (reader.isEndGroup()) {
|
|
3905
|
+
break;
|
|
3906
|
+
}
|
|
3907
|
+
var field = reader.getFieldNumber();
|
|
3908
|
+
switch (field) {
|
|
3909
|
+
case 1:
|
|
3910
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3911
|
+
msg.setId(value);
|
|
3912
|
+
break;
|
|
3913
|
+
default:
|
|
3914
|
+
reader.skipField();
|
|
3915
|
+
break;
|
|
3916
|
+
}
|
|
3917
|
+
}
|
|
3918
|
+
return msg;
|
|
3919
|
+
};
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
/**
|
|
3923
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3924
|
+
* @return {!Uint8Array}
|
|
3925
|
+
*/
|
|
3926
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.prototype.serializeBinary = function() {
|
|
3927
|
+
var writer = new jspb.BinaryWriter();
|
|
3928
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.serializeBinaryToWriter(this, writer);
|
|
3929
|
+
return writer.getResultBuffer();
|
|
3930
|
+
};
|
|
3931
|
+
|
|
3932
|
+
|
|
3933
|
+
/**
|
|
3934
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3935
|
+
* format), writing to the given BinaryWriter.
|
|
3936
|
+
* @param {!proto.trb.strategysearch.v1.DeleteSearchPresetResponse} message
|
|
3937
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3938
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3939
|
+
*/
|
|
3940
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3941
|
+
var f = undefined;
|
|
3942
|
+
f = message.getId();
|
|
3943
|
+
if (f.length > 0) {
|
|
3944
|
+
writer.writeString(
|
|
3945
|
+
1,
|
|
3946
|
+
f
|
|
3947
|
+
);
|
|
3948
|
+
}
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
/**
|
|
3953
|
+
* optional string id = 1;
|
|
3954
|
+
* @return {string}
|
|
3955
|
+
*/
|
|
3956
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.prototype.getId = function() {
|
|
3957
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* @param {string} value
|
|
3963
|
+
* @return {!proto.trb.strategysearch.v1.DeleteSearchPresetResponse} returns this
|
|
3964
|
+
*/
|
|
3965
|
+
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.prototype.setId = function(value) {
|
|
1667
3966
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1668
3967
|
};
|
|
1669
3968
|
|