@marleena/trb-proto 1.0.55 → 1.0.56

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.
@@ -0,0 +1,1671 @@
1
+ // source: strategysearch/strategysearch.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var strategysearch_spec_pb = require('../strategysearch/spec_pb.js');
27
+ goog.object.extend(proto, strategysearch_spec_pb);
28
+ var strategysearch_backtest_pb = require('../strategysearch/backtest_pb.js');
29
+ goog.object.extend(proto, strategysearch_backtest_pb);
30
+ var strategysearch_search_pb = require('../strategysearch/search_pb.js');
31
+ goog.object.extend(proto, strategysearch_search_pb);
32
+ goog.exportSymbol('proto.trb.strategysearch.v1.CancelSearchRequest', null, global);
33
+ goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsRequest', null, global);
34
+ goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsResponse', null, global);
35
+ goog.exportSymbol('proto.trb.strategysearch.v1.GetSearchProgressRequest', null, global);
36
+ goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesRequest', null, global);
37
+ goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesResponse', null, global);
38
+ goog.exportSymbol('proto.trb.strategysearch.v1.SubmitSearchRequest', null, global);
39
+ goog.exportSymbol('proto.trb.strategysearch.v1.SubmitSearchResponse', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.trb.strategysearch.v1.SubmitSearchRequest = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.SubmitSearchRequest.repeatedFields_, null);
52
+ };
53
+ goog.inherits(proto.trb.strategysearch.v1.SubmitSearchRequest, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.trb.strategysearch.v1.SubmitSearchRequest.displayName = 'proto.trb.strategysearch.v1.SubmitSearchRequest';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.trb.strategysearch.v1.SubmitSearchResponse = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.trb.strategysearch.v1.SubmitSearchResponse, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.trb.strategysearch.v1.SubmitSearchResponse.displayName = 'proto.trb.strategysearch.v1.SubmitSearchResponse';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.trb.strategysearch.v1.GetSearchProgressRequest = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.trb.strategysearch.v1.GetSearchProgressRequest, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.displayName = 'proto.trb.strategysearch.v1.GetSearchProgressRequest';
102
+ }
103
+ /**
104
+ * Generated by JsPbCodeGenerator.
105
+ * @param {Array=} opt_data Optional initial data array, typically from a
106
+ * server response, or constructed directly in Javascript. The array is used
107
+ * in place and becomes part of the constructed object. It is not cloned.
108
+ * If no data is provided, the constructed object will be empty, but still
109
+ * valid.
110
+ * @extends {jspb.Message}
111
+ * @constructor
112
+ */
113
+ proto.trb.strategysearch.v1.GetBestTrialsRequest = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ };
116
+ goog.inherits(proto.trb.strategysearch.v1.GetBestTrialsRequest, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.displayName = 'proto.trb.strategysearch.v1.GetBestTrialsRequest';
123
+ }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.trb.strategysearch.v1.GetBestTrialsResponse = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.GetBestTrialsResponse.repeatedFields_, null);
136
+ };
137
+ goog.inherits(proto.trb.strategysearch.v1.GetBestTrialsResponse, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.displayName = 'proto.trb.strategysearch.v1.GetBestTrialsResponse';
144
+ }
145
+ /**
146
+ * Generated by JsPbCodeGenerator.
147
+ * @param {Array=} opt_data Optional initial data array, typically from a
148
+ * server response, or constructed directly in Javascript. The array is used
149
+ * in place and becomes part of the constructed object. It is not cloned.
150
+ * If no data is provided, the constructed object will be empty, but still
151
+ * valid.
152
+ * @extends {jspb.Message}
153
+ * @constructor
154
+ */
155
+ proto.trb.strategysearch.v1.ListSearchesRequest = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
+ };
158
+ goog.inherits(proto.trb.strategysearch.v1.ListSearchesRequest, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.trb.strategysearch.v1.ListSearchesRequest.displayName = 'proto.trb.strategysearch.v1.ListSearchesRequest';
165
+ }
166
+ /**
167
+ * Generated by JsPbCodeGenerator.
168
+ * @param {Array=} opt_data Optional initial data array, typically from a
169
+ * server response, or constructed directly in Javascript. The array is used
170
+ * in place and becomes part of the constructed object. It is not cloned.
171
+ * If no data is provided, the constructed object will be empty, but still
172
+ * valid.
173
+ * @extends {jspb.Message}
174
+ * @constructor
175
+ */
176
+ proto.trb.strategysearch.v1.ListSearchesResponse = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.ListSearchesResponse.repeatedFields_, null);
178
+ };
179
+ goog.inherits(proto.trb.strategysearch.v1.ListSearchesResponse, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.trb.strategysearch.v1.ListSearchesResponse.displayName = 'proto.trb.strategysearch.v1.ListSearchesResponse';
186
+ }
187
+ /**
188
+ * Generated by JsPbCodeGenerator.
189
+ * @param {Array=} opt_data Optional initial data array, typically from a
190
+ * server response, or constructed directly in Javascript. The array is used
191
+ * in place and becomes part of the constructed object. It is not cloned.
192
+ * If no data is provided, the constructed object will be empty, but still
193
+ * valid.
194
+ * @extends {jspb.Message}
195
+ * @constructor
196
+ */
197
+ proto.trb.strategysearch.v1.CancelSearchRequest = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
+ };
200
+ goog.inherits(proto.trb.strategysearch.v1.CancelSearchRequest, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.trb.strategysearch.v1.CancelSearchRequest.displayName = 'proto.trb.strategysearch.v1.CancelSearchRequest';
207
+ }
208
+
209
+ /**
210
+ * List of repeated fields within this message type.
211
+ * @private {!Array<number>}
212
+ * @const
213
+ */
214
+ proto.trb.strategysearch.v1.SubmitSearchRequest.repeatedFields_ = [3];
215
+
216
+
217
+
218
+ if (jspb.Message.GENERATE_TO_OBJECT) {
219
+ /**
220
+ * Creates an object representation of this proto.
221
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
222
+ * Optional fields that are not set will be set to undefined.
223
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
224
+ * For the list of reserved names please see:
225
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
226
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
227
+ * JSPB instance for transitional soy proto support:
228
+ * http://goto/soy-param-migration
229
+ * @return {!Object}
230
+ */
231
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.toObject = function(opt_includeInstance) {
232
+ return proto.trb.strategysearch.v1.SubmitSearchRequest.toObject(opt_includeInstance, this);
233
+ };
234
+
235
+
236
+ /**
237
+ * Static version of the {@see toObject} method.
238
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
239
+ * the JSPB instance for transitional soy proto support:
240
+ * http://goto/soy-param-migration
241
+ * @param {!proto.trb.strategysearch.v1.SubmitSearchRequest} msg The msg instance to transform.
242
+ * @return {!Object}
243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
244
+ */
245
+ proto.trb.strategysearch.v1.SubmitSearchRequest.toObject = function(includeInstance, msg) {
246
+ var f, obj = {
247
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
248
+ baseSpec: (f = msg.getBaseSpec()) && strategysearch_spec_pb.StrategySearchSpec.toObject(includeInstance, f),
249
+ searchSpaceList: jspb.Message.toObjectList(msg.getSearchSpaceList(),
250
+ strategysearch_search_pb.ParamRange.toObject, includeInstance),
251
+ study: (f = msg.getStudy()) && strategysearch_search_pb.StudyConfig.toObject(includeInstance, f),
252
+ config: (f = msg.getConfig()) && strategysearch_backtest_pb.BacktestConfig.toObject(includeInstance, f)
253
+ };
254
+
255
+ if (includeInstance) {
256
+ obj.$jspbMessageInstance = msg;
257
+ }
258
+ return obj;
259
+ };
260
+ }
261
+
262
+
263
+ /**
264
+ * Deserializes binary data (in protobuf wire format).
265
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
266
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest}
267
+ */
268
+ proto.trb.strategysearch.v1.SubmitSearchRequest.deserializeBinary = function(bytes) {
269
+ var reader = new jspb.BinaryReader(bytes);
270
+ var msg = new proto.trb.strategysearch.v1.SubmitSearchRequest;
271
+ return proto.trb.strategysearch.v1.SubmitSearchRequest.deserializeBinaryFromReader(msg, reader);
272
+ };
273
+
274
+
275
+ /**
276
+ * Deserializes binary data (in protobuf wire format) from the
277
+ * given reader into the given message object.
278
+ * @param {!proto.trb.strategysearch.v1.SubmitSearchRequest} msg The message object to deserialize into.
279
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
280
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest}
281
+ */
282
+ proto.trb.strategysearch.v1.SubmitSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
283
+ while (reader.nextField()) {
284
+ if (reader.isEndGroup()) {
285
+ break;
286
+ }
287
+ var field = reader.getFieldNumber();
288
+ switch (field) {
289
+ case 1:
290
+ var value = /** @type {string} */ (reader.readString());
291
+ msg.setName(value);
292
+ break;
293
+ case 2:
294
+ var value = new strategysearch_spec_pb.StrategySearchSpec;
295
+ reader.readMessage(value,strategysearch_spec_pb.StrategySearchSpec.deserializeBinaryFromReader);
296
+ msg.setBaseSpec(value);
297
+ break;
298
+ case 3:
299
+ var value = new strategysearch_search_pb.ParamRange;
300
+ reader.readMessage(value,strategysearch_search_pb.ParamRange.deserializeBinaryFromReader);
301
+ msg.addSearchSpace(value);
302
+ break;
303
+ case 4:
304
+ var value = new strategysearch_search_pb.StudyConfig;
305
+ reader.readMessage(value,strategysearch_search_pb.StudyConfig.deserializeBinaryFromReader);
306
+ msg.setStudy(value);
307
+ break;
308
+ case 5:
309
+ var value = new strategysearch_backtest_pb.BacktestConfig;
310
+ reader.readMessage(value,strategysearch_backtest_pb.BacktestConfig.deserializeBinaryFromReader);
311
+ msg.setConfig(value);
312
+ break;
313
+ default:
314
+ reader.skipField();
315
+ break;
316
+ }
317
+ }
318
+ return msg;
319
+ };
320
+
321
+
322
+ /**
323
+ * Serializes the message to binary data (in protobuf wire format).
324
+ * @return {!Uint8Array}
325
+ */
326
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.serializeBinary = function() {
327
+ var writer = new jspb.BinaryWriter();
328
+ proto.trb.strategysearch.v1.SubmitSearchRequest.serializeBinaryToWriter(this, writer);
329
+ return writer.getResultBuffer();
330
+ };
331
+
332
+
333
+ /**
334
+ * Serializes the given message to binary data (in protobuf wire
335
+ * format), writing to the given BinaryWriter.
336
+ * @param {!proto.trb.strategysearch.v1.SubmitSearchRequest} message
337
+ * @param {!jspb.BinaryWriter} writer
338
+ * @suppress {unusedLocalVariables} f is only used for nested messages
339
+ */
340
+ proto.trb.strategysearch.v1.SubmitSearchRequest.serializeBinaryToWriter = function(message, writer) {
341
+ var f = undefined;
342
+ f = message.getName();
343
+ if (f.length > 0) {
344
+ writer.writeString(
345
+ 1,
346
+ f
347
+ );
348
+ }
349
+ f = message.getBaseSpec();
350
+ if (f != null) {
351
+ writer.writeMessage(
352
+ 2,
353
+ f,
354
+ strategysearch_spec_pb.StrategySearchSpec.serializeBinaryToWriter
355
+ );
356
+ }
357
+ f = message.getSearchSpaceList();
358
+ if (f.length > 0) {
359
+ writer.writeRepeatedMessage(
360
+ 3,
361
+ f,
362
+ strategysearch_search_pb.ParamRange.serializeBinaryToWriter
363
+ );
364
+ }
365
+ f = message.getStudy();
366
+ if (f != null) {
367
+ writer.writeMessage(
368
+ 4,
369
+ f,
370
+ strategysearch_search_pb.StudyConfig.serializeBinaryToWriter
371
+ );
372
+ }
373
+ f = message.getConfig();
374
+ if (f != null) {
375
+ writer.writeMessage(
376
+ 5,
377
+ f,
378
+ strategysearch_backtest_pb.BacktestConfig.serializeBinaryToWriter
379
+ );
380
+ }
381
+ };
382
+
383
+
384
+ /**
385
+ * optional string name = 1;
386
+ * @return {string}
387
+ */
388
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.getName = function() {
389
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
390
+ };
391
+
392
+
393
+ /**
394
+ * @param {string} value
395
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
396
+ */
397
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.setName = function(value) {
398
+ return jspb.Message.setProto3StringField(this, 1, value);
399
+ };
400
+
401
+
402
+ /**
403
+ * optional StrategySearchSpec base_spec = 2;
404
+ * @return {?proto.trb.strategysearch.v1.StrategySearchSpec}
405
+ */
406
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.getBaseSpec = function() {
407
+ return /** @type{?proto.trb.strategysearch.v1.StrategySearchSpec} */ (
408
+ jspb.Message.getWrapperField(this, strategysearch_spec_pb.StrategySearchSpec, 2));
409
+ };
410
+
411
+
412
+ /**
413
+ * @param {?proto.trb.strategysearch.v1.StrategySearchSpec|undefined} value
414
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
415
+ */
416
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.setBaseSpec = function(value) {
417
+ return jspb.Message.setWrapperField(this, 2, value);
418
+ };
419
+
420
+
421
+ /**
422
+ * Clears the message field making it undefined.
423
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
424
+ */
425
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.clearBaseSpec = function() {
426
+ return this.setBaseSpec(undefined);
427
+ };
428
+
429
+
430
+ /**
431
+ * Returns whether this field is set.
432
+ * @return {boolean}
433
+ */
434
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.hasBaseSpec = function() {
435
+ return jspb.Message.getField(this, 2) != null;
436
+ };
437
+
438
+
439
+ /**
440
+ * repeated ParamRange search_space = 3;
441
+ * @return {!Array<!proto.trb.strategysearch.v1.ParamRange>}
442
+ */
443
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.getSearchSpaceList = function() {
444
+ return /** @type{!Array<!proto.trb.strategysearch.v1.ParamRange>} */ (
445
+ jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.ParamRange, 3));
446
+ };
447
+
448
+
449
+ /**
450
+ * @param {!Array<!proto.trb.strategysearch.v1.ParamRange>} value
451
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
452
+ */
453
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.setSearchSpaceList = function(value) {
454
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
455
+ };
456
+
457
+
458
+ /**
459
+ * @param {!proto.trb.strategysearch.v1.ParamRange=} opt_value
460
+ * @param {number=} opt_index
461
+ * @return {!proto.trb.strategysearch.v1.ParamRange}
462
+ */
463
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.addSearchSpace = function(opt_value, opt_index) {
464
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.trb.strategysearch.v1.ParamRange, opt_index);
465
+ };
466
+
467
+
468
+ /**
469
+ * Clears the list making it empty but non-null.
470
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
471
+ */
472
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.clearSearchSpaceList = function() {
473
+ return this.setSearchSpaceList([]);
474
+ };
475
+
476
+
477
+ /**
478
+ * optional StudyConfig study = 4;
479
+ * @return {?proto.trb.strategysearch.v1.StudyConfig}
480
+ */
481
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.getStudy = function() {
482
+ return /** @type{?proto.trb.strategysearch.v1.StudyConfig} */ (
483
+ jspb.Message.getWrapperField(this, strategysearch_search_pb.StudyConfig, 4));
484
+ };
485
+
486
+
487
+ /**
488
+ * @param {?proto.trb.strategysearch.v1.StudyConfig|undefined} value
489
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
490
+ */
491
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.setStudy = function(value) {
492
+ return jspb.Message.setWrapperField(this, 4, value);
493
+ };
494
+
495
+
496
+ /**
497
+ * Clears the message field making it undefined.
498
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
499
+ */
500
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.clearStudy = function() {
501
+ return this.setStudy(undefined);
502
+ };
503
+
504
+
505
+ /**
506
+ * Returns whether this field is set.
507
+ * @return {boolean}
508
+ */
509
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.hasStudy = function() {
510
+ return jspb.Message.getField(this, 4) != null;
511
+ };
512
+
513
+
514
+ /**
515
+ * optional BacktestConfig config = 5;
516
+ * @return {?proto.trb.strategysearch.v1.BacktestConfig}
517
+ */
518
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.getConfig = function() {
519
+ return /** @type{?proto.trb.strategysearch.v1.BacktestConfig} */ (
520
+ jspb.Message.getWrapperField(this, strategysearch_backtest_pb.BacktestConfig, 5));
521
+ };
522
+
523
+
524
+ /**
525
+ * @param {?proto.trb.strategysearch.v1.BacktestConfig|undefined} value
526
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
527
+ */
528
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.setConfig = function(value) {
529
+ return jspb.Message.setWrapperField(this, 5, value);
530
+ };
531
+
532
+
533
+ /**
534
+ * Clears the message field making it undefined.
535
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchRequest} returns this
536
+ */
537
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.clearConfig = function() {
538
+ return this.setConfig(undefined);
539
+ };
540
+
541
+
542
+ /**
543
+ * Returns whether this field is set.
544
+ * @return {boolean}
545
+ */
546
+ proto.trb.strategysearch.v1.SubmitSearchRequest.prototype.hasConfig = function() {
547
+ return jspb.Message.getField(this, 5) != null;
548
+ };
549
+
550
+
551
+
552
+
553
+
554
+ if (jspb.Message.GENERATE_TO_OBJECT) {
555
+ /**
556
+ * Creates an object representation of this proto.
557
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
558
+ * Optional fields that are not set will be set to undefined.
559
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
560
+ * For the list of reserved names please see:
561
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
562
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
563
+ * JSPB instance for transitional soy proto support:
564
+ * http://goto/soy-param-migration
565
+ * @return {!Object}
566
+ */
567
+ proto.trb.strategysearch.v1.SubmitSearchResponse.prototype.toObject = function(opt_includeInstance) {
568
+ return proto.trb.strategysearch.v1.SubmitSearchResponse.toObject(opt_includeInstance, this);
569
+ };
570
+
571
+
572
+ /**
573
+ * Static version of the {@see toObject} method.
574
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
575
+ * the JSPB instance for transitional soy proto support:
576
+ * http://goto/soy-param-migration
577
+ * @param {!proto.trb.strategysearch.v1.SubmitSearchResponse} msg The msg instance to transform.
578
+ * @return {!Object}
579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
580
+ */
581
+ proto.trb.strategysearch.v1.SubmitSearchResponse.toObject = function(includeInstance, msg) {
582
+ var f, obj = {
583
+ searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
584
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0)
585
+ };
586
+
587
+ if (includeInstance) {
588
+ obj.$jspbMessageInstance = msg;
589
+ }
590
+ return obj;
591
+ };
592
+ }
593
+
594
+
595
+ /**
596
+ * Deserializes binary data (in protobuf wire format).
597
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
598
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchResponse}
599
+ */
600
+ proto.trb.strategysearch.v1.SubmitSearchResponse.deserializeBinary = function(bytes) {
601
+ var reader = new jspb.BinaryReader(bytes);
602
+ var msg = new proto.trb.strategysearch.v1.SubmitSearchResponse;
603
+ return proto.trb.strategysearch.v1.SubmitSearchResponse.deserializeBinaryFromReader(msg, reader);
604
+ };
605
+
606
+
607
+ /**
608
+ * Deserializes binary data (in protobuf wire format) from the
609
+ * given reader into the given message object.
610
+ * @param {!proto.trb.strategysearch.v1.SubmitSearchResponse} msg The message object to deserialize into.
611
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
612
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchResponse}
613
+ */
614
+ proto.trb.strategysearch.v1.SubmitSearchResponse.deserializeBinaryFromReader = function(msg, reader) {
615
+ while (reader.nextField()) {
616
+ if (reader.isEndGroup()) {
617
+ break;
618
+ }
619
+ var field = reader.getFieldNumber();
620
+ switch (field) {
621
+ case 1:
622
+ var value = /** @type {string} */ (reader.readString());
623
+ msg.setSearchId(value);
624
+ break;
625
+ case 2:
626
+ var value = /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (reader.readEnum());
627
+ msg.setStatus(value);
628
+ break;
629
+ default:
630
+ reader.skipField();
631
+ break;
632
+ }
633
+ }
634
+ return msg;
635
+ };
636
+
637
+
638
+ /**
639
+ * Serializes the message to binary data (in protobuf wire format).
640
+ * @return {!Uint8Array}
641
+ */
642
+ proto.trb.strategysearch.v1.SubmitSearchResponse.prototype.serializeBinary = function() {
643
+ var writer = new jspb.BinaryWriter();
644
+ proto.trb.strategysearch.v1.SubmitSearchResponse.serializeBinaryToWriter(this, writer);
645
+ return writer.getResultBuffer();
646
+ };
647
+
648
+
649
+ /**
650
+ * Serializes the given message to binary data (in protobuf wire
651
+ * format), writing to the given BinaryWriter.
652
+ * @param {!proto.trb.strategysearch.v1.SubmitSearchResponse} message
653
+ * @param {!jspb.BinaryWriter} writer
654
+ * @suppress {unusedLocalVariables} f is only used for nested messages
655
+ */
656
+ proto.trb.strategysearch.v1.SubmitSearchResponse.serializeBinaryToWriter = function(message, writer) {
657
+ var f = undefined;
658
+ f = message.getSearchId();
659
+ if (f.length > 0) {
660
+ writer.writeString(
661
+ 1,
662
+ f
663
+ );
664
+ }
665
+ f = message.getStatus();
666
+ if (f !== 0.0) {
667
+ writer.writeEnum(
668
+ 2,
669
+ f
670
+ );
671
+ }
672
+ };
673
+
674
+
675
+ /**
676
+ * optional string search_id = 1;
677
+ * @return {string}
678
+ */
679
+ proto.trb.strategysearch.v1.SubmitSearchResponse.prototype.getSearchId = function() {
680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
681
+ };
682
+
683
+
684
+ /**
685
+ * @param {string} value
686
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchResponse} returns this
687
+ */
688
+ proto.trb.strategysearch.v1.SubmitSearchResponse.prototype.setSearchId = function(value) {
689
+ return jspb.Message.setProto3StringField(this, 1, value);
690
+ };
691
+
692
+
693
+ /**
694
+ * optional RunStatus status = 2;
695
+ * @return {!proto.trb.strategysearch.v1.RunStatus}
696
+ */
697
+ proto.trb.strategysearch.v1.SubmitSearchResponse.prototype.getStatus = function() {
698
+ return /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
699
+ };
700
+
701
+
702
+ /**
703
+ * @param {!proto.trb.strategysearch.v1.RunStatus} value
704
+ * @return {!proto.trb.strategysearch.v1.SubmitSearchResponse} returns this
705
+ */
706
+ proto.trb.strategysearch.v1.SubmitSearchResponse.prototype.setStatus = function(value) {
707
+ return jspb.Message.setProto3EnumField(this, 2, value);
708
+ };
709
+
710
+
711
+
712
+
713
+
714
+ if (jspb.Message.GENERATE_TO_OBJECT) {
715
+ /**
716
+ * Creates an object representation of this proto.
717
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
718
+ * Optional fields that are not set will be set to undefined.
719
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
720
+ * For the list of reserved names please see:
721
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
722
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
723
+ * JSPB instance for transitional soy proto support:
724
+ * http://goto/soy-param-migration
725
+ * @return {!Object}
726
+ */
727
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.prototype.toObject = function(opt_includeInstance) {
728
+ return proto.trb.strategysearch.v1.GetSearchProgressRequest.toObject(opt_includeInstance, this);
729
+ };
730
+
731
+
732
+ /**
733
+ * Static version of the {@see toObject} method.
734
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
735
+ * the JSPB instance for transitional soy proto support:
736
+ * http://goto/soy-param-migration
737
+ * @param {!proto.trb.strategysearch.v1.GetSearchProgressRequest} msg The msg instance to transform.
738
+ * @return {!Object}
739
+ * @suppress {unusedLocalVariables} f is only used for nested messages
740
+ */
741
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.toObject = function(includeInstance, msg) {
742
+ var f, obj = {
743
+ searchId: jspb.Message.getFieldWithDefault(msg, 1, "")
744
+ };
745
+
746
+ if (includeInstance) {
747
+ obj.$jspbMessageInstance = msg;
748
+ }
749
+ return obj;
750
+ };
751
+ }
752
+
753
+
754
+ /**
755
+ * Deserializes binary data (in protobuf wire format).
756
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
757
+ * @return {!proto.trb.strategysearch.v1.GetSearchProgressRequest}
758
+ */
759
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.deserializeBinary = function(bytes) {
760
+ var reader = new jspb.BinaryReader(bytes);
761
+ var msg = new proto.trb.strategysearch.v1.GetSearchProgressRequest;
762
+ return proto.trb.strategysearch.v1.GetSearchProgressRequest.deserializeBinaryFromReader(msg, reader);
763
+ };
764
+
765
+
766
+ /**
767
+ * Deserializes binary data (in protobuf wire format) from the
768
+ * given reader into the given message object.
769
+ * @param {!proto.trb.strategysearch.v1.GetSearchProgressRequest} msg The message object to deserialize into.
770
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
771
+ * @return {!proto.trb.strategysearch.v1.GetSearchProgressRequest}
772
+ */
773
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.deserializeBinaryFromReader = function(msg, reader) {
774
+ while (reader.nextField()) {
775
+ if (reader.isEndGroup()) {
776
+ break;
777
+ }
778
+ var field = reader.getFieldNumber();
779
+ switch (field) {
780
+ case 1:
781
+ var value = /** @type {string} */ (reader.readString());
782
+ msg.setSearchId(value);
783
+ break;
784
+ default:
785
+ reader.skipField();
786
+ break;
787
+ }
788
+ }
789
+ return msg;
790
+ };
791
+
792
+
793
+ /**
794
+ * Serializes the message to binary data (in protobuf wire format).
795
+ * @return {!Uint8Array}
796
+ */
797
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.prototype.serializeBinary = function() {
798
+ var writer = new jspb.BinaryWriter();
799
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.serializeBinaryToWriter(this, writer);
800
+ return writer.getResultBuffer();
801
+ };
802
+
803
+
804
+ /**
805
+ * Serializes the given message to binary data (in protobuf wire
806
+ * format), writing to the given BinaryWriter.
807
+ * @param {!proto.trb.strategysearch.v1.GetSearchProgressRequest} message
808
+ * @param {!jspb.BinaryWriter} writer
809
+ * @suppress {unusedLocalVariables} f is only used for nested messages
810
+ */
811
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.serializeBinaryToWriter = function(message, writer) {
812
+ var f = undefined;
813
+ f = message.getSearchId();
814
+ if (f.length > 0) {
815
+ writer.writeString(
816
+ 1,
817
+ f
818
+ );
819
+ }
820
+ };
821
+
822
+
823
+ /**
824
+ * optional string search_id = 1;
825
+ * @return {string}
826
+ */
827
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.prototype.getSearchId = function() {
828
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
829
+ };
830
+
831
+
832
+ /**
833
+ * @param {string} value
834
+ * @return {!proto.trb.strategysearch.v1.GetSearchProgressRequest} returns this
835
+ */
836
+ proto.trb.strategysearch.v1.GetSearchProgressRequest.prototype.setSearchId = function(value) {
837
+ return jspb.Message.setProto3StringField(this, 1, value);
838
+ };
839
+
840
+
841
+
842
+
843
+
844
+ if (jspb.Message.GENERATE_TO_OBJECT) {
845
+ /**
846
+ * Creates an object representation of this proto.
847
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
848
+ * Optional fields that are not set will be set to undefined.
849
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
850
+ * For the list of reserved names please see:
851
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
852
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
853
+ * JSPB instance for transitional soy proto support:
854
+ * http://goto/soy-param-migration
855
+ * @return {!Object}
856
+ */
857
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.prototype.toObject = function(opt_includeInstance) {
858
+ return proto.trb.strategysearch.v1.GetBestTrialsRequest.toObject(opt_includeInstance, this);
859
+ };
860
+
861
+
862
+ /**
863
+ * Static version of the {@see toObject} method.
864
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
865
+ * the JSPB instance for transitional soy proto support:
866
+ * http://goto/soy-param-migration
867
+ * @param {!proto.trb.strategysearch.v1.GetBestTrialsRequest} msg The msg instance to transform.
868
+ * @return {!Object}
869
+ * @suppress {unusedLocalVariables} f is only used for nested messages
870
+ */
871
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.toObject = function(includeInstance, msg) {
872
+ var f, obj = {
873
+ searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
874
+ topK: jspb.Message.getFieldWithDefault(msg, 2, 0)
875
+ };
876
+
877
+ if (includeInstance) {
878
+ obj.$jspbMessageInstance = msg;
879
+ }
880
+ return obj;
881
+ };
882
+ }
883
+
884
+
885
+ /**
886
+ * Deserializes binary data (in protobuf wire format).
887
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
888
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsRequest}
889
+ */
890
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.deserializeBinary = function(bytes) {
891
+ var reader = new jspb.BinaryReader(bytes);
892
+ var msg = new proto.trb.strategysearch.v1.GetBestTrialsRequest;
893
+ return proto.trb.strategysearch.v1.GetBestTrialsRequest.deserializeBinaryFromReader(msg, reader);
894
+ };
895
+
896
+
897
+ /**
898
+ * Deserializes binary data (in protobuf wire format) from the
899
+ * given reader into the given message object.
900
+ * @param {!proto.trb.strategysearch.v1.GetBestTrialsRequest} msg The message object to deserialize into.
901
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
902
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsRequest}
903
+ */
904
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.deserializeBinaryFromReader = function(msg, reader) {
905
+ while (reader.nextField()) {
906
+ if (reader.isEndGroup()) {
907
+ break;
908
+ }
909
+ var field = reader.getFieldNumber();
910
+ switch (field) {
911
+ case 1:
912
+ var value = /** @type {string} */ (reader.readString());
913
+ msg.setSearchId(value);
914
+ break;
915
+ case 2:
916
+ var value = /** @type {number} */ (reader.readInt32());
917
+ msg.setTopK(value);
918
+ break;
919
+ default:
920
+ reader.skipField();
921
+ break;
922
+ }
923
+ }
924
+ return msg;
925
+ };
926
+
927
+
928
+ /**
929
+ * Serializes the message to binary data (in protobuf wire format).
930
+ * @return {!Uint8Array}
931
+ */
932
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.prototype.serializeBinary = function() {
933
+ var writer = new jspb.BinaryWriter();
934
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.serializeBinaryToWriter(this, writer);
935
+ return writer.getResultBuffer();
936
+ };
937
+
938
+
939
+ /**
940
+ * Serializes the given message to binary data (in protobuf wire
941
+ * format), writing to the given BinaryWriter.
942
+ * @param {!proto.trb.strategysearch.v1.GetBestTrialsRequest} message
943
+ * @param {!jspb.BinaryWriter} writer
944
+ * @suppress {unusedLocalVariables} f is only used for nested messages
945
+ */
946
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.serializeBinaryToWriter = function(message, writer) {
947
+ var f = undefined;
948
+ f = message.getSearchId();
949
+ if (f.length > 0) {
950
+ writer.writeString(
951
+ 1,
952
+ f
953
+ );
954
+ }
955
+ f = message.getTopK();
956
+ if (f !== 0) {
957
+ writer.writeInt32(
958
+ 2,
959
+ f
960
+ );
961
+ }
962
+ };
963
+
964
+
965
+ /**
966
+ * optional string search_id = 1;
967
+ * @return {string}
968
+ */
969
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.prototype.getSearchId = function() {
970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
971
+ };
972
+
973
+
974
+ /**
975
+ * @param {string} value
976
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsRequest} returns this
977
+ */
978
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.prototype.setSearchId = function(value) {
979
+ return jspb.Message.setProto3StringField(this, 1, value);
980
+ };
981
+
982
+
983
+ /**
984
+ * optional int32 top_k = 2;
985
+ * @return {number}
986
+ */
987
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.prototype.getTopK = function() {
988
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
989
+ };
990
+
991
+
992
+ /**
993
+ * @param {number} value
994
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsRequest} returns this
995
+ */
996
+ proto.trb.strategysearch.v1.GetBestTrialsRequest.prototype.setTopK = function(value) {
997
+ return jspb.Message.setProto3IntField(this, 2, value);
998
+ };
999
+
1000
+
1001
+
1002
+ /**
1003
+ * List of repeated fields within this message type.
1004
+ * @private {!Array<number>}
1005
+ * @const
1006
+ */
1007
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.repeatedFields_ = [1];
1008
+
1009
+
1010
+
1011
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1012
+ /**
1013
+ * Creates an object representation of this proto.
1014
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1015
+ * Optional fields that are not set will be set to undefined.
1016
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1017
+ * For the list of reserved names please see:
1018
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1019
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1020
+ * JSPB instance for transitional soy proto support:
1021
+ * http://goto/soy-param-migration
1022
+ * @return {!Object}
1023
+ */
1024
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.toObject = function(opt_includeInstance) {
1025
+ return proto.trb.strategysearch.v1.GetBestTrialsResponse.toObject(opt_includeInstance, this);
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * Static version of the {@see toObject} method.
1031
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1032
+ * the JSPB instance for transitional soy proto support:
1033
+ * http://goto/soy-param-migration
1034
+ * @param {!proto.trb.strategysearch.v1.GetBestTrialsResponse} msg The msg instance to transform.
1035
+ * @return {!Object}
1036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1037
+ */
1038
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.toObject = function(includeInstance, msg) {
1039
+ var f, obj = {
1040
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1041
+ strategysearch_search_pb.Trial.toObject, includeInstance)
1042
+ };
1043
+
1044
+ if (includeInstance) {
1045
+ obj.$jspbMessageInstance = msg;
1046
+ }
1047
+ return obj;
1048
+ };
1049
+ }
1050
+
1051
+
1052
+ /**
1053
+ * Deserializes binary data (in protobuf wire format).
1054
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1055
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsResponse}
1056
+ */
1057
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.deserializeBinary = function(bytes) {
1058
+ var reader = new jspb.BinaryReader(bytes);
1059
+ var msg = new proto.trb.strategysearch.v1.GetBestTrialsResponse;
1060
+ return proto.trb.strategysearch.v1.GetBestTrialsResponse.deserializeBinaryFromReader(msg, reader);
1061
+ };
1062
+
1063
+
1064
+ /**
1065
+ * Deserializes binary data (in protobuf wire format) from the
1066
+ * given reader into the given message object.
1067
+ * @param {!proto.trb.strategysearch.v1.GetBestTrialsResponse} msg The message object to deserialize into.
1068
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1069
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsResponse}
1070
+ */
1071
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.deserializeBinaryFromReader = function(msg, reader) {
1072
+ while (reader.nextField()) {
1073
+ if (reader.isEndGroup()) {
1074
+ break;
1075
+ }
1076
+ var field = reader.getFieldNumber();
1077
+ switch (field) {
1078
+ case 1:
1079
+ var value = new strategysearch_search_pb.Trial;
1080
+ reader.readMessage(value,strategysearch_search_pb.Trial.deserializeBinaryFromReader);
1081
+ msg.addItems(value);
1082
+ break;
1083
+ default:
1084
+ reader.skipField();
1085
+ break;
1086
+ }
1087
+ }
1088
+ return msg;
1089
+ };
1090
+
1091
+
1092
+ /**
1093
+ * Serializes the message to binary data (in protobuf wire format).
1094
+ * @return {!Uint8Array}
1095
+ */
1096
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.serializeBinary = function() {
1097
+ var writer = new jspb.BinaryWriter();
1098
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.serializeBinaryToWriter(this, writer);
1099
+ return writer.getResultBuffer();
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * Serializes the given message to binary data (in protobuf wire
1105
+ * format), writing to the given BinaryWriter.
1106
+ * @param {!proto.trb.strategysearch.v1.GetBestTrialsResponse} message
1107
+ * @param {!jspb.BinaryWriter} writer
1108
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1109
+ */
1110
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.serializeBinaryToWriter = function(message, writer) {
1111
+ var f = undefined;
1112
+ f = message.getItemsList();
1113
+ if (f.length > 0) {
1114
+ writer.writeRepeatedMessage(
1115
+ 1,
1116
+ f,
1117
+ strategysearch_search_pb.Trial.serializeBinaryToWriter
1118
+ );
1119
+ }
1120
+ };
1121
+
1122
+
1123
+ /**
1124
+ * repeated Trial items = 1;
1125
+ * @return {!Array<!proto.trb.strategysearch.v1.Trial>}
1126
+ */
1127
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.getItemsList = function() {
1128
+ return /** @type{!Array<!proto.trb.strategysearch.v1.Trial>} */ (
1129
+ jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.Trial, 1));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {!Array<!proto.trb.strategysearch.v1.Trial>} value
1135
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsResponse} returns this
1136
+ */
1137
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.setItemsList = function(value) {
1138
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * @param {!proto.trb.strategysearch.v1.Trial=} opt_value
1144
+ * @param {number=} opt_index
1145
+ * @return {!proto.trb.strategysearch.v1.Trial}
1146
+ */
1147
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.addItems = function(opt_value, opt_index) {
1148
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.Trial, opt_index);
1149
+ };
1150
+
1151
+
1152
+ /**
1153
+ * Clears the list making it empty but non-null.
1154
+ * @return {!proto.trb.strategysearch.v1.GetBestTrialsResponse} returns this
1155
+ */
1156
+ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.clearItemsList = function() {
1157
+ return this.setItemsList([]);
1158
+ };
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1165
+ /**
1166
+ * Creates an object representation of this proto.
1167
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1168
+ * Optional fields that are not set will be set to undefined.
1169
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1170
+ * For the list of reserved names please see:
1171
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1172
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1173
+ * JSPB instance for transitional soy proto support:
1174
+ * http://goto/soy-param-migration
1175
+ * @return {!Object}
1176
+ */
1177
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.toObject = function(opt_includeInstance) {
1178
+ return proto.trb.strategysearch.v1.ListSearchesRequest.toObject(opt_includeInstance, this);
1179
+ };
1180
+
1181
+
1182
+ /**
1183
+ * Static version of the {@see toObject} method.
1184
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1185
+ * the JSPB instance for transitional soy proto support:
1186
+ * http://goto/soy-param-migration
1187
+ * @param {!proto.trb.strategysearch.v1.ListSearchesRequest} msg The msg instance to transform.
1188
+ * @return {!Object}
1189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1190
+ */
1191
+ proto.trb.strategysearch.v1.ListSearchesRequest.toObject = function(includeInstance, msg) {
1192
+ var f, obj = {
1193
+ status: jspb.Message.getFieldWithDefault(msg, 1, 0),
1194
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
1195
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
1196
+ };
1197
+
1198
+ if (includeInstance) {
1199
+ obj.$jspbMessageInstance = msg;
1200
+ }
1201
+ return obj;
1202
+ };
1203
+ }
1204
+
1205
+
1206
+ /**
1207
+ * Deserializes binary data (in protobuf wire format).
1208
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1209
+ * @return {!proto.trb.strategysearch.v1.ListSearchesRequest}
1210
+ */
1211
+ proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinary = function(bytes) {
1212
+ var reader = new jspb.BinaryReader(bytes);
1213
+ var msg = new proto.trb.strategysearch.v1.ListSearchesRequest;
1214
+ return proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinaryFromReader(msg, reader);
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * Deserializes binary data (in protobuf wire format) from the
1220
+ * given reader into the given message object.
1221
+ * @param {!proto.trb.strategysearch.v1.ListSearchesRequest} msg The message object to deserialize into.
1222
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1223
+ * @return {!proto.trb.strategysearch.v1.ListSearchesRequest}
1224
+ */
1225
+ proto.trb.strategysearch.v1.ListSearchesRequest.deserializeBinaryFromReader = function(msg, reader) {
1226
+ while (reader.nextField()) {
1227
+ if (reader.isEndGroup()) {
1228
+ break;
1229
+ }
1230
+ var field = reader.getFieldNumber();
1231
+ switch (field) {
1232
+ case 1:
1233
+ var value = /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (reader.readEnum());
1234
+ msg.setStatus(value);
1235
+ break;
1236
+ case 2:
1237
+ var value = /** @type {number} */ (reader.readInt32());
1238
+ msg.setLimit(value);
1239
+ break;
1240
+ case 3:
1241
+ var value = /** @type {number} */ (reader.readInt32());
1242
+ msg.setOffset(value);
1243
+ break;
1244
+ default:
1245
+ reader.skipField();
1246
+ break;
1247
+ }
1248
+ }
1249
+ return msg;
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * Serializes the message to binary data (in protobuf wire format).
1255
+ * @return {!Uint8Array}
1256
+ */
1257
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.serializeBinary = function() {
1258
+ var writer = new jspb.BinaryWriter();
1259
+ proto.trb.strategysearch.v1.ListSearchesRequest.serializeBinaryToWriter(this, writer);
1260
+ return writer.getResultBuffer();
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * Serializes the given message to binary data (in protobuf wire
1266
+ * format), writing to the given BinaryWriter.
1267
+ * @param {!proto.trb.strategysearch.v1.ListSearchesRequest} message
1268
+ * @param {!jspb.BinaryWriter} writer
1269
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1270
+ */
1271
+ proto.trb.strategysearch.v1.ListSearchesRequest.serializeBinaryToWriter = function(message, writer) {
1272
+ var f = undefined;
1273
+ f = message.getStatus();
1274
+ if (f !== 0.0) {
1275
+ writer.writeEnum(
1276
+ 1,
1277
+ f
1278
+ );
1279
+ }
1280
+ f = message.getLimit();
1281
+ if (f !== 0) {
1282
+ writer.writeInt32(
1283
+ 2,
1284
+ f
1285
+ );
1286
+ }
1287
+ f = message.getOffset();
1288
+ if (f !== 0) {
1289
+ writer.writeInt32(
1290
+ 3,
1291
+ f
1292
+ );
1293
+ }
1294
+ };
1295
+
1296
+
1297
+ /**
1298
+ * optional RunStatus status = 1;
1299
+ * @return {!proto.trb.strategysearch.v1.RunStatus}
1300
+ */
1301
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.getStatus = function() {
1302
+ return /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1303
+ };
1304
+
1305
+
1306
+ /**
1307
+ * @param {!proto.trb.strategysearch.v1.RunStatus} value
1308
+ * @return {!proto.trb.strategysearch.v1.ListSearchesRequest} returns this
1309
+ */
1310
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setStatus = function(value) {
1311
+ return jspb.Message.setProto3EnumField(this, 1, value);
1312
+ };
1313
+
1314
+
1315
+ /**
1316
+ * optional int32 limit = 2;
1317
+ * @return {number}
1318
+ */
1319
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.getLimit = function() {
1320
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1321
+ };
1322
+
1323
+
1324
+ /**
1325
+ * @param {number} value
1326
+ * @return {!proto.trb.strategysearch.v1.ListSearchesRequest} returns this
1327
+ */
1328
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setLimit = function(value) {
1329
+ return jspb.Message.setProto3IntField(this, 2, value);
1330
+ };
1331
+
1332
+
1333
+ /**
1334
+ * optional int32 offset = 3;
1335
+ * @return {number}
1336
+ */
1337
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.getOffset = function() {
1338
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1339
+ };
1340
+
1341
+
1342
+ /**
1343
+ * @param {number} value
1344
+ * @return {!proto.trb.strategysearch.v1.ListSearchesRequest} returns this
1345
+ */
1346
+ proto.trb.strategysearch.v1.ListSearchesRequest.prototype.setOffset = function(value) {
1347
+ return jspb.Message.setProto3IntField(this, 3, value);
1348
+ };
1349
+
1350
+
1351
+
1352
+ /**
1353
+ * List of repeated fields within this message type.
1354
+ * @private {!Array<number>}
1355
+ * @const
1356
+ */
1357
+ proto.trb.strategysearch.v1.ListSearchesResponse.repeatedFields_ = [1];
1358
+
1359
+
1360
+
1361
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1362
+ /**
1363
+ * Creates an object representation of this proto.
1364
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1365
+ * Optional fields that are not set will be set to undefined.
1366
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1367
+ * For the list of reserved names please see:
1368
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1369
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1370
+ * JSPB instance for transitional soy proto support:
1371
+ * http://goto/soy-param-migration
1372
+ * @return {!Object}
1373
+ */
1374
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.toObject = function(opt_includeInstance) {
1375
+ return proto.trb.strategysearch.v1.ListSearchesResponse.toObject(opt_includeInstance, this);
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * Static version of the {@see toObject} method.
1381
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1382
+ * the JSPB instance for transitional soy proto support:
1383
+ * http://goto/soy-param-migration
1384
+ * @param {!proto.trb.strategysearch.v1.ListSearchesResponse} msg The msg instance to transform.
1385
+ * @return {!Object}
1386
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1387
+ */
1388
+ proto.trb.strategysearch.v1.ListSearchesResponse.toObject = function(includeInstance, msg) {
1389
+ var f, obj = {
1390
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1391
+ strategysearch_search_pb.SearchRun.toObject, includeInstance),
1392
+ total: jspb.Message.getFieldWithDefault(msg, 2, 0)
1393
+ };
1394
+
1395
+ if (includeInstance) {
1396
+ obj.$jspbMessageInstance = msg;
1397
+ }
1398
+ return obj;
1399
+ };
1400
+ }
1401
+
1402
+
1403
+ /**
1404
+ * Deserializes binary data (in protobuf wire format).
1405
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1406
+ * @return {!proto.trb.strategysearch.v1.ListSearchesResponse}
1407
+ */
1408
+ proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinary = function(bytes) {
1409
+ var reader = new jspb.BinaryReader(bytes);
1410
+ var msg = new proto.trb.strategysearch.v1.ListSearchesResponse;
1411
+ return proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinaryFromReader(msg, reader);
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * Deserializes binary data (in protobuf wire format) from the
1417
+ * given reader into the given message object.
1418
+ * @param {!proto.trb.strategysearch.v1.ListSearchesResponse} msg The message object to deserialize into.
1419
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1420
+ * @return {!proto.trb.strategysearch.v1.ListSearchesResponse}
1421
+ */
1422
+ proto.trb.strategysearch.v1.ListSearchesResponse.deserializeBinaryFromReader = function(msg, reader) {
1423
+ while (reader.nextField()) {
1424
+ if (reader.isEndGroup()) {
1425
+ break;
1426
+ }
1427
+ var field = reader.getFieldNumber();
1428
+ switch (field) {
1429
+ case 1:
1430
+ var value = new strategysearch_search_pb.SearchRun;
1431
+ reader.readMessage(value,strategysearch_search_pb.SearchRun.deserializeBinaryFromReader);
1432
+ msg.addItems(value);
1433
+ break;
1434
+ case 2:
1435
+ var value = /** @type {number} */ (reader.readInt32());
1436
+ msg.setTotal(value);
1437
+ break;
1438
+ default:
1439
+ reader.skipField();
1440
+ break;
1441
+ }
1442
+ }
1443
+ return msg;
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * Serializes the message to binary data (in protobuf wire format).
1449
+ * @return {!Uint8Array}
1450
+ */
1451
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.serializeBinary = function() {
1452
+ var writer = new jspb.BinaryWriter();
1453
+ proto.trb.strategysearch.v1.ListSearchesResponse.serializeBinaryToWriter(this, writer);
1454
+ return writer.getResultBuffer();
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * Serializes the given message to binary data (in protobuf wire
1460
+ * format), writing to the given BinaryWriter.
1461
+ * @param {!proto.trb.strategysearch.v1.ListSearchesResponse} message
1462
+ * @param {!jspb.BinaryWriter} writer
1463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1464
+ */
1465
+ proto.trb.strategysearch.v1.ListSearchesResponse.serializeBinaryToWriter = function(message, writer) {
1466
+ var f = undefined;
1467
+ f = message.getItemsList();
1468
+ if (f.length > 0) {
1469
+ writer.writeRepeatedMessage(
1470
+ 1,
1471
+ f,
1472
+ strategysearch_search_pb.SearchRun.serializeBinaryToWriter
1473
+ );
1474
+ }
1475
+ f = message.getTotal();
1476
+ if (f !== 0) {
1477
+ writer.writeInt32(
1478
+ 2,
1479
+ f
1480
+ );
1481
+ }
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * repeated SearchRun items = 1;
1487
+ * @return {!Array<!proto.trb.strategysearch.v1.SearchRun>}
1488
+ */
1489
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.getItemsList = function() {
1490
+ return /** @type{!Array<!proto.trb.strategysearch.v1.SearchRun>} */ (
1491
+ jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.SearchRun, 1));
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * @param {!Array<!proto.trb.strategysearch.v1.SearchRun>} value
1497
+ * @return {!proto.trb.strategysearch.v1.ListSearchesResponse} returns this
1498
+ */
1499
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.setItemsList = function(value) {
1500
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * @param {!proto.trb.strategysearch.v1.SearchRun=} opt_value
1506
+ * @param {number=} opt_index
1507
+ * @return {!proto.trb.strategysearch.v1.SearchRun}
1508
+ */
1509
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.addItems = function(opt_value, opt_index) {
1510
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.SearchRun, opt_index);
1511
+ };
1512
+
1513
+
1514
+ /**
1515
+ * Clears the list making it empty but non-null.
1516
+ * @return {!proto.trb.strategysearch.v1.ListSearchesResponse} returns this
1517
+ */
1518
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.clearItemsList = function() {
1519
+ return this.setItemsList([]);
1520
+ };
1521
+
1522
+
1523
+ /**
1524
+ * optional int32 total = 2;
1525
+ * @return {number}
1526
+ */
1527
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.getTotal = function() {
1528
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1529
+ };
1530
+
1531
+
1532
+ /**
1533
+ * @param {number} value
1534
+ * @return {!proto.trb.strategysearch.v1.ListSearchesResponse} returns this
1535
+ */
1536
+ proto.trb.strategysearch.v1.ListSearchesResponse.prototype.setTotal = function(value) {
1537
+ return jspb.Message.setProto3IntField(this, 2, value);
1538
+ };
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1545
+ /**
1546
+ * Creates an object representation of this proto.
1547
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1548
+ * Optional fields that are not set will be set to undefined.
1549
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1550
+ * For the list of reserved names please see:
1551
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1552
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1553
+ * JSPB instance for transitional soy proto support:
1554
+ * http://goto/soy-param-migration
1555
+ * @return {!Object}
1556
+ */
1557
+ proto.trb.strategysearch.v1.CancelSearchRequest.prototype.toObject = function(opt_includeInstance) {
1558
+ return proto.trb.strategysearch.v1.CancelSearchRequest.toObject(opt_includeInstance, this);
1559
+ };
1560
+
1561
+
1562
+ /**
1563
+ * Static version of the {@see toObject} method.
1564
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1565
+ * the JSPB instance for transitional soy proto support:
1566
+ * http://goto/soy-param-migration
1567
+ * @param {!proto.trb.strategysearch.v1.CancelSearchRequest} msg The msg instance to transform.
1568
+ * @return {!Object}
1569
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1570
+ */
1571
+ proto.trb.strategysearch.v1.CancelSearchRequest.toObject = function(includeInstance, msg) {
1572
+ var f, obj = {
1573
+ searchId: jspb.Message.getFieldWithDefault(msg, 1, "")
1574
+ };
1575
+
1576
+ if (includeInstance) {
1577
+ obj.$jspbMessageInstance = msg;
1578
+ }
1579
+ return obj;
1580
+ };
1581
+ }
1582
+
1583
+
1584
+ /**
1585
+ * Deserializes binary data (in protobuf wire format).
1586
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1587
+ * @return {!proto.trb.strategysearch.v1.CancelSearchRequest}
1588
+ */
1589
+ proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinary = function(bytes) {
1590
+ var reader = new jspb.BinaryReader(bytes);
1591
+ var msg = new proto.trb.strategysearch.v1.CancelSearchRequest;
1592
+ return proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinaryFromReader(msg, reader);
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * Deserializes binary data (in protobuf wire format) from the
1598
+ * given reader into the given message object.
1599
+ * @param {!proto.trb.strategysearch.v1.CancelSearchRequest} msg The message object to deserialize into.
1600
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1601
+ * @return {!proto.trb.strategysearch.v1.CancelSearchRequest}
1602
+ */
1603
+ proto.trb.strategysearch.v1.CancelSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1604
+ while (reader.nextField()) {
1605
+ if (reader.isEndGroup()) {
1606
+ break;
1607
+ }
1608
+ var field = reader.getFieldNumber();
1609
+ switch (field) {
1610
+ case 1:
1611
+ var value = /** @type {string} */ (reader.readString());
1612
+ msg.setSearchId(value);
1613
+ break;
1614
+ default:
1615
+ reader.skipField();
1616
+ break;
1617
+ }
1618
+ }
1619
+ return msg;
1620
+ };
1621
+
1622
+
1623
+ /**
1624
+ * Serializes the message to binary data (in protobuf wire format).
1625
+ * @return {!Uint8Array}
1626
+ */
1627
+ proto.trb.strategysearch.v1.CancelSearchRequest.prototype.serializeBinary = function() {
1628
+ var writer = new jspb.BinaryWriter();
1629
+ proto.trb.strategysearch.v1.CancelSearchRequest.serializeBinaryToWriter(this, writer);
1630
+ return writer.getResultBuffer();
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * Serializes the given message to binary data (in protobuf wire
1636
+ * format), writing to the given BinaryWriter.
1637
+ * @param {!proto.trb.strategysearch.v1.CancelSearchRequest} message
1638
+ * @param {!jspb.BinaryWriter} writer
1639
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1640
+ */
1641
+ proto.trb.strategysearch.v1.CancelSearchRequest.serializeBinaryToWriter = function(message, writer) {
1642
+ var f = undefined;
1643
+ f = message.getSearchId();
1644
+ if (f.length > 0) {
1645
+ writer.writeString(
1646
+ 1,
1647
+ f
1648
+ );
1649
+ }
1650
+ };
1651
+
1652
+
1653
+ /**
1654
+ * optional string search_id = 1;
1655
+ * @return {string}
1656
+ */
1657
+ proto.trb.strategysearch.v1.CancelSearchRequest.prototype.getSearchId = function() {
1658
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1659
+ };
1660
+
1661
+
1662
+ /**
1663
+ * @param {string} value
1664
+ * @return {!proto.trb.strategysearch.v1.CancelSearchRequest} returns this
1665
+ */
1666
+ proto.trb.strategysearch.v1.CancelSearchRequest.prototype.setSearchId = function(value) {
1667
+ return jspb.Message.setProto3StringField(this, 1, value);
1668
+ };
1669
+
1670
+
1671
+ goog.object.extend(exports, proto.trb.strategysearch.v1);