protobuf-platform 1.2.412 → 1.2.414
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/crypto/crypto.proto +111 -0
- package/crypto/crypto_grpc_pb.js +165 -0
- package/crypto/crypto_pb.js +3714 -0
- package/package.json +1 -1
- package/promocode/promocode.proto +3 -0
- package/promocode/promocode_pb.js +145 -1
package/crypto/crypto_pb.js
CHANGED
|
@@ -21,8 +21,20 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.crypto.CreateWithdrawalTransferRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.crypto.CreateWithdrawalTransferResponse', null, global);
|
|
26
|
+
goog.exportSymbol('proto.crypto.CryptoAssetItem', null, global);
|
|
27
|
+
goog.exportSymbol('proto.crypto.CryptoNetworkItem', null, global);
|
|
28
|
+
goog.exportSymbol('proto.crypto.GetDepositAddressRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.crypto.GetDepositAddressResponse', null, global);
|
|
24
30
|
goog.exportSymbol('proto.crypto.PingRequest', null, global);
|
|
25
31
|
goog.exportSymbol('proto.crypto.PongResponse', null, global);
|
|
32
|
+
goog.exportSymbol('proto.crypto.ReadListAssetsRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.crypto.ReadListAssetsResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.crypto.ReadListNetworksRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.crypto.ReadListNetworksResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.crypto.ReadWithdrawalTransferRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.crypto.ReadWithdrawalTransferResponse', null, global);
|
|
26
38
|
/**
|
|
27
39
|
* Generated by JsPbCodeGenerator.
|
|
28
40
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -65,6 +77,258 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
65
77
|
*/
|
|
66
78
|
proto.crypto.PongResponse.displayName = 'proto.crypto.PongResponse';
|
|
67
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Generated by JsPbCodeGenerator.
|
|
82
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
83
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
84
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
85
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
86
|
+
* valid.
|
|
87
|
+
* @extends {jspb.Message}
|
|
88
|
+
* @constructor
|
|
89
|
+
*/
|
|
90
|
+
proto.crypto.ReadListNetworksRequest = function(opt_data) {
|
|
91
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
92
|
+
};
|
|
93
|
+
goog.inherits(proto.crypto.ReadListNetworksRequest, jspb.Message);
|
|
94
|
+
if (goog.DEBUG && !COMPILED) {
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @override
|
|
98
|
+
*/
|
|
99
|
+
proto.crypto.ReadListNetworksRequest.displayName = 'proto.crypto.ReadListNetworksRequest';
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Generated by JsPbCodeGenerator.
|
|
103
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
104
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
105
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
106
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
107
|
+
* valid.
|
|
108
|
+
* @extends {jspb.Message}
|
|
109
|
+
* @constructor
|
|
110
|
+
*/
|
|
111
|
+
proto.crypto.CryptoNetworkItem = function(opt_data) {
|
|
112
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
113
|
+
};
|
|
114
|
+
goog.inherits(proto.crypto.CryptoNetworkItem, jspb.Message);
|
|
115
|
+
if (goog.DEBUG && !COMPILED) {
|
|
116
|
+
/**
|
|
117
|
+
* @public
|
|
118
|
+
* @override
|
|
119
|
+
*/
|
|
120
|
+
proto.crypto.CryptoNetworkItem.displayName = 'proto.crypto.CryptoNetworkItem';
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Generated by JsPbCodeGenerator.
|
|
124
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
125
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
126
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
127
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
128
|
+
* valid.
|
|
129
|
+
* @extends {jspb.Message}
|
|
130
|
+
* @constructor
|
|
131
|
+
*/
|
|
132
|
+
proto.crypto.ReadListNetworksResponse = function(opt_data) {
|
|
133
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.crypto.ReadListNetworksResponse.repeatedFields_, null);
|
|
134
|
+
};
|
|
135
|
+
goog.inherits(proto.crypto.ReadListNetworksResponse, jspb.Message);
|
|
136
|
+
if (goog.DEBUG && !COMPILED) {
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* @override
|
|
140
|
+
*/
|
|
141
|
+
proto.crypto.ReadListNetworksResponse.displayName = 'proto.crypto.ReadListNetworksResponse';
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Generated by JsPbCodeGenerator.
|
|
145
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
146
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
147
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
148
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
149
|
+
* valid.
|
|
150
|
+
* @extends {jspb.Message}
|
|
151
|
+
* @constructor
|
|
152
|
+
*/
|
|
153
|
+
proto.crypto.ReadListAssetsRequest = function(opt_data) {
|
|
154
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
155
|
+
};
|
|
156
|
+
goog.inherits(proto.crypto.ReadListAssetsRequest, jspb.Message);
|
|
157
|
+
if (goog.DEBUG && !COMPILED) {
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
* @override
|
|
161
|
+
*/
|
|
162
|
+
proto.crypto.ReadListAssetsRequest.displayName = 'proto.crypto.ReadListAssetsRequest';
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Generated by JsPbCodeGenerator.
|
|
166
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
167
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
168
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
169
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
170
|
+
* valid.
|
|
171
|
+
* @extends {jspb.Message}
|
|
172
|
+
* @constructor
|
|
173
|
+
*/
|
|
174
|
+
proto.crypto.CryptoAssetItem = function(opt_data) {
|
|
175
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
176
|
+
};
|
|
177
|
+
goog.inherits(proto.crypto.CryptoAssetItem, jspb.Message);
|
|
178
|
+
if (goog.DEBUG && !COMPILED) {
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
* @override
|
|
182
|
+
*/
|
|
183
|
+
proto.crypto.CryptoAssetItem.displayName = 'proto.crypto.CryptoAssetItem';
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Generated by JsPbCodeGenerator.
|
|
187
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
188
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
189
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
190
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
191
|
+
* valid.
|
|
192
|
+
* @extends {jspb.Message}
|
|
193
|
+
* @constructor
|
|
194
|
+
*/
|
|
195
|
+
proto.crypto.ReadListAssetsResponse = function(opt_data) {
|
|
196
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.crypto.ReadListAssetsResponse.repeatedFields_, null);
|
|
197
|
+
};
|
|
198
|
+
goog.inherits(proto.crypto.ReadListAssetsResponse, jspb.Message);
|
|
199
|
+
if (goog.DEBUG && !COMPILED) {
|
|
200
|
+
/**
|
|
201
|
+
* @public
|
|
202
|
+
* @override
|
|
203
|
+
*/
|
|
204
|
+
proto.crypto.ReadListAssetsResponse.displayName = 'proto.crypto.ReadListAssetsResponse';
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Generated by JsPbCodeGenerator.
|
|
208
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
209
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
210
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
211
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
212
|
+
* valid.
|
|
213
|
+
* @extends {jspb.Message}
|
|
214
|
+
* @constructor
|
|
215
|
+
*/
|
|
216
|
+
proto.crypto.GetDepositAddressRequest = function(opt_data) {
|
|
217
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
218
|
+
};
|
|
219
|
+
goog.inherits(proto.crypto.GetDepositAddressRequest, jspb.Message);
|
|
220
|
+
if (goog.DEBUG && !COMPILED) {
|
|
221
|
+
/**
|
|
222
|
+
* @public
|
|
223
|
+
* @override
|
|
224
|
+
*/
|
|
225
|
+
proto.crypto.GetDepositAddressRequest.displayName = 'proto.crypto.GetDepositAddressRequest';
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Generated by JsPbCodeGenerator.
|
|
229
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
230
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
231
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
232
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
233
|
+
* valid.
|
|
234
|
+
* @extends {jspb.Message}
|
|
235
|
+
* @constructor
|
|
236
|
+
*/
|
|
237
|
+
proto.crypto.GetDepositAddressResponse = function(opt_data) {
|
|
238
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
239
|
+
};
|
|
240
|
+
goog.inherits(proto.crypto.GetDepositAddressResponse, jspb.Message);
|
|
241
|
+
if (goog.DEBUG && !COMPILED) {
|
|
242
|
+
/**
|
|
243
|
+
* @public
|
|
244
|
+
* @override
|
|
245
|
+
*/
|
|
246
|
+
proto.crypto.GetDepositAddressResponse.displayName = 'proto.crypto.GetDepositAddressResponse';
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Generated by JsPbCodeGenerator.
|
|
250
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
251
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
252
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
253
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
254
|
+
* valid.
|
|
255
|
+
* @extends {jspb.Message}
|
|
256
|
+
* @constructor
|
|
257
|
+
*/
|
|
258
|
+
proto.crypto.CreateWithdrawalTransferRequest = function(opt_data) {
|
|
259
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
260
|
+
};
|
|
261
|
+
goog.inherits(proto.crypto.CreateWithdrawalTransferRequest, jspb.Message);
|
|
262
|
+
if (goog.DEBUG && !COMPILED) {
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
* @override
|
|
266
|
+
*/
|
|
267
|
+
proto.crypto.CreateWithdrawalTransferRequest.displayName = 'proto.crypto.CreateWithdrawalTransferRequest';
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Generated by JsPbCodeGenerator.
|
|
271
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
272
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
273
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
274
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
275
|
+
* valid.
|
|
276
|
+
* @extends {jspb.Message}
|
|
277
|
+
* @constructor
|
|
278
|
+
*/
|
|
279
|
+
proto.crypto.CreateWithdrawalTransferResponse = function(opt_data) {
|
|
280
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
281
|
+
};
|
|
282
|
+
goog.inherits(proto.crypto.CreateWithdrawalTransferResponse, jspb.Message);
|
|
283
|
+
if (goog.DEBUG && !COMPILED) {
|
|
284
|
+
/**
|
|
285
|
+
* @public
|
|
286
|
+
* @override
|
|
287
|
+
*/
|
|
288
|
+
proto.crypto.CreateWithdrawalTransferResponse.displayName = 'proto.crypto.CreateWithdrawalTransferResponse';
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Generated by JsPbCodeGenerator.
|
|
292
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
293
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
294
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
295
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
296
|
+
* valid.
|
|
297
|
+
* @extends {jspb.Message}
|
|
298
|
+
* @constructor
|
|
299
|
+
*/
|
|
300
|
+
proto.crypto.ReadWithdrawalTransferRequest = function(opt_data) {
|
|
301
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
302
|
+
};
|
|
303
|
+
goog.inherits(proto.crypto.ReadWithdrawalTransferRequest, jspb.Message);
|
|
304
|
+
if (goog.DEBUG && !COMPILED) {
|
|
305
|
+
/**
|
|
306
|
+
* @public
|
|
307
|
+
* @override
|
|
308
|
+
*/
|
|
309
|
+
proto.crypto.ReadWithdrawalTransferRequest.displayName = 'proto.crypto.ReadWithdrawalTransferRequest';
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Generated by JsPbCodeGenerator.
|
|
313
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
314
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
315
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
316
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
317
|
+
* valid.
|
|
318
|
+
* @extends {jspb.Message}
|
|
319
|
+
* @constructor
|
|
320
|
+
*/
|
|
321
|
+
proto.crypto.ReadWithdrawalTransferResponse = function(opt_data) {
|
|
322
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
323
|
+
};
|
|
324
|
+
goog.inherits(proto.crypto.ReadWithdrawalTransferResponse, jspb.Message);
|
|
325
|
+
if (goog.DEBUG && !COMPILED) {
|
|
326
|
+
/**
|
|
327
|
+
* @public
|
|
328
|
+
* @override
|
|
329
|
+
*/
|
|
330
|
+
proto.crypto.ReadWithdrawalTransferResponse.displayName = 'proto.crypto.ReadWithdrawalTransferResponse';
|
|
331
|
+
}
|
|
68
332
|
|
|
69
333
|
|
|
70
334
|
|
|
@@ -325,4 +589,3454 @@ proto.crypto.PongResponse.prototype.setPong = function(value) {
|
|
|
325
589
|
};
|
|
326
590
|
|
|
327
591
|
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
596
|
+
/**
|
|
597
|
+
* Creates an object representation of this proto.
|
|
598
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
599
|
+
* Optional fields that are not set will be set to undefined.
|
|
600
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
601
|
+
* For the list of reserved names please see:
|
|
602
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
603
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
604
|
+
* JSPB instance for transitional soy proto support:
|
|
605
|
+
* http://goto/soy-param-migration
|
|
606
|
+
* @return {!Object}
|
|
607
|
+
*/
|
|
608
|
+
proto.crypto.ReadListNetworksRequest.prototype.toObject = function(opt_includeInstance) {
|
|
609
|
+
return proto.crypto.ReadListNetworksRequest.toObject(opt_includeInstance, this);
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Static version of the {@see toObject} method.
|
|
615
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
616
|
+
* the JSPB instance for transitional soy proto support:
|
|
617
|
+
* http://goto/soy-param-migration
|
|
618
|
+
* @param {!proto.crypto.ReadListNetworksRequest} msg The msg instance to transform.
|
|
619
|
+
* @return {!Object}
|
|
620
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
621
|
+
*/
|
|
622
|
+
proto.crypto.ReadListNetworksRequest.toObject = function(includeInstance, msg) {
|
|
623
|
+
var f, obj = {
|
|
624
|
+
onlyActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
if (includeInstance) {
|
|
628
|
+
obj.$jspbMessageInstance = msg;
|
|
629
|
+
}
|
|
630
|
+
return obj;
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Deserializes binary data (in protobuf wire format).
|
|
637
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
638
|
+
* @return {!proto.crypto.ReadListNetworksRequest}
|
|
639
|
+
*/
|
|
640
|
+
proto.crypto.ReadListNetworksRequest.deserializeBinary = function(bytes) {
|
|
641
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
642
|
+
var msg = new proto.crypto.ReadListNetworksRequest;
|
|
643
|
+
return proto.crypto.ReadListNetworksRequest.deserializeBinaryFromReader(msg, reader);
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
649
|
+
* given reader into the given message object.
|
|
650
|
+
* @param {!proto.crypto.ReadListNetworksRequest} msg The message object to deserialize into.
|
|
651
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
652
|
+
* @return {!proto.crypto.ReadListNetworksRequest}
|
|
653
|
+
*/
|
|
654
|
+
proto.crypto.ReadListNetworksRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
655
|
+
while (reader.nextField()) {
|
|
656
|
+
if (reader.isEndGroup()) {
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
var field = reader.getFieldNumber();
|
|
660
|
+
switch (field) {
|
|
661
|
+
case 1:
|
|
662
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
663
|
+
msg.setOnlyActive(value);
|
|
664
|
+
break;
|
|
665
|
+
default:
|
|
666
|
+
reader.skipField();
|
|
667
|
+
break;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return msg;
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
676
|
+
* @return {!Uint8Array}
|
|
677
|
+
*/
|
|
678
|
+
proto.crypto.ReadListNetworksRequest.prototype.serializeBinary = function() {
|
|
679
|
+
var writer = new jspb.BinaryWriter();
|
|
680
|
+
proto.crypto.ReadListNetworksRequest.serializeBinaryToWriter(this, writer);
|
|
681
|
+
return writer.getResultBuffer();
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
687
|
+
* format), writing to the given BinaryWriter.
|
|
688
|
+
* @param {!proto.crypto.ReadListNetworksRequest} message
|
|
689
|
+
* @param {!jspb.BinaryWriter} writer
|
|
690
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
691
|
+
*/
|
|
692
|
+
proto.crypto.ReadListNetworksRequest.serializeBinaryToWriter = function(message, writer) {
|
|
693
|
+
var f = undefined;
|
|
694
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
|
|
695
|
+
if (f != null) {
|
|
696
|
+
writer.writeBool(
|
|
697
|
+
1,
|
|
698
|
+
f
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* optional bool only_active = 1;
|
|
706
|
+
* @return {boolean}
|
|
707
|
+
*/
|
|
708
|
+
proto.crypto.ReadListNetworksRequest.prototype.getOnlyActive = function() {
|
|
709
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* @param {boolean} value
|
|
715
|
+
* @return {!proto.crypto.ReadListNetworksRequest} returns this
|
|
716
|
+
*/
|
|
717
|
+
proto.crypto.ReadListNetworksRequest.prototype.setOnlyActive = function(value) {
|
|
718
|
+
return jspb.Message.setField(this, 1, value);
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Clears the field making it undefined.
|
|
724
|
+
* @return {!proto.crypto.ReadListNetworksRequest} returns this
|
|
725
|
+
*/
|
|
726
|
+
proto.crypto.ReadListNetworksRequest.prototype.clearOnlyActive = function() {
|
|
727
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Returns whether this field is set.
|
|
733
|
+
* @return {boolean}
|
|
734
|
+
*/
|
|
735
|
+
proto.crypto.ReadListNetworksRequest.prototype.hasOnlyActive = function() {
|
|
736
|
+
return jspb.Message.getField(this, 1) != null;
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
744
|
+
/**
|
|
745
|
+
* Creates an object representation of this proto.
|
|
746
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
747
|
+
* Optional fields that are not set will be set to undefined.
|
|
748
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
749
|
+
* For the list of reserved names please see:
|
|
750
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
751
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
752
|
+
* JSPB instance for transitional soy proto support:
|
|
753
|
+
* http://goto/soy-param-migration
|
|
754
|
+
* @return {!Object}
|
|
755
|
+
*/
|
|
756
|
+
proto.crypto.CryptoNetworkItem.prototype.toObject = function(opt_includeInstance) {
|
|
757
|
+
return proto.crypto.CryptoNetworkItem.toObject(opt_includeInstance, this);
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Static version of the {@see toObject} method.
|
|
763
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
764
|
+
* the JSPB instance for transitional soy proto support:
|
|
765
|
+
* http://goto/soy-param-migration
|
|
766
|
+
* @param {!proto.crypto.CryptoNetworkItem} msg The msg instance to transform.
|
|
767
|
+
* @return {!Object}
|
|
768
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
769
|
+
*/
|
|
770
|
+
proto.crypto.CryptoNetworkItem.toObject = function(includeInstance, msg) {
|
|
771
|
+
var f, obj = {
|
|
772
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
773
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
774
|
+
chainType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
775
|
+
displayName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
776
|
+
environment: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
777
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
778
|
+
isTestnet: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
779
|
+
nativeAssetCode: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
780
|
+
explorerUrl: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
if (includeInstance) {
|
|
784
|
+
obj.$jspbMessageInstance = msg;
|
|
785
|
+
}
|
|
786
|
+
return obj;
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Deserializes binary data (in protobuf wire format).
|
|
793
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
794
|
+
* @return {!proto.crypto.CryptoNetworkItem}
|
|
795
|
+
*/
|
|
796
|
+
proto.crypto.CryptoNetworkItem.deserializeBinary = function(bytes) {
|
|
797
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
798
|
+
var msg = new proto.crypto.CryptoNetworkItem;
|
|
799
|
+
return proto.crypto.CryptoNetworkItem.deserializeBinaryFromReader(msg, reader);
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
805
|
+
* given reader into the given message object.
|
|
806
|
+
* @param {!proto.crypto.CryptoNetworkItem} msg The message object to deserialize into.
|
|
807
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
808
|
+
* @return {!proto.crypto.CryptoNetworkItem}
|
|
809
|
+
*/
|
|
810
|
+
proto.crypto.CryptoNetworkItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
811
|
+
while (reader.nextField()) {
|
|
812
|
+
if (reader.isEndGroup()) {
|
|
813
|
+
break;
|
|
814
|
+
}
|
|
815
|
+
var field = reader.getFieldNumber();
|
|
816
|
+
switch (field) {
|
|
817
|
+
case 1:
|
|
818
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
819
|
+
msg.setId(value);
|
|
820
|
+
break;
|
|
821
|
+
case 2:
|
|
822
|
+
var value = /** @type {string} */ (reader.readString());
|
|
823
|
+
msg.setCode(value);
|
|
824
|
+
break;
|
|
825
|
+
case 3:
|
|
826
|
+
var value = /** @type {string} */ (reader.readString());
|
|
827
|
+
msg.setChainType(value);
|
|
828
|
+
break;
|
|
829
|
+
case 4:
|
|
830
|
+
var value = /** @type {string} */ (reader.readString());
|
|
831
|
+
msg.setDisplayName(value);
|
|
832
|
+
break;
|
|
833
|
+
case 5:
|
|
834
|
+
var value = /** @type {string} */ (reader.readString());
|
|
835
|
+
msg.setEnvironment(value);
|
|
836
|
+
break;
|
|
837
|
+
case 6:
|
|
838
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
839
|
+
msg.setIsActive(value);
|
|
840
|
+
break;
|
|
841
|
+
case 7:
|
|
842
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
843
|
+
msg.setIsTestnet(value);
|
|
844
|
+
break;
|
|
845
|
+
case 8:
|
|
846
|
+
var value = /** @type {string} */ (reader.readString());
|
|
847
|
+
msg.setNativeAssetCode(value);
|
|
848
|
+
break;
|
|
849
|
+
case 9:
|
|
850
|
+
var value = /** @type {string} */ (reader.readString());
|
|
851
|
+
msg.setExplorerUrl(value);
|
|
852
|
+
break;
|
|
853
|
+
default:
|
|
854
|
+
reader.skipField();
|
|
855
|
+
break;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
return msg;
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
864
|
+
* @return {!Uint8Array}
|
|
865
|
+
*/
|
|
866
|
+
proto.crypto.CryptoNetworkItem.prototype.serializeBinary = function() {
|
|
867
|
+
var writer = new jspb.BinaryWriter();
|
|
868
|
+
proto.crypto.CryptoNetworkItem.serializeBinaryToWriter(this, writer);
|
|
869
|
+
return writer.getResultBuffer();
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
875
|
+
* format), writing to the given BinaryWriter.
|
|
876
|
+
* @param {!proto.crypto.CryptoNetworkItem} message
|
|
877
|
+
* @param {!jspb.BinaryWriter} writer
|
|
878
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
879
|
+
*/
|
|
880
|
+
proto.crypto.CryptoNetworkItem.serializeBinaryToWriter = function(message, writer) {
|
|
881
|
+
var f = undefined;
|
|
882
|
+
f = message.getId();
|
|
883
|
+
if (f !== 0) {
|
|
884
|
+
writer.writeUint64(
|
|
885
|
+
1,
|
|
886
|
+
f
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
f = message.getCode();
|
|
890
|
+
if (f.length > 0) {
|
|
891
|
+
writer.writeString(
|
|
892
|
+
2,
|
|
893
|
+
f
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
f = message.getChainType();
|
|
897
|
+
if (f.length > 0) {
|
|
898
|
+
writer.writeString(
|
|
899
|
+
3,
|
|
900
|
+
f
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
f = message.getDisplayName();
|
|
904
|
+
if (f.length > 0) {
|
|
905
|
+
writer.writeString(
|
|
906
|
+
4,
|
|
907
|
+
f
|
|
908
|
+
);
|
|
909
|
+
}
|
|
910
|
+
f = message.getEnvironment();
|
|
911
|
+
if (f.length > 0) {
|
|
912
|
+
writer.writeString(
|
|
913
|
+
5,
|
|
914
|
+
f
|
|
915
|
+
);
|
|
916
|
+
}
|
|
917
|
+
f = message.getIsActive();
|
|
918
|
+
if (f) {
|
|
919
|
+
writer.writeBool(
|
|
920
|
+
6,
|
|
921
|
+
f
|
|
922
|
+
);
|
|
923
|
+
}
|
|
924
|
+
f = message.getIsTestnet();
|
|
925
|
+
if (f) {
|
|
926
|
+
writer.writeBool(
|
|
927
|
+
7,
|
|
928
|
+
f
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
f = message.getNativeAssetCode();
|
|
932
|
+
if (f.length > 0) {
|
|
933
|
+
writer.writeString(
|
|
934
|
+
8,
|
|
935
|
+
f
|
|
936
|
+
);
|
|
937
|
+
}
|
|
938
|
+
f = message.getExplorerUrl();
|
|
939
|
+
if (f.length > 0) {
|
|
940
|
+
writer.writeString(
|
|
941
|
+
9,
|
|
942
|
+
f
|
|
943
|
+
);
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* optional uint64 id = 1;
|
|
950
|
+
* @return {number}
|
|
951
|
+
*/
|
|
952
|
+
proto.crypto.CryptoNetworkItem.prototype.getId = function() {
|
|
953
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* @param {number} value
|
|
959
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
960
|
+
*/
|
|
961
|
+
proto.crypto.CryptoNetworkItem.prototype.setId = function(value) {
|
|
962
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* optional string code = 2;
|
|
968
|
+
* @return {string}
|
|
969
|
+
*/
|
|
970
|
+
proto.crypto.CryptoNetworkItem.prototype.getCode = function() {
|
|
971
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* @param {string} value
|
|
977
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
978
|
+
*/
|
|
979
|
+
proto.crypto.CryptoNetworkItem.prototype.setCode = function(value) {
|
|
980
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* optional string chain_type = 3;
|
|
986
|
+
* @return {string}
|
|
987
|
+
*/
|
|
988
|
+
proto.crypto.CryptoNetworkItem.prototype.getChainType = function() {
|
|
989
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
990
|
+
};
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* @param {string} value
|
|
995
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
996
|
+
*/
|
|
997
|
+
proto.crypto.CryptoNetworkItem.prototype.setChainType = function(value) {
|
|
998
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* optional string display_name = 4;
|
|
1004
|
+
* @return {string}
|
|
1005
|
+
*/
|
|
1006
|
+
proto.crypto.CryptoNetworkItem.prototype.getDisplayName = function() {
|
|
1007
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* @param {string} value
|
|
1013
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
1014
|
+
*/
|
|
1015
|
+
proto.crypto.CryptoNetworkItem.prototype.setDisplayName = function(value) {
|
|
1016
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* optional string environment = 5;
|
|
1022
|
+
* @return {string}
|
|
1023
|
+
*/
|
|
1024
|
+
proto.crypto.CryptoNetworkItem.prototype.getEnvironment = function() {
|
|
1025
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* @param {string} value
|
|
1031
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
1032
|
+
*/
|
|
1033
|
+
proto.crypto.CryptoNetworkItem.prototype.setEnvironment = function(value) {
|
|
1034
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* optional bool is_active = 6;
|
|
1040
|
+
* @return {boolean}
|
|
1041
|
+
*/
|
|
1042
|
+
proto.crypto.CryptoNetworkItem.prototype.getIsActive = function() {
|
|
1043
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* @param {boolean} value
|
|
1049
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
1050
|
+
*/
|
|
1051
|
+
proto.crypto.CryptoNetworkItem.prototype.setIsActive = function(value) {
|
|
1052
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* optional bool is_testnet = 7;
|
|
1058
|
+
* @return {boolean}
|
|
1059
|
+
*/
|
|
1060
|
+
proto.crypto.CryptoNetworkItem.prototype.getIsTestnet = function() {
|
|
1061
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* @param {boolean} value
|
|
1067
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
1068
|
+
*/
|
|
1069
|
+
proto.crypto.CryptoNetworkItem.prototype.setIsTestnet = function(value) {
|
|
1070
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* optional string native_asset_code = 8;
|
|
1076
|
+
* @return {string}
|
|
1077
|
+
*/
|
|
1078
|
+
proto.crypto.CryptoNetworkItem.prototype.getNativeAssetCode = function() {
|
|
1079
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* @param {string} value
|
|
1085
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
1086
|
+
*/
|
|
1087
|
+
proto.crypto.CryptoNetworkItem.prototype.setNativeAssetCode = function(value) {
|
|
1088
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* optional string explorer_url = 9;
|
|
1094
|
+
* @return {string}
|
|
1095
|
+
*/
|
|
1096
|
+
proto.crypto.CryptoNetworkItem.prototype.getExplorerUrl = function() {
|
|
1097
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* @param {string} value
|
|
1103
|
+
* @return {!proto.crypto.CryptoNetworkItem} returns this
|
|
1104
|
+
*/
|
|
1105
|
+
proto.crypto.CryptoNetworkItem.prototype.setExplorerUrl = function(value) {
|
|
1106
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* List of repeated fields within this message type.
|
|
1113
|
+
* @private {!Array<number>}
|
|
1114
|
+
* @const
|
|
1115
|
+
*/
|
|
1116
|
+
proto.crypto.ReadListNetworksResponse.repeatedFields_ = [1];
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1121
|
+
/**
|
|
1122
|
+
* Creates an object representation of this proto.
|
|
1123
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1124
|
+
* Optional fields that are not set will be set to undefined.
|
|
1125
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1126
|
+
* For the list of reserved names please see:
|
|
1127
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1128
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1129
|
+
* JSPB instance for transitional soy proto support:
|
|
1130
|
+
* http://goto/soy-param-migration
|
|
1131
|
+
* @return {!Object}
|
|
1132
|
+
*/
|
|
1133
|
+
proto.crypto.ReadListNetworksResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1134
|
+
return proto.crypto.ReadListNetworksResponse.toObject(opt_includeInstance, this);
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Static version of the {@see toObject} method.
|
|
1140
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1141
|
+
* the JSPB instance for transitional soy proto support:
|
|
1142
|
+
* http://goto/soy-param-migration
|
|
1143
|
+
* @param {!proto.crypto.ReadListNetworksResponse} msg The msg instance to transform.
|
|
1144
|
+
* @return {!Object}
|
|
1145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1146
|
+
*/
|
|
1147
|
+
proto.crypto.ReadListNetworksResponse.toObject = function(includeInstance, msg) {
|
|
1148
|
+
var f, obj = {
|
|
1149
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
1150
|
+
proto.crypto.CryptoNetworkItem.toObject, includeInstance)
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
if (includeInstance) {
|
|
1154
|
+
obj.$jspbMessageInstance = msg;
|
|
1155
|
+
}
|
|
1156
|
+
return obj;
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1163
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1164
|
+
* @return {!proto.crypto.ReadListNetworksResponse}
|
|
1165
|
+
*/
|
|
1166
|
+
proto.crypto.ReadListNetworksResponse.deserializeBinary = function(bytes) {
|
|
1167
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1168
|
+
var msg = new proto.crypto.ReadListNetworksResponse;
|
|
1169
|
+
return proto.crypto.ReadListNetworksResponse.deserializeBinaryFromReader(msg, reader);
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1175
|
+
* given reader into the given message object.
|
|
1176
|
+
* @param {!proto.crypto.ReadListNetworksResponse} msg The message object to deserialize into.
|
|
1177
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1178
|
+
* @return {!proto.crypto.ReadListNetworksResponse}
|
|
1179
|
+
*/
|
|
1180
|
+
proto.crypto.ReadListNetworksResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1181
|
+
while (reader.nextField()) {
|
|
1182
|
+
if (reader.isEndGroup()) {
|
|
1183
|
+
break;
|
|
1184
|
+
}
|
|
1185
|
+
var field = reader.getFieldNumber();
|
|
1186
|
+
switch (field) {
|
|
1187
|
+
case 1:
|
|
1188
|
+
var value = new proto.crypto.CryptoNetworkItem;
|
|
1189
|
+
reader.readMessage(value,proto.crypto.CryptoNetworkItem.deserializeBinaryFromReader);
|
|
1190
|
+
msg.addItems(value);
|
|
1191
|
+
break;
|
|
1192
|
+
default:
|
|
1193
|
+
reader.skipField();
|
|
1194
|
+
break;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
return msg;
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1203
|
+
* @return {!Uint8Array}
|
|
1204
|
+
*/
|
|
1205
|
+
proto.crypto.ReadListNetworksResponse.prototype.serializeBinary = function() {
|
|
1206
|
+
var writer = new jspb.BinaryWriter();
|
|
1207
|
+
proto.crypto.ReadListNetworksResponse.serializeBinaryToWriter(this, writer);
|
|
1208
|
+
return writer.getResultBuffer();
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1214
|
+
* format), writing to the given BinaryWriter.
|
|
1215
|
+
* @param {!proto.crypto.ReadListNetworksResponse} message
|
|
1216
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1217
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1218
|
+
*/
|
|
1219
|
+
proto.crypto.ReadListNetworksResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1220
|
+
var f = undefined;
|
|
1221
|
+
f = message.getItemsList();
|
|
1222
|
+
if (f.length > 0) {
|
|
1223
|
+
writer.writeRepeatedMessage(
|
|
1224
|
+
1,
|
|
1225
|
+
f,
|
|
1226
|
+
proto.crypto.CryptoNetworkItem.serializeBinaryToWriter
|
|
1227
|
+
);
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* repeated CryptoNetworkItem items = 1;
|
|
1234
|
+
* @return {!Array<!proto.crypto.CryptoNetworkItem>}
|
|
1235
|
+
*/
|
|
1236
|
+
proto.crypto.ReadListNetworksResponse.prototype.getItemsList = function() {
|
|
1237
|
+
return /** @type{!Array<!proto.crypto.CryptoNetworkItem>} */ (
|
|
1238
|
+
jspb.Message.getRepeatedWrapperField(this, proto.crypto.CryptoNetworkItem, 1));
|
|
1239
|
+
};
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* @param {!Array<!proto.crypto.CryptoNetworkItem>} value
|
|
1244
|
+
* @return {!proto.crypto.ReadListNetworksResponse} returns this
|
|
1245
|
+
*/
|
|
1246
|
+
proto.crypto.ReadListNetworksResponse.prototype.setItemsList = function(value) {
|
|
1247
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* @param {!proto.crypto.CryptoNetworkItem=} opt_value
|
|
1253
|
+
* @param {number=} opt_index
|
|
1254
|
+
* @return {!proto.crypto.CryptoNetworkItem}
|
|
1255
|
+
*/
|
|
1256
|
+
proto.crypto.ReadListNetworksResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
1257
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.crypto.CryptoNetworkItem, opt_index);
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Clears the list making it empty but non-null.
|
|
1263
|
+
* @return {!proto.crypto.ReadListNetworksResponse} returns this
|
|
1264
|
+
*/
|
|
1265
|
+
proto.crypto.ReadListNetworksResponse.prototype.clearItemsList = function() {
|
|
1266
|
+
return this.setItemsList([]);
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1274
|
+
/**
|
|
1275
|
+
* Creates an object representation of this proto.
|
|
1276
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1277
|
+
* Optional fields that are not set will be set to undefined.
|
|
1278
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1279
|
+
* For the list of reserved names please see:
|
|
1280
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1281
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1282
|
+
* JSPB instance for transitional soy proto support:
|
|
1283
|
+
* http://goto/soy-param-migration
|
|
1284
|
+
* @return {!Object}
|
|
1285
|
+
*/
|
|
1286
|
+
proto.crypto.ReadListAssetsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1287
|
+
return proto.crypto.ReadListAssetsRequest.toObject(opt_includeInstance, this);
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* Static version of the {@see toObject} method.
|
|
1293
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1294
|
+
* the JSPB instance for transitional soy proto support:
|
|
1295
|
+
* http://goto/soy-param-migration
|
|
1296
|
+
* @param {!proto.crypto.ReadListAssetsRequest} msg The msg instance to transform.
|
|
1297
|
+
* @return {!Object}
|
|
1298
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1299
|
+
*/
|
|
1300
|
+
proto.crypto.ReadListAssetsRequest.toObject = function(includeInstance, msg) {
|
|
1301
|
+
var f, obj = {
|
|
1302
|
+
networkCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1303
|
+
onlyActive: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
1304
|
+
depositEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
1305
|
+
withdrawalEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
if (includeInstance) {
|
|
1309
|
+
obj.$jspbMessageInstance = msg;
|
|
1310
|
+
}
|
|
1311
|
+
return obj;
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1318
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1319
|
+
* @return {!proto.crypto.ReadListAssetsRequest}
|
|
1320
|
+
*/
|
|
1321
|
+
proto.crypto.ReadListAssetsRequest.deserializeBinary = function(bytes) {
|
|
1322
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1323
|
+
var msg = new proto.crypto.ReadListAssetsRequest;
|
|
1324
|
+
return proto.crypto.ReadListAssetsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1330
|
+
* given reader into the given message object.
|
|
1331
|
+
* @param {!proto.crypto.ReadListAssetsRequest} msg The message object to deserialize into.
|
|
1332
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1333
|
+
* @return {!proto.crypto.ReadListAssetsRequest}
|
|
1334
|
+
*/
|
|
1335
|
+
proto.crypto.ReadListAssetsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1336
|
+
while (reader.nextField()) {
|
|
1337
|
+
if (reader.isEndGroup()) {
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
var field = reader.getFieldNumber();
|
|
1341
|
+
switch (field) {
|
|
1342
|
+
case 1:
|
|
1343
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1344
|
+
msg.setNetworkCode(value);
|
|
1345
|
+
break;
|
|
1346
|
+
case 2:
|
|
1347
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1348
|
+
msg.setOnlyActive(value);
|
|
1349
|
+
break;
|
|
1350
|
+
case 3:
|
|
1351
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1352
|
+
msg.setDepositEnabled(value);
|
|
1353
|
+
break;
|
|
1354
|
+
case 4:
|
|
1355
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1356
|
+
msg.setWithdrawalEnabled(value);
|
|
1357
|
+
break;
|
|
1358
|
+
default:
|
|
1359
|
+
reader.skipField();
|
|
1360
|
+
break;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
return msg;
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1369
|
+
* @return {!Uint8Array}
|
|
1370
|
+
*/
|
|
1371
|
+
proto.crypto.ReadListAssetsRequest.prototype.serializeBinary = function() {
|
|
1372
|
+
var writer = new jspb.BinaryWriter();
|
|
1373
|
+
proto.crypto.ReadListAssetsRequest.serializeBinaryToWriter(this, writer);
|
|
1374
|
+
return writer.getResultBuffer();
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1380
|
+
* format), writing to the given BinaryWriter.
|
|
1381
|
+
* @param {!proto.crypto.ReadListAssetsRequest} message
|
|
1382
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1383
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1384
|
+
*/
|
|
1385
|
+
proto.crypto.ReadListAssetsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1386
|
+
var f = undefined;
|
|
1387
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
1388
|
+
if (f != null) {
|
|
1389
|
+
writer.writeString(
|
|
1390
|
+
1,
|
|
1391
|
+
f
|
|
1392
|
+
);
|
|
1393
|
+
}
|
|
1394
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
1395
|
+
if (f != null) {
|
|
1396
|
+
writer.writeBool(
|
|
1397
|
+
2,
|
|
1398
|
+
f
|
|
1399
|
+
);
|
|
1400
|
+
}
|
|
1401
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
|
1402
|
+
if (f != null) {
|
|
1403
|
+
writer.writeBool(
|
|
1404
|
+
3,
|
|
1405
|
+
f
|
|
1406
|
+
);
|
|
1407
|
+
}
|
|
1408
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
|
1409
|
+
if (f != null) {
|
|
1410
|
+
writer.writeBool(
|
|
1411
|
+
4,
|
|
1412
|
+
f
|
|
1413
|
+
);
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* optional string network_code = 1;
|
|
1420
|
+
* @return {string}
|
|
1421
|
+
*/
|
|
1422
|
+
proto.crypto.ReadListAssetsRequest.prototype.getNetworkCode = function() {
|
|
1423
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* @param {string} value
|
|
1429
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1430
|
+
*/
|
|
1431
|
+
proto.crypto.ReadListAssetsRequest.prototype.setNetworkCode = function(value) {
|
|
1432
|
+
return jspb.Message.setField(this, 1, value);
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Clears the field making it undefined.
|
|
1438
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1439
|
+
*/
|
|
1440
|
+
proto.crypto.ReadListAssetsRequest.prototype.clearNetworkCode = function() {
|
|
1441
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* Returns whether this field is set.
|
|
1447
|
+
* @return {boolean}
|
|
1448
|
+
*/
|
|
1449
|
+
proto.crypto.ReadListAssetsRequest.prototype.hasNetworkCode = function() {
|
|
1450
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* optional bool only_active = 2;
|
|
1456
|
+
* @return {boolean}
|
|
1457
|
+
*/
|
|
1458
|
+
proto.crypto.ReadListAssetsRequest.prototype.getOnlyActive = function() {
|
|
1459
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* @param {boolean} value
|
|
1465
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1466
|
+
*/
|
|
1467
|
+
proto.crypto.ReadListAssetsRequest.prototype.setOnlyActive = function(value) {
|
|
1468
|
+
return jspb.Message.setField(this, 2, value);
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Clears the field making it undefined.
|
|
1474
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1475
|
+
*/
|
|
1476
|
+
proto.crypto.ReadListAssetsRequest.prototype.clearOnlyActive = function() {
|
|
1477
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Returns whether this field is set.
|
|
1483
|
+
* @return {boolean}
|
|
1484
|
+
*/
|
|
1485
|
+
proto.crypto.ReadListAssetsRequest.prototype.hasOnlyActive = function() {
|
|
1486
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* optional bool deposit_enabled = 3;
|
|
1492
|
+
* @return {boolean}
|
|
1493
|
+
*/
|
|
1494
|
+
proto.crypto.ReadListAssetsRequest.prototype.getDepositEnabled = function() {
|
|
1495
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* @param {boolean} value
|
|
1501
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1502
|
+
*/
|
|
1503
|
+
proto.crypto.ReadListAssetsRequest.prototype.setDepositEnabled = function(value) {
|
|
1504
|
+
return jspb.Message.setField(this, 3, value);
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Clears the field making it undefined.
|
|
1510
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1511
|
+
*/
|
|
1512
|
+
proto.crypto.ReadListAssetsRequest.prototype.clearDepositEnabled = function() {
|
|
1513
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* Returns whether this field is set.
|
|
1519
|
+
* @return {boolean}
|
|
1520
|
+
*/
|
|
1521
|
+
proto.crypto.ReadListAssetsRequest.prototype.hasDepositEnabled = function() {
|
|
1522
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* optional bool withdrawal_enabled = 4;
|
|
1528
|
+
* @return {boolean}
|
|
1529
|
+
*/
|
|
1530
|
+
proto.crypto.ReadListAssetsRequest.prototype.getWithdrawalEnabled = function() {
|
|
1531
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* @param {boolean} value
|
|
1537
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1538
|
+
*/
|
|
1539
|
+
proto.crypto.ReadListAssetsRequest.prototype.setWithdrawalEnabled = function(value) {
|
|
1540
|
+
return jspb.Message.setField(this, 4, value);
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* Clears the field making it undefined.
|
|
1546
|
+
* @return {!proto.crypto.ReadListAssetsRequest} returns this
|
|
1547
|
+
*/
|
|
1548
|
+
proto.crypto.ReadListAssetsRequest.prototype.clearWithdrawalEnabled = function() {
|
|
1549
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Returns whether this field is set.
|
|
1555
|
+
* @return {boolean}
|
|
1556
|
+
*/
|
|
1557
|
+
proto.crypto.ReadListAssetsRequest.prototype.hasWithdrawalEnabled = function() {
|
|
1558
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1566
|
+
/**
|
|
1567
|
+
* Creates an object representation of this proto.
|
|
1568
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1569
|
+
* Optional fields that are not set will be set to undefined.
|
|
1570
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1571
|
+
* For the list of reserved names please see:
|
|
1572
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1573
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1574
|
+
* JSPB instance for transitional soy proto support:
|
|
1575
|
+
* http://goto/soy-param-migration
|
|
1576
|
+
* @return {!Object}
|
|
1577
|
+
*/
|
|
1578
|
+
proto.crypto.CryptoAssetItem.prototype.toObject = function(opt_includeInstance) {
|
|
1579
|
+
return proto.crypto.CryptoAssetItem.toObject(opt_includeInstance, this);
|
|
1580
|
+
};
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Static version of the {@see toObject} method.
|
|
1585
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1586
|
+
* the JSPB instance for transitional soy proto support:
|
|
1587
|
+
* http://goto/soy-param-migration
|
|
1588
|
+
* @param {!proto.crypto.CryptoAssetItem} msg The msg instance to transform.
|
|
1589
|
+
* @return {!Object}
|
|
1590
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1591
|
+
*/
|
|
1592
|
+
proto.crypto.CryptoAssetItem.toObject = function(includeInstance, msg) {
|
|
1593
|
+
var f, obj = {
|
|
1594
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1595
|
+
networkId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1596
|
+
networkCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1597
|
+
assetCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1598
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1599
|
+
displayName: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1600
|
+
symbol: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1601
|
+
decimals: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
1602
|
+
contractAddress: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1603
|
+
tokenStandard: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
1604
|
+
isNative: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
1605
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
1606
|
+
depositEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
|
|
1607
|
+
withdrawalEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 14, false)
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
if (includeInstance) {
|
|
1611
|
+
obj.$jspbMessageInstance = msg;
|
|
1612
|
+
}
|
|
1613
|
+
return obj;
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1620
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1621
|
+
* @return {!proto.crypto.CryptoAssetItem}
|
|
1622
|
+
*/
|
|
1623
|
+
proto.crypto.CryptoAssetItem.deserializeBinary = function(bytes) {
|
|
1624
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1625
|
+
var msg = new proto.crypto.CryptoAssetItem;
|
|
1626
|
+
return proto.crypto.CryptoAssetItem.deserializeBinaryFromReader(msg, reader);
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1632
|
+
* given reader into the given message object.
|
|
1633
|
+
* @param {!proto.crypto.CryptoAssetItem} msg The message object to deserialize into.
|
|
1634
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1635
|
+
* @return {!proto.crypto.CryptoAssetItem}
|
|
1636
|
+
*/
|
|
1637
|
+
proto.crypto.CryptoAssetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
1638
|
+
while (reader.nextField()) {
|
|
1639
|
+
if (reader.isEndGroup()) {
|
|
1640
|
+
break;
|
|
1641
|
+
}
|
|
1642
|
+
var field = reader.getFieldNumber();
|
|
1643
|
+
switch (field) {
|
|
1644
|
+
case 1:
|
|
1645
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
1646
|
+
msg.setId(value);
|
|
1647
|
+
break;
|
|
1648
|
+
case 2:
|
|
1649
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
1650
|
+
msg.setNetworkId(value);
|
|
1651
|
+
break;
|
|
1652
|
+
case 3:
|
|
1653
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1654
|
+
msg.setNetworkCode(value);
|
|
1655
|
+
break;
|
|
1656
|
+
case 4:
|
|
1657
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1658
|
+
msg.setAssetCode(value);
|
|
1659
|
+
break;
|
|
1660
|
+
case 5:
|
|
1661
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1662
|
+
msg.setAssetType(value);
|
|
1663
|
+
break;
|
|
1664
|
+
case 6:
|
|
1665
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1666
|
+
msg.setDisplayName(value);
|
|
1667
|
+
break;
|
|
1668
|
+
case 7:
|
|
1669
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1670
|
+
msg.setSymbol(value);
|
|
1671
|
+
break;
|
|
1672
|
+
case 8:
|
|
1673
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1674
|
+
msg.setDecimals(value);
|
|
1675
|
+
break;
|
|
1676
|
+
case 9:
|
|
1677
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1678
|
+
msg.setContractAddress(value);
|
|
1679
|
+
break;
|
|
1680
|
+
case 10:
|
|
1681
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1682
|
+
msg.setTokenStandard(value);
|
|
1683
|
+
break;
|
|
1684
|
+
case 11:
|
|
1685
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1686
|
+
msg.setIsNative(value);
|
|
1687
|
+
break;
|
|
1688
|
+
case 12:
|
|
1689
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1690
|
+
msg.setIsActive(value);
|
|
1691
|
+
break;
|
|
1692
|
+
case 13:
|
|
1693
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1694
|
+
msg.setDepositEnabled(value);
|
|
1695
|
+
break;
|
|
1696
|
+
case 14:
|
|
1697
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1698
|
+
msg.setWithdrawalEnabled(value);
|
|
1699
|
+
break;
|
|
1700
|
+
default:
|
|
1701
|
+
reader.skipField();
|
|
1702
|
+
break;
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
return msg;
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1711
|
+
* @return {!Uint8Array}
|
|
1712
|
+
*/
|
|
1713
|
+
proto.crypto.CryptoAssetItem.prototype.serializeBinary = function() {
|
|
1714
|
+
var writer = new jspb.BinaryWriter();
|
|
1715
|
+
proto.crypto.CryptoAssetItem.serializeBinaryToWriter(this, writer);
|
|
1716
|
+
return writer.getResultBuffer();
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1722
|
+
* format), writing to the given BinaryWriter.
|
|
1723
|
+
* @param {!proto.crypto.CryptoAssetItem} message
|
|
1724
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1725
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1726
|
+
*/
|
|
1727
|
+
proto.crypto.CryptoAssetItem.serializeBinaryToWriter = function(message, writer) {
|
|
1728
|
+
var f = undefined;
|
|
1729
|
+
f = message.getId();
|
|
1730
|
+
if (f !== 0) {
|
|
1731
|
+
writer.writeUint64(
|
|
1732
|
+
1,
|
|
1733
|
+
f
|
|
1734
|
+
);
|
|
1735
|
+
}
|
|
1736
|
+
f = message.getNetworkId();
|
|
1737
|
+
if (f !== 0) {
|
|
1738
|
+
writer.writeUint64(
|
|
1739
|
+
2,
|
|
1740
|
+
f
|
|
1741
|
+
);
|
|
1742
|
+
}
|
|
1743
|
+
f = message.getNetworkCode();
|
|
1744
|
+
if (f.length > 0) {
|
|
1745
|
+
writer.writeString(
|
|
1746
|
+
3,
|
|
1747
|
+
f
|
|
1748
|
+
);
|
|
1749
|
+
}
|
|
1750
|
+
f = message.getAssetCode();
|
|
1751
|
+
if (f.length > 0) {
|
|
1752
|
+
writer.writeString(
|
|
1753
|
+
4,
|
|
1754
|
+
f
|
|
1755
|
+
);
|
|
1756
|
+
}
|
|
1757
|
+
f = message.getAssetType();
|
|
1758
|
+
if (f.length > 0) {
|
|
1759
|
+
writer.writeString(
|
|
1760
|
+
5,
|
|
1761
|
+
f
|
|
1762
|
+
);
|
|
1763
|
+
}
|
|
1764
|
+
f = message.getDisplayName();
|
|
1765
|
+
if (f.length > 0) {
|
|
1766
|
+
writer.writeString(
|
|
1767
|
+
6,
|
|
1768
|
+
f
|
|
1769
|
+
);
|
|
1770
|
+
}
|
|
1771
|
+
f = message.getSymbol();
|
|
1772
|
+
if (f.length > 0) {
|
|
1773
|
+
writer.writeString(
|
|
1774
|
+
7,
|
|
1775
|
+
f
|
|
1776
|
+
);
|
|
1777
|
+
}
|
|
1778
|
+
f = message.getDecimals();
|
|
1779
|
+
if (f !== 0) {
|
|
1780
|
+
writer.writeUint32(
|
|
1781
|
+
8,
|
|
1782
|
+
f
|
|
1783
|
+
);
|
|
1784
|
+
}
|
|
1785
|
+
f = message.getContractAddress();
|
|
1786
|
+
if (f.length > 0) {
|
|
1787
|
+
writer.writeString(
|
|
1788
|
+
9,
|
|
1789
|
+
f
|
|
1790
|
+
);
|
|
1791
|
+
}
|
|
1792
|
+
f = message.getTokenStandard();
|
|
1793
|
+
if (f.length > 0) {
|
|
1794
|
+
writer.writeString(
|
|
1795
|
+
10,
|
|
1796
|
+
f
|
|
1797
|
+
);
|
|
1798
|
+
}
|
|
1799
|
+
f = message.getIsNative();
|
|
1800
|
+
if (f) {
|
|
1801
|
+
writer.writeBool(
|
|
1802
|
+
11,
|
|
1803
|
+
f
|
|
1804
|
+
);
|
|
1805
|
+
}
|
|
1806
|
+
f = message.getIsActive();
|
|
1807
|
+
if (f) {
|
|
1808
|
+
writer.writeBool(
|
|
1809
|
+
12,
|
|
1810
|
+
f
|
|
1811
|
+
);
|
|
1812
|
+
}
|
|
1813
|
+
f = message.getDepositEnabled();
|
|
1814
|
+
if (f) {
|
|
1815
|
+
writer.writeBool(
|
|
1816
|
+
13,
|
|
1817
|
+
f
|
|
1818
|
+
);
|
|
1819
|
+
}
|
|
1820
|
+
f = message.getWithdrawalEnabled();
|
|
1821
|
+
if (f) {
|
|
1822
|
+
writer.writeBool(
|
|
1823
|
+
14,
|
|
1824
|
+
f
|
|
1825
|
+
);
|
|
1826
|
+
}
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* optional uint64 id = 1;
|
|
1832
|
+
* @return {number}
|
|
1833
|
+
*/
|
|
1834
|
+
proto.crypto.CryptoAssetItem.prototype.getId = function() {
|
|
1835
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* @param {number} value
|
|
1841
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1842
|
+
*/
|
|
1843
|
+
proto.crypto.CryptoAssetItem.prototype.setId = function(value) {
|
|
1844
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* optional uint64 network_id = 2;
|
|
1850
|
+
* @return {number}
|
|
1851
|
+
*/
|
|
1852
|
+
proto.crypto.CryptoAssetItem.prototype.getNetworkId = function() {
|
|
1853
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* @param {number} value
|
|
1859
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1860
|
+
*/
|
|
1861
|
+
proto.crypto.CryptoAssetItem.prototype.setNetworkId = function(value) {
|
|
1862
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* optional string network_code = 3;
|
|
1868
|
+
* @return {string}
|
|
1869
|
+
*/
|
|
1870
|
+
proto.crypto.CryptoAssetItem.prototype.getNetworkCode = function() {
|
|
1871
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* @param {string} value
|
|
1877
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1878
|
+
*/
|
|
1879
|
+
proto.crypto.CryptoAssetItem.prototype.setNetworkCode = function(value) {
|
|
1880
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* optional string asset_code = 4;
|
|
1886
|
+
* @return {string}
|
|
1887
|
+
*/
|
|
1888
|
+
proto.crypto.CryptoAssetItem.prototype.getAssetCode = function() {
|
|
1889
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1890
|
+
};
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* @param {string} value
|
|
1895
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1896
|
+
*/
|
|
1897
|
+
proto.crypto.CryptoAssetItem.prototype.setAssetCode = function(value) {
|
|
1898
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* optional string asset_type = 5;
|
|
1904
|
+
* @return {string}
|
|
1905
|
+
*/
|
|
1906
|
+
proto.crypto.CryptoAssetItem.prototype.getAssetType = function() {
|
|
1907
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* @param {string} value
|
|
1913
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1914
|
+
*/
|
|
1915
|
+
proto.crypto.CryptoAssetItem.prototype.setAssetType = function(value) {
|
|
1916
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* optional string display_name = 6;
|
|
1922
|
+
* @return {string}
|
|
1923
|
+
*/
|
|
1924
|
+
proto.crypto.CryptoAssetItem.prototype.getDisplayName = function() {
|
|
1925
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* @param {string} value
|
|
1931
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1932
|
+
*/
|
|
1933
|
+
proto.crypto.CryptoAssetItem.prototype.setDisplayName = function(value) {
|
|
1934
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* optional string symbol = 7;
|
|
1940
|
+
* @return {string}
|
|
1941
|
+
*/
|
|
1942
|
+
proto.crypto.CryptoAssetItem.prototype.getSymbol = function() {
|
|
1943
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* @param {string} value
|
|
1949
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1950
|
+
*/
|
|
1951
|
+
proto.crypto.CryptoAssetItem.prototype.setSymbol = function(value) {
|
|
1952
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* optional uint32 decimals = 8;
|
|
1958
|
+
* @return {number}
|
|
1959
|
+
*/
|
|
1960
|
+
proto.crypto.CryptoAssetItem.prototype.getDecimals = function() {
|
|
1961
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* @param {number} value
|
|
1967
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1968
|
+
*/
|
|
1969
|
+
proto.crypto.CryptoAssetItem.prototype.setDecimals = function(value) {
|
|
1970
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
1971
|
+
};
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* optional string contract_address = 9;
|
|
1976
|
+
* @return {string}
|
|
1977
|
+
*/
|
|
1978
|
+
proto.crypto.CryptoAssetItem.prototype.getContractAddress = function() {
|
|
1979
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* @param {string} value
|
|
1985
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
1986
|
+
*/
|
|
1987
|
+
proto.crypto.CryptoAssetItem.prototype.setContractAddress = function(value) {
|
|
1988
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* optional string token_standard = 10;
|
|
1994
|
+
* @return {string}
|
|
1995
|
+
*/
|
|
1996
|
+
proto.crypto.CryptoAssetItem.prototype.getTokenStandard = function() {
|
|
1997
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* @param {string} value
|
|
2003
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
2004
|
+
*/
|
|
2005
|
+
proto.crypto.CryptoAssetItem.prototype.setTokenStandard = function(value) {
|
|
2006
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* optional bool is_native = 11;
|
|
2012
|
+
* @return {boolean}
|
|
2013
|
+
*/
|
|
2014
|
+
proto.crypto.CryptoAssetItem.prototype.getIsNative = function() {
|
|
2015
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* @param {boolean} value
|
|
2021
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
2022
|
+
*/
|
|
2023
|
+
proto.crypto.CryptoAssetItem.prototype.setIsNative = function(value) {
|
|
2024
|
+
return jspb.Message.setProto3BooleanField(this, 11, value);
|
|
2025
|
+
};
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
/**
|
|
2029
|
+
* optional bool is_active = 12;
|
|
2030
|
+
* @return {boolean}
|
|
2031
|
+
*/
|
|
2032
|
+
proto.crypto.CryptoAssetItem.prototype.getIsActive = function() {
|
|
2033
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* @param {boolean} value
|
|
2039
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
2040
|
+
*/
|
|
2041
|
+
proto.crypto.CryptoAssetItem.prototype.setIsActive = function(value) {
|
|
2042
|
+
return jspb.Message.setProto3BooleanField(this, 12, value);
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
/**
|
|
2047
|
+
* optional bool deposit_enabled = 13;
|
|
2048
|
+
* @return {boolean}
|
|
2049
|
+
*/
|
|
2050
|
+
proto.crypto.CryptoAssetItem.prototype.getDepositEnabled = function() {
|
|
2051
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
|
|
2052
|
+
};
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* @param {boolean} value
|
|
2057
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
2058
|
+
*/
|
|
2059
|
+
proto.crypto.CryptoAssetItem.prototype.setDepositEnabled = function(value) {
|
|
2060
|
+
return jspb.Message.setProto3BooleanField(this, 13, value);
|
|
2061
|
+
};
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* optional bool withdrawal_enabled = 14;
|
|
2066
|
+
* @return {boolean}
|
|
2067
|
+
*/
|
|
2068
|
+
proto.crypto.CryptoAssetItem.prototype.getWithdrawalEnabled = function() {
|
|
2069
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
|
|
2070
|
+
};
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
/**
|
|
2074
|
+
* @param {boolean} value
|
|
2075
|
+
* @return {!proto.crypto.CryptoAssetItem} returns this
|
|
2076
|
+
*/
|
|
2077
|
+
proto.crypto.CryptoAssetItem.prototype.setWithdrawalEnabled = function(value) {
|
|
2078
|
+
return jspb.Message.setProto3BooleanField(this, 14, value);
|
|
2079
|
+
};
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* List of repeated fields within this message type.
|
|
2085
|
+
* @private {!Array<number>}
|
|
2086
|
+
* @const
|
|
2087
|
+
*/
|
|
2088
|
+
proto.crypto.ReadListAssetsResponse.repeatedFields_ = [1];
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2093
|
+
/**
|
|
2094
|
+
* Creates an object representation of this proto.
|
|
2095
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2096
|
+
* Optional fields that are not set will be set to undefined.
|
|
2097
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2098
|
+
* For the list of reserved names please see:
|
|
2099
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2100
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2101
|
+
* JSPB instance for transitional soy proto support:
|
|
2102
|
+
* http://goto/soy-param-migration
|
|
2103
|
+
* @return {!Object}
|
|
2104
|
+
*/
|
|
2105
|
+
proto.crypto.ReadListAssetsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2106
|
+
return proto.crypto.ReadListAssetsResponse.toObject(opt_includeInstance, this);
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
/**
|
|
2111
|
+
* Static version of the {@see toObject} method.
|
|
2112
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2113
|
+
* the JSPB instance for transitional soy proto support:
|
|
2114
|
+
* http://goto/soy-param-migration
|
|
2115
|
+
* @param {!proto.crypto.ReadListAssetsResponse} msg The msg instance to transform.
|
|
2116
|
+
* @return {!Object}
|
|
2117
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2118
|
+
*/
|
|
2119
|
+
proto.crypto.ReadListAssetsResponse.toObject = function(includeInstance, msg) {
|
|
2120
|
+
var f, obj = {
|
|
2121
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
2122
|
+
proto.crypto.CryptoAssetItem.toObject, includeInstance)
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2125
|
+
if (includeInstance) {
|
|
2126
|
+
obj.$jspbMessageInstance = msg;
|
|
2127
|
+
}
|
|
2128
|
+
return obj;
|
|
2129
|
+
};
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2135
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2136
|
+
* @return {!proto.crypto.ReadListAssetsResponse}
|
|
2137
|
+
*/
|
|
2138
|
+
proto.crypto.ReadListAssetsResponse.deserializeBinary = function(bytes) {
|
|
2139
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2140
|
+
var msg = new proto.crypto.ReadListAssetsResponse;
|
|
2141
|
+
return proto.crypto.ReadListAssetsResponse.deserializeBinaryFromReader(msg, reader);
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2147
|
+
* given reader into the given message object.
|
|
2148
|
+
* @param {!proto.crypto.ReadListAssetsResponse} msg The message object to deserialize into.
|
|
2149
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2150
|
+
* @return {!proto.crypto.ReadListAssetsResponse}
|
|
2151
|
+
*/
|
|
2152
|
+
proto.crypto.ReadListAssetsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2153
|
+
while (reader.nextField()) {
|
|
2154
|
+
if (reader.isEndGroup()) {
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
var field = reader.getFieldNumber();
|
|
2158
|
+
switch (field) {
|
|
2159
|
+
case 1:
|
|
2160
|
+
var value = new proto.crypto.CryptoAssetItem;
|
|
2161
|
+
reader.readMessage(value,proto.crypto.CryptoAssetItem.deserializeBinaryFromReader);
|
|
2162
|
+
msg.addItems(value);
|
|
2163
|
+
break;
|
|
2164
|
+
default:
|
|
2165
|
+
reader.skipField();
|
|
2166
|
+
break;
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
return msg;
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2175
|
+
* @return {!Uint8Array}
|
|
2176
|
+
*/
|
|
2177
|
+
proto.crypto.ReadListAssetsResponse.prototype.serializeBinary = function() {
|
|
2178
|
+
var writer = new jspb.BinaryWriter();
|
|
2179
|
+
proto.crypto.ReadListAssetsResponse.serializeBinaryToWriter(this, writer);
|
|
2180
|
+
return writer.getResultBuffer();
|
|
2181
|
+
};
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2186
|
+
* format), writing to the given BinaryWriter.
|
|
2187
|
+
* @param {!proto.crypto.ReadListAssetsResponse} message
|
|
2188
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2189
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2190
|
+
*/
|
|
2191
|
+
proto.crypto.ReadListAssetsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2192
|
+
var f = undefined;
|
|
2193
|
+
f = message.getItemsList();
|
|
2194
|
+
if (f.length > 0) {
|
|
2195
|
+
writer.writeRepeatedMessage(
|
|
2196
|
+
1,
|
|
2197
|
+
f,
|
|
2198
|
+
proto.crypto.CryptoAssetItem.serializeBinaryToWriter
|
|
2199
|
+
);
|
|
2200
|
+
}
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* repeated CryptoAssetItem items = 1;
|
|
2206
|
+
* @return {!Array<!proto.crypto.CryptoAssetItem>}
|
|
2207
|
+
*/
|
|
2208
|
+
proto.crypto.ReadListAssetsResponse.prototype.getItemsList = function() {
|
|
2209
|
+
return /** @type{!Array<!proto.crypto.CryptoAssetItem>} */ (
|
|
2210
|
+
jspb.Message.getRepeatedWrapperField(this, proto.crypto.CryptoAssetItem, 1));
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* @param {!Array<!proto.crypto.CryptoAssetItem>} value
|
|
2216
|
+
* @return {!proto.crypto.ReadListAssetsResponse} returns this
|
|
2217
|
+
*/
|
|
2218
|
+
proto.crypto.ReadListAssetsResponse.prototype.setItemsList = function(value) {
|
|
2219
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* @param {!proto.crypto.CryptoAssetItem=} opt_value
|
|
2225
|
+
* @param {number=} opt_index
|
|
2226
|
+
* @return {!proto.crypto.CryptoAssetItem}
|
|
2227
|
+
*/
|
|
2228
|
+
proto.crypto.ReadListAssetsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
2229
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.crypto.CryptoAssetItem, opt_index);
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
/**
|
|
2234
|
+
* Clears the list making it empty but non-null.
|
|
2235
|
+
* @return {!proto.crypto.ReadListAssetsResponse} returns this
|
|
2236
|
+
*/
|
|
2237
|
+
proto.crypto.ReadListAssetsResponse.prototype.clearItemsList = function() {
|
|
2238
|
+
return this.setItemsList([]);
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2246
|
+
/**
|
|
2247
|
+
* Creates an object representation of this proto.
|
|
2248
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2249
|
+
* Optional fields that are not set will be set to undefined.
|
|
2250
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2251
|
+
* For the list of reserved names please see:
|
|
2252
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2253
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2254
|
+
* JSPB instance for transitional soy proto support:
|
|
2255
|
+
* http://goto/soy-param-migration
|
|
2256
|
+
* @return {!Object}
|
|
2257
|
+
*/
|
|
2258
|
+
proto.crypto.GetDepositAddressRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2259
|
+
return proto.crypto.GetDepositAddressRequest.toObject(opt_includeInstance, this);
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* Static version of the {@see toObject} method.
|
|
2265
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2266
|
+
* the JSPB instance for transitional soy proto support:
|
|
2267
|
+
* http://goto/soy-param-migration
|
|
2268
|
+
* @param {!proto.crypto.GetDepositAddressRequest} msg The msg instance to transform.
|
|
2269
|
+
* @return {!Object}
|
|
2270
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2271
|
+
*/
|
|
2272
|
+
proto.crypto.GetDepositAddressRequest.toObject = function(includeInstance, msg) {
|
|
2273
|
+
var f, obj = {
|
|
2274
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2275
|
+
networkCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2276
|
+
assetCode: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
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.crypto.GetDepositAddressRequest}
|
|
2291
|
+
*/
|
|
2292
|
+
proto.crypto.GetDepositAddressRequest.deserializeBinary = function(bytes) {
|
|
2293
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2294
|
+
var msg = new proto.crypto.GetDepositAddressRequest;
|
|
2295
|
+
return proto.crypto.GetDepositAddressRequest.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.crypto.GetDepositAddressRequest} msg The message object to deserialize into.
|
|
2303
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2304
|
+
* @return {!proto.crypto.GetDepositAddressRequest}
|
|
2305
|
+
*/
|
|
2306
|
+
proto.crypto.GetDepositAddressRequest.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 {number} */ (reader.readUint64());
|
|
2315
|
+
msg.setUserId(value);
|
|
2316
|
+
break;
|
|
2317
|
+
case 2:
|
|
2318
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2319
|
+
msg.setNetworkCode(value);
|
|
2320
|
+
break;
|
|
2321
|
+
case 3:
|
|
2322
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2323
|
+
msg.setAssetCode(value);
|
|
2324
|
+
break;
|
|
2325
|
+
default:
|
|
2326
|
+
reader.skipField();
|
|
2327
|
+
break;
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
return msg;
|
|
2331
|
+
};
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2336
|
+
* @return {!Uint8Array}
|
|
2337
|
+
*/
|
|
2338
|
+
proto.crypto.GetDepositAddressRequest.prototype.serializeBinary = function() {
|
|
2339
|
+
var writer = new jspb.BinaryWriter();
|
|
2340
|
+
proto.crypto.GetDepositAddressRequest.serializeBinaryToWriter(this, writer);
|
|
2341
|
+
return writer.getResultBuffer();
|
|
2342
|
+
};
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2347
|
+
* format), writing to the given BinaryWriter.
|
|
2348
|
+
* @param {!proto.crypto.GetDepositAddressRequest} message
|
|
2349
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2350
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2351
|
+
*/
|
|
2352
|
+
proto.crypto.GetDepositAddressRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2353
|
+
var f = undefined;
|
|
2354
|
+
f = message.getUserId();
|
|
2355
|
+
if (f !== 0) {
|
|
2356
|
+
writer.writeUint64(
|
|
2357
|
+
1,
|
|
2358
|
+
f
|
|
2359
|
+
);
|
|
2360
|
+
}
|
|
2361
|
+
f = message.getNetworkCode();
|
|
2362
|
+
if (f.length > 0) {
|
|
2363
|
+
writer.writeString(
|
|
2364
|
+
2,
|
|
2365
|
+
f
|
|
2366
|
+
);
|
|
2367
|
+
}
|
|
2368
|
+
f = message.getAssetCode();
|
|
2369
|
+
if (f.length > 0) {
|
|
2370
|
+
writer.writeString(
|
|
2371
|
+
3,
|
|
2372
|
+
f
|
|
2373
|
+
);
|
|
2374
|
+
}
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
/**
|
|
2379
|
+
* optional uint64 user_id = 1;
|
|
2380
|
+
* @return {number}
|
|
2381
|
+
*/
|
|
2382
|
+
proto.crypto.GetDepositAddressRequest.prototype.getUserId = function() {
|
|
2383
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
/**
|
|
2388
|
+
* @param {number} value
|
|
2389
|
+
* @return {!proto.crypto.GetDepositAddressRequest} returns this
|
|
2390
|
+
*/
|
|
2391
|
+
proto.crypto.GetDepositAddressRequest.prototype.setUserId = function(value) {
|
|
2392
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2393
|
+
};
|
|
2394
|
+
|
|
2395
|
+
|
|
2396
|
+
/**
|
|
2397
|
+
* optional string network_code = 2;
|
|
2398
|
+
* @return {string}
|
|
2399
|
+
*/
|
|
2400
|
+
proto.crypto.GetDepositAddressRequest.prototype.getNetworkCode = function() {
|
|
2401
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2404
|
+
|
|
2405
|
+
/**
|
|
2406
|
+
* @param {string} value
|
|
2407
|
+
* @return {!proto.crypto.GetDepositAddressRequest} returns this
|
|
2408
|
+
*/
|
|
2409
|
+
proto.crypto.GetDepositAddressRequest.prototype.setNetworkCode = function(value) {
|
|
2410
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2411
|
+
};
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
/**
|
|
2415
|
+
* optional string asset_code = 3;
|
|
2416
|
+
* @return {string}
|
|
2417
|
+
*/
|
|
2418
|
+
proto.crypto.GetDepositAddressRequest.prototype.getAssetCode = function() {
|
|
2419
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2420
|
+
};
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
/**
|
|
2424
|
+
* @param {string} value
|
|
2425
|
+
* @return {!proto.crypto.GetDepositAddressRequest} returns this
|
|
2426
|
+
*/
|
|
2427
|
+
proto.crypto.GetDepositAddressRequest.prototype.setAssetCode = function(value) {
|
|
2428
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2429
|
+
};
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2436
|
+
/**
|
|
2437
|
+
* Creates an object representation of this proto.
|
|
2438
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2439
|
+
* Optional fields that are not set will be set to undefined.
|
|
2440
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2441
|
+
* For the list of reserved names please see:
|
|
2442
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2443
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2444
|
+
* JSPB instance for transitional soy proto support:
|
|
2445
|
+
* http://goto/soy-param-migration
|
|
2446
|
+
* @return {!Object}
|
|
2447
|
+
*/
|
|
2448
|
+
proto.crypto.GetDepositAddressResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2449
|
+
return proto.crypto.GetDepositAddressResponse.toObject(opt_includeInstance, this);
|
|
2450
|
+
};
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Static version of the {@see toObject} method.
|
|
2455
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2456
|
+
* the JSPB instance for transitional soy proto support:
|
|
2457
|
+
* http://goto/soy-param-migration
|
|
2458
|
+
* @param {!proto.crypto.GetDepositAddressResponse} msg The msg instance to transform.
|
|
2459
|
+
* @return {!Object}
|
|
2460
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2461
|
+
*/
|
|
2462
|
+
proto.crypto.GetDepositAddressResponse.toObject = function(includeInstance, msg) {
|
|
2463
|
+
var f, obj = {
|
|
2464
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2465
|
+
publicKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2466
|
+
networkCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2467
|
+
assetCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2468
|
+
chainType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2469
|
+
tokenStandard: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2470
|
+
contractAddress: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
2471
|
+
};
|
|
2472
|
+
|
|
2473
|
+
if (includeInstance) {
|
|
2474
|
+
obj.$jspbMessageInstance = msg;
|
|
2475
|
+
}
|
|
2476
|
+
return obj;
|
|
2477
|
+
};
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2483
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2484
|
+
* @return {!proto.crypto.GetDepositAddressResponse}
|
|
2485
|
+
*/
|
|
2486
|
+
proto.crypto.GetDepositAddressResponse.deserializeBinary = function(bytes) {
|
|
2487
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2488
|
+
var msg = new proto.crypto.GetDepositAddressResponse;
|
|
2489
|
+
return proto.crypto.GetDepositAddressResponse.deserializeBinaryFromReader(msg, reader);
|
|
2490
|
+
};
|
|
2491
|
+
|
|
2492
|
+
|
|
2493
|
+
/**
|
|
2494
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2495
|
+
* given reader into the given message object.
|
|
2496
|
+
* @param {!proto.crypto.GetDepositAddressResponse} msg The message object to deserialize into.
|
|
2497
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2498
|
+
* @return {!proto.crypto.GetDepositAddressResponse}
|
|
2499
|
+
*/
|
|
2500
|
+
proto.crypto.GetDepositAddressResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2501
|
+
while (reader.nextField()) {
|
|
2502
|
+
if (reader.isEndGroup()) {
|
|
2503
|
+
break;
|
|
2504
|
+
}
|
|
2505
|
+
var field = reader.getFieldNumber();
|
|
2506
|
+
switch (field) {
|
|
2507
|
+
case 1:
|
|
2508
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2509
|
+
msg.setAddress(value);
|
|
2510
|
+
break;
|
|
2511
|
+
case 2:
|
|
2512
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2513
|
+
msg.setPublicKey(value);
|
|
2514
|
+
break;
|
|
2515
|
+
case 3:
|
|
2516
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2517
|
+
msg.setNetworkCode(value);
|
|
2518
|
+
break;
|
|
2519
|
+
case 4:
|
|
2520
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2521
|
+
msg.setAssetCode(value);
|
|
2522
|
+
break;
|
|
2523
|
+
case 5:
|
|
2524
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2525
|
+
msg.setChainType(value);
|
|
2526
|
+
break;
|
|
2527
|
+
case 6:
|
|
2528
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2529
|
+
msg.setTokenStandard(value);
|
|
2530
|
+
break;
|
|
2531
|
+
case 7:
|
|
2532
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2533
|
+
msg.setContractAddress(value);
|
|
2534
|
+
break;
|
|
2535
|
+
default:
|
|
2536
|
+
reader.skipField();
|
|
2537
|
+
break;
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
return msg;
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2546
|
+
* @return {!Uint8Array}
|
|
2547
|
+
*/
|
|
2548
|
+
proto.crypto.GetDepositAddressResponse.prototype.serializeBinary = function() {
|
|
2549
|
+
var writer = new jspb.BinaryWriter();
|
|
2550
|
+
proto.crypto.GetDepositAddressResponse.serializeBinaryToWriter(this, writer);
|
|
2551
|
+
return writer.getResultBuffer();
|
|
2552
|
+
};
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2557
|
+
* format), writing to the given BinaryWriter.
|
|
2558
|
+
* @param {!proto.crypto.GetDepositAddressResponse} message
|
|
2559
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2560
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2561
|
+
*/
|
|
2562
|
+
proto.crypto.GetDepositAddressResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2563
|
+
var f = undefined;
|
|
2564
|
+
f = message.getAddress();
|
|
2565
|
+
if (f.length > 0) {
|
|
2566
|
+
writer.writeString(
|
|
2567
|
+
1,
|
|
2568
|
+
f
|
|
2569
|
+
);
|
|
2570
|
+
}
|
|
2571
|
+
f = message.getPublicKey();
|
|
2572
|
+
if (f.length > 0) {
|
|
2573
|
+
writer.writeString(
|
|
2574
|
+
2,
|
|
2575
|
+
f
|
|
2576
|
+
);
|
|
2577
|
+
}
|
|
2578
|
+
f = message.getNetworkCode();
|
|
2579
|
+
if (f.length > 0) {
|
|
2580
|
+
writer.writeString(
|
|
2581
|
+
3,
|
|
2582
|
+
f
|
|
2583
|
+
);
|
|
2584
|
+
}
|
|
2585
|
+
f = message.getAssetCode();
|
|
2586
|
+
if (f.length > 0) {
|
|
2587
|
+
writer.writeString(
|
|
2588
|
+
4,
|
|
2589
|
+
f
|
|
2590
|
+
);
|
|
2591
|
+
}
|
|
2592
|
+
f = message.getChainType();
|
|
2593
|
+
if (f.length > 0) {
|
|
2594
|
+
writer.writeString(
|
|
2595
|
+
5,
|
|
2596
|
+
f
|
|
2597
|
+
);
|
|
2598
|
+
}
|
|
2599
|
+
f = message.getTokenStandard();
|
|
2600
|
+
if (f.length > 0) {
|
|
2601
|
+
writer.writeString(
|
|
2602
|
+
6,
|
|
2603
|
+
f
|
|
2604
|
+
);
|
|
2605
|
+
}
|
|
2606
|
+
f = message.getContractAddress();
|
|
2607
|
+
if (f.length > 0) {
|
|
2608
|
+
writer.writeString(
|
|
2609
|
+
7,
|
|
2610
|
+
f
|
|
2611
|
+
);
|
|
2612
|
+
}
|
|
2613
|
+
};
|
|
2614
|
+
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* optional string address = 1;
|
|
2618
|
+
* @return {string}
|
|
2619
|
+
*/
|
|
2620
|
+
proto.crypto.GetDepositAddressResponse.prototype.getAddress = function() {
|
|
2621
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2622
|
+
};
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
/**
|
|
2626
|
+
* @param {string} value
|
|
2627
|
+
* @return {!proto.crypto.GetDepositAddressResponse} returns this
|
|
2628
|
+
*/
|
|
2629
|
+
proto.crypto.GetDepositAddressResponse.prototype.setAddress = function(value) {
|
|
2630
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2631
|
+
};
|
|
2632
|
+
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* optional string public_key = 2;
|
|
2636
|
+
* @return {string}
|
|
2637
|
+
*/
|
|
2638
|
+
proto.crypto.GetDepositAddressResponse.prototype.getPublicKey = function() {
|
|
2639
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* @param {string} value
|
|
2645
|
+
* @return {!proto.crypto.GetDepositAddressResponse} returns this
|
|
2646
|
+
*/
|
|
2647
|
+
proto.crypto.GetDepositAddressResponse.prototype.setPublicKey = function(value) {
|
|
2648
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* optional string network_code = 3;
|
|
2654
|
+
* @return {string}
|
|
2655
|
+
*/
|
|
2656
|
+
proto.crypto.GetDepositAddressResponse.prototype.getNetworkCode = function() {
|
|
2657
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2658
|
+
};
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* @param {string} value
|
|
2663
|
+
* @return {!proto.crypto.GetDepositAddressResponse} returns this
|
|
2664
|
+
*/
|
|
2665
|
+
proto.crypto.GetDepositAddressResponse.prototype.setNetworkCode = function(value) {
|
|
2666
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* optional string asset_code = 4;
|
|
2672
|
+
* @return {string}
|
|
2673
|
+
*/
|
|
2674
|
+
proto.crypto.GetDepositAddressResponse.prototype.getAssetCode = function() {
|
|
2675
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* @param {string} value
|
|
2681
|
+
* @return {!proto.crypto.GetDepositAddressResponse} returns this
|
|
2682
|
+
*/
|
|
2683
|
+
proto.crypto.GetDepositAddressResponse.prototype.setAssetCode = function(value) {
|
|
2684
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* optional string chain_type = 5;
|
|
2690
|
+
* @return {string}
|
|
2691
|
+
*/
|
|
2692
|
+
proto.crypto.GetDepositAddressResponse.prototype.getChainType = function() {
|
|
2693
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* @param {string} value
|
|
2699
|
+
* @return {!proto.crypto.GetDepositAddressResponse} returns this
|
|
2700
|
+
*/
|
|
2701
|
+
proto.crypto.GetDepositAddressResponse.prototype.setChainType = function(value) {
|
|
2702
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
2703
|
+
};
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
/**
|
|
2707
|
+
* optional string token_standard = 6;
|
|
2708
|
+
* @return {string}
|
|
2709
|
+
*/
|
|
2710
|
+
proto.crypto.GetDepositAddressResponse.prototype.getTokenStandard = function() {
|
|
2711
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
/**
|
|
2716
|
+
* @param {string} value
|
|
2717
|
+
* @return {!proto.crypto.GetDepositAddressResponse} returns this
|
|
2718
|
+
*/
|
|
2719
|
+
proto.crypto.GetDepositAddressResponse.prototype.setTokenStandard = function(value) {
|
|
2720
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* optional string contract_address = 7;
|
|
2726
|
+
* @return {string}
|
|
2727
|
+
*/
|
|
2728
|
+
proto.crypto.GetDepositAddressResponse.prototype.getContractAddress = function() {
|
|
2729
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
/**
|
|
2734
|
+
* @param {string} value
|
|
2735
|
+
* @return {!proto.crypto.GetDepositAddressResponse} returns this
|
|
2736
|
+
*/
|
|
2737
|
+
proto.crypto.GetDepositAddressResponse.prototype.setContractAddress = function(value) {
|
|
2738
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
2739
|
+
};
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2746
|
+
/**
|
|
2747
|
+
* Creates an object representation of this proto.
|
|
2748
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2749
|
+
* Optional fields that are not set will be set to undefined.
|
|
2750
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2751
|
+
* For the list of reserved names please see:
|
|
2752
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2753
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2754
|
+
* JSPB instance for transitional soy proto support:
|
|
2755
|
+
* http://goto/soy-param-migration
|
|
2756
|
+
* @return {!Object}
|
|
2757
|
+
*/
|
|
2758
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2759
|
+
return proto.crypto.CreateWithdrawalTransferRequest.toObject(opt_includeInstance, this);
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* Static version of the {@see toObject} method.
|
|
2765
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2766
|
+
* the JSPB instance for transitional soy proto support:
|
|
2767
|
+
* http://goto/soy-param-migration
|
|
2768
|
+
* @param {!proto.crypto.CreateWithdrawalTransferRequest} msg The msg instance to transform.
|
|
2769
|
+
* @return {!Object}
|
|
2770
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2771
|
+
*/
|
|
2772
|
+
proto.crypto.CreateWithdrawalTransferRequest.toObject = function(includeInstance, msg) {
|
|
2773
|
+
var f, obj = {
|
|
2774
|
+
idempotencyKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2775
|
+
paymentOperationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2776
|
+
withdrawalOperationId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2777
|
+
userId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2778
|
+
networkCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2779
|
+
assetCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2780
|
+
destinationAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2781
|
+
amountRaw: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2782
|
+
amountDecimal: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
2783
|
+
feeAssetCode: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
2784
|
+
feeAmountRaw: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
2785
|
+
feeAmountDecimal: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
2786
|
+
};
|
|
2787
|
+
|
|
2788
|
+
if (includeInstance) {
|
|
2789
|
+
obj.$jspbMessageInstance = msg;
|
|
2790
|
+
}
|
|
2791
|
+
return obj;
|
|
2792
|
+
};
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2798
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2799
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest}
|
|
2800
|
+
*/
|
|
2801
|
+
proto.crypto.CreateWithdrawalTransferRequest.deserializeBinary = function(bytes) {
|
|
2802
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2803
|
+
var msg = new proto.crypto.CreateWithdrawalTransferRequest;
|
|
2804
|
+
return proto.crypto.CreateWithdrawalTransferRequest.deserializeBinaryFromReader(msg, reader);
|
|
2805
|
+
};
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2810
|
+
* given reader into the given message object.
|
|
2811
|
+
* @param {!proto.crypto.CreateWithdrawalTransferRequest} msg The message object to deserialize into.
|
|
2812
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2813
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest}
|
|
2814
|
+
*/
|
|
2815
|
+
proto.crypto.CreateWithdrawalTransferRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2816
|
+
while (reader.nextField()) {
|
|
2817
|
+
if (reader.isEndGroup()) {
|
|
2818
|
+
break;
|
|
2819
|
+
}
|
|
2820
|
+
var field = reader.getFieldNumber();
|
|
2821
|
+
switch (field) {
|
|
2822
|
+
case 1:
|
|
2823
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2824
|
+
msg.setIdempotencyKey(value);
|
|
2825
|
+
break;
|
|
2826
|
+
case 2:
|
|
2827
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2828
|
+
msg.setPaymentOperationId(value);
|
|
2829
|
+
break;
|
|
2830
|
+
case 3:
|
|
2831
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2832
|
+
msg.setWithdrawalOperationId(value);
|
|
2833
|
+
break;
|
|
2834
|
+
case 4:
|
|
2835
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
2836
|
+
msg.setUserId(value);
|
|
2837
|
+
break;
|
|
2838
|
+
case 5:
|
|
2839
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2840
|
+
msg.setNetworkCode(value);
|
|
2841
|
+
break;
|
|
2842
|
+
case 6:
|
|
2843
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2844
|
+
msg.setAssetCode(value);
|
|
2845
|
+
break;
|
|
2846
|
+
case 7:
|
|
2847
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2848
|
+
msg.setDestinationAddress(value);
|
|
2849
|
+
break;
|
|
2850
|
+
case 8:
|
|
2851
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2852
|
+
msg.setAmountRaw(value);
|
|
2853
|
+
break;
|
|
2854
|
+
case 9:
|
|
2855
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2856
|
+
msg.setAmountDecimal(value);
|
|
2857
|
+
break;
|
|
2858
|
+
case 10:
|
|
2859
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2860
|
+
msg.setFeeAssetCode(value);
|
|
2861
|
+
break;
|
|
2862
|
+
case 11:
|
|
2863
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2864
|
+
msg.setFeeAmountRaw(value);
|
|
2865
|
+
break;
|
|
2866
|
+
case 12:
|
|
2867
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2868
|
+
msg.setFeeAmountDecimal(value);
|
|
2869
|
+
break;
|
|
2870
|
+
default:
|
|
2871
|
+
reader.skipField();
|
|
2872
|
+
break;
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
return msg;
|
|
2876
|
+
};
|
|
2877
|
+
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2881
|
+
* @return {!Uint8Array}
|
|
2882
|
+
*/
|
|
2883
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.serializeBinary = function() {
|
|
2884
|
+
var writer = new jspb.BinaryWriter();
|
|
2885
|
+
proto.crypto.CreateWithdrawalTransferRequest.serializeBinaryToWriter(this, writer);
|
|
2886
|
+
return writer.getResultBuffer();
|
|
2887
|
+
};
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2892
|
+
* format), writing to the given BinaryWriter.
|
|
2893
|
+
* @param {!proto.crypto.CreateWithdrawalTransferRequest} message
|
|
2894
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2895
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2896
|
+
*/
|
|
2897
|
+
proto.crypto.CreateWithdrawalTransferRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2898
|
+
var f = undefined;
|
|
2899
|
+
f = message.getIdempotencyKey();
|
|
2900
|
+
if (f.length > 0) {
|
|
2901
|
+
writer.writeString(
|
|
2902
|
+
1,
|
|
2903
|
+
f
|
|
2904
|
+
);
|
|
2905
|
+
}
|
|
2906
|
+
f = message.getPaymentOperationId();
|
|
2907
|
+
if (f.length > 0) {
|
|
2908
|
+
writer.writeString(
|
|
2909
|
+
2,
|
|
2910
|
+
f
|
|
2911
|
+
);
|
|
2912
|
+
}
|
|
2913
|
+
f = message.getWithdrawalOperationId();
|
|
2914
|
+
if (f.length > 0) {
|
|
2915
|
+
writer.writeString(
|
|
2916
|
+
3,
|
|
2917
|
+
f
|
|
2918
|
+
);
|
|
2919
|
+
}
|
|
2920
|
+
f = message.getUserId();
|
|
2921
|
+
if (f !== 0) {
|
|
2922
|
+
writer.writeUint64(
|
|
2923
|
+
4,
|
|
2924
|
+
f
|
|
2925
|
+
);
|
|
2926
|
+
}
|
|
2927
|
+
f = message.getNetworkCode();
|
|
2928
|
+
if (f.length > 0) {
|
|
2929
|
+
writer.writeString(
|
|
2930
|
+
5,
|
|
2931
|
+
f
|
|
2932
|
+
);
|
|
2933
|
+
}
|
|
2934
|
+
f = message.getAssetCode();
|
|
2935
|
+
if (f.length > 0) {
|
|
2936
|
+
writer.writeString(
|
|
2937
|
+
6,
|
|
2938
|
+
f
|
|
2939
|
+
);
|
|
2940
|
+
}
|
|
2941
|
+
f = message.getDestinationAddress();
|
|
2942
|
+
if (f.length > 0) {
|
|
2943
|
+
writer.writeString(
|
|
2944
|
+
7,
|
|
2945
|
+
f
|
|
2946
|
+
);
|
|
2947
|
+
}
|
|
2948
|
+
f = message.getAmountRaw();
|
|
2949
|
+
if (f.length > 0) {
|
|
2950
|
+
writer.writeString(
|
|
2951
|
+
8,
|
|
2952
|
+
f
|
|
2953
|
+
);
|
|
2954
|
+
}
|
|
2955
|
+
f = message.getAmountDecimal();
|
|
2956
|
+
if (f.length > 0) {
|
|
2957
|
+
writer.writeString(
|
|
2958
|
+
9,
|
|
2959
|
+
f
|
|
2960
|
+
);
|
|
2961
|
+
}
|
|
2962
|
+
f = message.getFeeAssetCode();
|
|
2963
|
+
if (f.length > 0) {
|
|
2964
|
+
writer.writeString(
|
|
2965
|
+
10,
|
|
2966
|
+
f
|
|
2967
|
+
);
|
|
2968
|
+
}
|
|
2969
|
+
f = message.getFeeAmountRaw();
|
|
2970
|
+
if (f.length > 0) {
|
|
2971
|
+
writer.writeString(
|
|
2972
|
+
11,
|
|
2973
|
+
f
|
|
2974
|
+
);
|
|
2975
|
+
}
|
|
2976
|
+
f = message.getFeeAmountDecimal();
|
|
2977
|
+
if (f.length > 0) {
|
|
2978
|
+
writer.writeString(
|
|
2979
|
+
12,
|
|
2980
|
+
f
|
|
2981
|
+
);
|
|
2982
|
+
}
|
|
2983
|
+
};
|
|
2984
|
+
|
|
2985
|
+
|
|
2986
|
+
/**
|
|
2987
|
+
* optional string idempotency_key = 1;
|
|
2988
|
+
* @return {string}
|
|
2989
|
+
*/
|
|
2990
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getIdempotencyKey = function() {
|
|
2991
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2992
|
+
};
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
/**
|
|
2996
|
+
* @param {string} value
|
|
2997
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
2998
|
+
*/
|
|
2999
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setIdempotencyKey = function(value) {
|
|
3000
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
|
|
3004
|
+
/**
|
|
3005
|
+
* optional string payment_operation_id = 2;
|
|
3006
|
+
* @return {string}
|
|
3007
|
+
*/
|
|
3008
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getPaymentOperationId = function() {
|
|
3009
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3010
|
+
};
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
/**
|
|
3014
|
+
* @param {string} value
|
|
3015
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3016
|
+
*/
|
|
3017
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setPaymentOperationId = function(value) {
|
|
3018
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
/**
|
|
3023
|
+
* optional string withdrawal_operation_id = 3;
|
|
3024
|
+
* @return {string}
|
|
3025
|
+
*/
|
|
3026
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getWithdrawalOperationId = function() {
|
|
3027
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3028
|
+
};
|
|
3029
|
+
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* @param {string} value
|
|
3033
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3034
|
+
*/
|
|
3035
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setWithdrawalOperationId = function(value) {
|
|
3036
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3037
|
+
};
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
/**
|
|
3041
|
+
* optional uint64 user_id = 4;
|
|
3042
|
+
* @return {number}
|
|
3043
|
+
*/
|
|
3044
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getUserId = function() {
|
|
3045
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
3046
|
+
};
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
/**
|
|
3050
|
+
* @param {number} value
|
|
3051
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3052
|
+
*/
|
|
3053
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setUserId = function(value) {
|
|
3054
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
3055
|
+
};
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* optional string network_code = 5;
|
|
3060
|
+
* @return {string}
|
|
3061
|
+
*/
|
|
3062
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getNetworkCode = function() {
|
|
3063
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* @param {string} value
|
|
3069
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3070
|
+
*/
|
|
3071
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setNetworkCode = function(value) {
|
|
3072
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3073
|
+
};
|
|
3074
|
+
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* optional string asset_code = 6;
|
|
3078
|
+
* @return {string}
|
|
3079
|
+
*/
|
|
3080
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getAssetCode = function() {
|
|
3081
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* @param {string} value
|
|
3087
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3088
|
+
*/
|
|
3089
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setAssetCode = function(value) {
|
|
3090
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
3091
|
+
};
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* optional string destination_address = 7;
|
|
3096
|
+
* @return {string}
|
|
3097
|
+
*/
|
|
3098
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getDestinationAddress = function() {
|
|
3099
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
/**
|
|
3104
|
+
* @param {string} value
|
|
3105
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3106
|
+
*/
|
|
3107
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setDestinationAddress = function(value) {
|
|
3108
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3109
|
+
};
|
|
3110
|
+
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* optional string amount_raw = 8;
|
|
3114
|
+
* @return {string}
|
|
3115
|
+
*/
|
|
3116
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getAmountRaw = function() {
|
|
3117
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
3118
|
+
};
|
|
3119
|
+
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* @param {string} value
|
|
3123
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3124
|
+
*/
|
|
3125
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setAmountRaw = function(value) {
|
|
3126
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
3127
|
+
};
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
/**
|
|
3131
|
+
* optional string amount_decimal = 9;
|
|
3132
|
+
* @return {string}
|
|
3133
|
+
*/
|
|
3134
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getAmountDecimal = function() {
|
|
3135
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
3136
|
+
};
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* @param {string} value
|
|
3141
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3142
|
+
*/
|
|
3143
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setAmountDecimal = function(value) {
|
|
3144
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
3145
|
+
};
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
/**
|
|
3149
|
+
* optional string fee_asset_code = 10;
|
|
3150
|
+
* @return {string}
|
|
3151
|
+
*/
|
|
3152
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getFeeAssetCode = function() {
|
|
3153
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* @param {string} value
|
|
3159
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3160
|
+
*/
|
|
3161
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setFeeAssetCode = function(value) {
|
|
3162
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
/**
|
|
3167
|
+
* optional string fee_amount_raw = 11;
|
|
3168
|
+
* @return {string}
|
|
3169
|
+
*/
|
|
3170
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getFeeAmountRaw = function() {
|
|
3171
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
3172
|
+
};
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
/**
|
|
3176
|
+
* @param {string} value
|
|
3177
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3178
|
+
*/
|
|
3179
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setFeeAmountRaw = function(value) {
|
|
3180
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
3181
|
+
};
|
|
3182
|
+
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* optional string fee_amount_decimal = 12;
|
|
3186
|
+
* @return {string}
|
|
3187
|
+
*/
|
|
3188
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.getFeeAmountDecimal = function() {
|
|
3189
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
3190
|
+
};
|
|
3191
|
+
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* @param {string} value
|
|
3195
|
+
* @return {!proto.crypto.CreateWithdrawalTransferRequest} returns this
|
|
3196
|
+
*/
|
|
3197
|
+
proto.crypto.CreateWithdrawalTransferRequest.prototype.setFeeAmountDecimal = function(value) {
|
|
3198
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
3199
|
+
};
|
|
3200
|
+
|
|
3201
|
+
|
|
3202
|
+
|
|
3203
|
+
|
|
3204
|
+
|
|
3205
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3206
|
+
/**
|
|
3207
|
+
* Creates an object representation of this proto.
|
|
3208
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3209
|
+
* Optional fields that are not set will be set to undefined.
|
|
3210
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3211
|
+
* For the list of reserved names please see:
|
|
3212
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3213
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3214
|
+
* JSPB instance for transitional soy proto support:
|
|
3215
|
+
* http://goto/soy-param-migration
|
|
3216
|
+
* @return {!Object}
|
|
3217
|
+
*/
|
|
3218
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3219
|
+
return proto.crypto.CreateWithdrawalTransferResponse.toObject(opt_includeInstance, this);
|
|
3220
|
+
};
|
|
3221
|
+
|
|
3222
|
+
|
|
3223
|
+
/**
|
|
3224
|
+
* Static version of the {@see toObject} method.
|
|
3225
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3226
|
+
* the JSPB instance for transitional soy proto support:
|
|
3227
|
+
* http://goto/soy-param-migration
|
|
3228
|
+
* @param {!proto.crypto.CreateWithdrawalTransferResponse} msg The msg instance to transform.
|
|
3229
|
+
* @return {!Object}
|
|
3230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3231
|
+
*/
|
|
3232
|
+
proto.crypto.CreateWithdrawalTransferResponse.toObject = function(includeInstance, msg) {
|
|
3233
|
+
var f, obj = {
|
|
3234
|
+
publicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3235
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3236
|
+
txSignature: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3237
|
+
networkCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3238
|
+
assetCode: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
3239
|
+
};
|
|
3240
|
+
|
|
3241
|
+
if (includeInstance) {
|
|
3242
|
+
obj.$jspbMessageInstance = msg;
|
|
3243
|
+
}
|
|
3244
|
+
return obj;
|
|
3245
|
+
};
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3251
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3252
|
+
* @return {!proto.crypto.CreateWithdrawalTransferResponse}
|
|
3253
|
+
*/
|
|
3254
|
+
proto.crypto.CreateWithdrawalTransferResponse.deserializeBinary = function(bytes) {
|
|
3255
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3256
|
+
var msg = new proto.crypto.CreateWithdrawalTransferResponse;
|
|
3257
|
+
return proto.crypto.CreateWithdrawalTransferResponse.deserializeBinaryFromReader(msg, reader);
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3263
|
+
* given reader into the given message object.
|
|
3264
|
+
* @param {!proto.crypto.CreateWithdrawalTransferResponse} msg The message object to deserialize into.
|
|
3265
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3266
|
+
* @return {!proto.crypto.CreateWithdrawalTransferResponse}
|
|
3267
|
+
*/
|
|
3268
|
+
proto.crypto.CreateWithdrawalTransferResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3269
|
+
while (reader.nextField()) {
|
|
3270
|
+
if (reader.isEndGroup()) {
|
|
3271
|
+
break;
|
|
3272
|
+
}
|
|
3273
|
+
var field = reader.getFieldNumber();
|
|
3274
|
+
switch (field) {
|
|
3275
|
+
case 1:
|
|
3276
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3277
|
+
msg.setPublicId(value);
|
|
3278
|
+
break;
|
|
3279
|
+
case 2:
|
|
3280
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3281
|
+
msg.setStatus(value);
|
|
3282
|
+
break;
|
|
3283
|
+
case 3:
|
|
3284
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3285
|
+
msg.setTxSignature(value);
|
|
3286
|
+
break;
|
|
3287
|
+
case 4:
|
|
3288
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3289
|
+
msg.setNetworkCode(value);
|
|
3290
|
+
break;
|
|
3291
|
+
case 5:
|
|
3292
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3293
|
+
msg.setAssetCode(value);
|
|
3294
|
+
break;
|
|
3295
|
+
default:
|
|
3296
|
+
reader.skipField();
|
|
3297
|
+
break;
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
return msg;
|
|
3301
|
+
};
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3306
|
+
* @return {!Uint8Array}
|
|
3307
|
+
*/
|
|
3308
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.serializeBinary = function() {
|
|
3309
|
+
var writer = new jspb.BinaryWriter();
|
|
3310
|
+
proto.crypto.CreateWithdrawalTransferResponse.serializeBinaryToWriter(this, writer);
|
|
3311
|
+
return writer.getResultBuffer();
|
|
3312
|
+
};
|
|
3313
|
+
|
|
3314
|
+
|
|
3315
|
+
/**
|
|
3316
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3317
|
+
* format), writing to the given BinaryWriter.
|
|
3318
|
+
* @param {!proto.crypto.CreateWithdrawalTransferResponse} message
|
|
3319
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3320
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3321
|
+
*/
|
|
3322
|
+
proto.crypto.CreateWithdrawalTransferResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3323
|
+
var f = undefined;
|
|
3324
|
+
f = message.getPublicId();
|
|
3325
|
+
if (f.length > 0) {
|
|
3326
|
+
writer.writeString(
|
|
3327
|
+
1,
|
|
3328
|
+
f
|
|
3329
|
+
);
|
|
3330
|
+
}
|
|
3331
|
+
f = message.getStatus();
|
|
3332
|
+
if (f.length > 0) {
|
|
3333
|
+
writer.writeString(
|
|
3334
|
+
2,
|
|
3335
|
+
f
|
|
3336
|
+
);
|
|
3337
|
+
}
|
|
3338
|
+
f = message.getTxSignature();
|
|
3339
|
+
if (f.length > 0) {
|
|
3340
|
+
writer.writeString(
|
|
3341
|
+
3,
|
|
3342
|
+
f
|
|
3343
|
+
);
|
|
3344
|
+
}
|
|
3345
|
+
f = message.getNetworkCode();
|
|
3346
|
+
if (f.length > 0) {
|
|
3347
|
+
writer.writeString(
|
|
3348
|
+
4,
|
|
3349
|
+
f
|
|
3350
|
+
);
|
|
3351
|
+
}
|
|
3352
|
+
f = message.getAssetCode();
|
|
3353
|
+
if (f.length > 0) {
|
|
3354
|
+
writer.writeString(
|
|
3355
|
+
5,
|
|
3356
|
+
f
|
|
3357
|
+
);
|
|
3358
|
+
}
|
|
3359
|
+
};
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
/**
|
|
3363
|
+
* optional string public_id = 1;
|
|
3364
|
+
* @return {string}
|
|
3365
|
+
*/
|
|
3366
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.getPublicId = function() {
|
|
3367
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3368
|
+
};
|
|
3369
|
+
|
|
3370
|
+
|
|
3371
|
+
/**
|
|
3372
|
+
* @param {string} value
|
|
3373
|
+
* @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
|
|
3374
|
+
*/
|
|
3375
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.setPublicId = function(value) {
|
|
3376
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3377
|
+
};
|
|
3378
|
+
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
* optional string status = 2;
|
|
3382
|
+
* @return {string}
|
|
3383
|
+
*/
|
|
3384
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.getStatus = function() {
|
|
3385
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3386
|
+
};
|
|
3387
|
+
|
|
3388
|
+
|
|
3389
|
+
/**
|
|
3390
|
+
* @param {string} value
|
|
3391
|
+
* @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
|
|
3392
|
+
*/
|
|
3393
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.setStatus = function(value) {
|
|
3394
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3395
|
+
};
|
|
3396
|
+
|
|
3397
|
+
|
|
3398
|
+
/**
|
|
3399
|
+
* optional string tx_signature = 3;
|
|
3400
|
+
* @return {string}
|
|
3401
|
+
*/
|
|
3402
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.getTxSignature = function() {
|
|
3403
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3404
|
+
};
|
|
3405
|
+
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* @param {string} value
|
|
3409
|
+
* @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
|
|
3410
|
+
*/
|
|
3411
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.setTxSignature = function(value) {
|
|
3412
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3413
|
+
};
|
|
3414
|
+
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* optional string network_code = 4;
|
|
3418
|
+
* @return {string}
|
|
3419
|
+
*/
|
|
3420
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.getNetworkCode = function() {
|
|
3421
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3422
|
+
};
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
/**
|
|
3426
|
+
* @param {string} value
|
|
3427
|
+
* @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
|
|
3428
|
+
*/
|
|
3429
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.setNetworkCode = function(value) {
|
|
3430
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3431
|
+
};
|
|
3432
|
+
|
|
3433
|
+
|
|
3434
|
+
/**
|
|
3435
|
+
* optional string asset_code = 5;
|
|
3436
|
+
* @return {string}
|
|
3437
|
+
*/
|
|
3438
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.getAssetCode = function() {
|
|
3439
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3440
|
+
};
|
|
3441
|
+
|
|
3442
|
+
|
|
3443
|
+
/**
|
|
3444
|
+
* @param {string} value
|
|
3445
|
+
* @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
|
|
3446
|
+
*/
|
|
3447
|
+
proto.crypto.CreateWithdrawalTransferResponse.prototype.setAssetCode = function(value) {
|
|
3448
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3449
|
+
};
|
|
3450
|
+
|
|
3451
|
+
|
|
3452
|
+
|
|
3453
|
+
|
|
3454
|
+
|
|
3455
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3456
|
+
/**
|
|
3457
|
+
* Creates an object representation of this proto.
|
|
3458
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3459
|
+
* Optional fields that are not set will be set to undefined.
|
|
3460
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3461
|
+
* For the list of reserved names please see:
|
|
3462
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3463
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3464
|
+
* JSPB instance for transitional soy proto support:
|
|
3465
|
+
* http://goto/soy-param-migration
|
|
3466
|
+
* @return {!Object}
|
|
3467
|
+
*/
|
|
3468
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3469
|
+
return proto.crypto.ReadWithdrawalTransferRequest.toObject(opt_includeInstance, this);
|
|
3470
|
+
};
|
|
3471
|
+
|
|
3472
|
+
|
|
3473
|
+
/**
|
|
3474
|
+
* Static version of the {@see toObject} method.
|
|
3475
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3476
|
+
* the JSPB instance for transitional soy proto support:
|
|
3477
|
+
* http://goto/soy-param-migration
|
|
3478
|
+
* @param {!proto.crypto.ReadWithdrawalTransferRequest} msg The msg instance to transform.
|
|
3479
|
+
* @return {!Object}
|
|
3480
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3481
|
+
*/
|
|
3482
|
+
proto.crypto.ReadWithdrawalTransferRequest.toObject = function(includeInstance, msg) {
|
|
3483
|
+
var f, obj = {
|
|
3484
|
+
publicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3485
|
+
idempotencyKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3486
|
+
withdrawalOperationId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
3487
|
+
};
|
|
3488
|
+
|
|
3489
|
+
if (includeInstance) {
|
|
3490
|
+
obj.$jspbMessageInstance = msg;
|
|
3491
|
+
}
|
|
3492
|
+
return obj;
|
|
3493
|
+
};
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
|
|
3497
|
+
/**
|
|
3498
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3499
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3500
|
+
* @return {!proto.crypto.ReadWithdrawalTransferRequest}
|
|
3501
|
+
*/
|
|
3502
|
+
proto.crypto.ReadWithdrawalTransferRequest.deserializeBinary = function(bytes) {
|
|
3503
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3504
|
+
var msg = new proto.crypto.ReadWithdrawalTransferRequest;
|
|
3505
|
+
return proto.crypto.ReadWithdrawalTransferRequest.deserializeBinaryFromReader(msg, reader);
|
|
3506
|
+
};
|
|
3507
|
+
|
|
3508
|
+
|
|
3509
|
+
/**
|
|
3510
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3511
|
+
* given reader into the given message object.
|
|
3512
|
+
* @param {!proto.crypto.ReadWithdrawalTransferRequest} msg The message object to deserialize into.
|
|
3513
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3514
|
+
* @return {!proto.crypto.ReadWithdrawalTransferRequest}
|
|
3515
|
+
*/
|
|
3516
|
+
proto.crypto.ReadWithdrawalTransferRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3517
|
+
while (reader.nextField()) {
|
|
3518
|
+
if (reader.isEndGroup()) {
|
|
3519
|
+
break;
|
|
3520
|
+
}
|
|
3521
|
+
var field = reader.getFieldNumber();
|
|
3522
|
+
switch (field) {
|
|
3523
|
+
case 1:
|
|
3524
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3525
|
+
msg.setPublicId(value);
|
|
3526
|
+
break;
|
|
3527
|
+
case 2:
|
|
3528
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3529
|
+
msg.setIdempotencyKey(value);
|
|
3530
|
+
break;
|
|
3531
|
+
case 3:
|
|
3532
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3533
|
+
msg.setWithdrawalOperationId(value);
|
|
3534
|
+
break;
|
|
3535
|
+
default:
|
|
3536
|
+
reader.skipField();
|
|
3537
|
+
break;
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
return msg;
|
|
3541
|
+
};
|
|
3542
|
+
|
|
3543
|
+
|
|
3544
|
+
/**
|
|
3545
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3546
|
+
* @return {!Uint8Array}
|
|
3547
|
+
*/
|
|
3548
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.serializeBinary = function() {
|
|
3549
|
+
var writer = new jspb.BinaryWriter();
|
|
3550
|
+
proto.crypto.ReadWithdrawalTransferRequest.serializeBinaryToWriter(this, writer);
|
|
3551
|
+
return writer.getResultBuffer();
|
|
3552
|
+
};
|
|
3553
|
+
|
|
3554
|
+
|
|
3555
|
+
/**
|
|
3556
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3557
|
+
* format), writing to the given BinaryWriter.
|
|
3558
|
+
* @param {!proto.crypto.ReadWithdrawalTransferRequest} message
|
|
3559
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3560
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3561
|
+
*/
|
|
3562
|
+
proto.crypto.ReadWithdrawalTransferRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3563
|
+
var f = undefined;
|
|
3564
|
+
f = message.getPublicId();
|
|
3565
|
+
if (f.length > 0) {
|
|
3566
|
+
writer.writeString(
|
|
3567
|
+
1,
|
|
3568
|
+
f
|
|
3569
|
+
);
|
|
3570
|
+
}
|
|
3571
|
+
f = message.getIdempotencyKey();
|
|
3572
|
+
if (f.length > 0) {
|
|
3573
|
+
writer.writeString(
|
|
3574
|
+
2,
|
|
3575
|
+
f
|
|
3576
|
+
);
|
|
3577
|
+
}
|
|
3578
|
+
f = message.getWithdrawalOperationId();
|
|
3579
|
+
if (f.length > 0) {
|
|
3580
|
+
writer.writeString(
|
|
3581
|
+
3,
|
|
3582
|
+
f
|
|
3583
|
+
);
|
|
3584
|
+
}
|
|
3585
|
+
};
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* optional string public_id = 1;
|
|
3590
|
+
* @return {string}
|
|
3591
|
+
*/
|
|
3592
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.getPublicId = function() {
|
|
3593
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3594
|
+
};
|
|
3595
|
+
|
|
3596
|
+
|
|
3597
|
+
/**
|
|
3598
|
+
* @param {string} value
|
|
3599
|
+
* @return {!proto.crypto.ReadWithdrawalTransferRequest} returns this
|
|
3600
|
+
*/
|
|
3601
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.setPublicId = function(value) {
|
|
3602
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3603
|
+
};
|
|
3604
|
+
|
|
3605
|
+
|
|
3606
|
+
/**
|
|
3607
|
+
* optional string idempotency_key = 2;
|
|
3608
|
+
* @return {string}
|
|
3609
|
+
*/
|
|
3610
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.getIdempotencyKey = function() {
|
|
3611
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3612
|
+
};
|
|
3613
|
+
|
|
3614
|
+
|
|
3615
|
+
/**
|
|
3616
|
+
* @param {string} value
|
|
3617
|
+
* @return {!proto.crypto.ReadWithdrawalTransferRequest} returns this
|
|
3618
|
+
*/
|
|
3619
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.setIdempotencyKey = function(value) {
|
|
3620
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3621
|
+
};
|
|
3622
|
+
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* optional string withdrawal_operation_id = 3;
|
|
3626
|
+
* @return {string}
|
|
3627
|
+
*/
|
|
3628
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.getWithdrawalOperationId = function() {
|
|
3629
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3630
|
+
};
|
|
3631
|
+
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* @param {string} value
|
|
3635
|
+
* @return {!proto.crypto.ReadWithdrawalTransferRequest} returns this
|
|
3636
|
+
*/
|
|
3637
|
+
proto.crypto.ReadWithdrawalTransferRequest.prototype.setWithdrawalOperationId = function(value) {
|
|
3638
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3639
|
+
};
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3646
|
+
/**
|
|
3647
|
+
* Creates an object representation of this proto.
|
|
3648
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3649
|
+
* Optional fields that are not set will be set to undefined.
|
|
3650
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3651
|
+
* For the list of reserved names please see:
|
|
3652
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3653
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3654
|
+
* JSPB instance for transitional soy proto support:
|
|
3655
|
+
* http://goto/soy-param-migration
|
|
3656
|
+
* @return {!Object}
|
|
3657
|
+
*/
|
|
3658
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3659
|
+
return proto.crypto.ReadWithdrawalTransferResponse.toObject(opt_includeInstance, this);
|
|
3660
|
+
};
|
|
3661
|
+
|
|
3662
|
+
|
|
3663
|
+
/**
|
|
3664
|
+
* Static version of the {@see toObject} method.
|
|
3665
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3666
|
+
* the JSPB instance for transitional soy proto support:
|
|
3667
|
+
* http://goto/soy-param-migration
|
|
3668
|
+
* @param {!proto.crypto.ReadWithdrawalTransferResponse} msg The msg instance to transform.
|
|
3669
|
+
* @return {!Object}
|
|
3670
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3671
|
+
*/
|
|
3672
|
+
proto.crypto.ReadWithdrawalTransferResponse.toObject = function(includeInstance, msg) {
|
|
3673
|
+
var f, obj = {
|
|
3674
|
+
publicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3675
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3676
|
+
txSignature: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3677
|
+
networkCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3678
|
+
assetCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3679
|
+
destinationAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3680
|
+
amountRaw: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3681
|
+
amountDecimal: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3682
|
+
errorCode: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3683
|
+
errorMessage: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
3684
|
+
};
|
|
3685
|
+
|
|
3686
|
+
if (includeInstance) {
|
|
3687
|
+
obj.$jspbMessageInstance = msg;
|
|
3688
|
+
}
|
|
3689
|
+
return obj;
|
|
3690
|
+
};
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
/**
|
|
3695
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3696
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3697
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse}
|
|
3698
|
+
*/
|
|
3699
|
+
proto.crypto.ReadWithdrawalTransferResponse.deserializeBinary = function(bytes) {
|
|
3700
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3701
|
+
var msg = new proto.crypto.ReadWithdrawalTransferResponse;
|
|
3702
|
+
return proto.crypto.ReadWithdrawalTransferResponse.deserializeBinaryFromReader(msg, reader);
|
|
3703
|
+
};
|
|
3704
|
+
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3708
|
+
* given reader into the given message object.
|
|
3709
|
+
* @param {!proto.crypto.ReadWithdrawalTransferResponse} msg The message object to deserialize into.
|
|
3710
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3711
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse}
|
|
3712
|
+
*/
|
|
3713
|
+
proto.crypto.ReadWithdrawalTransferResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3714
|
+
while (reader.nextField()) {
|
|
3715
|
+
if (reader.isEndGroup()) {
|
|
3716
|
+
break;
|
|
3717
|
+
}
|
|
3718
|
+
var field = reader.getFieldNumber();
|
|
3719
|
+
switch (field) {
|
|
3720
|
+
case 1:
|
|
3721
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3722
|
+
msg.setPublicId(value);
|
|
3723
|
+
break;
|
|
3724
|
+
case 2:
|
|
3725
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3726
|
+
msg.setStatus(value);
|
|
3727
|
+
break;
|
|
3728
|
+
case 3:
|
|
3729
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3730
|
+
msg.setTxSignature(value);
|
|
3731
|
+
break;
|
|
3732
|
+
case 4:
|
|
3733
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3734
|
+
msg.setNetworkCode(value);
|
|
3735
|
+
break;
|
|
3736
|
+
case 5:
|
|
3737
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3738
|
+
msg.setAssetCode(value);
|
|
3739
|
+
break;
|
|
3740
|
+
case 6:
|
|
3741
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3742
|
+
msg.setDestinationAddress(value);
|
|
3743
|
+
break;
|
|
3744
|
+
case 7:
|
|
3745
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3746
|
+
msg.setAmountRaw(value);
|
|
3747
|
+
break;
|
|
3748
|
+
case 8:
|
|
3749
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3750
|
+
msg.setAmountDecimal(value);
|
|
3751
|
+
break;
|
|
3752
|
+
case 9:
|
|
3753
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3754
|
+
msg.setErrorCode(value);
|
|
3755
|
+
break;
|
|
3756
|
+
case 10:
|
|
3757
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3758
|
+
msg.setErrorMessage(value);
|
|
3759
|
+
break;
|
|
3760
|
+
default:
|
|
3761
|
+
reader.skipField();
|
|
3762
|
+
break;
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3765
|
+
return msg;
|
|
3766
|
+
};
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
/**
|
|
3770
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3771
|
+
* @return {!Uint8Array}
|
|
3772
|
+
*/
|
|
3773
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.serializeBinary = function() {
|
|
3774
|
+
var writer = new jspb.BinaryWriter();
|
|
3775
|
+
proto.crypto.ReadWithdrawalTransferResponse.serializeBinaryToWriter(this, writer);
|
|
3776
|
+
return writer.getResultBuffer();
|
|
3777
|
+
};
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
/**
|
|
3781
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3782
|
+
* format), writing to the given BinaryWriter.
|
|
3783
|
+
* @param {!proto.crypto.ReadWithdrawalTransferResponse} message
|
|
3784
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3785
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3786
|
+
*/
|
|
3787
|
+
proto.crypto.ReadWithdrawalTransferResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3788
|
+
var f = undefined;
|
|
3789
|
+
f = message.getPublicId();
|
|
3790
|
+
if (f.length > 0) {
|
|
3791
|
+
writer.writeString(
|
|
3792
|
+
1,
|
|
3793
|
+
f
|
|
3794
|
+
);
|
|
3795
|
+
}
|
|
3796
|
+
f = message.getStatus();
|
|
3797
|
+
if (f.length > 0) {
|
|
3798
|
+
writer.writeString(
|
|
3799
|
+
2,
|
|
3800
|
+
f
|
|
3801
|
+
);
|
|
3802
|
+
}
|
|
3803
|
+
f = message.getTxSignature();
|
|
3804
|
+
if (f.length > 0) {
|
|
3805
|
+
writer.writeString(
|
|
3806
|
+
3,
|
|
3807
|
+
f
|
|
3808
|
+
);
|
|
3809
|
+
}
|
|
3810
|
+
f = message.getNetworkCode();
|
|
3811
|
+
if (f.length > 0) {
|
|
3812
|
+
writer.writeString(
|
|
3813
|
+
4,
|
|
3814
|
+
f
|
|
3815
|
+
);
|
|
3816
|
+
}
|
|
3817
|
+
f = message.getAssetCode();
|
|
3818
|
+
if (f.length > 0) {
|
|
3819
|
+
writer.writeString(
|
|
3820
|
+
5,
|
|
3821
|
+
f
|
|
3822
|
+
);
|
|
3823
|
+
}
|
|
3824
|
+
f = message.getDestinationAddress();
|
|
3825
|
+
if (f.length > 0) {
|
|
3826
|
+
writer.writeString(
|
|
3827
|
+
6,
|
|
3828
|
+
f
|
|
3829
|
+
);
|
|
3830
|
+
}
|
|
3831
|
+
f = message.getAmountRaw();
|
|
3832
|
+
if (f.length > 0) {
|
|
3833
|
+
writer.writeString(
|
|
3834
|
+
7,
|
|
3835
|
+
f
|
|
3836
|
+
);
|
|
3837
|
+
}
|
|
3838
|
+
f = message.getAmountDecimal();
|
|
3839
|
+
if (f.length > 0) {
|
|
3840
|
+
writer.writeString(
|
|
3841
|
+
8,
|
|
3842
|
+
f
|
|
3843
|
+
);
|
|
3844
|
+
}
|
|
3845
|
+
f = message.getErrorCode();
|
|
3846
|
+
if (f.length > 0) {
|
|
3847
|
+
writer.writeString(
|
|
3848
|
+
9,
|
|
3849
|
+
f
|
|
3850
|
+
);
|
|
3851
|
+
}
|
|
3852
|
+
f = message.getErrorMessage();
|
|
3853
|
+
if (f.length > 0) {
|
|
3854
|
+
writer.writeString(
|
|
3855
|
+
10,
|
|
3856
|
+
f
|
|
3857
|
+
);
|
|
3858
|
+
}
|
|
3859
|
+
};
|
|
3860
|
+
|
|
3861
|
+
|
|
3862
|
+
/**
|
|
3863
|
+
* optional string public_id = 1;
|
|
3864
|
+
* @return {string}
|
|
3865
|
+
*/
|
|
3866
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getPublicId = function() {
|
|
3867
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3868
|
+
};
|
|
3869
|
+
|
|
3870
|
+
|
|
3871
|
+
/**
|
|
3872
|
+
* @param {string} value
|
|
3873
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
3874
|
+
*/
|
|
3875
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setPublicId = function(value) {
|
|
3876
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3877
|
+
};
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
/**
|
|
3881
|
+
* optional string status = 2;
|
|
3882
|
+
* @return {string}
|
|
3883
|
+
*/
|
|
3884
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getStatus = function() {
|
|
3885
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3886
|
+
};
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* @param {string} value
|
|
3891
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
3892
|
+
*/
|
|
3893
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setStatus = function(value) {
|
|
3894
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3895
|
+
};
|
|
3896
|
+
|
|
3897
|
+
|
|
3898
|
+
/**
|
|
3899
|
+
* optional string tx_signature = 3;
|
|
3900
|
+
* @return {string}
|
|
3901
|
+
*/
|
|
3902
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getTxSignature = function() {
|
|
3903
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3904
|
+
};
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
/**
|
|
3908
|
+
* @param {string} value
|
|
3909
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
3910
|
+
*/
|
|
3911
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setTxSignature = function(value) {
|
|
3912
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3913
|
+
};
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
/**
|
|
3917
|
+
* optional string network_code = 4;
|
|
3918
|
+
* @return {string}
|
|
3919
|
+
*/
|
|
3920
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getNetworkCode = function() {
|
|
3921
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3922
|
+
};
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* @param {string} value
|
|
3927
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
3928
|
+
*/
|
|
3929
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setNetworkCode = function(value) {
|
|
3930
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
/**
|
|
3935
|
+
* optional string asset_code = 5;
|
|
3936
|
+
* @return {string}
|
|
3937
|
+
*/
|
|
3938
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getAssetCode = function() {
|
|
3939
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3940
|
+
};
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* @param {string} value
|
|
3945
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
3946
|
+
*/
|
|
3947
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setAssetCode = function(value) {
|
|
3948
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
/**
|
|
3953
|
+
* optional string destination_address = 6;
|
|
3954
|
+
* @return {string}
|
|
3955
|
+
*/
|
|
3956
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getDestinationAddress = function() {
|
|
3957
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* @param {string} value
|
|
3963
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
3964
|
+
*/
|
|
3965
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setDestinationAddress = function(value) {
|
|
3966
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
3967
|
+
};
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
/**
|
|
3971
|
+
* optional string amount_raw = 7;
|
|
3972
|
+
* @return {string}
|
|
3973
|
+
*/
|
|
3974
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getAmountRaw = function() {
|
|
3975
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
|
|
3979
|
+
/**
|
|
3980
|
+
* @param {string} value
|
|
3981
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
3982
|
+
*/
|
|
3983
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setAmountRaw = function(value) {
|
|
3984
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3985
|
+
};
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
/**
|
|
3989
|
+
* optional string amount_decimal = 8;
|
|
3990
|
+
* @return {string}
|
|
3991
|
+
*/
|
|
3992
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getAmountDecimal = function() {
|
|
3993
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
3994
|
+
};
|
|
3995
|
+
|
|
3996
|
+
|
|
3997
|
+
/**
|
|
3998
|
+
* @param {string} value
|
|
3999
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
4000
|
+
*/
|
|
4001
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setAmountDecimal = function(value) {
|
|
4002
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
4003
|
+
};
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
/**
|
|
4007
|
+
* optional string error_code = 9;
|
|
4008
|
+
* @return {string}
|
|
4009
|
+
*/
|
|
4010
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getErrorCode = function() {
|
|
4011
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
4012
|
+
};
|
|
4013
|
+
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* @param {string} value
|
|
4017
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
4018
|
+
*/
|
|
4019
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setErrorCode = function(value) {
|
|
4020
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
4021
|
+
};
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
/**
|
|
4025
|
+
* optional string error_message = 10;
|
|
4026
|
+
* @return {string}
|
|
4027
|
+
*/
|
|
4028
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.getErrorMessage = function() {
|
|
4029
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
4030
|
+
};
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
/**
|
|
4034
|
+
* @param {string} value
|
|
4035
|
+
* @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
|
|
4036
|
+
*/
|
|
4037
|
+
proto.crypto.ReadWithdrawalTransferResponse.prototype.setErrorMessage = function(value) {
|
|
4038
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
4039
|
+
};
|
|
4040
|
+
|
|
4041
|
+
|
|
328
4042
|
goog.object.extend(exports, proto.crypto);
|