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