@kaiko-data/sdk-node 1.26.0 → 1.27.1

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