@bithighlander/device-protocol 6.3.1 → 7.14.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/lib/messages-binance_pb.d.ts +428 -0
- package/lib/messages-binance_pb.js +3238 -0
- package/lib/messages-binance_pb.js-e +3238 -0
- package/lib/messages-cosmos_pb.d.ts +466 -0
- package/lib/messages-cosmos_pb.js +3689 -0
- package/lib/messages-cosmos_pb.js-e +3689 -0
- package/lib/messages-eos_pb.js +1962 -1097
- package/lib/messages-eos_pb.js-e +8427 -0
- package/lib/messages-ethereum_pb.d.ts +530 -0
- package/lib/messages-ethereum_pb.js +4421 -0
- package/lib/messages-ethereum_pb.js-e +4421 -0
- package/lib/messages-mayachain_pb.d.ts +294 -0
- package/lib/messages-mayachain_pb.js +2325 -0
- package/lib/messages-mayachain_pb.js-e +2325 -0
- package/lib/messages-nano_pb.d.ts +0 -7
- package/lib/messages-nano_pb.js +366 -238
- package/lib/messages-nano_pb.js-e +1692 -0
- package/lib/messages-osmosis_pb.d.ts +762 -0
- package/lib/messages-osmosis_pb.js +6042 -0
- package/lib/messages-osmosis_pb.js-e +6042 -0
- package/lib/messages-ripple_pb.d.ts +173 -0
- package/lib/messages-ripple_pb.js +1377 -0
- package/lib/messages-ripple_pb.js-e +1377 -0
- package/lib/messages-solana_pb.d.ts +195 -0
- package/lib/messages-solana_pb.js +1578 -0
- package/lib/messages-solana_pb.js-e +1578 -0
- package/lib/messages-tendermint_pb.d.ts +526 -0
- package/lib/messages-tendermint_pb.js +4169 -0
- package/lib/messages-tendermint_pb.js-e +4169 -0
- package/lib/messages-thorchain_pb.d.ts +288 -0
- package/lib/messages-thorchain_pb.js +2277 -0
- package/lib/messages-thorchain_pb.js-e +2277 -0
- package/lib/messages-ton_pb.d.ts +175 -0
- package/lib/messages-ton_pb.js +1396 -0
- package/lib/messages-ton_pb.js-e +1396 -0
- package/lib/messages-tron_pb.d.ts +161 -0
- package/lib/messages-tron_pb.js +1300 -0
- package/lib/messages-tron_pb.js-e +1300 -0
- package/lib/messages-zcash_pb.d.ts +367 -0
- package/lib/messages-zcash_pb.js +3088 -0
- package/lib/messages-zcash_pb.js-e +3088 -0
- package/lib/messages_pb.d.ts +182 -230
- package/lib/messages_pb.js +6718 -5570
- package/lib/messages_pb.js-e +18219 -0
- package/lib/proto.json +2932 -731
- package/lib/types_pb.d.ts +11 -61
- package/lib/types_pb.js +1394 -1104
- package/lib/types_pb.js-e +6185 -0
- package/package.json +7 -5
- package/lib/.keep +0 -0
- package/lib/exchange_pb.d.ts +0 -249
- package/lib/exchange_pb.js +0 -1825
- package/yarn.lock +0 -122
|
@@ -0,0 +1,3238 @@
|
|
|
1
|
+
// source: messages-binance.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
var types_pb = require('./types_pb.js');
|
|
25
|
+
goog.object.extend(proto, types_pb);
|
|
26
|
+
goog.exportSymbol('proto.BinanceAddress', null, global);
|
|
27
|
+
goog.exportSymbol('proto.BinanceCancelMsg', null, global);
|
|
28
|
+
goog.exportSymbol('proto.BinanceGetAddress', null, global);
|
|
29
|
+
goog.exportSymbol('proto.BinanceGetPublicKey', null, global);
|
|
30
|
+
goog.exportSymbol('proto.BinanceOrderMsg', null, global);
|
|
31
|
+
goog.exportSymbol('proto.BinanceOrderMsg.BinanceOrderSide', null, global);
|
|
32
|
+
goog.exportSymbol('proto.BinanceOrderMsg.BinanceOrderType', null, global);
|
|
33
|
+
goog.exportSymbol('proto.BinanceOrderMsg.BinanceTimeInForce', null, global);
|
|
34
|
+
goog.exportSymbol('proto.BinancePublicKey', null, global);
|
|
35
|
+
goog.exportSymbol('proto.BinanceSignTx', null, global);
|
|
36
|
+
goog.exportSymbol('proto.BinanceSignedTx', null, global);
|
|
37
|
+
goog.exportSymbol('proto.BinanceTransferMsg', null, global);
|
|
38
|
+
goog.exportSymbol('proto.BinanceTransferMsg.BinanceCoin', null, global);
|
|
39
|
+
goog.exportSymbol('proto.BinanceTransferMsg.BinanceInputOutput', null, global);
|
|
40
|
+
goog.exportSymbol('proto.BinanceTxRequest', null, global);
|
|
41
|
+
/**
|
|
42
|
+
* Generated by JsPbCodeGenerator.
|
|
43
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
44
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
45
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
46
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
47
|
+
* valid.
|
|
48
|
+
* @extends {jspb.Message}
|
|
49
|
+
* @constructor
|
|
50
|
+
*/
|
|
51
|
+
proto.BinanceGetAddress = function(opt_data) {
|
|
52
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.BinanceGetAddress.repeatedFields_, null);
|
|
53
|
+
};
|
|
54
|
+
goog.inherits(proto.BinanceGetAddress, jspb.Message);
|
|
55
|
+
if (goog.DEBUG && !COMPILED) {
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @override
|
|
59
|
+
*/
|
|
60
|
+
proto.BinanceGetAddress.displayName = 'proto.BinanceGetAddress';
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Generated by JsPbCodeGenerator.
|
|
64
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
65
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
66
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
67
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
68
|
+
* valid.
|
|
69
|
+
* @extends {jspb.Message}
|
|
70
|
+
* @constructor
|
|
71
|
+
*/
|
|
72
|
+
proto.BinanceAddress = function(opt_data) {
|
|
73
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
74
|
+
};
|
|
75
|
+
goog.inherits(proto.BinanceAddress, jspb.Message);
|
|
76
|
+
if (goog.DEBUG && !COMPILED) {
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
* @override
|
|
80
|
+
*/
|
|
81
|
+
proto.BinanceAddress.displayName = 'proto.BinanceAddress';
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Generated by JsPbCodeGenerator.
|
|
85
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
86
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
87
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
88
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
89
|
+
* valid.
|
|
90
|
+
* @extends {jspb.Message}
|
|
91
|
+
* @constructor
|
|
92
|
+
*/
|
|
93
|
+
proto.BinanceGetPublicKey = function(opt_data) {
|
|
94
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.BinanceGetPublicKey.repeatedFields_, null);
|
|
95
|
+
};
|
|
96
|
+
goog.inherits(proto.BinanceGetPublicKey, jspb.Message);
|
|
97
|
+
if (goog.DEBUG && !COMPILED) {
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
* @override
|
|
101
|
+
*/
|
|
102
|
+
proto.BinanceGetPublicKey.displayName = 'proto.BinanceGetPublicKey';
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Generated by JsPbCodeGenerator.
|
|
106
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
107
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
108
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
109
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
110
|
+
* valid.
|
|
111
|
+
* @extends {jspb.Message}
|
|
112
|
+
* @constructor
|
|
113
|
+
*/
|
|
114
|
+
proto.BinancePublicKey = function(opt_data) {
|
|
115
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
116
|
+
};
|
|
117
|
+
goog.inherits(proto.BinancePublicKey, jspb.Message);
|
|
118
|
+
if (goog.DEBUG && !COMPILED) {
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* @override
|
|
122
|
+
*/
|
|
123
|
+
proto.BinancePublicKey.displayName = 'proto.BinancePublicKey';
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Generated by JsPbCodeGenerator.
|
|
127
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
128
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
129
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
130
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
131
|
+
* valid.
|
|
132
|
+
* @extends {jspb.Message}
|
|
133
|
+
* @constructor
|
|
134
|
+
*/
|
|
135
|
+
proto.BinanceSignTx = function(opt_data) {
|
|
136
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.BinanceSignTx.repeatedFields_, null);
|
|
137
|
+
};
|
|
138
|
+
goog.inherits(proto.BinanceSignTx, jspb.Message);
|
|
139
|
+
if (goog.DEBUG && !COMPILED) {
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @override
|
|
143
|
+
*/
|
|
144
|
+
proto.BinanceSignTx.displayName = 'proto.BinanceSignTx';
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Generated by JsPbCodeGenerator.
|
|
148
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
149
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
150
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
151
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
152
|
+
* valid.
|
|
153
|
+
* @extends {jspb.Message}
|
|
154
|
+
* @constructor
|
|
155
|
+
*/
|
|
156
|
+
proto.BinanceTxRequest = function(opt_data) {
|
|
157
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
158
|
+
};
|
|
159
|
+
goog.inherits(proto.BinanceTxRequest, jspb.Message);
|
|
160
|
+
if (goog.DEBUG && !COMPILED) {
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
* @override
|
|
164
|
+
*/
|
|
165
|
+
proto.BinanceTxRequest.displayName = 'proto.BinanceTxRequest';
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Generated by JsPbCodeGenerator.
|
|
169
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
170
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
171
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
172
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
173
|
+
* valid.
|
|
174
|
+
* @extends {jspb.Message}
|
|
175
|
+
* @constructor
|
|
176
|
+
*/
|
|
177
|
+
proto.BinanceTransferMsg = function(opt_data) {
|
|
178
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.BinanceTransferMsg.repeatedFields_, null);
|
|
179
|
+
};
|
|
180
|
+
goog.inherits(proto.BinanceTransferMsg, jspb.Message);
|
|
181
|
+
if (goog.DEBUG && !COMPILED) {
|
|
182
|
+
/**
|
|
183
|
+
* @public
|
|
184
|
+
* @override
|
|
185
|
+
*/
|
|
186
|
+
proto.BinanceTransferMsg.displayName = 'proto.BinanceTransferMsg';
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Generated by JsPbCodeGenerator.
|
|
190
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
191
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
192
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
193
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
194
|
+
* valid.
|
|
195
|
+
* @extends {jspb.Message}
|
|
196
|
+
* @constructor
|
|
197
|
+
*/
|
|
198
|
+
proto.BinanceTransferMsg.BinanceInputOutput = function(opt_data) {
|
|
199
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.BinanceTransferMsg.BinanceInputOutput.repeatedFields_, null);
|
|
200
|
+
};
|
|
201
|
+
goog.inherits(proto.BinanceTransferMsg.BinanceInputOutput, jspb.Message);
|
|
202
|
+
if (goog.DEBUG && !COMPILED) {
|
|
203
|
+
/**
|
|
204
|
+
* @public
|
|
205
|
+
* @override
|
|
206
|
+
*/
|
|
207
|
+
proto.BinanceTransferMsg.BinanceInputOutput.displayName = 'proto.BinanceTransferMsg.BinanceInputOutput';
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Generated by JsPbCodeGenerator.
|
|
211
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
212
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
213
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
214
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
215
|
+
* valid.
|
|
216
|
+
* @extends {jspb.Message}
|
|
217
|
+
* @constructor
|
|
218
|
+
*/
|
|
219
|
+
proto.BinanceTransferMsg.BinanceCoin = function(opt_data) {
|
|
220
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
221
|
+
};
|
|
222
|
+
goog.inherits(proto.BinanceTransferMsg.BinanceCoin, jspb.Message);
|
|
223
|
+
if (goog.DEBUG && !COMPILED) {
|
|
224
|
+
/**
|
|
225
|
+
* @public
|
|
226
|
+
* @override
|
|
227
|
+
*/
|
|
228
|
+
proto.BinanceTransferMsg.BinanceCoin.displayName = 'proto.BinanceTransferMsg.BinanceCoin';
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Generated by JsPbCodeGenerator.
|
|
232
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
233
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
234
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
235
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
236
|
+
* valid.
|
|
237
|
+
* @extends {jspb.Message}
|
|
238
|
+
* @constructor
|
|
239
|
+
*/
|
|
240
|
+
proto.BinanceOrderMsg = function(opt_data) {
|
|
241
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
242
|
+
};
|
|
243
|
+
goog.inherits(proto.BinanceOrderMsg, jspb.Message);
|
|
244
|
+
if (goog.DEBUG && !COMPILED) {
|
|
245
|
+
/**
|
|
246
|
+
* @public
|
|
247
|
+
* @override
|
|
248
|
+
*/
|
|
249
|
+
proto.BinanceOrderMsg.displayName = 'proto.BinanceOrderMsg';
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Generated by JsPbCodeGenerator.
|
|
253
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
254
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
255
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
256
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
257
|
+
* valid.
|
|
258
|
+
* @extends {jspb.Message}
|
|
259
|
+
* @constructor
|
|
260
|
+
*/
|
|
261
|
+
proto.BinanceCancelMsg = function(opt_data) {
|
|
262
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
263
|
+
};
|
|
264
|
+
goog.inherits(proto.BinanceCancelMsg, jspb.Message);
|
|
265
|
+
if (goog.DEBUG && !COMPILED) {
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
* @override
|
|
269
|
+
*/
|
|
270
|
+
proto.BinanceCancelMsg.displayName = 'proto.BinanceCancelMsg';
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Generated by JsPbCodeGenerator.
|
|
274
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
275
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
276
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
277
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
278
|
+
* valid.
|
|
279
|
+
* @extends {jspb.Message}
|
|
280
|
+
* @constructor
|
|
281
|
+
*/
|
|
282
|
+
proto.BinanceSignedTx = function(opt_data) {
|
|
283
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
284
|
+
};
|
|
285
|
+
goog.inherits(proto.BinanceSignedTx, jspb.Message);
|
|
286
|
+
if (goog.DEBUG && !COMPILED) {
|
|
287
|
+
/**
|
|
288
|
+
* @public
|
|
289
|
+
* @override
|
|
290
|
+
*/
|
|
291
|
+
proto.BinanceSignedTx.displayName = 'proto.BinanceSignedTx';
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* List of repeated fields within this message type.
|
|
296
|
+
* @private {!Array<number>}
|
|
297
|
+
* @const
|
|
298
|
+
*/
|
|
299
|
+
proto.BinanceGetAddress.repeatedFields_ = [1];
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
304
|
+
/**
|
|
305
|
+
* Creates an object representation of this proto.
|
|
306
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
307
|
+
* Optional fields that are not set will be set to undefined.
|
|
308
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
309
|
+
* For the list of reserved names please see:
|
|
310
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
311
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
312
|
+
* JSPB instance for transitional soy proto support:
|
|
313
|
+
* http://goto/soy-param-migration
|
|
314
|
+
* @return {!Object}
|
|
315
|
+
*/
|
|
316
|
+
proto.BinanceGetAddress.prototype.toObject = function(opt_includeInstance) {
|
|
317
|
+
return proto.BinanceGetAddress.toObject(opt_includeInstance, this);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Static version of the {@see toObject} method.
|
|
323
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
324
|
+
* the JSPB instance for transitional soy proto support:
|
|
325
|
+
* http://goto/soy-param-migration
|
|
326
|
+
* @param {!proto.BinanceGetAddress} msg The msg instance to transform.
|
|
327
|
+
* @return {!Object}
|
|
328
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
329
|
+
*/
|
|
330
|
+
proto.BinanceGetAddress.toObject = function(includeInstance, msg) {
|
|
331
|
+
var f, obj = {
|
|
332
|
+
addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
333
|
+
showDisplay: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
if (includeInstance) {
|
|
337
|
+
obj.$jspbMessageInstance = msg;
|
|
338
|
+
}
|
|
339
|
+
return obj;
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Deserializes binary data (in protobuf wire format).
|
|
346
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
347
|
+
* @return {!proto.BinanceGetAddress}
|
|
348
|
+
*/
|
|
349
|
+
proto.BinanceGetAddress.deserializeBinary = function(bytes) {
|
|
350
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
351
|
+
var msg = new proto.BinanceGetAddress;
|
|
352
|
+
return proto.BinanceGetAddress.deserializeBinaryFromReader(msg, reader);
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
358
|
+
* given reader into the given message object.
|
|
359
|
+
* @param {!proto.BinanceGetAddress} msg The message object to deserialize into.
|
|
360
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
361
|
+
* @return {!proto.BinanceGetAddress}
|
|
362
|
+
*/
|
|
363
|
+
proto.BinanceGetAddress.deserializeBinaryFromReader = function(msg, reader) {
|
|
364
|
+
while (reader.nextField()) {
|
|
365
|
+
if (reader.isEndGroup()) {
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
var field = reader.getFieldNumber();
|
|
369
|
+
switch (field) {
|
|
370
|
+
case 1:
|
|
371
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
372
|
+
for (var i = 0; i < values.length; i++) {
|
|
373
|
+
msg.addAddressN(values[i]);
|
|
374
|
+
}
|
|
375
|
+
break;
|
|
376
|
+
case 2:
|
|
377
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
378
|
+
msg.setShowDisplay(value);
|
|
379
|
+
break;
|
|
380
|
+
default:
|
|
381
|
+
reader.skipField();
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
return msg;
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
391
|
+
* @return {!Uint8Array}
|
|
392
|
+
*/
|
|
393
|
+
proto.BinanceGetAddress.prototype.serializeBinary = function() {
|
|
394
|
+
var writer = new jspb.BinaryWriter();
|
|
395
|
+
proto.BinanceGetAddress.serializeBinaryToWriter(this, writer);
|
|
396
|
+
return writer.getResultBuffer();
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
402
|
+
* format), writing to the given BinaryWriter.
|
|
403
|
+
* @param {!proto.BinanceGetAddress} message
|
|
404
|
+
* @param {!jspb.BinaryWriter} writer
|
|
405
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
406
|
+
*/
|
|
407
|
+
proto.BinanceGetAddress.serializeBinaryToWriter = function(message, writer) {
|
|
408
|
+
var f = undefined;
|
|
409
|
+
f = message.getAddressNList();
|
|
410
|
+
if (f.length > 0) {
|
|
411
|
+
writer.writeRepeatedUint32(
|
|
412
|
+
1,
|
|
413
|
+
f
|
|
414
|
+
);
|
|
415
|
+
}
|
|
416
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
417
|
+
if (f != null) {
|
|
418
|
+
writer.writeBool(
|
|
419
|
+
2,
|
|
420
|
+
f
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* repeated uint32 address_n = 1;
|
|
428
|
+
* @return {!Array<number>}
|
|
429
|
+
*/
|
|
430
|
+
proto.BinanceGetAddress.prototype.getAddressNList = function() {
|
|
431
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @param {!Array<number>} value
|
|
437
|
+
* @return {!proto.BinanceGetAddress} returns this
|
|
438
|
+
*/
|
|
439
|
+
proto.BinanceGetAddress.prototype.setAddressNList = function(value) {
|
|
440
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @param {number} value
|
|
446
|
+
* @param {number=} opt_index
|
|
447
|
+
* @return {!proto.BinanceGetAddress} returns this
|
|
448
|
+
*/
|
|
449
|
+
proto.BinanceGetAddress.prototype.addAddressN = function(value, opt_index) {
|
|
450
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Clears the list making it empty but non-null.
|
|
456
|
+
* @return {!proto.BinanceGetAddress} returns this
|
|
457
|
+
*/
|
|
458
|
+
proto.BinanceGetAddress.prototype.clearAddressNList = function() {
|
|
459
|
+
return this.setAddressNList([]);
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* optional bool show_display = 2;
|
|
465
|
+
* @return {boolean}
|
|
466
|
+
*/
|
|
467
|
+
proto.BinanceGetAddress.prototype.getShowDisplay = function() {
|
|
468
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @param {boolean} value
|
|
474
|
+
* @return {!proto.BinanceGetAddress} returns this
|
|
475
|
+
*/
|
|
476
|
+
proto.BinanceGetAddress.prototype.setShowDisplay = function(value) {
|
|
477
|
+
return jspb.Message.setField(this, 2, value);
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Clears the field making it undefined.
|
|
483
|
+
* @return {!proto.BinanceGetAddress} returns this
|
|
484
|
+
*/
|
|
485
|
+
proto.BinanceGetAddress.prototype.clearShowDisplay = function() {
|
|
486
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Returns whether this field is set.
|
|
492
|
+
* @return {boolean}
|
|
493
|
+
*/
|
|
494
|
+
proto.BinanceGetAddress.prototype.hasShowDisplay = function() {
|
|
495
|
+
return jspb.Message.getField(this, 2) != null;
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
503
|
+
/**
|
|
504
|
+
* Creates an object representation of this proto.
|
|
505
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
506
|
+
* Optional fields that are not set will be set to undefined.
|
|
507
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
508
|
+
* For the list of reserved names please see:
|
|
509
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
510
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
511
|
+
* JSPB instance for transitional soy proto support:
|
|
512
|
+
* http://goto/soy-param-migration
|
|
513
|
+
* @return {!Object}
|
|
514
|
+
*/
|
|
515
|
+
proto.BinanceAddress.prototype.toObject = function(opt_includeInstance) {
|
|
516
|
+
return proto.BinanceAddress.toObject(opt_includeInstance, this);
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Static version of the {@see toObject} method.
|
|
522
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
523
|
+
* the JSPB instance for transitional soy proto support:
|
|
524
|
+
* http://goto/soy-param-migration
|
|
525
|
+
* @param {!proto.BinanceAddress} msg The msg instance to transform.
|
|
526
|
+
* @return {!Object}
|
|
527
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
528
|
+
*/
|
|
529
|
+
proto.BinanceAddress.toObject = function(includeInstance, msg) {
|
|
530
|
+
var f, obj = {
|
|
531
|
+
address: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
if (includeInstance) {
|
|
535
|
+
obj.$jspbMessageInstance = msg;
|
|
536
|
+
}
|
|
537
|
+
return obj;
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Deserializes binary data (in protobuf wire format).
|
|
544
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
545
|
+
* @return {!proto.BinanceAddress}
|
|
546
|
+
*/
|
|
547
|
+
proto.BinanceAddress.deserializeBinary = function(bytes) {
|
|
548
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
549
|
+
var msg = new proto.BinanceAddress;
|
|
550
|
+
return proto.BinanceAddress.deserializeBinaryFromReader(msg, reader);
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
556
|
+
* given reader into the given message object.
|
|
557
|
+
* @param {!proto.BinanceAddress} msg The message object to deserialize into.
|
|
558
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
559
|
+
* @return {!proto.BinanceAddress}
|
|
560
|
+
*/
|
|
561
|
+
proto.BinanceAddress.deserializeBinaryFromReader = function(msg, reader) {
|
|
562
|
+
while (reader.nextField()) {
|
|
563
|
+
if (reader.isEndGroup()) {
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
var field = reader.getFieldNumber();
|
|
567
|
+
switch (field) {
|
|
568
|
+
case 1:
|
|
569
|
+
var value = /** @type {string} */ (reader.readString());
|
|
570
|
+
msg.setAddress(value);
|
|
571
|
+
break;
|
|
572
|
+
default:
|
|
573
|
+
reader.skipField();
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
return msg;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
583
|
+
* @return {!Uint8Array}
|
|
584
|
+
*/
|
|
585
|
+
proto.BinanceAddress.prototype.serializeBinary = function() {
|
|
586
|
+
var writer = new jspb.BinaryWriter();
|
|
587
|
+
proto.BinanceAddress.serializeBinaryToWriter(this, writer);
|
|
588
|
+
return writer.getResultBuffer();
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
594
|
+
* format), writing to the given BinaryWriter.
|
|
595
|
+
* @param {!proto.BinanceAddress} message
|
|
596
|
+
* @param {!jspb.BinaryWriter} writer
|
|
597
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
598
|
+
*/
|
|
599
|
+
proto.BinanceAddress.serializeBinaryToWriter = function(message, writer) {
|
|
600
|
+
var f = undefined;
|
|
601
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
602
|
+
if (f != null) {
|
|
603
|
+
writer.writeString(
|
|
604
|
+
1,
|
|
605
|
+
f
|
|
606
|
+
);
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* optional string address = 1;
|
|
613
|
+
* @return {string}
|
|
614
|
+
*/
|
|
615
|
+
proto.BinanceAddress.prototype.getAddress = function() {
|
|
616
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* @param {string} value
|
|
622
|
+
* @return {!proto.BinanceAddress} returns this
|
|
623
|
+
*/
|
|
624
|
+
proto.BinanceAddress.prototype.setAddress = function(value) {
|
|
625
|
+
return jspb.Message.setField(this, 1, value);
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Clears the field making it undefined.
|
|
631
|
+
* @return {!proto.BinanceAddress} returns this
|
|
632
|
+
*/
|
|
633
|
+
proto.BinanceAddress.prototype.clearAddress = function() {
|
|
634
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Returns whether this field is set.
|
|
640
|
+
* @return {boolean}
|
|
641
|
+
*/
|
|
642
|
+
proto.BinanceAddress.prototype.hasAddress = function() {
|
|
643
|
+
return jspb.Message.getField(this, 1) != null;
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* List of repeated fields within this message type.
|
|
650
|
+
* @private {!Array<number>}
|
|
651
|
+
* @const
|
|
652
|
+
*/
|
|
653
|
+
proto.BinanceGetPublicKey.repeatedFields_ = [1];
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
658
|
+
/**
|
|
659
|
+
* Creates an object representation of this proto.
|
|
660
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
661
|
+
* Optional fields that are not set will be set to undefined.
|
|
662
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
663
|
+
* For the list of reserved names please see:
|
|
664
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
665
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
666
|
+
* JSPB instance for transitional soy proto support:
|
|
667
|
+
* http://goto/soy-param-migration
|
|
668
|
+
* @return {!Object}
|
|
669
|
+
*/
|
|
670
|
+
proto.BinanceGetPublicKey.prototype.toObject = function(opt_includeInstance) {
|
|
671
|
+
return proto.BinanceGetPublicKey.toObject(opt_includeInstance, this);
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Static version of the {@see toObject} method.
|
|
677
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
678
|
+
* the JSPB instance for transitional soy proto support:
|
|
679
|
+
* http://goto/soy-param-migration
|
|
680
|
+
* @param {!proto.BinanceGetPublicKey} msg The msg instance to transform.
|
|
681
|
+
* @return {!Object}
|
|
682
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
683
|
+
*/
|
|
684
|
+
proto.BinanceGetPublicKey.toObject = function(includeInstance, msg) {
|
|
685
|
+
var f, obj = {
|
|
686
|
+
addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
687
|
+
showDisplay: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
if (includeInstance) {
|
|
691
|
+
obj.$jspbMessageInstance = msg;
|
|
692
|
+
}
|
|
693
|
+
return obj;
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Deserializes binary data (in protobuf wire format).
|
|
700
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
701
|
+
* @return {!proto.BinanceGetPublicKey}
|
|
702
|
+
*/
|
|
703
|
+
proto.BinanceGetPublicKey.deserializeBinary = function(bytes) {
|
|
704
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
705
|
+
var msg = new proto.BinanceGetPublicKey;
|
|
706
|
+
return proto.BinanceGetPublicKey.deserializeBinaryFromReader(msg, reader);
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
712
|
+
* given reader into the given message object.
|
|
713
|
+
* @param {!proto.BinanceGetPublicKey} msg The message object to deserialize into.
|
|
714
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
715
|
+
* @return {!proto.BinanceGetPublicKey}
|
|
716
|
+
*/
|
|
717
|
+
proto.BinanceGetPublicKey.deserializeBinaryFromReader = function(msg, reader) {
|
|
718
|
+
while (reader.nextField()) {
|
|
719
|
+
if (reader.isEndGroup()) {
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
var field = reader.getFieldNumber();
|
|
723
|
+
switch (field) {
|
|
724
|
+
case 1:
|
|
725
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
726
|
+
for (var i = 0; i < values.length; i++) {
|
|
727
|
+
msg.addAddressN(values[i]);
|
|
728
|
+
}
|
|
729
|
+
break;
|
|
730
|
+
case 2:
|
|
731
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
732
|
+
msg.setShowDisplay(value);
|
|
733
|
+
break;
|
|
734
|
+
default:
|
|
735
|
+
reader.skipField();
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return msg;
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
745
|
+
* @return {!Uint8Array}
|
|
746
|
+
*/
|
|
747
|
+
proto.BinanceGetPublicKey.prototype.serializeBinary = function() {
|
|
748
|
+
var writer = new jspb.BinaryWriter();
|
|
749
|
+
proto.BinanceGetPublicKey.serializeBinaryToWriter(this, writer);
|
|
750
|
+
return writer.getResultBuffer();
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
756
|
+
* format), writing to the given BinaryWriter.
|
|
757
|
+
* @param {!proto.BinanceGetPublicKey} message
|
|
758
|
+
* @param {!jspb.BinaryWriter} writer
|
|
759
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
760
|
+
*/
|
|
761
|
+
proto.BinanceGetPublicKey.serializeBinaryToWriter = function(message, writer) {
|
|
762
|
+
var f = undefined;
|
|
763
|
+
f = message.getAddressNList();
|
|
764
|
+
if (f.length > 0) {
|
|
765
|
+
writer.writeRepeatedUint32(
|
|
766
|
+
1,
|
|
767
|
+
f
|
|
768
|
+
);
|
|
769
|
+
}
|
|
770
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
771
|
+
if (f != null) {
|
|
772
|
+
writer.writeBool(
|
|
773
|
+
2,
|
|
774
|
+
f
|
|
775
|
+
);
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* repeated uint32 address_n = 1;
|
|
782
|
+
* @return {!Array<number>}
|
|
783
|
+
*/
|
|
784
|
+
proto.BinanceGetPublicKey.prototype.getAddressNList = function() {
|
|
785
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* @param {!Array<number>} value
|
|
791
|
+
* @return {!proto.BinanceGetPublicKey} returns this
|
|
792
|
+
*/
|
|
793
|
+
proto.BinanceGetPublicKey.prototype.setAddressNList = function(value) {
|
|
794
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* @param {number} value
|
|
800
|
+
* @param {number=} opt_index
|
|
801
|
+
* @return {!proto.BinanceGetPublicKey} returns this
|
|
802
|
+
*/
|
|
803
|
+
proto.BinanceGetPublicKey.prototype.addAddressN = function(value, opt_index) {
|
|
804
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Clears the list making it empty but non-null.
|
|
810
|
+
* @return {!proto.BinanceGetPublicKey} returns this
|
|
811
|
+
*/
|
|
812
|
+
proto.BinanceGetPublicKey.prototype.clearAddressNList = function() {
|
|
813
|
+
return this.setAddressNList([]);
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* optional bool show_display = 2;
|
|
819
|
+
* @return {boolean}
|
|
820
|
+
*/
|
|
821
|
+
proto.BinanceGetPublicKey.prototype.getShowDisplay = function() {
|
|
822
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* @param {boolean} value
|
|
828
|
+
* @return {!proto.BinanceGetPublicKey} returns this
|
|
829
|
+
*/
|
|
830
|
+
proto.BinanceGetPublicKey.prototype.setShowDisplay = function(value) {
|
|
831
|
+
return jspb.Message.setField(this, 2, value);
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Clears the field making it undefined.
|
|
837
|
+
* @return {!proto.BinanceGetPublicKey} returns this
|
|
838
|
+
*/
|
|
839
|
+
proto.BinanceGetPublicKey.prototype.clearShowDisplay = function() {
|
|
840
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Returns whether this field is set.
|
|
846
|
+
* @return {boolean}
|
|
847
|
+
*/
|
|
848
|
+
proto.BinanceGetPublicKey.prototype.hasShowDisplay = function() {
|
|
849
|
+
return jspb.Message.getField(this, 2) != null;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
857
|
+
/**
|
|
858
|
+
* Creates an object representation of this proto.
|
|
859
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
860
|
+
* Optional fields that are not set will be set to undefined.
|
|
861
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
862
|
+
* For the list of reserved names please see:
|
|
863
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
864
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
865
|
+
* JSPB instance for transitional soy proto support:
|
|
866
|
+
* http://goto/soy-param-migration
|
|
867
|
+
* @return {!Object}
|
|
868
|
+
*/
|
|
869
|
+
proto.BinancePublicKey.prototype.toObject = function(opt_includeInstance) {
|
|
870
|
+
return proto.BinancePublicKey.toObject(opt_includeInstance, this);
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Static version of the {@see toObject} method.
|
|
876
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
877
|
+
* the JSPB instance for transitional soy proto support:
|
|
878
|
+
* http://goto/soy-param-migration
|
|
879
|
+
* @param {!proto.BinancePublicKey} msg The msg instance to transform.
|
|
880
|
+
* @return {!Object}
|
|
881
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
882
|
+
*/
|
|
883
|
+
proto.BinancePublicKey.toObject = function(includeInstance, msg) {
|
|
884
|
+
var f, obj = {
|
|
885
|
+
publicKey: msg.getPublicKey_asB64()
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
if (includeInstance) {
|
|
889
|
+
obj.$jspbMessageInstance = msg;
|
|
890
|
+
}
|
|
891
|
+
return obj;
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Deserializes binary data (in protobuf wire format).
|
|
898
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
899
|
+
* @return {!proto.BinancePublicKey}
|
|
900
|
+
*/
|
|
901
|
+
proto.BinancePublicKey.deserializeBinary = function(bytes) {
|
|
902
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
903
|
+
var msg = new proto.BinancePublicKey;
|
|
904
|
+
return proto.BinancePublicKey.deserializeBinaryFromReader(msg, reader);
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
910
|
+
* given reader into the given message object.
|
|
911
|
+
* @param {!proto.BinancePublicKey} msg The message object to deserialize into.
|
|
912
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
913
|
+
* @return {!proto.BinancePublicKey}
|
|
914
|
+
*/
|
|
915
|
+
proto.BinancePublicKey.deserializeBinaryFromReader = function(msg, reader) {
|
|
916
|
+
while (reader.nextField()) {
|
|
917
|
+
if (reader.isEndGroup()) {
|
|
918
|
+
break;
|
|
919
|
+
}
|
|
920
|
+
var field = reader.getFieldNumber();
|
|
921
|
+
switch (field) {
|
|
922
|
+
case 1:
|
|
923
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
924
|
+
msg.setPublicKey(value);
|
|
925
|
+
break;
|
|
926
|
+
default:
|
|
927
|
+
reader.skipField();
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return msg;
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
937
|
+
* @return {!Uint8Array}
|
|
938
|
+
*/
|
|
939
|
+
proto.BinancePublicKey.prototype.serializeBinary = function() {
|
|
940
|
+
var writer = new jspb.BinaryWriter();
|
|
941
|
+
proto.BinancePublicKey.serializeBinaryToWriter(this, writer);
|
|
942
|
+
return writer.getResultBuffer();
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
948
|
+
* format), writing to the given BinaryWriter.
|
|
949
|
+
* @param {!proto.BinancePublicKey} message
|
|
950
|
+
* @param {!jspb.BinaryWriter} writer
|
|
951
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
952
|
+
*/
|
|
953
|
+
proto.BinancePublicKey.serializeBinaryToWriter = function(message, writer) {
|
|
954
|
+
var f = undefined;
|
|
955
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
|
|
956
|
+
if (f != null) {
|
|
957
|
+
writer.writeBytes(
|
|
958
|
+
1,
|
|
959
|
+
f
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* optional bytes public_key = 1;
|
|
967
|
+
* @return {!(string|Uint8Array)}
|
|
968
|
+
*/
|
|
969
|
+
proto.BinancePublicKey.prototype.getPublicKey = function() {
|
|
970
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* optional bytes public_key = 1;
|
|
976
|
+
* This is a type-conversion wrapper around `getPublicKey()`
|
|
977
|
+
* @return {string}
|
|
978
|
+
*/
|
|
979
|
+
proto.BinancePublicKey.prototype.getPublicKey_asB64 = function() {
|
|
980
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
981
|
+
this.getPublicKey()));
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* optional bytes public_key = 1;
|
|
987
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
988
|
+
* @see http://caniuse.com/Uint8Array
|
|
989
|
+
* This is a type-conversion wrapper around `getPublicKey()`
|
|
990
|
+
* @return {!Uint8Array}
|
|
991
|
+
*/
|
|
992
|
+
proto.BinancePublicKey.prototype.getPublicKey_asU8 = function() {
|
|
993
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
994
|
+
this.getPublicKey()));
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* @param {!(string|Uint8Array)} value
|
|
1000
|
+
* @return {!proto.BinancePublicKey} returns this
|
|
1001
|
+
*/
|
|
1002
|
+
proto.BinancePublicKey.prototype.setPublicKey = function(value) {
|
|
1003
|
+
return jspb.Message.setField(this, 1, value);
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Clears the field making it undefined.
|
|
1009
|
+
* @return {!proto.BinancePublicKey} returns this
|
|
1010
|
+
*/
|
|
1011
|
+
proto.BinancePublicKey.prototype.clearPublicKey = function() {
|
|
1012
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Returns whether this field is set.
|
|
1018
|
+
* @return {boolean}
|
|
1019
|
+
*/
|
|
1020
|
+
proto.BinancePublicKey.prototype.hasPublicKey = function() {
|
|
1021
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* List of repeated fields within this message type.
|
|
1028
|
+
* @private {!Array<number>}
|
|
1029
|
+
* @const
|
|
1030
|
+
*/
|
|
1031
|
+
proto.BinanceSignTx.repeatedFields_ = [1];
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1036
|
+
/**
|
|
1037
|
+
* Creates an object representation of this proto.
|
|
1038
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1039
|
+
* Optional fields that are not set will be set to undefined.
|
|
1040
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1041
|
+
* For the list of reserved names please see:
|
|
1042
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1043
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1044
|
+
* JSPB instance for transitional soy proto support:
|
|
1045
|
+
* http://goto/soy-param-migration
|
|
1046
|
+
* @return {!Object}
|
|
1047
|
+
*/
|
|
1048
|
+
proto.BinanceSignTx.prototype.toObject = function(opt_includeInstance) {
|
|
1049
|
+
return proto.BinanceSignTx.toObject(opt_includeInstance, this);
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Static version of the {@see toObject} method.
|
|
1055
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1056
|
+
* the JSPB instance for transitional soy proto support:
|
|
1057
|
+
* http://goto/soy-param-migration
|
|
1058
|
+
* @param {!proto.BinanceSignTx} msg The msg instance to transform.
|
|
1059
|
+
* @return {!Object}
|
|
1060
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1061
|
+
*/
|
|
1062
|
+
proto.BinanceSignTx.toObject = function(includeInstance, msg) {
|
|
1063
|
+
var f, obj = {
|
|
1064
|
+
addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1065
|
+
msgCount: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
|
1066
|
+
accountNumber: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
1067
|
+
chainId: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
|
|
1068
|
+
memo: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
|
1069
|
+
sequence: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
|
1070
|
+
source: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
if (includeInstance) {
|
|
1074
|
+
obj.$jspbMessageInstance = msg;
|
|
1075
|
+
}
|
|
1076
|
+
return obj;
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1083
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1084
|
+
* @return {!proto.BinanceSignTx}
|
|
1085
|
+
*/
|
|
1086
|
+
proto.BinanceSignTx.deserializeBinary = function(bytes) {
|
|
1087
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1088
|
+
var msg = new proto.BinanceSignTx;
|
|
1089
|
+
return proto.BinanceSignTx.deserializeBinaryFromReader(msg, reader);
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1095
|
+
* given reader into the given message object.
|
|
1096
|
+
* @param {!proto.BinanceSignTx} msg The message object to deserialize into.
|
|
1097
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1098
|
+
* @return {!proto.BinanceSignTx}
|
|
1099
|
+
*/
|
|
1100
|
+
proto.BinanceSignTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
1101
|
+
while (reader.nextField()) {
|
|
1102
|
+
if (reader.isEndGroup()) {
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
1105
|
+
var field = reader.getFieldNumber();
|
|
1106
|
+
switch (field) {
|
|
1107
|
+
case 1:
|
|
1108
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
1109
|
+
for (var i = 0; i < values.length; i++) {
|
|
1110
|
+
msg.addAddressN(values[i]);
|
|
1111
|
+
}
|
|
1112
|
+
break;
|
|
1113
|
+
case 2:
|
|
1114
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1115
|
+
msg.setMsgCount(value);
|
|
1116
|
+
break;
|
|
1117
|
+
case 3:
|
|
1118
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
1119
|
+
msg.setAccountNumber(value);
|
|
1120
|
+
break;
|
|
1121
|
+
case 4:
|
|
1122
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1123
|
+
msg.setChainId(value);
|
|
1124
|
+
break;
|
|
1125
|
+
case 5:
|
|
1126
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1127
|
+
msg.setMemo(value);
|
|
1128
|
+
break;
|
|
1129
|
+
case 6:
|
|
1130
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
1131
|
+
msg.setSequence(value);
|
|
1132
|
+
break;
|
|
1133
|
+
case 7:
|
|
1134
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
1135
|
+
msg.setSource(value);
|
|
1136
|
+
break;
|
|
1137
|
+
default:
|
|
1138
|
+
reader.skipField();
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
return msg;
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1148
|
+
* @return {!Uint8Array}
|
|
1149
|
+
*/
|
|
1150
|
+
proto.BinanceSignTx.prototype.serializeBinary = function() {
|
|
1151
|
+
var writer = new jspb.BinaryWriter();
|
|
1152
|
+
proto.BinanceSignTx.serializeBinaryToWriter(this, writer);
|
|
1153
|
+
return writer.getResultBuffer();
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1159
|
+
* format), writing to the given BinaryWriter.
|
|
1160
|
+
* @param {!proto.BinanceSignTx} message
|
|
1161
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1162
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1163
|
+
*/
|
|
1164
|
+
proto.BinanceSignTx.serializeBinaryToWriter = function(message, writer) {
|
|
1165
|
+
var f = undefined;
|
|
1166
|
+
f = message.getAddressNList();
|
|
1167
|
+
if (f.length > 0) {
|
|
1168
|
+
writer.writeRepeatedUint32(
|
|
1169
|
+
1,
|
|
1170
|
+
f
|
|
1171
|
+
);
|
|
1172
|
+
}
|
|
1173
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
1174
|
+
if (f != null) {
|
|
1175
|
+
writer.writeUint32(
|
|
1176
|
+
2,
|
|
1177
|
+
f
|
|
1178
|
+
);
|
|
1179
|
+
}
|
|
1180
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
1181
|
+
if (f != null) {
|
|
1182
|
+
writer.writeSint64String(
|
|
1183
|
+
3,
|
|
1184
|
+
f
|
|
1185
|
+
);
|
|
1186
|
+
}
|
|
1187
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
1188
|
+
if (f != null) {
|
|
1189
|
+
writer.writeString(
|
|
1190
|
+
4,
|
|
1191
|
+
f
|
|
1192
|
+
);
|
|
1193
|
+
}
|
|
1194
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
1195
|
+
if (f != null) {
|
|
1196
|
+
writer.writeString(
|
|
1197
|
+
5,
|
|
1198
|
+
f
|
|
1199
|
+
);
|
|
1200
|
+
}
|
|
1201
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
1202
|
+
if (f != null) {
|
|
1203
|
+
writer.writeSint64String(
|
|
1204
|
+
6,
|
|
1205
|
+
f
|
|
1206
|
+
);
|
|
1207
|
+
}
|
|
1208
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
1209
|
+
if (f != null) {
|
|
1210
|
+
writer.writeSint64String(
|
|
1211
|
+
7,
|
|
1212
|
+
f
|
|
1213
|
+
);
|
|
1214
|
+
}
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* repeated uint32 address_n = 1;
|
|
1220
|
+
* @return {!Array<number>}
|
|
1221
|
+
*/
|
|
1222
|
+
proto.BinanceSignTx.prototype.getAddressNList = function() {
|
|
1223
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* @param {!Array<number>} value
|
|
1229
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1230
|
+
*/
|
|
1231
|
+
proto.BinanceSignTx.prototype.setAddressNList = function(value) {
|
|
1232
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* @param {number} value
|
|
1238
|
+
* @param {number=} opt_index
|
|
1239
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1240
|
+
*/
|
|
1241
|
+
proto.BinanceSignTx.prototype.addAddressN = function(value, opt_index) {
|
|
1242
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Clears the list making it empty but non-null.
|
|
1248
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1249
|
+
*/
|
|
1250
|
+
proto.BinanceSignTx.prototype.clearAddressNList = function() {
|
|
1251
|
+
return this.setAddressNList([]);
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* optional uint32 msg_count = 2;
|
|
1257
|
+
* @return {number}
|
|
1258
|
+
*/
|
|
1259
|
+
proto.BinanceSignTx.prototype.getMsgCount = function() {
|
|
1260
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* @param {number} value
|
|
1266
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1267
|
+
*/
|
|
1268
|
+
proto.BinanceSignTx.prototype.setMsgCount = function(value) {
|
|
1269
|
+
return jspb.Message.setField(this, 2, value);
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Clears the field making it undefined.
|
|
1275
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1276
|
+
*/
|
|
1277
|
+
proto.BinanceSignTx.prototype.clearMsgCount = function() {
|
|
1278
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Returns whether this field is set.
|
|
1284
|
+
* @return {boolean}
|
|
1285
|
+
*/
|
|
1286
|
+
proto.BinanceSignTx.prototype.hasMsgCount = function() {
|
|
1287
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* optional sint64 account_number = 3;
|
|
1293
|
+
* @return {string}
|
|
1294
|
+
*/
|
|
1295
|
+
proto.BinanceSignTx.prototype.getAccountNumber = function() {
|
|
1296
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* @param {string} value
|
|
1302
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1303
|
+
*/
|
|
1304
|
+
proto.BinanceSignTx.prototype.setAccountNumber = function(value) {
|
|
1305
|
+
return jspb.Message.setField(this, 3, value);
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* Clears the field making it undefined.
|
|
1311
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1312
|
+
*/
|
|
1313
|
+
proto.BinanceSignTx.prototype.clearAccountNumber = function() {
|
|
1314
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Returns whether this field is set.
|
|
1320
|
+
* @return {boolean}
|
|
1321
|
+
*/
|
|
1322
|
+
proto.BinanceSignTx.prototype.hasAccountNumber = function() {
|
|
1323
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* optional string chain_id = 4;
|
|
1329
|
+
* @return {string}
|
|
1330
|
+
*/
|
|
1331
|
+
proto.BinanceSignTx.prototype.getChainId = function() {
|
|
1332
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* @param {string} value
|
|
1338
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1339
|
+
*/
|
|
1340
|
+
proto.BinanceSignTx.prototype.setChainId = function(value) {
|
|
1341
|
+
return jspb.Message.setField(this, 4, value);
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Clears the field making it undefined.
|
|
1347
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1348
|
+
*/
|
|
1349
|
+
proto.BinanceSignTx.prototype.clearChainId = function() {
|
|
1350
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Returns whether this field is set.
|
|
1356
|
+
* @return {boolean}
|
|
1357
|
+
*/
|
|
1358
|
+
proto.BinanceSignTx.prototype.hasChainId = function() {
|
|
1359
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* optional string memo = 5;
|
|
1365
|
+
* @return {string}
|
|
1366
|
+
*/
|
|
1367
|
+
proto.BinanceSignTx.prototype.getMemo = function() {
|
|
1368
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* @param {string} value
|
|
1374
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1375
|
+
*/
|
|
1376
|
+
proto.BinanceSignTx.prototype.setMemo = function(value) {
|
|
1377
|
+
return jspb.Message.setField(this, 5, value);
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* Clears the field making it undefined.
|
|
1383
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1384
|
+
*/
|
|
1385
|
+
proto.BinanceSignTx.prototype.clearMemo = function() {
|
|
1386
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Returns whether this field is set.
|
|
1392
|
+
* @return {boolean}
|
|
1393
|
+
*/
|
|
1394
|
+
proto.BinanceSignTx.prototype.hasMemo = function() {
|
|
1395
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* optional sint64 sequence = 6;
|
|
1401
|
+
* @return {string}
|
|
1402
|
+
*/
|
|
1403
|
+
proto.BinanceSignTx.prototype.getSequence = function() {
|
|
1404
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0"));
|
|
1405
|
+
};
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* @param {string} value
|
|
1410
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1411
|
+
*/
|
|
1412
|
+
proto.BinanceSignTx.prototype.setSequence = function(value) {
|
|
1413
|
+
return jspb.Message.setField(this, 6, value);
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* Clears the field making it undefined.
|
|
1419
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1420
|
+
*/
|
|
1421
|
+
proto.BinanceSignTx.prototype.clearSequence = function() {
|
|
1422
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* Returns whether this field is set.
|
|
1428
|
+
* @return {boolean}
|
|
1429
|
+
*/
|
|
1430
|
+
proto.BinanceSignTx.prototype.hasSequence = function() {
|
|
1431
|
+
return jspb.Message.getField(this, 6) != null;
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* optional sint64 source = 7;
|
|
1437
|
+
* @return {string}
|
|
1438
|
+
*/
|
|
1439
|
+
proto.BinanceSignTx.prototype.getSource = function() {
|
|
1440
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0"));
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* @param {string} value
|
|
1446
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1447
|
+
*/
|
|
1448
|
+
proto.BinanceSignTx.prototype.setSource = function(value) {
|
|
1449
|
+
return jspb.Message.setField(this, 7, value);
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Clears the field making it undefined.
|
|
1455
|
+
* @return {!proto.BinanceSignTx} returns this
|
|
1456
|
+
*/
|
|
1457
|
+
proto.BinanceSignTx.prototype.clearSource = function() {
|
|
1458
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Returns whether this field is set.
|
|
1464
|
+
* @return {boolean}
|
|
1465
|
+
*/
|
|
1466
|
+
proto.BinanceSignTx.prototype.hasSource = function() {
|
|
1467
|
+
return jspb.Message.getField(this, 7) != null;
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1475
|
+
/**
|
|
1476
|
+
* Creates an object representation of this proto.
|
|
1477
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1478
|
+
* Optional fields that are not set will be set to undefined.
|
|
1479
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1480
|
+
* For the list of reserved names please see:
|
|
1481
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1482
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1483
|
+
* JSPB instance for transitional soy proto support:
|
|
1484
|
+
* http://goto/soy-param-migration
|
|
1485
|
+
* @return {!Object}
|
|
1486
|
+
*/
|
|
1487
|
+
proto.BinanceTxRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1488
|
+
return proto.BinanceTxRequest.toObject(opt_includeInstance, this);
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Static version of the {@see toObject} method.
|
|
1494
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1495
|
+
* the JSPB instance for transitional soy proto support:
|
|
1496
|
+
* http://goto/soy-param-migration
|
|
1497
|
+
* @param {!proto.BinanceTxRequest} msg The msg instance to transform.
|
|
1498
|
+
* @return {!Object}
|
|
1499
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1500
|
+
*/
|
|
1501
|
+
proto.BinanceTxRequest.toObject = function(includeInstance, msg) {
|
|
1502
|
+
var f, obj = {
|
|
1503
|
+
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
if (includeInstance) {
|
|
1507
|
+
obj.$jspbMessageInstance = msg;
|
|
1508
|
+
}
|
|
1509
|
+
return obj;
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1516
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1517
|
+
* @return {!proto.BinanceTxRequest}
|
|
1518
|
+
*/
|
|
1519
|
+
proto.BinanceTxRequest.deserializeBinary = function(bytes) {
|
|
1520
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1521
|
+
var msg = new proto.BinanceTxRequest;
|
|
1522
|
+
return proto.BinanceTxRequest.deserializeBinaryFromReader(msg, reader);
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1528
|
+
* given reader into the given message object.
|
|
1529
|
+
* @param {!proto.BinanceTxRequest} msg The message object to deserialize into.
|
|
1530
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1531
|
+
* @return {!proto.BinanceTxRequest}
|
|
1532
|
+
*/
|
|
1533
|
+
proto.BinanceTxRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1534
|
+
while (reader.nextField()) {
|
|
1535
|
+
if (reader.isEndGroup()) {
|
|
1536
|
+
break;
|
|
1537
|
+
}
|
|
1538
|
+
var field = reader.getFieldNumber();
|
|
1539
|
+
switch (field) {
|
|
1540
|
+
default:
|
|
1541
|
+
reader.skipField();
|
|
1542
|
+
break;
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
return msg;
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1551
|
+
* @return {!Uint8Array}
|
|
1552
|
+
*/
|
|
1553
|
+
proto.BinanceTxRequest.prototype.serializeBinary = function() {
|
|
1554
|
+
var writer = new jspb.BinaryWriter();
|
|
1555
|
+
proto.BinanceTxRequest.serializeBinaryToWriter(this, writer);
|
|
1556
|
+
return writer.getResultBuffer();
|
|
1557
|
+
};
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1562
|
+
* format), writing to the given BinaryWriter.
|
|
1563
|
+
* @param {!proto.BinanceTxRequest} message
|
|
1564
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1565
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1566
|
+
*/
|
|
1567
|
+
proto.BinanceTxRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1568
|
+
var f = undefined;
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* List of repeated fields within this message type.
|
|
1575
|
+
* @private {!Array<number>}
|
|
1576
|
+
* @const
|
|
1577
|
+
*/
|
|
1578
|
+
proto.BinanceTransferMsg.repeatedFields_ = [1,2];
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1583
|
+
/**
|
|
1584
|
+
* Creates an object representation of this proto.
|
|
1585
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1586
|
+
* Optional fields that are not set will be set to undefined.
|
|
1587
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1588
|
+
* For the list of reserved names please see:
|
|
1589
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1590
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1591
|
+
* JSPB instance for transitional soy proto support:
|
|
1592
|
+
* http://goto/soy-param-migration
|
|
1593
|
+
* @return {!Object}
|
|
1594
|
+
*/
|
|
1595
|
+
proto.BinanceTransferMsg.prototype.toObject = function(opt_includeInstance) {
|
|
1596
|
+
return proto.BinanceTransferMsg.toObject(opt_includeInstance, this);
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Static version of the {@see toObject} method.
|
|
1602
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1603
|
+
* the JSPB instance for transitional soy proto support:
|
|
1604
|
+
* http://goto/soy-param-migration
|
|
1605
|
+
* @param {!proto.BinanceTransferMsg} msg The msg instance to transform.
|
|
1606
|
+
* @return {!Object}
|
|
1607
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1608
|
+
*/
|
|
1609
|
+
proto.BinanceTransferMsg.toObject = function(includeInstance, msg) {
|
|
1610
|
+
var f, obj = {
|
|
1611
|
+
inputsList: jspb.Message.toObjectList(msg.getInputsList(),
|
|
1612
|
+
proto.BinanceTransferMsg.BinanceInputOutput.toObject, includeInstance),
|
|
1613
|
+
outputsList: jspb.Message.toObjectList(msg.getOutputsList(),
|
|
1614
|
+
proto.BinanceTransferMsg.BinanceInputOutput.toObject, includeInstance)
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
if (includeInstance) {
|
|
1618
|
+
obj.$jspbMessageInstance = msg;
|
|
1619
|
+
}
|
|
1620
|
+
return obj;
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1627
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1628
|
+
* @return {!proto.BinanceTransferMsg}
|
|
1629
|
+
*/
|
|
1630
|
+
proto.BinanceTransferMsg.deserializeBinary = function(bytes) {
|
|
1631
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1632
|
+
var msg = new proto.BinanceTransferMsg;
|
|
1633
|
+
return proto.BinanceTransferMsg.deserializeBinaryFromReader(msg, reader);
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1639
|
+
* given reader into the given message object.
|
|
1640
|
+
* @param {!proto.BinanceTransferMsg} msg The message object to deserialize into.
|
|
1641
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1642
|
+
* @return {!proto.BinanceTransferMsg}
|
|
1643
|
+
*/
|
|
1644
|
+
proto.BinanceTransferMsg.deserializeBinaryFromReader = function(msg, reader) {
|
|
1645
|
+
while (reader.nextField()) {
|
|
1646
|
+
if (reader.isEndGroup()) {
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
var field = reader.getFieldNumber();
|
|
1650
|
+
switch (field) {
|
|
1651
|
+
case 1:
|
|
1652
|
+
var value = new proto.BinanceTransferMsg.BinanceInputOutput;
|
|
1653
|
+
reader.readMessage(value,proto.BinanceTransferMsg.BinanceInputOutput.deserializeBinaryFromReader);
|
|
1654
|
+
msg.addInputs(value);
|
|
1655
|
+
break;
|
|
1656
|
+
case 2:
|
|
1657
|
+
var value = new proto.BinanceTransferMsg.BinanceInputOutput;
|
|
1658
|
+
reader.readMessage(value,proto.BinanceTransferMsg.BinanceInputOutput.deserializeBinaryFromReader);
|
|
1659
|
+
msg.addOutputs(value);
|
|
1660
|
+
break;
|
|
1661
|
+
default:
|
|
1662
|
+
reader.skipField();
|
|
1663
|
+
break;
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
return msg;
|
|
1667
|
+
};
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1672
|
+
* @return {!Uint8Array}
|
|
1673
|
+
*/
|
|
1674
|
+
proto.BinanceTransferMsg.prototype.serializeBinary = function() {
|
|
1675
|
+
var writer = new jspb.BinaryWriter();
|
|
1676
|
+
proto.BinanceTransferMsg.serializeBinaryToWriter(this, writer);
|
|
1677
|
+
return writer.getResultBuffer();
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1683
|
+
* format), writing to the given BinaryWriter.
|
|
1684
|
+
* @param {!proto.BinanceTransferMsg} message
|
|
1685
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1686
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1687
|
+
*/
|
|
1688
|
+
proto.BinanceTransferMsg.serializeBinaryToWriter = function(message, writer) {
|
|
1689
|
+
var f = undefined;
|
|
1690
|
+
f = message.getInputsList();
|
|
1691
|
+
if (f.length > 0) {
|
|
1692
|
+
writer.writeRepeatedMessage(
|
|
1693
|
+
1,
|
|
1694
|
+
f,
|
|
1695
|
+
proto.BinanceTransferMsg.BinanceInputOutput.serializeBinaryToWriter
|
|
1696
|
+
);
|
|
1697
|
+
}
|
|
1698
|
+
f = message.getOutputsList();
|
|
1699
|
+
if (f.length > 0) {
|
|
1700
|
+
writer.writeRepeatedMessage(
|
|
1701
|
+
2,
|
|
1702
|
+
f,
|
|
1703
|
+
proto.BinanceTransferMsg.BinanceInputOutput.serializeBinaryToWriter
|
|
1704
|
+
);
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* List of repeated fields within this message type.
|
|
1712
|
+
* @private {!Array<number>}
|
|
1713
|
+
* @const
|
|
1714
|
+
*/
|
|
1715
|
+
proto.BinanceTransferMsg.BinanceInputOutput.repeatedFields_ = [2];
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1720
|
+
/**
|
|
1721
|
+
* Creates an object representation of this proto.
|
|
1722
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1723
|
+
* Optional fields that are not set will be set to undefined.
|
|
1724
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1725
|
+
* For the list of reserved names please see:
|
|
1726
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1727
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1728
|
+
* JSPB instance for transitional soy proto support:
|
|
1729
|
+
* http://goto/soy-param-migration
|
|
1730
|
+
* @return {!Object}
|
|
1731
|
+
*/
|
|
1732
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.toObject = function(opt_includeInstance) {
|
|
1733
|
+
return proto.BinanceTransferMsg.BinanceInputOutput.toObject(opt_includeInstance, this);
|
|
1734
|
+
};
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* Static version of the {@see toObject} method.
|
|
1739
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1740
|
+
* the JSPB instance for transitional soy proto support:
|
|
1741
|
+
* http://goto/soy-param-migration
|
|
1742
|
+
* @param {!proto.BinanceTransferMsg.BinanceInputOutput} msg The msg instance to transform.
|
|
1743
|
+
* @return {!Object}
|
|
1744
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1745
|
+
*/
|
|
1746
|
+
proto.BinanceTransferMsg.BinanceInputOutput.toObject = function(includeInstance, msg) {
|
|
1747
|
+
var f, obj = {
|
|
1748
|
+
address: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
1749
|
+
coinsList: jspb.Message.toObjectList(msg.getCoinsList(),
|
|
1750
|
+
proto.BinanceTransferMsg.BinanceCoin.toObject, includeInstance),
|
|
1751
|
+
addressType: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
|
1752
|
+
};
|
|
1753
|
+
|
|
1754
|
+
if (includeInstance) {
|
|
1755
|
+
obj.$jspbMessageInstance = msg;
|
|
1756
|
+
}
|
|
1757
|
+
return obj;
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1764
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1765
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput}
|
|
1766
|
+
*/
|
|
1767
|
+
proto.BinanceTransferMsg.BinanceInputOutput.deserializeBinary = function(bytes) {
|
|
1768
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1769
|
+
var msg = new proto.BinanceTransferMsg.BinanceInputOutput;
|
|
1770
|
+
return proto.BinanceTransferMsg.BinanceInputOutput.deserializeBinaryFromReader(msg, reader);
|
|
1771
|
+
};
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1776
|
+
* given reader into the given message object.
|
|
1777
|
+
* @param {!proto.BinanceTransferMsg.BinanceInputOutput} msg The message object to deserialize into.
|
|
1778
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1779
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput}
|
|
1780
|
+
*/
|
|
1781
|
+
proto.BinanceTransferMsg.BinanceInputOutput.deserializeBinaryFromReader = function(msg, reader) {
|
|
1782
|
+
while (reader.nextField()) {
|
|
1783
|
+
if (reader.isEndGroup()) {
|
|
1784
|
+
break;
|
|
1785
|
+
}
|
|
1786
|
+
var field = reader.getFieldNumber();
|
|
1787
|
+
switch (field) {
|
|
1788
|
+
case 1:
|
|
1789
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1790
|
+
msg.setAddress(value);
|
|
1791
|
+
break;
|
|
1792
|
+
case 2:
|
|
1793
|
+
var value = new proto.BinanceTransferMsg.BinanceCoin;
|
|
1794
|
+
reader.readMessage(value,proto.BinanceTransferMsg.BinanceCoin.deserializeBinaryFromReader);
|
|
1795
|
+
msg.addCoins(value);
|
|
1796
|
+
break;
|
|
1797
|
+
case 3:
|
|
1798
|
+
var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
|
|
1799
|
+
msg.setAddressType(value);
|
|
1800
|
+
break;
|
|
1801
|
+
default:
|
|
1802
|
+
reader.skipField();
|
|
1803
|
+
break;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
return msg;
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1812
|
+
* @return {!Uint8Array}
|
|
1813
|
+
*/
|
|
1814
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.serializeBinary = function() {
|
|
1815
|
+
var writer = new jspb.BinaryWriter();
|
|
1816
|
+
proto.BinanceTransferMsg.BinanceInputOutput.serializeBinaryToWriter(this, writer);
|
|
1817
|
+
return writer.getResultBuffer();
|
|
1818
|
+
};
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1823
|
+
* format), writing to the given BinaryWriter.
|
|
1824
|
+
* @param {!proto.BinanceTransferMsg.BinanceInputOutput} message
|
|
1825
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1826
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1827
|
+
*/
|
|
1828
|
+
proto.BinanceTransferMsg.BinanceInputOutput.serializeBinaryToWriter = function(message, writer) {
|
|
1829
|
+
var f = undefined;
|
|
1830
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
1831
|
+
if (f != null) {
|
|
1832
|
+
writer.writeString(
|
|
1833
|
+
1,
|
|
1834
|
+
f
|
|
1835
|
+
);
|
|
1836
|
+
}
|
|
1837
|
+
f = message.getCoinsList();
|
|
1838
|
+
if (f.length > 0) {
|
|
1839
|
+
writer.writeRepeatedMessage(
|
|
1840
|
+
2,
|
|
1841
|
+
f,
|
|
1842
|
+
proto.BinanceTransferMsg.BinanceCoin.serializeBinaryToWriter
|
|
1843
|
+
);
|
|
1844
|
+
}
|
|
1845
|
+
f = /** @type {!proto.OutputAddressType} */ (jspb.Message.getField(message, 3));
|
|
1846
|
+
if (f != null) {
|
|
1847
|
+
writer.writeEnum(
|
|
1848
|
+
3,
|
|
1849
|
+
f
|
|
1850
|
+
);
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* optional string address = 1;
|
|
1857
|
+
* @return {string}
|
|
1858
|
+
*/
|
|
1859
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.getAddress = function() {
|
|
1860
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* @param {string} value
|
|
1866
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput} returns this
|
|
1867
|
+
*/
|
|
1868
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.setAddress = function(value) {
|
|
1869
|
+
return jspb.Message.setField(this, 1, value);
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Clears the field making it undefined.
|
|
1875
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput} returns this
|
|
1876
|
+
*/
|
|
1877
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.clearAddress = function() {
|
|
1878
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* Returns whether this field is set.
|
|
1884
|
+
* @return {boolean}
|
|
1885
|
+
*/
|
|
1886
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.hasAddress = function() {
|
|
1887
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1888
|
+
};
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* repeated BinanceCoin coins = 2;
|
|
1893
|
+
* @return {!Array<!proto.BinanceTransferMsg.BinanceCoin>}
|
|
1894
|
+
*/
|
|
1895
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.getCoinsList = function() {
|
|
1896
|
+
return /** @type{!Array<!proto.BinanceTransferMsg.BinanceCoin>} */ (
|
|
1897
|
+
jspb.Message.getRepeatedWrapperField(this, proto.BinanceTransferMsg.BinanceCoin, 2));
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
/**
|
|
1902
|
+
* @param {!Array<!proto.BinanceTransferMsg.BinanceCoin>} value
|
|
1903
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput} returns this
|
|
1904
|
+
*/
|
|
1905
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.setCoinsList = function(value) {
|
|
1906
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* @param {!proto.BinanceTransferMsg.BinanceCoin=} opt_value
|
|
1912
|
+
* @param {number=} opt_index
|
|
1913
|
+
* @return {!proto.BinanceTransferMsg.BinanceCoin}
|
|
1914
|
+
*/
|
|
1915
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.addCoins = function(opt_value, opt_index) {
|
|
1916
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.BinanceTransferMsg.BinanceCoin, opt_index);
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Clears the list making it empty but non-null.
|
|
1922
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput} returns this
|
|
1923
|
+
*/
|
|
1924
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.clearCoinsList = function() {
|
|
1925
|
+
return this.setCoinsList([]);
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* optional OutputAddressType address_type = 3;
|
|
1931
|
+
* @return {!proto.OutputAddressType}
|
|
1932
|
+
*/
|
|
1933
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.getAddressType = function() {
|
|
1934
|
+
return /** @type {!proto.OutputAddressType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* @param {!proto.OutputAddressType} value
|
|
1940
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput} returns this
|
|
1941
|
+
*/
|
|
1942
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.setAddressType = function(value) {
|
|
1943
|
+
return jspb.Message.setField(this, 3, value);
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* Clears the field making it undefined.
|
|
1949
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput} returns this
|
|
1950
|
+
*/
|
|
1951
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.clearAddressType = function() {
|
|
1952
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* Returns whether this field is set.
|
|
1958
|
+
* @return {boolean}
|
|
1959
|
+
*/
|
|
1960
|
+
proto.BinanceTransferMsg.BinanceInputOutput.prototype.hasAddressType = function() {
|
|
1961
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1969
|
+
/**
|
|
1970
|
+
* Creates an object representation of this proto.
|
|
1971
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1972
|
+
* Optional fields that are not set will be set to undefined.
|
|
1973
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1974
|
+
* For the list of reserved names please see:
|
|
1975
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1976
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1977
|
+
* JSPB instance for transitional soy proto support:
|
|
1978
|
+
* http://goto/soy-param-migration
|
|
1979
|
+
* @return {!Object}
|
|
1980
|
+
*/
|
|
1981
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.toObject = function(opt_includeInstance) {
|
|
1982
|
+
return proto.BinanceTransferMsg.BinanceCoin.toObject(opt_includeInstance, this);
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* Static version of the {@see toObject} method.
|
|
1988
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1989
|
+
* the JSPB instance for transitional soy proto support:
|
|
1990
|
+
* http://goto/soy-param-migration
|
|
1991
|
+
* @param {!proto.BinanceTransferMsg.BinanceCoin} msg The msg instance to transform.
|
|
1992
|
+
* @return {!Object}
|
|
1993
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1994
|
+
*/
|
|
1995
|
+
proto.BinanceTransferMsg.BinanceCoin.toObject = function(includeInstance, msg) {
|
|
1996
|
+
var f, obj = {
|
|
1997
|
+
amount: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
1998
|
+
denom: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
if (includeInstance) {
|
|
2002
|
+
obj.$jspbMessageInstance = msg;
|
|
2003
|
+
}
|
|
2004
|
+
return obj;
|
|
2005
|
+
};
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2011
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2012
|
+
* @return {!proto.BinanceTransferMsg.BinanceCoin}
|
|
2013
|
+
*/
|
|
2014
|
+
proto.BinanceTransferMsg.BinanceCoin.deserializeBinary = function(bytes) {
|
|
2015
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2016
|
+
var msg = new proto.BinanceTransferMsg.BinanceCoin;
|
|
2017
|
+
return proto.BinanceTransferMsg.BinanceCoin.deserializeBinaryFromReader(msg, reader);
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2023
|
+
* given reader into the given message object.
|
|
2024
|
+
* @param {!proto.BinanceTransferMsg.BinanceCoin} msg The message object to deserialize into.
|
|
2025
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2026
|
+
* @return {!proto.BinanceTransferMsg.BinanceCoin}
|
|
2027
|
+
*/
|
|
2028
|
+
proto.BinanceTransferMsg.BinanceCoin.deserializeBinaryFromReader = function(msg, reader) {
|
|
2029
|
+
while (reader.nextField()) {
|
|
2030
|
+
if (reader.isEndGroup()) {
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
var field = reader.getFieldNumber();
|
|
2034
|
+
switch (field) {
|
|
2035
|
+
case 1:
|
|
2036
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
2037
|
+
msg.setAmount(value);
|
|
2038
|
+
break;
|
|
2039
|
+
case 2:
|
|
2040
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2041
|
+
msg.setDenom(value);
|
|
2042
|
+
break;
|
|
2043
|
+
default:
|
|
2044
|
+
reader.skipField();
|
|
2045
|
+
break;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
return msg;
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2054
|
+
* @return {!Uint8Array}
|
|
2055
|
+
*/
|
|
2056
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.serializeBinary = function() {
|
|
2057
|
+
var writer = new jspb.BinaryWriter();
|
|
2058
|
+
proto.BinanceTransferMsg.BinanceCoin.serializeBinaryToWriter(this, writer);
|
|
2059
|
+
return writer.getResultBuffer();
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2065
|
+
* format), writing to the given BinaryWriter.
|
|
2066
|
+
* @param {!proto.BinanceTransferMsg.BinanceCoin} message
|
|
2067
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2068
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2069
|
+
*/
|
|
2070
|
+
proto.BinanceTransferMsg.BinanceCoin.serializeBinaryToWriter = function(message, writer) {
|
|
2071
|
+
var f = undefined;
|
|
2072
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
2073
|
+
if (f != null) {
|
|
2074
|
+
writer.writeSint64String(
|
|
2075
|
+
1,
|
|
2076
|
+
f
|
|
2077
|
+
);
|
|
2078
|
+
}
|
|
2079
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
2080
|
+
if (f != null) {
|
|
2081
|
+
writer.writeString(
|
|
2082
|
+
2,
|
|
2083
|
+
f
|
|
2084
|
+
);
|
|
2085
|
+
}
|
|
2086
|
+
};
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* optional sint64 amount = 1;
|
|
2091
|
+
* @return {string}
|
|
2092
|
+
*/
|
|
2093
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.getAmount = function() {
|
|
2094
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* @param {string} value
|
|
2100
|
+
* @return {!proto.BinanceTransferMsg.BinanceCoin} returns this
|
|
2101
|
+
*/
|
|
2102
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.setAmount = function(value) {
|
|
2103
|
+
return jspb.Message.setField(this, 1, value);
|
|
2104
|
+
};
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* Clears the field making it undefined.
|
|
2109
|
+
* @return {!proto.BinanceTransferMsg.BinanceCoin} returns this
|
|
2110
|
+
*/
|
|
2111
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.clearAmount = function() {
|
|
2112
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Returns whether this field is set.
|
|
2118
|
+
* @return {boolean}
|
|
2119
|
+
*/
|
|
2120
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.hasAmount = function() {
|
|
2121
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2122
|
+
};
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
/**
|
|
2126
|
+
* optional string denom = 2;
|
|
2127
|
+
* @return {string}
|
|
2128
|
+
*/
|
|
2129
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.getDenom = function() {
|
|
2130
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2131
|
+
};
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* @param {string} value
|
|
2136
|
+
* @return {!proto.BinanceTransferMsg.BinanceCoin} returns this
|
|
2137
|
+
*/
|
|
2138
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.setDenom = function(value) {
|
|
2139
|
+
return jspb.Message.setField(this, 2, value);
|
|
2140
|
+
};
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Clears the field making it undefined.
|
|
2145
|
+
* @return {!proto.BinanceTransferMsg.BinanceCoin} returns this
|
|
2146
|
+
*/
|
|
2147
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.clearDenom = function() {
|
|
2148
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2149
|
+
};
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* Returns whether this field is set.
|
|
2154
|
+
* @return {boolean}
|
|
2155
|
+
*/
|
|
2156
|
+
proto.BinanceTransferMsg.BinanceCoin.prototype.hasDenom = function() {
|
|
2157
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* repeated BinanceInputOutput inputs = 1;
|
|
2163
|
+
* @return {!Array<!proto.BinanceTransferMsg.BinanceInputOutput>}
|
|
2164
|
+
*/
|
|
2165
|
+
proto.BinanceTransferMsg.prototype.getInputsList = function() {
|
|
2166
|
+
return /** @type{!Array<!proto.BinanceTransferMsg.BinanceInputOutput>} */ (
|
|
2167
|
+
jspb.Message.getRepeatedWrapperField(this, proto.BinanceTransferMsg.BinanceInputOutput, 1));
|
|
2168
|
+
};
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* @param {!Array<!proto.BinanceTransferMsg.BinanceInputOutput>} value
|
|
2173
|
+
* @return {!proto.BinanceTransferMsg} returns this
|
|
2174
|
+
*/
|
|
2175
|
+
proto.BinanceTransferMsg.prototype.setInputsList = function(value) {
|
|
2176
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2177
|
+
};
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* @param {!proto.BinanceTransferMsg.BinanceInputOutput=} opt_value
|
|
2182
|
+
* @param {number=} opt_index
|
|
2183
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput}
|
|
2184
|
+
*/
|
|
2185
|
+
proto.BinanceTransferMsg.prototype.addInputs = function(opt_value, opt_index) {
|
|
2186
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BinanceTransferMsg.BinanceInputOutput, opt_index);
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* Clears the list making it empty but non-null.
|
|
2192
|
+
* @return {!proto.BinanceTransferMsg} returns this
|
|
2193
|
+
*/
|
|
2194
|
+
proto.BinanceTransferMsg.prototype.clearInputsList = function() {
|
|
2195
|
+
return this.setInputsList([]);
|
|
2196
|
+
};
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* repeated BinanceInputOutput outputs = 2;
|
|
2201
|
+
* @return {!Array<!proto.BinanceTransferMsg.BinanceInputOutput>}
|
|
2202
|
+
*/
|
|
2203
|
+
proto.BinanceTransferMsg.prototype.getOutputsList = function() {
|
|
2204
|
+
return /** @type{!Array<!proto.BinanceTransferMsg.BinanceInputOutput>} */ (
|
|
2205
|
+
jspb.Message.getRepeatedWrapperField(this, proto.BinanceTransferMsg.BinanceInputOutput, 2));
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* @param {!Array<!proto.BinanceTransferMsg.BinanceInputOutput>} value
|
|
2211
|
+
* @return {!proto.BinanceTransferMsg} returns this
|
|
2212
|
+
*/
|
|
2213
|
+
proto.BinanceTransferMsg.prototype.setOutputsList = function(value) {
|
|
2214
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
2215
|
+
};
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* @param {!proto.BinanceTransferMsg.BinanceInputOutput=} opt_value
|
|
2220
|
+
* @param {number=} opt_index
|
|
2221
|
+
* @return {!proto.BinanceTransferMsg.BinanceInputOutput}
|
|
2222
|
+
*/
|
|
2223
|
+
proto.BinanceTransferMsg.prototype.addOutputs = function(opt_value, opt_index) {
|
|
2224
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.BinanceTransferMsg.BinanceInputOutput, opt_index);
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Clears the list making it empty but non-null.
|
|
2230
|
+
* @return {!proto.BinanceTransferMsg} returns this
|
|
2231
|
+
*/
|
|
2232
|
+
proto.BinanceTransferMsg.prototype.clearOutputsList = function() {
|
|
2233
|
+
return this.setOutputsList([]);
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2241
|
+
/**
|
|
2242
|
+
* Creates an object representation of this proto.
|
|
2243
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2244
|
+
* Optional fields that are not set will be set to undefined.
|
|
2245
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2246
|
+
* For the list of reserved names please see:
|
|
2247
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2248
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2249
|
+
* JSPB instance for transitional soy proto support:
|
|
2250
|
+
* http://goto/soy-param-migration
|
|
2251
|
+
* @return {!Object}
|
|
2252
|
+
*/
|
|
2253
|
+
proto.BinanceOrderMsg.prototype.toObject = function(opt_includeInstance) {
|
|
2254
|
+
return proto.BinanceOrderMsg.toObject(opt_includeInstance, this);
|
|
2255
|
+
};
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* Static version of the {@see toObject} method.
|
|
2260
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2261
|
+
* the JSPB instance for transitional soy proto support:
|
|
2262
|
+
* http://goto/soy-param-migration
|
|
2263
|
+
* @param {!proto.BinanceOrderMsg} msg The msg instance to transform.
|
|
2264
|
+
* @return {!Object}
|
|
2265
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2266
|
+
*/
|
|
2267
|
+
proto.BinanceOrderMsg.toObject = function(includeInstance, msg) {
|
|
2268
|
+
var f, obj = {
|
|
2269
|
+
id: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
2270
|
+
ordertype: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
|
2271
|
+
price: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
2272
|
+
quantity: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
|
|
2273
|
+
sender: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
|
2274
|
+
side: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
|
2275
|
+
symbol: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
|
2276
|
+
timeinforce: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
if (includeInstance) {
|
|
2280
|
+
obj.$jspbMessageInstance = msg;
|
|
2281
|
+
}
|
|
2282
|
+
return obj;
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2289
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2290
|
+
* @return {!proto.BinanceOrderMsg}
|
|
2291
|
+
*/
|
|
2292
|
+
proto.BinanceOrderMsg.deserializeBinary = function(bytes) {
|
|
2293
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2294
|
+
var msg = new proto.BinanceOrderMsg;
|
|
2295
|
+
return proto.BinanceOrderMsg.deserializeBinaryFromReader(msg, reader);
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2301
|
+
* given reader into the given message object.
|
|
2302
|
+
* @param {!proto.BinanceOrderMsg} msg The message object to deserialize into.
|
|
2303
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2304
|
+
* @return {!proto.BinanceOrderMsg}
|
|
2305
|
+
*/
|
|
2306
|
+
proto.BinanceOrderMsg.deserializeBinaryFromReader = function(msg, reader) {
|
|
2307
|
+
while (reader.nextField()) {
|
|
2308
|
+
if (reader.isEndGroup()) {
|
|
2309
|
+
break;
|
|
2310
|
+
}
|
|
2311
|
+
var field = reader.getFieldNumber();
|
|
2312
|
+
switch (field) {
|
|
2313
|
+
case 1:
|
|
2314
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2315
|
+
msg.setId(value);
|
|
2316
|
+
break;
|
|
2317
|
+
case 2:
|
|
2318
|
+
var value = /** @type {!proto.BinanceOrderMsg.BinanceOrderType} */ (reader.readEnum());
|
|
2319
|
+
msg.setOrdertype(value);
|
|
2320
|
+
break;
|
|
2321
|
+
case 3:
|
|
2322
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
2323
|
+
msg.setPrice(value);
|
|
2324
|
+
break;
|
|
2325
|
+
case 4:
|
|
2326
|
+
var value = /** @type {string} */ (reader.readSint64String());
|
|
2327
|
+
msg.setQuantity(value);
|
|
2328
|
+
break;
|
|
2329
|
+
case 5:
|
|
2330
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2331
|
+
msg.setSender(value);
|
|
2332
|
+
break;
|
|
2333
|
+
case 6:
|
|
2334
|
+
var value = /** @type {!proto.BinanceOrderMsg.BinanceOrderSide} */ (reader.readEnum());
|
|
2335
|
+
msg.setSide(value);
|
|
2336
|
+
break;
|
|
2337
|
+
case 7:
|
|
2338
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2339
|
+
msg.setSymbol(value);
|
|
2340
|
+
break;
|
|
2341
|
+
case 8:
|
|
2342
|
+
var value = /** @type {!proto.BinanceOrderMsg.BinanceTimeInForce} */ (reader.readEnum());
|
|
2343
|
+
msg.setTimeinforce(value);
|
|
2344
|
+
break;
|
|
2345
|
+
default:
|
|
2346
|
+
reader.skipField();
|
|
2347
|
+
break;
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
return msg;
|
|
2351
|
+
};
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2356
|
+
* @return {!Uint8Array}
|
|
2357
|
+
*/
|
|
2358
|
+
proto.BinanceOrderMsg.prototype.serializeBinary = function() {
|
|
2359
|
+
var writer = new jspb.BinaryWriter();
|
|
2360
|
+
proto.BinanceOrderMsg.serializeBinaryToWriter(this, writer);
|
|
2361
|
+
return writer.getResultBuffer();
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2367
|
+
* format), writing to the given BinaryWriter.
|
|
2368
|
+
* @param {!proto.BinanceOrderMsg} message
|
|
2369
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2370
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2371
|
+
*/
|
|
2372
|
+
proto.BinanceOrderMsg.serializeBinaryToWriter = function(message, writer) {
|
|
2373
|
+
var f = undefined;
|
|
2374
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
2375
|
+
if (f != null) {
|
|
2376
|
+
writer.writeString(
|
|
2377
|
+
1,
|
|
2378
|
+
f
|
|
2379
|
+
);
|
|
2380
|
+
}
|
|
2381
|
+
f = /** @type {!proto.BinanceOrderMsg.BinanceOrderType} */ (jspb.Message.getField(message, 2));
|
|
2382
|
+
if (f != null) {
|
|
2383
|
+
writer.writeEnum(
|
|
2384
|
+
2,
|
|
2385
|
+
f
|
|
2386
|
+
);
|
|
2387
|
+
}
|
|
2388
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
2389
|
+
if (f != null) {
|
|
2390
|
+
writer.writeSint64String(
|
|
2391
|
+
3,
|
|
2392
|
+
f
|
|
2393
|
+
);
|
|
2394
|
+
}
|
|
2395
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
2396
|
+
if (f != null) {
|
|
2397
|
+
writer.writeSint64String(
|
|
2398
|
+
4,
|
|
2399
|
+
f
|
|
2400
|
+
);
|
|
2401
|
+
}
|
|
2402
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
2403
|
+
if (f != null) {
|
|
2404
|
+
writer.writeString(
|
|
2405
|
+
5,
|
|
2406
|
+
f
|
|
2407
|
+
);
|
|
2408
|
+
}
|
|
2409
|
+
f = /** @type {!proto.BinanceOrderMsg.BinanceOrderSide} */ (jspb.Message.getField(message, 6));
|
|
2410
|
+
if (f != null) {
|
|
2411
|
+
writer.writeEnum(
|
|
2412
|
+
6,
|
|
2413
|
+
f
|
|
2414
|
+
);
|
|
2415
|
+
}
|
|
2416
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
2417
|
+
if (f != null) {
|
|
2418
|
+
writer.writeString(
|
|
2419
|
+
7,
|
|
2420
|
+
f
|
|
2421
|
+
);
|
|
2422
|
+
}
|
|
2423
|
+
f = /** @type {!proto.BinanceOrderMsg.BinanceTimeInForce} */ (jspb.Message.getField(message, 8));
|
|
2424
|
+
if (f != null) {
|
|
2425
|
+
writer.writeEnum(
|
|
2426
|
+
8,
|
|
2427
|
+
f
|
|
2428
|
+
);
|
|
2429
|
+
}
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* @enum {number}
|
|
2435
|
+
*/
|
|
2436
|
+
proto.BinanceOrderMsg.BinanceOrderType = {
|
|
2437
|
+
OT_UNKNOWN: 0,
|
|
2438
|
+
MARKET: 1,
|
|
2439
|
+
LIMIT: 2,
|
|
2440
|
+
OT_RESERVED: 3
|
|
2441
|
+
};
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* @enum {number}
|
|
2445
|
+
*/
|
|
2446
|
+
proto.BinanceOrderMsg.BinanceOrderSide = {
|
|
2447
|
+
SIDE_UNKNOWN: 0,
|
|
2448
|
+
BUY: 1,
|
|
2449
|
+
SELL: 2
|
|
2450
|
+
};
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* @enum {number}
|
|
2454
|
+
*/
|
|
2455
|
+
proto.BinanceOrderMsg.BinanceTimeInForce = {
|
|
2456
|
+
TIF_UNKNOWN: 0,
|
|
2457
|
+
GTE: 1,
|
|
2458
|
+
TIF_RESERVED: 2,
|
|
2459
|
+
IOC: 3
|
|
2460
|
+
};
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* optional string id = 1;
|
|
2464
|
+
* @return {string}
|
|
2465
|
+
*/
|
|
2466
|
+
proto.BinanceOrderMsg.prototype.getId = function() {
|
|
2467
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* @param {string} value
|
|
2473
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2474
|
+
*/
|
|
2475
|
+
proto.BinanceOrderMsg.prototype.setId = function(value) {
|
|
2476
|
+
return jspb.Message.setField(this, 1, value);
|
|
2477
|
+
};
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Clears the field making it undefined.
|
|
2482
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2483
|
+
*/
|
|
2484
|
+
proto.BinanceOrderMsg.prototype.clearId = function() {
|
|
2485
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
2486
|
+
};
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* Returns whether this field is set.
|
|
2491
|
+
* @return {boolean}
|
|
2492
|
+
*/
|
|
2493
|
+
proto.BinanceOrderMsg.prototype.hasId = function() {
|
|
2494
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2497
|
+
|
|
2498
|
+
/**
|
|
2499
|
+
* optional BinanceOrderType ordertype = 2;
|
|
2500
|
+
* @return {!proto.BinanceOrderMsg.BinanceOrderType}
|
|
2501
|
+
*/
|
|
2502
|
+
proto.BinanceOrderMsg.prototype.getOrdertype = function() {
|
|
2503
|
+
return /** @type {!proto.BinanceOrderMsg.BinanceOrderType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2504
|
+
};
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* @param {!proto.BinanceOrderMsg.BinanceOrderType} value
|
|
2509
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2510
|
+
*/
|
|
2511
|
+
proto.BinanceOrderMsg.prototype.setOrdertype = function(value) {
|
|
2512
|
+
return jspb.Message.setField(this, 2, value);
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
/**
|
|
2517
|
+
* Clears the field making it undefined.
|
|
2518
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2519
|
+
*/
|
|
2520
|
+
proto.BinanceOrderMsg.prototype.clearOrdertype = function() {
|
|
2521
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2522
|
+
};
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* Returns whether this field is set.
|
|
2527
|
+
* @return {boolean}
|
|
2528
|
+
*/
|
|
2529
|
+
proto.BinanceOrderMsg.prototype.hasOrdertype = function() {
|
|
2530
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2531
|
+
};
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* optional sint64 price = 3;
|
|
2536
|
+
* @return {string}
|
|
2537
|
+
*/
|
|
2538
|
+
proto.BinanceOrderMsg.prototype.getPrice = function() {
|
|
2539
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0"));
|
|
2540
|
+
};
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* @param {string} value
|
|
2545
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2546
|
+
*/
|
|
2547
|
+
proto.BinanceOrderMsg.prototype.setPrice = function(value) {
|
|
2548
|
+
return jspb.Message.setField(this, 3, value);
|
|
2549
|
+
};
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* Clears the field making it undefined.
|
|
2554
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2555
|
+
*/
|
|
2556
|
+
proto.BinanceOrderMsg.prototype.clearPrice = function() {
|
|
2557
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
2558
|
+
};
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* Returns whether this field is set.
|
|
2563
|
+
* @return {boolean}
|
|
2564
|
+
*/
|
|
2565
|
+
proto.BinanceOrderMsg.prototype.hasPrice = function() {
|
|
2566
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* optional sint64 quantity = 4;
|
|
2572
|
+
* @return {string}
|
|
2573
|
+
*/
|
|
2574
|
+
proto.BinanceOrderMsg.prototype.getQuantity = function() {
|
|
2575
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0"));
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* @param {string} value
|
|
2581
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2582
|
+
*/
|
|
2583
|
+
proto.BinanceOrderMsg.prototype.setQuantity = function(value) {
|
|
2584
|
+
return jspb.Message.setField(this, 4, value);
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Clears the field making it undefined.
|
|
2590
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2591
|
+
*/
|
|
2592
|
+
proto.BinanceOrderMsg.prototype.clearQuantity = function() {
|
|
2593
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
2594
|
+
};
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
* Returns whether this field is set.
|
|
2599
|
+
* @return {boolean}
|
|
2600
|
+
*/
|
|
2601
|
+
proto.BinanceOrderMsg.prototype.hasQuantity = function() {
|
|
2602
|
+
return jspb.Message.getField(this, 4) != null;
|
|
2603
|
+
};
|
|
2604
|
+
|
|
2605
|
+
|
|
2606
|
+
/**
|
|
2607
|
+
* optional string sender = 5;
|
|
2608
|
+
* @return {string}
|
|
2609
|
+
*/
|
|
2610
|
+
proto.BinanceOrderMsg.prototype.getSender = function() {
|
|
2611
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* @param {string} value
|
|
2617
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2618
|
+
*/
|
|
2619
|
+
proto.BinanceOrderMsg.prototype.setSender = function(value) {
|
|
2620
|
+
return jspb.Message.setField(this, 5, value);
|
|
2621
|
+
};
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
/**
|
|
2625
|
+
* Clears the field making it undefined.
|
|
2626
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2627
|
+
*/
|
|
2628
|
+
proto.BinanceOrderMsg.prototype.clearSender = function() {
|
|
2629
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
2630
|
+
};
|
|
2631
|
+
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* Returns whether this field is set.
|
|
2635
|
+
* @return {boolean}
|
|
2636
|
+
*/
|
|
2637
|
+
proto.BinanceOrderMsg.prototype.hasSender = function() {
|
|
2638
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* optional BinanceOrderSide side = 6;
|
|
2644
|
+
* @return {!proto.BinanceOrderMsg.BinanceOrderSide}
|
|
2645
|
+
*/
|
|
2646
|
+
proto.BinanceOrderMsg.prototype.getSide = function() {
|
|
2647
|
+
return /** @type {!proto.BinanceOrderMsg.BinanceOrderSide} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* @param {!proto.BinanceOrderMsg.BinanceOrderSide} value
|
|
2653
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2654
|
+
*/
|
|
2655
|
+
proto.BinanceOrderMsg.prototype.setSide = function(value) {
|
|
2656
|
+
return jspb.Message.setField(this, 6, value);
|
|
2657
|
+
};
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* Clears the field making it undefined.
|
|
2662
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2663
|
+
*/
|
|
2664
|
+
proto.BinanceOrderMsg.prototype.clearSide = function() {
|
|
2665
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
2666
|
+
};
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* Returns whether this field is set.
|
|
2671
|
+
* @return {boolean}
|
|
2672
|
+
*/
|
|
2673
|
+
proto.BinanceOrderMsg.prototype.hasSide = function() {
|
|
2674
|
+
return jspb.Message.getField(this, 6) != null;
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* optional string symbol = 7;
|
|
2680
|
+
* @return {string}
|
|
2681
|
+
*/
|
|
2682
|
+
proto.BinanceOrderMsg.prototype.getSymbol = function() {
|
|
2683
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* @param {string} value
|
|
2689
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2690
|
+
*/
|
|
2691
|
+
proto.BinanceOrderMsg.prototype.setSymbol = function(value) {
|
|
2692
|
+
return jspb.Message.setField(this, 7, value);
|
|
2693
|
+
};
|
|
2694
|
+
|
|
2695
|
+
|
|
2696
|
+
/**
|
|
2697
|
+
* Clears the field making it undefined.
|
|
2698
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2699
|
+
*/
|
|
2700
|
+
proto.BinanceOrderMsg.prototype.clearSymbol = function() {
|
|
2701
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
2702
|
+
};
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* Returns whether this field is set.
|
|
2707
|
+
* @return {boolean}
|
|
2708
|
+
*/
|
|
2709
|
+
proto.BinanceOrderMsg.prototype.hasSymbol = function() {
|
|
2710
|
+
return jspb.Message.getField(this, 7) != null;
|
|
2711
|
+
};
|
|
2712
|
+
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* optional BinanceTimeInForce timeinforce = 8;
|
|
2716
|
+
* @return {!proto.BinanceOrderMsg.BinanceTimeInForce}
|
|
2717
|
+
*/
|
|
2718
|
+
proto.BinanceOrderMsg.prototype.getTimeinforce = function() {
|
|
2719
|
+
return /** @type {!proto.BinanceOrderMsg.BinanceTimeInForce} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* @param {!proto.BinanceOrderMsg.BinanceTimeInForce} value
|
|
2725
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2726
|
+
*/
|
|
2727
|
+
proto.BinanceOrderMsg.prototype.setTimeinforce = function(value) {
|
|
2728
|
+
return jspb.Message.setField(this, 8, value);
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* Clears the field making it undefined.
|
|
2734
|
+
* @return {!proto.BinanceOrderMsg} returns this
|
|
2735
|
+
*/
|
|
2736
|
+
proto.BinanceOrderMsg.prototype.clearTimeinforce = function() {
|
|
2737
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* Returns whether this field is set.
|
|
2743
|
+
* @return {boolean}
|
|
2744
|
+
*/
|
|
2745
|
+
proto.BinanceOrderMsg.prototype.hasTimeinforce = function() {
|
|
2746
|
+
return jspb.Message.getField(this, 8) != null;
|
|
2747
|
+
};
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2754
|
+
/**
|
|
2755
|
+
* Creates an object representation of this proto.
|
|
2756
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2757
|
+
* Optional fields that are not set will be set to undefined.
|
|
2758
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2759
|
+
* For the list of reserved names please see:
|
|
2760
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2761
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2762
|
+
* JSPB instance for transitional soy proto support:
|
|
2763
|
+
* http://goto/soy-param-migration
|
|
2764
|
+
* @return {!Object}
|
|
2765
|
+
*/
|
|
2766
|
+
proto.BinanceCancelMsg.prototype.toObject = function(opt_includeInstance) {
|
|
2767
|
+
return proto.BinanceCancelMsg.toObject(opt_includeInstance, this);
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
|
|
2771
|
+
/**
|
|
2772
|
+
* Static version of the {@see toObject} method.
|
|
2773
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2774
|
+
* the JSPB instance for transitional soy proto support:
|
|
2775
|
+
* http://goto/soy-param-migration
|
|
2776
|
+
* @param {!proto.BinanceCancelMsg} msg The msg instance to transform.
|
|
2777
|
+
* @return {!Object}
|
|
2778
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2779
|
+
*/
|
|
2780
|
+
proto.BinanceCancelMsg.toObject = function(includeInstance, msg) {
|
|
2781
|
+
var f, obj = {
|
|
2782
|
+
refid: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
2783
|
+
sender: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
|
2784
|
+
symbol: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
|
2785
|
+
};
|
|
2786
|
+
|
|
2787
|
+
if (includeInstance) {
|
|
2788
|
+
obj.$jspbMessageInstance = msg;
|
|
2789
|
+
}
|
|
2790
|
+
return obj;
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
/**
|
|
2796
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2797
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2798
|
+
* @return {!proto.BinanceCancelMsg}
|
|
2799
|
+
*/
|
|
2800
|
+
proto.BinanceCancelMsg.deserializeBinary = function(bytes) {
|
|
2801
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2802
|
+
var msg = new proto.BinanceCancelMsg;
|
|
2803
|
+
return proto.BinanceCancelMsg.deserializeBinaryFromReader(msg, reader);
|
|
2804
|
+
};
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
/**
|
|
2808
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2809
|
+
* given reader into the given message object.
|
|
2810
|
+
* @param {!proto.BinanceCancelMsg} msg The message object to deserialize into.
|
|
2811
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2812
|
+
* @return {!proto.BinanceCancelMsg}
|
|
2813
|
+
*/
|
|
2814
|
+
proto.BinanceCancelMsg.deserializeBinaryFromReader = function(msg, reader) {
|
|
2815
|
+
while (reader.nextField()) {
|
|
2816
|
+
if (reader.isEndGroup()) {
|
|
2817
|
+
break;
|
|
2818
|
+
}
|
|
2819
|
+
var field = reader.getFieldNumber();
|
|
2820
|
+
switch (field) {
|
|
2821
|
+
case 1:
|
|
2822
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2823
|
+
msg.setRefid(value);
|
|
2824
|
+
break;
|
|
2825
|
+
case 2:
|
|
2826
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2827
|
+
msg.setSender(value);
|
|
2828
|
+
break;
|
|
2829
|
+
case 3:
|
|
2830
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2831
|
+
msg.setSymbol(value);
|
|
2832
|
+
break;
|
|
2833
|
+
default:
|
|
2834
|
+
reader.skipField();
|
|
2835
|
+
break;
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
return msg;
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2844
|
+
* @return {!Uint8Array}
|
|
2845
|
+
*/
|
|
2846
|
+
proto.BinanceCancelMsg.prototype.serializeBinary = function() {
|
|
2847
|
+
var writer = new jspb.BinaryWriter();
|
|
2848
|
+
proto.BinanceCancelMsg.serializeBinaryToWriter(this, writer);
|
|
2849
|
+
return writer.getResultBuffer();
|
|
2850
|
+
};
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2855
|
+
* format), writing to the given BinaryWriter.
|
|
2856
|
+
* @param {!proto.BinanceCancelMsg} message
|
|
2857
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2858
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2859
|
+
*/
|
|
2860
|
+
proto.BinanceCancelMsg.serializeBinaryToWriter = function(message, writer) {
|
|
2861
|
+
var f = undefined;
|
|
2862
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
2863
|
+
if (f != null) {
|
|
2864
|
+
writer.writeString(
|
|
2865
|
+
1,
|
|
2866
|
+
f
|
|
2867
|
+
);
|
|
2868
|
+
}
|
|
2869
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
2870
|
+
if (f != null) {
|
|
2871
|
+
writer.writeString(
|
|
2872
|
+
2,
|
|
2873
|
+
f
|
|
2874
|
+
);
|
|
2875
|
+
}
|
|
2876
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
2877
|
+
if (f != null) {
|
|
2878
|
+
writer.writeString(
|
|
2879
|
+
3,
|
|
2880
|
+
f
|
|
2881
|
+
);
|
|
2882
|
+
}
|
|
2883
|
+
};
|
|
2884
|
+
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* optional string refid = 1;
|
|
2888
|
+
* @return {string}
|
|
2889
|
+
*/
|
|
2890
|
+
proto.BinanceCancelMsg.prototype.getRefid = function() {
|
|
2891
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2894
|
+
|
|
2895
|
+
/**
|
|
2896
|
+
* @param {string} value
|
|
2897
|
+
* @return {!proto.BinanceCancelMsg} returns this
|
|
2898
|
+
*/
|
|
2899
|
+
proto.BinanceCancelMsg.prototype.setRefid = function(value) {
|
|
2900
|
+
return jspb.Message.setField(this, 1, value);
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2903
|
+
|
|
2904
|
+
/**
|
|
2905
|
+
* Clears the field making it undefined.
|
|
2906
|
+
* @return {!proto.BinanceCancelMsg} returns this
|
|
2907
|
+
*/
|
|
2908
|
+
proto.BinanceCancelMsg.prototype.clearRefid = function() {
|
|
2909
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
2910
|
+
};
|
|
2911
|
+
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* Returns whether this field is set.
|
|
2915
|
+
* @return {boolean}
|
|
2916
|
+
*/
|
|
2917
|
+
proto.BinanceCancelMsg.prototype.hasRefid = function() {
|
|
2918
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2919
|
+
};
|
|
2920
|
+
|
|
2921
|
+
|
|
2922
|
+
/**
|
|
2923
|
+
* optional string sender = 2;
|
|
2924
|
+
* @return {string}
|
|
2925
|
+
*/
|
|
2926
|
+
proto.BinanceCancelMsg.prototype.getSender = function() {
|
|
2927
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2928
|
+
};
|
|
2929
|
+
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* @param {string} value
|
|
2933
|
+
* @return {!proto.BinanceCancelMsg} returns this
|
|
2934
|
+
*/
|
|
2935
|
+
proto.BinanceCancelMsg.prototype.setSender = function(value) {
|
|
2936
|
+
return jspb.Message.setField(this, 2, value);
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
/**
|
|
2941
|
+
* Clears the field making it undefined.
|
|
2942
|
+
* @return {!proto.BinanceCancelMsg} returns this
|
|
2943
|
+
*/
|
|
2944
|
+
proto.BinanceCancelMsg.prototype.clearSender = function() {
|
|
2945
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2946
|
+
};
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
/**
|
|
2950
|
+
* Returns whether this field is set.
|
|
2951
|
+
* @return {boolean}
|
|
2952
|
+
*/
|
|
2953
|
+
proto.BinanceCancelMsg.prototype.hasSender = function() {
|
|
2954
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2955
|
+
};
|
|
2956
|
+
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* optional string symbol = 3;
|
|
2960
|
+
* @return {string}
|
|
2961
|
+
*/
|
|
2962
|
+
proto.BinanceCancelMsg.prototype.getSymbol = function() {
|
|
2963
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2964
|
+
};
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* @param {string} value
|
|
2969
|
+
* @return {!proto.BinanceCancelMsg} returns this
|
|
2970
|
+
*/
|
|
2971
|
+
proto.BinanceCancelMsg.prototype.setSymbol = function(value) {
|
|
2972
|
+
return jspb.Message.setField(this, 3, value);
|
|
2973
|
+
};
|
|
2974
|
+
|
|
2975
|
+
|
|
2976
|
+
/**
|
|
2977
|
+
* Clears the field making it undefined.
|
|
2978
|
+
* @return {!proto.BinanceCancelMsg} returns this
|
|
2979
|
+
*/
|
|
2980
|
+
proto.BinanceCancelMsg.prototype.clearSymbol = function() {
|
|
2981
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
/**
|
|
2986
|
+
* Returns whether this field is set.
|
|
2987
|
+
* @return {boolean}
|
|
2988
|
+
*/
|
|
2989
|
+
proto.BinanceCancelMsg.prototype.hasSymbol = function() {
|
|
2990
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2991
|
+
};
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2998
|
+
/**
|
|
2999
|
+
* Creates an object representation of this proto.
|
|
3000
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3001
|
+
* Optional fields that are not set will be set to undefined.
|
|
3002
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3003
|
+
* For the list of reserved names please see:
|
|
3004
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3005
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3006
|
+
* JSPB instance for transitional soy proto support:
|
|
3007
|
+
* http://goto/soy-param-migration
|
|
3008
|
+
* @return {!Object}
|
|
3009
|
+
*/
|
|
3010
|
+
proto.BinanceSignedTx.prototype.toObject = function(opt_includeInstance) {
|
|
3011
|
+
return proto.BinanceSignedTx.toObject(opt_includeInstance, this);
|
|
3012
|
+
};
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
/**
|
|
3016
|
+
* Static version of the {@see toObject} method.
|
|
3017
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3018
|
+
* the JSPB instance for transitional soy proto support:
|
|
3019
|
+
* http://goto/soy-param-migration
|
|
3020
|
+
* @param {!proto.BinanceSignedTx} msg The msg instance to transform.
|
|
3021
|
+
* @return {!Object}
|
|
3022
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3023
|
+
*/
|
|
3024
|
+
proto.BinanceSignedTx.toObject = function(includeInstance, msg) {
|
|
3025
|
+
var f, obj = {
|
|
3026
|
+
signature: msg.getSignature_asB64(),
|
|
3027
|
+
publicKey: msg.getPublicKey_asB64()
|
|
3028
|
+
};
|
|
3029
|
+
|
|
3030
|
+
if (includeInstance) {
|
|
3031
|
+
obj.$jspbMessageInstance = msg;
|
|
3032
|
+
}
|
|
3033
|
+
return obj;
|
|
3034
|
+
};
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3040
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3041
|
+
* @return {!proto.BinanceSignedTx}
|
|
3042
|
+
*/
|
|
3043
|
+
proto.BinanceSignedTx.deserializeBinary = function(bytes) {
|
|
3044
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3045
|
+
var msg = new proto.BinanceSignedTx;
|
|
3046
|
+
return proto.BinanceSignedTx.deserializeBinaryFromReader(msg, reader);
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
/**
|
|
3051
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3052
|
+
* given reader into the given message object.
|
|
3053
|
+
* @param {!proto.BinanceSignedTx} msg The message object to deserialize into.
|
|
3054
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3055
|
+
* @return {!proto.BinanceSignedTx}
|
|
3056
|
+
*/
|
|
3057
|
+
proto.BinanceSignedTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
3058
|
+
while (reader.nextField()) {
|
|
3059
|
+
if (reader.isEndGroup()) {
|
|
3060
|
+
break;
|
|
3061
|
+
}
|
|
3062
|
+
var field = reader.getFieldNumber();
|
|
3063
|
+
switch (field) {
|
|
3064
|
+
case 1:
|
|
3065
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
3066
|
+
msg.setSignature(value);
|
|
3067
|
+
break;
|
|
3068
|
+
case 2:
|
|
3069
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
3070
|
+
msg.setPublicKey(value);
|
|
3071
|
+
break;
|
|
3072
|
+
default:
|
|
3073
|
+
reader.skipField();
|
|
3074
|
+
break;
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
return msg;
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3083
|
+
* @return {!Uint8Array}
|
|
3084
|
+
*/
|
|
3085
|
+
proto.BinanceSignedTx.prototype.serializeBinary = function() {
|
|
3086
|
+
var writer = new jspb.BinaryWriter();
|
|
3087
|
+
proto.BinanceSignedTx.serializeBinaryToWriter(this, writer);
|
|
3088
|
+
return writer.getResultBuffer();
|
|
3089
|
+
};
|
|
3090
|
+
|
|
3091
|
+
|
|
3092
|
+
/**
|
|
3093
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3094
|
+
* format), writing to the given BinaryWriter.
|
|
3095
|
+
* @param {!proto.BinanceSignedTx} message
|
|
3096
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3097
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3098
|
+
*/
|
|
3099
|
+
proto.BinanceSignedTx.serializeBinaryToWriter = function(message, writer) {
|
|
3100
|
+
var f = undefined;
|
|
3101
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
|
|
3102
|
+
if (f != null) {
|
|
3103
|
+
writer.writeBytes(
|
|
3104
|
+
1,
|
|
3105
|
+
f
|
|
3106
|
+
);
|
|
3107
|
+
}
|
|
3108
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
3109
|
+
if (f != null) {
|
|
3110
|
+
writer.writeBytes(
|
|
3111
|
+
2,
|
|
3112
|
+
f
|
|
3113
|
+
);
|
|
3114
|
+
}
|
|
3115
|
+
};
|
|
3116
|
+
|
|
3117
|
+
|
|
3118
|
+
/**
|
|
3119
|
+
* optional bytes signature = 1;
|
|
3120
|
+
* @return {!(string|Uint8Array)}
|
|
3121
|
+
*/
|
|
3122
|
+
proto.BinanceSignedTx.prototype.getSignature = function() {
|
|
3123
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3124
|
+
};
|
|
3125
|
+
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
* optional bytes signature = 1;
|
|
3129
|
+
* This is a type-conversion wrapper around `getSignature()`
|
|
3130
|
+
* @return {string}
|
|
3131
|
+
*/
|
|
3132
|
+
proto.BinanceSignedTx.prototype.getSignature_asB64 = function() {
|
|
3133
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
3134
|
+
this.getSignature()));
|
|
3135
|
+
};
|
|
3136
|
+
|
|
3137
|
+
|
|
3138
|
+
/**
|
|
3139
|
+
* optional bytes signature = 1;
|
|
3140
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
3141
|
+
* @see http://caniuse.com/Uint8Array
|
|
3142
|
+
* This is a type-conversion wrapper around `getSignature()`
|
|
3143
|
+
* @return {!Uint8Array}
|
|
3144
|
+
*/
|
|
3145
|
+
proto.BinanceSignedTx.prototype.getSignature_asU8 = function() {
|
|
3146
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
3147
|
+
this.getSignature()));
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
/**
|
|
3152
|
+
* @param {!(string|Uint8Array)} value
|
|
3153
|
+
* @return {!proto.BinanceSignedTx} returns this
|
|
3154
|
+
*/
|
|
3155
|
+
proto.BinanceSignedTx.prototype.setSignature = function(value) {
|
|
3156
|
+
return jspb.Message.setField(this, 1, value);
|
|
3157
|
+
};
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
/**
|
|
3161
|
+
* Clears the field making it undefined.
|
|
3162
|
+
* @return {!proto.BinanceSignedTx} returns this
|
|
3163
|
+
*/
|
|
3164
|
+
proto.BinanceSignedTx.prototype.clearSignature = function() {
|
|
3165
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
3166
|
+
};
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* Returns whether this field is set.
|
|
3171
|
+
* @return {boolean}
|
|
3172
|
+
*/
|
|
3173
|
+
proto.BinanceSignedTx.prototype.hasSignature = function() {
|
|
3174
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3175
|
+
};
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* optional bytes public_key = 2;
|
|
3180
|
+
* @return {!(string|Uint8Array)}
|
|
3181
|
+
*/
|
|
3182
|
+
proto.BinanceSignedTx.prototype.getPublicKey = function() {
|
|
3183
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3184
|
+
};
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
/**
|
|
3188
|
+
* optional bytes public_key = 2;
|
|
3189
|
+
* This is a type-conversion wrapper around `getPublicKey()`
|
|
3190
|
+
* @return {string}
|
|
3191
|
+
*/
|
|
3192
|
+
proto.BinanceSignedTx.prototype.getPublicKey_asB64 = function() {
|
|
3193
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
3194
|
+
this.getPublicKey()));
|
|
3195
|
+
};
|
|
3196
|
+
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* optional bytes public_key = 2;
|
|
3200
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
3201
|
+
* @see http://caniuse.com/Uint8Array
|
|
3202
|
+
* This is a type-conversion wrapper around `getPublicKey()`
|
|
3203
|
+
* @return {!Uint8Array}
|
|
3204
|
+
*/
|
|
3205
|
+
proto.BinanceSignedTx.prototype.getPublicKey_asU8 = function() {
|
|
3206
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
3207
|
+
this.getPublicKey()));
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* @param {!(string|Uint8Array)} value
|
|
3213
|
+
* @return {!proto.BinanceSignedTx} returns this
|
|
3214
|
+
*/
|
|
3215
|
+
proto.BinanceSignedTx.prototype.setPublicKey = function(value) {
|
|
3216
|
+
return jspb.Message.setField(this, 2, value);
|
|
3217
|
+
};
|
|
3218
|
+
|
|
3219
|
+
|
|
3220
|
+
/**
|
|
3221
|
+
* Clears the field making it undefined.
|
|
3222
|
+
* @return {!proto.BinanceSignedTx} returns this
|
|
3223
|
+
*/
|
|
3224
|
+
proto.BinanceSignedTx.prototype.clearPublicKey = function() {
|
|
3225
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
3226
|
+
};
|
|
3227
|
+
|
|
3228
|
+
|
|
3229
|
+
/**
|
|
3230
|
+
* Returns whether this field is set.
|
|
3231
|
+
* @return {boolean}
|
|
3232
|
+
*/
|
|
3233
|
+
proto.BinanceSignedTx.prototype.hasPublicKey = function() {
|
|
3234
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3235
|
+
};
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
goog.object.extend(exports, proto);
|