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