@kaiko-data/sdk-node 1.5.0 → 1.7.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.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/sdk/sdk_grpc_pb.d.ts +18 -0
  3. package/sdk/sdk_grpc_pb.js +42 -0
  4. package/sdk/sdk_pb.d.ts +2 -0
  5. package/sdk/stream/aggregated_quote_v1/request_pb.d.ts +40 -0
  6. package/sdk/stream/aggregated_quote_v1/response_pb.d.ts +88 -0
  7. package/sdk/stream/aggregated_quote_v2/request_pb.d.ts +40 -0
  8. package/sdk/stream/aggregated_quote_v2/response_pb.d.ts +88 -0
  9. package/sdk/stream/index_v1/request_pb.d.ts +7 -0
  10. package/sdk/core/data_interval_pb.js +0 -250
  11. package/sdk/core/envelope_pb.js +0 -395
  12. package/sdk/core/envelope_status_grpc_pb.js +0 -1
  13. package/sdk/core/envelope_status_pb.js +0 -34
  14. package/sdk/core/instrument_criteria_pb.js +0 -236
  15. package/sdk/core/response_pb.js +0 -199
  16. package/sdk/core/sort_criteria_pb.js +0 -34
  17. package/sdk/core/source_data_pb.js +0 -266
  18. package/sdk/core/source_pb.js +0 -238
  19. package/sdk/core/wrappers_pb.js +0 -199
  20. package/sdk/sdk_pb.js +0 -55
  21. package/sdk/stream/aggregated_price_v1/request_pb.js +0 -259
  22. package/sdk/stream/aggregated_price_v1/response_pb.js +0 -562
  23. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.js +0 -236
  24. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.js +0 -411
  25. package/sdk/stream/aggregates_ohlcv_v1/request_pb.js +0 -229
  26. package/sdk/stream/aggregates_ohlcv_v1/response_pb.js +0 -529
  27. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.js +0 -236
  28. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.js +0 -384
  29. package/sdk/stream/aggregates_spot_exchange_rate_v1/source_data_pb.d.ts +0 -37
  30. package/sdk/stream/aggregates_spot_exchange_rate_v1/source_pb.d.ts +0 -32
  31. package/sdk/stream/aggregates_vwap_v1/request_pb.js +0 -229
  32. package/sdk/stream/aggregates_vwap_v1/response_pb.js +0 -409
  33. package/sdk/stream/derivatives_price_v2/request_pb.d.ts +0 -28
  34. package/sdk/stream/derivatives_price_v2/response_pb.d.ts +0 -56
  35. package/sdk/stream/index_v1/commodity_pb.js +0 -34
  36. package/sdk/stream/index_v1/request_pb.js +0 -236
  37. package/sdk/stream/index_v1/response_pb.js +0 -1384
  38. package/sdk/stream/market_update_v1/commodity_pb.js +0 -35
  39. package/sdk/stream/market_update_v1/request_pb.js +0 -352
  40. package/sdk/stream/market_update_v1/response_pb.js +0 -1059
  41. package/sdk/stream/trades_v1/request_pb.js +0 -199
  42. package/sdk/stream/trades_v1/response_pb.js +0 -586
  43. /package/sdk/stream/{derivatives_price_v2 → aggregated_quote_v1}/request_grpc_pb.d.ts +0 -0
  44. /package/sdk/stream/{derivatives_price_v2 → aggregated_quote_v1}/response_grpc_pb.d.ts +0 -0
  45. /package/sdk/stream/{aggregates_spot_exchange_rate_v1/source_data_grpc_pb.d.ts → aggregated_quote_v2/request_grpc_pb.d.ts} +0 -0
  46. /package/sdk/{core/envelope_grpc_pb.js → stream/aggregated_quote_v2/request_grpc_pb.js} +0 -0
  47. /package/sdk/stream/{aggregates_spot_exchange_rate_v1/source_grpc_pb.d.ts → aggregated_quote_v2/response_grpc_pb.d.ts} +0 -0
  48. /package/sdk/{core → stream/aggregated_quote_v2}/response_grpc_pb.js +0 -0
@@ -1,395 +0,0 @@
1
- // source: sdk/core/envelope.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_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
25
- goog.object.extend(proto, google_protobuf_struct_pb);
26
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
- goog.object.extend(proto, google_protobuf_timestamp_pb);
28
- var sdk_core_envelope_status_pb = require('../../sdk/core/envelope_status_pb.js');
29
- goog.object.extend(proto, sdk_core_envelope_status_pb);
30
- goog.exportSymbol('proto.kaikosdk.Envelope', null, global);
31
- /**
32
- * Generated by JsPbCodeGenerator.
33
- * @param {Array=} opt_data Optional initial data array, typically from a
34
- * server response, or constructed directly in Javascript. The array is used
35
- * in place and becomes part of the constructed object. It is not cloned.
36
- * If no data is provided, the constructed object will be empty, but still
37
- * valid.
38
- * @extends {jspb.Message}
39
- * @constructor
40
- */
41
- proto.kaikosdk.Envelope = function(opt_data) {
42
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
- };
44
- goog.inherits(proto.kaikosdk.Envelope, jspb.Message);
45
- if (goog.DEBUG && !COMPILED) {
46
- /**
47
- * @public
48
- * @override
49
- */
50
- proto.kaikosdk.Envelope.displayName = 'proto.kaikosdk.Envelope';
51
- }
52
-
53
-
54
-
55
- if (jspb.Message.GENERATE_TO_OBJECT) {
56
- /**
57
- * Creates an object representation of this proto.
58
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
59
- * Optional fields that are not set will be set to undefined.
60
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61
- * For the list of reserved names please see:
62
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
63
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64
- * JSPB instance for transitional soy proto support:
65
- * http://goto/soy-param-migration
66
- * @return {!Object}
67
- */
68
- proto.kaikosdk.Envelope.prototype.toObject = function(opt_includeInstance) {
69
- return proto.kaikosdk.Envelope.toObject(opt_includeInstance, this);
70
- };
71
-
72
-
73
- /**
74
- * Static version of the {@see toObject} method.
75
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76
- * the JSPB instance for transitional soy proto support:
77
- * http://goto/soy-param-migration
78
- * @param {!proto.kaikosdk.Envelope} msg The msg instance to transform.
79
- * @return {!Object}
80
- * @suppress {unusedLocalVariables} f is only used for nested messages
81
- */
82
- proto.kaikosdk.Envelope.toObject = function(includeInstance, msg) {
83
- var f, obj = {
84
- access: (f = msg.getAccess()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
85
- message: jspb.Message.getFieldWithDefault(msg, 2, ""),
86
- query: (f = msg.getQuery()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
87
- status: jspb.Message.getFieldWithDefault(msg, 4, 0),
88
- time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
89
- timestamp: jspb.Message.getFieldWithDefault(msg, 6, "")
90
- };
91
-
92
- if (includeInstance) {
93
- obj.$jspbMessageInstance = msg;
94
- }
95
- return obj;
96
- };
97
- }
98
-
99
-
100
- /**
101
- * Deserializes binary data (in protobuf wire format).
102
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
103
- * @return {!proto.kaikosdk.Envelope}
104
- */
105
- proto.kaikosdk.Envelope.deserializeBinary = function(bytes) {
106
- var reader = new jspb.BinaryReader(bytes);
107
- var msg = new proto.kaikosdk.Envelope;
108
- return proto.kaikosdk.Envelope.deserializeBinaryFromReader(msg, reader);
109
- };
110
-
111
-
112
- /**
113
- * Deserializes binary data (in protobuf wire format) from the
114
- * given reader into the given message object.
115
- * @param {!proto.kaikosdk.Envelope} msg The message object to deserialize into.
116
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
117
- * @return {!proto.kaikosdk.Envelope}
118
- */
119
- proto.kaikosdk.Envelope.deserializeBinaryFromReader = function(msg, reader) {
120
- while (reader.nextField()) {
121
- if (reader.isEndGroup()) {
122
- break;
123
- }
124
- var field = reader.getFieldNumber();
125
- switch (field) {
126
- case 1:
127
- var value = new google_protobuf_struct_pb.Struct;
128
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
129
- msg.setAccess(value);
130
- break;
131
- case 2:
132
- var value = /** @type {string} */ (reader.readString());
133
- msg.setMessage(value);
134
- break;
135
- case 3:
136
- var value = new google_protobuf_struct_pb.Struct;
137
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
138
- msg.setQuery(value);
139
- break;
140
- case 4:
141
- var value = /** @type {!proto.kaikosdk.EnvelopeStatus} */ (reader.readEnum());
142
- msg.setStatus(value);
143
- break;
144
- case 5:
145
- var value = new google_protobuf_timestamp_pb.Timestamp;
146
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
147
- msg.setTime(value);
148
- break;
149
- case 6:
150
- var value = /** @type {string} */ (reader.readString());
151
- msg.setTimestamp(value);
152
- break;
153
- default:
154
- reader.skipField();
155
- break;
156
- }
157
- }
158
- return msg;
159
- };
160
-
161
-
162
- /**
163
- * Serializes the message to binary data (in protobuf wire format).
164
- * @return {!Uint8Array}
165
- */
166
- proto.kaikosdk.Envelope.prototype.serializeBinary = function() {
167
- var writer = new jspb.BinaryWriter();
168
- proto.kaikosdk.Envelope.serializeBinaryToWriter(this, writer);
169
- return writer.getResultBuffer();
170
- };
171
-
172
-
173
- /**
174
- * Serializes the given message to binary data (in protobuf wire
175
- * format), writing to the given BinaryWriter.
176
- * @param {!proto.kaikosdk.Envelope} message
177
- * @param {!jspb.BinaryWriter} writer
178
- * @suppress {unusedLocalVariables} f is only used for nested messages
179
- */
180
- proto.kaikosdk.Envelope.serializeBinaryToWriter = function(message, writer) {
181
- var f = undefined;
182
- f = message.getAccess();
183
- if (f != null) {
184
- writer.writeMessage(
185
- 1,
186
- f,
187
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
188
- );
189
- }
190
- f = message.getMessage();
191
- if (f.length > 0) {
192
- writer.writeString(
193
- 2,
194
- f
195
- );
196
- }
197
- f = message.getQuery();
198
- if (f != null) {
199
- writer.writeMessage(
200
- 3,
201
- f,
202
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
203
- );
204
- }
205
- f = message.getStatus();
206
- if (f !== 0.0) {
207
- writer.writeEnum(
208
- 4,
209
- f
210
- );
211
- }
212
- f = message.getTime();
213
- if (f != null) {
214
- writer.writeMessage(
215
- 5,
216
- f,
217
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
218
- );
219
- }
220
- f = message.getTimestamp();
221
- if (f.length > 0) {
222
- writer.writeString(
223
- 6,
224
- f
225
- );
226
- }
227
- };
228
-
229
-
230
- /**
231
- * optional google.protobuf.Struct access = 1;
232
- * @return {?proto.google.protobuf.Struct}
233
- */
234
- proto.kaikosdk.Envelope.prototype.getAccess = function() {
235
- return /** @type{?proto.google.protobuf.Struct} */ (
236
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
237
- };
238
-
239
-
240
- /**
241
- * @param {?proto.google.protobuf.Struct|undefined} value
242
- * @return {!proto.kaikosdk.Envelope} returns this
243
- */
244
- proto.kaikosdk.Envelope.prototype.setAccess = function(value) {
245
- return jspb.Message.setWrapperField(this, 1, value);
246
- };
247
-
248
-
249
- /**
250
- * Clears the message field making it undefined.
251
- * @return {!proto.kaikosdk.Envelope} returns this
252
- */
253
- proto.kaikosdk.Envelope.prototype.clearAccess = function() {
254
- return this.setAccess(undefined);
255
- };
256
-
257
-
258
- /**
259
- * Returns whether this field is set.
260
- * @return {boolean}
261
- */
262
- proto.kaikosdk.Envelope.prototype.hasAccess = function() {
263
- return jspb.Message.getField(this, 1) != null;
264
- };
265
-
266
-
267
- /**
268
- * optional string message = 2;
269
- * @return {string}
270
- */
271
- proto.kaikosdk.Envelope.prototype.getMessage = function() {
272
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
273
- };
274
-
275
-
276
- /**
277
- * @param {string} value
278
- * @return {!proto.kaikosdk.Envelope} returns this
279
- */
280
- proto.kaikosdk.Envelope.prototype.setMessage = function(value) {
281
- return jspb.Message.setProto3StringField(this, 2, value);
282
- };
283
-
284
-
285
- /**
286
- * optional google.protobuf.Struct query = 3;
287
- * @return {?proto.google.protobuf.Struct}
288
- */
289
- proto.kaikosdk.Envelope.prototype.getQuery = function() {
290
- return /** @type{?proto.google.protobuf.Struct} */ (
291
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
292
- };
293
-
294
-
295
- /**
296
- * @param {?proto.google.protobuf.Struct|undefined} value
297
- * @return {!proto.kaikosdk.Envelope} returns this
298
- */
299
- proto.kaikosdk.Envelope.prototype.setQuery = function(value) {
300
- return jspb.Message.setWrapperField(this, 3, value);
301
- };
302
-
303
-
304
- /**
305
- * Clears the message field making it undefined.
306
- * @return {!proto.kaikosdk.Envelope} returns this
307
- */
308
- proto.kaikosdk.Envelope.prototype.clearQuery = function() {
309
- return this.setQuery(undefined);
310
- };
311
-
312
-
313
- /**
314
- * Returns whether this field is set.
315
- * @return {boolean}
316
- */
317
- proto.kaikosdk.Envelope.prototype.hasQuery = function() {
318
- return jspb.Message.getField(this, 3) != null;
319
- };
320
-
321
-
322
- /**
323
- * optional EnvelopeStatus status = 4;
324
- * @return {!proto.kaikosdk.EnvelopeStatus}
325
- */
326
- proto.kaikosdk.Envelope.prototype.getStatus = function() {
327
- return /** @type {!proto.kaikosdk.EnvelopeStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
328
- };
329
-
330
-
331
- /**
332
- * @param {!proto.kaikosdk.EnvelopeStatus} value
333
- * @return {!proto.kaikosdk.Envelope} returns this
334
- */
335
- proto.kaikosdk.Envelope.prototype.setStatus = function(value) {
336
- return jspb.Message.setProto3EnumField(this, 4, value);
337
- };
338
-
339
-
340
- /**
341
- * optional google.protobuf.Timestamp time = 5;
342
- * @return {?proto.google.protobuf.Timestamp}
343
- */
344
- proto.kaikosdk.Envelope.prototype.getTime = function() {
345
- return /** @type{?proto.google.protobuf.Timestamp} */ (
346
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
347
- };
348
-
349
-
350
- /**
351
- * @param {?proto.google.protobuf.Timestamp|undefined} value
352
- * @return {!proto.kaikosdk.Envelope} returns this
353
- */
354
- proto.kaikosdk.Envelope.prototype.setTime = function(value) {
355
- return jspb.Message.setWrapperField(this, 5, value);
356
- };
357
-
358
-
359
- /**
360
- * Clears the message field making it undefined.
361
- * @return {!proto.kaikosdk.Envelope} returns this
362
- */
363
- proto.kaikosdk.Envelope.prototype.clearTime = function() {
364
- return this.setTime(undefined);
365
- };
366
-
367
-
368
- /**
369
- * Returns whether this field is set.
370
- * @return {boolean}
371
- */
372
- proto.kaikosdk.Envelope.prototype.hasTime = function() {
373
- return jspb.Message.getField(this, 5) != null;
374
- };
375
-
376
-
377
- /**
378
- * optional string timestamp = 6;
379
- * @return {string}
380
- */
381
- proto.kaikosdk.Envelope.prototype.getTimestamp = function() {
382
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
383
- };
384
-
385
-
386
- /**
387
- * @param {string} value
388
- * @return {!proto.kaikosdk.Envelope} returns this
389
- */
390
- proto.kaikosdk.Envelope.prototype.setTimestamp = function(value) {
391
- return jspb.Message.setProto3StringField(this, 6, value);
392
- };
393
-
394
-
395
- goog.object.extend(exports, proto.kaikosdk);
@@ -1 +0,0 @@
1
- // GENERATED CODE -- NO SERVICES IN PROTO
@@ -1,34 +0,0 @@
1
- // source: sdk/core/envelope_status.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
- goog.exportSymbol('proto.kaikosdk.EnvelopeStatus', null, global);
25
- /**
26
- * @enum {number}
27
- */
28
- proto.kaikosdk.EnvelopeStatus = {
29
- UNKNOWN: 0,
30
- ERROR: 1,
31
- SUCCESS: 2
32
- };
33
-
34
- goog.object.extend(exports, proto.kaikosdk);
@@ -1,236 +0,0 @@
1
- // source: sdk/core/instrument_criteria.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
- goog.exportSymbol('proto.kaikosdk.InstrumentCriteria', null, global);
25
- /**
26
- * Generated by JsPbCodeGenerator.
27
- * @param {Array=} opt_data Optional initial data array, typically from a
28
- * server response, or constructed directly in Javascript. The array is used
29
- * in place and becomes part of the constructed object. It is not cloned.
30
- * If no data is provided, the constructed object will be empty, but still
31
- * valid.
32
- * @extends {jspb.Message}
33
- * @constructor
34
- */
35
- proto.kaikosdk.InstrumentCriteria = function(opt_data) {
36
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
37
- };
38
- goog.inherits(proto.kaikosdk.InstrumentCriteria, jspb.Message);
39
- if (goog.DEBUG && !COMPILED) {
40
- /**
41
- * @public
42
- * @override
43
- */
44
- proto.kaikosdk.InstrumentCriteria.displayName = 'proto.kaikosdk.InstrumentCriteria';
45
- }
46
-
47
-
48
-
49
- if (jspb.Message.GENERATE_TO_OBJECT) {
50
- /**
51
- * Creates an object representation of this proto.
52
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
53
- * Optional fields that are not set will be set to undefined.
54
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55
- * For the list of reserved names please see:
56
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
57
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58
- * JSPB instance for transitional soy proto support:
59
- * http://goto/soy-param-migration
60
- * @return {!Object}
61
- */
62
- proto.kaikosdk.InstrumentCriteria.prototype.toObject = function(opt_includeInstance) {
63
- return proto.kaikosdk.InstrumentCriteria.toObject(opt_includeInstance, this);
64
- };
65
-
66
-
67
- /**
68
- * Static version of the {@see toObject} method.
69
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70
- * the JSPB instance for transitional soy proto support:
71
- * http://goto/soy-param-migration
72
- * @param {!proto.kaikosdk.InstrumentCriteria} msg The msg instance to transform.
73
- * @return {!Object}
74
- * @suppress {unusedLocalVariables} f is only used for nested messages
75
- */
76
- proto.kaikosdk.InstrumentCriteria.toObject = function(includeInstance, msg) {
77
- var f, obj = {
78
- exchange: jspb.Message.getFieldWithDefault(msg, 1, ""),
79
- instrumentClass: jspb.Message.getFieldWithDefault(msg, 2, ""),
80
- code: jspb.Message.getFieldWithDefault(msg, 3, "")
81
- };
82
-
83
- if (includeInstance) {
84
- obj.$jspbMessageInstance = msg;
85
- }
86
- return obj;
87
- };
88
- }
89
-
90
-
91
- /**
92
- * Deserializes binary data (in protobuf wire format).
93
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
94
- * @return {!proto.kaikosdk.InstrumentCriteria}
95
- */
96
- proto.kaikosdk.InstrumentCriteria.deserializeBinary = function(bytes) {
97
- var reader = new jspb.BinaryReader(bytes);
98
- var msg = new proto.kaikosdk.InstrumentCriteria;
99
- return proto.kaikosdk.InstrumentCriteria.deserializeBinaryFromReader(msg, reader);
100
- };
101
-
102
-
103
- /**
104
- * Deserializes binary data (in protobuf wire format) from the
105
- * given reader into the given message object.
106
- * @param {!proto.kaikosdk.InstrumentCriteria} msg The message object to deserialize into.
107
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
108
- * @return {!proto.kaikosdk.InstrumentCriteria}
109
- */
110
- proto.kaikosdk.InstrumentCriteria.deserializeBinaryFromReader = function(msg, reader) {
111
- while (reader.nextField()) {
112
- if (reader.isEndGroup()) {
113
- break;
114
- }
115
- var field = reader.getFieldNumber();
116
- switch (field) {
117
- case 1:
118
- var value = /** @type {string} */ (reader.readString());
119
- msg.setExchange(value);
120
- break;
121
- case 2:
122
- var value = /** @type {string} */ (reader.readString());
123
- msg.setInstrumentClass(value);
124
- break;
125
- case 3:
126
- var value = /** @type {string} */ (reader.readString());
127
- msg.setCode(value);
128
- break;
129
- default:
130
- reader.skipField();
131
- break;
132
- }
133
- }
134
- return msg;
135
- };
136
-
137
-
138
- /**
139
- * Serializes the message to binary data (in protobuf wire format).
140
- * @return {!Uint8Array}
141
- */
142
- proto.kaikosdk.InstrumentCriteria.prototype.serializeBinary = function() {
143
- var writer = new jspb.BinaryWriter();
144
- proto.kaikosdk.InstrumentCriteria.serializeBinaryToWriter(this, writer);
145
- return writer.getResultBuffer();
146
- };
147
-
148
-
149
- /**
150
- * Serializes the given message to binary data (in protobuf wire
151
- * format), writing to the given BinaryWriter.
152
- * @param {!proto.kaikosdk.InstrumentCriteria} message
153
- * @param {!jspb.BinaryWriter} writer
154
- * @suppress {unusedLocalVariables} f is only used for nested messages
155
- */
156
- proto.kaikosdk.InstrumentCriteria.serializeBinaryToWriter = function(message, writer) {
157
- var f = undefined;
158
- f = message.getExchange();
159
- if (f.length > 0) {
160
- writer.writeString(
161
- 1,
162
- f
163
- );
164
- }
165
- f = message.getInstrumentClass();
166
- if (f.length > 0) {
167
- writer.writeString(
168
- 2,
169
- f
170
- );
171
- }
172
- f = message.getCode();
173
- if (f.length > 0) {
174
- writer.writeString(
175
- 3,
176
- f
177
- );
178
- }
179
- };
180
-
181
-
182
- /**
183
- * optional string exchange = 1;
184
- * @return {string}
185
- */
186
- proto.kaikosdk.InstrumentCriteria.prototype.getExchange = function() {
187
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
188
- };
189
-
190
-
191
- /**
192
- * @param {string} value
193
- * @return {!proto.kaikosdk.InstrumentCriteria} returns this
194
- */
195
- proto.kaikosdk.InstrumentCriteria.prototype.setExchange = function(value) {
196
- return jspb.Message.setProto3StringField(this, 1, value);
197
- };
198
-
199
-
200
- /**
201
- * optional string instrument_class = 2;
202
- * @return {string}
203
- */
204
- proto.kaikosdk.InstrumentCriteria.prototype.getInstrumentClass = function() {
205
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
206
- };
207
-
208
-
209
- /**
210
- * @param {string} value
211
- * @return {!proto.kaikosdk.InstrumentCriteria} returns this
212
- */
213
- proto.kaikosdk.InstrumentCriteria.prototype.setInstrumentClass = function(value) {
214
- return jspb.Message.setProto3StringField(this, 2, value);
215
- };
216
-
217
-
218
- /**
219
- * optional string code = 3;
220
- * @return {string}
221
- */
222
- proto.kaikosdk.InstrumentCriteria.prototype.getCode = function() {
223
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
224
- };
225
-
226
-
227
- /**
228
- * @param {string} value
229
- * @return {!proto.kaikosdk.InstrumentCriteria} returns this
230
- */
231
- proto.kaikosdk.InstrumentCriteria.prototype.setCode = function(value) {
232
- return jspb.Message.setProto3StringField(this, 3, value);
233
- };
234
-
235
-
236
- goog.object.extend(exports, proto.kaikosdk);