@marleena/trb-proto 1.0.59 → 1.0.62
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/strategysearch_pb.d.ts +24 -0
- package/gen/js-ts/strategysearch/strategysearch_pb.js +206 -2
- package/package.json +1 -1
- package/gen/js-ts/strategy/StrategyServiceClientPb.ts +0 -733
- package/gen/js-ts/strategy/backtest_pb.d.ts +0 -482
- package/gen/js-ts/strategy/backtest_pb.js +0 -3776
- package/gen/js-ts/strategy/search_pb.d.ts +0 -516
- package/gen/js-ts/strategy/search_pb.js +0 -4147
- package/gen/js-ts/strategy/spec_pb.d.ts +0 -388
- package/gen/js-ts/strategy/spec_pb.js +0 -3023
- package/gen/js-ts/strategy/strategy_pb.d.ts +0 -785
- package/gen/js-ts/strategy/strategy_pb.js +0 -6553
|
@@ -1,4147 +0,0 @@
|
|
|
1
|
-
// source: strategy/search.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_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
25
|
-
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
|
-
var strategy_spec_pb = require('../strategy/spec_pb.js');
|
|
27
|
-
goog.object.extend(proto, strategy_spec_pb);
|
|
28
|
-
var strategy_backtest_pb = require('../strategy/backtest_pb.js');
|
|
29
|
-
goog.object.extend(proto, strategy_backtest_pb);
|
|
30
|
-
goog.exportSymbol('proto.trb.strategy.v1.Choice', null, global);
|
|
31
|
-
goog.exportSymbol('proto.trb.strategy.v1.EvalResult', null, global);
|
|
32
|
-
goog.exportSymbol('proto.trb.strategy.v1.EvalTask', null, global);
|
|
33
|
-
goog.exportSymbol('proto.trb.strategy.v1.FloatRange', null, global);
|
|
34
|
-
goog.exportSymbol('proto.trb.strategy.v1.IntRange', null, global);
|
|
35
|
-
goog.exportSymbol('proto.trb.strategy.v1.Objective', null, global);
|
|
36
|
-
goog.exportSymbol('proto.trb.strategy.v1.ParamRange', null, global);
|
|
37
|
-
goog.exportSymbol('proto.trb.strategy.v1.ParamRange.RangeCase', null, global);
|
|
38
|
-
goog.exportSymbol('proto.trb.strategy.v1.SearchBudget', null, global);
|
|
39
|
-
goog.exportSymbol('proto.trb.strategy.v1.SearchCandidate', null, global);
|
|
40
|
-
goog.exportSymbol('proto.trb.strategy.v1.SearchMethod', null, global);
|
|
41
|
-
goog.exportSymbol('proto.trb.strategy.v1.SearchProgress', null, global);
|
|
42
|
-
goog.exportSymbol('proto.trb.strategy.v1.SearchRun', null, global);
|
|
43
|
-
goog.exportSymbol('proto.trb.strategy.v1.SearchTask', null, global);
|
|
44
|
-
goog.exportSymbol('proto.trb.strategy.v1.StructureSpace', null, global);
|
|
45
|
-
/**
|
|
46
|
-
* Generated by JsPbCodeGenerator.
|
|
47
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
48
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
49
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
50
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
51
|
-
* valid.
|
|
52
|
-
* @extends {jspb.Message}
|
|
53
|
-
* @constructor
|
|
54
|
-
*/
|
|
55
|
-
proto.trb.strategy.v1.IntRange = function(opt_data) {
|
|
56
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
57
|
-
};
|
|
58
|
-
goog.inherits(proto.trb.strategy.v1.IntRange, jspb.Message);
|
|
59
|
-
if (goog.DEBUG && !COMPILED) {
|
|
60
|
-
/**
|
|
61
|
-
* @public
|
|
62
|
-
* @override
|
|
63
|
-
*/
|
|
64
|
-
proto.trb.strategy.v1.IntRange.displayName = 'proto.trb.strategy.v1.IntRange';
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Generated by JsPbCodeGenerator.
|
|
68
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
69
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
70
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
71
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
72
|
-
* valid.
|
|
73
|
-
* @extends {jspb.Message}
|
|
74
|
-
* @constructor
|
|
75
|
-
*/
|
|
76
|
-
proto.trb.strategy.v1.FloatRange = function(opt_data) {
|
|
77
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
78
|
-
};
|
|
79
|
-
goog.inherits(proto.trb.strategy.v1.FloatRange, jspb.Message);
|
|
80
|
-
if (goog.DEBUG && !COMPILED) {
|
|
81
|
-
/**
|
|
82
|
-
* @public
|
|
83
|
-
* @override
|
|
84
|
-
*/
|
|
85
|
-
proto.trb.strategy.v1.FloatRange.displayName = 'proto.trb.strategy.v1.FloatRange';
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Generated by JsPbCodeGenerator.
|
|
89
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
90
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
91
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
92
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
93
|
-
* valid.
|
|
94
|
-
* @extends {jspb.Message}
|
|
95
|
-
* @constructor
|
|
96
|
-
*/
|
|
97
|
-
proto.trb.strategy.v1.Choice = function(opt_data) {
|
|
98
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategy.v1.Choice.repeatedFields_, null);
|
|
99
|
-
};
|
|
100
|
-
goog.inherits(proto.trb.strategy.v1.Choice, jspb.Message);
|
|
101
|
-
if (goog.DEBUG && !COMPILED) {
|
|
102
|
-
/**
|
|
103
|
-
* @public
|
|
104
|
-
* @override
|
|
105
|
-
*/
|
|
106
|
-
proto.trb.strategy.v1.Choice.displayName = 'proto.trb.strategy.v1.Choice';
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Generated by JsPbCodeGenerator.
|
|
110
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
111
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
112
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
113
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
114
|
-
* valid.
|
|
115
|
-
* @extends {jspb.Message}
|
|
116
|
-
* @constructor
|
|
117
|
-
*/
|
|
118
|
-
proto.trb.strategy.v1.ParamRange = function(opt_data) {
|
|
119
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.trb.strategy.v1.ParamRange.oneofGroups_);
|
|
120
|
-
};
|
|
121
|
-
goog.inherits(proto.trb.strategy.v1.ParamRange, jspb.Message);
|
|
122
|
-
if (goog.DEBUG && !COMPILED) {
|
|
123
|
-
/**
|
|
124
|
-
* @public
|
|
125
|
-
* @override
|
|
126
|
-
*/
|
|
127
|
-
proto.trb.strategy.v1.ParamRange.displayName = 'proto.trb.strategy.v1.ParamRange';
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Generated by JsPbCodeGenerator.
|
|
131
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
132
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
133
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
134
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
135
|
-
* valid.
|
|
136
|
-
* @extends {jspb.Message}
|
|
137
|
-
* @constructor
|
|
138
|
-
*/
|
|
139
|
-
proto.trb.strategy.v1.StructureSpace = function(opt_data) {
|
|
140
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategy.v1.StructureSpace.repeatedFields_, null);
|
|
141
|
-
};
|
|
142
|
-
goog.inherits(proto.trb.strategy.v1.StructureSpace, jspb.Message);
|
|
143
|
-
if (goog.DEBUG && !COMPILED) {
|
|
144
|
-
/**
|
|
145
|
-
* @public
|
|
146
|
-
* @override
|
|
147
|
-
*/
|
|
148
|
-
proto.trb.strategy.v1.StructureSpace.displayName = 'proto.trb.strategy.v1.StructureSpace';
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Generated by JsPbCodeGenerator.
|
|
152
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
153
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
154
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
155
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
156
|
-
* valid.
|
|
157
|
-
* @extends {jspb.Message}
|
|
158
|
-
* @constructor
|
|
159
|
-
*/
|
|
160
|
-
proto.trb.strategy.v1.Objective = function(opt_data) {
|
|
161
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
162
|
-
};
|
|
163
|
-
goog.inherits(proto.trb.strategy.v1.Objective, jspb.Message);
|
|
164
|
-
if (goog.DEBUG && !COMPILED) {
|
|
165
|
-
/**
|
|
166
|
-
* @public
|
|
167
|
-
* @override
|
|
168
|
-
*/
|
|
169
|
-
proto.trb.strategy.v1.Objective.displayName = 'proto.trb.strategy.v1.Objective';
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Generated by JsPbCodeGenerator.
|
|
173
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
174
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
175
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
176
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
177
|
-
* valid.
|
|
178
|
-
* @extends {jspb.Message}
|
|
179
|
-
* @constructor
|
|
180
|
-
*/
|
|
181
|
-
proto.trb.strategy.v1.SearchBudget = function(opt_data) {
|
|
182
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
183
|
-
};
|
|
184
|
-
goog.inherits(proto.trb.strategy.v1.SearchBudget, jspb.Message);
|
|
185
|
-
if (goog.DEBUG && !COMPILED) {
|
|
186
|
-
/**
|
|
187
|
-
* @public
|
|
188
|
-
* @override
|
|
189
|
-
*/
|
|
190
|
-
proto.trb.strategy.v1.SearchBudget.displayName = 'proto.trb.strategy.v1.SearchBudget';
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Generated by JsPbCodeGenerator.
|
|
194
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
195
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
196
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
197
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
198
|
-
* valid.
|
|
199
|
-
* @extends {jspb.Message}
|
|
200
|
-
* @constructor
|
|
201
|
-
*/
|
|
202
|
-
proto.trb.strategy.v1.EvalTask = function(opt_data) {
|
|
203
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
204
|
-
};
|
|
205
|
-
goog.inherits(proto.trb.strategy.v1.EvalTask, jspb.Message);
|
|
206
|
-
if (goog.DEBUG && !COMPILED) {
|
|
207
|
-
/**
|
|
208
|
-
* @public
|
|
209
|
-
* @override
|
|
210
|
-
*/
|
|
211
|
-
proto.trb.strategy.v1.EvalTask.displayName = 'proto.trb.strategy.v1.EvalTask';
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Generated by JsPbCodeGenerator.
|
|
215
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
216
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
217
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
218
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
219
|
-
* valid.
|
|
220
|
-
* @extends {jspb.Message}
|
|
221
|
-
* @constructor
|
|
222
|
-
*/
|
|
223
|
-
proto.trb.strategy.v1.EvalResult = function(opt_data) {
|
|
224
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
225
|
-
};
|
|
226
|
-
goog.inherits(proto.trb.strategy.v1.EvalResult, jspb.Message);
|
|
227
|
-
if (goog.DEBUG && !COMPILED) {
|
|
228
|
-
/**
|
|
229
|
-
* @public
|
|
230
|
-
* @override
|
|
231
|
-
*/
|
|
232
|
-
proto.trb.strategy.v1.EvalResult.displayName = 'proto.trb.strategy.v1.EvalResult';
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Generated by JsPbCodeGenerator.
|
|
236
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
237
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
238
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
239
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
240
|
-
* valid.
|
|
241
|
-
* @extends {jspb.Message}
|
|
242
|
-
* @constructor
|
|
243
|
-
*/
|
|
244
|
-
proto.trb.strategy.v1.SearchCandidate = function(opt_data) {
|
|
245
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
246
|
-
};
|
|
247
|
-
goog.inherits(proto.trb.strategy.v1.SearchCandidate, jspb.Message);
|
|
248
|
-
if (goog.DEBUG && !COMPILED) {
|
|
249
|
-
/**
|
|
250
|
-
* @public
|
|
251
|
-
* @override
|
|
252
|
-
*/
|
|
253
|
-
proto.trb.strategy.v1.SearchCandidate.displayName = 'proto.trb.strategy.v1.SearchCandidate';
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Generated by JsPbCodeGenerator.
|
|
257
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
258
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
259
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
260
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
261
|
-
* valid.
|
|
262
|
-
* @extends {jspb.Message}
|
|
263
|
-
* @constructor
|
|
264
|
-
*/
|
|
265
|
-
proto.trb.strategy.v1.SearchProgress = function(opt_data) {
|
|
266
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
267
|
-
};
|
|
268
|
-
goog.inherits(proto.trb.strategy.v1.SearchProgress, jspb.Message);
|
|
269
|
-
if (goog.DEBUG && !COMPILED) {
|
|
270
|
-
/**
|
|
271
|
-
* @public
|
|
272
|
-
* @override
|
|
273
|
-
*/
|
|
274
|
-
proto.trb.strategy.v1.SearchProgress.displayName = 'proto.trb.strategy.v1.SearchProgress';
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Generated by JsPbCodeGenerator.
|
|
278
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
279
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
280
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
281
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
282
|
-
* valid.
|
|
283
|
-
* @extends {jspb.Message}
|
|
284
|
-
* @constructor
|
|
285
|
-
*/
|
|
286
|
-
proto.trb.strategy.v1.SearchRun = function(opt_data) {
|
|
287
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategy.v1.SearchRun.repeatedFields_, null);
|
|
288
|
-
};
|
|
289
|
-
goog.inherits(proto.trb.strategy.v1.SearchRun, jspb.Message);
|
|
290
|
-
if (goog.DEBUG && !COMPILED) {
|
|
291
|
-
/**
|
|
292
|
-
* @public
|
|
293
|
-
* @override
|
|
294
|
-
*/
|
|
295
|
-
proto.trb.strategy.v1.SearchRun.displayName = 'proto.trb.strategy.v1.SearchRun';
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Generated by JsPbCodeGenerator.
|
|
299
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
300
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
301
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
302
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
303
|
-
* valid.
|
|
304
|
-
* @extends {jspb.Message}
|
|
305
|
-
* @constructor
|
|
306
|
-
*/
|
|
307
|
-
proto.trb.strategy.v1.SearchTask = function(opt_data) {
|
|
308
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
309
|
-
};
|
|
310
|
-
goog.inherits(proto.trb.strategy.v1.SearchTask, jspb.Message);
|
|
311
|
-
if (goog.DEBUG && !COMPILED) {
|
|
312
|
-
/**
|
|
313
|
-
* @public
|
|
314
|
-
* @override
|
|
315
|
-
*/
|
|
316
|
-
proto.trb.strategy.v1.SearchTask.displayName = 'proto.trb.strategy.v1.SearchTask';
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
322
|
-
/**
|
|
323
|
-
* Creates an object representation of this proto.
|
|
324
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
325
|
-
* Optional fields that are not set will be set to undefined.
|
|
326
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
327
|
-
* For the list of reserved names please see:
|
|
328
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
329
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
330
|
-
* JSPB instance for transitional soy proto support:
|
|
331
|
-
* http://goto/soy-param-migration
|
|
332
|
-
* @return {!Object}
|
|
333
|
-
*/
|
|
334
|
-
proto.trb.strategy.v1.IntRange.prototype.toObject = function(opt_includeInstance) {
|
|
335
|
-
return proto.trb.strategy.v1.IntRange.toObject(opt_includeInstance, this);
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Static version of the {@see toObject} method.
|
|
341
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
342
|
-
* the JSPB instance for transitional soy proto support:
|
|
343
|
-
* http://goto/soy-param-migration
|
|
344
|
-
* @param {!proto.trb.strategy.v1.IntRange} msg The msg instance to transform.
|
|
345
|
-
* @return {!Object}
|
|
346
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
347
|
-
*/
|
|
348
|
-
proto.trb.strategy.v1.IntRange.toObject = function(includeInstance, msg) {
|
|
349
|
-
var f, obj = {
|
|
350
|
-
min: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
351
|
-
max: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
352
|
-
step: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
if (includeInstance) {
|
|
356
|
-
obj.$jspbMessageInstance = msg;
|
|
357
|
-
}
|
|
358
|
-
return obj;
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Deserializes binary data (in protobuf wire format).
|
|
365
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
366
|
-
* @return {!proto.trb.strategy.v1.IntRange}
|
|
367
|
-
*/
|
|
368
|
-
proto.trb.strategy.v1.IntRange.deserializeBinary = function(bytes) {
|
|
369
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
370
|
-
var msg = new proto.trb.strategy.v1.IntRange;
|
|
371
|
-
return proto.trb.strategy.v1.IntRange.deserializeBinaryFromReader(msg, reader);
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
377
|
-
* given reader into the given message object.
|
|
378
|
-
* @param {!proto.trb.strategy.v1.IntRange} msg The message object to deserialize into.
|
|
379
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
380
|
-
* @return {!proto.trb.strategy.v1.IntRange}
|
|
381
|
-
*/
|
|
382
|
-
proto.trb.strategy.v1.IntRange.deserializeBinaryFromReader = function(msg, reader) {
|
|
383
|
-
while (reader.nextField()) {
|
|
384
|
-
if (reader.isEndGroup()) {
|
|
385
|
-
break;
|
|
386
|
-
}
|
|
387
|
-
var field = reader.getFieldNumber();
|
|
388
|
-
switch (field) {
|
|
389
|
-
case 1:
|
|
390
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
391
|
-
msg.setMin(value);
|
|
392
|
-
break;
|
|
393
|
-
case 2:
|
|
394
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
395
|
-
msg.setMax(value);
|
|
396
|
-
break;
|
|
397
|
-
case 3:
|
|
398
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
399
|
-
msg.setStep(value);
|
|
400
|
-
break;
|
|
401
|
-
default:
|
|
402
|
-
reader.skipField();
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
return msg;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
412
|
-
* @return {!Uint8Array}
|
|
413
|
-
*/
|
|
414
|
-
proto.trb.strategy.v1.IntRange.prototype.serializeBinary = function() {
|
|
415
|
-
var writer = new jspb.BinaryWriter();
|
|
416
|
-
proto.trb.strategy.v1.IntRange.serializeBinaryToWriter(this, writer);
|
|
417
|
-
return writer.getResultBuffer();
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
423
|
-
* format), writing to the given BinaryWriter.
|
|
424
|
-
* @param {!proto.trb.strategy.v1.IntRange} message
|
|
425
|
-
* @param {!jspb.BinaryWriter} writer
|
|
426
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
427
|
-
*/
|
|
428
|
-
proto.trb.strategy.v1.IntRange.serializeBinaryToWriter = function(message, writer) {
|
|
429
|
-
var f = undefined;
|
|
430
|
-
f = message.getMin();
|
|
431
|
-
if (f !== 0) {
|
|
432
|
-
writer.writeInt64(
|
|
433
|
-
1,
|
|
434
|
-
f
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
f = message.getMax();
|
|
438
|
-
if (f !== 0) {
|
|
439
|
-
writer.writeInt64(
|
|
440
|
-
2,
|
|
441
|
-
f
|
|
442
|
-
);
|
|
443
|
-
}
|
|
444
|
-
f = message.getStep();
|
|
445
|
-
if (f !== 0) {
|
|
446
|
-
writer.writeInt64(
|
|
447
|
-
3,
|
|
448
|
-
f
|
|
449
|
-
);
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* optional int64 min = 1;
|
|
456
|
-
* @return {number}
|
|
457
|
-
*/
|
|
458
|
-
proto.trb.strategy.v1.IntRange.prototype.getMin = function() {
|
|
459
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* @param {number} value
|
|
465
|
-
* @return {!proto.trb.strategy.v1.IntRange} returns this
|
|
466
|
-
*/
|
|
467
|
-
proto.trb.strategy.v1.IntRange.prototype.setMin = function(value) {
|
|
468
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* optional int64 max = 2;
|
|
474
|
-
* @return {number}
|
|
475
|
-
*/
|
|
476
|
-
proto.trb.strategy.v1.IntRange.prototype.getMax = function() {
|
|
477
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* @param {number} value
|
|
483
|
-
* @return {!proto.trb.strategy.v1.IntRange} returns this
|
|
484
|
-
*/
|
|
485
|
-
proto.trb.strategy.v1.IntRange.prototype.setMax = function(value) {
|
|
486
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* optional int64 step = 3;
|
|
492
|
-
* @return {number}
|
|
493
|
-
*/
|
|
494
|
-
proto.trb.strategy.v1.IntRange.prototype.getStep = function() {
|
|
495
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* @param {number} value
|
|
501
|
-
* @return {!proto.trb.strategy.v1.IntRange} returns this
|
|
502
|
-
*/
|
|
503
|
-
proto.trb.strategy.v1.IntRange.prototype.setStep = function(value) {
|
|
504
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
512
|
-
/**
|
|
513
|
-
* Creates an object representation of this proto.
|
|
514
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
515
|
-
* Optional fields that are not set will be set to undefined.
|
|
516
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
517
|
-
* For the list of reserved names please see:
|
|
518
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
519
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
520
|
-
* JSPB instance for transitional soy proto support:
|
|
521
|
-
* http://goto/soy-param-migration
|
|
522
|
-
* @return {!Object}
|
|
523
|
-
*/
|
|
524
|
-
proto.trb.strategy.v1.FloatRange.prototype.toObject = function(opt_includeInstance) {
|
|
525
|
-
return proto.trb.strategy.v1.FloatRange.toObject(opt_includeInstance, this);
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Static version of the {@see toObject} method.
|
|
531
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
532
|
-
* the JSPB instance for transitional soy proto support:
|
|
533
|
-
* http://goto/soy-param-migration
|
|
534
|
-
* @param {!proto.trb.strategy.v1.FloatRange} msg The msg instance to transform.
|
|
535
|
-
* @return {!Object}
|
|
536
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
537
|
-
*/
|
|
538
|
-
proto.trb.strategy.v1.FloatRange.toObject = function(includeInstance, msg) {
|
|
539
|
-
var f, obj = {
|
|
540
|
-
min: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
541
|
-
max: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
542
|
-
step: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
if (includeInstance) {
|
|
546
|
-
obj.$jspbMessageInstance = msg;
|
|
547
|
-
}
|
|
548
|
-
return obj;
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* Deserializes binary data (in protobuf wire format).
|
|
555
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
556
|
-
* @return {!proto.trb.strategy.v1.FloatRange}
|
|
557
|
-
*/
|
|
558
|
-
proto.trb.strategy.v1.FloatRange.deserializeBinary = function(bytes) {
|
|
559
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
560
|
-
var msg = new proto.trb.strategy.v1.FloatRange;
|
|
561
|
-
return proto.trb.strategy.v1.FloatRange.deserializeBinaryFromReader(msg, reader);
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
567
|
-
* given reader into the given message object.
|
|
568
|
-
* @param {!proto.trb.strategy.v1.FloatRange} msg The message object to deserialize into.
|
|
569
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
570
|
-
* @return {!proto.trb.strategy.v1.FloatRange}
|
|
571
|
-
*/
|
|
572
|
-
proto.trb.strategy.v1.FloatRange.deserializeBinaryFromReader = function(msg, reader) {
|
|
573
|
-
while (reader.nextField()) {
|
|
574
|
-
if (reader.isEndGroup()) {
|
|
575
|
-
break;
|
|
576
|
-
}
|
|
577
|
-
var field = reader.getFieldNumber();
|
|
578
|
-
switch (field) {
|
|
579
|
-
case 1:
|
|
580
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
581
|
-
msg.setMin(value);
|
|
582
|
-
break;
|
|
583
|
-
case 2:
|
|
584
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
585
|
-
msg.setMax(value);
|
|
586
|
-
break;
|
|
587
|
-
case 3:
|
|
588
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
589
|
-
msg.setStep(value);
|
|
590
|
-
break;
|
|
591
|
-
default:
|
|
592
|
-
reader.skipField();
|
|
593
|
-
break;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
return msg;
|
|
597
|
-
};
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
602
|
-
* @return {!Uint8Array}
|
|
603
|
-
*/
|
|
604
|
-
proto.trb.strategy.v1.FloatRange.prototype.serializeBinary = function() {
|
|
605
|
-
var writer = new jspb.BinaryWriter();
|
|
606
|
-
proto.trb.strategy.v1.FloatRange.serializeBinaryToWriter(this, writer);
|
|
607
|
-
return writer.getResultBuffer();
|
|
608
|
-
};
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
613
|
-
* format), writing to the given BinaryWriter.
|
|
614
|
-
* @param {!proto.trb.strategy.v1.FloatRange} message
|
|
615
|
-
* @param {!jspb.BinaryWriter} writer
|
|
616
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
617
|
-
*/
|
|
618
|
-
proto.trb.strategy.v1.FloatRange.serializeBinaryToWriter = function(message, writer) {
|
|
619
|
-
var f = undefined;
|
|
620
|
-
f = message.getMin();
|
|
621
|
-
if (f !== 0.0) {
|
|
622
|
-
writer.writeDouble(
|
|
623
|
-
1,
|
|
624
|
-
f
|
|
625
|
-
);
|
|
626
|
-
}
|
|
627
|
-
f = message.getMax();
|
|
628
|
-
if (f !== 0.0) {
|
|
629
|
-
writer.writeDouble(
|
|
630
|
-
2,
|
|
631
|
-
f
|
|
632
|
-
);
|
|
633
|
-
}
|
|
634
|
-
f = message.getStep();
|
|
635
|
-
if (f !== 0.0) {
|
|
636
|
-
writer.writeDouble(
|
|
637
|
-
3,
|
|
638
|
-
f
|
|
639
|
-
);
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* optional double min = 1;
|
|
646
|
-
* @return {number}
|
|
647
|
-
*/
|
|
648
|
-
proto.trb.strategy.v1.FloatRange.prototype.getMin = function() {
|
|
649
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* @param {number} value
|
|
655
|
-
* @return {!proto.trb.strategy.v1.FloatRange} returns this
|
|
656
|
-
*/
|
|
657
|
-
proto.trb.strategy.v1.FloatRange.prototype.setMin = function(value) {
|
|
658
|
-
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
659
|
-
};
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* optional double max = 2;
|
|
664
|
-
* @return {number}
|
|
665
|
-
*/
|
|
666
|
-
proto.trb.strategy.v1.FloatRange.prototype.getMax = function() {
|
|
667
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* @param {number} value
|
|
673
|
-
* @return {!proto.trb.strategy.v1.FloatRange} returns this
|
|
674
|
-
*/
|
|
675
|
-
proto.trb.strategy.v1.FloatRange.prototype.setMax = function(value) {
|
|
676
|
-
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* optional double step = 3;
|
|
682
|
-
* @return {number}
|
|
683
|
-
*/
|
|
684
|
-
proto.trb.strategy.v1.FloatRange.prototype.getStep = function() {
|
|
685
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @param {number} value
|
|
691
|
-
* @return {!proto.trb.strategy.v1.FloatRange} returns this
|
|
692
|
-
*/
|
|
693
|
-
proto.trb.strategy.v1.FloatRange.prototype.setStep = function(value) {
|
|
694
|
-
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* List of repeated fields within this message type.
|
|
701
|
-
* @private {!Array<number>}
|
|
702
|
-
* @const
|
|
703
|
-
*/
|
|
704
|
-
proto.trb.strategy.v1.Choice.repeatedFields_ = [1];
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
709
|
-
/**
|
|
710
|
-
* Creates an object representation of this proto.
|
|
711
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
712
|
-
* Optional fields that are not set will be set to undefined.
|
|
713
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
714
|
-
* For the list of reserved names please see:
|
|
715
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
716
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
717
|
-
* JSPB instance for transitional soy proto support:
|
|
718
|
-
* http://goto/soy-param-migration
|
|
719
|
-
* @return {!Object}
|
|
720
|
-
*/
|
|
721
|
-
proto.trb.strategy.v1.Choice.prototype.toObject = function(opt_includeInstance) {
|
|
722
|
-
return proto.trb.strategy.v1.Choice.toObject(opt_includeInstance, this);
|
|
723
|
-
};
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Static version of the {@see toObject} method.
|
|
728
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
729
|
-
* the JSPB instance for transitional soy proto support:
|
|
730
|
-
* http://goto/soy-param-migration
|
|
731
|
-
* @param {!proto.trb.strategy.v1.Choice} msg The msg instance to transform.
|
|
732
|
-
* @return {!Object}
|
|
733
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
734
|
-
*/
|
|
735
|
-
proto.trb.strategy.v1.Choice.toObject = function(includeInstance, msg) {
|
|
736
|
-
var f, obj = {
|
|
737
|
-
valuesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f
|
|
738
|
-
};
|
|
739
|
-
|
|
740
|
-
if (includeInstance) {
|
|
741
|
-
obj.$jspbMessageInstance = msg;
|
|
742
|
-
}
|
|
743
|
-
return obj;
|
|
744
|
-
};
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Deserializes binary data (in protobuf wire format).
|
|
750
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
751
|
-
* @return {!proto.trb.strategy.v1.Choice}
|
|
752
|
-
*/
|
|
753
|
-
proto.trb.strategy.v1.Choice.deserializeBinary = function(bytes) {
|
|
754
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
755
|
-
var msg = new proto.trb.strategy.v1.Choice;
|
|
756
|
-
return proto.trb.strategy.v1.Choice.deserializeBinaryFromReader(msg, reader);
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
762
|
-
* given reader into the given message object.
|
|
763
|
-
* @param {!proto.trb.strategy.v1.Choice} msg The message object to deserialize into.
|
|
764
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
765
|
-
* @return {!proto.trb.strategy.v1.Choice}
|
|
766
|
-
*/
|
|
767
|
-
proto.trb.strategy.v1.Choice.deserializeBinaryFromReader = function(msg, reader) {
|
|
768
|
-
while (reader.nextField()) {
|
|
769
|
-
if (reader.isEndGroup()) {
|
|
770
|
-
break;
|
|
771
|
-
}
|
|
772
|
-
var field = reader.getFieldNumber();
|
|
773
|
-
switch (field) {
|
|
774
|
-
case 1:
|
|
775
|
-
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
|
|
776
|
-
for (var i = 0; i < values.length; i++) {
|
|
777
|
-
msg.addValues(values[i]);
|
|
778
|
-
}
|
|
779
|
-
break;
|
|
780
|
-
default:
|
|
781
|
-
reader.skipField();
|
|
782
|
-
break;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
return msg;
|
|
786
|
-
};
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
/**
|
|
790
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
791
|
-
* @return {!Uint8Array}
|
|
792
|
-
*/
|
|
793
|
-
proto.trb.strategy.v1.Choice.prototype.serializeBinary = function() {
|
|
794
|
-
var writer = new jspb.BinaryWriter();
|
|
795
|
-
proto.trb.strategy.v1.Choice.serializeBinaryToWriter(this, writer);
|
|
796
|
-
return writer.getResultBuffer();
|
|
797
|
-
};
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
802
|
-
* format), writing to the given BinaryWriter.
|
|
803
|
-
* @param {!proto.trb.strategy.v1.Choice} message
|
|
804
|
-
* @param {!jspb.BinaryWriter} writer
|
|
805
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
806
|
-
*/
|
|
807
|
-
proto.trb.strategy.v1.Choice.serializeBinaryToWriter = function(message, writer) {
|
|
808
|
-
var f = undefined;
|
|
809
|
-
f = message.getValuesList();
|
|
810
|
-
if (f.length > 0) {
|
|
811
|
-
writer.writePackedDouble(
|
|
812
|
-
1,
|
|
813
|
-
f
|
|
814
|
-
);
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* repeated double values = 1;
|
|
821
|
-
* @return {!Array<number>}
|
|
822
|
-
*/
|
|
823
|
-
proto.trb.strategy.v1.Choice.prototype.getValuesList = function() {
|
|
824
|
-
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
|
|
825
|
-
};
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* @param {!Array<number>} value
|
|
830
|
-
* @return {!proto.trb.strategy.v1.Choice} returns this
|
|
831
|
-
*/
|
|
832
|
-
proto.trb.strategy.v1.Choice.prototype.setValuesList = function(value) {
|
|
833
|
-
return jspb.Message.setField(this, 1, value || []);
|
|
834
|
-
};
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* @param {number} value
|
|
839
|
-
* @param {number=} opt_index
|
|
840
|
-
* @return {!proto.trb.strategy.v1.Choice} returns this
|
|
841
|
-
*/
|
|
842
|
-
proto.trb.strategy.v1.Choice.prototype.addValues = function(value, opt_index) {
|
|
843
|
-
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
844
|
-
};
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* Clears the list making it empty but non-null.
|
|
849
|
-
* @return {!proto.trb.strategy.v1.Choice} returns this
|
|
850
|
-
*/
|
|
851
|
-
proto.trb.strategy.v1.Choice.prototype.clearValuesList = function() {
|
|
852
|
-
return this.setValuesList([]);
|
|
853
|
-
};
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
859
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
860
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
861
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
862
|
-
* @private {!Array<!Array<number>>}
|
|
863
|
-
* @const
|
|
864
|
-
*/
|
|
865
|
-
proto.trb.strategy.v1.ParamRange.oneofGroups_ = [[2,3,4]];
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* @enum {number}
|
|
869
|
-
*/
|
|
870
|
-
proto.trb.strategy.v1.ParamRange.RangeCase = {
|
|
871
|
-
RANGE_NOT_SET: 0,
|
|
872
|
-
INTS: 2,
|
|
873
|
-
FLOATS: 3,
|
|
874
|
-
CHOICE: 4
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* @return {proto.trb.strategy.v1.ParamRange.RangeCase}
|
|
879
|
-
*/
|
|
880
|
-
proto.trb.strategy.v1.ParamRange.prototype.getRangeCase = function() {
|
|
881
|
-
return /** @type {proto.trb.strategy.v1.ParamRange.RangeCase} */(jspb.Message.computeOneofCase(this, proto.trb.strategy.v1.ParamRange.oneofGroups_[0]));
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
887
|
-
/**
|
|
888
|
-
* Creates an object representation of this proto.
|
|
889
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
890
|
-
* Optional fields that are not set will be set to undefined.
|
|
891
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
892
|
-
* For the list of reserved names please see:
|
|
893
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
894
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
895
|
-
* JSPB instance for transitional soy proto support:
|
|
896
|
-
* http://goto/soy-param-migration
|
|
897
|
-
* @return {!Object}
|
|
898
|
-
*/
|
|
899
|
-
proto.trb.strategy.v1.ParamRange.prototype.toObject = function(opt_includeInstance) {
|
|
900
|
-
return proto.trb.strategy.v1.ParamRange.toObject(opt_includeInstance, this);
|
|
901
|
-
};
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
/**
|
|
905
|
-
* Static version of the {@see toObject} method.
|
|
906
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
907
|
-
* the JSPB instance for transitional soy proto support:
|
|
908
|
-
* http://goto/soy-param-migration
|
|
909
|
-
* @param {!proto.trb.strategy.v1.ParamRange} msg The msg instance to transform.
|
|
910
|
-
* @return {!Object}
|
|
911
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
912
|
-
*/
|
|
913
|
-
proto.trb.strategy.v1.ParamRange.toObject = function(includeInstance, msg) {
|
|
914
|
-
var f, obj = {
|
|
915
|
-
path: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
916
|
-
ints: (f = msg.getInts()) && proto.trb.strategy.v1.IntRange.toObject(includeInstance, f),
|
|
917
|
-
floats: (f = msg.getFloats()) && proto.trb.strategy.v1.FloatRange.toObject(includeInstance, f),
|
|
918
|
-
choice: (f = msg.getChoice()) && proto.trb.strategy.v1.Choice.toObject(includeInstance, f)
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
if (includeInstance) {
|
|
922
|
-
obj.$jspbMessageInstance = msg;
|
|
923
|
-
}
|
|
924
|
-
return obj;
|
|
925
|
-
};
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
/**
|
|
930
|
-
* Deserializes binary data (in protobuf wire format).
|
|
931
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
932
|
-
* @return {!proto.trb.strategy.v1.ParamRange}
|
|
933
|
-
*/
|
|
934
|
-
proto.trb.strategy.v1.ParamRange.deserializeBinary = function(bytes) {
|
|
935
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
936
|
-
var msg = new proto.trb.strategy.v1.ParamRange;
|
|
937
|
-
return proto.trb.strategy.v1.ParamRange.deserializeBinaryFromReader(msg, reader);
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
943
|
-
* given reader into the given message object.
|
|
944
|
-
* @param {!proto.trb.strategy.v1.ParamRange} msg The message object to deserialize into.
|
|
945
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
946
|
-
* @return {!proto.trb.strategy.v1.ParamRange}
|
|
947
|
-
*/
|
|
948
|
-
proto.trb.strategy.v1.ParamRange.deserializeBinaryFromReader = function(msg, reader) {
|
|
949
|
-
while (reader.nextField()) {
|
|
950
|
-
if (reader.isEndGroup()) {
|
|
951
|
-
break;
|
|
952
|
-
}
|
|
953
|
-
var field = reader.getFieldNumber();
|
|
954
|
-
switch (field) {
|
|
955
|
-
case 1:
|
|
956
|
-
var value = /** @type {string} */ (reader.readString());
|
|
957
|
-
msg.setPath(value);
|
|
958
|
-
break;
|
|
959
|
-
case 2:
|
|
960
|
-
var value = new proto.trb.strategy.v1.IntRange;
|
|
961
|
-
reader.readMessage(value,proto.trb.strategy.v1.IntRange.deserializeBinaryFromReader);
|
|
962
|
-
msg.setInts(value);
|
|
963
|
-
break;
|
|
964
|
-
case 3:
|
|
965
|
-
var value = new proto.trb.strategy.v1.FloatRange;
|
|
966
|
-
reader.readMessage(value,proto.trb.strategy.v1.FloatRange.deserializeBinaryFromReader);
|
|
967
|
-
msg.setFloats(value);
|
|
968
|
-
break;
|
|
969
|
-
case 4:
|
|
970
|
-
var value = new proto.trb.strategy.v1.Choice;
|
|
971
|
-
reader.readMessage(value,proto.trb.strategy.v1.Choice.deserializeBinaryFromReader);
|
|
972
|
-
msg.setChoice(value);
|
|
973
|
-
break;
|
|
974
|
-
default:
|
|
975
|
-
reader.skipField();
|
|
976
|
-
break;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
return msg;
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
/**
|
|
984
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
985
|
-
* @return {!Uint8Array}
|
|
986
|
-
*/
|
|
987
|
-
proto.trb.strategy.v1.ParamRange.prototype.serializeBinary = function() {
|
|
988
|
-
var writer = new jspb.BinaryWriter();
|
|
989
|
-
proto.trb.strategy.v1.ParamRange.serializeBinaryToWriter(this, writer);
|
|
990
|
-
return writer.getResultBuffer();
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
/**
|
|
995
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
996
|
-
* format), writing to the given BinaryWriter.
|
|
997
|
-
* @param {!proto.trb.strategy.v1.ParamRange} message
|
|
998
|
-
* @param {!jspb.BinaryWriter} writer
|
|
999
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1000
|
-
*/
|
|
1001
|
-
proto.trb.strategy.v1.ParamRange.serializeBinaryToWriter = function(message, writer) {
|
|
1002
|
-
var f = undefined;
|
|
1003
|
-
f = message.getPath();
|
|
1004
|
-
if (f.length > 0) {
|
|
1005
|
-
writer.writeString(
|
|
1006
|
-
1,
|
|
1007
|
-
f
|
|
1008
|
-
);
|
|
1009
|
-
}
|
|
1010
|
-
f = message.getInts();
|
|
1011
|
-
if (f != null) {
|
|
1012
|
-
writer.writeMessage(
|
|
1013
|
-
2,
|
|
1014
|
-
f,
|
|
1015
|
-
proto.trb.strategy.v1.IntRange.serializeBinaryToWriter
|
|
1016
|
-
);
|
|
1017
|
-
}
|
|
1018
|
-
f = message.getFloats();
|
|
1019
|
-
if (f != null) {
|
|
1020
|
-
writer.writeMessage(
|
|
1021
|
-
3,
|
|
1022
|
-
f,
|
|
1023
|
-
proto.trb.strategy.v1.FloatRange.serializeBinaryToWriter
|
|
1024
|
-
);
|
|
1025
|
-
}
|
|
1026
|
-
f = message.getChoice();
|
|
1027
|
-
if (f != null) {
|
|
1028
|
-
writer.writeMessage(
|
|
1029
|
-
4,
|
|
1030
|
-
f,
|
|
1031
|
-
proto.trb.strategy.v1.Choice.serializeBinaryToWriter
|
|
1032
|
-
);
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* optional string path = 1;
|
|
1039
|
-
* @return {string}
|
|
1040
|
-
*/
|
|
1041
|
-
proto.trb.strategy.v1.ParamRange.prototype.getPath = function() {
|
|
1042
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1043
|
-
};
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
* @param {string} value
|
|
1048
|
-
* @return {!proto.trb.strategy.v1.ParamRange} returns this
|
|
1049
|
-
*/
|
|
1050
|
-
proto.trb.strategy.v1.ParamRange.prototype.setPath = function(value) {
|
|
1051
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
/**
|
|
1056
|
-
* optional IntRange ints = 2;
|
|
1057
|
-
* @return {?proto.trb.strategy.v1.IntRange}
|
|
1058
|
-
*/
|
|
1059
|
-
proto.trb.strategy.v1.ParamRange.prototype.getInts = function() {
|
|
1060
|
-
return /** @type{?proto.trb.strategy.v1.IntRange} */ (
|
|
1061
|
-
jspb.Message.getWrapperField(this, proto.trb.strategy.v1.IntRange, 2));
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
/**
|
|
1066
|
-
* @param {?proto.trb.strategy.v1.IntRange|undefined} value
|
|
1067
|
-
* @return {!proto.trb.strategy.v1.ParamRange} returns this
|
|
1068
|
-
*/
|
|
1069
|
-
proto.trb.strategy.v1.ParamRange.prototype.setInts = function(value) {
|
|
1070
|
-
return jspb.Message.setOneofWrapperField(this, 2, proto.trb.strategy.v1.ParamRange.oneofGroups_[0], value);
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
/**
|
|
1075
|
-
* Clears the message field making it undefined.
|
|
1076
|
-
* @return {!proto.trb.strategy.v1.ParamRange} returns this
|
|
1077
|
-
*/
|
|
1078
|
-
proto.trb.strategy.v1.ParamRange.prototype.clearInts = function() {
|
|
1079
|
-
return this.setInts(undefined);
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
/**
|
|
1084
|
-
* Returns whether this field is set.
|
|
1085
|
-
* @return {boolean}
|
|
1086
|
-
*/
|
|
1087
|
-
proto.trb.strategy.v1.ParamRange.prototype.hasInts = function() {
|
|
1088
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1089
|
-
};
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* optional FloatRange floats = 3;
|
|
1094
|
-
* @return {?proto.trb.strategy.v1.FloatRange}
|
|
1095
|
-
*/
|
|
1096
|
-
proto.trb.strategy.v1.ParamRange.prototype.getFloats = function() {
|
|
1097
|
-
return /** @type{?proto.trb.strategy.v1.FloatRange} */ (
|
|
1098
|
-
jspb.Message.getWrapperField(this, proto.trb.strategy.v1.FloatRange, 3));
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* @param {?proto.trb.strategy.v1.FloatRange|undefined} value
|
|
1104
|
-
* @return {!proto.trb.strategy.v1.ParamRange} returns this
|
|
1105
|
-
*/
|
|
1106
|
-
proto.trb.strategy.v1.ParamRange.prototype.setFloats = function(value) {
|
|
1107
|
-
return jspb.Message.setOneofWrapperField(this, 3, proto.trb.strategy.v1.ParamRange.oneofGroups_[0], value);
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* Clears the message field making it undefined.
|
|
1113
|
-
* @return {!proto.trb.strategy.v1.ParamRange} returns this
|
|
1114
|
-
*/
|
|
1115
|
-
proto.trb.strategy.v1.ParamRange.prototype.clearFloats = function() {
|
|
1116
|
-
return this.setFloats(undefined);
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
* Returns whether this field is set.
|
|
1122
|
-
* @return {boolean}
|
|
1123
|
-
*/
|
|
1124
|
-
proto.trb.strategy.v1.ParamRange.prototype.hasFloats = function() {
|
|
1125
|
-
return jspb.Message.getField(this, 3) != null;
|
|
1126
|
-
};
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* optional Choice choice = 4;
|
|
1131
|
-
* @return {?proto.trb.strategy.v1.Choice}
|
|
1132
|
-
*/
|
|
1133
|
-
proto.trb.strategy.v1.ParamRange.prototype.getChoice = function() {
|
|
1134
|
-
return /** @type{?proto.trb.strategy.v1.Choice} */ (
|
|
1135
|
-
jspb.Message.getWrapperField(this, proto.trb.strategy.v1.Choice, 4));
|
|
1136
|
-
};
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
* @param {?proto.trb.strategy.v1.Choice|undefined} value
|
|
1141
|
-
* @return {!proto.trb.strategy.v1.ParamRange} returns this
|
|
1142
|
-
*/
|
|
1143
|
-
proto.trb.strategy.v1.ParamRange.prototype.setChoice = function(value) {
|
|
1144
|
-
return jspb.Message.setOneofWrapperField(this, 4, proto.trb.strategy.v1.ParamRange.oneofGroups_[0], value);
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Clears the message field making it undefined.
|
|
1150
|
-
* @return {!proto.trb.strategy.v1.ParamRange} returns this
|
|
1151
|
-
*/
|
|
1152
|
-
proto.trb.strategy.v1.ParamRange.prototype.clearChoice = function() {
|
|
1153
|
-
return this.setChoice(undefined);
|
|
1154
|
-
};
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* Returns whether this field is set.
|
|
1159
|
-
* @return {boolean}
|
|
1160
|
-
*/
|
|
1161
|
-
proto.trb.strategy.v1.ParamRange.prototype.hasChoice = function() {
|
|
1162
|
-
return jspb.Message.getField(this, 4) != null;
|
|
1163
|
-
};
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
/**
|
|
1168
|
-
* List of repeated fields within this message type.
|
|
1169
|
-
* @private {!Array<number>}
|
|
1170
|
-
* @const
|
|
1171
|
-
*/
|
|
1172
|
-
proto.trb.strategy.v1.StructureSpace.repeatedFields_ = [1,4];
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1177
|
-
/**
|
|
1178
|
-
* Creates an object representation of this proto.
|
|
1179
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1180
|
-
* Optional fields that are not set will be set to undefined.
|
|
1181
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1182
|
-
* For the list of reserved names please see:
|
|
1183
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1184
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1185
|
-
* JSPB instance for transitional soy proto support:
|
|
1186
|
-
* http://goto/soy-param-migration
|
|
1187
|
-
* @return {!Object}
|
|
1188
|
-
*/
|
|
1189
|
-
proto.trb.strategy.v1.StructureSpace.prototype.toObject = function(opt_includeInstance) {
|
|
1190
|
-
return proto.trb.strategy.v1.StructureSpace.toObject(opt_includeInstance, this);
|
|
1191
|
-
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* Static version of the {@see toObject} method.
|
|
1196
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1197
|
-
* the JSPB instance for transitional soy proto support:
|
|
1198
|
-
* http://goto/soy-param-migration
|
|
1199
|
-
* @param {!proto.trb.strategy.v1.StructureSpace} msg The msg instance to transform.
|
|
1200
|
-
* @return {!Object}
|
|
1201
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1202
|
-
*/
|
|
1203
|
-
proto.trb.strategy.v1.StructureSpace.toObject = function(includeInstance, msg) {
|
|
1204
|
-
var f, obj = {
|
|
1205
|
-
indicatorPaletteList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1206
|
-
maxConditions: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1207
|
-
maxDepth: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1208
|
-
allowedOpsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
1209
|
-
mutateStructure: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
1210
|
-
};
|
|
1211
|
-
|
|
1212
|
-
if (includeInstance) {
|
|
1213
|
-
obj.$jspbMessageInstance = msg;
|
|
1214
|
-
}
|
|
1215
|
-
return obj;
|
|
1216
|
-
};
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1222
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1223
|
-
* @return {!proto.trb.strategy.v1.StructureSpace}
|
|
1224
|
-
*/
|
|
1225
|
-
proto.trb.strategy.v1.StructureSpace.deserializeBinary = function(bytes) {
|
|
1226
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1227
|
-
var msg = new proto.trb.strategy.v1.StructureSpace;
|
|
1228
|
-
return proto.trb.strategy.v1.StructureSpace.deserializeBinaryFromReader(msg, reader);
|
|
1229
|
-
};
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
/**
|
|
1233
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1234
|
-
* given reader into the given message object.
|
|
1235
|
-
* @param {!proto.trb.strategy.v1.StructureSpace} msg The message object to deserialize into.
|
|
1236
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1237
|
-
* @return {!proto.trb.strategy.v1.StructureSpace}
|
|
1238
|
-
*/
|
|
1239
|
-
proto.trb.strategy.v1.StructureSpace.deserializeBinaryFromReader = function(msg, reader) {
|
|
1240
|
-
while (reader.nextField()) {
|
|
1241
|
-
if (reader.isEndGroup()) {
|
|
1242
|
-
break;
|
|
1243
|
-
}
|
|
1244
|
-
var field = reader.getFieldNumber();
|
|
1245
|
-
switch (field) {
|
|
1246
|
-
case 1:
|
|
1247
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1248
|
-
msg.addIndicatorPalette(value);
|
|
1249
|
-
break;
|
|
1250
|
-
case 2:
|
|
1251
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1252
|
-
msg.setMaxConditions(value);
|
|
1253
|
-
break;
|
|
1254
|
-
case 3:
|
|
1255
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1256
|
-
msg.setMaxDepth(value);
|
|
1257
|
-
break;
|
|
1258
|
-
case 4:
|
|
1259
|
-
var values = /** @type {!Array<!proto.trb.strategy.v1.CompareOp>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
1260
|
-
for (var i = 0; i < values.length; i++) {
|
|
1261
|
-
msg.addAllowedOps(values[i]);
|
|
1262
|
-
}
|
|
1263
|
-
break;
|
|
1264
|
-
case 5:
|
|
1265
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1266
|
-
msg.setMutateStructure(value);
|
|
1267
|
-
break;
|
|
1268
|
-
default:
|
|
1269
|
-
reader.skipField();
|
|
1270
|
-
break;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
return msg;
|
|
1274
|
-
};
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
/**
|
|
1278
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1279
|
-
* @return {!Uint8Array}
|
|
1280
|
-
*/
|
|
1281
|
-
proto.trb.strategy.v1.StructureSpace.prototype.serializeBinary = function() {
|
|
1282
|
-
var writer = new jspb.BinaryWriter();
|
|
1283
|
-
proto.trb.strategy.v1.StructureSpace.serializeBinaryToWriter(this, writer);
|
|
1284
|
-
return writer.getResultBuffer();
|
|
1285
|
-
};
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
/**
|
|
1289
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1290
|
-
* format), writing to the given BinaryWriter.
|
|
1291
|
-
* @param {!proto.trb.strategy.v1.StructureSpace} message
|
|
1292
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1293
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1294
|
-
*/
|
|
1295
|
-
proto.trb.strategy.v1.StructureSpace.serializeBinaryToWriter = function(message, writer) {
|
|
1296
|
-
var f = undefined;
|
|
1297
|
-
f = message.getIndicatorPaletteList();
|
|
1298
|
-
if (f.length > 0) {
|
|
1299
|
-
writer.writeRepeatedString(
|
|
1300
|
-
1,
|
|
1301
|
-
f
|
|
1302
|
-
);
|
|
1303
|
-
}
|
|
1304
|
-
f = message.getMaxConditions();
|
|
1305
|
-
if (f !== 0) {
|
|
1306
|
-
writer.writeUint32(
|
|
1307
|
-
2,
|
|
1308
|
-
f
|
|
1309
|
-
);
|
|
1310
|
-
}
|
|
1311
|
-
f = message.getMaxDepth();
|
|
1312
|
-
if (f !== 0) {
|
|
1313
|
-
writer.writeUint32(
|
|
1314
|
-
3,
|
|
1315
|
-
f
|
|
1316
|
-
);
|
|
1317
|
-
}
|
|
1318
|
-
f = message.getAllowedOpsList();
|
|
1319
|
-
if (f.length > 0) {
|
|
1320
|
-
writer.writePackedEnum(
|
|
1321
|
-
4,
|
|
1322
|
-
f
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
f = message.getMutateStructure();
|
|
1326
|
-
if (f) {
|
|
1327
|
-
writer.writeBool(
|
|
1328
|
-
5,
|
|
1329
|
-
f
|
|
1330
|
-
);
|
|
1331
|
-
}
|
|
1332
|
-
};
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* repeated string indicator_palette = 1;
|
|
1337
|
-
* @return {!Array<string>}
|
|
1338
|
-
*/
|
|
1339
|
-
proto.trb.strategy.v1.StructureSpace.prototype.getIndicatorPaletteList = function() {
|
|
1340
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1341
|
-
};
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* @param {!Array<string>} value
|
|
1346
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1347
|
-
*/
|
|
1348
|
-
proto.trb.strategy.v1.StructureSpace.prototype.setIndicatorPaletteList = function(value) {
|
|
1349
|
-
return jspb.Message.setField(this, 1, value || []);
|
|
1350
|
-
};
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* @param {string} value
|
|
1355
|
-
* @param {number=} opt_index
|
|
1356
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1357
|
-
*/
|
|
1358
|
-
proto.trb.strategy.v1.StructureSpace.prototype.addIndicatorPalette = function(value, opt_index) {
|
|
1359
|
-
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1360
|
-
};
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
/**
|
|
1364
|
-
* Clears the list making it empty but non-null.
|
|
1365
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1366
|
-
*/
|
|
1367
|
-
proto.trb.strategy.v1.StructureSpace.prototype.clearIndicatorPaletteList = function() {
|
|
1368
|
-
return this.setIndicatorPaletteList([]);
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* optional uint32 max_conditions = 2;
|
|
1374
|
-
* @return {number}
|
|
1375
|
-
*/
|
|
1376
|
-
proto.trb.strategy.v1.StructureSpace.prototype.getMaxConditions = function() {
|
|
1377
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1378
|
-
};
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* @param {number} value
|
|
1383
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1384
|
-
*/
|
|
1385
|
-
proto.trb.strategy.v1.StructureSpace.prototype.setMaxConditions = function(value) {
|
|
1386
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1387
|
-
};
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
/**
|
|
1391
|
-
* optional uint32 max_depth = 3;
|
|
1392
|
-
* @return {number}
|
|
1393
|
-
*/
|
|
1394
|
-
proto.trb.strategy.v1.StructureSpace.prototype.getMaxDepth = function() {
|
|
1395
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1396
|
-
};
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* @param {number} value
|
|
1401
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1402
|
-
*/
|
|
1403
|
-
proto.trb.strategy.v1.StructureSpace.prototype.setMaxDepth = function(value) {
|
|
1404
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1405
|
-
};
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
/**
|
|
1409
|
-
* repeated CompareOp allowed_ops = 4;
|
|
1410
|
-
* @return {!Array<!proto.trb.strategy.v1.CompareOp>}
|
|
1411
|
-
*/
|
|
1412
|
-
proto.trb.strategy.v1.StructureSpace.prototype.getAllowedOpsList = function() {
|
|
1413
|
-
return /** @type {!Array<!proto.trb.strategy.v1.CompareOp>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
1414
|
-
};
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* @param {!Array<!proto.trb.strategy.v1.CompareOp>} value
|
|
1419
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1420
|
-
*/
|
|
1421
|
-
proto.trb.strategy.v1.StructureSpace.prototype.setAllowedOpsList = function(value) {
|
|
1422
|
-
return jspb.Message.setField(this, 4, value || []);
|
|
1423
|
-
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
/**
|
|
1427
|
-
* @param {!proto.trb.strategy.v1.CompareOp} value
|
|
1428
|
-
* @param {number=} opt_index
|
|
1429
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1430
|
-
*/
|
|
1431
|
-
proto.trb.strategy.v1.StructureSpace.prototype.addAllowedOps = function(value, opt_index) {
|
|
1432
|
-
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
1433
|
-
};
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* Clears the list making it empty but non-null.
|
|
1438
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1439
|
-
*/
|
|
1440
|
-
proto.trb.strategy.v1.StructureSpace.prototype.clearAllowedOpsList = function() {
|
|
1441
|
-
return this.setAllowedOpsList([]);
|
|
1442
|
-
};
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
* optional bool mutate_structure = 5;
|
|
1447
|
-
* @return {boolean}
|
|
1448
|
-
*/
|
|
1449
|
-
proto.trb.strategy.v1.StructureSpace.prototype.getMutateStructure = function() {
|
|
1450
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
1451
|
-
};
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
/**
|
|
1455
|
-
* @param {boolean} value
|
|
1456
|
-
* @return {!proto.trb.strategy.v1.StructureSpace} returns this
|
|
1457
|
-
*/
|
|
1458
|
-
proto.trb.strategy.v1.StructureSpace.prototype.setMutateStructure = function(value) {
|
|
1459
|
-
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
1460
|
-
};
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1467
|
-
/**
|
|
1468
|
-
* Creates an object representation of this proto.
|
|
1469
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1470
|
-
* Optional fields that are not set will be set to undefined.
|
|
1471
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1472
|
-
* For the list of reserved names please see:
|
|
1473
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1474
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1475
|
-
* JSPB instance for transitional soy proto support:
|
|
1476
|
-
* http://goto/soy-param-migration
|
|
1477
|
-
* @return {!Object}
|
|
1478
|
-
*/
|
|
1479
|
-
proto.trb.strategy.v1.Objective.prototype.toObject = function(opt_includeInstance) {
|
|
1480
|
-
return proto.trb.strategy.v1.Objective.toObject(opt_includeInstance, this);
|
|
1481
|
-
};
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* Static version of the {@see toObject} method.
|
|
1486
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1487
|
-
* the JSPB instance for transitional soy proto support:
|
|
1488
|
-
* http://goto/soy-param-migration
|
|
1489
|
-
* @param {!proto.trb.strategy.v1.Objective} msg The msg instance to transform.
|
|
1490
|
-
* @return {!Object}
|
|
1491
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1492
|
-
*/
|
|
1493
|
-
proto.trb.strategy.v1.Objective.toObject = function(includeInstance, msg) {
|
|
1494
|
-
var f, obj = {
|
|
1495
|
-
metric: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1496
|
-
maximize: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
1497
|
-
minTrades: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1498
|
-
maxDrawdownLimit: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
|
|
1499
|
-
};
|
|
1500
|
-
|
|
1501
|
-
if (includeInstance) {
|
|
1502
|
-
obj.$jspbMessageInstance = msg;
|
|
1503
|
-
}
|
|
1504
|
-
return obj;
|
|
1505
|
-
};
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
/**
|
|
1510
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1511
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1512
|
-
* @return {!proto.trb.strategy.v1.Objective}
|
|
1513
|
-
*/
|
|
1514
|
-
proto.trb.strategy.v1.Objective.deserializeBinary = function(bytes) {
|
|
1515
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1516
|
-
var msg = new proto.trb.strategy.v1.Objective;
|
|
1517
|
-
return proto.trb.strategy.v1.Objective.deserializeBinaryFromReader(msg, reader);
|
|
1518
|
-
};
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1523
|
-
* given reader into the given message object.
|
|
1524
|
-
* @param {!proto.trb.strategy.v1.Objective} msg The message object to deserialize into.
|
|
1525
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1526
|
-
* @return {!proto.trb.strategy.v1.Objective}
|
|
1527
|
-
*/
|
|
1528
|
-
proto.trb.strategy.v1.Objective.deserializeBinaryFromReader = function(msg, reader) {
|
|
1529
|
-
while (reader.nextField()) {
|
|
1530
|
-
if (reader.isEndGroup()) {
|
|
1531
|
-
break;
|
|
1532
|
-
}
|
|
1533
|
-
var field = reader.getFieldNumber();
|
|
1534
|
-
switch (field) {
|
|
1535
|
-
case 1:
|
|
1536
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1537
|
-
msg.setMetric(value);
|
|
1538
|
-
break;
|
|
1539
|
-
case 2:
|
|
1540
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1541
|
-
msg.setMaximize(value);
|
|
1542
|
-
break;
|
|
1543
|
-
case 3:
|
|
1544
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1545
|
-
msg.setMinTrades(value);
|
|
1546
|
-
break;
|
|
1547
|
-
case 4:
|
|
1548
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
1549
|
-
msg.setMaxDrawdownLimit(value);
|
|
1550
|
-
break;
|
|
1551
|
-
default:
|
|
1552
|
-
reader.skipField();
|
|
1553
|
-
break;
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
return msg;
|
|
1557
|
-
};
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1562
|
-
* @return {!Uint8Array}
|
|
1563
|
-
*/
|
|
1564
|
-
proto.trb.strategy.v1.Objective.prototype.serializeBinary = function() {
|
|
1565
|
-
var writer = new jspb.BinaryWriter();
|
|
1566
|
-
proto.trb.strategy.v1.Objective.serializeBinaryToWriter(this, writer);
|
|
1567
|
-
return writer.getResultBuffer();
|
|
1568
|
-
};
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
/**
|
|
1572
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1573
|
-
* format), writing to the given BinaryWriter.
|
|
1574
|
-
* @param {!proto.trb.strategy.v1.Objective} message
|
|
1575
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1576
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1577
|
-
*/
|
|
1578
|
-
proto.trb.strategy.v1.Objective.serializeBinaryToWriter = function(message, writer) {
|
|
1579
|
-
var f = undefined;
|
|
1580
|
-
f = message.getMetric();
|
|
1581
|
-
if (f.length > 0) {
|
|
1582
|
-
writer.writeString(
|
|
1583
|
-
1,
|
|
1584
|
-
f
|
|
1585
|
-
);
|
|
1586
|
-
}
|
|
1587
|
-
f = message.getMaximize();
|
|
1588
|
-
if (f) {
|
|
1589
|
-
writer.writeBool(
|
|
1590
|
-
2,
|
|
1591
|
-
f
|
|
1592
|
-
);
|
|
1593
|
-
}
|
|
1594
|
-
f = message.getMinTrades();
|
|
1595
|
-
if (f !== 0) {
|
|
1596
|
-
writer.writeUint32(
|
|
1597
|
-
3,
|
|
1598
|
-
f
|
|
1599
|
-
);
|
|
1600
|
-
}
|
|
1601
|
-
f = message.getMaxDrawdownLimit();
|
|
1602
|
-
if (f !== 0.0) {
|
|
1603
|
-
writer.writeDouble(
|
|
1604
|
-
4,
|
|
1605
|
-
f
|
|
1606
|
-
);
|
|
1607
|
-
}
|
|
1608
|
-
};
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
/**
|
|
1612
|
-
* optional string metric = 1;
|
|
1613
|
-
* @return {string}
|
|
1614
|
-
*/
|
|
1615
|
-
proto.trb.strategy.v1.Objective.prototype.getMetric = function() {
|
|
1616
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1617
|
-
};
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
/**
|
|
1621
|
-
* @param {string} value
|
|
1622
|
-
* @return {!proto.trb.strategy.v1.Objective} returns this
|
|
1623
|
-
*/
|
|
1624
|
-
proto.trb.strategy.v1.Objective.prototype.setMetric = function(value) {
|
|
1625
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1626
|
-
};
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
/**
|
|
1630
|
-
* optional bool maximize = 2;
|
|
1631
|
-
* @return {boolean}
|
|
1632
|
-
*/
|
|
1633
|
-
proto.trb.strategy.v1.Objective.prototype.getMaximize = function() {
|
|
1634
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
1635
|
-
};
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
/**
|
|
1639
|
-
* @param {boolean} value
|
|
1640
|
-
* @return {!proto.trb.strategy.v1.Objective} returns this
|
|
1641
|
-
*/
|
|
1642
|
-
proto.trb.strategy.v1.Objective.prototype.setMaximize = function(value) {
|
|
1643
|
-
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
1644
|
-
};
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* optional uint32 min_trades = 3;
|
|
1649
|
-
* @return {number}
|
|
1650
|
-
*/
|
|
1651
|
-
proto.trb.strategy.v1.Objective.prototype.getMinTrades = function() {
|
|
1652
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
/**
|
|
1657
|
-
* @param {number} value
|
|
1658
|
-
* @return {!proto.trb.strategy.v1.Objective} returns this
|
|
1659
|
-
*/
|
|
1660
|
-
proto.trb.strategy.v1.Objective.prototype.setMinTrades = function(value) {
|
|
1661
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1662
|
-
};
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
/**
|
|
1666
|
-
* optional double max_drawdown_limit = 4;
|
|
1667
|
-
* @return {number}
|
|
1668
|
-
*/
|
|
1669
|
-
proto.trb.strategy.v1.Objective.prototype.getMaxDrawdownLimit = function() {
|
|
1670
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
1671
|
-
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
/**
|
|
1675
|
-
* @param {number} value
|
|
1676
|
-
* @return {!proto.trb.strategy.v1.Objective} returns this
|
|
1677
|
-
*/
|
|
1678
|
-
proto.trb.strategy.v1.Objective.prototype.setMaxDrawdownLimit = function(value) {
|
|
1679
|
-
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
1680
|
-
};
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1687
|
-
/**
|
|
1688
|
-
* Creates an object representation of this proto.
|
|
1689
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1690
|
-
* Optional fields that are not set will be set to undefined.
|
|
1691
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1692
|
-
* For the list of reserved names please see:
|
|
1693
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1694
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1695
|
-
* JSPB instance for transitional soy proto support:
|
|
1696
|
-
* http://goto/soy-param-migration
|
|
1697
|
-
* @return {!Object}
|
|
1698
|
-
*/
|
|
1699
|
-
proto.trb.strategy.v1.SearchBudget.prototype.toObject = function(opt_includeInstance) {
|
|
1700
|
-
return proto.trb.strategy.v1.SearchBudget.toObject(opt_includeInstance, this);
|
|
1701
|
-
};
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* Static version of the {@see toObject} method.
|
|
1706
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1707
|
-
* the JSPB instance for transitional soy proto support:
|
|
1708
|
-
* http://goto/soy-param-migration
|
|
1709
|
-
* @param {!proto.trb.strategy.v1.SearchBudget} msg The msg instance to transform.
|
|
1710
|
-
* @return {!Object}
|
|
1711
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1712
|
-
*/
|
|
1713
|
-
proto.trb.strategy.v1.SearchBudget.toObject = function(includeInstance, msg) {
|
|
1714
|
-
var f, obj = {
|
|
1715
|
-
maxEvaluations: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1716
|
-
maxSeconds: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1717
|
-
concurrency: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1718
|
-
population: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
1719
|
-
generations: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
1720
|
-
seed: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
1721
|
-
halvingEta: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
1722
|
-
lowFidelityFrac: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
|
|
1723
|
-
disableCache: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
|
|
1724
|
-
};
|
|
1725
|
-
|
|
1726
|
-
if (includeInstance) {
|
|
1727
|
-
obj.$jspbMessageInstance = msg;
|
|
1728
|
-
}
|
|
1729
|
-
return obj;
|
|
1730
|
-
};
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
/**
|
|
1735
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1736
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1737
|
-
* @return {!proto.trb.strategy.v1.SearchBudget}
|
|
1738
|
-
*/
|
|
1739
|
-
proto.trb.strategy.v1.SearchBudget.deserializeBinary = function(bytes) {
|
|
1740
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1741
|
-
var msg = new proto.trb.strategy.v1.SearchBudget;
|
|
1742
|
-
return proto.trb.strategy.v1.SearchBudget.deserializeBinaryFromReader(msg, reader);
|
|
1743
|
-
};
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
/**
|
|
1747
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1748
|
-
* given reader into the given message object.
|
|
1749
|
-
* @param {!proto.trb.strategy.v1.SearchBudget} msg The message object to deserialize into.
|
|
1750
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1751
|
-
* @return {!proto.trb.strategy.v1.SearchBudget}
|
|
1752
|
-
*/
|
|
1753
|
-
proto.trb.strategy.v1.SearchBudget.deserializeBinaryFromReader = function(msg, reader) {
|
|
1754
|
-
while (reader.nextField()) {
|
|
1755
|
-
if (reader.isEndGroup()) {
|
|
1756
|
-
break;
|
|
1757
|
-
}
|
|
1758
|
-
var field = reader.getFieldNumber();
|
|
1759
|
-
switch (field) {
|
|
1760
|
-
case 1:
|
|
1761
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1762
|
-
msg.setMaxEvaluations(value);
|
|
1763
|
-
break;
|
|
1764
|
-
case 2:
|
|
1765
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1766
|
-
msg.setMaxSeconds(value);
|
|
1767
|
-
break;
|
|
1768
|
-
case 3:
|
|
1769
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1770
|
-
msg.setConcurrency(value);
|
|
1771
|
-
break;
|
|
1772
|
-
case 4:
|
|
1773
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1774
|
-
msg.setPopulation(value);
|
|
1775
|
-
break;
|
|
1776
|
-
case 5:
|
|
1777
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1778
|
-
msg.setGenerations(value);
|
|
1779
|
-
break;
|
|
1780
|
-
case 6:
|
|
1781
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
1782
|
-
msg.setSeed(value);
|
|
1783
|
-
break;
|
|
1784
|
-
case 7:
|
|
1785
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1786
|
-
msg.setHalvingEta(value);
|
|
1787
|
-
break;
|
|
1788
|
-
case 8:
|
|
1789
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
1790
|
-
msg.setLowFidelityFrac(value);
|
|
1791
|
-
break;
|
|
1792
|
-
case 9:
|
|
1793
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1794
|
-
msg.setDisableCache(value);
|
|
1795
|
-
break;
|
|
1796
|
-
default:
|
|
1797
|
-
reader.skipField();
|
|
1798
|
-
break;
|
|
1799
|
-
}
|
|
1800
|
-
}
|
|
1801
|
-
return msg;
|
|
1802
|
-
};
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
/**
|
|
1806
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1807
|
-
* @return {!Uint8Array}
|
|
1808
|
-
*/
|
|
1809
|
-
proto.trb.strategy.v1.SearchBudget.prototype.serializeBinary = function() {
|
|
1810
|
-
var writer = new jspb.BinaryWriter();
|
|
1811
|
-
proto.trb.strategy.v1.SearchBudget.serializeBinaryToWriter(this, writer);
|
|
1812
|
-
return writer.getResultBuffer();
|
|
1813
|
-
};
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1818
|
-
* format), writing to the given BinaryWriter.
|
|
1819
|
-
* @param {!proto.trb.strategy.v1.SearchBudget} message
|
|
1820
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1821
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1822
|
-
*/
|
|
1823
|
-
proto.trb.strategy.v1.SearchBudget.serializeBinaryToWriter = function(message, writer) {
|
|
1824
|
-
var f = undefined;
|
|
1825
|
-
f = message.getMaxEvaluations();
|
|
1826
|
-
if (f !== 0) {
|
|
1827
|
-
writer.writeUint32(
|
|
1828
|
-
1,
|
|
1829
|
-
f
|
|
1830
|
-
);
|
|
1831
|
-
}
|
|
1832
|
-
f = message.getMaxSeconds();
|
|
1833
|
-
if (f !== 0) {
|
|
1834
|
-
writer.writeUint32(
|
|
1835
|
-
2,
|
|
1836
|
-
f
|
|
1837
|
-
);
|
|
1838
|
-
}
|
|
1839
|
-
f = message.getConcurrency();
|
|
1840
|
-
if (f !== 0) {
|
|
1841
|
-
writer.writeUint32(
|
|
1842
|
-
3,
|
|
1843
|
-
f
|
|
1844
|
-
);
|
|
1845
|
-
}
|
|
1846
|
-
f = message.getPopulation();
|
|
1847
|
-
if (f !== 0) {
|
|
1848
|
-
writer.writeUint32(
|
|
1849
|
-
4,
|
|
1850
|
-
f
|
|
1851
|
-
);
|
|
1852
|
-
}
|
|
1853
|
-
f = message.getGenerations();
|
|
1854
|
-
if (f !== 0) {
|
|
1855
|
-
writer.writeUint32(
|
|
1856
|
-
5,
|
|
1857
|
-
f
|
|
1858
|
-
);
|
|
1859
|
-
}
|
|
1860
|
-
f = message.getSeed();
|
|
1861
|
-
if (f !== 0) {
|
|
1862
|
-
writer.writeUint64(
|
|
1863
|
-
6,
|
|
1864
|
-
f
|
|
1865
|
-
);
|
|
1866
|
-
}
|
|
1867
|
-
f = message.getHalvingEta();
|
|
1868
|
-
if (f !== 0) {
|
|
1869
|
-
writer.writeUint32(
|
|
1870
|
-
7,
|
|
1871
|
-
f
|
|
1872
|
-
);
|
|
1873
|
-
}
|
|
1874
|
-
f = message.getLowFidelityFrac();
|
|
1875
|
-
if (f !== 0.0) {
|
|
1876
|
-
writer.writeDouble(
|
|
1877
|
-
8,
|
|
1878
|
-
f
|
|
1879
|
-
);
|
|
1880
|
-
}
|
|
1881
|
-
f = message.getDisableCache();
|
|
1882
|
-
if (f) {
|
|
1883
|
-
writer.writeBool(
|
|
1884
|
-
9,
|
|
1885
|
-
f
|
|
1886
|
-
);
|
|
1887
|
-
}
|
|
1888
|
-
};
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
/**
|
|
1892
|
-
* optional uint32 max_evaluations = 1;
|
|
1893
|
-
* @return {number}
|
|
1894
|
-
*/
|
|
1895
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getMaxEvaluations = function() {
|
|
1896
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1897
|
-
};
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
/**
|
|
1901
|
-
* @param {number} value
|
|
1902
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
1903
|
-
*/
|
|
1904
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setMaxEvaluations = function(value) {
|
|
1905
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1906
|
-
};
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
/**
|
|
1910
|
-
* optional uint32 max_seconds = 2;
|
|
1911
|
-
* @return {number}
|
|
1912
|
-
*/
|
|
1913
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getMaxSeconds = function() {
|
|
1914
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1915
|
-
};
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
/**
|
|
1919
|
-
* @param {number} value
|
|
1920
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
1921
|
-
*/
|
|
1922
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setMaxSeconds = function(value) {
|
|
1923
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1924
|
-
};
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
/**
|
|
1928
|
-
* optional uint32 concurrency = 3;
|
|
1929
|
-
* @return {number}
|
|
1930
|
-
*/
|
|
1931
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getConcurrency = function() {
|
|
1932
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1933
|
-
};
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
/**
|
|
1937
|
-
* @param {number} value
|
|
1938
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
1939
|
-
*/
|
|
1940
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setConcurrency = function(value) {
|
|
1941
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1942
|
-
};
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
/**
|
|
1946
|
-
* optional uint32 population = 4;
|
|
1947
|
-
* @return {number}
|
|
1948
|
-
*/
|
|
1949
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getPopulation = function() {
|
|
1950
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1951
|
-
};
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
/**
|
|
1955
|
-
* @param {number} value
|
|
1956
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
1957
|
-
*/
|
|
1958
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setPopulation = function(value) {
|
|
1959
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
1960
|
-
};
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
/**
|
|
1964
|
-
* optional uint32 generations = 5;
|
|
1965
|
-
* @return {number}
|
|
1966
|
-
*/
|
|
1967
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getGenerations = function() {
|
|
1968
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
1969
|
-
};
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
/**
|
|
1973
|
-
* @param {number} value
|
|
1974
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
1975
|
-
*/
|
|
1976
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setGenerations = function(value) {
|
|
1977
|
-
return jspb.Message.setProto3IntField(this, 5, value);
|
|
1978
|
-
};
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
/**
|
|
1982
|
-
* optional uint64 seed = 6;
|
|
1983
|
-
* @return {number}
|
|
1984
|
-
*/
|
|
1985
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getSeed = function() {
|
|
1986
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
1987
|
-
};
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
/**
|
|
1991
|
-
* @param {number} value
|
|
1992
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
1993
|
-
*/
|
|
1994
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setSeed = function(value) {
|
|
1995
|
-
return jspb.Message.setProto3IntField(this, 6, value);
|
|
1996
|
-
};
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
/**
|
|
2000
|
-
* optional uint32 halving_eta = 7;
|
|
2001
|
-
* @return {number}
|
|
2002
|
-
*/
|
|
2003
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getHalvingEta = function() {
|
|
2004
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
2005
|
-
};
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
/**
|
|
2009
|
-
* @param {number} value
|
|
2010
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
2011
|
-
*/
|
|
2012
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setHalvingEta = function(value) {
|
|
2013
|
-
return jspb.Message.setProto3IntField(this, 7, value);
|
|
2014
|
-
};
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
/**
|
|
2018
|
-
* optional double low_fidelity_frac = 8;
|
|
2019
|
-
* @return {number}
|
|
2020
|
-
*/
|
|
2021
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getLowFidelityFrac = function() {
|
|
2022
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
/**
|
|
2027
|
-
* @param {number} value
|
|
2028
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
2029
|
-
*/
|
|
2030
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setLowFidelityFrac = function(value) {
|
|
2031
|
-
return jspb.Message.setProto3FloatField(this, 8, value);
|
|
2032
|
-
};
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
/**
|
|
2036
|
-
* optional bool disable_cache = 9;
|
|
2037
|
-
* @return {boolean}
|
|
2038
|
-
*/
|
|
2039
|
-
proto.trb.strategy.v1.SearchBudget.prototype.getDisableCache = function() {
|
|
2040
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
2041
|
-
};
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
/**
|
|
2045
|
-
* @param {boolean} value
|
|
2046
|
-
* @return {!proto.trb.strategy.v1.SearchBudget} returns this
|
|
2047
|
-
*/
|
|
2048
|
-
proto.trb.strategy.v1.SearchBudget.prototype.setDisableCache = function(value) {
|
|
2049
|
-
return jspb.Message.setProto3BooleanField(this, 9, value);
|
|
2050
|
-
};
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2057
|
-
/**
|
|
2058
|
-
* Creates an object representation of this proto.
|
|
2059
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2060
|
-
* Optional fields that are not set will be set to undefined.
|
|
2061
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2062
|
-
* For the list of reserved names please see:
|
|
2063
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2064
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2065
|
-
* JSPB instance for transitional soy proto support:
|
|
2066
|
-
* http://goto/soy-param-migration
|
|
2067
|
-
* @return {!Object}
|
|
2068
|
-
*/
|
|
2069
|
-
proto.trb.strategy.v1.EvalTask.prototype.toObject = function(opt_includeInstance) {
|
|
2070
|
-
return proto.trb.strategy.v1.EvalTask.toObject(opt_includeInstance, this);
|
|
2071
|
-
};
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
/**
|
|
2075
|
-
* Static version of the {@see toObject} method.
|
|
2076
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2077
|
-
* the JSPB instance for transitional soy proto support:
|
|
2078
|
-
* http://goto/soy-param-migration
|
|
2079
|
-
* @param {!proto.trb.strategy.v1.EvalTask} msg The msg instance to transform.
|
|
2080
|
-
* @return {!Object}
|
|
2081
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2082
|
-
*/
|
|
2083
|
-
proto.trb.strategy.v1.EvalTask.toObject = function(includeInstance, msg) {
|
|
2084
|
-
var f, obj = {
|
|
2085
|
-
evalId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2086
|
-
searchId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2087
|
-
spec: (f = msg.getSpec()) && strategy_spec_pb.StrategySpec.toObject(includeInstance, f),
|
|
2088
|
-
config: (f = msg.getConfig()) && strategy_backtest_pb.BacktestConfig.toObject(includeInstance, f),
|
|
2089
|
-
dataFraction: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
2090
|
-
replySubject: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
2091
|
-
};
|
|
2092
|
-
|
|
2093
|
-
if (includeInstance) {
|
|
2094
|
-
obj.$jspbMessageInstance = msg;
|
|
2095
|
-
}
|
|
2096
|
-
return obj;
|
|
2097
|
-
};
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
/**
|
|
2102
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2103
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2104
|
-
* @return {!proto.trb.strategy.v1.EvalTask}
|
|
2105
|
-
*/
|
|
2106
|
-
proto.trb.strategy.v1.EvalTask.deserializeBinary = function(bytes) {
|
|
2107
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2108
|
-
var msg = new proto.trb.strategy.v1.EvalTask;
|
|
2109
|
-
return proto.trb.strategy.v1.EvalTask.deserializeBinaryFromReader(msg, reader);
|
|
2110
|
-
};
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
/**
|
|
2114
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2115
|
-
* given reader into the given message object.
|
|
2116
|
-
* @param {!proto.trb.strategy.v1.EvalTask} msg The message object to deserialize into.
|
|
2117
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2118
|
-
* @return {!proto.trb.strategy.v1.EvalTask}
|
|
2119
|
-
*/
|
|
2120
|
-
proto.trb.strategy.v1.EvalTask.deserializeBinaryFromReader = function(msg, reader) {
|
|
2121
|
-
while (reader.nextField()) {
|
|
2122
|
-
if (reader.isEndGroup()) {
|
|
2123
|
-
break;
|
|
2124
|
-
}
|
|
2125
|
-
var field = reader.getFieldNumber();
|
|
2126
|
-
switch (field) {
|
|
2127
|
-
case 1:
|
|
2128
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2129
|
-
msg.setEvalId(value);
|
|
2130
|
-
break;
|
|
2131
|
-
case 2:
|
|
2132
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2133
|
-
msg.setSearchId(value);
|
|
2134
|
-
break;
|
|
2135
|
-
case 3:
|
|
2136
|
-
var value = new strategy_spec_pb.StrategySpec;
|
|
2137
|
-
reader.readMessage(value,strategy_spec_pb.StrategySpec.deserializeBinaryFromReader);
|
|
2138
|
-
msg.setSpec(value);
|
|
2139
|
-
break;
|
|
2140
|
-
case 4:
|
|
2141
|
-
var value = new strategy_backtest_pb.BacktestConfig;
|
|
2142
|
-
reader.readMessage(value,strategy_backtest_pb.BacktestConfig.deserializeBinaryFromReader);
|
|
2143
|
-
msg.setConfig(value);
|
|
2144
|
-
break;
|
|
2145
|
-
case 5:
|
|
2146
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
2147
|
-
msg.setDataFraction(value);
|
|
2148
|
-
break;
|
|
2149
|
-
case 6:
|
|
2150
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2151
|
-
msg.setReplySubject(value);
|
|
2152
|
-
break;
|
|
2153
|
-
default:
|
|
2154
|
-
reader.skipField();
|
|
2155
|
-
break;
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
return msg;
|
|
2159
|
-
};
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
/**
|
|
2163
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2164
|
-
* @return {!Uint8Array}
|
|
2165
|
-
*/
|
|
2166
|
-
proto.trb.strategy.v1.EvalTask.prototype.serializeBinary = function() {
|
|
2167
|
-
var writer = new jspb.BinaryWriter();
|
|
2168
|
-
proto.trb.strategy.v1.EvalTask.serializeBinaryToWriter(this, writer);
|
|
2169
|
-
return writer.getResultBuffer();
|
|
2170
|
-
};
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
/**
|
|
2174
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2175
|
-
* format), writing to the given BinaryWriter.
|
|
2176
|
-
* @param {!proto.trb.strategy.v1.EvalTask} message
|
|
2177
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2178
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2179
|
-
*/
|
|
2180
|
-
proto.trb.strategy.v1.EvalTask.serializeBinaryToWriter = function(message, writer) {
|
|
2181
|
-
var f = undefined;
|
|
2182
|
-
f = message.getEvalId();
|
|
2183
|
-
if (f.length > 0) {
|
|
2184
|
-
writer.writeString(
|
|
2185
|
-
1,
|
|
2186
|
-
f
|
|
2187
|
-
);
|
|
2188
|
-
}
|
|
2189
|
-
f = message.getSearchId();
|
|
2190
|
-
if (f.length > 0) {
|
|
2191
|
-
writer.writeString(
|
|
2192
|
-
2,
|
|
2193
|
-
f
|
|
2194
|
-
);
|
|
2195
|
-
}
|
|
2196
|
-
f = message.getSpec();
|
|
2197
|
-
if (f != null) {
|
|
2198
|
-
writer.writeMessage(
|
|
2199
|
-
3,
|
|
2200
|
-
f,
|
|
2201
|
-
strategy_spec_pb.StrategySpec.serializeBinaryToWriter
|
|
2202
|
-
);
|
|
2203
|
-
}
|
|
2204
|
-
f = message.getConfig();
|
|
2205
|
-
if (f != null) {
|
|
2206
|
-
writer.writeMessage(
|
|
2207
|
-
4,
|
|
2208
|
-
f,
|
|
2209
|
-
strategy_backtest_pb.BacktestConfig.serializeBinaryToWriter
|
|
2210
|
-
);
|
|
2211
|
-
}
|
|
2212
|
-
f = message.getDataFraction();
|
|
2213
|
-
if (f !== 0.0) {
|
|
2214
|
-
writer.writeDouble(
|
|
2215
|
-
5,
|
|
2216
|
-
f
|
|
2217
|
-
);
|
|
2218
|
-
}
|
|
2219
|
-
f = message.getReplySubject();
|
|
2220
|
-
if (f.length > 0) {
|
|
2221
|
-
writer.writeString(
|
|
2222
|
-
6,
|
|
2223
|
-
f
|
|
2224
|
-
);
|
|
2225
|
-
}
|
|
2226
|
-
};
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
/**
|
|
2230
|
-
* optional string eval_id = 1;
|
|
2231
|
-
* @return {string}
|
|
2232
|
-
*/
|
|
2233
|
-
proto.trb.strategy.v1.EvalTask.prototype.getEvalId = function() {
|
|
2234
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2235
|
-
};
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
/**
|
|
2239
|
-
* @param {string} value
|
|
2240
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2241
|
-
*/
|
|
2242
|
-
proto.trb.strategy.v1.EvalTask.prototype.setEvalId = function(value) {
|
|
2243
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2244
|
-
};
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
/**
|
|
2248
|
-
* optional string search_id = 2;
|
|
2249
|
-
* @return {string}
|
|
2250
|
-
*/
|
|
2251
|
-
proto.trb.strategy.v1.EvalTask.prototype.getSearchId = function() {
|
|
2252
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
/**
|
|
2257
|
-
* @param {string} value
|
|
2258
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2259
|
-
*/
|
|
2260
|
-
proto.trb.strategy.v1.EvalTask.prototype.setSearchId = function(value) {
|
|
2261
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2262
|
-
};
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
/**
|
|
2266
|
-
* optional StrategySpec spec = 3;
|
|
2267
|
-
* @return {?proto.trb.strategy.v1.StrategySpec}
|
|
2268
|
-
*/
|
|
2269
|
-
proto.trb.strategy.v1.EvalTask.prototype.getSpec = function() {
|
|
2270
|
-
return /** @type{?proto.trb.strategy.v1.StrategySpec} */ (
|
|
2271
|
-
jspb.Message.getWrapperField(this, strategy_spec_pb.StrategySpec, 3));
|
|
2272
|
-
};
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
/**
|
|
2276
|
-
* @param {?proto.trb.strategy.v1.StrategySpec|undefined} value
|
|
2277
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2278
|
-
*/
|
|
2279
|
-
proto.trb.strategy.v1.EvalTask.prototype.setSpec = function(value) {
|
|
2280
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
2281
|
-
};
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
/**
|
|
2285
|
-
* Clears the message field making it undefined.
|
|
2286
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2287
|
-
*/
|
|
2288
|
-
proto.trb.strategy.v1.EvalTask.prototype.clearSpec = function() {
|
|
2289
|
-
return this.setSpec(undefined);
|
|
2290
|
-
};
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
/**
|
|
2294
|
-
* Returns whether this field is set.
|
|
2295
|
-
* @return {boolean}
|
|
2296
|
-
*/
|
|
2297
|
-
proto.trb.strategy.v1.EvalTask.prototype.hasSpec = function() {
|
|
2298
|
-
return jspb.Message.getField(this, 3) != null;
|
|
2299
|
-
};
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
/**
|
|
2303
|
-
* optional BacktestConfig config = 4;
|
|
2304
|
-
* @return {?proto.trb.strategy.v1.BacktestConfig}
|
|
2305
|
-
*/
|
|
2306
|
-
proto.trb.strategy.v1.EvalTask.prototype.getConfig = function() {
|
|
2307
|
-
return /** @type{?proto.trb.strategy.v1.BacktestConfig} */ (
|
|
2308
|
-
jspb.Message.getWrapperField(this, strategy_backtest_pb.BacktestConfig, 4));
|
|
2309
|
-
};
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
/**
|
|
2313
|
-
* @param {?proto.trb.strategy.v1.BacktestConfig|undefined} value
|
|
2314
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2315
|
-
*/
|
|
2316
|
-
proto.trb.strategy.v1.EvalTask.prototype.setConfig = function(value) {
|
|
2317
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
2318
|
-
};
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
/**
|
|
2322
|
-
* Clears the message field making it undefined.
|
|
2323
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2324
|
-
*/
|
|
2325
|
-
proto.trb.strategy.v1.EvalTask.prototype.clearConfig = function() {
|
|
2326
|
-
return this.setConfig(undefined);
|
|
2327
|
-
};
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
/**
|
|
2331
|
-
* Returns whether this field is set.
|
|
2332
|
-
* @return {boolean}
|
|
2333
|
-
*/
|
|
2334
|
-
proto.trb.strategy.v1.EvalTask.prototype.hasConfig = function() {
|
|
2335
|
-
return jspb.Message.getField(this, 4) != null;
|
|
2336
|
-
};
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
/**
|
|
2340
|
-
* optional double data_fraction = 5;
|
|
2341
|
-
* @return {number}
|
|
2342
|
-
*/
|
|
2343
|
-
proto.trb.strategy.v1.EvalTask.prototype.getDataFraction = function() {
|
|
2344
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
2345
|
-
};
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
/**
|
|
2349
|
-
* @param {number} value
|
|
2350
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2351
|
-
*/
|
|
2352
|
-
proto.trb.strategy.v1.EvalTask.prototype.setDataFraction = function(value) {
|
|
2353
|
-
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
/**
|
|
2358
|
-
* optional string reply_subject = 6;
|
|
2359
|
-
* @return {string}
|
|
2360
|
-
*/
|
|
2361
|
-
proto.trb.strategy.v1.EvalTask.prototype.getReplySubject = function() {
|
|
2362
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2363
|
-
};
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
/**
|
|
2367
|
-
* @param {string} value
|
|
2368
|
-
* @return {!proto.trb.strategy.v1.EvalTask} returns this
|
|
2369
|
-
*/
|
|
2370
|
-
proto.trb.strategy.v1.EvalTask.prototype.setReplySubject = function(value) {
|
|
2371
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
2372
|
-
};
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2379
|
-
/**
|
|
2380
|
-
* Creates an object representation of this proto.
|
|
2381
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2382
|
-
* Optional fields that are not set will be set to undefined.
|
|
2383
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2384
|
-
* For the list of reserved names please see:
|
|
2385
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2386
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2387
|
-
* JSPB instance for transitional soy proto support:
|
|
2388
|
-
* http://goto/soy-param-migration
|
|
2389
|
-
* @return {!Object}
|
|
2390
|
-
*/
|
|
2391
|
-
proto.trb.strategy.v1.EvalResult.prototype.toObject = function(opt_includeInstance) {
|
|
2392
|
-
return proto.trb.strategy.v1.EvalResult.toObject(opt_includeInstance, this);
|
|
2393
|
-
};
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
/**
|
|
2397
|
-
* Static version of the {@see toObject} method.
|
|
2398
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2399
|
-
* the JSPB instance for transitional soy proto support:
|
|
2400
|
-
* http://goto/soy-param-migration
|
|
2401
|
-
* @param {!proto.trb.strategy.v1.EvalResult} msg The msg instance to transform.
|
|
2402
|
-
* @return {!Object}
|
|
2403
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2404
|
-
*/
|
|
2405
|
-
proto.trb.strategy.v1.EvalResult.toObject = function(includeInstance, msg) {
|
|
2406
|
-
var f, obj = {
|
|
2407
|
-
evalId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2408
|
-
metricsMap: (f = msg.getMetricsMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
2409
|
-
error: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2410
|
-
engineVersion: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2411
|
-
};
|
|
2412
|
-
|
|
2413
|
-
if (includeInstance) {
|
|
2414
|
-
obj.$jspbMessageInstance = msg;
|
|
2415
|
-
}
|
|
2416
|
-
return obj;
|
|
2417
|
-
};
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
/**
|
|
2422
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2423
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2424
|
-
* @return {!proto.trb.strategy.v1.EvalResult}
|
|
2425
|
-
*/
|
|
2426
|
-
proto.trb.strategy.v1.EvalResult.deserializeBinary = function(bytes) {
|
|
2427
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2428
|
-
var msg = new proto.trb.strategy.v1.EvalResult;
|
|
2429
|
-
return proto.trb.strategy.v1.EvalResult.deserializeBinaryFromReader(msg, reader);
|
|
2430
|
-
};
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
/**
|
|
2434
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2435
|
-
* given reader into the given message object.
|
|
2436
|
-
* @param {!proto.trb.strategy.v1.EvalResult} msg The message object to deserialize into.
|
|
2437
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2438
|
-
* @return {!proto.trb.strategy.v1.EvalResult}
|
|
2439
|
-
*/
|
|
2440
|
-
proto.trb.strategy.v1.EvalResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
2441
|
-
while (reader.nextField()) {
|
|
2442
|
-
if (reader.isEndGroup()) {
|
|
2443
|
-
break;
|
|
2444
|
-
}
|
|
2445
|
-
var field = reader.getFieldNumber();
|
|
2446
|
-
switch (field) {
|
|
2447
|
-
case 1:
|
|
2448
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2449
|
-
msg.setEvalId(value);
|
|
2450
|
-
break;
|
|
2451
|
-
case 2:
|
|
2452
|
-
var value = msg.getMetricsMap();
|
|
2453
|
-
reader.readMessage(value, function(message, reader) {
|
|
2454
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
|
|
2455
|
-
});
|
|
2456
|
-
break;
|
|
2457
|
-
case 3:
|
|
2458
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2459
|
-
msg.setError(value);
|
|
2460
|
-
break;
|
|
2461
|
-
case 4:
|
|
2462
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2463
|
-
msg.setEngineVersion(value);
|
|
2464
|
-
break;
|
|
2465
|
-
default:
|
|
2466
|
-
reader.skipField();
|
|
2467
|
-
break;
|
|
2468
|
-
}
|
|
2469
|
-
}
|
|
2470
|
-
return msg;
|
|
2471
|
-
};
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
/**
|
|
2475
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2476
|
-
* @return {!Uint8Array}
|
|
2477
|
-
*/
|
|
2478
|
-
proto.trb.strategy.v1.EvalResult.prototype.serializeBinary = function() {
|
|
2479
|
-
var writer = new jspb.BinaryWriter();
|
|
2480
|
-
proto.trb.strategy.v1.EvalResult.serializeBinaryToWriter(this, writer);
|
|
2481
|
-
return writer.getResultBuffer();
|
|
2482
|
-
};
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
/**
|
|
2486
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2487
|
-
* format), writing to the given BinaryWriter.
|
|
2488
|
-
* @param {!proto.trb.strategy.v1.EvalResult} message
|
|
2489
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2490
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2491
|
-
*/
|
|
2492
|
-
proto.trb.strategy.v1.EvalResult.serializeBinaryToWriter = function(message, writer) {
|
|
2493
|
-
var f = undefined;
|
|
2494
|
-
f = message.getEvalId();
|
|
2495
|
-
if (f.length > 0) {
|
|
2496
|
-
writer.writeString(
|
|
2497
|
-
1,
|
|
2498
|
-
f
|
|
2499
|
-
);
|
|
2500
|
-
}
|
|
2501
|
-
f = message.getMetricsMap(true);
|
|
2502
|
-
if (f && f.getLength() > 0) {
|
|
2503
|
-
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
|
|
2504
|
-
}
|
|
2505
|
-
f = message.getError();
|
|
2506
|
-
if (f.length > 0) {
|
|
2507
|
-
writer.writeString(
|
|
2508
|
-
3,
|
|
2509
|
-
f
|
|
2510
|
-
);
|
|
2511
|
-
}
|
|
2512
|
-
f = message.getEngineVersion();
|
|
2513
|
-
if (f.length > 0) {
|
|
2514
|
-
writer.writeString(
|
|
2515
|
-
4,
|
|
2516
|
-
f
|
|
2517
|
-
);
|
|
2518
|
-
}
|
|
2519
|
-
};
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
/**
|
|
2523
|
-
* optional string eval_id = 1;
|
|
2524
|
-
* @return {string}
|
|
2525
|
-
*/
|
|
2526
|
-
proto.trb.strategy.v1.EvalResult.prototype.getEvalId = function() {
|
|
2527
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2528
|
-
};
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* @param {string} value
|
|
2533
|
-
* @return {!proto.trb.strategy.v1.EvalResult} returns this
|
|
2534
|
-
*/
|
|
2535
|
-
proto.trb.strategy.v1.EvalResult.prototype.setEvalId = function(value) {
|
|
2536
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2537
|
-
};
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
/**
|
|
2541
|
-
* map<string, double> metrics = 2;
|
|
2542
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
2543
|
-
* empty, instead returning `undefined`
|
|
2544
|
-
* @return {!jspb.Map<string,number>}
|
|
2545
|
-
*/
|
|
2546
|
-
proto.trb.strategy.v1.EvalResult.prototype.getMetricsMap = function(opt_noLazyCreate) {
|
|
2547
|
-
return /** @type {!jspb.Map<string,number>} */ (
|
|
2548
|
-
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
|
|
2549
|
-
null));
|
|
2550
|
-
};
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
/**
|
|
2554
|
-
* Clears values from the map. The map will be non-null.
|
|
2555
|
-
* @return {!proto.trb.strategy.v1.EvalResult} returns this
|
|
2556
|
-
*/
|
|
2557
|
-
proto.trb.strategy.v1.EvalResult.prototype.clearMetricsMap = function() {
|
|
2558
|
-
this.getMetricsMap().clear();
|
|
2559
|
-
return this;
|
|
2560
|
-
};
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
/**
|
|
2564
|
-
* optional string error = 3;
|
|
2565
|
-
* @return {string}
|
|
2566
|
-
*/
|
|
2567
|
-
proto.trb.strategy.v1.EvalResult.prototype.getError = function() {
|
|
2568
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2569
|
-
};
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
/**
|
|
2573
|
-
* @param {string} value
|
|
2574
|
-
* @return {!proto.trb.strategy.v1.EvalResult} returns this
|
|
2575
|
-
*/
|
|
2576
|
-
proto.trb.strategy.v1.EvalResult.prototype.setError = function(value) {
|
|
2577
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2578
|
-
};
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
* optional string engine_version = 4;
|
|
2583
|
-
* @return {string}
|
|
2584
|
-
*/
|
|
2585
|
-
proto.trb.strategy.v1.EvalResult.prototype.getEngineVersion = function() {
|
|
2586
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2587
|
-
};
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
/**
|
|
2591
|
-
* @param {string} value
|
|
2592
|
-
* @return {!proto.trb.strategy.v1.EvalResult} returns this
|
|
2593
|
-
*/
|
|
2594
|
-
proto.trb.strategy.v1.EvalResult.prototype.setEngineVersion = function(value) {
|
|
2595
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2596
|
-
};
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2603
|
-
/**
|
|
2604
|
-
* Creates an object representation of this proto.
|
|
2605
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2606
|
-
* Optional fields that are not set will be set to undefined.
|
|
2607
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2608
|
-
* For the list of reserved names please see:
|
|
2609
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2610
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2611
|
-
* JSPB instance for transitional soy proto support:
|
|
2612
|
-
* http://goto/soy-param-migration
|
|
2613
|
-
* @return {!Object}
|
|
2614
|
-
*/
|
|
2615
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.toObject = function(opt_includeInstance) {
|
|
2616
|
-
return proto.trb.strategy.v1.SearchCandidate.toObject(opt_includeInstance, this);
|
|
2617
|
-
};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
/**
|
|
2621
|
-
* Static version of the {@see toObject} method.
|
|
2622
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2623
|
-
* the JSPB instance for transitional soy proto support:
|
|
2624
|
-
* http://goto/soy-param-migration
|
|
2625
|
-
* @param {!proto.trb.strategy.v1.SearchCandidate} msg The msg instance to transform.
|
|
2626
|
-
* @return {!Object}
|
|
2627
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2628
|
-
*/
|
|
2629
|
-
proto.trb.strategy.v1.SearchCandidate.toObject = function(includeInstance, msg) {
|
|
2630
|
-
var f, obj = {
|
|
2631
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2632
|
-
spec: (f = msg.getSpec()) && strategy_spec_pb.StrategySpec.toObject(includeInstance, f),
|
|
2633
|
-
specHash: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2634
|
-
score: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
2635
|
-
metrics: (f = msg.getMetrics()) && strategy_backtest_pb.BacktestMetrics.toObject(includeInstance, f),
|
|
2636
|
-
rank: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
2637
|
-
generation: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2638
|
-
backtestRunId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2639
|
-
};
|
|
2640
|
-
|
|
2641
|
-
if (includeInstance) {
|
|
2642
|
-
obj.$jspbMessageInstance = msg;
|
|
2643
|
-
}
|
|
2644
|
-
return obj;
|
|
2645
|
-
};
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
/**
|
|
2650
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2651
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2652
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate}
|
|
2653
|
-
*/
|
|
2654
|
-
proto.trb.strategy.v1.SearchCandidate.deserializeBinary = function(bytes) {
|
|
2655
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2656
|
-
var msg = new proto.trb.strategy.v1.SearchCandidate;
|
|
2657
|
-
return proto.trb.strategy.v1.SearchCandidate.deserializeBinaryFromReader(msg, reader);
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
/**
|
|
2662
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2663
|
-
* given reader into the given message object.
|
|
2664
|
-
* @param {!proto.trb.strategy.v1.SearchCandidate} msg The message object to deserialize into.
|
|
2665
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2666
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate}
|
|
2667
|
-
*/
|
|
2668
|
-
proto.trb.strategy.v1.SearchCandidate.deserializeBinaryFromReader = function(msg, reader) {
|
|
2669
|
-
while (reader.nextField()) {
|
|
2670
|
-
if (reader.isEndGroup()) {
|
|
2671
|
-
break;
|
|
2672
|
-
}
|
|
2673
|
-
var field = reader.getFieldNumber();
|
|
2674
|
-
switch (field) {
|
|
2675
|
-
case 1:
|
|
2676
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2677
|
-
msg.setId(value);
|
|
2678
|
-
break;
|
|
2679
|
-
case 2:
|
|
2680
|
-
var value = new strategy_spec_pb.StrategySpec;
|
|
2681
|
-
reader.readMessage(value,strategy_spec_pb.StrategySpec.deserializeBinaryFromReader);
|
|
2682
|
-
msg.setSpec(value);
|
|
2683
|
-
break;
|
|
2684
|
-
case 3:
|
|
2685
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
2686
|
-
msg.setSpecHash(value);
|
|
2687
|
-
break;
|
|
2688
|
-
case 4:
|
|
2689
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
2690
|
-
msg.setScore(value);
|
|
2691
|
-
break;
|
|
2692
|
-
case 5:
|
|
2693
|
-
var value = new strategy_backtest_pb.BacktestMetrics;
|
|
2694
|
-
reader.readMessage(value,strategy_backtest_pb.BacktestMetrics.deserializeBinaryFromReader);
|
|
2695
|
-
msg.setMetrics(value);
|
|
2696
|
-
break;
|
|
2697
|
-
case 6:
|
|
2698
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
2699
|
-
msg.setRank(value);
|
|
2700
|
-
break;
|
|
2701
|
-
case 7:
|
|
2702
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
2703
|
-
msg.setGeneration(value);
|
|
2704
|
-
break;
|
|
2705
|
-
case 8:
|
|
2706
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2707
|
-
msg.setBacktestRunId(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.strategy.v1.SearchCandidate.prototype.serializeBinary = function() {
|
|
2723
|
-
var writer = new jspb.BinaryWriter();
|
|
2724
|
-
proto.trb.strategy.v1.SearchCandidate.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.strategy.v1.SearchCandidate} message
|
|
2733
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2734
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2735
|
-
*/
|
|
2736
|
-
proto.trb.strategy.v1.SearchCandidate.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.getSpec();
|
|
2746
|
-
if (f != null) {
|
|
2747
|
-
writer.writeMessage(
|
|
2748
|
-
2,
|
|
2749
|
-
f,
|
|
2750
|
-
strategy_spec_pb.StrategySpec.serializeBinaryToWriter
|
|
2751
|
-
);
|
|
2752
|
-
}
|
|
2753
|
-
f = message.getSpecHash();
|
|
2754
|
-
if (f !== 0) {
|
|
2755
|
-
writer.writeUint64(
|
|
2756
|
-
3,
|
|
2757
|
-
f
|
|
2758
|
-
);
|
|
2759
|
-
}
|
|
2760
|
-
f = message.getScore();
|
|
2761
|
-
if (f !== 0.0) {
|
|
2762
|
-
writer.writeDouble(
|
|
2763
|
-
4,
|
|
2764
|
-
f
|
|
2765
|
-
);
|
|
2766
|
-
}
|
|
2767
|
-
f = message.getMetrics();
|
|
2768
|
-
if (f != null) {
|
|
2769
|
-
writer.writeMessage(
|
|
2770
|
-
5,
|
|
2771
|
-
f,
|
|
2772
|
-
strategy_backtest_pb.BacktestMetrics.serializeBinaryToWriter
|
|
2773
|
-
);
|
|
2774
|
-
}
|
|
2775
|
-
f = message.getRank();
|
|
2776
|
-
if (f !== 0) {
|
|
2777
|
-
writer.writeUint32(
|
|
2778
|
-
6,
|
|
2779
|
-
f
|
|
2780
|
-
);
|
|
2781
|
-
}
|
|
2782
|
-
f = message.getGeneration();
|
|
2783
|
-
if (f !== 0) {
|
|
2784
|
-
writer.writeUint32(
|
|
2785
|
-
7,
|
|
2786
|
-
f
|
|
2787
|
-
);
|
|
2788
|
-
}
|
|
2789
|
-
f = message.getBacktestRunId();
|
|
2790
|
-
if (f.length > 0) {
|
|
2791
|
-
writer.writeString(
|
|
2792
|
-
8,
|
|
2793
|
-
f
|
|
2794
|
-
);
|
|
2795
|
-
}
|
|
2796
|
-
};
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
/**
|
|
2800
|
-
* optional string id = 1;
|
|
2801
|
-
* @return {string}
|
|
2802
|
-
*/
|
|
2803
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getId = function() {
|
|
2804
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2805
|
-
};
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
/**
|
|
2809
|
-
* @param {string} value
|
|
2810
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2811
|
-
*/
|
|
2812
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setId = function(value) {
|
|
2813
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2814
|
-
};
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
/**
|
|
2818
|
-
* optional StrategySpec spec = 2;
|
|
2819
|
-
* @return {?proto.trb.strategy.v1.StrategySpec}
|
|
2820
|
-
*/
|
|
2821
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getSpec = function() {
|
|
2822
|
-
return /** @type{?proto.trb.strategy.v1.StrategySpec} */ (
|
|
2823
|
-
jspb.Message.getWrapperField(this, strategy_spec_pb.StrategySpec, 2));
|
|
2824
|
-
};
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
/**
|
|
2828
|
-
* @param {?proto.trb.strategy.v1.StrategySpec|undefined} value
|
|
2829
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2830
|
-
*/
|
|
2831
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setSpec = function(value) {
|
|
2832
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2833
|
-
};
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
/**
|
|
2837
|
-
* Clears the message field making it undefined.
|
|
2838
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2839
|
-
*/
|
|
2840
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.clearSpec = function() {
|
|
2841
|
-
return this.setSpec(undefined);
|
|
2842
|
-
};
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
/**
|
|
2846
|
-
* Returns whether this field is set.
|
|
2847
|
-
* @return {boolean}
|
|
2848
|
-
*/
|
|
2849
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.hasSpec = function() {
|
|
2850
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2851
|
-
};
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
/**
|
|
2855
|
-
* optional uint64 spec_hash = 3;
|
|
2856
|
-
* @return {number}
|
|
2857
|
-
*/
|
|
2858
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getSpecHash = function() {
|
|
2859
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2860
|
-
};
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
/**
|
|
2864
|
-
* @param {number} value
|
|
2865
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2866
|
-
*/
|
|
2867
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setSpecHash = function(value) {
|
|
2868
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
2869
|
-
};
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
/**
|
|
2873
|
-
* optional double score = 4;
|
|
2874
|
-
* @return {number}
|
|
2875
|
-
*/
|
|
2876
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getScore = function() {
|
|
2877
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
2878
|
-
};
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
/**
|
|
2882
|
-
* @param {number} value
|
|
2883
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2884
|
-
*/
|
|
2885
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setScore = function(value) {
|
|
2886
|
-
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
2887
|
-
};
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
/**
|
|
2891
|
-
* optional BacktestMetrics metrics = 5;
|
|
2892
|
-
* @return {?proto.trb.strategy.v1.BacktestMetrics}
|
|
2893
|
-
*/
|
|
2894
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getMetrics = function() {
|
|
2895
|
-
return /** @type{?proto.trb.strategy.v1.BacktestMetrics} */ (
|
|
2896
|
-
jspb.Message.getWrapperField(this, strategy_backtest_pb.BacktestMetrics, 5));
|
|
2897
|
-
};
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
/**
|
|
2901
|
-
* @param {?proto.trb.strategy.v1.BacktestMetrics|undefined} value
|
|
2902
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2903
|
-
*/
|
|
2904
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setMetrics = function(value) {
|
|
2905
|
-
return jspb.Message.setWrapperField(this, 5, value);
|
|
2906
|
-
};
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
/**
|
|
2910
|
-
* Clears the message field making it undefined.
|
|
2911
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2912
|
-
*/
|
|
2913
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.clearMetrics = function() {
|
|
2914
|
-
return this.setMetrics(undefined);
|
|
2915
|
-
};
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
/**
|
|
2919
|
-
* Returns whether this field is set.
|
|
2920
|
-
* @return {boolean}
|
|
2921
|
-
*/
|
|
2922
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.hasMetrics = function() {
|
|
2923
|
-
return jspb.Message.getField(this, 5) != null;
|
|
2924
|
-
};
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
/**
|
|
2928
|
-
* optional uint32 rank = 6;
|
|
2929
|
-
* @return {number}
|
|
2930
|
-
*/
|
|
2931
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getRank = function() {
|
|
2932
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
2933
|
-
};
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
/**
|
|
2937
|
-
* @param {number} value
|
|
2938
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2939
|
-
*/
|
|
2940
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setRank = function(value) {
|
|
2941
|
-
return jspb.Message.setProto3IntField(this, 6, value);
|
|
2942
|
-
};
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
/**
|
|
2946
|
-
* optional uint32 generation = 7;
|
|
2947
|
-
* @return {number}
|
|
2948
|
-
*/
|
|
2949
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getGeneration = function() {
|
|
2950
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
2951
|
-
};
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
/**
|
|
2955
|
-
* @param {number} value
|
|
2956
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2957
|
-
*/
|
|
2958
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setGeneration = function(value) {
|
|
2959
|
-
return jspb.Message.setProto3IntField(this, 7, value);
|
|
2960
|
-
};
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
/**
|
|
2964
|
-
* optional string backtest_run_id = 8;
|
|
2965
|
-
* @return {string}
|
|
2966
|
-
*/
|
|
2967
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.getBacktestRunId = function() {
|
|
2968
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2969
|
-
};
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
/**
|
|
2973
|
-
* @param {string} value
|
|
2974
|
-
* @return {!proto.trb.strategy.v1.SearchCandidate} returns this
|
|
2975
|
-
*/
|
|
2976
|
-
proto.trb.strategy.v1.SearchCandidate.prototype.setBacktestRunId = function(value) {
|
|
2977
|
-
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2978
|
-
};
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2985
|
-
/**
|
|
2986
|
-
* Creates an object representation of this proto.
|
|
2987
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2988
|
-
* Optional fields that are not set will be set to undefined.
|
|
2989
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2990
|
-
* For the list of reserved names please see:
|
|
2991
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2992
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2993
|
-
* JSPB instance for transitional soy proto support:
|
|
2994
|
-
* http://goto/soy-param-migration
|
|
2995
|
-
* @return {!Object}
|
|
2996
|
-
*/
|
|
2997
|
-
proto.trb.strategy.v1.SearchProgress.prototype.toObject = function(opt_includeInstance) {
|
|
2998
|
-
return proto.trb.strategy.v1.SearchProgress.toObject(opt_includeInstance, this);
|
|
2999
|
-
};
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
/**
|
|
3003
|
-
* Static version of the {@see toObject} method.
|
|
3004
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3005
|
-
* the JSPB instance for transitional soy proto support:
|
|
3006
|
-
* http://goto/soy-param-migration
|
|
3007
|
-
* @param {!proto.trb.strategy.v1.SearchProgress} msg The msg instance to transform.
|
|
3008
|
-
* @return {!Object}
|
|
3009
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3010
|
-
*/
|
|
3011
|
-
proto.trb.strategy.v1.SearchProgress.toObject = function(includeInstance, msg) {
|
|
3012
|
-
var f, obj = {
|
|
3013
|
-
status: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3014
|
-
evaluated: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3015
|
-
total: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3016
|
-
bestScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
3017
|
-
bestCandidateId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3018
|
-
currentGeneration: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
3019
|
-
error: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3020
|
-
};
|
|
3021
|
-
|
|
3022
|
-
if (includeInstance) {
|
|
3023
|
-
obj.$jspbMessageInstance = msg;
|
|
3024
|
-
}
|
|
3025
|
-
return obj;
|
|
3026
|
-
};
|
|
3027
|
-
}
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
/**
|
|
3031
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3032
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3033
|
-
* @return {!proto.trb.strategy.v1.SearchProgress}
|
|
3034
|
-
*/
|
|
3035
|
-
proto.trb.strategy.v1.SearchProgress.deserializeBinary = function(bytes) {
|
|
3036
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3037
|
-
var msg = new proto.trb.strategy.v1.SearchProgress;
|
|
3038
|
-
return proto.trb.strategy.v1.SearchProgress.deserializeBinaryFromReader(msg, reader);
|
|
3039
|
-
};
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
/**
|
|
3043
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3044
|
-
* given reader into the given message object.
|
|
3045
|
-
* @param {!proto.trb.strategy.v1.SearchProgress} msg The message object to deserialize into.
|
|
3046
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3047
|
-
* @return {!proto.trb.strategy.v1.SearchProgress}
|
|
3048
|
-
*/
|
|
3049
|
-
proto.trb.strategy.v1.SearchProgress.deserializeBinaryFromReader = function(msg, reader) {
|
|
3050
|
-
while (reader.nextField()) {
|
|
3051
|
-
if (reader.isEndGroup()) {
|
|
3052
|
-
break;
|
|
3053
|
-
}
|
|
3054
|
-
var field = reader.getFieldNumber();
|
|
3055
|
-
switch (field) {
|
|
3056
|
-
case 1:
|
|
3057
|
-
var value = /** @type {!proto.trb.strategy.v1.RunStatus} */ (reader.readEnum());
|
|
3058
|
-
msg.setStatus(value);
|
|
3059
|
-
break;
|
|
3060
|
-
case 2:
|
|
3061
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
3062
|
-
msg.setEvaluated(value);
|
|
3063
|
-
break;
|
|
3064
|
-
case 3:
|
|
3065
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
3066
|
-
msg.setTotal(value);
|
|
3067
|
-
break;
|
|
3068
|
-
case 4:
|
|
3069
|
-
var value = /** @type {number} */ (reader.readDouble());
|
|
3070
|
-
msg.setBestScore(value);
|
|
3071
|
-
break;
|
|
3072
|
-
case 5:
|
|
3073
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3074
|
-
msg.setBestCandidateId(value);
|
|
3075
|
-
break;
|
|
3076
|
-
case 6:
|
|
3077
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
3078
|
-
msg.setCurrentGeneration(value);
|
|
3079
|
-
break;
|
|
3080
|
-
case 7:
|
|
3081
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3082
|
-
msg.setError(value);
|
|
3083
|
-
break;
|
|
3084
|
-
default:
|
|
3085
|
-
reader.skipField();
|
|
3086
|
-
break;
|
|
3087
|
-
}
|
|
3088
|
-
}
|
|
3089
|
-
return msg;
|
|
3090
|
-
};
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
/**
|
|
3094
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3095
|
-
* @return {!Uint8Array}
|
|
3096
|
-
*/
|
|
3097
|
-
proto.trb.strategy.v1.SearchProgress.prototype.serializeBinary = function() {
|
|
3098
|
-
var writer = new jspb.BinaryWriter();
|
|
3099
|
-
proto.trb.strategy.v1.SearchProgress.serializeBinaryToWriter(this, writer);
|
|
3100
|
-
return writer.getResultBuffer();
|
|
3101
|
-
};
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
/**
|
|
3105
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3106
|
-
* format), writing to the given BinaryWriter.
|
|
3107
|
-
* @param {!proto.trb.strategy.v1.SearchProgress} message
|
|
3108
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3109
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3110
|
-
*/
|
|
3111
|
-
proto.trb.strategy.v1.SearchProgress.serializeBinaryToWriter = function(message, writer) {
|
|
3112
|
-
var f = undefined;
|
|
3113
|
-
f = message.getStatus();
|
|
3114
|
-
if (f !== 0.0) {
|
|
3115
|
-
writer.writeEnum(
|
|
3116
|
-
1,
|
|
3117
|
-
f
|
|
3118
|
-
);
|
|
3119
|
-
}
|
|
3120
|
-
f = message.getEvaluated();
|
|
3121
|
-
if (f !== 0) {
|
|
3122
|
-
writer.writeUint32(
|
|
3123
|
-
2,
|
|
3124
|
-
f
|
|
3125
|
-
);
|
|
3126
|
-
}
|
|
3127
|
-
f = message.getTotal();
|
|
3128
|
-
if (f !== 0) {
|
|
3129
|
-
writer.writeUint32(
|
|
3130
|
-
3,
|
|
3131
|
-
f
|
|
3132
|
-
);
|
|
3133
|
-
}
|
|
3134
|
-
f = message.getBestScore();
|
|
3135
|
-
if (f !== 0.0) {
|
|
3136
|
-
writer.writeDouble(
|
|
3137
|
-
4,
|
|
3138
|
-
f
|
|
3139
|
-
);
|
|
3140
|
-
}
|
|
3141
|
-
f = message.getBestCandidateId();
|
|
3142
|
-
if (f.length > 0) {
|
|
3143
|
-
writer.writeString(
|
|
3144
|
-
5,
|
|
3145
|
-
f
|
|
3146
|
-
);
|
|
3147
|
-
}
|
|
3148
|
-
f = message.getCurrentGeneration();
|
|
3149
|
-
if (f !== 0) {
|
|
3150
|
-
writer.writeUint32(
|
|
3151
|
-
6,
|
|
3152
|
-
f
|
|
3153
|
-
);
|
|
3154
|
-
}
|
|
3155
|
-
f = message.getError();
|
|
3156
|
-
if (f.length > 0) {
|
|
3157
|
-
writer.writeString(
|
|
3158
|
-
7,
|
|
3159
|
-
f
|
|
3160
|
-
);
|
|
3161
|
-
}
|
|
3162
|
-
};
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
/**
|
|
3166
|
-
* optional RunStatus status = 1;
|
|
3167
|
-
* @return {!proto.trb.strategy.v1.RunStatus}
|
|
3168
|
-
*/
|
|
3169
|
-
proto.trb.strategy.v1.SearchProgress.prototype.getStatus = function() {
|
|
3170
|
-
return /** @type {!proto.trb.strategy.v1.RunStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3171
|
-
};
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
/**
|
|
3175
|
-
* @param {!proto.trb.strategy.v1.RunStatus} value
|
|
3176
|
-
* @return {!proto.trb.strategy.v1.SearchProgress} returns this
|
|
3177
|
-
*/
|
|
3178
|
-
proto.trb.strategy.v1.SearchProgress.prototype.setStatus = function(value) {
|
|
3179
|
-
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
3180
|
-
};
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
/**
|
|
3184
|
-
* optional uint32 evaluated = 2;
|
|
3185
|
-
* @return {number}
|
|
3186
|
-
*/
|
|
3187
|
-
proto.trb.strategy.v1.SearchProgress.prototype.getEvaluated = function() {
|
|
3188
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3189
|
-
};
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
/**
|
|
3193
|
-
* @param {number} value
|
|
3194
|
-
* @return {!proto.trb.strategy.v1.SearchProgress} returns this
|
|
3195
|
-
*/
|
|
3196
|
-
proto.trb.strategy.v1.SearchProgress.prototype.setEvaluated = function(value) {
|
|
3197
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3198
|
-
};
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
/**
|
|
3202
|
-
* optional uint32 total = 3;
|
|
3203
|
-
* @return {number}
|
|
3204
|
-
*/
|
|
3205
|
-
proto.trb.strategy.v1.SearchProgress.prototype.getTotal = function() {
|
|
3206
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3207
|
-
};
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
/**
|
|
3211
|
-
* @param {number} value
|
|
3212
|
-
* @return {!proto.trb.strategy.v1.SearchProgress} returns this
|
|
3213
|
-
*/
|
|
3214
|
-
proto.trb.strategy.v1.SearchProgress.prototype.setTotal = function(value) {
|
|
3215
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3216
|
-
};
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
/**
|
|
3220
|
-
* optional double best_score = 4;
|
|
3221
|
-
* @return {number}
|
|
3222
|
-
*/
|
|
3223
|
-
proto.trb.strategy.v1.SearchProgress.prototype.getBestScore = function() {
|
|
3224
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
3225
|
-
};
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
/**
|
|
3229
|
-
* @param {number} value
|
|
3230
|
-
* @return {!proto.trb.strategy.v1.SearchProgress} returns this
|
|
3231
|
-
*/
|
|
3232
|
-
proto.trb.strategy.v1.SearchProgress.prototype.setBestScore = function(value) {
|
|
3233
|
-
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
3234
|
-
};
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
/**
|
|
3238
|
-
* optional string best_candidate_id = 5;
|
|
3239
|
-
* @return {string}
|
|
3240
|
-
*/
|
|
3241
|
-
proto.trb.strategy.v1.SearchProgress.prototype.getBestCandidateId = function() {
|
|
3242
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3243
|
-
};
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
/**
|
|
3247
|
-
* @param {string} value
|
|
3248
|
-
* @return {!proto.trb.strategy.v1.SearchProgress} returns this
|
|
3249
|
-
*/
|
|
3250
|
-
proto.trb.strategy.v1.SearchProgress.prototype.setBestCandidateId = function(value) {
|
|
3251
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3252
|
-
};
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
/**
|
|
3256
|
-
* optional uint32 current_generation = 6;
|
|
3257
|
-
* @return {number}
|
|
3258
|
-
*/
|
|
3259
|
-
proto.trb.strategy.v1.SearchProgress.prototype.getCurrentGeneration = function() {
|
|
3260
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
3261
|
-
};
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
/**
|
|
3265
|
-
* @param {number} value
|
|
3266
|
-
* @return {!proto.trb.strategy.v1.SearchProgress} returns this
|
|
3267
|
-
*/
|
|
3268
|
-
proto.trb.strategy.v1.SearchProgress.prototype.setCurrentGeneration = function(value) {
|
|
3269
|
-
return jspb.Message.setProto3IntField(this, 6, value);
|
|
3270
|
-
};
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
/**
|
|
3274
|
-
* optional string error = 7;
|
|
3275
|
-
* @return {string}
|
|
3276
|
-
*/
|
|
3277
|
-
proto.trb.strategy.v1.SearchProgress.prototype.getError = function() {
|
|
3278
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
3279
|
-
};
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
/**
|
|
3283
|
-
* @param {string} value
|
|
3284
|
-
* @return {!proto.trb.strategy.v1.SearchProgress} returns this
|
|
3285
|
-
*/
|
|
3286
|
-
proto.trb.strategy.v1.SearchProgress.prototype.setError = function(value) {
|
|
3287
|
-
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3288
|
-
};
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
/**
|
|
3293
|
-
* List of repeated fields within this message type.
|
|
3294
|
-
* @private {!Array<number>}
|
|
3295
|
-
* @const
|
|
3296
|
-
*/
|
|
3297
|
-
proto.trb.strategy.v1.SearchRun.repeatedFields_ = [5];
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3302
|
-
/**
|
|
3303
|
-
* Creates an object representation of this proto.
|
|
3304
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3305
|
-
* Optional fields that are not set will be set to undefined.
|
|
3306
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3307
|
-
* For the list of reserved names please see:
|
|
3308
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3309
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3310
|
-
* JSPB instance for transitional soy proto support:
|
|
3311
|
-
* http://goto/soy-param-migration
|
|
3312
|
-
* @return {!Object}
|
|
3313
|
-
*/
|
|
3314
|
-
proto.trb.strategy.v1.SearchRun.prototype.toObject = function(opt_includeInstance) {
|
|
3315
|
-
return proto.trb.strategy.v1.SearchRun.toObject(opt_includeInstance, this);
|
|
3316
|
-
};
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
/**
|
|
3320
|
-
* Static version of the {@see toObject} method.
|
|
3321
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3322
|
-
* the JSPB instance for transitional soy proto support:
|
|
3323
|
-
* http://goto/soy-param-migration
|
|
3324
|
-
* @param {!proto.trb.strategy.v1.SearchRun} msg The msg instance to transform.
|
|
3325
|
-
* @return {!Object}
|
|
3326
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3327
|
-
*/
|
|
3328
|
-
proto.trb.strategy.v1.SearchRun.toObject = function(includeInstance, msg) {
|
|
3329
|
-
var f, obj = {
|
|
3330
|
-
searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3331
|
-
baseStrategyId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3332
|
-
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3333
|
-
method: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
3334
|
-
searchSpaceList: jspb.Message.toObjectList(msg.getSearchSpaceList(),
|
|
3335
|
-
proto.trb.strategy.v1.ParamRange.toObject, includeInstance),
|
|
3336
|
-
structure: (f = msg.getStructure()) && proto.trb.strategy.v1.StructureSpace.toObject(includeInstance, f),
|
|
3337
|
-
objective: (f = msg.getObjective()) && proto.trb.strategy.v1.Objective.toObject(includeInstance, f),
|
|
3338
|
-
budget: (f = msg.getBudget()) && proto.trb.strategy.v1.SearchBudget.toObject(includeInstance, f),
|
|
3339
|
-
config: (f = msg.getConfig()) && strategy_backtest_pb.BacktestConfig.toObject(includeInstance, f),
|
|
3340
|
-
progress: (f = msg.getProgress()) && proto.trb.strategy.v1.SearchProgress.toObject(includeInstance, f),
|
|
3341
|
-
engineVersion: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
3342
|
-
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3343
|
-
startedAt: (f = msg.getStartedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3344
|
-
finishedAt: (f = msg.getFinishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
3345
|
-
};
|
|
3346
|
-
|
|
3347
|
-
if (includeInstance) {
|
|
3348
|
-
obj.$jspbMessageInstance = msg;
|
|
3349
|
-
}
|
|
3350
|
-
return obj;
|
|
3351
|
-
};
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
/**
|
|
3356
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3357
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3358
|
-
* @return {!proto.trb.strategy.v1.SearchRun}
|
|
3359
|
-
*/
|
|
3360
|
-
proto.trb.strategy.v1.SearchRun.deserializeBinary = function(bytes) {
|
|
3361
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3362
|
-
var msg = new proto.trb.strategy.v1.SearchRun;
|
|
3363
|
-
return proto.trb.strategy.v1.SearchRun.deserializeBinaryFromReader(msg, reader);
|
|
3364
|
-
};
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
/**
|
|
3368
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3369
|
-
* given reader into the given message object.
|
|
3370
|
-
* @param {!proto.trb.strategy.v1.SearchRun} msg The message object to deserialize into.
|
|
3371
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3372
|
-
* @return {!proto.trb.strategy.v1.SearchRun}
|
|
3373
|
-
*/
|
|
3374
|
-
proto.trb.strategy.v1.SearchRun.deserializeBinaryFromReader = function(msg, reader) {
|
|
3375
|
-
while (reader.nextField()) {
|
|
3376
|
-
if (reader.isEndGroup()) {
|
|
3377
|
-
break;
|
|
3378
|
-
}
|
|
3379
|
-
var field = reader.getFieldNumber();
|
|
3380
|
-
switch (field) {
|
|
3381
|
-
case 1:
|
|
3382
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3383
|
-
msg.setSearchId(value);
|
|
3384
|
-
break;
|
|
3385
|
-
case 2:
|
|
3386
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3387
|
-
msg.setBaseStrategyId(value);
|
|
3388
|
-
break;
|
|
3389
|
-
case 3:
|
|
3390
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3391
|
-
msg.setName(value);
|
|
3392
|
-
break;
|
|
3393
|
-
case 4:
|
|
3394
|
-
var value = /** @type {!proto.trb.strategy.v1.SearchMethod} */ (reader.readEnum());
|
|
3395
|
-
msg.setMethod(value);
|
|
3396
|
-
break;
|
|
3397
|
-
case 5:
|
|
3398
|
-
var value = new proto.trb.strategy.v1.ParamRange;
|
|
3399
|
-
reader.readMessage(value,proto.trb.strategy.v1.ParamRange.deserializeBinaryFromReader);
|
|
3400
|
-
msg.addSearchSpace(value);
|
|
3401
|
-
break;
|
|
3402
|
-
case 6:
|
|
3403
|
-
var value = new proto.trb.strategy.v1.StructureSpace;
|
|
3404
|
-
reader.readMessage(value,proto.trb.strategy.v1.StructureSpace.deserializeBinaryFromReader);
|
|
3405
|
-
msg.setStructure(value);
|
|
3406
|
-
break;
|
|
3407
|
-
case 7:
|
|
3408
|
-
var value = new proto.trb.strategy.v1.Objective;
|
|
3409
|
-
reader.readMessage(value,proto.trb.strategy.v1.Objective.deserializeBinaryFromReader);
|
|
3410
|
-
msg.setObjective(value);
|
|
3411
|
-
break;
|
|
3412
|
-
case 8:
|
|
3413
|
-
var value = new proto.trb.strategy.v1.SearchBudget;
|
|
3414
|
-
reader.readMessage(value,proto.trb.strategy.v1.SearchBudget.deserializeBinaryFromReader);
|
|
3415
|
-
msg.setBudget(value);
|
|
3416
|
-
break;
|
|
3417
|
-
case 9:
|
|
3418
|
-
var value = new strategy_backtest_pb.BacktestConfig;
|
|
3419
|
-
reader.readMessage(value,strategy_backtest_pb.BacktestConfig.deserializeBinaryFromReader);
|
|
3420
|
-
msg.setConfig(value);
|
|
3421
|
-
break;
|
|
3422
|
-
case 10:
|
|
3423
|
-
var value = new proto.trb.strategy.v1.SearchProgress;
|
|
3424
|
-
reader.readMessage(value,proto.trb.strategy.v1.SearchProgress.deserializeBinaryFromReader);
|
|
3425
|
-
msg.setProgress(value);
|
|
3426
|
-
break;
|
|
3427
|
-
case 11:
|
|
3428
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3429
|
-
msg.setEngineVersion(value);
|
|
3430
|
-
break;
|
|
3431
|
-
case 12:
|
|
3432
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3433
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3434
|
-
msg.setCreatedAt(value);
|
|
3435
|
-
break;
|
|
3436
|
-
case 13:
|
|
3437
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3438
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3439
|
-
msg.setStartedAt(value);
|
|
3440
|
-
break;
|
|
3441
|
-
case 14:
|
|
3442
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3443
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3444
|
-
msg.setFinishedAt(value);
|
|
3445
|
-
break;
|
|
3446
|
-
default:
|
|
3447
|
-
reader.skipField();
|
|
3448
|
-
break;
|
|
3449
|
-
}
|
|
3450
|
-
}
|
|
3451
|
-
return msg;
|
|
3452
|
-
};
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
/**
|
|
3456
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3457
|
-
* @return {!Uint8Array}
|
|
3458
|
-
*/
|
|
3459
|
-
proto.trb.strategy.v1.SearchRun.prototype.serializeBinary = function() {
|
|
3460
|
-
var writer = new jspb.BinaryWriter();
|
|
3461
|
-
proto.trb.strategy.v1.SearchRun.serializeBinaryToWriter(this, writer);
|
|
3462
|
-
return writer.getResultBuffer();
|
|
3463
|
-
};
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
/**
|
|
3467
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3468
|
-
* format), writing to the given BinaryWriter.
|
|
3469
|
-
* @param {!proto.trb.strategy.v1.SearchRun} message
|
|
3470
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3471
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3472
|
-
*/
|
|
3473
|
-
proto.trb.strategy.v1.SearchRun.serializeBinaryToWriter = function(message, writer) {
|
|
3474
|
-
var f = undefined;
|
|
3475
|
-
f = message.getSearchId();
|
|
3476
|
-
if (f.length > 0) {
|
|
3477
|
-
writer.writeString(
|
|
3478
|
-
1,
|
|
3479
|
-
f
|
|
3480
|
-
);
|
|
3481
|
-
}
|
|
3482
|
-
f = message.getBaseStrategyId();
|
|
3483
|
-
if (f.length > 0) {
|
|
3484
|
-
writer.writeString(
|
|
3485
|
-
2,
|
|
3486
|
-
f
|
|
3487
|
-
);
|
|
3488
|
-
}
|
|
3489
|
-
f = message.getName();
|
|
3490
|
-
if (f.length > 0) {
|
|
3491
|
-
writer.writeString(
|
|
3492
|
-
3,
|
|
3493
|
-
f
|
|
3494
|
-
);
|
|
3495
|
-
}
|
|
3496
|
-
f = message.getMethod();
|
|
3497
|
-
if (f !== 0.0) {
|
|
3498
|
-
writer.writeEnum(
|
|
3499
|
-
4,
|
|
3500
|
-
f
|
|
3501
|
-
);
|
|
3502
|
-
}
|
|
3503
|
-
f = message.getSearchSpaceList();
|
|
3504
|
-
if (f.length > 0) {
|
|
3505
|
-
writer.writeRepeatedMessage(
|
|
3506
|
-
5,
|
|
3507
|
-
f,
|
|
3508
|
-
proto.trb.strategy.v1.ParamRange.serializeBinaryToWriter
|
|
3509
|
-
);
|
|
3510
|
-
}
|
|
3511
|
-
f = message.getStructure();
|
|
3512
|
-
if (f != null) {
|
|
3513
|
-
writer.writeMessage(
|
|
3514
|
-
6,
|
|
3515
|
-
f,
|
|
3516
|
-
proto.trb.strategy.v1.StructureSpace.serializeBinaryToWriter
|
|
3517
|
-
);
|
|
3518
|
-
}
|
|
3519
|
-
f = message.getObjective();
|
|
3520
|
-
if (f != null) {
|
|
3521
|
-
writer.writeMessage(
|
|
3522
|
-
7,
|
|
3523
|
-
f,
|
|
3524
|
-
proto.trb.strategy.v1.Objective.serializeBinaryToWriter
|
|
3525
|
-
);
|
|
3526
|
-
}
|
|
3527
|
-
f = message.getBudget();
|
|
3528
|
-
if (f != null) {
|
|
3529
|
-
writer.writeMessage(
|
|
3530
|
-
8,
|
|
3531
|
-
f,
|
|
3532
|
-
proto.trb.strategy.v1.SearchBudget.serializeBinaryToWriter
|
|
3533
|
-
);
|
|
3534
|
-
}
|
|
3535
|
-
f = message.getConfig();
|
|
3536
|
-
if (f != null) {
|
|
3537
|
-
writer.writeMessage(
|
|
3538
|
-
9,
|
|
3539
|
-
f,
|
|
3540
|
-
strategy_backtest_pb.BacktestConfig.serializeBinaryToWriter
|
|
3541
|
-
);
|
|
3542
|
-
}
|
|
3543
|
-
f = message.getProgress();
|
|
3544
|
-
if (f != null) {
|
|
3545
|
-
writer.writeMessage(
|
|
3546
|
-
10,
|
|
3547
|
-
f,
|
|
3548
|
-
proto.trb.strategy.v1.SearchProgress.serializeBinaryToWriter
|
|
3549
|
-
);
|
|
3550
|
-
}
|
|
3551
|
-
f = message.getEngineVersion();
|
|
3552
|
-
if (f.length > 0) {
|
|
3553
|
-
writer.writeString(
|
|
3554
|
-
11,
|
|
3555
|
-
f
|
|
3556
|
-
);
|
|
3557
|
-
}
|
|
3558
|
-
f = message.getCreatedAt();
|
|
3559
|
-
if (f != null) {
|
|
3560
|
-
writer.writeMessage(
|
|
3561
|
-
12,
|
|
3562
|
-
f,
|
|
3563
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3564
|
-
);
|
|
3565
|
-
}
|
|
3566
|
-
f = message.getStartedAt();
|
|
3567
|
-
if (f != null) {
|
|
3568
|
-
writer.writeMessage(
|
|
3569
|
-
13,
|
|
3570
|
-
f,
|
|
3571
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3572
|
-
);
|
|
3573
|
-
}
|
|
3574
|
-
f = message.getFinishedAt();
|
|
3575
|
-
if (f != null) {
|
|
3576
|
-
writer.writeMessage(
|
|
3577
|
-
14,
|
|
3578
|
-
f,
|
|
3579
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3580
|
-
);
|
|
3581
|
-
}
|
|
3582
|
-
};
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
/**
|
|
3586
|
-
* optional string search_id = 1;
|
|
3587
|
-
* @return {string}
|
|
3588
|
-
*/
|
|
3589
|
-
proto.trb.strategy.v1.SearchRun.prototype.getSearchId = function() {
|
|
3590
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3591
|
-
};
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
/**
|
|
3595
|
-
* @param {string} value
|
|
3596
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3597
|
-
*/
|
|
3598
|
-
proto.trb.strategy.v1.SearchRun.prototype.setSearchId = function(value) {
|
|
3599
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3600
|
-
};
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
/**
|
|
3604
|
-
* optional string base_strategy_id = 2;
|
|
3605
|
-
* @return {string}
|
|
3606
|
-
*/
|
|
3607
|
-
proto.trb.strategy.v1.SearchRun.prototype.getBaseStrategyId = function() {
|
|
3608
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3609
|
-
};
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
/**
|
|
3613
|
-
* @param {string} value
|
|
3614
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3615
|
-
*/
|
|
3616
|
-
proto.trb.strategy.v1.SearchRun.prototype.setBaseStrategyId = function(value) {
|
|
3617
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3618
|
-
};
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
/**
|
|
3622
|
-
* optional string name = 3;
|
|
3623
|
-
* @return {string}
|
|
3624
|
-
*/
|
|
3625
|
-
proto.trb.strategy.v1.SearchRun.prototype.getName = function() {
|
|
3626
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3627
|
-
};
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
/**
|
|
3631
|
-
* @param {string} value
|
|
3632
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3633
|
-
*/
|
|
3634
|
-
proto.trb.strategy.v1.SearchRun.prototype.setName = function(value) {
|
|
3635
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3636
|
-
};
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
/**
|
|
3640
|
-
* optional SearchMethod method = 4;
|
|
3641
|
-
* @return {!proto.trb.strategy.v1.SearchMethod}
|
|
3642
|
-
*/
|
|
3643
|
-
proto.trb.strategy.v1.SearchRun.prototype.getMethod = function() {
|
|
3644
|
-
return /** @type {!proto.trb.strategy.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
3645
|
-
};
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
/**
|
|
3649
|
-
* @param {!proto.trb.strategy.v1.SearchMethod} value
|
|
3650
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3651
|
-
*/
|
|
3652
|
-
proto.trb.strategy.v1.SearchRun.prototype.setMethod = function(value) {
|
|
3653
|
-
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
3654
|
-
};
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
/**
|
|
3658
|
-
* repeated ParamRange search_space = 5;
|
|
3659
|
-
* @return {!Array<!proto.trb.strategy.v1.ParamRange>}
|
|
3660
|
-
*/
|
|
3661
|
-
proto.trb.strategy.v1.SearchRun.prototype.getSearchSpaceList = function() {
|
|
3662
|
-
return /** @type{!Array<!proto.trb.strategy.v1.ParamRange>} */ (
|
|
3663
|
-
jspb.Message.getRepeatedWrapperField(this, proto.trb.strategy.v1.ParamRange, 5));
|
|
3664
|
-
};
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
/**
|
|
3668
|
-
* @param {!Array<!proto.trb.strategy.v1.ParamRange>} value
|
|
3669
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3670
|
-
*/
|
|
3671
|
-
proto.trb.strategy.v1.SearchRun.prototype.setSearchSpaceList = function(value) {
|
|
3672
|
-
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
3673
|
-
};
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
/**
|
|
3677
|
-
* @param {!proto.trb.strategy.v1.ParamRange=} opt_value
|
|
3678
|
-
* @param {number=} opt_index
|
|
3679
|
-
* @return {!proto.trb.strategy.v1.ParamRange}
|
|
3680
|
-
*/
|
|
3681
|
-
proto.trb.strategy.v1.SearchRun.prototype.addSearchSpace = function(opt_value, opt_index) {
|
|
3682
|
-
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.trb.strategy.v1.ParamRange, opt_index);
|
|
3683
|
-
};
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
/**
|
|
3687
|
-
* Clears the list making it empty but non-null.
|
|
3688
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3689
|
-
*/
|
|
3690
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearSearchSpaceList = function() {
|
|
3691
|
-
return this.setSearchSpaceList([]);
|
|
3692
|
-
};
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
/**
|
|
3696
|
-
* optional StructureSpace structure = 6;
|
|
3697
|
-
* @return {?proto.trb.strategy.v1.StructureSpace}
|
|
3698
|
-
*/
|
|
3699
|
-
proto.trb.strategy.v1.SearchRun.prototype.getStructure = function() {
|
|
3700
|
-
return /** @type{?proto.trb.strategy.v1.StructureSpace} */ (
|
|
3701
|
-
jspb.Message.getWrapperField(this, proto.trb.strategy.v1.StructureSpace, 6));
|
|
3702
|
-
};
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
/**
|
|
3706
|
-
* @param {?proto.trb.strategy.v1.StructureSpace|undefined} value
|
|
3707
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3708
|
-
*/
|
|
3709
|
-
proto.trb.strategy.v1.SearchRun.prototype.setStructure = function(value) {
|
|
3710
|
-
return jspb.Message.setWrapperField(this, 6, value);
|
|
3711
|
-
};
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
/**
|
|
3715
|
-
* Clears the message field making it undefined.
|
|
3716
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3717
|
-
*/
|
|
3718
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearStructure = function() {
|
|
3719
|
-
return this.setStructure(undefined);
|
|
3720
|
-
};
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
/**
|
|
3724
|
-
* Returns whether this field is set.
|
|
3725
|
-
* @return {boolean}
|
|
3726
|
-
*/
|
|
3727
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasStructure = function() {
|
|
3728
|
-
return jspb.Message.getField(this, 6) != null;
|
|
3729
|
-
};
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
/**
|
|
3733
|
-
* optional Objective objective = 7;
|
|
3734
|
-
* @return {?proto.trb.strategy.v1.Objective}
|
|
3735
|
-
*/
|
|
3736
|
-
proto.trb.strategy.v1.SearchRun.prototype.getObjective = function() {
|
|
3737
|
-
return /** @type{?proto.trb.strategy.v1.Objective} */ (
|
|
3738
|
-
jspb.Message.getWrapperField(this, proto.trb.strategy.v1.Objective, 7));
|
|
3739
|
-
};
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
/**
|
|
3743
|
-
* @param {?proto.trb.strategy.v1.Objective|undefined} value
|
|
3744
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3745
|
-
*/
|
|
3746
|
-
proto.trb.strategy.v1.SearchRun.prototype.setObjective = function(value) {
|
|
3747
|
-
return jspb.Message.setWrapperField(this, 7, value);
|
|
3748
|
-
};
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
/**
|
|
3752
|
-
* Clears the message field making it undefined.
|
|
3753
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3754
|
-
*/
|
|
3755
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearObjective = function() {
|
|
3756
|
-
return this.setObjective(undefined);
|
|
3757
|
-
};
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
/**
|
|
3761
|
-
* Returns whether this field is set.
|
|
3762
|
-
* @return {boolean}
|
|
3763
|
-
*/
|
|
3764
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasObjective = function() {
|
|
3765
|
-
return jspb.Message.getField(this, 7) != null;
|
|
3766
|
-
};
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
/**
|
|
3770
|
-
* optional SearchBudget budget = 8;
|
|
3771
|
-
* @return {?proto.trb.strategy.v1.SearchBudget}
|
|
3772
|
-
*/
|
|
3773
|
-
proto.trb.strategy.v1.SearchRun.prototype.getBudget = function() {
|
|
3774
|
-
return /** @type{?proto.trb.strategy.v1.SearchBudget} */ (
|
|
3775
|
-
jspb.Message.getWrapperField(this, proto.trb.strategy.v1.SearchBudget, 8));
|
|
3776
|
-
};
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
/**
|
|
3780
|
-
* @param {?proto.trb.strategy.v1.SearchBudget|undefined} value
|
|
3781
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3782
|
-
*/
|
|
3783
|
-
proto.trb.strategy.v1.SearchRun.prototype.setBudget = function(value) {
|
|
3784
|
-
return jspb.Message.setWrapperField(this, 8, value);
|
|
3785
|
-
};
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
/**
|
|
3789
|
-
* Clears the message field making it undefined.
|
|
3790
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3791
|
-
*/
|
|
3792
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearBudget = function() {
|
|
3793
|
-
return this.setBudget(undefined);
|
|
3794
|
-
};
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
/**
|
|
3798
|
-
* Returns whether this field is set.
|
|
3799
|
-
* @return {boolean}
|
|
3800
|
-
*/
|
|
3801
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasBudget = function() {
|
|
3802
|
-
return jspb.Message.getField(this, 8) != null;
|
|
3803
|
-
};
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
/**
|
|
3807
|
-
* optional BacktestConfig config = 9;
|
|
3808
|
-
* @return {?proto.trb.strategy.v1.BacktestConfig}
|
|
3809
|
-
*/
|
|
3810
|
-
proto.trb.strategy.v1.SearchRun.prototype.getConfig = function() {
|
|
3811
|
-
return /** @type{?proto.trb.strategy.v1.BacktestConfig} */ (
|
|
3812
|
-
jspb.Message.getWrapperField(this, strategy_backtest_pb.BacktestConfig, 9));
|
|
3813
|
-
};
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
/**
|
|
3817
|
-
* @param {?proto.trb.strategy.v1.BacktestConfig|undefined} value
|
|
3818
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3819
|
-
*/
|
|
3820
|
-
proto.trb.strategy.v1.SearchRun.prototype.setConfig = function(value) {
|
|
3821
|
-
return jspb.Message.setWrapperField(this, 9, value);
|
|
3822
|
-
};
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
/**
|
|
3826
|
-
* Clears the message field making it undefined.
|
|
3827
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3828
|
-
*/
|
|
3829
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearConfig = function() {
|
|
3830
|
-
return this.setConfig(undefined);
|
|
3831
|
-
};
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
/**
|
|
3835
|
-
* Returns whether this field is set.
|
|
3836
|
-
* @return {boolean}
|
|
3837
|
-
*/
|
|
3838
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasConfig = function() {
|
|
3839
|
-
return jspb.Message.getField(this, 9) != null;
|
|
3840
|
-
};
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
/**
|
|
3844
|
-
* optional SearchProgress progress = 10;
|
|
3845
|
-
* @return {?proto.trb.strategy.v1.SearchProgress}
|
|
3846
|
-
*/
|
|
3847
|
-
proto.trb.strategy.v1.SearchRun.prototype.getProgress = function() {
|
|
3848
|
-
return /** @type{?proto.trb.strategy.v1.SearchProgress} */ (
|
|
3849
|
-
jspb.Message.getWrapperField(this, proto.trb.strategy.v1.SearchProgress, 10));
|
|
3850
|
-
};
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
/**
|
|
3854
|
-
* @param {?proto.trb.strategy.v1.SearchProgress|undefined} value
|
|
3855
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3856
|
-
*/
|
|
3857
|
-
proto.trb.strategy.v1.SearchRun.prototype.setProgress = function(value) {
|
|
3858
|
-
return jspb.Message.setWrapperField(this, 10, value);
|
|
3859
|
-
};
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
/**
|
|
3863
|
-
* Clears the message field making it undefined.
|
|
3864
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3865
|
-
*/
|
|
3866
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearProgress = function() {
|
|
3867
|
-
return this.setProgress(undefined);
|
|
3868
|
-
};
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
/**
|
|
3872
|
-
* Returns whether this field is set.
|
|
3873
|
-
* @return {boolean}
|
|
3874
|
-
*/
|
|
3875
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasProgress = function() {
|
|
3876
|
-
return jspb.Message.getField(this, 10) != null;
|
|
3877
|
-
};
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
/**
|
|
3881
|
-
* optional string engine_version = 11;
|
|
3882
|
-
* @return {string}
|
|
3883
|
-
*/
|
|
3884
|
-
proto.trb.strategy.v1.SearchRun.prototype.getEngineVersion = function() {
|
|
3885
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
3886
|
-
};
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
/**
|
|
3890
|
-
* @param {string} value
|
|
3891
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3892
|
-
*/
|
|
3893
|
-
proto.trb.strategy.v1.SearchRun.prototype.setEngineVersion = function(value) {
|
|
3894
|
-
return jspb.Message.setProto3StringField(this, 11, value);
|
|
3895
|
-
};
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
/**
|
|
3899
|
-
* optional google.protobuf.Timestamp created_at = 12;
|
|
3900
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
3901
|
-
*/
|
|
3902
|
-
proto.trb.strategy.v1.SearchRun.prototype.getCreatedAt = function() {
|
|
3903
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3904
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
|
|
3905
|
-
};
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
/**
|
|
3909
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3910
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3911
|
-
*/
|
|
3912
|
-
proto.trb.strategy.v1.SearchRun.prototype.setCreatedAt = function(value) {
|
|
3913
|
-
return jspb.Message.setWrapperField(this, 12, value);
|
|
3914
|
-
};
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
/**
|
|
3918
|
-
* Clears the message field making it undefined.
|
|
3919
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3920
|
-
*/
|
|
3921
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearCreatedAt = function() {
|
|
3922
|
-
return this.setCreatedAt(undefined);
|
|
3923
|
-
};
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
/**
|
|
3927
|
-
* Returns whether this field is set.
|
|
3928
|
-
* @return {boolean}
|
|
3929
|
-
*/
|
|
3930
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasCreatedAt = function() {
|
|
3931
|
-
return jspb.Message.getField(this, 12) != null;
|
|
3932
|
-
};
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
/**
|
|
3936
|
-
* optional google.protobuf.Timestamp started_at = 13;
|
|
3937
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
3938
|
-
*/
|
|
3939
|
-
proto.trb.strategy.v1.SearchRun.prototype.getStartedAt = function() {
|
|
3940
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3941
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 13));
|
|
3942
|
-
};
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
/**
|
|
3946
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3947
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3948
|
-
*/
|
|
3949
|
-
proto.trb.strategy.v1.SearchRun.prototype.setStartedAt = function(value) {
|
|
3950
|
-
return jspb.Message.setWrapperField(this, 13, value);
|
|
3951
|
-
};
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
/**
|
|
3955
|
-
* Clears the message field making it undefined.
|
|
3956
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3957
|
-
*/
|
|
3958
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearStartedAt = function() {
|
|
3959
|
-
return this.setStartedAt(undefined);
|
|
3960
|
-
};
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
/**
|
|
3964
|
-
* Returns whether this field is set.
|
|
3965
|
-
* @return {boolean}
|
|
3966
|
-
*/
|
|
3967
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasStartedAt = function() {
|
|
3968
|
-
return jspb.Message.getField(this, 13) != null;
|
|
3969
|
-
};
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
/**
|
|
3973
|
-
* optional google.protobuf.Timestamp finished_at = 14;
|
|
3974
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
3975
|
-
*/
|
|
3976
|
-
proto.trb.strategy.v1.SearchRun.prototype.getFinishedAt = function() {
|
|
3977
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3978
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 14));
|
|
3979
|
-
};
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
/**
|
|
3983
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3984
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3985
|
-
*/
|
|
3986
|
-
proto.trb.strategy.v1.SearchRun.prototype.setFinishedAt = function(value) {
|
|
3987
|
-
return jspb.Message.setWrapperField(this, 14, value);
|
|
3988
|
-
};
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
/**
|
|
3992
|
-
* Clears the message field making it undefined.
|
|
3993
|
-
* @return {!proto.trb.strategy.v1.SearchRun} returns this
|
|
3994
|
-
*/
|
|
3995
|
-
proto.trb.strategy.v1.SearchRun.prototype.clearFinishedAt = function() {
|
|
3996
|
-
return this.setFinishedAt(undefined);
|
|
3997
|
-
};
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
/**
|
|
4001
|
-
* Returns whether this field is set.
|
|
4002
|
-
* @return {boolean}
|
|
4003
|
-
*/
|
|
4004
|
-
proto.trb.strategy.v1.SearchRun.prototype.hasFinishedAt = function() {
|
|
4005
|
-
return jspb.Message.getField(this, 14) != null;
|
|
4006
|
-
};
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4013
|
-
/**
|
|
4014
|
-
* Creates an object representation of this proto.
|
|
4015
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4016
|
-
* Optional fields that are not set will be set to undefined.
|
|
4017
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4018
|
-
* For the list of reserved names please see:
|
|
4019
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4020
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4021
|
-
* JSPB instance for transitional soy proto support:
|
|
4022
|
-
* http://goto/soy-param-migration
|
|
4023
|
-
* @return {!Object}
|
|
4024
|
-
*/
|
|
4025
|
-
proto.trb.strategy.v1.SearchTask.prototype.toObject = function(opt_includeInstance) {
|
|
4026
|
-
return proto.trb.strategy.v1.SearchTask.toObject(opt_includeInstance, this);
|
|
4027
|
-
};
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
/**
|
|
4031
|
-
* Static version of the {@see toObject} method.
|
|
4032
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4033
|
-
* the JSPB instance for transitional soy proto support:
|
|
4034
|
-
* http://goto/soy-param-migration
|
|
4035
|
-
* @param {!proto.trb.strategy.v1.SearchTask} msg The msg instance to transform.
|
|
4036
|
-
* @return {!Object}
|
|
4037
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4038
|
-
*/
|
|
4039
|
-
proto.trb.strategy.v1.SearchTask.toObject = function(includeInstance, msg) {
|
|
4040
|
-
var f, obj = {
|
|
4041
|
-
searchId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4042
|
-
};
|
|
4043
|
-
|
|
4044
|
-
if (includeInstance) {
|
|
4045
|
-
obj.$jspbMessageInstance = msg;
|
|
4046
|
-
}
|
|
4047
|
-
return obj;
|
|
4048
|
-
};
|
|
4049
|
-
}
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
/**
|
|
4053
|
-
* Deserializes binary data (in protobuf wire format).
|
|
4054
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4055
|
-
* @return {!proto.trb.strategy.v1.SearchTask}
|
|
4056
|
-
*/
|
|
4057
|
-
proto.trb.strategy.v1.SearchTask.deserializeBinary = function(bytes) {
|
|
4058
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4059
|
-
var msg = new proto.trb.strategy.v1.SearchTask;
|
|
4060
|
-
return proto.trb.strategy.v1.SearchTask.deserializeBinaryFromReader(msg, reader);
|
|
4061
|
-
};
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
/**
|
|
4065
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
4066
|
-
* given reader into the given message object.
|
|
4067
|
-
* @param {!proto.trb.strategy.v1.SearchTask} msg The message object to deserialize into.
|
|
4068
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4069
|
-
* @return {!proto.trb.strategy.v1.SearchTask}
|
|
4070
|
-
*/
|
|
4071
|
-
proto.trb.strategy.v1.SearchTask.deserializeBinaryFromReader = function(msg, reader) {
|
|
4072
|
-
while (reader.nextField()) {
|
|
4073
|
-
if (reader.isEndGroup()) {
|
|
4074
|
-
break;
|
|
4075
|
-
}
|
|
4076
|
-
var field = reader.getFieldNumber();
|
|
4077
|
-
switch (field) {
|
|
4078
|
-
case 1:
|
|
4079
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4080
|
-
msg.setSearchId(value);
|
|
4081
|
-
break;
|
|
4082
|
-
default:
|
|
4083
|
-
reader.skipField();
|
|
4084
|
-
break;
|
|
4085
|
-
}
|
|
4086
|
-
}
|
|
4087
|
-
return msg;
|
|
4088
|
-
};
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
/**
|
|
4092
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
4093
|
-
* @return {!Uint8Array}
|
|
4094
|
-
*/
|
|
4095
|
-
proto.trb.strategy.v1.SearchTask.prototype.serializeBinary = function() {
|
|
4096
|
-
var writer = new jspb.BinaryWriter();
|
|
4097
|
-
proto.trb.strategy.v1.SearchTask.serializeBinaryToWriter(this, writer);
|
|
4098
|
-
return writer.getResultBuffer();
|
|
4099
|
-
};
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
/**
|
|
4103
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
4104
|
-
* format), writing to the given BinaryWriter.
|
|
4105
|
-
* @param {!proto.trb.strategy.v1.SearchTask} message
|
|
4106
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4107
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4108
|
-
*/
|
|
4109
|
-
proto.trb.strategy.v1.SearchTask.serializeBinaryToWriter = function(message, writer) {
|
|
4110
|
-
var f = undefined;
|
|
4111
|
-
f = message.getSearchId();
|
|
4112
|
-
if (f.length > 0) {
|
|
4113
|
-
writer.writeString(
|
|
4114
|
-
1,
|
|
4115
|
-
f
|
|
4116
|
-
);
|
|
4117
|
-
}
|
|
4118
|
-
};
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
/**
|
|
4122
|
-
* optional string search_id = 1;
|
|
4123
|
-
* @return {string}
|
|
4124
|
-
*/
|
|
4125
|
-
proto.trb.strategy.v1.SearchTask.prototype.getSearchId = function() {
|
|
4126
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4127
|
-
};
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
/**
|
|
4131
|
-
* @param {string} value
|
|
4132
|
-
* @return {!proto.trb.strategy.v1.SearchTask} returns this
|
|
4133
|
-
*/
|
|
4134
|
-
proto.trb.strategy.v1.SearchTask.prototype.setSearchId = function(value) {
|
|
4135
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4136
|
-
};
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
/**
|
|
4140
|
-
* @enum {number}
|
|
4141
|
-
*/
|
|
4142
|
-
proto.trb.strategy.v1.SearchMethod = {
|
|
4143
|
-
SEARCH_METHOD_UNSPECIFIED: 0,
|
|
4144
|
-
SEARCH_METHOD_GENETIC: 1
|
|
4145
|
-
};
|
|
4146
|
-
|
|
4147
|
-
goog.object.extend(exports, proto.trb.strategy.v1);
|