@kaiko-data/sdk-node 1.22.1 → 1.23.0

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,1376 @@
1
+ // source: sdk/stream/exotic_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 google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
27
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
28
+ var sdk_core_data_interval_pb = require('../../../sdk/core/data_interval_pb.js');
29
+ goog.object.extend(proto, sdk_core_data_interval_pb);
30
+ var sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/commodity_pb.js');
31
+ goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
32
+ goog.exportSymbol('proto.kaikosdk.StreamExoticIndicesPosition', null, global);
33
+ goog.exportSymbol('proto.kaikosdk.StreamExoticIndicesServiceResponseComposition', null, global);
34
+ goog.exportSymbol('proto.kaikosdk.StreamExoticIndicesServiceResponsePair', null, global);
35
+ goog.exportSymbol('proto.kaikosdk.StreamExoticIndicesServiceResponsePrices', null, global);
36
+ goog.exportSymbol('proto.kaikosdk.StreamExoticIndicesServiceResponseV1', null, global);
37
+ /**
38
+ * Generated by JsPbCodeGenerator.
39
+ * @param {Array=} opt_data Optional initial data array, typically from a
40
+ * server response, or constructed directly in Javascript. The array is used
41
+ * in place and becomes part of the constructed object. It is not cloned.
42
+ * If no data is provided, the constructed object will be empty, but still
43
+ * valid.
44
+ * @extends {jspb.Message}
45
+ * @constructor
46
+ */
47
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition = function(opt_data) {
48
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
49
+ };
50
+ goog.inherits(proto.kaikosdk.StreamExoticIndicesServiceResponseComposition, jspb.Message);
51
+ if (goog.DEBUG && !COMPILED) {
52
+ /**
53
+ * @public
54
+ * @override
55
+ */
56
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.displayName = 'proto.kaikosdk.StreamExoticIndicesServiceResponseComposition';
57
+ }
58
+ /**
59
+ * Generated by JsPbCodeGenerator.
60
+ * @param {Array=} opt_data Optional initial data array, typically from a
61
+ * server response, or constructed directly in Javascript. The array is used
62
+ * in place and becomes part of the constructed object. It is not cloned.
63
+ * If no data is provided, the constructed object will be empty, but still
64
+ * valid.
65
+ * @extends {jspb.Message}
66
+ * @constructor
67
+ */
68
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair = function(opt_data) {
69
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
70
+ };
71
+ goog.inherits(proto.kaikosdk.StreamExoticIndicesServiceResponsePair, jspb.Message);
72
+ if (goog.DEBUG && !COMPILED) {
73
+ /**
74
+ * @public
75
+ * @override
76
+ */
77
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.displayName = 'proto.kaikosdk.StreamExoticIndicesServiceResponsePair';
78
+ }
79
+ /**
80
+ * Generated by JsPbCodeGenerator.
81
+ * @param {Array=} opt_data Optional initial data array, typically from a
82
+ * server response, or constructed directly in Javascript. The array is used
83
+ * in place and becomes part of the constructed object. It is not cloned.
84
+ * If no data is provided, the constructed object will be empty, but still
85
+ * valid.
86
+ * @extends {jspb.Message}
87
+ * @constructor
88
+ */
89
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices = function(opt_data) {
90
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.repeatedFields_, null);
91
+ };
92
+ goog.inherits(proto.kaikosdk.StreamExoticIndicesServiceResponsePrices, jspb.Message);
93
+ if (goog.DEBUG && !COMPILED) {
94
+ /**
95
+ * @public
96
+ * @override
97
+ */
98
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.displayName = 'proto.kaikosdk.StreamExoticIndicesServiceResponsePrices';
99
+ }
100
+ /**
101
+ * Generated by JsPbCodeGenerator.
102
+ * @param {Array=} opt_data Optional initial data array, typically from a
103
+ * server response, or constructed directly in Javascript. The array is used
104
+ * in place and becomes part of the constructed object. It is not cloned.
105
+ * If no data is provided, the constructed object will be empty, but still
106
+ * valid.
107
+ * @extends {jspb.Message}
108
+ * @constructor
109
+ */
110
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1 = function(opt_data) {
111
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.kaikosdk.StreamExoticIndicesServiceResponseV1.repeatedFields_, null);
112
+ };
113
+ goog.inherits(proto.kaikosdk.StreamExoticIndicesServiceResponseV1, jspb.Message);
114
+ if (goog.DEBUG && !COMPILED) {
115
+ /**
116
+ * @public
117
+ * @override
118
+ */
119
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.displayName = 'proto.kaikosdk.StreamExoticIndicesServiceResponseV1';
120
+ }
121
+
122
+
123
+
124
+ if (jspb.Message.GENERATE_TO_OBJECT) {
125
+ /**
126
+ * Creates an object representation of this proto.
127
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
128
+ * Optional fields that are not set will be set to undefined.
129
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
130
+ * For the list of reserved names please see:
131
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
132
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
133
+ * JSPB instance for transitional soy proto support:
134
+ * http://goto/soy-param-migration
135
+ * @return {!Object}
136
+ */
137
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.toObject = function(opt_includeInstance) {
138
+ return proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.toObject(opt_includeInstance, this);
139
+ };
140
+
141
+
142
+ /**
143
+ * Static version of the {@see toObject} method.
144
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
145
+ * the JSPB instance for transitional soy proto support:
146
+ * http://goto/soy-param-migration
147
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} msg The msg instance to transform.
148
+ * @return {!Object}
149
+ * @suppress {unusedLocalVariables} f is only used for nested messages
150
+ */
151
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.toObject = function(includeInstance, msg) {
152
+ var f, obj = {
153
+ underlyingInstrument: jspb.Message.getFieldWithDefault(msg, 1, ""),
154
+ base: jspb.Message.getFieldWithDefault(msg, 2, ""),
155
+ quote: jspb.Message.getFieldWithDefault(msg, 3, ""),
156
+ currencyConversion: jspb.Message.getFieldWithDefault(msg, 6, ""),
157
+ tsEvent: (f = msg.getTsEvent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
158
+ };
159
+
160
+ if (includeInstance) {
161
+ obj.$jspbMessageInstance = msg;
162
+ }
163
+ return obj;
164
+ };
165
+ }
166
+
167
+
168
+ /**
169
+ * Deserializes binary data (in protobuf wire format).
170
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
171
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition}
172
+ */
173
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.deserializeBinary = function(bytes) {
174
+ var reader = new jspb.BinaryReader(bytes);
175
+ var msg = new proto.kaikosdk.StreamExoticIndicesServiceResponseComposition;
176
+ return proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.deserializeBinaryFromReader(msg, reader);
177
+ };
178
+
179
+
180
+ /**
181
+ * Deserializes binary data (in protobuf wire format) from the
182
+ * given reader into the given message object.
183
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} msg The message object to deserialize into.
184
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
185
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition}
186
+ */
187
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.deserializeBinaryFromReader = function(msg, reader) {
188
+ while (reader.nextField()) {
189
+ if (reader.isEndGroup()) {
190
+ break;
191
+ }
192
+ var field = reader.getFieldNumber();
193
+ switch (field) {
194
+ case 1:
195
+ var value = /** @type {string} */ (reader.readString());
196
+ msg.setUnderlyingInstrument(value);
197
+ break;
198
+ case 2:
199
+ var value = /** @type {string} */ (reader.readString());
200
+ msg.setBase(value);
201
+ break;
202
+ case 3:
203
+ var value = /** @type {string} */ (reader.readString());
204
+ msg.setQuote(value);
205
+ break;
206
+ case 6:
207
+ var value = /** @type {string} */ (reader.readString());
208
+ msg.setCurrencyConversion(value);
209
+ break;
210
+ case 7:
211
+ var value = new google_protobuf_timestamp_pb.Timestamp;
212
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
213
+ msg.setTsEvent(value);
214
+ break;
215
+ default:
216
+ reader.skipField();
217
+ break;
218
+ }
219
+ }
220
+ return msg;
221
+ };
222
+
223
+
224
+ /**
225
+ * Serializes the message to binary data (in protobuf wire format).
226
+ * @return {!Uint8Array}
227
+ */
228
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.serializeBinary = function() {
229
+ var writer = new jspb.BinaryWriter();
230
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.serializeBinaryToWriter(this, writer);
231
+ return writer.getResultBuffer();
232
+ };
233
+
234
+
235
+ /**
236
+ * Serializes the given message to binary data (in protobuf wire
237
+ * format), writing to the given BinaryWriter.
238
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} message
239
+ * @param {!jspb.BinaryWriter} writer
240
+ * @suppress {unusedLocalVariables} f is only used for nested messages
241
+ */
242
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.serializeBinaryToWriter = function(message, writer) {
243
+ var f = undefined;
244
+ f = message.getUnderlyingInstrument();
245
+ if (f.length > 0) {
246
+ writer.writeString(
247
+ 1,
248
+ f
249
+ );
250
+ }
251
+ f = message.getBase();
252
+ if (f.length > 0) {
253
+ writer.writeString(
254
+ 2,
255
+ f
256
+ );
257
+ }
258
+ f = message.getQuote();
259
+ if (f.length > 0) {
260
+ writer.writeString(
261
+ 3,
262
+ f
263
+ );
264
+ }
265
+ f = message.getCurrencyConversion();
266
+ if (f.length > 0) {
267
+ writer.writeString(
268
+ 6,
269
+ f
270
+ );
271
+ }
272
+ f = message.getTsEvent();
273
+ if (f != null) {
274
+ writer.writeMessage(
275
+ 7,
276
+ f,
277
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
278
+ );
279
+ }
280
+ };
281
+
282
+
283
+ /**
284
+ * optional string underlying_instrument = 1;
285
+ * @return {string}
286
+ */
287
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.getUnderlyingInstrument = function() {
288
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
289
+ };
290
+
291
+
292
+ /**
293
+ * @param {string} value
294
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} returns this
295
+ */
296
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.setUnderlyingInstrument = function(value) {
297
+ return jspb.Message.setProto3StringField(this, 1, value);
298
+ };
299
+
300
+
301
+ /**
302
+ * optional string base = 2;
303
+ * @return {string}
304
+ */
305
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.getBase = function() {
306
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
307
+ };
308
+
309
+
310
+ /**
311
+ * @param {string} value
312
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} returns this
313
+ */
314
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.setBase = function(value) {
315
+ return jspb.Message.setProto3StringField(this, 2, value);
316
+ };
317
+
318
+
319
+ /**
320
+ * optional string quote = 3;
321
+ * @return {string}
322
+ */
323
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.getQuote = function() {
324
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
325
+ };
326
+
327
+
328
+ /**
329
+ * @param {string} value
330
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} returns this
331
+ */
332
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.setQuote = function(value) {
333
+ return jspb.Message.setProto3StringField(this, 3, value);
334
+ };
335
+
336
+
337
+ /**
338
+ * optional string currency_conversion = 6;
339
+ * @return {string}
340
+ */
341
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.getCurrencyConversion = function() {
342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
343
+ };
344
+
345
+
346
+ /**
347
+ * @param {string} value
348
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} returns this
349
+ */
350
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.setCurrencyConversion = function(value) {
351
+ return jspb.Message.setProto3StringField(this, 6, value);
352
+ };
353
+
354
+
355
+ /**
356
+ * optional google.protobuf.Timestamp ts_event = 7;
357
+ * @return {?proto.google.protobuf.Timestamp}
358
+ */
359
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.getTsEvent = function() {
360
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
361
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
362
+ };
363
+
364
+
365
+ /**
366
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
367
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} returns this
368
+ */
369
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.setTsEvent = function(value) {
370
+ return jspb.Message.setWrapperField(this, 7, value);
371
+ };
372
+
373
+
374
+ /**
375
+ * Clears the message field making it undefined.
376
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition} returns this
377
+ */
378
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.clearTsEvent = function() {
379
+ return this.setTsEvent(undefined);
380
+ };
381
+
382
+
383
+ /**
384
+ * Returns whether this field is set.
385
+ * @return {boolean}
386
+ */
387
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.prototype.hasTsEvent = function() {
388
+ return jspb.Message.getField(this, 7) != null;
389
+ };
390
+
391
+
392
+
393
+
394
+
395
+ if (jspb.Message.GENERATE_TO_OBJECT) {
396
+ /**
397
+ * Creates an object representation of this proto.
398
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
399
+ * Optional fields that are not set will be set to undefined.
400
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
401
+ * For the list of reserved names please see:
402
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
403
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
404
+ * JSPB instance for transitional soy proto support:
405
+ * http://goto/soy-param-migration
406
+ * @return {!Object}
407
+ */
408
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.toObject = function(opt_includeInstance) {
409
+ return proto.kaikosdk.StreamExoticIndicesServiceResponsePair.toObject(opt_includeInstance, this);
410
+ };
411
+
412
+
413
+ /**
414
+ * Static version of the {@see toObject} method.
415
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
416
+ * the JSPB instance for transitional soy proto support:
417
+ * http://goto/soy-param-migration
418
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} msg The msg instance to transform.
419
+ * @return {!Object}
420
+ * @suppress {unusedLocalVariables} f is only used for nested messages
421
+ */
422
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.toObject = function(includeInstance, msg) {
423
+ var f, obj = {
424
+ underlyingInstrument: jspb.Message.getFieldWithDefault(msg, 1, ""),
425
+ underlyingPrice: (f = msg.getUnderlyingPrice()) && google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance, f),
426
+ weightingFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
427
+ cappingFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
428
+ currencyConversionFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
429
+ position: jspb.Message.getFieldWithDefault(msg, 6, 0)
430
+ };
431
+
432
+ if (includeInstance) {
433
+ obj.$jspbMessageInstance = msg;
434
+ }
435
+ return obj;
436
+ };
437
+ }
438
+
439
+
440
+ /**
441
+ * Deserializes binary data (in protobuf wire format).
442
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
443
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair}
444
+ */
445
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.deserializeBinary = function(bytes) {
446
+ var reader = new jspb.BinaryReader(bytes);
447
+ var msg = new proto.kaikosdk.StreamExoticIndicesServiceResponsePair;
448
+ return proto.kaikosdk.StreamExoticIndicesServiceResponsePair.deserializeBinaryFromReader(msg, reader);
449
+ };
450
+
451
+
452
+ /**
453
+ * Deserializes binary data (in protobuf wire format) from the
454
+ * given reader into the given message object.
455
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} msg The message object to deserialize into.
456
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
457
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair}
458
+ */
459
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.deserializeBinaryFromReader = function(msg, reader) {
460
+ while (reader.nextField()) {
461
+ if (reader.isEndGroup()) {
462
+ break;
463
+ }
464
+ var field = reader.getFieldNumber();
465
+ switch (field) {
466
+ case 1:
467
+ var value = /** @type {string} */ (reader.readString());
468
+ msg.setUnderlyingInstrument(value);
469
+ break;
470
+ case 2:
471
+ var value = new google_protobuf_wrappers_pb.DoubleValue;
472
+ reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
473
+ msg.setUnderlyingPrice(value);
474
+ break;
475
+ case 3:
476
+ var value = /** @type {number} */ (reader.readDouble());
477
+ msg.setWeightingFactor(value);
478
+ break;
479
+ case 4:
480
+ var value = /** @type {number} */ (reader.readDouble());
481
+ msg.setCappingFactor(value);
482
+ break;
483
+ case 5:
484
+ var value = /** @type {number} */ (reader.readDouble());
485
+ msg.setCurrencyConversionFactor(value);
486
+ break;
487
+ case 6:
488
+ var value = /** @type {!proto.kaikosdk.StreamExoticIndicesPosition} */ (reader.readEnum());
489
+ msg.setPosition(value);
490
+ break;
491
+ default:
492
+ reader.skipField();
493
+ break;
494
+ }
495
+ }
496
+ return msg;
497
+ };
498
+
499
+
500
+ /**
501
+ * Serializes the message to binary data (in protobuf wire format).
502
+ * @return {!Uint8Array}
503
+ */
504
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.serializeBinary = function() {
505
+ var writer = new jspb.BinaryWriter();
506
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.serializeBinaryToWriter(this, writer);
507
+ return writer.getResultBuffer();
508
+ };
509
+
510
+
511
+ /**
512
+ * Serializes the given message to binary data (in protobuf wire
513
+ * format), writing to the given BinaryWriter.
514
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} message
515
+ * @param {!jspb.BinaryWriter} writer
516
+ * @suppress {unusedLocalVariables} f is only used for nested messages
517
+ */
518
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.serializeBinaryToWriter = function(message, writer) {
519
+ var f = undefined;
520
+ f = message.getUnderlyingInstrument();
521
+ if (f.length > 0) {
522
+ writer.writeString(
523
+ 1,
524
+ f
525
+ );
526
+ }
527
+ f = message.getUnderlyingPrice();
528
+ if (f != null) {
529
+ writer.writeMessage(
530
+ 2,
531
+ f,
532
+ google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter
533
+ );
534
+ }
535
+ f = message.getWeightingFactor();
536
+ if (f !== 0.0) {
537
+ writer.writeDouble(
538
+ 3,
539
+ f
540
+ );
541
+ }
542
+ f = message.getCappingFactor();
543
+ if (f !== 0.0) {
544
+ writer.writeDouble(
545
+ 4,
546
+ f
547
+ );
548
+ }
549
+ f = message.getCurrencyConversionFactor();
550
+ if (f !== 0.0) {
551
+ writer.writeDouble(
552
+ 5,
553
+ f
554
+ );
555
+ }
556
+ f = message.getPosition();
557
+ if (f !== 0.0) {
558
+ writer.writeEnum(
559
+ 6,
560
+ f
561
+ );
562
+ }
563
+ };
564
+
565
+
566
+ /**
567
+ * optional string underlying_instrument = 1;
568
+ * @return {string}
569
+ */
570
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.getUnderlyingInstrument = function() {
571
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
572
+ };
573
+
574
+
575
+ /**
576
+ * @param {string} value
577
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} returns this
578
+ */
579
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.setUnderlyingInstrument = function(value) {
580
+ return jspb.Message.setProto3StringField(this, 1, value);
581
+ };
582
+
583
+
584
+ /**
585
+ * optional google.protobuf.DoubleValue underlying_price = 2;
586
+ * @return {?proto.google.protobuf.DoubleValue}
587
+ */
588
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.getUnderlyingPrice = function() {
589
+ return /** @type{?proto.google.protobuf.DoubleValue} */ (
590
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.DoubleValue, 2));
591
+ };
592
+
593
+
594
+ /**
595
+ * @param {?proto.google.protobuf.DoubleValue|undefined} value
596
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} returns this
597
+ */
598
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.setUnderlyingPrice = function(value) {
599
+ return jspb.Message.setWrapperField(this, 2, value);
600
+ };
601
+
602
+
603
+ /**
604
+ * Clears the message field making it undefined.
605
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} returns this
606
+ */
607
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.clearUnderlyingPrice = function() {
608
+ return this.setUnderlyingPrice(undefined);
609
+ };
610
+
611
+
612
+ /**
613
+ * Returns whether this field is set.
614
+ * @return {boolean}
615
+ */
616
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.hasUnderlyingPrice = function() {
617
+ return jspb.Message.getField(this, 2) != null;
618
+ };
619
+
620
+
621
+ /**
622
+ * optional double weighting_factor = 3;
623
+ * @return {number}
624
+ */
625
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.getWeightingFactor = function() {
626
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
627
+ };
628
+
629
+
630
+ /**
631
+ * @param {number} value
632
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} returns this
633
+ */
634
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.setWeightingFactor = function(value) {
635
+ return jspb.Message.setProto3FloatField(this, 3, value);
636
+ };
637
+
638
+
639
+ /**
640
+ * optional double capping_factor = 4;
641
+ * @return {number}
642
+ */
643
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.getCappingFactor = function() {
644
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
645
+ };
646
+
647
+
648
+ /**
649
+ * @param {number} value
650
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} returns this
651
+ */
652
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.setCappingFactor = function(value) {
653
+ return jspb.Message.setProto3FloatField(this, 4, value);
654
+ };
655
+
656
+
657
+ /**
658
+ * optional double currency_conversion_factor = 5;
659
+ * @return {number}
660
+ */
661
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.getCurrencyConversionFactor = function() {
662
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
663
+ };
664
+
665
+
666
+ /**
667
+ * @param {number} value
668
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} returns this
669
+ */
670
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.setCurrencyConversionFactor = function(value) {
671
+ return jspb.Message.setProto3FloatField(this, 5, value);
672
+ };
673
+
674
+
675
+ /**
676
+ * optional StreamExoticIndicesPosition position = 6;
677
+ * @return {!proto.kaikosdk.StreamExoticIndicesPosition}
678
+ */
679
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.getPosition = function() {
680
+ return /** @type {!proto.kaikosdk.StreamExoticIndicesPosition} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
681
+ };
682
+
683
+
684
+ /**
685
+ * @param {!proto.kaikosdk.StreamExoticIndicesPosition} value
686
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair} returns this
687
+ */
688
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.prototype.setPosition = function(value) {
689
+ return jspb.Message.setProto3EnumField(this, 6, value);
690
+ };
691
+
692
+
693
+
694
+ /**
695
+ * List of repeated fields within this message type.
696
+ * @private {!Array<number>}
697
+ * @const
698
+ */
699
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.repeatedFields_ = [3];
700
+
701
+
702
+
703
+ if (jspb.Message.GENERATE_TO_OBJECT) {
704
+ /**
705
+ * Creates an object representation of this proto.
706
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
707
+ * Optional fields that are not set will be set to undefined.
708
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
709
+ * For the list of reserved names please see:
710
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
711
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
712
+ * JSPB instance for transitional soy proto support:
713
+ * http://goto/soy-param-migration
714
+ * @return {!Object}
715
+ */
716
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.toObject = function(opt_includeInstance) {
717
+ return proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.toObject(opt_includeInstance, this);
718
+ };
719
+
720
+
721
+ /**
722
+ * Static version of the {@see toObject} method.
723
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
724
+ * the JSPB instance for transitional soy proto support:
725
+ * http://goto/soy-param-migration
726
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} msg The msg instance to transform.
727
+ * @return {!Object}
728
+ * @suppress {unusedLocalVariables} f is only used for nested messages
729
+ */
730
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.toObject = function(includeInstance, msg) {
731
+ var f, obj = {
732
+ indexValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
733
+ divisor: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
734
+ pairsList: jspb.Message.toObjectList(msg.getPairsList(),
735
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.toObject, includeInstance)
736
+ };
737
+
738
+ if (includeInstance) {
739
+ obj.$jspbMessageInstance = msg;
740
+ }
741
+ return obj;
742
+ };
743
+ }
744
+
745
+
746
+ /**
747
+ * Deserializes binary data (in protobuf wire format).
748
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
749
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices}
750
+ */
751
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.deserializeBinary = function(bytes) {
752
+ var reader = new jspb.BinaryReader(bytes);
753
+ var msg = new proto.kaikosdk.StreamExoticIndicesServiceResponsePrices;
754
+ return proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.deserializeBinaryFromReader(msg, reader);
755
+ };
756
+
757
+
758
+ /**
759
+ * Deserializes binary data (in protobuf wire format) from the
760
+ * given reader into the given message object.
761
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} msg The message object to deserialize into.
762
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
763
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices}
764
+ */
765
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.deserializeBinaryFromReader = function(msg, reader) {
766
+ while (reader.nextField()) {
767
+ if (reader.isEndGroup()) {
768
+ break;
769
+ }
770
+ var field = reader.getFieldNumber();
771
+ switch (field) {
772
+ case 1:
773
+ var value = /** @type {number} */ (reader.readDouble());
774
+ msg.setIndexValue(value);
775
+ break;
776
+ case 2:
777
+ var value = /** @type {number} */ (reader.readDouble());
778
+ msg.setDivisor(value);
779
+ break;
780
+ case 3:
781
+ var value = new proto.kaikosdk.StreamExoticIndicesServiceResponsePair;
782
+ reader.readMessage(value,proto.kaikosdk.StreamExoticIndicesServiceResponsePair.deserializeBinaryFromReader);
783
+ msg.addPairs(value);
784
+ break;
785
+ default:
786
+ reader.skipField();
787
+ break;
788
+ }
789
+ }
790
+ return msg;
791
+ };
792
+
793
+
794
+ /**
795
+ * Serializes the message to binary data (in protobuf wire format).
796
+ * @return {!Uint8Array}
797
+ */
798
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.serializeBinary = function() {
799
+ var writer = new jspb.BinaryWriter();
800
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.serializeBinaryToWriter(this, writer);
801
+ return writer.getResultBuffer();
802
+ };
803
+
804
+
805
+ /**
806
+ * Serializes the given message to binary data (in protobuf wire
807
+ * format), writing to the given BinaryWriter.
808
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} message
809
+ * @param {!jspb.BinaryWriter} writer
810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
811
+ */
812
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.serializeBinaryToWriter = function(message, writer) {
813
+ var f = undefined;
814
+ f = message.getIndexValue();
815
+ if (f !== 0.0) {
816
+ writer.writeDouble(
817
+ 1,
818
+ f
819
+ );
820
+ }
821
+ f = message.getDivisor();
822
+ if (f !== 0.0) {
823
+ writer.writeDouble(
824
+ 2,
825
+ f
826
+ );
827
+ }
828
+ f = message.getPairsList();
829
+ if (f.length > 0) {
830
+ writer.writeRepeatedMessage(
831
+ 3,
832
+ f,
833
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePair.serializeBinaryToWriter
834
+ );
835
+ }
836
+ };
837
+
838
+
839
+ /**
840
+ * optional double index_value = 1;
841
+ * @return {number}
842
+ */
843
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.getIndexValue = function() {
844
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
845
+ };
846
+
847
+
848
+ /**
849
+ * @param {number} value
850
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} returns this
851
+ */
852
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.setIndexValue = function(value) {
853
+ return jspb.Message.setProto3FloatField(this, 1, value);
854
+ };
855
+
856
+
857
+ /**
858
+ * optional double divisor = 2;
859
+ * @return {number}
860
+ */
861
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.getDivisor = function() {
862
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
863
+ };
864
+
865
+
866
+ /**
867
+ * @param {number} value
868
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} returns this
869
+ */
870
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.setDivisor = function(value) {
871
+ return jspb.Message.setProto3FloatField(this, 2, value);
872
+ };
873
+
874
+
875
+ /**
876
+ * repeated StreamExoticIndicesServiceResponsePair pairs = 3;
877
+ * @return {!Array<!proto.kaikosdk.StreamExoticIndicesServiceResponsePair>}
878
+ */
879
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.getPairsList = function() {
880
+ return /** @type{!Array<!proto.kaikosdk.StreamExoticIndicesServiceResponsePair>} */ (
881
+ jspb.Message.getRepeatedWrapperField(this, proto.kaikosdk.StreamExoticIndicesServiceResponsePair, 3));
882
+ };
883
+
884
+
885
+ /**
886
+ * @param {!Array<!proto.kaikosdk.StreamExoticIndicesServiceResponsePair>} value
887
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} returns this
888
+ */
889
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.setPairsList = function(value) {
890
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
891
+ };
892
+
893
+
894
+ /**
895
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair=} opt_value
896
+ * @param {number=} opt_index
897
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePair}
898
+ */
899
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.addPairs = function(opt_value, opt_index) {
900
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.kaikosdk.StreamExoticIndicesServiceResponsePair, opt_index);
901
+ };
902
+
903
+
904
+ /**
905
+ * Clears the list making it empty but non-null.
906
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} returns this
907
+ */
908
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.prototype.clearPairsList = function() {
909
+ return this.setPairsList([]);
910
+ };
911
+
912
+
913
+
914
+ /**
915
+ * List of repeated fields within this message type.
916
+ * @private {!Array<number>}
917
+ * @const
918
+ */
919
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.repeatedFields_ = [5];
920
+
921
+
922
+
923
+ if (jspb.Message.GENERATE_TO_OBJECT) {
924
+ /**
925
+ * Creates an object representation of this proto.
926
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
927
+ * Optional fields that are not set will be set to undefined.
928
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
929
+ * For the list of reserved names please see:
930
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
931
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
932
+ * JSPB instance for transitional soy proto support:
933
+ * http://goto/soy-param-migration
934
+ * @return {!Object}
935
+ */
936
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.toObject = function(opt_includeInstance) {
937
+ return proto.kaikosdk.StreamExoticIndicesServiceResponseV1.toObject(opt_includeInstance, this);
938
+ };
939
+
940
+
941
+ /**
942
+ * Static version of the {@see toObject} method.
943
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
944
+ * the JSPB instance for transitional soy proto support:
945
+ * http://goto/soy-param-migration
946
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} msg The msg instance to transform.
947
+ * @return {!Object}
948
+ * @suppress {unusedLocalVariables} f is only used for nested messages
949
+ */
950
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.toObject = function(includeInstance, msg) {
951
+ var f, obj = {
952
+ commodity: jspb.Message.getFieldWithDefault(msg, 1, 0),
953
+ indexCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
954
+ interval: (f = msg.getInterval()) && sdk_core_data_interval_pb.DataInterval.toObject(includeInstance, f),
955
+ mainQuote: jspb.Message.getFieldWithDefault(msg, 4, ""),
956
+ compositionsList: jspb.Message.toObjectList(msg.getCompositionsList(),
957
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.toObject, includeInstance),
958
+ price: (f = msg.getPrice()) && proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.toObject(includeInstance, f),
959
+ tsEvent: (f = msg.getTsEvent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
960
+ tsCompute: (f = msg.getTsCompute()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
961
+ };
962
+
963
+ if (includeInstance) {
964
+ obj.$jspbMessageInstance = msg;
965
+ }
966
+ return obj;
967
+ };
968
+ }
969
+
970
+
971
+ /**
972
+ * Deserializes binary data (in protobuf wire format).
973
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
974
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1}
975
+ */
976
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.deserializeBinary = function(bytes) {
977
+ var reader = new jspb.BinaryReader(bytes);
978
+ var msg = new proto.kaikosdk.StreamExoticIndicesServiceResponseV1;
979
+ return proto.kaikosdk.StreamExoticIndicesServiceResponseV1.deserializeBinaryFromReader(msg, reader);
980
+ };
981
+
982
+
983
+ /**
984
+ * Deserializes binary data (in protobuf wire format) from the
985
+ * given reader into the given message object.
986
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} msg The message object to deserialize into.
987
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
988
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1}
989
+ */
990
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.deserializeBinaryFromReader = function(msg, reader) {
991
+ while (reader.nextField()) {
992
+ if (reader.isEndGroup()) {
993
+ break;
994
+ }
995
+ var field = reader.getFieldNumber();
996
+ switch (field) {
997
+ case 1:
998
+ var value = /** @type {!proto.kaikosdk.StreamIndexCommodity} */ (reader.readEnum());
999
+ msg.setCommodity(value);
1000
+ break;
1001
+ case 2:
1002
+ var value = /** @type {string} */ (reader.readString());
1003
+ msg.setIndexCode(value);
1004
+ break;
1005
+ case 3:
1006
+ var value = new sdk_core_data_interval_pb.DataInterval;
1007
+ reader.readMessage(value,sdk_core_data_interval_pb.DataInterval.deserializeBinaryFromReader);
1008
+ msg.setInterval(value);
1009
+ break;
1010
+ case 4:
1011
+ var value = /** @type {string} */ (reader.readString());
1012
+ msg.setMainQuote(value);
1013
+ break;
1014
+ case 5:
1015
+ var value = new proto.kaikosdk.StreamExoticIndicesServiceResponseComposition;
1016
+ reader.readMessage(value,proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.deserializeBinaryFromReader);
1017
+ msg.addCompositions(value);
1018
+ break;
1019
+ case 6:
1020
+ var value = new proto.kaikosdk.StreamExoticIndicesServiceResponsePrices;
1021
+ reader.readMessage(value,proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.deserializeBinaryFromReader);
1022
+ msg.setPrice(value);
1023
+ break;
1024
+ case 7:
1025
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1026
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1027
+ msg.setTsEvent(value);
1028
+ break;
1029
+ case 8:
1030
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1031
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1032
+ msg.setTsCompute(value);
1033
+ break;
1034
+ default:
1035
+ reader.skipField();
1036
+ break;
1037
+ }
1038
+ }
1039
+ return msg;
1040
+ };
1041
+
1042
+
1043
+ /**
1044
+ * Serializes the message to binary data (in protobuf wire format).
1045
+ * @return {!Uint8Array}
1046
+ */
1047
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.serializeBinary = function() {
1048
+ var writer = new jspb.BinaryWriter();
1049
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.serializeBinaryToWriter(this, writer);
1050
+ return writer.getResultBuffer();
1051
+ };
1052
+
1053
+
1054
+ /**
1055
+ * Serializes the given message to binary data (in protobuf wire
1056
+ * format), writing to the given BinaryWriter.
1057
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} message
1058
+ * @param {!jspb.BinaryWriter} writer
1059
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1060
+ */
1061
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.serializeBinaryToWriter = function(message, writer) {
1062
+ var f = undefined;
1063
+ f = message.getCommodity();
1064
+ if (f !== 0.0) {
1065
+ writer.writeEnum(
1066
+ 1,
1067
+ f
1068
+ );
1069
+ }
1070
+ f = message.getIndexCode();
1071
+ if (f.length > 0) {
1072
+ writer.writeString(
1073
+ 2,
1074
+ f
1075
+ );
1076
+ }
1077
+ f = message.getInterval();
1078
+ if (f != null) {
1079
+ writer.writeMessage(
1080
+ 3,
1081
+ f,
1082
+ sdk_core_data_interval_pb.DataInterval.serializeBinaryToWriter
1083
+ );
1084
+ }
1085
+ f = message.getMainQuote();
1086
+ if (f.length > 0) {
1087
+ writer.writeString(
1088
+ 4,
1089
+ f
1090
+ );
1091
+ }
1092
+ f = message.getCompositionsList();
1093
+ if (f.length > 0) {
1094
+ writer.writeRepeatedMessage(
1095
+ 5,
1096
+ f,
1097
+ proto.kaikosdk.StreamExoticIndicesServiceResponseComposition.serializeBinaryToWriter
1098
+ );
1099
+ }
1100
+ f = message.getPrice();
1101
+ if (f != null) {
1102
+ writer.writeMessage(
1103
+ 6,
1104
+ f,
1105
+ proto.kaikosdk.StreamExoticIndicesServiceResponsePrices.serializeBinaryToWriter
1106
+ );
1107
+ }
1108
+ f = message.getTsEvent();
1109
+ if (f != null) {
1110
+ writer.writeMessage(
1111
+ 7,
1112
+ f,
1113
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1114
+ );
1115
+ }
1116
+ f = message.getTsCompute();
1117
+ if (f != null) {
1118
+ writer.writeMessage(
1119
+ 8,
1120
+ f,
1121
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1122
+ );
1123
+ }
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * optional StreamIndexCommodity commodity = 1;
1129
+ * @return {!proto.kaikosdk.StreamIndexCommodity}
1130
+ */
1131
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getCommodity = function() {
1132
+ return /** @type {!proto.kaikosdk.StreamIndexCommodity} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * @param {!proto.kaikosdk.StreamIndexCommodity} value
1138
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1139
+ */
1140
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setCommodity = function(value) {
1141
+ return jspb.Message.setProto3EnumField(this, 1, value);
1142
+ };
1143
+
1144
+
1145
+ /**
1146
+ * optional string index_code = 2;
1147
+ * @return {string}
1148
+ */
1149
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getIndexCode = function() {
1150
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * @param {string} value
1156
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1157
+ */
1158
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setIndexCode = function(value) {
1159
+ return jspb.Message.setProto3StringField(this, 2, value);
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * optional DataInterval interval = 3;
1165
+ * @return {?proto.kaikosdk.DataInterval}
1166
+ */
1167
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getInterval = function() {
1168
+ return /** @type{?proto.kaikosdk.DataInterval} */ (
1169
+ jspb.Message.getWrapperField(this, sdk_core_data_interval_pb.DataInterval, 3));
1170
+ };
1171
+
1172
+
1173
+ /**
1174
+ * @param {?proto.kaikosdk.DataInterval|undefined} value
1175
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1176
+ */
1177
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setInterval = function(value) {
1178
+ return jspb.Message.setWrapperField(this, 3, value);
1179
+ };
1180
+
1181
+
1182
+ /**
1183
+ * Clears the message field making it undefined.
1184
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1185
+ */
1186
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.clearInterval = function() {
1187
+ return this.setInterval(undefined);
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * Returns whether this field is set.
1193
+ * @return {boolean}
1194
+ */
1195
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.hasInterval = function() {
1196
+ return jspb.Message.getField(this, 3) != null;
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * optional string main_quote = 4;
1202
+ * @return {string}
1203
+ */
1204
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getMainQuote = function() {
1205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * @param {string} value
1211
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1212
+ */
1213
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setMainQuote = function(value) {
1214
+ return jspb.Message.setProto3StringField(this, 4, value);
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * repeated StreamExoticIndicesServiceResponseComposition compositions = 5;
1220
+ * @return {!Array<!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition>}
1221
+ */
1222
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getCompositionsList = function() {
1223
+ return /** @type{!Array<!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition>} */ (
1224
+ jspb.Message.getRepeatedWrapperField(this, proto.kaikosdk.StreamExoticIndicesServiceResponseComposition, 5));
1225
+ };
1226
+
1227
+
1228
+ /**
1229
+ * @param {!Array<!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition>} value
1230
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1231
+ */
1232
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setCompositionsList = function(value) {
1233
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
1234
+ };
1235
+
1236
+
1237
+ /**
1238
+ * @param {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition=} opt_value
1239
+ * @param {number=} opt_index
1240
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseComposition}
1241
+ */
1242
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.addCompositions = function(opt_value, opt_index) {
1243
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.kaikosdk.StreamExoticIndicesServiceResponseComposition, opt_index);
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * Clears the list making it empty but non-null.
1249
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1250
+ */
1251
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.clearCompositionsList = function() {
1252
+ return this.setCompositionsList([]);
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * optional StreamExoticIndicesServiceResponsePrices price = 6;
1258
+ * @return {?proto.kaikosdk.StreamExoticIndicesServiceResponsePrices}
1259
+ */
1260
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getPrice = function() {
1261
+ return /** @type{?proto.kaikosdk.StreamExoticIndicesServiceResponsePrices} */ (
1262
+ jspb.Message.getWrapperField(this, proto.kaikosdk.StreamExoticIndicesServiceResponsePrices, 6));
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * @param {?proto.kaikosdk.StreamExoticIndicesServiceResponsePrices|undefined} value
1268
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1269
+ */
1270
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setPrice = function(value) {
1271
+ return jspb.Message.setWrapperField(this, 6, value);
1272
+ };
1273
+
1274
+
1275
+ /**
1276
+ * Clears the message field making it undefined.
1277
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1278
+ */
1279
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.clearPrice = function() {
1280
+ return this.setPrice(undefined);
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * Returns whether this field is set.
1286
+ * @return {boolean}
1287
+ */
1288
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.hasPrice = function() {
1289
+ return jspb.Message.getField(this, 6) != null;
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * optional google.protobuf.Timestamp ts_event = 7;
1295
+ * @return {?proto.google.protobuf.Timestamp}
1296
+ */
1297
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getTsEvent = function() {
1298
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1299
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1305
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1306
+ */
1307
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setTsEvent = function(value) {
1308
+ return jspb.Message.setWrapperField(this, 7, value);
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Clears the message field making it undefined.
1314
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1315
+ */
1316
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.clearTsEvent = function() {
1317
+ return this.setTsEvent(undefined);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * Returns whether this field is set.
1323
+ * @return {boolean}
1324
+ */
1325
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.hasTsEvent = function() {
1326
+ return jspb.Message.getField(this, 7) != null;
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * optional google.protobuf.Timestamp ts_compute = 8;
1332
+ * @return {?proto.google.protobuf.Timestamp}
1333
+ */
1334
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.getTsCompute = function() {
1335
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1336
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
1337
+ };
1338
+
1339
+
1340
+ /**
1341
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1342
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1343
+ */
1344
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.setTsCompute = function(value) {
1345
+ return jspb.Message.setWrapperField(this, 8, value);
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * Clears the message field making it undefined.
1351
+ * @return {!proto.kaikosdk.StreamExoticIndicesServiceResponseV1} returns this
1352
+ */
1353
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.clearTsCompute = function() {
1354
+ return this.setTsCompute(undefined);
1355
+ };
1356
+
1357
+
1358
+ /**
1359
+ * Returns whether this field is set.
1360
+ * @return {boolean}
1361
+ */
1362
+ proto.kaikosdk.StreamExoticIndicesServiceResponseV1.prototype.hasTsCompute = function() {
1363
+ return jspb.Message.getField(this, 8) != null;
1364
+ };
1365
+
1366
+
1367
+ /**
1368
+ * @enum {number}
1369
+ */
1370
+ proto.kaikosdk.StreamExoticIndicesPosition = {
1371
+ SEIP_POSITION_UNKNOWN: 0,
1372
+ SEIP_LONG: 1,
1373
+ SEIP_SHORT: 2
1374
+ };
1375
+
1376
+ goog.object.extend(exports, proto.kaikosdk);