@marleena/trb-proto 1.0.43 → 1.0.45

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.
@@ -25,17 +25,12 @@ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
25
25
  goog.object.extend(proto, google_api_annotations_pb);
26
26
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
27
  goog.object.extend(proto, google_protobuf_timestamp_pb);
28
- goog.exportSymbol('proto.trb.indicators.v1.Candle', null, global);
29
- goog.exportSymbol('proto.trb.indicators.v1.ComputeForInstrumentRequest', null, global);
30
- goog.exportSymbol('proto.trb.indicators.v1.ComputeRequest', null, global);
31
- goog.exportSymbol('proto.trb.indicators.v1.ComputeResponse', null, global);
32
- goog.exportSymbol('proto.trb.indicators.v1.IndicatorInfo', null, global);
33
- goog.exportSymbol('proto.trb.indicators.v1.IndicatorPoint', null, global);
34
- goog.exportSymbol('proto.trb.indicators.v1.IndicatorType', null, global);
35
- goog.exportSymbol('proto.trb.indicators.v1.ListIndicatorValuesRequest', null, global);
36
- goog.exportSymbol('proto.trb.indicators.v1.ListIndicatorValuesResponse', null, global);
37
- goog.exportSymbol('proto.trb.indicators.v1.ListSupportedRequest', null, global);
38
- goog.exportSymbol('proto.trb.indicators.v1.ListSupportedResponse', null, global);
28
+ var indicators_params_pb = require('../indicators/params_pb.js');
29
+ goog.object.extend(proto, indicators_params_pb);
30
+ goog.exportSymbol('proto.trb.indicators.v1.DeleteSettingsResponse', null, global);
31
+ goog.exportSymbol('proto.trb.indicators.v1.Settings', null, global);
32
+ goog.exportSymbol('proto.trb.indicators.v1.SettingsHash', null, global);
33
+ goog.exportSymbol('proto.trb.indicators.v1.UpdateSettingsResponse', null, global);
39
34
  /**
40
35
  * Generated by JsPbCodeGenerator.
41
36
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -46,16 +41,16 @@ goog.exportSymbol('proto.trb.indicators.v1.ListSupportedResponse', null, global)
46
41
  * @extends {jspb.Message}
47
42
  * @constructor
48
43
  */
49
- proto.trb.indicators.v1.Candle = function(opt_data) {
44
+ proto.trb.indicators.v1.Settings = function(opt_data) {
50
45
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
51
46
  };
52
- goog.inherits(proto.trb.indicators.v1.Candle, jspb.Message);
47
+ goog.inherits(proto.trb.indicators.v1.Settings, jspb.Message);
53
48
  if (goog.DEBUG && !COMPILED) {
54
49
  /**
55
50
  * @public
56
51
  * @override
57
52
  */
58
- proto.trb.indicators.v1.Candle.displayName = 'proto.trb.indicators.v1.Candle';
53
+ proto.trb.indicators.v1.Settings.displayName = 'proto.trb.indicators.v1.Settings';
59
54
  }
60
55
  /**
61
56
  * Generated by JsPbCodeGenerator.
@@ -67,1967 +62,59 @@ if (goog.DEBUG && !COMPILED) {
67
62
  * @extends {jspb.Message}
68
63
  * @constructor
69
64
  */
70
- proto.trb.indicators.v1.ComputeRequest = function(opt_data) {
71
- jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.indicators.v1.ComputeRequest.repeatedFields_, null);
72
- };
73
- goog.inherits(proto.trb.indicators.v1.ComputeRequest, jspb.Message);
74
- if (goog.DEBUG && !COMPILED) {
75
- /**
76
- * @public
77
- * @override
78
- */
79
- proto.trb.indicators.v1.ComputeRequest.displayName = 'proto.trb.indicators.v1.ComputeRequest';
80
- }
81
- /**
82
- * Generated by JsPbCodeGenerator.
83
- * @param {Array=} opt_data Optional initial data array, typically from a
84
- * server response, or constructed directly in Javascript. The array is used
85
- * in place and becomes part of the constructed object. It is not cloned.
86
- * If no data is provided, the constructed object will be empty, but still
87
- * valid.
88
- * @extends {jspb.Message}
89
- * @constructor
90
- */
91
- proto.trb.indicators.v1.ComputeForInstrumentRequest = function(opt_data) {
92
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
93
- };
94
- goog.inherits(proto.trb.indicators.v1.ComputeForInstrumentRequest, jspb.Message);
95
- if (goog.DEBUG && !COMPILED) {
96
- /**
97
- * @public
98
- * @override
99
- */
100
- proto.trb.indicators.v1.ComputeForInstrumentRequest.displayName = 'proto.trb.indicators.v1.ComputeForInstrumentRequest';
101
- }
102
- /**
103
- * Generated by JsPbCodeGenerator.
104
- * @param {Array=} opt_data Optional initial data array, typically from a
105
- * server response, or constructed directly in Javascript. The array is used
106
- * in place and becomes part of the constructed object. It is not cloned.
107
- * If no data is provided, the constructed object will be empty, but still
108
- * valid.
109
- * @extends {jspb.Message}
110
- * @constructor
111
- */
112
- proto.trb.indicators.v1.ListIndicatorValuesRequest = function(opt_data) {
113
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
114
- };
115
- goog.inherits(proto.trb.indicators.v1.ListIndicatorValuesRequest, jspb.Message);
116
- if (goog.DEBUG && !COMPILED) {
117
- /**
118
- * @public
119
- * @override
120
- */
121
- proto.trb.indicators.v1.ListIndicatorValuesRequest.displayName = 'proto.trb.indicators.v1.ListIndicatorValuesRequest';
122
- }
123
- /**
124
- * Generated by JsPbCodeGenerator.
125
- * @param {Array=} opt_data Optional initial data array, typically from a
126
- * server response, or constructed directly in Javascript. The array is used
127
- * in place and becomes part of the constructed object. It is not cloned.
128
- * If no data is provided, the constructed object will be empty, but still
129
- * valid.
130
- * @extends {jspb.Message}
131
- * @constructor
132
- */
133
- proto.trb.indicators.v1.IndicatorPoint = function(opt_data) {
134
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
135
- };
136
- goog.inherits(proto.trb.indicators.v1.IndicatorPoint, jspb.Message);
137
- if (goog.DEBUG && !COMPILED) {
138
- /**
139
- * @public
140
- * @override
141
- */
142
- proto.trb.indicators.v1.IndicatorPoint.displayName = 'proto.trb.indicators.v1.IndicatorPoint';
143
- }
144
- /**
145
- * Generated by JsPbCodeGenerator.
146
- * @param {Array=} opt_data Optional initial data array, typically from a
147
- * server response, or constructed directly in Javascript. The array is used
148
- * in place and becomes part of the constructed object. It is not cloned.
149
- * If no data is provided, the constructed object will be empty, but still
150
- * valid.
151
- * @extends {jspb.Message}
152
- * @constructor
153
- */
154
- proto.trb.indicators.v1.ComputeResponse = function(opt_data) {
155
- jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.indicators.v1.ComputeResponse.repeatedFields_, null);
156
- };
157
- goog.inherits(proto.trb.indicators.v1.ComputeResponse, jspb.Message);
158
- if (goog.DEBUG && !COMPILED) {
159
- /**
160
- * @public
161
- * @override
162
- */
163
- proto.trb.indicators.v1.ComputeResponse.displayName = 'proto.trb.indicators.v1.ComputeResponse';
164
- }
165
- /**
166
- * Generated by JsPbCodeGenerator.
167
- * @param {Array=} opt_data Optional initial data array, typically from a
168
- * server response, or constructed directly in Javascript. The array is used
169
- * in place and becomes part of the constructed object. It is not cloned.
170
- * If no data is provided, the constructed object will be empty, but still
171
- * valid.
172
- * @extends {jspb.Message}
173
- * @constructor
174
- */
175
- proto.trb.indicators.v1.ListIndicatorValuesResponse = function(opt_data) {
176
- jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.indicators.v1.ListIndicatorValuesResponse.repeatedFields_, null);
177
- };
178
- goog.inherits(proto.trb.indicators.v1.ListIndicatorValuesResponse, jspb.Message);
179
- if (goog.DEBUG && !COMPILED) {
180
- /**
181
- * @public
182
- * @override
183
- */
184
- proto.trb.indicators.v1.ListIndicatorValuesResponse.displayName = 'proto.trb.indicators.v1.ListIndicatorValuesResponse';
185
- }
186
- /**
187
- * Generated by JsPbCodeGenerator.
188
- * @param {Array=} opt_data Optional initial data array, typically from a
189
- * server response, or constructed directly in Javascript. The array is used
190
- * in place and becomes part of the constructed object. It is not cloned.
191
- * If no data is provided, the constructed object will be empty, but still
192
- * valid.
193
- * @extends {jspb.Message}
194
- * @constructor
195
- */
196
- proto.trb.indicators.v1.IndicatorInfo = function(opt_data) {
197
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
198
- };
199
- goog.inherits(proto.trb.indicators.v1.IndicatorInfo, jspb.Message);
200
- if (goog.DEBUG && !COMPILED) {
201
- /**
202
- * @public
203
- * @override
204
- */
205
- proto.trb.indicators.v1.IndicatorInfo.displayName = 'proto.trb.indicators.v1.IndicatorInfo';
206
- }
207
- /**
208
- * Generated by JsPbCodeGenerator.
209
- * @param {Array=} opt_data Optional initial data array, typically from a
210
- * server response, or constructed directly in Javascript. The array is used
211
- * in place and becomes part of the constructed object. It is not cloned.
212
- * If no data is provided, the constructed object will be empty, but still
213
- * valid.
214
- * @extends {jspb.Message}
215
- * @constructor
216
- */
217
- proto.trb.indicators.v1.ListSupportedRequest = function(opt_data) {
218
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
219
- };
220
- goog.inherits(proto.trb.indicators.v1.ListSupportedRequest, jspb.Message);
221
- if (goog.DEBUG && !COMPILED) {
222
- /**
223
- * @public
224
- * @override
225
- */
226
- proto.trb.indicators.v1.ListSupportedRequest.displayName = 'proto.trb.indicators.v1.ListSupportedRequest';
227
- }
228
- /**
229
- * Generated by JsPbCodeGenerator.
230
- * @param {Array=} opt_data Optional initial data array, typically from a
231
- * server response, or constructed directly in Javascript. The array is used
232
- * in place and becomes part of the constructed object. It is not cloned.
233
- * If no data is provided, the constructed object will be empty, but still
234
- * valid.
235
- * @extends {jspb.Message}
236
- * @constructor
237
- */
238
- proto.trb.indicators.v1.ListSupportedResponse = function(opt_data) {
239
- jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.indicators.v1.ListSupportedResponse.repeatedFields_, null);
240
- };
241
- goog.inherits(proto.trb.indicators.v1.ListSupportedResponse, jspb.Message);
242
- if (goog.DEBUG && !COMPILED) {
243
- /**
244
- * @public
245
- * @override
246
- */
247
- proto.trb.indicators.v1.ListSupportedResponse.displayName = 'proto.trb.indicators.v1.ListSupportedResponse';
248
- }
249
-
250
-
251
-
252
- if (jspb.Message.GENERATE_TO_OBJECT) {
253
- /**
254
- * Creates an object representation of this proto.
255
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
256
- * Optional fields that are not set will be set to undefined.
257
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
258
- * For the list of reserved names please see:
259
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
260
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
261
- * JSPB instance for transitional soy proto support:
262
- * http://goto/soy-param-migration
263
- * @return {!Object}
264
- */
265
- proto.trb.indicators.v1.Candle.prototype.toObject = function(opt_includeInstance) {
266
- return proto.trb.indicators.v1.Candle.toObject(opt_includeInstance, this);
267
- };
268
-
269
-
270
- /**
271
- * Static version of the {@see toObject} method.
272
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
273
- * the JSPB instance for transitional soy proto support:
274
- * http://goto/soy-param-migration
275
- * @param {!proto.trb.indicators.v1.Candle} msg The msg instance to transform.
276
- * @return {!Object}
277
- * @suppress {unusedLocalVariables} f is only used for nested messages
278
- */
279
- proto.trb.indicators.v1.Candle.toObject = function(includeInstance, msg) {
280
- var f, obj = {
281
- time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
282
- open: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
283
- high: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
284
- low: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
285
- close: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
286
- volume: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0)
287
- };
288
-
289
- if (includeInstance) {
290
- obj.$jspbMessageInstance = msg;
291
- }
292
- return obj;
293
- };
294
- }
295
-
296
-
297
- /**
298
- * Deserializes binary data (in protobuf wire format).
299
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
300
- * @return {!proto.trb.indicators.v1.Candle}
301
- */
302
- proto.trb.indicators.v1.Candle.deserializeBinary = function(bytes) {
303
- var reader = new jspb.BinaryReader(bytes);
304
- var msg = new proto.trb.indicators.v1.Candle;
305
- return proto.trb.indicators.v1.Candle.deserializeBinaryFromReader(msg, reader);
306
- };
307
-
308
-
309
- /**
310
- * Deserializes binary data (in protobuf wire format) from the
311
- * given reader into the given message object.
312
- * @param {!proto.trb.indicators.v1.Candle} msg The message object to deserialize into.
313
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
314
- * @return {!proto.trb.indicators.v1.Candle}
315
- */
316
- proto.trb.indicators.v1.Candle.deserializeBinaryFromReader = function(msg, reader) {
317
- while (reader.nextField()) {
318
- if (reader.isEndGroup()) {
319
- break;
320
- }
321
- var field = reader.getFieldNumber();
322
- switch (field) {
323
- case 1:
324
- var value = new google_protobuf_timestamp_pb.Timestamp;
325
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
326
- msg.setTime(value);
327
- break;
328
- case 2:
329
- var value = /** @type {number} */ (reader.readDouble());
330
- msg.setOpen(value);
331
- break;
332
- case 3:
333
- var value = /** @type {number} */ (reader.readDouble());
334
- msg.setHigh(value);
335
- break;
336
- case 4:
337
- var value = /** @type {number} */ (reader.readDouble());
338
- msg.setLow(value);
339
- break;
340
- case 5:
341
- var value = /** @type {number} */ (reader.readDouble());
342
- msg.setClose(value);
343
- break;
344
- case 6:
345
- var value = /** @type {number} */ (reader.readDouble());
346
- msg.setVolume(value);
347
- break;
348
- default:
349
- reader.skipField();
350
- break;
351
- }
352
- }
353
- return msg;
354
- };
355
-
356
-
357
- /**
358
- * Serializes the message to binary data (in protobuf wire format).
359
- * @return {!Uint8Array}
360
- */
361
- proto.trb.indicators.v1.Candle.prototype.serializeBinary = function() {
362
- var writer = new jspb.BinaryWriter();
363
- proto.trb.indicators.v1.Candle.serializeBinaryToWriter(this, writer);
364
- return writer.getResultBuffer();
365
- };
366
-
367
-
368
- /**
369
- * Serializes the given message to binary data (in protobuf wire
370
- * format), writing to the given BinaryWriter.
371
- * @param {!proto.trb.indicators.v1.Candle} message
372
- * @param {!jspb.BinaryWriter} writer
373
- * @suppress {unusedLocalVariables} f is only used for nested messages
374
- */
375
- proto.trb.indicators.v1.Candle.serializeBinaryToWriter = function(message, writer) {
376
- var f = undefined;
377
- f = message.getTime();
378
- if (f != null) {
379
- writer.writeMessage(
380
- 1,
381
- f,
382
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
383
- );
384
- }
385
- f = message.getOpen();
386
- if (f !== 0.0) {
387
- writer.writeDouble(
388
- 2,
389
- f
390
- );
391
- }
392
- f = message.getHigh();
393
- if (f !== 0.0) {
394
- writer.writeDouble(
395
- 3,
396
- f
397
- );
398
- }
399
- f = message.getLow();
400
- if (f !== 0.0) {
401
- writer.writeDouble(
402
- 4,
403
- f
404
- );
405
- }
406
- f = message.getClose();
407
- if (f !== 0.0) {
408
- writer.writeDouble(
409
- 5,
410
- f
411
- );
412
- }
413
- f = message.getVolume();
414
- if (f !== 0.0) {
415
- writer.writeDouble(
416
- 6,
417
- f
418
- );
419
- }
420
- };
421
-
422
-
423
- /**
424
- * optional google.protobuf.Timestamp time = 1;
425
- * @return {?proto.google.protobuf.Timestamp}
426
- */
427
- proto.trb.indicators.v1.Candle.prototype.getTime = function() {
428
- return /** @type{?proto.google.protobuf.Timestamp} */ (
429
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
430
- };
431
-
432
-
433
- /**
434
- * @param {?proto.google.protobuf.Timestamp|undefined} value
435
- * @return {!proto.trb.indicators.v1.Candle} returns this
436
- */
437
- proto.trb.indicators.v1.Candle.prototype.setTime = function(value) {
438
- return jspb.Message.setWrapperField(this, 1, value);
439
- };
440
-
441
-
442
- /**
443
- * Clears the message field making it undefined.
444
- * @return {!proto.trb.indicators.v1.Candle} returns this
445
- */
446
- proto.trb.indicators.v1.Candle.prototype.clearTime = function() {
447
- return this.setTime(undefined);
448
- };
449
-
450
-
451
- /**
452
- * Returns whether this field is set.
453
- * @return {boolean}
454
- */
455
- proto.trb.indicators.v1.Candle.prototype.hasTime = function() {
456
- return jspb.Message.getField(this, 1) != null;
457
- };
458
-
459
-
460
- /**
461
- * optional double open = 2;
462
- * @return {number}
463
- */
464
- proto.trb.indicators.v1.Candle.prototype.getOpen = function() {
465
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
466
- };
467
-
468
-
469
- /**
470
- * @param {number} value
471
- * @return {!proto.trb.indicators.v1.Candle} returns this
472
- */
473
- proto.trb.indicators.v1.Candle.prototype.setOpen = function(value) {
474
- return jspb.Message.setProto3FloatField(this, 2, value);
475
- };
476
-
477
-
478
- /**
479
- * optional double high = 3;
480
- * @return {number}
481
- */
482
- proto.trb.indicators.v1.Candle.prototype.getHigh = function() {
483
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
484
- };
485
-
486
-
487
- /**
488
- * @param {number} value
489
- * @return {!proto.trb.indicators.v1.Candle} returns this
490
- */
491
- proto.trb.indicators.v1.Candle.prototype.setHigh = function(value) {
492
- return jspb.Message.setProto3FloatField(this, 3, value);
493
- };
494
-
495
-
496
- /**
497
- * optional double low = 4;
498
- * @return {number}
499
- */
500
- proto.trb.indicators.v1.Candle.prototype.getLow = function() {
501
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
502
- };
503
-
504
-
505
- /**
506
- * @param {number} value
507
- * @return {!proto.trb.indicators.v1.Candle} returns this
508
- */
509
- proto.trb.indicators.v1.Candle.prototype.setLow = function(value) {
510
- return jspb.Message.setProto3FloatField(this, 4, value);
511
- };
512
-
513
-
514
- /**
515
- * optional double close = 5;
516
- * @return {number}
517
- */
518
- proto.trb.indicators.v1.Candle.prototype.getClose = function() {
519
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
520
- };
521
-
522
-
523
- /**
524
- * @param {number} value
525
- * @return {!proto.trb.indicators.v1.Candle} returns this
526
- */
527
- proto.trb.indicators.v1.Candle.prototype.setClose = function(value) {
528
- return jspb.Message.setProto3FloatField(this, 5, value);
529
- };
530
-
531
-
532
- /**
533
- * optional double volume = 6;
534
- * @return {number}
535
- */
536
- proto.trb.indicators.v1.Candle.prototype.getVolume = function() {
537
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
538
- };
539
-
540
-
541
- /**
542
- * @param {number} value
543
- * @return {!proto.trb.indicators.v1.Candle} returns this
544
- */
545
- proto.trb.indicators.v1.Candle.prototype.setVolume = function(value) {
546
- return jspb.Message.setProto3FloatField(this, 6, value);
547
- };
548
-
549
-
550
-
551
- /**
552
- * List of repeated fields within this message type.
553
- * @private {!Array<number>}
554
- * @const
555
- */
556
- proto.trb.indicators.v1.ComputeRequest.repeatedFields_ = [2];
557
-
558
-
559
-
560
- if (jspb.Message.GENERATE_TO_OBJECT) {
561
- /**
562
- * Creates an object representation of this proto.
563
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
564
- * Optional fields that are not set will be set to undefined.
565
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
566
- * For the list of reserved names please see:
567
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
568
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
569
- * JSPB instance for transitional soy proto support:
570
- * http://goto/soy-param-migration
571
- * @return {!Object}
572
- */
573
- proto.trb.indicators.v1.ComputeRequest.prototype.toObject = function(opt_includeInstance) {
574
- return proto.trb.indicators.v1.ComputeRequest.toObject(opt_includeInstance, this);
575
- };
576
-
577
-
578
- /**
579
- * Static version of the {@see toObject} method.
580
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
581
- * the JSPB instance for transitional soy proto support:
582
- * http://goto/soy-param-migration
583
- * @param {!proto.trb.indicators.v1.ComputeRequest} msg The msg instance to transform.
584
- * @return {!Object}
585
- * @suppress {unusedLocalVariables} f is only used for nested messages
586
- */
587
- proto.trb.indicators.v1.ComputeRequest.toObject = function(includeInstance, msg) {
588
- var f, obj = {
589
- type: jspb.Message.getFieldWithDefault(msg, 1, 0),
590
- candlesList: jspb.Message.toObjectList(msg.getCandlesList(),
591
- proto.trb.indicators.v1.Candle.toObject, includeInstance),
592
- paramsMap: (f = msg.getParamsMap()) ? f.toObject(includeInstance, undefined) : []
593
- };
594
-
595
- if (includeInstance) {
596
- obj.$jspbMessageInstance = msg;
597
- }
598
- return obj;
599
- };
600
- }
601
-
602
-
603
- /**
604
- * Deserializes binary data (in protobuf wire format).
605
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
606
- * @return {!proto.trb.indicators.v1.ComputeRequest}
607
- */
608
- proto.trb.indicators.v1.ComputeRequest.deserializeBinary = function(bytes) {
609
- var reader = new jspb.BinaryReader(bytes);
610
- var msg = new proto.trb.indicators.v1.ComputeRequest;
611
- return proto.trb.indicators.v1.ComputeRequest.deserializeBinaryFromReader(msg, reader);
612
- };
613
-
614
-
615
- /**
616
- * Deserializes binary data (in protobuf wire format) from the
617
- * given reader into the given message object.
618
- * @param {!proto.trb.indicators.v1.ComputeRequest} msg The message object to deserialize into.
619
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
620
- * @return {!proto.trb.indicators.v1.ComputeRequest}
621
- */
622
- proto.trb.indicators.v1.ComputeRequest.deserializeBinaryFromReader = function(msg, reader) {
623
- while (reader.nextField()) {
624
- if (reader.isEndGroup()) {
625
- break;
626
- }
627
- var field = reader.getFieldNumber();
628
- switch (field) {
629
- case 1:
630
- var value = /** @type {!proto.trb.indicators.v1.IndicatorType} */ (reader.readEnum());
631
- msg.setType(value);
632
- break;
633
- case 2:
634
- var value = new proto.trb.indicators.v1.Candle;
635
- reader.readMessage(value,proto.trb.indicators.v1.Candle.deserializeBinaryFromReader);
636
- msg.addCandles(value);
637
- break;
638
- case 3:
639
- var value = msg.getParamsMap();
640
- reader.readMessage(value, function(message, reader) {
641
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
642
- });
643
- break;
644
- default:
645
- reader.skipField();
646
- break;
647
- }
648
- }
649
- return msg;
650
- };
651
-
652
-
653
- /**
654
- * Serializes the message to binary data (in protobuf wire format).
655
- * @return {!Uint8Array}
656
- */
657
- proto.trb.indicators.v1.ComputeRequest.prototype.serializeBinary = function() {
658
- var writer = new jspb.BinaryWriter();
659
- proto.trb.indicators.v1.ComputeRequest.serializeBinaryToWriter(this, writer);
660
- return writer.getResultBuffer();
661
- };
662
-
663
-
664
- /**
665
- * Serializes the given message to binary data (in protobuf wire
666
- * format), writing to the given BinaryWriter.
667
- * @param {!proto.trb.indicators.v1.ComputeRequest} message
668
- * @param {!jspb.BinaryWriter} writer
669
- * @suppress {unusedLocalVariables} f is only used for nested messages
670
- */
671
- proto.trb.indicators.v1.ComputeRequest.serializeBinaryToWriter = function(message, writer) {
672
- var f = undefined;
673
- f = message.getType();
674
- if (f !== 0.0) {
675
- writer.writeEnum(
676
- 1,
677
- f
678
- );
679
- }
680
- f = message.getCandlesList();
681
- if (f.length > 0) {
682
- writer.writeRepeatedMessage(
683
- 2,
684
- f,
685
- proto.trb.indicators.v1.Candle.serializeBinaryToWriter
686
- );
687
- }
688
- f = message.getParamsMap(true);
689
- if (f && f.getLength() > 0) {
690
- f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
691
- }
692
- };
693
-
694
-
695
- /**
696
- * optional IndicatorType type = 1;
697
- * @return {!proto.trb.indicators.v1.IndicatorType}
698
- */
699
- proto.trb.indicators.v1.ComputeRequest.prototype.getType = function() {
700
- return /** @type {!proto.trb.indicators.v1.IndicatorType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
701
- };
702
-
703
-
704
- /**
705
- * @param {!proto.trb.indicators.v1.IndicatorType} value
706
- * @return {!proto.trb.indicators.v1.ComputeRequest} returns this
707
- */
708
- proto.trb.indicators.v1.ComputeRequest.prototype.setType = function(value) {
709
- return jspb.Message.setProto3EnumField(this, 1, value);
710
- };
711
-
712
-
713
- /**
714
- * repeated Candle candles = 2;
715
- * @return {!Array<!proto.trb.indicators.v1.Candle>}
716
- */
717
- proto.trb.indicators.v1.ComputeRequest.prototype.getCandlesList = function() {
718
- return /** @type{!Array<!proto.trb.indicators.v1.Candle>} */ (
719
- jspb.Message.getRepeatedWrapperField(this, proto.trb.indicators.v1.Candle, 2));
720
- };
721
-
722
-
723
- /**
724
- * @param {!Array<!proto.trb.indicators.v1.Candle>} value
725
- * @return {!proto.trb.indicators.v1.ComputeRequest} returns this
726
- */
727
- proto.trb.indicators.v1.ComputeRequest.prototype.setCandlesList = function(value) {
728
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
729
- };
730
-
731
-
732
- /**
733
- * @param {!proto.trb.indicators.v1.Candle=} opt_value
734
- * @param {number=} opt_index
735
- * @return {!proto.trb.indicators.v1.Candle}
736
- */
737
- proto.trb.indicators.v1.ComputeRequest.prototype.addCandles = function(opt_value, opt_index) {
738
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.trb.indicators.v1.Candle, opt_index);
739
- };
740
-
741
-
742
- /**
743
- * Clears the list making it empty but non-null.
744
- * @return {!proto.trb.indicators.v1.ComputeRequest} returns this
745
- */
746
- proto.trb.indicators.v1.ComputeRequest.prototype.clearCandlesList = function() {
747
- return this.setCandlesList([]);
748
- };
749
-
750
-
751
- /**
752
- * map<string, double> params = 3;
753
- * @param {boolean=} opt_noLazyCreate Do not create the map if
754
- * empty, instead returning `undefined`
755
- * @return {!jspb.Map<string,number>}
756
- */
757
- proto.trb.indicators.v1.ComputeRequest.prototype.getParamsMap = function(opt_noLazyCreate) {
758
- return /** @type {!jspb.Map<string,number>} */ (
759
- jspb.Message.getMapField(this, 3, opt_noLazyCreate,
760
- null));
761
- };
762
-
763
-
764
- /**
765
- * Clears values from the map. The map will be non-null.
766
- * @return {!proto.trb.indicators.v1.ComputeRequest} returns this
767
- */
768
- proto.trb.indicators.v1.ComputeRequest.prototype.clearParamsMap = function() {
769
- this.getParamsMap().clear();
770
- return this;
771
- };
772
-
773
-
774
-
775
-
776
-
777
- if (jspb.Message.GENERATE_TO_OBJECT) {
778
- /**
779
- * Creates an object representation of this proto.
780
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
781
- * Optional fields that are not set will be set to undefined.
782
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
783
- * For the list of reserved names please see:
784
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
785
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
786
- * JSPB instance for transitional soy proto support:
787
- * http://goto/soy-param-migration
788
- * @return {!Object}
789
- */
790
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.toObject = function(opt_includeInstance) {
791
- return proto.trb.indicators.v1.ComputeForInstrumentRequest.toObject(opt_includeInstance, this);
792
- };
793
-
794
-
795
- /**
796
- * Static version of the {@see toObject} method.
797
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
798
- * the JSPB instance for transitional soy proto support:
799
- * http://goto/soy-param-migration
800
- * @param {!proto.trb.indicators.v1.ComputeForInstrumentRequest} msg The msg instance to transform.
801
- * @return {!Object}
802
- * @suppress {unusedLocalVariables} f is only used for nested messages
803
- */
804
- proto.trb.indicators.v1.ComputeForInstrumentRequest.toObject = function(includeInstance, msg) {
805
- var f, obj = {
806
- uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
807
- interval: jspb.Message.getFieldWithDefault(msg, 2, 0),
808
- from: (f = msg.getFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
809
- to: (f = msg.getTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
810
- type: jspb.Message.getFieldWithDefault(msg, 5, 0),
811
- paramsMap: (f = msg.getParamsMap()) ? f.toObject(includeInstance, undefined) : [],
812
- persist: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
813
- maxResponsePoints: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f
814
- };
815
-
816
- if (includeInstance) {
817
- obj.$jspbMessageInstance = msg;
818
- }
819
- return obj;
820
- };
821
- }
822
-
823
-
824
- /**
825
- * Deserializes binary data (in protobuf wire format).
826
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
827
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest}
828
- */
829
- proto.trb.indicators.v1.ComputeForInstrumentRequest.deserializeBinary = function(bytes) {
830
- var reader = new jspb.BinaryReader(bytes);
831
- var msg = new proto.trb.indicators.v1.ComputeForInstrumentRequest;
832
- return proto.trb.indicators.v1.ComputeForInstrumentRequest.deserializeBinaryFromReader(msg, reader);
833
- };
834
-
835
-
836
- /**
837
- * Deserializes binary data (in protobuf wire format) from the
838
- * given reader into the given message object.
839
- * @param {!proto.trb.indicators.v1.ComputeForInstrumentRequest} msg The message object to deserialize into.
840
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
841
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest}
842
- */
843
- proto.trb.indicators.v1.ComputeForInstrumentRequest.deserializeBinaryFromReader = function(msg, reader) {
844
- while (reader.nextField()) {
845
- if (reader.isEndGroup()) {
846
- break;
847
- }
848
- var field = reader.getFieldNumber();
849
- switch (field) {
850
- case 1:
851
- var value = /** @type {string} */ (reader.readString());
852
- msg.setUid(value);
853
- break;
854
- case 2:
855
- var value = /** @type {number} */ (reader.readInt32());
856
- msg.setInterval(value);
857
- break;
858
- case 3:
859
- var value = new google_protobuf_timestamp_pb.Timestamp;
860
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
861
- msg.setFrom(value);
862
- break;
863
- case 4:
864
- var value = new google_protobuf_timestamp_pb.Timestamp;
865
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
866
- msg.setTo(value);
867
- break;
868
- case 5:
869
- var value = /** @type {!proto.trb.indicators.v1.IndicatorType} */ (reader.readEnum());
870
- msg.setType(value);
871
- break;
872
- case 6:
873
- var value = msg.getParamsMap();
874
- reader.readMessage(value, function(message, reader) {
875
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
876
- });
877
- break;
878
- case 7:
879
- var value = /** @type {boolean} */ (reader.readBool());
880
- msg.setPersist(value);
881
- break;
882
- case 8:
883
- var value = /** @type {number} */ (reader.readInt32());
884
- msg.setMaxResponsePoints(value);
885
- break;
886
- default:
887
- reader.skipField();
888
- break;
889
- }
890
- }
891
- return msg;
892
- };
893
-
894
-
895
- /**
896
- * Serializes the message to binary data (in protobuf wire format).
897
- * @return {!Uint8Array}
898
- */
899
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.serializeBinary = function() {
900
- var writer = new jspb.BinaryWriter();
901
- proto.trb.indicators.v1.ComputeForInstrumentRequest.serializeBinaryToWriter(this, writer);
902
- return writer.getResultBuffer();
903
- };
904
-
905
-
906
- /**
907
- * Serializes the given message to binary data (in protobuf wire
908
- * format), writing to the given BinaryWriter.
909
- * @param {!proto.trb.indicators.v1.ComputeForInstrumentRequest} message
910
- * @param {!jspb.BinaryWriter} writer
911
- * @suppress {unusedLocalVariables} f is only used for nested messages
912
- */
913
- proto.trb.indicators.v1.ComputeForInstrumentRequest.serializeBinaryToWriter = function(message, writer) {
914
- var f = undefined;
915
- f = message.getUid();
916
- if (f.length > 0) {
917
- writer.writeString(
918
- 1,
919
- f
920
- );
921
- }
922
- f = message.getInterval();
923
- if (f !== 0) {
924
- writer.writeInt32(
925
- 2,
926
- f
927
- );
928
- }
929
- f = message.getFrom();
930
- if (f != null) {
931
- writer.writeMessage(
932
- 3,
933
- f,
934
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
935
- );
936
- }
937
- f = message.getTo();
938
- if (f != null) {
939
- writer.writeMessage(
940
- 4,
941
- f,
942
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
943
- );
944
- }
945
- f = message.getType();
946
- if (f !== 0.0) {
947
- writer.writeEnum(
948
- 5,
949
- f
950
- );
951
- }
952
- f = message.getParamsMap(true);
953
- if (f && f.getLength() > 0) {
954
- f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
955
- }
956
- f = message.getPersist();
957
- if (f) {
958
- writer.writeBool(
959
- 7,
960
- f
961
- );
962
- }
963
- f = /** @type {number} */ (jspb.Message.getField(message, 8));
964
- if (f != null) {
965
- writer.writeInt32(
966
- 8,
967
- f
968
- );
969
- }
970
- };
971
-
972
-
973
- /**
974
- * optional string uid = 1;
975
- * @return {string}
976
- */
977
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getUid = function() {
978
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
979
- };
980
-
981
-
982
- /**
983
- * @param {string} value
984
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
985
- */
986
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.setUid = function(value) {
987
- return jspb.Message.setProto3StringField(this, 1, value);
988
- };
989
-
990
-
991
- /**
992
- * optional int32 interval = 2;
993
- * @return {number}
994
- */
995
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getInterval = function() {
996
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
997
- };
998
-
999
-
1000
- /**
1001
- * @param {number} value
1002
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1003
- */
1004
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.setInterval = function(value) {
1005
- return jspb.Message.setProto3IntField(this, 2, value);
1006
- };
1007
-
1008
-
1009
- /**
1010
- * optional google.protobuf.Timestamp from = 3;
1011
- * @return {?proto.google.protobuf.Timestamp}
1012
- */
1013
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getFrom = function() {
1014
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1015
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1016
- };
1017
-
1018
-
1019
- /**
1020
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1021
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1022
- */
1023
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.setFrom = function(value) {
1024
- return jspb.Message.setWrapperField(this, 3, value);
1025
- };
1026
-
1027
-
1028
- /**
1029
- * Clears the message field making it undefined.
1030
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1031
- */
1032
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.clearFrom = function() {
1033
- return this.setFrom(undefined);
1034
- };
1035
-
1036
-
1037
- /**
1038
- * Returns whether this field is set.
1039
- * @return {boolean}
1040
- */
1041
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.hasFrom = function() {
1042
- return jspb.Message.getField(this, 3) != null;
1043
- };
1044
-
1045
-
1046
- /**
1047
- * optional google.protobuf.Timestamp to = 4;
1048
- * @return {?proto.google.protobuf.Timestamp}
1049
- */
1050
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getTo = function() {
1051
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1052
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1053
- };
1054
-
1055
-
1056
- /**
1057
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1058
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1059
- */
1060
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.setTo = function(value) {
1061
- return jspb.Message.setWrapperField(this, 4, value);
1062
- };
1063
-
1064
-
1065
- /**
1066
- * Clears the message field making it undefined.
1067
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1068
- */
1069
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.clearTo = function() {
1070
- return this.setTo(undefined);
1071
- };
1072
-
1073
-
1074
- /**
1075
- * Returns whether this field is set.
1076
- * @return {boolean}
1077
- */
1078
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.hasTo = function() {
1079
- return jspb.Message.getField(this, 4) != null;
1080
- };
1081
-
1082
-
1083
- /**
1084
- * optional IndicatorType type = 5;
1085
- * @return {!proto.trb.indicators.v1.IndicatorType}
1086
- */
1087
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getType = function() {
1088
- return /** @type {!proto.trb.indicators.v1.IndicatorType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1089
- };
1090
-
1091
-
1092
- /**
1093
- * @param {!proto.trb.indicators.v1.IndicatorType} value
1094
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1095
- */
1096
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.setType = function(value) {
1097
- return jspb.Message.setProto3EnumField(this, 5, value);
1098
- };
1099
-
1100
-
1101
- /**
1102
- * map<string, double> params = 6;
1103
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1104
- * empty, instead returning `undefined`
1105
- * @return {!jspb.Map<string,number>}
1106
- */
1107
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getParamsMap = function(opt_noLazyCreate) {
1108
- return /** @type {!jspb.Map<string,number>} */ (
1109
- jspb.Message.getMapField(this, 6, opt_noLazyCreate,
1110
- null));
1111
- };
1112
-
1113
-
1114
- /**
1115
- * Clears values from the map. The map will be non-null.
1116
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1117
- */
1118
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.clearParamsMap = function() {
1119
- this.getParamsMap().clear();
1120
- return this;
1121
- };
1122
-
1123
-
1124
- /**
1125
- * optional bool persist = 7;
1126
- * @return {boolean}
1127
- */
1128
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getPersist = function() {
1129
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
1130
- };
1131
-
1132
-
1133
- /**
1134
- * @param {boolean} value
1135
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1136
- */
1137
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.setPersist = function(value) {
1138
- return jspb.Message.setProto3BooleanField(this, 7, value);
1139
- };
1140
-
1141
-
1142
- /**
1143
- * optional int32 max_response_points = 8;
1144
- * @return {number}
1145
- */
1146
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.getMaxResponsePoints = function() {
1147
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1148
- };
1149
-
1150
-
1151
- /**
1152
- * @param {number} value
1153
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1154
- */
1155
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.setMaxResponsePoints = function(value) {
1156
- return jspb.Message.setField(this, 8, value);
1157
- };
1158
-
1159
-
1160
- /**
1161
- * Clears the field making it undefined.
1162
- * @return {!proto.trb.indicators.v1.ComputeForInstrumentRequest} returns this
1163
- */
1164
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.clearMaxResponsePoints = function() {
1165
- return jspb.Message.setField(this, 8, undefined);
1166
- };
1167
-
1168
-
1169
- /**
1170
- * Returns whether this field is set.
1171
- * @return {boolean}
1172
- */
1173
- proto.trb.indicators.v1.ComputeForInstrumentRequest.prototype.hasMaxResponsePoints = function() {
1174
- return jspb.Message.getField(this, 8) != null;
1175
- };
1176
-
1177
-
1178
-
1179
-
1180
-
1181
- if (jspb.Message.GENERATE_TO_OBJECT) {
1182
- /**
1183
- * Creates an object representation of this proto.
1184
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1185
- * Optional fields that are not set will be set to undefined.
1186
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1187
- * For the list of reserved names please see:
1188
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1189
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1190
- * JSPB instance for transitional soy proto support:
1191
- * http://goto/soy-param-migration
1192
- * @return {!Object}
1193
- */
1194
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.toObject = function(opt_includeInstance) {
1195
- return proto.trb.indicators.v1.ListIndicatorValuesRequest.toObject(opt_includeInstance, this);
1196
- };
1197
-
1198
-
1199
- /**
1200
- * Static version of the {@see toObject} method.
1201
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1202
- * the JSPB instance for transitional soy proto support:
1203
- * http://goto/soy-param-migration
1204
- * @param {!proto.trb.indicators.v1.ListIndicatorValuesRequest} msg The msg instance to transform.
1205
- * @return {!Object}
1206
- * @suppress {unusedLocalVariables} f is only used for nested messages
1207
- */
1208
- proto.trb.indicators.v1.ListIndicatorValuesRequest.toObject = function(includeInstance, msg) {
1209
- var f, obj = {
1210
- uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1211
- interval: jspb.Message.getFieldWithDefault(msg, 2, 0),
1212
- from: (f = msg.getFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1213
- to: (f = msg.getTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1214
- type: jspb.Message.getFieldWithDefault(msg, 5, 0),
1215
- paramsMap: (f = msg.getParamsMap()) ? f.toObject(includeInstance, undefined) : [],
1216
- limit: jspb.Message.getFieldWithDefault(msg, 7, 0),
1217
- after: (f = msg.getAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1218
- };
1219
-
1220
- if (includeInstance) {
1221
- obj.$jspbMessageInstance = msg;
1222
- }
1223
- return obj;
1224
- };
1225
- }
1226
-
1227
-
1228
- /**
1229
- * Deserializes binary data (in protobuf wire format).
1230
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1231
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest}
1232
- */
1233
- proto.trb.indicators.v1.ListIndicatorValuesRequest.deserializeBinary = function(bytes) {
1234
- var reader = new jspb.BinaryReader(bytes);
1235
- var msg = new proto.trb.indicators.v1.ListIndicatorValuesRequest;
1236
- return proto.trb.indicators.v1.ListIndicatorValuesRequest.deserializeBinaryFromReader(msg, reader);
1237
- };
1238
-
1239
-
1240
- /**
1241
- * Deserializes binary data (in protobuf wire format) from the
1242
- * given reader into the given message object.
1243
- * @param {!proto.trb.indicators.v1.ListIndicatorValuesRequest} msg The message object to deserialize into.
1244
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1245
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest}
1246
- */
1247
- proto.trb.indicators.v1.ListIndicatorValuesRequest.deserializeBinaryFromReader = function(msg, reader) {
1248
- while (reader.nextField()) {
1249
- if (reader.isEndGroup()) {
1250
- break;
1251
- }
1252
- var field = reader.getFieldNumber();
1253
- switch (field) {
1254
- case 1:
1255
- var value = /** @type {string} */ (reader.readString());
1256
- msg.setUid(value);
1257
- break;
1258
- case 2:
1259
- var value = /** @type {number} */ (reader.readInt32());
1260
- msg.setInterval(value);
1261
- break;
1262
- case 3:
1263
- var value = new google_protobuf_timestamp_pb.Timestamp;
1264
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1265
- msg.setFrom(value);
1266
- break;
1267
- case 4:
1268
- var value = new google_protobuf_timestamp_pb.Timestamp;
1269
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1270
- msg.setTo(value);
1271
- break;
1272
- case 5:
1273
- var value = /** @type {!proto.trb.indicators.v1.IndicatorType} */ (reader.readEnum());
1274
- msg.setType(value);
1275
- break;
1276
- case 6:
1277
- var value = msg.getParamsMap();
1278
- reader.readMessage(value, function(message, reader) {
1279
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
1280
- });
1281
- break;
1282
- case 7:
1283
- var value = /** @type {number} */ (reader.readInt32());
1284
- msg.setLimit(value);
1285
- break;
1286
- case 8:
1287
- var value = new google_protobuf_timestamp_pb.Timestamp;
1288
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1289
- msg.setAfter(value);
1290
- break;
1291
- default:
1292
- reader.skipField();
1293
- break;
1294
- }
1295
- }
1296
- return msg;
1297
- };
1298
-
1299
-
1300
- /**
1301
- * Serializes the message to binary data (in protobuf wire format).
1302
- * @return {!Uint8Array}
1303
- */
1304
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.serializeBinary = function() {
1305
- var writer = new jspb.BinaryWriter();
1306
- proto.trb.indicators.v1.ListIndicatorValuesRequest.serializeBinaryToWriter(this, writer);
1307
- return writer.getResultBuffer();
1308
- };
1309
-
1310
-
1311
- /**
1312
- * Serializes the given message to binary data (in protobuf wire
1313
- * format), writing to the given BinaryWriter.
1314
- * @param {!proto.trb.indicators.v1.ListIndicatorValuesRequest} message
1315
- * @param {!jspb.BinaryWriter} writer
1316
- * @suppress {unusedLocalVariables} f is only used for nested messages
1317
- */
1318
- proto.trb.indicators.v1.ListIndicatorValuesRequest.serializeBinaryToWriter = function(message, writer) {
1319
- var f = undefined;
1320
- f = message.getUid();
1321
- if (f.length > 0) {
1322
- writer.writeString(
1323
- 1,
1324
- f
1325
- );
1326
- }
1327
- f = message.getInterval();
1328
- if (f !== 0) {
1329
- writer.writeInt32(
1330
- 2,
1331
- f
1332
- );
1333
- }
1334
- f = message.getFrom();
1335
- if (f != null) {
1336
- writer.writeMessage(
1337
- 3,
1338
- f,
1339
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1340
- );
1341
- }
1342
- f = message.getTo();
1343
- if (f != null) {
1344
- writer.writeMessage(
1345
- 4,
1346
- f,
1347
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1348
- );
1349
- }
1350
- f = message.getType();
1351
- if (f !== 0.0) {
1352
- writer.writeEnum(
1353
- 5,
1354
- f
1355
- );
1356
- }
1357
- f = message.getParamsMap(true);
1358
- if (f && f.getLength() > 0) {
1359
- f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
1360
- }
1361
- f = message.getLimit();
1362
- if (f !== 0) {
1363
- writer.writeInt32(
1364
- 7,
1365
- f
1366
- );
1367
- }
1368
- f = message.getAfter();
1369
- if (f != null) {
1370
- writer.writeMessage(
1371
- 8,
1372
- f,
1373
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1374
- );
1375
- }
1376
- };
1377
-
1378
-
1379
- /**
1380
- * optional string uid = 1;
1381
- * @return {string}
1382
- */
1383
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getUid = function() {
1384
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1385
- };
1386
-
1387
-
1388
- /**
1389
- * @param {string} value
1390
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1391
- */
1392
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.setUid = function(value) {
1393
- return jspb.Message.setProto3StringField(this, 1, value);
1394
- };
1395
-
1396
-
1397
- /**
1398
- * optional int32 interval = 2;
1399
- * @return {number}
1400
- */
1401
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getInterval = function() {
1402
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1403
- };
1404
-
1405
-
1406
- /**
1407
- * @param {number} value
1408
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1409
- */
1410
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.setInterval = function(value) {
1411
- return jspb.Message.setProto3IntField(this, 2, value);
1412
- };
1413
-
1414
-
1415
- /**
1416
- * optional google.protobuf.Timestamp from = 3;
1417
- * @return {?proto.google.protobuf.Timestamp}
1418
- */
1419
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getFrom = function() {
1420
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1421
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1422
- };
1423
-
1424
-
1425
- /**
1426
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1427
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1428
- */
1429
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.setFrom = function(value) {
1430
- return jspb.Message.setWrapperField(this, 3, value);
1431
- };
1432
-
1433
-
1434
- /**
1435
- * Clears the message field making it undefined.
1436
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1437
- */
1438
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.clearFrom = function() {
1439
- return this.setFrom(undefined);
1440
- };
1441
-
1442
-
1443
- /**
1444
- * Returns whether this field is set.
1445
- * @return {boolean}
1446
- */
1447
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.hasFrom = function() {
1448
- return jspb.Message.getField(this, 3) != null;
1449
- };
1450
-
1451
-
1452
- /**
1453
- * optional google.protobuf.Timestamp to = 4;
1454
- * @return {?proto.google.protobuf.Timestamp}
1455
- */
1456
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getTo = function() {
1457
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1458
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1459
- };
1460
-
1461
-
1462
- /**
1463
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1464
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1465
- */
1466
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.setTo = function(value) {
1467
- return jspb.Message.setWrapperField(this, 4, value);
1468
- };
1469
-
1470
-
1471
- /**
1472
- * Clears the message field making it undefined.
1473
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1474
- */
1475
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.clearTo = function() {
1476
- return this.setTo(undefined);
1477
- };
1478
-
1479
-
1480
- /**
1481
- * Returns whether this field is set.
1482
- * @return {boolean}
1483
- */
1484
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.hasTo = function() {
1485
- return jspb.Message.getField(this, 4) != null;
1486
- };
1487
-
1488
-
1489
- /**
1490
- * optional IndicatorType type = 5;
1491
- * @return {!proto.trb.indicators.v1.IndicatorType}
1492
- */
1493
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getType = function() {
1494
- return /** @type {!proto.trb.indicators.v1.IndicatorType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1495
- };
1496
-
1497
-
1498
- /**
1499
- * @param {!proto.trb.indicators.v1.IndicatorType} value
1500
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1501
- */
1502
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.setType = function(value) {
1503
- return jspb.Message.setProto3EnumField(this, 5, value);
1504
- };
1505
-
1506
-
1507
- /**
1508
- * map<string, double> params = 6;
1509
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1510
- * empty, instead returning `undefined`
1511
- * @return {!jspb.Map<string,number>}
1512
- */
1513
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getParamsMap = function(opt_noLazyCreate) {
1514
- return /** @type {!jspb.Map<string,number>} */ (
1515
- jspb.Message.getMapField(this, 6, opt_noLazyCreate,
1516
- null));
1517
- };
1518
-
1519
-
1520
- /**
1521
- * Clears values from the map. The map will be non-null.
1522
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1523
- */
1524
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.clearParamsMap = function() {
1525
- this.getParamsMap().clear();
1526
- return this;
1527
- };
1528
-
1529
-
1530
- /**
1531
- * optional int32 limit = 7;
1532
- * @return {number}
1533
- */
1534
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getLimit = function() {
1535
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1536
- };
1537
-
1538
-
1539
- /**
1540
- * @param {number} value
1541
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1542
- */
1543
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.setLimit = function(value) {
1544
- return jspb.Message.setProto3IntField(this, 7, value);
1545
- };
1546
-
1547
-
1548
- /**
1549
- * optional google.protobuf.Timestamp after = 8;
1550
- * @return {?proto.google.protobuf.Timestamp}
1551
- */
1552
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.getAfter = function() {
1553
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1554
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
1555
- };
1556
-
1557
-
1558
- /**
1559
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1560
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1561
- */
1562
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.setAfter = function(value) {
1563
- return jspb.Message.setWrapperField(this, 8, value);
1564
- };
1565
-
1566
-
1567
- /**
1568
- * Clears the message field making it undefined.
1569
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesRequest} returns this
1570
- */
1571
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.clearAfter = function() {
1572
- return this.setAfter(undefined);
1573
- };
1574
-
1575
-
1576
- /**
1577
- * Returns whether this field is set.
1578
- * @return {boolean}
1579
- */
1580
- proto.trb.indicators.v1.ListIndicatorValuesRequest.prototype.hasAfter = function() {
1581
- return jspb.Message.getField(this, 8) != null;
1582
- };
1583
-
1584
-
1585
-
1586
-
1587
-
1588
- if (jspb.Message.GENERATE_TO_OBJECT) {
1589
- /**
1590
- * Creates an object representation of this proto.
1591
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1592
- * Optional fields that are not set will be set to undefined.
1593
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1594
- * For the list of reserved names please see:
1595
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1596
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1597
- * JSPB instance for transitional soy proto support:
1598
- * http://goto/soy-param-migration
1599
- * @return {!Object}
1600
- */
1601
- proto.trb.indicators.v1.IndicatorPoint.prototype.toObject = function(opt_includeInstance) {
1602
- return proto.trb.indicators.v1.IndicatorPoint.toObject(opt_includeInstance, this);
1603
- };
1604
-
1605
-
1606
- /**
1607
- * Static version of the {@see toObject} method.
1608
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1609
- * the JSPB instance for transitional soy proto support:
1610
- * http://goto/soy-param-migration
1611
- * @param {!proto.trb.indicators.v1.IndicatorPoint} msg The msg instance to transform.
1612
- * @return {!Object}
1613
- * @suppress {unusedLocalVariables} f is only used for nested messages
1614
- */
1615
- proto.trb.indicators.v1.IndicatorPoint.toObject = function(includeInstance, msg) {
1616
- var f, obj = {
1617
- time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1618
- valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, undefined) : []
1619
- };
1620
-
1621
- if (includeInstance) {
1622
- obj.$jspbMessageInstance = msg;
1623
- }
1624
- return obj;
1625
- };
1626
- }
1627
-
1628
-
1629
- /**
1630
- * Deserializes binary data (in protobuf wire format).
1631
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1632
- * @return {!proto.trb.indicators.v1.IndicatorPoint}
1633
- */
1634
- proto.trb.indicators.v1.IndicatorPoint.deserializeBinary = function(bytes) {
1635
- var reader = new jspb.BinaryReader(bytes);
1636
- var msg = new proto.trb.indicators.v1.IndicatorPoint;
1637
- return proto.trb.indicators.v1.IndicatorPoint.deserializeBinaryFromReader(msg, reader);
1638
- };
1639
-
1640
-
1641
- /**
1642
- * Deserializes binary data (in protobuf wire format) from the
1643
- * given reader into the given message object.
1644
- * @param {!proto.trb.indicators.v1.IndicatorPoint} msg The message object to deserialize into.
1645
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1646
- * @return {!proto.trb.indicators.v1.IndicatorPoint}
1647
- */
1648
- proto.trb.indicators.v1.IndicatorPoint.deserializeBinaryFromReader = function(msg, reader) {
1649
- while (reader.nextField()) {
1650
- if (reader.isEndGroup()) {
1651
- break;
1652
- }
1653
- var field = reader.getFieldNumber();
1654
- switch (field) {
1655
- case 1:
1656
- var value = new google_protobuf_timestamp_pb.Timestamp;
1657
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1658
- msg.setTime(value);
1659
- break;
1660
- case 2:
1661
- var value = msg.getValuesMap();
1662
- reader.readMessage(value, function(message, reader) {
1663
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
1664
- });
1665
- break;
1666
- default:
1667
- reader.skipField();
1668
- break;
1669
- }
1670
- }
1671
- return msg;
1672
- };
1673
-
1674
-
1675
- /**
1676
- * Serializes the message to binary data (in protobuf wire format).
1677
- * @return {!Uint8Array}
1678
- */
1679
- proto.trb.indicators.v1.IndicatorPoint.prototype.serializeBinary = function() {
1680
- var writer = new jspb.BinaryWriter();
1681
- proto.trb.indicators.v1.IndicatorPoint.serializeBinaryToWriter(this, writer);
1682
- return writer.getResultBuffer();
1683
- };
1684
-
1685
-
1686
- /**
1687
- * Serializes the given message to binary data (in protobuf wire
1688
- * format), writing to the given BinaryWriter.
1689
- * @param {!proto.trb.indicators.v1.IndicatorPoint} message
1690
- * @param {!jspb.BinaryWriter} writer
1691
- * @suppress {unusedLocalVariables} f is only used for nested messages
1692
- */
1693
- proto.trb.indicators.v1.IndicatorPoint.serializeBinaryToWriter = function(message, writer) {
1694
- var f = undefined;
1695
- f = message.getTime();
1696
- if (f != null) {
1697
- writer.writeMessage(
1698
- 1,
1699
- f,
1700
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1701
- );
1702
- }
1703
- f = message.getValuesMap(true);
1704
- if (f && f.getLength() > 0) {
1705
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
1706
- }
1707
- };
1708
-
1709
-
1710
- /**
1711
- * optional google.protobuf.Timestamp time = 1;
1712
- * @return {?proto.google.protobuf.Timestamp}
1713
- */
1714
- proto.trb.indicators.v1.IndicatorPoint.prototype.getTime = function() {
1715
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1716
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
1717
- };
1718
-
1719
-
1720
- /**
1721
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1722
- * @return {!proto.trb.indicators.v1.IndicatorPoint} returns this
1723
- */
1724
- proto.trb.indicators.v1.IndicatorPoint.prototype.setTime = function(value) {
1725
- return jspb.Message.setWrapperField(this, 1, value);
1726
- };
1727
-
1728
-
1729
- /**
1730
- * Clears the message field making it undefined.
1731
- * @return {!proto.trb.indicators.v1.IndicatorPoint} returns this
1732
- */
1733
- proto.trb.indicators.v1.IndicatorPoint.prototype.clearTime = function() {
1734
- return this.setTime(undefined);
1735
- };
1736
-
1737
-
1738
- /**
1739
- * Returns whether this field is set.
1740
- * @return {boolean}
1741
- */
1742
- proto.trb.indicators.v1.IndicatorPoint.prototype.hasTime = function() {
1743
- return jspb.Message.getField(this, 1) != null;
1744
- };
1745
-
1746
-
1747
- /**
1748
- * map<string, double> values = 2;
1749
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1750
- * empty, instead returning `undefined`
1751
- * @return {!jspb.Map<string,number>}
1752
- */
1753
- proto.trb.indicators.v1.IndicatorPoint.prototype.getValuesMap = function(opt_noLazyCreate) {
1754
- return /** @type {!jspb.Map<string,number>} */ (
1755
- jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1756
- null));
1757
- };
1758
-
1759
-
1760
- /**
1761
- * Clears values from the map. The map will be non-null.
1762
- * @return {!proto.trb.indicators.v1.IndicatorPoint} returns this
1763
- */
1764
- proto.trb.indicators.v1.IndicatorPoint.prototype.clearValuesMap = function() {
1765
- this.getValuesMap().clear();
1766
- return this;
1767
- };
1768
-
1769
-
1770
-
1771
- /**
1772
- * List of repeated fields within this message type.
1773
- * @private {!Array<number>}
1774
- * @const
1775
- */
1776
- proto.trb.indicators.v1.ComputeResponse.repeatedFields_ = [3];
1777
-
1778
-
1779
-
1780
- if (jspb.Message.GENERATE_TO_OBJECT) {
1781
- /**
1782
- * Creates an object representation of this proto.
1783
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1784
- * Optional fields that are not set will be set to undefined.
1785
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1786
- * For the list of reserved names please see:
1787
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1788
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1789
- * JSPB instance for transitional soy proto support:
1790
- * http://goto/soy-param-migration
1791
- * @return {!Object}
1792
- */
1793
- proto.trb.indicators.v1.ComputeResponse.prototype.toObject = function(opt_includeInstance) {
1794
- return proto.trb.indicators.v1.ComputeResponse.toObject(opt_includeInstance, this);
1795
- };
1796
-
1797
-
1798
- /**
1799
- * Static version of the {@see toObject} method.
1800
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1801
- * the JSPB instance for transitional soy proto support:
1802
- * http://goto/soy-param-migration
1803
- * @param {!proto.trb.indicators.v1.ComputeResponse} msg The msg instance to transform.
1804
- * @return {!Object}
1805
- * @suppress {unusedLocalVariables} f is only used for nested messages
1806
- */
1807
- proto.trb.indicators.v1.ComputeResponse.toObject = function(includeInstance, msg) {
1808
- var f, obj = {
1809
- type: jspb.Message.getFieldWithDefault(msg, 1, 0),
1810
- paramsMap: (f = msg.getParamsMap()) ? f.toObject(includeInstance, undefined) : [],
1811
- pointsList: jspb.Message.toObjectList(msg.getPointsList(),
1812
- proto.trb.indicators.v1.IndicatorPoint.toObject, includeInstance),
1813
- totalPoints: jspb.Message.getFieldWithDefault(msg, 4, 0)
1814
- };
1815
-
1816
- if (includeInstance) {
1817
- obj.$jspbMessageInstance = msg;
1818
- }
1819
- return obj;
1820
- };
1821
- }
1822
-
1823
-
1824
- /**
1825
- * Deserializes binary data (in protobuf wire format).
1826
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1827
- * @return {!proto.trb.indicators.v1.ComputeResponse}
1828
- */
1829
- proto.trb.indicators.v1.ComputeResponse.deserializeBinary = function(bytes) {
1830
- var reader = new jspb.BinaryReader(bytes);
1831
- var msg = new proto.trb.indicators.v1.ComputeResponse;
1832
- return proto.trb.indicators.v1.ComputeResponse.deserializeBinaryFromReader(msg, reader);
1833
- };
1834
-
1835
-
1836
- /**
1837
- * Deserializes binary data (in protobuf wire format) from the
1838
- * given reader into the given message object.
1839
- * @param {!proto.trb.indicators.v1.ComputeResponse} msg The message object to deserialize into.
1840
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1841
- * @return {!proto.trb.indicators.v1.ComputeResponse}
1842
- */
1843
- proto.trb.indicators.v1.ComputeResponse.deserializeBinaryFromReader = function(msg, reader) {
1844
- while (reader.nextField()) {
1845
- if (reader.isEndGroup()) {
1846
- break;
1847
- }
1848
- var field = reader.getFieldNumber();
1849
- switch (field) {
1850
- case 1:
1851
- var value = /** @type {!proto.trb.indicators.v1.IndicatorType} */ (reader.readEnum());
1852
- msg.setType(value);
1853
- break;
1854
- case 2:
1855
- var value = msg.getParamsMap();
1856
- reader.readMessage(value, function(message, reader) {
1857
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
1858
- });
1859
- break;
1860
- case 3:
1861
- var value = new proto.trb.indicators.v1.IndicatorPoint;
1862
- reader.readMessage(value,proto.trb.indicators.v1.IndicatorPoint.deserializeBinaryFromReader);
1863
- msg.addPoints(value);
1864
- break;
1865
- case 4:
1866
- var value = /** @type {number} */ (reader.readInt32());
1867
- msg.setTotalPoints(value);
1868
- break;
1869
- default:
1870
- reader.skipField();
1871
- break;
1872
- }
1873
- }
1874
- return msg;
1875
- };
1876
-
1877
-
1878
- /**
1879
- * Serializes the message to binary data (in protobuf wire format).
1880
- * @return {!Uint8Array}
1881
- */
1882
- proto.trb.indicators.v1.ComputeResponse.prototype.serializeBinary = function() {
1883
- var writer = new jspb.BinaryWriter();
1884
- proto.trb.indicators.v1.ComputeResponse.serializeBinaryToWriter(this, writer);
1885
- return writer.getResultBuffer();
1886
- };
1887
-
1888
-
1889
- /**
1890
- * Serializes the given message to binary data (in protobuf wire
1891
- * format), writing to the given BinaryWriter.
1892
- * @param {!proto.trb.indicators.v1.ComputeResponse} message
1893
- * @param {!jspb.BinaryWriter} writer
1894
- * @suppress {unusedLocalVariables} f is only used for nested messages
1895
- */
1896
- proto.trb.indicators.v1.ComputeResponse.serializeBinaryToWriter = function(message, writer) {
1897
- var f = undefined;
1898
- f = message.getType();
1899
- if (f !== 0.0) {
1900
- writer.writeEnum(
1901
- 1,
1902
- f
1903
- );
1904
- }
1905
- f = message.getParamsMap(true);
1906
- if (f && f.getLength() > 0) {
1907
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
1908
- }
1909
- f = message.getPointsList();
1910
- if (f.length > 0) {
1911
- writer.writeRepeatedMessage(
1912
- 3,
1913
- f,
1914
- proto.trb.indicators.v1.IndicatorPoint.serializeBinaryToWriter
1915
- );
1916
- }
1917
- f = message.getTotalPoints();
1918
- if (f !== 0) {
1919
- writer.writeInt32(
1920
- 4,
1921
- f
1922
- );
1923
- }
1924
- };
1925
-
1926
-
1927
- /**
1928
- * optional IndicatorType type = 1;
1929
- * @return {!proto.trb.indicators.v1.IndicatorType}
1930
- */
1931
- proto.trb.indicators.v1.ComputeResponse.prototype.getType = function() {
1932
- return /** @type {!proto.trb.indicators.v1.IndicatorType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1933
- };
1934
-
1935
-
1936
- /**
1937
- * @param {!proto.trb.indicators.v1.IndicatorType} value
1938
- * @return {!proto.trb.indicators.v1.ComputeResponse} returns this
1939
- */
1940
- proto.trb.indicators.v1.ComputeResponse.prototype.setType = function(value) {
1941
- return jspb.Message.setProto3EnumField(this, 1, value);
1942
- };
1943
-
1944
-
1945
- /**
1946
- * map<string, double> params = 2;
1947
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1948
- * empty, instead returning `undefined`
1949
- * @return {!jspb.Map<string,number>}
1950
- */
1951
- proto.trb.indicators.v1.ComputeResponse.prototype.getParamsMap = function(opt_noLazyCreate) {
1952
- return /** @type {!jspb.Map<string,number>} */ (
1953
- jspb.Message.getMapField(this, 2, opt_noLazyCreate,
1954
- null));
1955
- };
1956
-
1957
-
1958
- /**
1959
- * Clears values from the map. The map will be non-null.
1960
- * @return {!proto.trb.indicators.v1.ComputeResponse} returns this
1961
- */
1962
- proto.trb.indicators.v1.ComputeResponse.prototype.clearParamsMap = function() {
1963
- this.getParamsMap().clear();
1964
- return this;
1965
- };
1966
-
1967
-
1968
- /**
1969
- * repeated IndicatorPoint points = 3;
1970
- * @return {!Array<!proto.trb.indicators.v1.IndicatorPoint>}
1971
- */
1972
- proto.trb.indicators.v1.ComputeResponse.prototype.getPointsList = function() {
1973
- return /** @type{!Array<!proto.trb.indicators.v1.IndicatorPoint>} */ (
1974
- jspb.Message.getRepeatedWrapperField(this, proto.trb.indicators.v1.IndicatorPoint, 3));
1975
- };
1976
-
1977
-
1978
- /**
1979
- * @param {!Array<!proto.trb.indicators.v1.IndicatorPoint>} value
1980
- * @return {!proto.trb.indicators.v1.ComputeResponse} returns this
1981
- */
1982
- proto.trb.indicators.v1.ComputeResponse.prototype.setPointsList = function(value) {
1983
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
1984
- };
1985
-
1986
-
1987
- /**
1988
- * @param {!proto.trb.indicators.v1.IndicatorPoint=} opt_value
1989
- * @param {number=} opt_index
1990
- * @return {!proto.trb.indicators.v1.IndicatorPoint}
1991
- */
1992
- proto.trb.indicators.v1.ComputeResponse.prototype.addPoints = function(opt_value, opt_index) {
1993
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.trb.indicators.v1.IndicatorPoint, opt_index);
1994
- };
1995
-
1996
-
1997
- /**
1998
- * Clears the list making it empty but non-null.
1999
- * @return {!proto.trb.indicators.v1.ComputeResponse} returns this
2000
- */
2001
- proto.trb.indicators.v1.ComputeResponse.prototype.clearPointsList = function() {
2002
- return this.setPointsList([]);
65
+ proto.trb.indicators.v1.SettingsHash = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2003
67
  };
2004
-
2005
-
68
+ goog.inherits(proto.trb.indicators.v1.SettingsHash, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.trb.indicators.v1.SettingsHash.displayName = 'proto.trb.indicators.v1.SettingsHash';
75
+ }
2006
76
  /**
2007
- * optional int32 total_points = 4;
2008
- * @return {number}
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
2009
85
  */
2010
- proto.trb.indicators.v1.ComputeResponse.prototype.getTotalPoints = function() {
2011
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
86
+ proto.trb.indicators.v1.DeleteSettingsResponse = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2012
88
  };
2013
-
2014
-
89
+ goog.inherits(proto.trb.indicators.v1.DeleteSettingsResponse, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.trb.indicators.v1.DeleteSettingsResponse.displayName = 'proto.trb.indicators.v1.DeleteSettingsResponse';
96
+ }
2015
97
  /**
2016
- * @param {number} value
2017
- * @return {!proto.trb.indicators.v1.ComputeResponse} returns this
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
2018
106
  */
2019
- proto.trb.indicators.v1.ComputeResponse.prototype.setTotalPoints = function(value) {
2020
- return jspb.Message.setProto3IntField(this, 4, value);
107
+ proto.trb.indicators.v1.UpdateSettingsResponse = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2021
109
  };
2022
-
2023
-
2024
-
2025
- /**
2026
- * List of repeated fields within this message type.
2027
- * @private {!Array<number>}
2028
- * @const
2029
- */
2030
- proto.trb.indicators.v1.ListIndicatorValuesResponse.repeatedFields_ = [3];
110
+ goog.inherits(proto.trb.indicators.v1.UpdateSettingsResponse, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.trb.indicators.v1.UpdateSettingsResponse.displayName = 'proto.trb.indicators.v1.UpdateSettingsResponse';
117
+ }
2031
118
 
2032
119
 
2033
120
 
@@ -2044,8 +131,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2044
131
  * http://goto/soy-param-migration
2045
132
  * @return {!Object}
2046
133
  */
2047
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.toObject = function(opt_includeInstance) {
2048
- return proto.trb.indicators.v1.ListIndicatorValuesResponse.toObject(opt_includeInstance, this);
134
+ proto.trb.indicators.v1.Settings.prototype.toObject = function(opt_includeInstance) {
135
+ return proto.trb.indicators.v1.Settings.toObject(opt_includeInstance, this);
2049
136
  };
2050
137
 
2051
138
 
@@ -2054,17 +141,17 @@ proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.toObject = functio
2054
141
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2055
142
  * the JSPB instance for transitional soy proto support:
2056
143
  * http://goto/soy-param-migration
2057
- * @param {!proto.trb.indicators.v1.ListIndicatorValuesResponse} msg The msg instance to transform.
144
+ * @param {!proto.trb.indicators.v1.Settings} msg The msg instance to transform.
2058
145
  * @return {!Object}
2059
146
  * @suppress {unusedLocalVariables} f is only used for nested messages
2060
147
  */
2061
- proto.trb.indicators.v1.ListIndicatorValuesResponse.toObject = function(includeInstance, msg) {
148
+ proto.trb.indicators.v1.Settings.toObject = function(includeInstance, msg) {
2062
149
  var f, obj = {
2063
- type: jspb.Message.getFieldWithDefault(msg, 1, 0),
2064
- paramsMap: (f = msg.getParamsMap()) ? f.toObject(includeInstance, undefined) : [],
2065
- pointsList: jspb.Message.toObjectList(msg.getPointsList(),
2066
- proto.trb.indicators.v1.IndicatorPoint.toObject, includeInstance),
2067
- hasMore: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
150
+ interval: jspb.Message.getFieldWithDefault(msg, 1, 0),
151
+ uid: jspb.Message.getFieldWithDefault(msg, 2, ""),
152
+ settings: (f = msg.getSettings()) && indicators_params_pb.IndicatorSettings.toObject(includeInstance, f),
153
+ start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
154
+ end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2068
155
  };
2069
156
 
2070
157
  if (includeInstance) {
@@ -2078,23 +165,23 @@ hasMore: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2078
165
  /**
2079
166
  * Deserializes binary data (in protobuf wire format).
2080
167
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2081
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesResponse}
168
+ * @return {!proto.trb.indicators.v1.Settings}
2082
169
  */
2083
- proto.trb.indicators.v1.ListIndicatorValuesResponse.deserializeBinary = function(bytes) {
170
+ proto.trb.indicators.v1.Settings.deserializeBinary = function(bytes) {
2084
171
  var reader = new jspb.BinaryReader(bytes);
2085
- var msg = new proto.trb.indicators.v1.ListIndicatorValuesResponse;
2086
- return proto.trb.indicators.v1.ListIndicatorValuesResponse.deserializeBinaryFromReader(msg, reader);
172
+ var msg = new proto.trb.indicators.v1.Settings;
173
+ return proto.trb.indicators.v1.Settings.deserializeBinaryFromReader(msg, reader);
2087
174
  };
2088
175
 
2089
176
 
2090
177
  /**
2091
178
  * Deserializes binary data (in protobuf wire format) from the
2092
179
  * given reader into the given message object.
2093
- * @param {!proto.trb.indicators.v1.ListIndicatorValuesResponse} msg The message object to deserialize into.
180
+ * @param {!proto.trb.indicators.v1.Settings} msg The message object to deserialize into.
2094
181
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2095
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesResponse}
182
+ * @return {!proto.trb.indicators.v1.Settings}
2096
183
  */
2097
- proto.trb.indicators.v1.ListIndicatorValuesResponse.deserializeBinaryFromReader = function(msg, reader) {
184
+ proto.trb.indicators.v1.Settings.deserializeBinaryFromReader = function(msg, reader) {
2098
185
  while (reader.nextField()) {
2099
186
  if (reader.isEndGroup()) {
2100
187
  break;
@@ -2102,23 +189,27 @@ proto.trb.indicators.v1.ListIndicatorValuesResponse.deserializeBinaryFromReader
2102
189
  var field = reader.getFieldNumber();
2103
190
  switch (field) {
2104
191
  case 1:
2105
- var value = /** @type {!proto.trb.indicators.v1.IndicatorType} */ (reader.readEnum());
2106
- msg.setType(value);
192
+ var value = /** @type {number} */ (reader.readUint32());
193
+ msg.setInterval(value);
2107
194
  break;
2108
195
  case 2:
2109
- var value = msg.getParamsMap();
2110
- reader.readMessage(value, function(message, reader) {
2111
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
2112
- });
196
+ var value = /** @type {string} */ (reader.readString());
197
+ msg.setUid(value);
2113
198
  break;
2114
199
  case 3:
2115
- var value = new proto.trb.indicators.v1.IndicatorPoint;
2116
- reader.readMessage(value,proto.trb.indicators.v1.IndicatorPoint.deserializeBinaryFromReader);
2117
- msg.addPoints(value);
200
+ var value = new indicators_params_pb.IndicatorSettings;
201
+ reader.readMessage(value,indicators_params_pb.IndicatorSettings.deserializeBinaryFromReader);
202
+ msg.setSettings(value);
2118
203
  break;
2119
204
  case 4:
2120
- var value = /** @type {boolean} */ (reader.readBool());
2121
- msg.setHasMore(value);
205
+ var value = new google_protobuf_timestamp_pb.Timestamp;
206
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
207
+ msg.setStart(value);
208
+ break;
209
+ case 5:
210
+ var value = new google_protobuf_timestamp_pb.Timestamp;
211
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
212
+ msg.setEnd(value);
2122
213
  break;
2123
214
  default:
2124
215
  reader.skipField();
@@ -2133,9 +224,9 @@ proto.trb.indicators.v1.ListIndicatorValuesResponse.deserializeBinaryFromReader
2133
224
  * Serializes the message to binary data (in protobuf wire format).
2134
225
  * @return {!Uint8Array}
2135
226
  */
2136
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.serializeBinary = function() {
227
+ proto.trb.indicators.v1.Settings.prototype.serializeBinary = function() {
2137
228
  var writer = new jspb.BinaryWriter();
2138
- proto.trb.indicators.v1.ListIndicatorValuesResponse.serializeBinaryToWriter(this, writer);
229
+ proto.trb.indicators.v1.Settings.serializeBinaryToWriter(this, writer);
2139
230
  return writer.getResultBuffer();
2140
231
  };
2141
232
 
@@ -2143,135 +234,197 @@ proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.serializeBinary =
2143
234
  /**
2144
235
  * Serializes the given message to binary data (in protobuf wire
2145
236
  * format), writing to the given BinaryWriter.
2146
- * @param {!proto.trb.indicators.v1.ListIndicatorValuesResponse} message
237
+ * @param {!proto.trb.indicators.v1.Settings} message
2147
238
  * @param {!jspb.BinaryWriter} writer
2148
239
  * @suppress {unusedLocalVariables} f is only used for nested messages
2149
240
  */
2150
- proto.trb.indicators.v1.ListIndicatorValuesResponse.serializeBinaryToWriter = function(message, writer) {
241
+ proto.trb.indicators.v1.Settings.serializeBinaryToWriter = function(message, writer) {
2151
242
  var f = undefined;
2152
- f = message.getType();
2153
- if (f !== 0.0) {
2154
- writer.writeEnum(
243
+ f = message.getInterval();
244
+ if (f !== 0) {
245
+ writer.writeUint32(
2155
246
  1,
2156
247
  f
2157
248
  );
2158
249
  }
2159
- f = message.getParamsMap(true);
2160
- if (f && f.getLength() > 0) {
2161
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
2162
- }
2163
- f = message.getPointsList();
250
+ f = message.getUid();
2164
251
  if (f.length > 0) {
2165
- writer.writeRepeatedMessage(
252
+ writer.writeString(
253
+ 2,
254
+ f
255
+ );
256
+ }
257
+ f = message.getSettings();
258
+ if (f != null) {
259
+ writer.writeMessage(
2166
260
  3,
2167
261
  f,
2168
- proto.trb.indicators.v1.IndicatorPoint.serializeBinaryToWriter
262
+ indicators_params_pb.IndicatorSettings.serializeBinaryToWriter
2169
263
  );
2170
264
  }
2171
- f = message.getHasMore();
2172
- if (f) {
2173
- writer.writeBool(
265
+ f = message.getStart();
266
+ if (f != null) {
267
+ writer.writeMessage(
2174
268
  4,
2175
- f
269
+ f,
270
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
271
+ );
272
+ }
273
+ f = message.getEnd();
274
+ if (f != null) {
275
+ writer.writeMessage(
276
+ 5,
277
+ f,
278
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2176
279
  );
2177
280
  }
2178
281
  };
2179
282
 
2180
283
 
2181
284
  /**
2182
- * optional IndicatorType type = 1;
2183
- * @return {!proto.trb.indicators.v1.IndicatorType}
285
+ * optional uint32 interval = 1;
286
+ * @return {number}
2184
287
  */
2185
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.getType = function() {
2186
- return /** @type {!proto.trb.indicators.v1.IndicatorType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
288
+ proto.trb.indicators.v1.Settings.prototype.getInterval = function() {
289
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2187
290
  };
2188
291
 
2189
292
 
2190
293
  /**
2191
- * @param {!proto.trb.indicators.v1.IndicatorType} value
2192
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesResponse} returns this
294
+ * @param {number} value
295
+ * @return {!proto.trb.indicators.v1.Settings} returns this
2193
296
  */
2194
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.setType = function(value) {
2195
- return jspb.Message.setProto3EnumField(this, 1, value);
297
+ proto.trb.indicators.v1.Settings.prototype.setInterval = function(value) {
298
+ return jspb.Message.setProto3IntField(this, 1, value);
2196
299
  };
2197
300
 
2198
301
 
2199
302
  /**
2200
- * map<string, double> params = 2;
2201
- * @param {boolean=} opt_noLazyCreate Do not create the map if
2202
- * empty, instead returning `undefined`
2203
- * @return {!jspb.Map<string,number>}
303
+ * optional string uid = 2;
304
+ * @return {string}
2204
305
  */
2205
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.getParamsMap = function(opt_noLazyCreate) {
2206
- return /** @type {!jspb.Map<string,number>} */ (
2207
- jspb.Message.getMapField(this, 2, opt_noLazyCreate,
2208
- null));
306
+ proto.trb.indicators.v1.Settings.prototype.getUid = function() {
307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2209
308
  };
2210
309
 
2211
310
 
2212
311
  /**
2213
- * Clears values from the map. The map will be non-null.
2214
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesResponse} returns this
312
+ * @param {string} value
313
+ * @return {!proto.trb.indicators.v1.Settings} returns this
2215
314
  */
2216
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.clearParamsMap = function() {
2217
- this.getParamsMap().clear();
2218
- return this;
315
+ proto.trb.indicators.v1.Settings.prototype.setUid = function(value) {
316
+ return jspb.Message.setProto3StringField(this, 2, value);
2219
317
  };
2220
318
 
2221
319
 
2222
320
  /**
2223
- * repeated IndicatorPoint points = 3;
2224
- * @return {!Array<!proto.trb.indicators.v1.IndicatorPoint>}
321
+ * optional IndicatorSettings settings = 3;
322
+ * @return {?proto.trb.indicators.v1.IndicatorSettings}
2225
323
  */
2226
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.getPointsList = function() {
2227
- return /** @type{!Array<!proto.trb.indicators.v1.IndicatorPoint>} */ (
2228
- jspb.Message.getRepeatedWrapperField(this, proto.trb.indicators.v1.IndicatorPoint, 3));
324
+ proto.trb.indicators.v1.Settings.prototype.getSettings = function() {
325
+ return /** @type{?proto.trb.indicators.v1.IndicatorSettings} */ (
326
+ jspb.Message.getWrapperField(this, indicators_params_pb.IndicatorSettings, 3));
2229
327
  };
2230
328
 
2231
329
 
2232
330
  /**
2233
- * @param {!Array<!proto.trb.indicators.v1.IndicatorPoint>} value
2234
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesResponse} returns this
331
+ * @param {?proto.trb.indicators.v1.IndicatorSettings|undefined} value
332
+ * @return {!proto.trb.indicators.v1.Settings} returns this
2235
333
  */
2236
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.setPointsList = function(value) {
2237
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
334
+ proto.trb.indicators.v1.Settings.prototype.setSettings = function(value) {
335
+ return jspb.Message.setWrapperField(this, 3, value);
336
+ };
337
+
338
+
339
+ /**
340
+ * Clears the message field making it undefined.
341
+ * @return {!proto.trb.indicators.v1.Settings} returns this
342
+ */
343
+ proto.trb.indicators.v1.Settings.prototype.clearSettings = function() {
344
+ return this.setSettings(undefined);
345
+ };
346
+
347
+
348
+ /**
349
+ * Returns whether this field is set.
350
+ * @return {boolean}
351
+ */
352
+ proto.trb.indicators.v1.Settings.prototype.hasSettings = function() {
353
+ return jspb.Message.getField(this, 3) != null;
2238
354
  };
2239
355
 
2240
356
 
2241
357
  /**
2242
- * @param {!proto.trb.indicators.v1.IndicatorPoint=} opt_value
2243
- * @param {number=} opt_index
2244
- * @return {!proto.trb.indicators.v1.IndicatorPoint}
358
+ * optional google.protobuf.Timestamp start = 4;
359
+ * @return {?proto.google.protobuf.Timestamp}
2245
360
  */
2246
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.addPoints = function(opt_value, opt_index) {
2247
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.trb.indicators.v1.IndicatorPoint, opt_index);
361
+ proto.trb.indicators.v1.Settings.prototype.getStart = function() {
362
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
363
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
364
+ };
365
+
366
+
367
+ /**
368
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
369
+ * @return {!proto.trb.indicators.v1.Settings} returns this
370
+ */
371
+ proto.trb.indicators.v1.Settings.prototype.setStart = function(value) {
372
+ return jspb.Message.setWrapperField(this, 4, value);
2248
373
  };
2249
374
 
2250
375
 
2251
376
  /**
2252
- * Clears the list making it empty but non-null.
2253
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesResponse} returns this
377
+ * Clears the message field making it undefined.
378
+ * @return {!proto.trb.indicators.v1.Settings} returns this
2254
379
  */
2255
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.clearPointsList = function() {
2256
- return this.setPointsList([]);
380
+ proto.trb.indicators.v1.Settings.prototype.clearStart = function() {
381
+ return this.setStart(undefined);
2257
382
  };
2258
383
 
2259
384
 
2260
385
  /**
2261
- * optional bool has_more = 4;
386
+ * Returns whether this field is set.
2262
387
  * @return {boolean}
2263
388
  */
2264
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.getHasMore = function() {
2265
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
389
+ proto.trb.indicators.v1.Settings.prototype.hasStart = function() {
390
+ return jspb.Message.getField(this, 4) != null;
2266
391
  };
2267
392
 
2268
393
 
2269
394
  /**
2270
- * @param {boolean} value
2271
- * @return {!proto.trb.indicators.v1.ListIndicatorValuesResponse} returns this
395
+ * optional google.protobuf.Timestamp end = 5;
396
+ * @return {?proto.google.protobuf.Timestamp}
397
+ */
398
+ proto.trb.indicators.v1.Settings.prototype.getEnd = function() {
399
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
400
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
401
+ };
402
+
403
+
404
+ /**
405
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
406
+ * @return {!proto.trb.indicators.v1.Settings} returns this
407
+ */
408
+ proto.trb.indicators.v1.Settings.prototype.setEnd = function(value) {
409
+ return jspb.Message.setWrapperField(this, 5, value);
410
+ };
411
+
412
+
413
+ /**
414
+ * Clears the message field making it undefined.
415
+ * @return {!proto.trb.indicators.v1.Settings} returns this
416
+ */
417
+ proto.trb.indicators.v1.Settings.prototype.clearEnd = function() {
418
+ return this.setEnd(undefined);
419
+ };
420
+
421
+
422
+ /**
423
+ * Returns whether this field is set.
424
+ * @return {boolean}
2272
425
  */
2273
- proto.trb.indicators.v1.ListIndicatorValuesResponse.prototype.setHasMore = function(value) {
2274
- return jspb.Message.setProto3BooleanField(this, 4, value);
426
+ proto.trb.indicators.v1.Settings.prototype.hasEnd = function() {
427
+ return jspb.Message.getField(this, 5) != null;
2275
428
  };
2276
429
 
2277
430
 
@@ -2291,8 +444,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2291
444
  * http://goto/soy-param-migration
2292
445
  * @return {!Object}
2293
446
  */
2294
- proto.trb.indicators.v1.IndicatorInfo.prototype.toObject = function(opt_includeInstance) {
2295
- return proto.trb.indicators.v1.IndicatorInfo.toObject(opt_includeInstance, this);
447
+ proto.trb.indicators.v1.SettingsHash.prototype.toObject = function(opt_includeInstance) {
448
+ return proto.trb.indicators.v1.SettingsHash.toObject(opt_includeInstance, this);
2296
449
  };
2297
450
 
2298
451
 
@@ -2301,16 +454,13 @@ proto.trb.indicators.v1.IndicatorInfo.prototype.toObject = function(opt_includeI
2301
454
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2302
455
  * the JSPB instance for transitional soy proto support:
2303
456
  * http://goto/soy-param-migration
2304
- * @param {!proto.trb.indicators.v1.IndicatorInfo} msg The msg instance to transform.
457
+ * @param {!proto.trb.indicators.v1.SettingsHash} msg The msg instance to transform.
2305
458
  * @return {!Object}
2306
459
  * @suppress {unusedLocalVariables} f is only used for nested messages
2307
460
  */
2308
- proto.trb.indicators.v1.IndicatorInfo.toObject = function(includeInstance, msg) {
461
+ proto.trb.indicators.v1.SettingsHash.toObject = function(includeInstance, msg) {
2309
462
  var f, obj = {
2310
- type: jspb.Message.getFieldWithDefault(msg, 1, 0),
2311
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2312
- minBars: jspb.Message.getFieldWithDefault(msg, 3, 0),
2313
- defaultParamsMap: (f = msg.getDefaultParamsMap()) ? f.toObject(includeInstance, undefined) : []
463
+ hash: jspb.Message.getFieldWithDefault(msg, 1, 0)
2314
464
  };
2315
465
 
2316
466
  if (includeInstance) {
@@ -2324,23 +474,23 @@ defaultParamsMap: (f = msg.getDefaultParamsMap()) ? f.toObject(includeInstance,
2324
474
  /**
2325
475
  * Deserializes binary data (in protobuf wire format).
2326
476
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2327
- * @return {!proto.trb.indicators.v1.IndicatorInfo}
477
+ * @return {!proto.trb.indicators.v1.SettingsHash}
2328
478
  */
2329
- proto.trb.indicators.v1.IndicatorInfo.deserializeBinary = function(bytes) {
479
+ proto.trb.indicators.v1.SettingsHash.deserializeBinary = function(bytes) {
2330
480
  var reader = new jspb.BinaryReader(bytes);
2331
- var msg = new proto.trb.indicators.v1.IndicatorInfo;
2332
- return proto.trb.indicators.v1.IndicatorInfo.deserializeBinaryFromReader(msg, reader);
481
+ var msg = new proto.trb.indicators.v1.SettingsHash;
482
+ return proto.trb.indicators.v1.SettingsHash.deserializeBinaryFromReader(msg, reader);
2333
483
  };
2334
484
 
2335
485
 
2336
486
  /**
2337
487
  * Deserializes binary data (in protobuf wire format) from the
2338
488
  * given reader into the given message object.
2339
- * @param {!proto.trb.indicators.v1.IndicatorInfo} msg The message object to deserialize into.
489
+ * @param {!proto.trb.indicators.v1.SettingsHash} msg The message object to deserialize into.
2340
490
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2341
- * @return {!proto.trb.indicators.v1.IndicatorInfo}
491
+ * @return {!proto.trb.indicators.v1.SettingsHash}
2342
492
  */
2343
- proto.trb.indicators.v1.IndicatorInfo.deserializeBinaryFromReader = function(msg, reader) {
493
+ proto.trb.indicators.v1.SettingsHash.deserializeBinaryFromReader = function(msg, reader) {
2344
494
  while (reader.nextField()) {
2345
495
  if (reader.isEndGroup()) {
2346
496
  break;
@@ -2348,22 +498,8 @@ proto.trb.indicators.v1.IndicatorInfo.deserializeBinaryFromReader = function(msg
2348
498
  var field = reader.getFieldNumber();
2349
499
  switch (field) {
2350
500
  case 1:
2351
- var value = /** @type {!proto.trb.indicators.v1.IndicatorType} */ (reader.readEnum());
2352
- msg.setType(value);
2353
- break;
2354
- case 2:
2355
- var value = /** @type {string} */ (reader.readString());
2356
- msg.setName(value);
2357
- break;
2358
- case 3:
2359
- var value = /** @type {number} */ (reader.readInt32());
2360
- msg.setMinBars(value);
2361
- break;
2362
- case 4:
2363
- var value = msg.getDefaultParamsMap();
2364
- reader.readMessage(value, function(message, reader) {
2365
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
2366
- });
501
+ var value = /** @type {number} */ (reader.readUint64());
502
+ msg.setHash(value);
2367
503
  break;
2368
504
  default:
2369
505
  reader.skipField();
@@ -2378,9 +514,9 @@ proto.trb.indicators.v1.IndicatorInfo.deserializeBinaryFromReader = function(msg
2378
514
  * Serializes the message to binary data (in protobuf wire format).
2379
515
  * @return {!Uint8Array}
2380
516
  */
2381
- proto.trb.indicators.v1.IndicatorInfo.prototype.serializeBinary = function() {
517
+ proto.trb.indicators.v1.SettingsHash.prototype.serializeBinary = function() {
2382
518
  var writer = new jspb.BinaryWriter();
2383
- proto.trb.indicators.v1.IndicatorInfo.serializeBinaryToWriter(this, writer);
519
+ proto.trb.indicators.v1.SettingsHash.serializeBinaryToWriter(this, writer);
2384
520
  return writer.getResultBuffer();
2385
521
  };
2386
522
 
@@ -2388,114 +524,37 @@ proto.trb.indicators.v1.IndicatorInfo.prototype.serializeBinary = function() {
2388
524
  /**
2389
525
  * Serializes the given message to binary data (in protobuf wire
2390
526
  * format), writing to the given BinaryWriter.
2391
- * @param {!proto.trb.indicators.v1.IndicatorInfo} message
527
+ * @param {!proto.trb.indicators.v1.SettingsHash} message
2392
528
  * @param {!jspb.BinaryWriter} writer
2393
529
  * @suppress {unusedLocalVariables} f is only used for nested messages
2394
530
  */
2395
- proto.trb.indicators.v1.IndicatorInfo.serializeBinaryToWriter = function(message, writer) {
531
+ proto.trb.indicators.v1.SettingsHash.serializeBinaryToWriter = function(message, writer) {
2396
532
  var f = undefined;
2397
- f = message.getType();
2398
- if (f !== 0.0) {
2399
- writer.writeEnum(
2400
- 1,
2401
- f
2402
- );
2403
- }
2404
- f = message.getName();
2405
- if (f.length > 0) {
2406
- writer.writeString(
2407
- 2,
2408
- f
2409
- );
2410
- }
2411
- f = message.getMinBars();
533
+ f = message.getHash();
2412
534
  if (f !== 0) {
2413
- writer.writeInt32(
2414
- 3,
535
+ writer.writeUint64(
536
+ 1,
2415
537
  f
2416
538
  );
2417
539
  }
2418
- f = message.getDefaultParamsMap(true);
2419
- if (f && f.getLength() > 0) {
2420
- f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
2421
- }
2422
- };
2423
-
2424
-
2425
- /**
2426
- * optional IndicatorType type = 1;
2427
- * @return {!proto.trb.indicators.v1.IndicatorType}
2428
- */
2429
- proto.trb.indicators.v1.IndicatorInfo.prototype.getType = function() {
2430
- return /** @type {!proto.trb.indicators.v1.IndicatorType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2431
- };
2432
-
2433
-
2434
- /**
2435
- * @param {!proto.trb.indicators.v1.IndicatorType} value
2436
- * @return {!proto.trb.indicators.v1.IndicatorInfo} returns this
2437
- */
2438
- proto.trb.indicators.v1.IndicatorInfo.prototype.setType = function(value) {
2439
- return jspb.Message.setProto3EnumField(this, 1, value);
2440
- };
2441
-
2442
-
2443
- /**
2444
- * optional string name = 2;
2445
- * @return {string}
2446
- */
2447
- proto.trb.indicators.v1.IndicatorInfo.prototype.getName = function() {
2448
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2449
- };
2450
-
2451
-
2452
- /**
2453
- * @param {string} value
2454
- * @return {!proto.trb.indicators.v1.IndicatorInfo} returns this
2455
- */
2456
- proto.trb.indicators.v1.IndicatorInfo.prototype.setName = function(value) {
2457
- return jspb.Message.setProto3StringField(this, 2, value);
2458
540
  };
2459
541
 
2460
542
 
2461
543
  /**
2462
- * optional int32 min_bars = 3;
544
+ * optional uint64 hash = 1;
2463
545
  * @return {number}
2464
546
  */
2465
- proto.trb.indicators.v1.IndicatorInfo.prototype.getMinBars = function() {
2466
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
547
+ proto.trb.indicators.v1.SettingsHash.prototype.getHash = function() {
548
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2467
549
  };
2468
550
 
2469
551
 
2470
552
  /**
2471
553
  * @param {number} value
2472
- * @return {!proto.trb.indicators.v1.IndicatorInfo} returns this
2473
- */
2474
- proto.trb.indicators.v1.IndicatorInfo.prototype.setMinBars = function(value) {
2475
- return jspb.Message.setProto3IntField(this, 3, value);
2476
- };
2477
-
2478
-
2479
- /**
2480
- * map<string, double> default_params = 4;
2481
- * @param {boolean=} opt_noLazyCreate Do not create the map if
2482
- * empty, instead returning `undefined`
2483
- * @return {!jspb.Map<string,number>}
2484
- */
2485
- proto.trb.indicators.v1.IndicatorInfo.prototype.getDefaultParamsMap = function(opt_noLazyCreate) {
2486
- return /** @type {!jspb.Map<string,number>} */ (
2487
- jspb.Message.getMapField(this, 4, opt_noLazyCreate,
2488
- null));
2489
- };
2490
-
2491
-
2492
- /**
2493
- * Clears values from the map. The map will be non-null.
2494
- * @return {!proto.trb.indicators.v1.IndicatorInfo} returns this
554
+ * @return {!proto.trb.indicators.v1.SettingsHash} returns this
2495
555
  */
2496
- proto.trb.indicators.v1.IndicatorInfo.prototype.clearDefaultParamsMap = function() {
2497
- this.getDefaultParamsMap().clear();
2498
- return this;
556
+ proto.trb.indicators.v1.SettingsHash.prototype.setHash = function(value) {
557
+ return jspb.Message.setProto3IntField(this, 1, value);
2499
558
  };
2500
559
 
2501
560
 
@@ -2515,8 +574,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2515
574
  * http://goto/soy-param-migration
2516
575
  * @return {!Object}
2517
576
  */
2518
- proto.trb.indicators.v1.ListSupportedRequest.prototype.toObject = function(opt_includeInstance) {
2519
- return proto.trb.indicators.v1.ListSupportedRequest.toObject(opt_includeInstance, this);
577
+ proto.trb.indicators.v1.DeleteSettingsResponse.prototype.toObject = function(opt_includeInstance) {
578
+ return proto.trb.indicators.v1.DeleteSettingsResponse.toObject(opt_includeInstance, this);
2520
579
  };
2521
580
 
2522
581
 
@@ -2525,13 +584,14 @@ proto.trb.indicators.v1.ListSupportedRequest.prototype.toObject = function(opt_i
2525
584
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2526
585
  * the JSPB instance for transitional soy proto support:
2527
586
  * http://goto/soy-param-migration
2528
- * @param {!proto.trb.indicators.v1.ListSupportedRequest} msg The msg instance to transform.
587
+ * @param {!proto.trb.indicators.v1.DeleteSettingsResponse} msg The msg instance to transform.
2529
588
  * @return {!Object}
2530
589
  * @suppress {unusedLocalVariables} f is only used for nested messages
2531
590
  */
2532
- proto.trb.indicators.v1.ListSupportedRequest.toObject = function(includeInstance, msg) {
591
+ proto.trb.indicators.v1.DeleteSettingsResponse.toObject = function(includeInstance, msg) {
2533
592
  var f, obj = {
2534
-
593
+ hash: jspb.Message.getFieldWithDefault(msg, 1, 0),
594
+ pb_delete: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
2535
595
  };
2536
596
 
2537
597
  if (includeInstance) {
@@ -2545,29 +605,37 @@ proto.trb.indicators.v1.ListSupportedRequest.toObject = function(includeInstance
2545
605
  /**
2546
606
  * Deserializes binary data (in protobuf wire format).
2547
607
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2548
- * @return {!proto.trb.indicators.v1.ListSupportedRequest}
608
+ * @return {!proto.trb.indicators.v1.DeleteSettingsResponse}
2549
609
  */
2550
- proto.trb.indicators.v1.ListSupportedRequest.deserializeBinary = function(bytes) {
610
+ proto.trb.indicators.v1.DeleteSettingsResponse.deserializeBinary = function(bytes) {
2551
611
  var reader = new jspb.BinaryReader(bytes);
2552
- var msg = new proto.trb.indicators.v1.ListSupportedRequest;
2553
- return proto.trb.indicators.v1.ListSupportedRequest.deserializeBinaryFromReader(msg, reader);
612
+ var msg = new proto.trb.indicators.v1.DeleteSettingsResponse;
613
+ return proto.trb.indicators.v1.DeleteSettingsResponse.deserializeBinaryFromReader(msg, reader);
2554
614
  };
2555
615
 
2556
616
 
2557
617
  /**
2558
618
  * Deserializes binary data (in protobuf wire format) from the
2559
619
  * given reader into the given message object.
2560
- * @param {!proto.trb.indicators.v1.ListSupportedRequest} msg The message object to deserialize into.
620
+ * @param {!proto.trb.indicators.v1.DeleteSettingsResponse} msg The message object to deserialize into.
2561
621
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2562
- * @return {!proto.trb.indicators.v1.ListSupportedRequest}
622
+ * @return {!proto.trb.indicators.v1.DeleteSettingsResponse}
2563
623
  */
2564
- proto.trb.indicators.v1.ListSupportedRequest.deserializeBinaryFromReader = function(msg, reader) {
624
+ proto.trb.indicators.v1.DeleteSettingsResponse.deserializeBinaryFromReader = function(msg, reader) {
2565
625
  while (reader.nextField()) {
2566
626
  if (reader.isEndGroup()) {
2567
627
  break;
2568
628
  }
2569
629
  var field = reader.getFieldNumber();
2570
630
  switch (field) {
631
+ case 1:
632
+ var value = /** @type {number} */ (reader.readUint64());
633
+ msg.setHash(value);
634
+ break;
635
+ case 2:
636
+ var value = /** @type {boolean} */ (reader.readBool());
637
+ msg.setDelete(value);
638
+ break;
2571
639
  default:
2572
640
  reader.skipField();
2573
641
  break;
@@ -2581,9 +649,9 @@ proto.trb.indicators.v1.ListSupportedRequest.deserializeBinaryFromReader = funct
2581
649
  * Serializes the message to binary data (in protobuf wire format).
2582
650
  * @return {!Uint8Array}
2583
651
  */
2584
- proto.trb.indicators.v1.ListSupportedRequest.prototype.serializeBinary = function() {
652
+ proto.trb.indicators.v1.DeleteSettingsResponse.prototype.serializeBinary = function() {
2585
653
  var writer = new jspb.BinaryWriter();
2586
- proto.trb.indicators.v1.ListSupportedRequest.serializeBinaryToWriter(this, writer);
654
+ proto.trb.indicators.v1.DeleteSettingsResponse.serializeBinaryToWriter(this, writer);
2587
655
  return writer.getResultBuffer();
2588
656
  };
2589
657
 
@@ -2591,22 +659,65 @@ proto.trb.indicators.v1.ListSupportedRequest.prototype.serializeBinary = functio
2591
659
  /**
2592
660
  * Serializes the given message to binary data (in protobuf wire
2593
661
  * format), writing to the given BinaryWriter.
2594
- * @param {!proto.trb.indicators.v1.ListSupportedRequest} message
662
+ * @param {!proto.trb.indicators.v1.DeleteSettingsResponse} message
2595
663
  * @param {!jspb.BinaryWriter} writer
2596
664
  * @suppress {unusedLocalVariables} f is only used for nested messages
2597
665
  */
2598
- proto.trb.indicators.v1.ListSupportedRequest.serializeBinaryToWriter = function(message, writer) {
666
+ proto.trb.indicators.v1.DeleteSettingsResponse.serializeBinaryToWriter = function(message, writer) {
2599
667
  var f = undefined;
668
+ f = message.getHash();
669
+ if (f !== 0) {
670
+ writer.writeUint64(
671
+ 1,
672
+ f
673
+ );
674
+ }
675
+ f = message.getDelete();
676
+ if (f) {
677
+ writer.writeBool(
678
+ 2,
679
+ f
680
+ );
681
+ }
682
+ };
683
+
684
+
685
+ /**
686
+ * optional uint64 hash = 1;
687
+ * @return {number}
688
+ */
689
+ proto.trb.indicators.v1.DeleteSettingsResponse.prototype.getHash = function() {
690
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
691
+ };
692
+
693
+
694
+ /**
695
+ * @param {number} value
696
+ * @return {!proto.trb.indicators.v1.DeleteSettingsResponse} returns this
697
+ */
698
+ proto.trb.indicators.v1.DeleteSettingsResponse.prototype.setHash = function(value) {
699
+ return jspb.Message.setProto3IntField(this, 1, value);
2600
700
  };
2601
701
 
2602
702
 
703
+ /**
704
+ * optional bool delete = 2;
705
+ * @return {boolean}
706
+ */
707
+ proto.trb.indicators.v1.DeleteSettingsResponse.prototype.getDelete = function() {
708
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
709
+ };
710
+
2603
711
 
2604
712
  /**
2605
- * List of repeated fields within this message type.
2606
- * @private {!Array<number>}
2607
- * @const
713
+ * @param {boolean} value
714
+ * @return {!proto.trb.indicators.v1.DeleteSettingsResponse} returns this
2608
715
  */
2609
- proto.trb.indicators.v1.ListSupportedResponse.repeatedFields_ = [1];
716
+ proto.trb.indicators.v1.DeleteSettingsResponse.prototype.setDelete = function(value) {
717
+ return jspb.Message.setProto3BooleanField(this, 2, value);
718
+ };
719
+
720
+
2610
721
 
2611
722
 
2612
723
 
@@ -2623,8 +734,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2623
734
  * http://goto/soy-param-migration
2624
735
  * @return {!Object}
2625
736
  */
2626
- proto.trb.indicators.v1.ListSupportedResponse.prototype.toObject = function(opt_includeInstance) {
2627
- return proto.trb.indicators.v1.ListSupportedResponse.toObject(opt_includeInstance, this);
737
+ proto.trb.indicators.v1.UpdateSettingsResponse.prototype.toObject = function(opt_includeInstance) {
738
+ return proto.trb.indicators.v1.UpdateSettingsResponse.toObject(opt_includeInstance, this);
2628
739
  };
2629
740
 
2630
741
 
@@ -2633,14 +744,14 @@ proto.trb.indicators.v1.ListSupportedResponse.prototype.toObject = function(opt_
2633
744
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2634
745
  * the JSPB instance for transitional soy proto support:
2635
746
  * http://goto/soy-param-migration
2636
- * @param {!proto.trb.indicators.v1.ListSupportedResponse} msg The msg instance to transform.
747
+ * @param {!proto.trb.indicators.v1.UpdateSettingsResponse} msg The msg instance to transform.
2637
748
  * @return {!Object}
2638
749
  * @suppress {unusedLocalVariables} f is only used for nested messages
2639
750
  */
2640
- proto.trb.indicators.v1.ListSupportedResponse.toObject = function(includeInstance, msg) {
751
+ proto.trb.indicators.v1.UpdateSettingsResponse.toObject = function(includeInstance, msg) {
2641
752
  var f, obj = {
2642
- indicatorsList: jspb.Message.toObjectList(msg.getIndicatorsList(),
2643
- proto.trb.indicators.v1.IndicatorInfo.toObject, includeInstance)
753
+ hash: jspb.Message.getFieldWithDefault(msg, 1, 0),
754
+ update: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
2644
755
  };
2645
756
 
2646
757
  if (includeInstance) {
@@ -2654,23 +765,23 @@ indicatorsList: jspb.Message.toObjectList(msg.getIndicatorsList(),
2654
765
  /**
2655
766
  * Deserializes binary data (in protobuf wire format).
2656
767
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2657
- * @return {!proto.trb.indicators.v1.ListSupportedResponse}
768
+ * @return {!proto.trb.indicators.v1.UpdateSettingsResponse}
2658
769
  */
2659
- proto.trb.indicators.v1.ListSupportedResponse.deserializeBinary = function(bytes) {
770
+ proto.trb.indicators.v1.UpdateSettingsResponse.deserializeBinary = function(bytes) {
2660
771
  var reader = new jspb.BinaryReader(bytes);
2661
- var msg = new proto.trb.indicators.v1.ListSupportedResponse;
2662
- return proto.trb.indicators.v1.ListSupportedResponse.deserializeBinaryFromReader(msg, reader);
772
+ var msg = new proto.trb.indicators.v1.UpdateSettingsResponse;
773
+ return proto.trb.indicators.v1.UpdateSettingsResponse.deserializeBinaryFromReader(msg, reader);
2663
774
  };
2664
775
 
2665
776
 
2666
777
  /**
2667
778
  * Deserializes binary data (in protobuf wire format) from the
2668
779
  * given reader into the given message object.
2669
- * @param {!proto.trb.indicators.v1.ListSupportedResponse} msg The message object to deserialize into.
780
+ * @param {!proto.trb.indicators.v1.UpdateSettingsResponse} msg The message object to deserialize into.
2670
781
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2671
- * @return {!proto.trb.indicators.v1.ListSupportedResponse}
782
+ * @return {!proto.trb.indicators.v1.UpdateSettingsResponse}
2672
783
  */
2673
- proto.trb.indicators.v1.ListSupportedResponse.deserializeBinaryFromReader = function(msg, reader) {
784
+ proto.trb.indicators.v1.UpdateSettingsResponse.deserializeBinaryFromReader = function(msg, reader) {
2674
785
  while (reader.nextField()) {
2675
786
  if (reader.isEndGroup()) {
2676
787
  break;
@@ -2678,9 +789,12 @@ proto.trb.indicators.v1.ListSupportedResponse.deserializeBinaryFromReader = func
2678
789
  var field = reader.getFieldNumber();
2679
790
  switch (field) {
2680
791
  case 1:
2681
- var value = new proto.trb.indicators.v1.IndicatorInfo;
2682
- reader.readMessage(value,proto.trb.indicators.v1.IndicatorInfo.deserializeBinaryFromReader);
2683
- msg.addIndicators(value);
792
+ var value = /** @type {number} */ (reader.readUint64());
793
+ msg.setHash(value);
794
+ break;
795
+ case 2:
796
+ var value = /** @type {boolean} */ (reader.readBool());
797
+ msg.setUpdate(value);
2684
798
  break;
2685
799
  default:
2686
800
  reader.skipField();
@@ -2695,9 +809,9 @@ proto.trb.indicators.v1.ListSupportedResponse.deserializeBinaryFromReader = func
2695
809
  * Serializes the message to binary data (in protobuf wire format).
2696
810
  * @return {!Uint8Array}
2697
811
  */
2698
- proto.trb.indicators.v1.ListSupportedResponse.prototype.serializeBinary = function() {
812
+ proto.trb.indicators.v1.UpdateSettingsResponse.prototype.serializeBinary = function() {
2699
813
  var writer = new jspb.BinaryWriter();
2700
- proto.trb.indicators.v1.ListSupportedResponse.serializeBinaryToWriter(this, writer);
814
+ proto.trb.indicators.v1.UpdateSettingsResponse.serializeBinaryToWriter(this, writer);
2701
815
  return writer.getResultBuffer();
2702
816
  };
2703
817
 
@@ -2705,71 +819,63 @@ proto.trb.indicators.v1.ListSupportedResponse.prototype.serializeBinary = functi
2705
819
  /**
2706
820
  * Serializes the given message to binary data (in protobuf wire
2707
821
  * format), writing to the given BinaryWriter.
2708
- * @param {!proto.trb.indicators.v1.ListSupportedResponse} message
822
+ * @param {!proto.trb.indicators.v1.UpdateSettingsResponse} message
2709
823
  * @param {!jspb.BinaryWriter} writer
2710
824
  * @suppress {unusedLocalVariables} f is only used for nested messages
2711
825
  */
2712
- proto.trb.indicators.v1.ListSupportedResponse.serializeBinaryToWriter = function(message, writer) {
826
+ proto.trb.indicators.v1.UpdateSettingsResponse.serializeBinaryToWriter = function(message, writer) {
2713
827
  var f = undefined;
2714
- f = message.getIndicatorsList();
2715
- if (f.length > 0) {
2716
- writer.writeRepeatedMessage(
828
+ f = message.getHash();
829
+ if (f !== 0) {
830
+ writer.writeUint64(
2717
831
  1,
2718
- f,
2719
- proto.trb.indicators.v1.IndicatorInfo.serializeBinaryToWriter
832
+ f
833
+ );
834
+ }
835
+ f = message.getUpdate();
836
+ if (f) {
837
+ writer.writeBool(
838
+ 2,
839
+ f
2720
840
  );
2721
841
  }
2722
842
  };
2723
843
 
2724
844
 
2725
845
  /**
2726
- * repeated IndicatorInfo indicators = 1;
2727
- * @return {!Array<!proto.trb.indicators.v1.IndicatorInfo>}
846
+ * optional uint64 hash = 1;
847
+ * @return {number}
2728
848
  */
2729
- proto.trb.indicators.v1.ListSupportedResponse.prototype.getIndicatorsList = function() {
2730
- return /** @type{!Array<!proto.trb.indicators.v1.IndicatorInfo>} */ (
2731
- jspb.Message.getRepeatedWrapperField(this, proto.trb.indicators.v1.IndicatorInfo, 1));
2732
- };
2733
-
2734
-
2735
- /**
2736
- * @param {!Array<!proto.trb.indicators.v1.IndicatorInfo>} value
2737
- * @return {!proto.trb.indicators.v1.ListSupportedResponse} returns this
2738
- */
2739
- proto.trb.indicators.v1.ListSupportedResponse.prototype.setIndicatorsList = function(value) {
2740
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
849
+ proto.trb.indicators.v1.UpdateSettingsResponse.prototype.getHash = function() {
850
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2741
851
  };
2742
852
 
2743
853
 
2744
854
  /**
2745
- * @param {!proto.trb.indicators.v1.IndicatorInfo=} opt_value
2746
- * @param {number=} opt_index
2747
- * @return {!proto.trb.indicators.v1.IndicatorInfo}
855
+ * @param {number} value
856
+ * @return {!proto.trb.indicators.v1.UpdateSettingsResponse} returns this
2748
857
  */
2749
- proto.trb.indicators.v1.ListSupportedResponse.prototype.addIndicators = function(opt_value, opt_index) {
2750
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.indicators.v1.IndicatorInfo, opt_index);
858
+ proto.trb.indicators.v1.UpdateSettingsResponse.prototype.setHash = function(value) {
859
+ return jspb.Message.setProto3IntField(this, 1, value);
2751
860
  };
2752
861
 
2753
862
 
2754
863
  /**
2755
- * Clears the list making it empty but non-null.
2756
- * @return {!proto.trb.indicators.v1.ListSupportedResponse} returns this
864
+ * optional bool update = 2;
865
+ * @return {boolean}
2757
866
  */
2758
- proto.trb.indicators.v1.ListSupportedResponse.prototype.clearIndicatorsList = function() {
2759
- return this.setIndicatorsList([]);
867
+ proto.trb.indicators.v1.UpdateSettingsResponse.prototype.getUpdate = function() {
868
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
2760
869
  };
2761
870
 
2762
871
 
2763
872
  /**
2764
- * @enum {number}
873
+ * @param {boolean} value
874
+ * @return {!proto.trb.indicators.v1.UpdateSettingsResponse} returns this
2765
875
  */
2766
- proto.trb.indicators.v1.IndicatorType = {
2767
- INDICATOR_TYPE_UNSPECIFIED: 0,
2768
- INDICATOR_TYPE_RSI: 1,
2769
- INDICATOR_TYPE_SMA: 2,
2770
- INDICATOR_TYPE_EMA: 3,
2771
- INDICATOR_TYPE_MACD: 4,
2772
- INDICATOR_TYPE_BB: 5
876
+ proto.trb.indicators.v1.UpdateSettingsResponse.prototype.setUpdate = function(value) {
877
+ return jspb.Message.setProto3BooleanField(this, 2, value);
2773
878
  };
2774
879
 
880
+
2775
881
  goog.object.extend(exports, proto.trb.indicators.v1);