@marleena/trb-proto 1.0.43 → 1.0.44

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.
@@ -18,6 +18,7 @@
18
18
  import * as grpcWeb from 'grpc-web';
19
19
 
20
20
  import * as indicators_indicators_pb from '../indicators/indicators_pb'; // proto import: "indicators/indicators.proto"
21
+ import * as indicators_values_pb from '../indicators/values_pb'; // proto import: "indicators/values.proto"
21
22
 
22
23
 
23
24
  export class IndicatorsClient {
@@ -168,47 +169,90 @@ export class IndicatorsClient {
168
169
  this.methodDescriptorComputeForInstrument);
169
170
  }
170
171
 
171
- methodDescriptorListIndicatorValues = new grpcWeb.MethodDescriptor(
172
- '/trb.indicators.v1.Indicators/ListIndicatorValues',
172
+ methodDescriptorIndicatorValues = new grpcWeb.MethodDescriptor(
173
+ '/trb.indicators.v1.Indicators/IndicatorValues',
173
174
  grpcWeb.MethodType.UNARY,
174
- indicators_indicators_pb.ListIndicatorValuesRequest,
175
- indicators_indicators_pb.ListIndicatorValuesResponse,
176
- (request: indicators_indicators_pb.ListIndicatorValuesRequest) => {
175
+ indicators_indicators_pb.SettingsRequest,
176
+ indicators_values_pb.IndicatorValuesResponse,
177
+ (request: indicators_indicators_pb.SettingsRequest) => {
177
178
  return request.serializeBinary();
178
179
  },
179
- indicators_indicators_pb.ListIndicatorValuesResponse.deserializeBinary
180
+ indicators_values_pb.IndicatorValuesResponse.deserializeBinary
180
181
  );
181
182
 
182
- listIndicatorValues(
183
- request: indicators_indicators_pb.ListIndicatorValuesRequest,
184
- metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.ListIndicatorValuesResponse>;
183
+ indicatorValues(
184
+ request: indicators_indicators_pb.SettingsRequest,
185
+ metadata?: grpcWeb.Metadata | null): Promise<indicators_values_pb.IndicatorValuesResponse>;
185
186
 
186
- listIndicatorValues(
187
- request: indicators_indicators_pb.ListIndicatorValuesRequest,
187
+ indicatorValues(
188
+ request: indicators_indicators_pb.SettingsRequest,
188
189
  metadata: grpcWeb.Metadata | null,
189
190
  callback: (err: grpcWeb.RpcError,
190
- response: indicators_indicators_pb.ListIndicatorValuesResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.ListIndicatorValuesResponse>;
191
+ response: indicators_values_pb.IndicatorValuesResponse) => void): grpcWeb.ClientReadableStream<indicators_values_pb.IndicatorValuesResponse>;
191
192
 
192
- listIndicatorValues(
193
- request: indicators_indicators_pb.ListIndicatorValuesRequest,
193
+ indicatorValues(
194
+ request: indicators_indicators_pb.SettingsRequest,
194
195
  metadata?: grpcWeb.Metadata | null,
195
196
  callback?: (err: grpcWeb.RpcError,
196
- response: indicators_indicators_pb.ListIndicatorValuesResponse) => void) {
197
+ response: indicators_values_pb.IndicatorValuesResponse) => void) {
197
198
  if (callback !== undefined) {
198
199
  return this.client_.rpcCall(
199
200
  this.hostname_ +
200
- '/trb.indicators.v1.Indicators/ListIndicatorValues',
201
+ '/trb.indicators.v1.Indicators/IndicatorValues',
201
202
  request,
202
203
  metadata || {},
203
- this.methodDescriptorListIndicatorValues,
204
+ this.methodDescriptorIndicatorValues,
204
205
  callback);
205
206
  }
206
207
  return this.client_.unaryCall(
207
208
  this.hostname_ +
208
- '/trb.indicators.v1.Indicators/ListIndicatorValues',
209
+ '/trb.indicators.v1.Indicators/IndicatorValues',
209
210
  request,
210
211
  metadata || {},
211
- this.methodDescriptorListIndicatorValues);
212
+ this.methodDescriptorIndicatorValues);
213
+ }
214
+
215
+ methodDescriptorSettingsHash = new grpcWeb.MethodDescriptor(
216
+ '/trb.indicators.v1.Indicators/SettingsHash',
217
+ grpcWeb.MethodType.UNARY,
218
+ indicators_indicators_pb.SettingsRequest,
219
+ indicators_indicators_pb.SettingsHashResponse,
220
+ (request: indicators_indicators_pb.SettingsRequest) => {
221
+ return request.serializeBinary();
222
+ },
223
+ indicators_indicators_pb.SettingsHashResponse.deserializeBinary
224
+ );
225
+
226
+ settingsHash(
227
+ request: indicators_indicators_pb.SettingsRequest,
228
+ metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.SettingsHashResponse>;
229
+
230
+ settingsHash(
231
+ request: indicators_indicators_pb.SettingsRequest,
232
+ metadata: grpcWeb.Metadata | null,
233
+ callback: (err: grpcWeb.RpcError,
234
+ response: indicators_indicators_pb.SettingsHashResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.SettingsHashResponse>;
235
+
236
+ settingsHash(
237
+ request: indicators_indicators_pb.SettingsRequest,
238
+ metadata?: grpcWeb.Metadata | null,
239
+ callback?: (err: grpcWeb.RpcError,
240
+ response: indicators_indicators_pb.SettingsHashResponse) => void) {
241
+ if (callback !== undefined) {
242
+ return this.client_.rpcCall(
243
+ this.hostname_ +
244
+ '/trb.indicators.v1.Indicators/SettingsHash',
245
+ request,
246
+ metadata || {},
247
+ this.methodDescriptorSettingsHash,
248
+ callback);
249
+ }
250
+ return this.client_.unaryCall(
251
+ this.hostname_ +
252
+ '/trb.indicators.v1.Indicators/SettingsHash',
253
+ request,
254
+ metadata || {},
255
+ this.methodDescriptorSettingsHash);
212
256
  }
213
257
 
214
258
  }
@@ -2,8 +2,68 @@ import * as jspb from 'google-protobuf'
2
2
 
3
3
  import * as google_api_annotations_pb from '../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
4
  import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
5
+ import * as indicators_params_pb from '../indicators/params_pb'; // proto import: "indicators/params.proto"
6
+ import * as indicators_values_pb from '../indicators/values_pb'; // proto import: "indicators/values.proto"
5
7
 
6
8
 
9
+ export class SettingsRequest extends jspb.Message {
10
+ getInterval(): number;
11
+ setInterval(value: number): SettingsRequest;
12
+
13
+ getUid(): string;
14
+ setUid(value: string): SettingsRequest;
15
+
16
+ getSettings(): indicators_params_pb.IndicatorSettings | undefined;
17
+ setSettings(value?: indicators_params_pb.IndicatorSettings): SettingsRequest;
18
+ hasSettings(): boolean;
19
+ clearSettings(): SettingsRequest;
20
+
21
+ getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
22
+ setStart(value?: google_protobuf_timestamp_pb.Timestamp): SettingsRequest;
23
+ hasStart(): boolean;
24
+ clearStart(): SettingsRequest;
25
+
26
+ getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
27
+ setEnd(value?: google_protobuf_timestamp_pb.Timestamp): SettingsRequest;
28
+ hasEnd(): boolean;
29
+ clearEnd(): SettingsRequest;
30
+
31
+ serializeBinary(): Uint8Array;
32
+ toObject(includeInstance?: boolean): SettingsRequest.AsObject;
33
+ static toObject(includeInstance: boolean, msg: SettingsRequest): SettingsRequest.AsObject;
34
+ static serializeBinaryToWriter(message: SettingsRequest, writer: jspb.BinaryWriter): void;
35
+ static deserializeBinary(bytes: Uint8Array): SettingsRequest;
36
+ static deserializeBinaryFromReader(message: SettingsRequest, reader: jspb.BinaryReader): SettingsRequest;
37
+ }
38
+
39
+ export namespace SettingsRequest {
40
+ export type AsObject = {
41
+ interval: number,
42
+ uid: string,
43
+ settings?: indicators_params_pb.IndicatorSettings.AsObject,
44
+ start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
45
+ end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
46
+ }
47
+ }
48
+
49
+ export class SettingsHashResponse extends jspb.Message {
50
+ getHash(): number;
51
+ setHash(value: number): SettingsHashResponse;
52
+
53
+ serializeBinary(): Uint8Array;
54
+ toObject(includeInstance?: boolean): SettingsHashResponse.AsObject;
55
+ static toObject(includeInstance: boolean, msg: SettingsHashResponse): SettingsHashResponse.AsObject;
56
+ static serializeBinaryToWriter(message: SettingsHashResponse, writer: jspb.BinaryWriter): void;
57
+ static deserializeBinary(bytes: Uint8Array): SettingsHashResponse;
58
+ static deserializeBinaryFromReader(message: SettingsHashResponse, reader: jspb.BinaryReader): SettingsHashResponse;
59
+ }
60
+
61
+ export namespace SettingsHashResponse {
62
+ export type AsObject = {
63
+ hash: number,
64
+ }
65
+ }
66
+
7
67
  export class Candle extends jspb.Message {
8
68
  getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
9
69
  setTime(value?: google_protobuf_timestamp_pb.Timestamp): Candle;
@@ -25,6 +25,10 @@ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
25
25
  goog.object.extend(proto, google_api_annotations_pb);
26
26
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
27
  goog.object.extend(proto, google_protobuf_timestamp_pb);
28
+ var indicators_params_pb = require('../indicators/params_pb.js');
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);
28
32
  goog.exportSymbol('proto.trb.indicators.v1.Candle', null, global);
29
33
  goog.exportSymbol('proto.trb.indicators.v1.ComputeForInstrumentRequest', null, global);
30
34
  goog.exportSymbol('proto.trb.indicators.v1.ComputeRequest', null, global);
@@ -36,6 +40,50 @@ goog.exportSymbol('proto.trb.indicators.v1.ListIndicatorValuesRequest', null, gl
36
40
  goog.exportSymbol('proto.trb.indicators.v1.ListIndicatorValuesResponse', null, global);
37
41
  goog.exportSymbol('proto.trb.indicators.v1.ListSupportedRequest', null, global);
38
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);
45
+ /**
46
+ * Generated by JsPbCodeGenerator.
47
+ * @param {Array=} opt_data Optional initial data array, typically from a
48
+ * server response, or constructed directly in Javascript. The array is used
49
+ * in place and becomes part of the constructed object. It is not cloned.
50
+ * If no data is provided, the constructed object will be empty, but still
51
+ * valid.
52
+ * @extends {jspb.Message}
53
+ * @constructor
54
+ */
55
+ proto.trb.indicators.v1.SettingsRequest = function(opt_data) {
56
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
57
+ };
58
+ goog.inherits(proto.trb.indicators.v1.SettingsRequest, jspb.Message);
59
+ if (goog.DEBUG && !COMPILED) {
60
+ /**
61
+ * @public
62
+ * @override
63
+ */
64
+ proto.trb.indicators.v1.SettingsRequest.displayName = 'proto.trb.indicators.v1.SettingsRequest';
65
+ }
66
+ /**
67
+ * Generated by JsPbCodeGenerator.
68
+ * @param {Array=} opt_data Optional initial data array, typically from a
69
+ * server response, or constructed directly in Javascript. The array is used
70
+ * in place and becomes part of the constructed object. It is not cloned.
71
+ * If no data is provided, the constructed object will be empty, but still
72
+ * valid.
73
+ * @extends {jspb.Message}
74
+ * @constructor
75
+ */
76
+ proto.trb.indicators.v1.SettingsHashResponse = function(opt_data) {
77
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
78
+ };
79
+ goog.inherits(proto.trb.indicators.v1.SettingsHashResponse, jspb.Message);
80
+ if (goog.DEBUG && !COMPILED) {
81
+ /**
82
+ * @public
83
+ * @override
84
+ */
85
+ proto.trb.indicators.v1.SettingsHashResponse.displayName = 'proto.trb.indicators.v1.SettingsHashResponse';
86
+ }
39
87
  /**
40
88
  * Generated by JsPbCodeGenerator.
41
89
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -249,6 +297,449 @@ if (goog.DEBUG && !COMPILED) {
249
297
 
250
298
 
251
299
 
300
+ if (jspb.Message.GENERATE_TO_OBJECT) {
301
+ /**
302
+ * Creates an object representation of this proto.
303
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
304
+ * Optional fields that are not set will be set to undefined.
305
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
306
+ * For the list of reserved names please see:
307
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
308
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
309
+ * JSPB instance for transitional soy proto support:
310
+ * http://goto/soy-param-migration
311
+ * @return {!Object}
312
+ */
313
+ proto.trb.indicators.v1.SettingsRequest.prototype.toObject = function(opt_includeInstance) {
314
+ return proto.trb.indicators.v1.SettingsRequest.toObject(opt_includeInstance, this);
315
+ };
316
+
317
+
318
+ /**
319
+ * Static version of the {@see toObject} method.
320
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
321
+ * the JSPB instance for transitional soy proto support:
322
+ * http://goto/soy-param-migration
323
+ * @param {!proto.trb.indicators.v1.SettingsRequest} msg The msg instance to transform.
324
+ * @return {!Object}
325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
326
+ */
327
+ proto.trb.indicators.v1.SettingsRequest.toObject = function(includeInstance, msg) {
328
+ var f, obj = {
329
+ interval: jspb.Message.getFieldWithDefault(msg, 1, 0),
330
+ uid: jspb.Message.getFieldWithDefault(msg, 2, ""),
331
+ settings: (f = msg.getSettings()) && indicators_params_pb.IndicatorSettings.toObject(includeInstance, f),
332
+ start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
333
+ end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
334
+ };
335
+
336
+ if (includeInstance) {
337
+ obj.$jspbMessageInstance = msg;
338
+ }
339
+ return obj;
340
+ };
341
+ }
342
+
343
+
344
+ /**
345
+ * Deserializes binary data (in protobuf wire format).
346
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
347
+ * @return {!proto.trb.indicators.v1.SettingsRequest}
348
+ */
349
+ proto.trb.indicators.v1.SettingsRequest.deserializeBinary = function(bytes) {
350
+ 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);
353
+ };
354
+
355
+
356
+ /**
357
+ * Deserializes binary data (in protobuf wire format) from the
358
+ * given reader into the given message object.
359
+ * @param {!proto.trb.indicators.v1.SettingsRequest} msg The message object to deserialize into.
360
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
361
+ * @return {!proto.trb.indicators.v1.SettingsRequest}
362
+ */
363
+ proto.trb.indicators.v1.SettingsRequest.deserializeBinaryFromReader = function(msg, reader) {
364
+ while (reader.nextField()) {
365
+ if (reader.isEndGroup()) {
366
+ break;
367
+ }
368
+ var field = reader.getFieldNumber();
369
+ switch (field) {
370
+ case 1:
371
+ var value = /** @type {number} */ (reader.readUint32());
372
+ msg.setInterval(value);
373
+ break;
374
+ case 2:
375
+ var value = /** @type {string} */ (reader.readString());
376
+ msg.setUid(value);
377
+ break;
378
+ case 3:
379
+ var value = new indicators_params_pb.IndicatorSettings;
380
+ reader.readMessage(value,indicators_params_pb.IndicatorSettings.deserializeBinaryFromReader);
381
+ msg.setSettings(value);
382
+ break;
383
+ case 4:
384
+ var value = new google_protobuf_timestamp_pb.Timestamp;
385
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
386
+ msg.setStart(value);
387
+ break;
388
+ case 5:
389
+ var value = new google_protobuf_timestamp_pb.Timestamp;
390
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
391
+ msg.setEnd(value);
392
+ break;
393
+ default:
394
+ reader.skipField();
395
+ break;
396
+ }
397
+ }
398
+ return msg;
399
+ };
400
+
401
+
402
+ /**
403
+ * Serializes the message to binary data (in protobuf wire format).
404
+ * @return {!Uint8Array}
405
+ */
406
+ proto.trb.indicators.v1.SettingsRequest.prototype.serializeBinary = function() {
407
+ var writer = new jspb.BinaryWriter();
408
+ proto.trb.indicators.v1.SettingsRequest.serializeBinaryToWriter(this, writer);
409
+ return writer.getResultBuffer();
410
+ };
411
+
412
+
413
+ /**
414
+ * Serializes the given message to binary data (in protobuf wire
415
+ * format), writing to the given BinaryWriter.
416
+ * @param {!proto.trb.indicators.v1.SettingsRequest} message
417
+ * @param {!jspb.BinaryWriter} writer
418
+ * @suppress {unusedLocalVariables} f is only used for nested messages
419
+ */
420
+ proto.trb.indicators.v1.SettingsRequest.serializeBinaryToWriter = function(message, writer) {
421
+ var f = undefined;
422
+ f = message.getInterval();
423
+ if (f !== 0) {
424
+ writer.writeUint32(
425
+ 1,
426
+ f
427
+ );
428
+ }
429
+ f = message.getUid();
430
+ if (f.length > 0) {
431
+ writer.writeString(
432
+ 2,
433
+ f
434
+ );
435
+ }
436
+ f = message.getSettings();
437
+ if (f != null) {
438
+ writer.writeMessage(
439
+ 3,
440
+ f,
441
+ indicators_params_pb.IndicatorSettings.serializeBinaryToWriter
442
+ );
443
+ }
444
+ f = message.getStart();
445
+ if (f != null) {
446
+ writer.writeMessage(
447
+ 4,
448
+ f,
449
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
450
+ );
451
+ }
452
+ f = message.getEnd();
453
+ if (f != null) {
454
+ writer.writeMessage(
455
+ 5,
456
+ f,
457
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
458
+ );
459
+ }
460
+ };
461
+
462
+
463
+ /**
464
+ * optional uint32 interval = 1;
465
+ * @return {number}
466
+ */
467
+ proto.trb.indicators.v1.SettingsRequest.prototype.getInterval = function() {
468
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
469
+ };
470
+
471
+
472
+ /**
473
+ * @param {number} value
474
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
475
+ */
476
+ proto.trb.indicators.v1.SettingsRequest.prototype.setInterval = function(value) {
477
+ return jspb.Message.setProto3IntField(this, 1, value);
478
+ };
479
+
480
+
481
+ /**
482
+ * optional string uid = 2;
483
+ * @return {string}
484
+ */
485
+ proto.trb.indicators.v1.SettingsRequest.prototype.getUid = function() {
486
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
487
+ };
488
+
489
+
490
+ /**
491
+ * @param {string} value
492
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
493
+ */
494
+ proto.trb.indicators.v1.SettingsRequest.prototype.setUid = function(value) {
495
+ return jspb.Message.setProto3StringField(this, 2, value);
496
+ };
497
+
498
+
499
+ /**
500
+ * optional IndicatorSettings settings = 3;
501
+ * @return {?proto.trb.indicators.v1.IndicatorSettings}
502
+ */
503
+ proto.trb.indicators.v1.SettingsRequest.prototype.getSettings = function() {
504
+ return /** @type{?proto.trb.indicators.v1.IndicatorSettings} */ (
505
+ jspb.Message.getWrapperField(this, indicators_params_pb.IndicatorSettings, 3));
506
+ };
507
+
508
+
509
+ /**
510
+ * @param {?proto.trb.indicators.v1.IndicatorSettings|undefined} value
511
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
512
+ */
513
+ proto.trb.indicators.v1.SettingsRequest.prototype.setSettings = function(value) {
514
+ return jspb.Message.setWrapperField(this, 3, value);
515
+ };
516
+
517
+
518
+ /**
519
+ * Clears the message field making it undefined.
520
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
521
+ */
522
+ proto.trb.indicators.v1.SettingsRequest.prototype.clearSettings = function() {
523
+ return this.setSettings(undefined);
524
+ };
525
+
526
+
527
+ /**
528
+ * Returns whether this field is set.
529
+ * @return {boolean}
530
+ */
531
+ proto.trb.indicators.v1.SettingsRequest.prototype.hasSettings = function() {
532
+ return jspb.Message.getField(this, 3) != null;
533
+ };
534
+
535
+
536
+ /**
537
+ * optional google.protobuf.Timestamp start = 4;
538
+ * @return {?proto.google.protobuf.Timestamp}
539
+ */
540
+ proto.trb.indicators.v1.SettingsRequest.prototype.getStart = function() {
541
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
542
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
543
+ };
544
+
545
+
546
+ /**
547
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
548
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
549
+ */
550
+ proto.trb.indicators.v1.SettingsRequest.prototype.setStart = function(value) {
551
+ return jspb.Message.setWrapperField(this, 4, value);
552
+ };
553
+
554
+
555
+ /**
556
+ * Clears the message field making it undefined.
557
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
558
+ */
559
+ proto.trb.indicators.v1.SettingsRequest.prototype.clearStart = function() {
560
+ return this.setStart(undefined);
561
+ };
562
+
563
+
564
+ /**
565
+ * Returns whether this field is set.
566
+ * @return {boolean}
567
+ */
568
+ proto.trb.indicators.v1.SettingsRequest.prototype.hasStart = function() {
569
+ return jspb.Message.getField(this, 4) != null;
570
+ };
571
+
572
+
573
+ /**
574
+ * optional google.protobuf.Timestamp end = 5;
575
+ * @return {?proto.google.protobuf.Timestamp}
576
+ */
577
+ proto.trb.indicators.v1.SettingsRequest.prototype.getEnd = function() {
578
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
579
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
580
+ };
581
+
582
+
583
+ /**
584
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
585
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
586
+ */
587
+ proto.trb.indicators.v1.SettingsRequest.prototype.setEnd = function(value) {
588
+ return jspb.Message.setWrapperField(this, 5, value);
589
+ };
590
+
591
+
592
+ /**
593
+ * Clears the message field making it undefined.
594
+ * @return {!proto.trb.indicators.v1.SettingsRequest} returns this
595
+ */
596
+ proto.trb.indicators.v1.SettingsRequest.prototype.clearEnd = function() {
597
+ return this.setEnd(undefined);
598
+ };
599
+
600
+
601
+ /**
602
+ * Returns whether this field is set.
603
+ * @return {boolean}
604
+ */
605
+ proto.trb.indicators.v1.SettingsRequest.prototype.hasEnd = function() {
606
+ return jspb.Message.getField(this, 5) != null;
607
+ };
608
+
609
+
610
+
611
+
612
+
613
+ if (jspb.Message.GENERATE_TO_OBJECT) {
614
+ /**
615
+ * Creates an object representation of this proto.
616
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
617
+ * Optional fields that are not set will be set to undefined.
618
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
619
+ * For the list of reserved names please see:
620
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
621
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
622
+ * JSPB instance for transitional soy proto support:
623
+ * http://goto/soy-param-migration
624
+ * @return {!Object}
625
+ */
626
+ proto.trb.indicators.v1.SettingsHashResponse.prototype.toObject = function(opt_includeInstance) {
627
+ return proto.trb.indicators.v1.SettingsHashResponse.toObject(opt_includeInstance, this);
628
+ };
629
+
630
+
631
+ /**
632
+ * Static version of the {@see toObject} method.
633
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
634
+ * the JSPB instance for transitional soy proto support:
635
+ * http://goto/soy-param-migration
636
+ * @param {!proto.trb.indicators.v1.SettingsHashResponse} msg The msg instance to transform.
637
+ * @return {!Object}
638
+ * @suppress {unusedLocalVariables} f is only used for nested messages
639
+ */
640
+ proto.trb.indicators.v1.SettingsHashResponse.toObject = function(includeInstance, msg) {
641
+ var f, obj = {
642
+ hash: jspb.Message.getFieldWithDefault(msg, 1, 0)
643
+ };
644
+
645
+ if (includeInstance) {
646
+ obj.$jspbMessageInstance = msg;
647
+ }
648
+ return obj;
649
+ };
650
+ }
651
+
652
+
653
+ /**
654
+ * Deserializes binary data (in protobuf wire format).
655
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
656
+ * @return {!proto.trb.indicators.v1.SettingsHashResponse}
657
+ */
658
+ proto.trb.indicators.v1.SettingsHashResponse.deserializeBinary = function(bytes) {
659
+ 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);
662
+ };
663
+
664
+
665
+ /**
666
+ * Deserializes binary data (in protobuf wire format) from the
667
+ * given reader into the given message object.
668
+ * @param {!proto.trb.indicators.v1.SettingsHashResponse} msg The message object to deserialize into.
669
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
670
+ * @return {!proto.trb.indicators.v1.SettingsHashResponse}
671
+ */
672
+ proto.trb.indicators.v1.SettingsHashResponse.deserializeBinaryFromReader = function(msg, reader) {
673
+ while (reader.nextField()) {
674
+ if (reader.isEndGroup()) {
675
+ break;
676
+ }
677
+ var field = reader.getFieldNumber();
678
+ switch (field) {
679
+ case 1:
680
+ var value = /** @type {number} */ (reader.readUint64());
681
+ msg.setHash(value);
682
+ break;
683
+ default:
684
+ reader.skipField();
685
+ break;
686
+ }
687
+ }
688
+ return msg;
689
+ };
690
+
691
+
692
+ /**
693
+ * Serializes the message to binary data (in protobuf wire format).
694
+ * @return {!Uint8Array}
695
+ */
696
+ proto.trb.indicators.v1.SettingsHashResponse.prototype.serializeBinary = function() {
697
+ var writer = new jspb.BinaryWriter();
698
+ proto.trb.indicators.v1.SettingsHashResponse.serializeBinaryToWriter(this, writer);
699
+ return writer.getResultBuffer();
700
+ };
701
+
702
+
703
+ /**
704
+ * Serializes the given message to binary data (in protobuf wire
705
+ * format), writing to the given BinaryWriter.
706
+ * @param {!proto.trb.indicators.v1.SettingsHashResponse} message
707
+ * @param {!jspb.BinaryWriter} writer
708
+ * @suppress {unusedLocalVariables} f is only used for nested messages
709
+ */
710
+ proto.trb.indicators.v1.SettingsHashResponse.serializeBinaryToWriter = function(message, writer) {
711
+ var f = undefined;
712
+ f = message.getHash();
713
+ if (f !== 0) {
714
+ writer.writeUint64(
715
+ 1,
716
+ f
717
+ );
718
+ }
719
+ };
720
+
721
+
722
+ /**
723
+ * optional uint64 hash = 1;
724
+ * @return {number}
725
+ */
726
+ proto.trb.indicators.v1.SettingsHashResponse.prototype.getHash = function() {
727
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
728
+ };
729
+
730
+
731
+ /**
732
+ * @param {number} value
733
+ * @return {!proto.trb.indicators.v1.SettingsHashResponse} returns this
734
+ */
735
+ proto.trb.indicators.v1.SettingsHashResponse.prototype.setHash = function(value) {
736
+ return jspb.Message.setProto3IntField(this, 1, value);
737
+ };
738
+
739
+
740
+
741
+
742
+
252
743
  if (jspb.Message.GENERATE_TO_OBJECT) {
253
744
  /**
254
745
  * Creates an object representation of this proto.