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