@kaiko-data/sdk-node 1.1.0 → 1.3.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.
Files changed (40) hide show
  1. package/package.json +1 -1
  2. package/sdk/core/data_interval_pb.js +7 -1
  3. package/sdk/core/envelope_pb.js +7 -1
  4. package/sdk/core/envelope_status_pb.js +7 -1
  5. package/sdk/core/instrument_criteria_pb.js +7 -1
  6. package/sdk/core/response_pb.js +7 -1
  7. package/sdk/core/sort_criteria_pb.js +7 -1
  8. package/sdk/core/source_data_pb.js +7 -1
  9. package/sdk/core/source_pb.js +7 -1
  10. package/sdk/core/wrappers_pb.js +7 -1
  11. package/sdk/sdk_grpc_pb.d.ts +18 -0
  12. package/sdk/sdk_grpc_pb.js +41 -0
  13. package/sdk/sdk_pb.d.ts +2 -0
  14. package/sdk/sdk_pb.js +11 -1
  15. package/sdk/stream/aggregated_price_v1/request_grpc_pb.d.ts +1 -0
  16. package/sdk/stream/aggregated_price_v1/request_grpc_pb.js +1 -0
  17. package/sdk/stream/aggregated_price_v1/request_pb.d.ts +29 -0
  18. package/sdk/stream/aggregated_price_v1/request_pb.js +206 -0
  19. package/sdk/stream/aggregated_price_v1/response_grpc_pb.d.ts +1 -0
  20. package/sdk/stream/aggregated_price_v1/response_grpc_pb.js +1 -0
  21. package/sdk/stream/aggregated_price_v1/response_pb.d.ts +82 -0
  22. package/sdk/stream/aggregated_price_v1/response_pb.js +562 -0
  23. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.js +7 -1
  24. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.js +7 -1
  25. package/sdk/stream/aggregates_ohlcv_v1/request_pb.js +7 -1
  26. package/sdk/stream/aggregates_ohlcv_v1/response_pb.js +7 -1
  27. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.js +7 -1
  28. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.js +7 -1
  29. package/sdk/stream/aggregates_vwap_v1/request_pb.js +7 -1
  30. package/sdk/stream/aggregates_vwap_v1/response_pb.js +7 -1
  31. package/sdk/stream/derivatives_price_v2/request_pb.js +7 -1
  32. package/sdk/stream/derivatives_price_v2/response_pb.js +7 -1
  33. package/sdk/stream/index_v1/commodity_pb.js +7 -1
  34. package/sdk/stream/index_v1/request_pb.js +7 -1
  35. package/sdk/stream/index_v1/response_pb.js +7 -1
  36. package/sdk/stream/market_update_v1/commodity_pb.js +7 -1
  37. package/sdk/stream/market_update_v1/request_pb.js +7 -1
  38. package/sdk/stream/market_update_v1/response_pb.js +7 -1
  39. package/sdk/stream/trades_v1/request_pb.js +7 -1
  40. package/sdk/stream/trades_v1/response_pb.js +7 -1
@@ -0,0 +1,562 @@
1
+ // source: sdk/stream/aggregated_price_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 = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
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
+ goog.exportSymbol('proto.kaikosdk.StreamAggregatedPriceResponseV1', null, global);
27
+ goog.exportSymbol('proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType', null, global);
28
+ goog.exportSymbol('proto.kaikosdk.StreamAggregatedPriceValue', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.kaikosdk.StreamAggregatedPriceValue = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
41
+ };
42
+ goog.inherits(proto.kaikosdk.StreamAggregatedPriceValue, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.kaikosdk.StreamAggregatedPriceValue.displayName = 'proto.kaikosdk.StreamAggregatedPriceValue';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.kaikosdk.StreamAggregatedPriceResponseV1 = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.kaikosdk.StreamAggregatedPriceResponseV1, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.displayName = 'proto.kaikosdk.StreamAggregatedPriceResponseV1';
70
+ }
71
+
72
+
73
+
74
+ if (jspb.Message.GENERATE_TO_OBJECT) {
75
+ /**
76
+ * Creates an object representation of this proto.
77
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
78
+ * Optional fields that are not set will be set to undefined.
79
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
80
+ * For the list of reserved names please see:
81
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
82
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
83
+ * JSPB instance for transitional soy proto support:
84
+ * http://goto/soy-param-migration
85
+ * @return {!Object}
86
+ */
87
+ proto.kaikosdk.StreamAggregatedPriceValue.prototype.toObject = function(opt_includeInstance) {
88
+ return proto.kaikosdk.StreamAggregatedPriceValue.toObject(opt_includeInstance, this);
89
+ };
90
+
91
+
92
+ /**
93
+ * Static version of the {@see toObject} method.
94
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
95
+ * the JSPB instance for transitional soy proto support:
96
+ * http://goto/soy-param-migration
97
+ * @param {!proto.kaikosdk.StreamAggregatedPriceValue} msg The msg instance to transform.
98
+ * @return {!Object}
99
+ * @suppress {unusedLocalVariables} f is only used for nested messages
100
+ */
101
+ proto.kaikosdk.StreamAggregatedPriceValue.toObject = function(includeInstance, msg) {
102
+ var f, obj = {
103
+ price: jspb.Message.getFieldWithDefault(msg, 1, ""),
104
+ volume: jspb.Message.getFieldWithDefault(msg, 2, "")
105
+ };
106
+
107
+ if (includeInstance) {
108
+ obj.$jspbMessageInstance = msg;
109
+ }
110
+ return obj;
111
+ };
112
+ }
113
+
114
+
115
+ /**
116
+ * Deserializes binary data (in protobuf wire format).
117
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
118
+ * @return {!proto.kaikosdk.StreamAggregatedPriceValue}
119
+ */
120
+ proto.kaikosdk.StreamAggregatedPriceValue.deserializeBinary = function(bytes) {
121
+ var reader = new jspb.BinaryReader(bytes);
122
+ var msg = new proto.kaikosdk.StreamAggregatedPriceValue;
123
+ return proto.kaikosdk.StreamAggregatedPriceValue.deserializeBinaryFromReader(msg, reader);
124
+ };
125
+
126
+
127
+ /**
128
+ * Deserializes binary data (in protobuf wire format) from the
129
+ * given reader into the given message object.
130
+ * @param {!proto.kaikosdk.StreamAggregatedPriceValue} msg The message object to deserialize into.
131
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
132
+ * @return {!proto.kaikosdk.StreamAggregatedPriceValue}
133
+ */
134
+ proto.kaikosdk.StreamAggregatedPriceValue.deserializeBinaryFromReader = function(msg, reader) {
135
+ while (reader.nextField()) {
136
+ if (reader.isEndGroup()) {
137
+ break;
138
+ }
139
+ var field = reader.getFieldNumber();
140
+ switch (field) {
141
+ case 1:
142
+ var value = /** @type {string} */ (reader.readString());
143
+ msg.setPrice(value);
144
+ break;
145
+ case 2:
146
+ var value = /** @type {string} */ (reader.readString());
147
+ msg.setVolume(value);
148
+ break;
149
+ default:
150
+ reader.skipField();
151
+ break;
152
+ }
153
+ }
154
+ return msg;
155
+ };
156
+
157
+
158
+ /**
159
+ * Serializes the message to binary data (in protobuf wire format).
160
+ * @return {!Uint8Array}
161
+ */
162
+ proto.kaikosdk.StreamAggregatedPriceValue.prototype.serializeBinary = function() {
163
+ var writer = new jspb.BinaryWriter();
164
+ proto.kaikosdk.StreamAggregatedPriceValue.serializeBinaryToWriter(this, writer);
165
+ return writer.getResultBuffer();
166
+ };
167
+
168
+
169
+ /**
170
+ * Serializes the given message to binary data (in protobuf wire
171
+ * format), writing to the given BinaryWriter.
172
+ * @param {!proto.kaikosdk.StreamAggregatedPriceValue} message
173
+ * @param {!jspb.BinaryWriter} writer
174
+ * @suppress {unusedLocalVariables} f is only used for nested messages
175
+ */
176
+ proto.kaikosdk.StreamAggregatedPriceValue.serializeBinaryToWriter = function(message, writer) {
177
+ var f = undefined;
178
+ f = message.getPrice();
179
+ if (f.length > 0) {
180
+ writer.writeString(
181
+ 1,
182
+ f
183
+ );
184
+ }
185
+ f = message.getVolume();
186
+ if (f.length > 0) {
187
+ writer.writeString(
188
+ 2,
189
+ f
190
+ );
191
+ }
192
+ };
193
+
194
+
195
+ /**
196
+ * optional string price = 1;
197
+ * @return {string}
198
+ */
199
+ proto.kaikosdk.StreamAggregatedPriceValue.prototype.getPrice = function() {
200
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
201
+ };
202
+
203
+
204
+ /**
205
+ * @param {string} value
206
+ * @return {!proto.kaikosdk.StreamAggregatedPriceValue} returns this
207
+ */
208
+ proto.kaikosdk.StreamAggregatedPriceValue.prototype.setPrice = function(value) {
209
+ return jspb.Message.setProto3StringField(this, 1, value);
210
+ };
211
+
212
+
213
+ /**
214
+ * optional string volume = 2;
215
+ * @return {string}
216
+ */
217
+ proto.kaikosdk.StreamAggregatedPriceValue.prototype.getVolume = function() {
218
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
219
+ };
220
+
221
+
222
+ /**
223
+ * @param {string} value
224
+ * @return {!proto.kaikosdk.StreamAggregatedPriceValue} returns this
225
+ */
226
+ proto.kaikosdk.StreamAggregatedPriceValue.prototype.setVolume = function(value) {
227
+ return jspb.Message.setProto3StringField(this, 2, value);
228
+ };
229
+
230
+
231
+
232
+
233
+
234
+ if (jspb.Message.GENERATE_TO_OBJECT) {
235
+ /**
236
+ * Creates an object representation of this proto.
237
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
238
+ * Optional fields that are not set will be set to undefined.
239
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
240
+ * For the list of reserved names please see:
241
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
242
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
243
+ * JSPB instance for transitional soy proto support:
244
+ * http://goto/soy-param-migration
245
+ * @return {!Object}
246
+ */
247
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.toObject = function(opt_includeInstance) {
248
+ return proto.kaikosdk.StreamAggregatedPriceResponseV1.toObject(opt_includeInstance, this);
249
+ };
250
+
251
+
252
+ /**
253
+ * Static version of the {@see toObject} method.
254
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
255
+ * the JSPB instance for transitional soy proto support:
256
+ * http://goto/soy-param-migration
257
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1} msg The msg instance to transform.
258
+ * @return {!Object}
259
+ * @suppress {unusedLocalVariables} f is only used for nested messages
260
+ */
261
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.toObject = function(includeInstance, msg) {
262
+ var f, obj = {
263
+ aggregate: jspb.Message.getFieldWithDefault(msg, 1, ""),
264
+ instrumentClass: jspb.Message.getFieldWithDefault(msg, 2, ""),
265
+ code: jspb.Message.getFieldWithDefault(msg, 3, ""),
266
+ value: (f = msg.getValue()) && proto.kaikosdk.StreamAggregatedPriceValue.toObject(includeInstance, f),
267
+ eventType: jspb.Message.getFieldWithDefault(msg, 5, 0),
268
+ tsEvent: (f = msg.getTsEvent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
269
+ };
270
+
271
+ if (includeInstance) {
272
+ obj.$jspbMessageInstance = msg;
273
+ }
274
+ return obj;
275
+ };
276
+ }
277
+
278
+
279
+ /**
280
+ * Deserializes binary data (in protobuf wire format).
281
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
282
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1}
283
+ */
284
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.deserializeBinary = function(bytes) {
285
+ var reader = new jspb.BinaryReader(bytes);
286
+ var msg = new proto.kaikosdk.StreamAggregatedPriceResponseV1;
287
+ return proto.kaikosdk.StreamAggregatedPriceResponseV1.deserializeBinaryFromReader(msg, reader);
288
+ };
289
+
290
+
291
+ /**
292
+ * Deserializes binary data (in protobuf wire format) from the
293
+ * given reader into the given message object.
294
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1} msg The message object to deserialize into.
295
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
296
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1}
297
+ */
298
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.deserializeBinaryFromReader = function(msg, reader) {
299
+ while (reader.nextField()) {
300
+ if (reader.isEndGroup()) {
301
+ break;
302
+ }
303
+ var field = reader.getFieldNumber();
304
+ switch (field) {
305
+ case 1:
306
+ var value = /** @type {string} */ (reader.readString());
307
+ msg.setAggregate(value);
308
+ break;
309
+ case 2:
310
+ var value = /** @type {string} */ (reader.readString());
311
+ msg.setInstrumentClass(value);
312
+ break;
313
+ case 3:
314
+ var value = /** @type {string} */ (reader.readString());
315
+ msg.setCode(value);
316
+ break;
317
+ case 4:
318
+ var value = new proto.kaikosdk.StreamAggregatedPriceValue;
319
+ reader.readMessage(value,proto.kaikosdk.StreamAggregatedPriceValue.deserializeBinaryFromReader);
320
+ msg.setValue(value);
321
+ break;
322
+ case 5:
323
+ var value = /** @type {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType} */ (reader.readEnum());
324
+ msg.setEventType(value);
325
+ break;
326
+ case 6:
327
+ var value = new google_protobuf_timestamp_pb.Timestamp;
328
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
329
+ msg.setTsEvent(value);
330
+ break;
331
+ default:
332
+ reader.skipField();
333
+ break;
334
+ }
335
+ }
336
+ return msg;
337
+ };
338
+
339
+
340
+ /**
341
+ * Serializes the message to binary data (in protobuf wire format).
342
+ * @return {!Uint8Array}
343
+ */
344
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.serializeBinary = function() {
345
+ var writer = new jspb.BinaryWriter();
346
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.serializeBinaryToWriter(this, writer);
347
+ return writer.getResultBuffer();
348
+ };
349
+
350
+
351
+ /**
352
+ * Serializes the given message to binary data (in protobuf wire
353
+ * format), writing to the given BinaryWriter.
354
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1} message
355
+ * @param {!jspb.BinaryWriter} writer
356
+ * @suppress {unusedLocalVariables} f is only used for nested messages
357
+ */
358
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.serializeBinaryToWriter = function(message, writer) {
359
+ var f = undefined;
360
+ f = message.getAggregate();
361
+ if (f.length > 0) {
362
+ writer.writeString(
363
+ 1,
364
+ f
365
+ );
366
+ }
367
+ f = message.getInstrumentClass();
368
+ if (f.length > 0) {
369
+ writer.writeString(
370
+ 2,
371
+ f
372
+ );
373
+ }
374
+ f = message.getCode();
375
+ if (f.length > 0) {
376
+ writer.writeString(
377
+ 3,
378
+ f
379
+ );
380
+ }
381
+ f = message.getValue();
382
+ if (f != null) {
383
+ writer.writeMessage(
384
+ 4,
385
+ f,
386
+ proto.kaikosdk.StreamAggregatedPriceValue.serializeBinaryToWriter
387
+ );
388
+ }
389
+ f = message.getEventType();
390
+ if (f !== 0.0) {
391
+ writer.writeEnum(
392
+ 5,
393
+ f
394
+ );
395
+ }
396
+ f = message.getTsEvent();
397
+ if (f != null) {
398
+ writer.writeMessage(
399
+ 6,
400
+ f,
401
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
402
+ );
403
+ }
404
+ };
405
+
406
+
407
+ /**
408
+ * @enum {number}
409
+ */
410
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType = {
411
+ UNKNOWN: 0,
412
+ BEST_ASK: 1,
413
+ BEST_BID: 2
414
+ };
415
+
416
+ /**
417
+ * optional string aggregate = 1;
418
+ * @return {string}
419
+ */
420
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getAggregate = function() {
421
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
422
+ };
423
+
424
+
425
+ /**
426
+ * @param {string} value
427
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
428
+ */
429
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setAggregate = function(value) {
430
+ return jspb.Message.setProto3StringField(this, 1, value);
431
+ };
432
+
433
+
434
+ /**
435
+ * optional string instrument_class = 2;
436
+ * @return {string}
437
+ */
438
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getInstrumentClass = function() {
439
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
440
+ };
441
+
442
+
443
+ /**
444
+ * @param {string} value
445
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
446
+ */
447
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setInstrumentClass = function(value) {
448
+ return jspb.Message.setProto3StringField(this, 2, value);
449
+ };
450
+
451
+
452
+ /**
453
+ * optional string code = 3;
454
+ * @return {string}
455
+ */
456
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getCode = function() {
457
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
458
+ };
459
+
460
+
461
+ /**
462
+ * @param {string} value
463
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
464
+ */
465
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setCode = function(value) {
466
+ return jspb.Message.setProto3StringField(this, 3, value);
467
+ };
468
+
469
+
470
+ /**
471
+ * optional StreamAggregatedPriceValue value = 4;
472
+ * @return {?proto.kaikosdk.StreamAggregatedPriceValue}
473
+ */
474
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getValue = function() {
475
+ return /** @type{?proto.kaikosdk.StreamAggregatedPriceValue} */ (
476
+ jspb.Message.getWrapperField(this, proto.kaikosdk.StreamAggregatedPriceValue, 4));
477
+ };
478
+
479
+
480
+ /**
481
+ * @param {?proto.kaikosdk.StreamAggregatedPriceValue|undefined} value
482
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
483
+ */
484
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setValue = function(value) {
485
+ return jspb.Message.setWrapperField(this, 4, value);
486
+ };
487
+
488
+
489
+ /**
490
+ * Clears the message field making it undefined.
491
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
492
+ */
493
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.clearValue = function() {
494
+ return this.setValue(undefined);
495
+ };
496
+
497
+
498
+ /**
499
+ * Returns whether this field is set.
500
+ * @return {boolean}
501
+ */
502
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.hasValue = function() {
503
+ return jspb.Message.getField(this, 4) != null;
504
+ };
505
+
506
+
507
+ /**
508
+ * optional EventType event_type = 5;
509
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType}
510
+ */
511
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getEventType = function() {
512
+ return /** @type {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
513
+ };
514
+
515
+
516
+ /**
517
+ * @param {!proto.kaikosdk.StreamAggregatedPriceResponseV1.EventType} value
518
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
519
+ */
520
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setEventType = function(value) {
521
+ return jspb.Message.setProto3EnumField(this, 5, value);
522
+ };
523
+
524
+
525
+ /**
526
+ * optional google.protobuf.Timestamp ts_event = 6;
527
+ * @return {?proto.google.protobuf.Timestamp}
528
+ */
529
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.getTsEvent = function() {
530
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
531
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
532
+ };
533
+
534
+
535
+ /**
536
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
537
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
538
+ */
539
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.setTsEvent = function(value) {
540
+ return jspb.Message.setWrapperField(this, 6, value);
541
+ };
542
+
543
+
544
+ /**
545
+ * Clears the message field making it undefined.
546
+ * @return {!proto.kaikosdk.StreamAggregatedPriceResponseV1} returns this
547
+ */
548
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.clearTsEvent = function() {
549
+ return this.setTsEvent(undefined);
550
+ };
551
+
552
+
553
+ /**
554
+ * Returns whether this field is set.
555
+ * @return {boolean}
556
+ */
557
+ proto.kaikosdk.StreamAggregatedPriceResponseV1.prototype.hasTsEvent = function() {
558
+ return jspb.Message.getField(this, 6) != null;
559
+ };
560
+
561
+
562
+ goog.object.extend(exports, proto.kaikosdk);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.kaikosdk.StreamAggregatesDirectExchangeRateRequestV1', null, global);
19
25
  /**
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var sdk_core_instrument_criteria_pb = require('../../../sdk/core/instrument_criteria_pb.js');
19
25
  goog.object.extend(proto, sdk_core_instrument_criteria_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.kaikosdk.StreamAggregatesSpotExchangeRateRequestV1', null, global);
19
25
  /**
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var sdk_core_instrument_criteria_pb = require('../../../sdk/core/instrument_criteria_pb.js');
19
25
  goog.object.extend(proto, sdk_core_instrument_criteria_pb);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);