@bithighlander/device-protocol 6.3.1 → 7.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/messages-binance_pb.d.ts +428 -0
  2. package/lib/messages-binance_pb.js +3238 -0
  3. package/lib/messages-binance_pb.js-e +3238 -0
  4. package/lib/messages-cosmos_pb.d.ts +466 -0
  5. package/lib/messages-cosmos_pb.js +3689 -0
  6. package/lib/messages-cosmos_pb.js-e +3689 -0
  7. package/lib/messages-eos_pb.js +1962 -1097
  8. package/lib/messages-eos_pb.js-e +8427 -0
  9. package/lib/messages-ethereum_pb.d.ts +530 -0
  10. package/lib/messages-ethereum_pb.js +4421 -0
  11. package/lib/messages-ethereum_pb.js-e +4421 -0
  12. package/lib/messages-mayachain_pb.d.ts +294 -0
  13. package/lib/messages-mayachain_pb.js +2325 -0
  14. package/lib/messages-mayachain_pb.js-e +2325 -0
  15. package/lib/messages-nano_pb.d.ts +0 -7
  16. package/lib/messages-nano_pb.js +366 -238
  17. package/lib/messages-nano_pb.js-e +1692 -0
  18. package/lib/messages-osmosis_pb.d.ts +762 -0
  19. package/lib/messages-osmosis_pb.js +6042 -0
  20. package/lib/messages-osmosis_pb.js-e +6042 -0
  21. package/lib/messages-ripple_pb.d.ts +173 -0
  22. package/lib/messages-ripple_pb.js +1377 -0
  23. package/lib/messages-ripple_pb.js-e +1377 -0
  24. package/lib/messages-solana_pb.d.ts +195 -0
  25. package/lib/messages-solana_pb.js +1578 -0
  26. package/lib/messages-solana_pb.js-e +1578 -0
  27. package/lib/messages-tendermint_pb.d.ts +526 -0
  28. package/lib/messages-tendermint_pb.js +4169 -0
  29. package/lib/messages-tendermint_pb.js-e +4169 -0
  30. package/lib/messages-thorchain_pb.d.ts +288 -0
  31. package/lib/messages-thorchain_pb.js +2277 -0
  32. package/lib/messages-thorchain_pb.js-e +2277 -0
  33. package/lib/messages-ton_pb.d.ts +175 -0
  34. package/lib/messages-ton_pb.js +1396 -0
  35. package/lib/messages-ton_pb.js-e +1396 -0
  36. package/lib/messages-tron_pb.d.ts +161 -0
  37. package/lib/messages-tron_pb.js +1300 -0
  38. package/lib/messages-tron_pb.js-e +1300 -0
  39. package/lib/messages-zcash_pb.d.ts +367 -0
  40. package/lib/messages-zcash_pb.js +3088 -0
  41. package/lib/messages-zcash_pb.js-e +3088 -0
  42. package/lib/messages_pb.d.ts +182 -230
  43. package/lib/messages_pb.js +6718 -5570
  44. package/lib/messages_pb.js-e +18219 -0
  45. package/lib/proto.json +2932 -731
  46. package/lib/types_pb.d.ts +11 -61
  47. package/lib/types_pb.js +1394 -1104
  48. package/lib/types_pb.js-e +6185 -0
  49. package/package.json +7 -5
  50. package/lib/.keep +0 -0
  51. package/lib/exchange_pb.d.ts +0 -249
  52. package/lib/exchange_pb.js +0 -1825
  53. package/yarn.lock +0 -122
@@ -0,0 +1,1377 @@
1
+ // source: messages-ripple.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.RippleAddress', null, global);
25
+ goog.exportSymbol('proto.RippleGetAddress', null, global);
26
+ goog.exportSymbol('proto.RipplePayment', null, global);
27
+ goog.exportSymbol('proto.RippleSignTx', null, global);
28
+ goog.exportSymbol('proto.RippleSignedTx', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.RippleGetAddress = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.RippleGetAddress.repeatedFields_, null);
41
+ };
42
+ goog.inherits(proto.RippleGetAddress, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.RippleGetAddress.displayName = 'proto.RippleGetAddress';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.RippleAddress = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.RippleAddress, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.RippleAddress.displayName = 'proto.RippleAddress';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.RippleSignTx = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.RippleSignTx.repeatedFields_, null);
83
+ };
84
+ goog.inherits(proto.RippleSignTx, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.RippleSignTx.displayName = 'proto.RippleSignTx';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.RipplePayment = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.RipplePayment, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.RipplePayment.displayName = 'proto.RipplePayment';
112
+ }
113
+ /**
114
+ * Generated by JsPbCodeGenerator.
115
+ * @param {Array=} opt_data Optional initial data array, typically from a
116
+ * server response, or constructed directly in Javascript. The array is used
117
+ * in place and becomes part of the constructed object. It is not cloned.
118
+ * If no data is provided, the constructed object will be empty, but still
119
+ * valid.
120
+ * @extends {jspb.Message}
121
+ * @constructor
122
+ */
123
+ proto.RippleSignedTx = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
+ };
126
+ goog.inherits(proto.RippleSignedTx, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.RippleSignedTx.displayName = 'proto.RippleSignedTx';
133
+ }
134
+
135
+ /**
136
+ * List of repeated fields within this message type.
137
+ * @private {!Array<number>}
138
+ * @const
139
+ */
140
+ proto.RippleGetAddress.repeatedFields_ = [1];
141
+
142
+
143
+
144
+ if (jspb.Message.GENERATE_TO_OBJECT) {
145
+ /**
146
+ * Creates an object representation of this proto.
147
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
148
+ * Optional fields that are not set will be set to undefined.
149
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
150
+ * For the list of reserved names please see:
151
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
152
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
153
+ * JSPB instance for transitional soy proto support:
154
+ * http://goto/soy-param-migration
155
+ * @return {!Object}
156
+ */
157
+ proto.RippleGetAddress.prototype.toObject = function(opt_includeInstance) {
158
+ return proto.RippleGetAddress.toObject(opt_includeInstance, this);
159
+ };
160
+
161
+
162
+ /**
163
+ * Static version of the {@see toObject} method.
164
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
165
+ * the JSPB instance for transitional soy proto support:
166
+ * http://goto/soy-param-migration
167
+ * @param {!proto.RippleGetAddress} msg The msg instance to transform.
168
+ * @return {!Object}
169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
170
+ */
171
+ proto.RippleGetAddress.toObject = function(includeInstance, msg) {
172
+ var f, obj = {
173
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
174
+ showDisplay: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f
175
+ };
176
+
177
+ if (includeInstance) {
178
+ obj.$jspbMessageInstance = msg;
179
+ }
180
+ return obj;
181
+ };
182
+ }
183
+
184
+
185
+ /**
186
+ * Deserializes binary data (in protobuf wire format).
187
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
188
+ * @return {!proto.RippleGetAddress}
189
+ */
190
+ proto.RippleGetAddress.deserializeBinary = function(bytes) {
191
+ var reader = new jspb.BinaryReader(bytes);
192
+ var msg = new proto.RippleGetAddress;
193
+ return proto.RippleGetAddress.deserializeBinaryFromReader(msg, reader);
194
+ };
195
+
196
+
197
+ /**
198
+ * Deserializes binary data (in protobuf wire format) from the
199
+ * given reader into the given message object.
200
+ * @param {!proto.RippleGetAddress} msg The message object to deserialize into.
201
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
202
+ * @return {!proto.RippleGetAddress}
203
+ */
204
+ proto.RippleGetAddress.deserializeBinaryFromReader = function(msg, reader) {
205
+ while (reader.nextField()) {
206
+ if (reader.isEndGroup()) {
207
+ break;
208
+ }
209
+ var field = reader.getFieldNumber();
210
+ switch (field) {
211
+ case 1:
212
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
213
+ for (var i = 0; i < values.length; i++) {
214
+ msg.addAddressN(values[i]);
215
+ }
216
+ break;
217
+ case 2:
218
+ var value = /** @type {boolean} */ (reader.readBool());
219
+ msg.setShowDisplay(value);
220
+ break;
221
+ default:
222
+ reader.skipField();
223
+ break;
224
+ }
225
+ }
226
+ return msg;
227
+ };
228
+
229
+
230
+ /**
231
+ * Serializes the message to binary data (in protobuf wire format).
232
+ * @return {!Uint8Array}
233
+ */
234
+ proto.RippleGetAddress.prototype.serializeBinary = function() {
235
+ var writer = new jspb.BinaryWriter();
236
+ proto.RippleGetAddress.serializeBinaryToWriter(this, writer);
237
+ return writer.getResultBuffer();
238
+ };
239
+
240
+
241
+ /**
242
+ * Serializes the given message to binary data (in protobuf wire
243
+ * format), writing to the given BinaryWriter.
244
+ * @param {!proto.RippleGetAddress} message
245
+ * @param {!jspb.BinaryWriter} writer
246
+ * @suppress {unusedLocalVariables} f is only used for nested messages
247
+ */
248
+ proto.RippleGetAddress.serializeBinaryToWriter = function(message, writer) {
249
+ var f = undefined;
250
+ f = message.getAddressNList();
251
+ if (f.length > 0) {
252
+ writer.writeRepeatedUint32(
253
+ 1,
254
+ f
255
+ );
256
+ }
257
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
258
+ if (f != null) {
259
+ writer.writeBool(
260
+ 2,
261
+ f
262
+ );
263
+ }
264
+ };
265
+
266
+
267
+ /**
268
+ * repeated uint32 address_n = 1;
269
+ * @return {!Array<number>}
270
+ */
271
+ proto.RippleGetAddress.prototype.getAddressNList = function() {
272
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
273
+ };
274
+
275
+
276
+ /**
277
+ * @param {!Array<number>} value
278
+ * @return {!proto.RippleGetAddress} returns this
279
+ */
280
+ proto.RippleGetAddress.prototype.setAddressNList = function(value) {
281
+ return jspb.Message.setField(this, 1, value || []);
282
+ };
283
+
284
+
285
+ /**
286
+ * @param {number} value
287
+ * @param {number=} opt_index
288
+ * @return {!proto.RippleGetAddress} returns this
289
+ */
290
+ proto.RippleGetAddress.prototype.addAddressN = function(value, opt_index) {
291
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
292
+ };
293
+
294
+
295
+ /**
296
+ * Clears the list making it empty but non-null.
297
+ * @return {!proto.RippleGetAddress} returns this
298
+ */
299
+ proto.RippleGetAddress.prototype.clearAddressNList = function() {
300
+ return this.setAddressNList([]);
301
+ };
302
+
303
+
304
+ /**
305
+ * optional bool show_display = 2;
306
+ * @return {boolean}
307
+ */
308
+ proto.RippleGetAddress.prototype.getShowDisplay = function() {
309
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
310
+ };
311
+
312
+
313
+ /**
314
+ * @param {boolean} value
315
+ * @return {!proto.RippleGetAddress} returns this
316
+ */
317
+ proto.RippleGetAddress.prototype.setShowDisplay = function(value) {
318
+ return jspb.Message.setField(this, 2, value);
319
+ };
320
+
321
+
322
+ /**
323
+ * Clears the field making it undefined.
324
+ * @return {!proto.RippleGetAddress} returns this
325
+ */
326
+ proto.RippleGetAddress.prototype.clearShowDisplay = function() {
327
+ return jspb.Message.setField(this, 2, undefined);
328
+ };
329
+
330
+
331
+ /**
332
+ * Returns whether this field is set.
333
+ * @return {boolean}
334
+ */
335
+ proto.RippleGetAddress.prototype.hasShowDisplay = function() {
336
+ return jspb.Message.getField(this, 2) != null;
337
+ };
338
+
339
+
340
+
341
+
342
+
343
+ if (jspb.Message.GENERATE_TO_OBJECT) {
344
+ /**
345
+ * Creates an object representation of this proto.
346
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
347
+ * Optional fields that are not set will be set to undefined.
348
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
349
+ * For the list of reserved names please see:
350
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
351
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
352
+ * JSPB instance for transitional soy proto support:
353
+ * http://goto/soy-param-migration
354
+ * @return {!Object}
355
+ */
356
+ proto.RippleAddress.prototype.toObject = function(opt_includeInstance) {
357
+ return proto.RippleAddress.toObject(opt_includeInstance, this);
358
+ };
359
+
360
+
361
+ /**
362
+ * Static version of the {@see toObject} method.
363
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
364
+ * the JSPB instance for transitional soy proto support:
365
+ * http://goto/soy-param-migration
366
+ * @param {!proto.RippleAddress} msg The msg instance to transform.
367
+ * @return {!Object}
368
+ * @suppress {unusedLocalVariables} f is only used for nested messages
369
+ */
370
+ proto.RippleAddress.toObject = function(includeInstance, msg) {
371
+ var f, obj = {
372
+ address: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
373
+ };
374
+
375
+ if (includeInstance) {
376
+ obj.$jspbMessageInstance = msg;
377
+ }
378
+ return obj;
379
+ };
380
+ }
381
+
382
+
383
+ /**
384
+ * Deserializes binary data (in protobuf wire format).
385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
386
+ * @return {!proto.RippleAddress}
387
+ */
388
+ proto.RippleAddress.deserializeBinary = function(bytes) {
389
+ var reader = new jspb.BinaryReader(bytes);
390
+ var msg = new proto.RippleAddress;
391
+ return proto.RippleAddress.deserializeBinaryFromReader(msg, reader);
392
+ };
393
+
394
+
395
+ /**
396
+ * Deserializes binary data (in protobuf wire format) from the
397
+ * given reader into the given message object.
398
+ * @param {!proto.RippleAddress} msg The message object to deserialize into.
399
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
400
+ * @return {!proto.RippleAddress}
401
+ */
402
+ proto.RippleAddress.deserializeBinaryFromReader = function(msg, reader) {
403
+ while (reader.nextField()) {
404
+ if (reader.isEndGroup()) {
405
+ break;
406
+ }
407
+ var field = reader.getFieldNumber();
408
+ switch (field) {
409
+ case 1:
410
+ var value = /** @type {string} */ (reader.readString());
411
+ msg.setAddress(value);
412
+ break;
413
+ default:
414
+ reader.skipField();
415
+ break;
416
+ }
417
+ }
418
+ return msg;
419
+ };
420
+
421
+
422
+ /**
423
+ * Serializes the message to binary data (in protobuf wire format).
424
+ * @return {!Uint8Array}
425
+ */
426
+ proto.RippleAddress.prototype.serializeBinary = function() {
427
+ var writer = new jspb.BinaryWriter();
428
+ proto.RippleAddress.serializeBinaryToWriter(this, writer);
429
+ return writer.getResultBuffer();
430
+ };
431
+
432
+
433
+ /**
434
+ * Serializes the given message to binary data (in protobuf wire
435
+ * format), writing to the given BinaryWriter.
436
+ * @param {!proto.RippleAddress} message
437
+ * @param {!jspb.BinaryWriter} writer
438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
439
+ */
440
+ proto.RippleAddress.serializeBinaryToWriter = function(message, writer) {
441
+ var f = undefined;
442
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
443
+ if (f != null) {
444
+ writer.writeString(
445
+ 1,
446
+ f
447
+ );
448
+ }
449
+ };
450
+
451
+
452
+ /**
453
+ * optional string address = 1;
454
+ * @return {string}
455
+ */
456
+ proto.RippleAddress.prototype.getAddress = function() {
457
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
458
+ };
459
+
460
+
461
+ /**
462
+ * @param {string} value
463
+ * @return {!proto.RippleAddress} returns this
464
+ */
465
+ proto.RippleAddress.prototype.setAddress = function(value) {
466
+ return jspb.Message.setField(this, 1, value);
467
+ };
468
+
469
+
470
+ /**
471
+ * Clears the field making it undefined.
472
+ * @return {!proto.RippleAddress} returns this
473
+ */
474
+ proto.RippleAddress.prototype.clearAddress = function() {
475
+ return jspb.Message.setField(this, 1, undefined);
476
+ };
477
+
478
+
479
+ /**
480
+ * Returns whether this field is set.
481
+ * @return {boolean}
482
+ */
483
+ proto.RippleAddress.prototype.hasAddress = function() {
484
+ return jspb.Message.getField(this, 1) != null;
485
+ };
486
+
487
+
488
+
489
+ /**
490
+ * List of repeated fields within this message type.
491
+ * @private {!Array<number>}
492
+ * @const
493
+ */
494
+ proto.RippleSignTx.repeatedFields_ = [1];
495
+
496
+
497
+
498
+ if (jspb.Message.GENERATE_TO_OBJECT) {
499
+ /**
500
+ * Creates an object representation of this proto.
501
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
502
+ * Optional fields that are not set will be set to undefined.
503
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
504
+ * For the list of reserved names please see:
505
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
506
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
507
+ * JSPB instance for transitional soy proto support:
508
+ * http://goto/soy-param-migration
509
+ * @return {!Object}
510
+ */
511
+ proto.RippleSignTx.prototype.toObject = function(opt_includeInstance) {
512
+ return proto.RippleSignTx.toObject(opt_includeInstance, this);
513
+ };
514
+
515
+
516
+ /**
517
+ * Static version of the {@see toObject} method.
518
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
519
+ * the JSPB instance for transitional soy proto support:
520
+ * http://goto/soy-param-migration
521
+ * @param {!proto.RippleSignTx} msg The msg instance to transform.
522
+ * @return {!Object}
523
+ * @suppress {unusedLocalVariables} f is only used for nested messages
524
+ */
525
+ proto.RippleSignTx.toObject = function(includeInstance, msg) {
526
+ var f, obj = {
527
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
528
+ fee: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
529
+ flags: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
530
+ sequence: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
531
+ lastLedgerSequence: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
532
+ payment: (f = msg.getPayment()) && proto.RipplePayment.toObject(includeInstance, f)
533
+ };
534
+
535
+ if (includeInstance) {
536
+ obj.$jspbMessageInstance = msg;
537
+ }
538
+ return obj;
539
+ };
540
+ }
541
+
542
+
543
+ /**
544
+ * Deserializes binary data (in protobuf wire format).
545
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
546
+ * @return {!proto.RippleSignTx}
547
+ */
548
+ proto.RippleSignTx.deserializeBinary = function(bytes) {
549
+ var reader = new jspb.BinaryReader(bytes);
550
+ var msg = new proto.RippleSignTx;
551
+ return proto.RippleSignTx.deserializeBinaryFromReader(msg, reader);
552
+ };
553
+
554
+
555
+ /**
556
+ * Deserializes binary data (in protobuf wire format) from the
557
+ * given reader into the given message object.
558
+ * @param {!proto.RippleSignTx} msg The message object to deserialize into.
559
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
560
+ * @return {!proto.RippleSignTx}
561
+ */
562
+ proto.RippleSignTx.deserializeBinaryFromReader = function(msg, reader) {
563
+ while (reader.nextField()) {
564
+ if (reader.isEndGroup()) {
565
+ break;
566
+ }
567
+ var field = reader.getFieldNumber();
568
+ switch (field) {
569
+ case 1:
570
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
571
+ for (var i = 0; i < values.length; i++) {
572
+ msg.addAddressN(values[i]);
573
+ }
574
+ break;
575
+ case 2:
576
+ var value = /** @type {number} */ (reader.readUint64());
577
+ msg.setFee(value);
578
+ break;
579
+ case 3:
580
+ var value = /** @type {number} */ (reader.readUint32());
581
+ msg.setFlags(value);
582
+ break;
583
+ case 4:
584
+ var value = /** @type {number} */ (reader.readUint32());
585
+ msg.setSequence(value);
586
+ break;
587
+ case 5:
588
+ var value = /** @type {number} */ (reader.readUint32());
589
+ msg.setLastLedgerSequence(value);
590
+ break;
591
+ case 6:
592
+ var value = new proto.RipplePayment;
593
+ reader.readMessage(value,proto.RipplePayment.deserializeBinaryFromReader);
594
+ msg.setPayment(value);
595
+ break;
596
+ default:
597
+ reader.skipField();
598
+ break;
599
+ }
600
+ }
601
+ return msg;
602
+ };
603
+
604
+
605
+ /**
606
+ * Serializes the message to binary data (in protobuf wire format).
607
+ * @return {!Uint8Array}
608
+ */
609
+ proto.RippleSignTx.prototype.serializeBinary = function() {
610
+ var writer = new jspb.BinaryWriter();
611
+ proto.RippleSignTx.serializeBinaryToWriter(this, writer);
612
+ return writer.getResultBuffer();
613
+ };
614
+
615
+
616
+ /**
617
+ * Serializes the given message to binary data (in protobuf wire
618
+ * format), writing to the given BinaryWriter.
619
+ * @param {!proto.RippleSignTx} message
620
+ * @param {!jspb.BinaryWriter} writer
621
+ * @suppress {unusedLocalVariables} f is only used for nested messages
622
+ */
623
+ proto.RippleSignTx.serializeBinaryToWriter = function(message, writer) {
624
+ var f = undefined;
625
+ f = message.getAddressNList();
626
+ if (f.length > 0) {
627
+ writer.writeRepeatedUint32(
628
+ 1,
629
+ f
630
+ );
631
+ }
632
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
633
+ if (f != null) {
634
+ writer.writeUint64(
635
+ 2,
636
+ f
637
+ );
638
+ }
639
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
640
+ if (f != null) {
641
+ writer.writeUint32(
642
+ 3,
643
+ f
644
+ );
645
+ }
646
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
647
+ if (f != null) {
648
+ writer.writeUint32(
649
+ 4,
650
+ f
651
+ );
652
+ }
653
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
654
+ if (f != null) {
655
+ writer.writeUint32(
656
+ 5,
657
+ f
658
+ );
659
+ }
660
+ f = message.getPayment();
661
+ if (f != null) {
662
+ writer.writeMessage(
663
+ 6,
664
+ f,
665
+ proto.RipplePayment.serializeBinaryToWriter
666
+ );
667
+ }
668
+ };
669
+
670
+
671
+ /**
672
+ * repeated uint32 address_n = 1;
673
+ * @return {!Array<number>}
674
+ */
675
+ proto.RippleSignTx.prototype.getAddressNList = function() {
676
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
677
+ };
678
+
679
+
680
+ /**
681
+ * @param {!Array<number>} value
682
+ * @return {!proto.RippleSignTx} returns this
683
+ */
684
+ proto.RippleSignTx.prototype.setAddressNList = function(value) {
685
+ return jspb.Message.setField(this, 1, value || []);
686
+ };
687
+
688
+
689
+ /**
690
+ * @param {number} value
691
+ * @param {number=} opt_index
692
+ * @return {!proto.RippleSignTx} returns this
693
+ */
694
+ proto.RippleSignTx.prototype.addAddressN = function(value, opt_index) {
695
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
696
+ };
697
+
698
+
699
+ /**
700
+ * Clears the list making it empty but non-null.
701
+ * @return {!proto.RippleSignTx} returns this
702
+ */
703
+ proto.RippleSignTx.prototype.clearAddressNList = function() {
704
+ return this.setAddressNList([]);
705
+ };
706
+
707
+
708
+ /**
709
+ * optional uint64 fee = 2;
710
+ * @return {number}
711
+ */
712
+ proto.RippleSignTx.prototype.getFee = function() {
713
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
714
+ };
715
+
716
+
717
+ /**
718
+ * @param {number} value
719
+ * @return {!proto.RippleSignTx} returns this
720
+ */
721
+ proto.RippleSignTx.prototype.setFee = function(value) {
722
+ return jspb.Message.setField(this, 2, value);
723
+ };
724
+
725
+
726
+ /**
727
+ * Clears the field making it undefined.
728
+ * @return {!proto.RippleSignTx} returns this
729
+ */
730
+ proto.RippleSignTx.prototype.clearFee = function() {
731
+ return jspb.Message.setField(this, 2, undefined);
732
+ };
733
+
734
+
735
+ /**
736
+ * Returns whether this field is set.
737
+ * @return {boolean}
738
+ */
739
+ proto.RippleSignTx.prototype.hasFee = function() {
740
+ return jspb.Message.getField(this, 2) != null;
741
+ };
742
+
743
+
744
+ /**
745
+ * optional uint32 flags = 3;
746
+ * @return {number}
747
+ */
748
+ proto.RippleSignTx.prototype.getFlags = function() {
749
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
750
+ };
751
+
752
+
753
+ /**
754
+ * @param {number} value
755
+ * @return {!proto.RippleSignTx} returns this
756
+ */
757
+ proto.RippleSignTx.prototype.setFlags = function(value) {
758
+ return jspb.Message.setField(this, 3, value);
759
+ };
760
+
761
+
762
+ /**
763
+ * Clears the field making it undefined.
764
+ * @return {!proto.RippleSignTx} returns this
765
+ */
766
+ proto.RippleSignTx.prototype.clearFlags = function() {
767
+ return jspb.Message.setField(this, 3, undefined);
768
+ };
769
+
770
+
771
+ /**
772
+ * Returns whether this field is set.
773
+ * @return {boolean}
774
+ */
775
+ proto.RippleSignTx.prototype.hasFlags = function() {
776
+ return jspb.Message.getField(this, 3) != null;
777
+ };
778
+
779
+
780
+ /**
781
+ * optional uint32 sequence = 4;
782
+ * @return {number}
783
+ */
784
+ proto.RippleSignTx.prototype.getSequence = function() {
785
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
786
+ };
787
+
788
+
789
+ /**
790
+ * @param {number} value
791
+ * @return {!proto.RippleSignTx} returns this
792
+ */
793
+ proto.RippleSignTx.prototype.setSequence = function(value) {
794
+ return jspb.Message.setField(this, 4, value);
795
+ };
796
+
797
+
798
+ /**
799
+ * Clears the field making it undefined.
800
+ * @return {!proto.RippleSignTx} returns this
801
+ */
802
+ proto.RippleSignTx.prototype.clearSequence = function() {
803
+ return jspb.Message.setField(this, 4, undefined);
804
+ };
805
+
806
+
807
+ /**
808
+ * Returns whether this field is set.
809
+ * @return {boolean}
810
+ */
811
+ proto.RippleSignTx.prototype.hasSequence = function() {
812
+ return jspb.Message.getField(this, 4) != null;
813
+ };
814
+
815
+
816
+ /**
817
+ * optional uint32 last_ledger_sequence = 5;
818
+ * @return {number}
819
+ */
820
+ proto.RippleSignTx.prototype.getLastLedgerSequence = function() {
821
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
822
+ };
823
+
824
+
825
+ /**
826
+ * @param {number} value
827
+ * @return {!proto.RippleSignTx} returns this
828
+ */
829
+ proto.RippleSignTx.prototype.setLastLedgerSequence = function(value) {
830
+ return jspb.Message.setField(this, 5, value);
831
+ };
832
+
833
+
834
+ /**
835
+ * Clears the field making it undefined.
836
+ * @return {!proto.RippleSignTx} returns this
837
+ */
838
+ proto.RippleSignTx.prototype.clearLastLedgerSequence = function() {
839
+ return jspb.Message.setField(this, 5, undefined);
840
+ };
841
+
842
+
843
+ /**
844
+ * Returns whether this field is set.
845
+ * @return {boolean}
846
+ */
847
+ proto.RippleSignTx.prototype.hasLastLedgerSequence = function() {
848
+ return jspb.Message.getField(this, 5) != null;
849
+ };
850
+
851
+
852
+ /**
853
+ * optional RipplePayment payment = 6;
854
+ * @return {?proto.RipplePayment}
855
+ */
856
+ proto.RippleSignTx.prototype.getPayment = function() {
857
+ return /** @type{?proto.RipplePayment} */ (
858
+ jspb.Message.getWrapperField(this, proto.RipplePayment, 6));
859
+ };
860
+
861
+
862
+ /**
863
+ * @param {?proto.RipplePayment|undefined} value
864
+ * @return {!proto.RippleSignTx} returns this
865
+ */
866
+ proto.RippleSignTx.prototype.setPayment = function(value) {
867
+ return jspb.Message.setWrapperField(this, 6, value);
868
+ };
869
+
870
+
871
+ /**
872
+ * Clears the message field making it undefined.
873
+ * @return {!proto.RippleSignTx} returns this
874
+ */
875
+ proto.RippleSignTx.prototype.clearPayment = function() {
876
+ return this.setPayment(undefined);
877
+ };
878
+
879
+
880
+ /**
881
+ * Returns whether this field is set.
882
+ * @return {boolean}
883
+ */
884
+ proto.RippleSignTx.prototype.hasPayment = function() {
885
+ return jspb.Message.getField(this, 6) != null;
886
+ };
887
+
888
+
889
+
890
+
891
+
892
+ if (jspb.Message.GENERATE_TO_OBJECT) {
893
+ /**
894
+ * Creates an object representation of this proto.
895
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
896
+ * Optional fields that are not set will be set to undefined.
897
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
898
+ * For the list of reserved names please see:
899
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
900
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
901
+ * JSPB instance for transitional soy proto support:
902
+ * http://goto/soy-param-migration
903
+ * @return {!Object}
904
+ */
905
+ proto.RipplePayment.prototype.toObject = function(opt_includeInstance) {
906
+ return proto.RipplePayment.toObject(opt_includeInstance, this);
907
+ };
908
+
909
+
910
+ /**
911
+ * Static version of the {@see toObject} method.
912
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
913
+ * the JSPB instance for transitional soy proto support:
914
+ * http://goto/soy-param-migration
915
+ * @param {!proto.RipplePayment} msg The msg instance to transform.
916
+ * @return {!Object}
917
+ * @suppress {unusedLocalVariables} f is only used for nested messages
918
+ */
919
+ proto.RipplePayment.toObject = function(includeInstance, msg) {
920
+ var f, obj = {
921
+ amount: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
922
+ destination: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
923
+ destinationTag: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
924
+ };
925
+
926
+ if (includeInstance) {
927
+ obj.$jspbMessageInstance = msg;
928
+ }
929
+ return obj;
930
+ };
931
+ }
932
+
933
+
934
+ /**
935
+ * Deserializes binary data (in protobuf wire format).
936
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
937
+ * @return {!proto.RipplePayment}
938
+ */
939
+ proto.RipplePayment.deserializeBinary = function(bytes) {
940
+ var reader = new jspb.BinaryReader(bytes);
941
+ var msg = new proto.RipplePayment;
942
+ return proto.RipplePayment.deserializeBinaryFromReader(msg, reader);
943
+ };
944
+
945
+
946
+ /**
947
+ * Deserializes binary data (in protobuf wire format) from the
948
+ * given reader into the given message object.
949
+ * @param {!proto.RipplePayment} msg The message object to deserialize into.
950
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
951
+ * @return {!proto.RipplePayment}
952
+ */
953
+ proto.RipplePayment.deserializeBinaryFromReader = function(msg, reader) {
954
+ while (reader.nextField()) {
955
+ if (reader.isEndGroup()) {
956
+ break;
957
+ }
958
+ var field = reader.getFieldNumber();
959
+ switch (field) {
960
+ case 1:
961
+ var value = /** @type {number} */ (reader.readUint64());
962
+ msg.setAmount(value);
963
+ break;
964
+ case 2:
965
+ var value = /** @type {string} */ (reader.readString());
966
+ msg.setDestination(value);
967
+ break;
968
+ case 3:
969
+ var value = /** @type {number} */ (reader.readUint32());
970
+ msg.setDestinationTag(value);
971
+ break;
972
+ default:
973
+ reader.skipField();
974
+ break;
975
+ }
976
+ }
977
+ return msg;
978
+ };
979
+
980
+
981
+ /**
982
+ * Serializes the message to binary data (in protobuf wire format).
983
+ * @return {!Uint8Array}
984
+ */
985
+ proto.RipplePayment.prototype.serializeBinary = function() {
986
+ var writer = new jspb.BinaryWriter();
987
+ proto.RipplePayment.serializeBinaryToWriter(this, writer);
988
+ return writer.getResultBuffer();
989
+ };
990
+
991
+
992
+ /**
993
+ * Serializes the given message to binary data (in protobuf wire
994
+ * format), writing to the given BinaryWriter.
995
+ * @param {!proto.RipplePayment} message
996
+ * @param {!jspb.BinaryWriter} writer
997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
998
+ */
999
+ proto.RipplePayment.serializeBinaryToWriter = function(message, writer) {
1000
+ var f = undefined;
1001
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1002
+ if (f != null) {
1003
+ writer.writeUint64(
1004
+ 1,
1005
+ f
1006
+ );
1007
+ }
1008
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1009
+ if (f != null) {
1010
+ writer.writeString(
1011
+ 2,
1012
+ f
1013
+ );
1014
+ }
1015
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
1016
+ if (f != null) {
1017
+ writer.writeUint32(
1018
+ 3,
1019
+ f
1020
+ );
1021
+ }
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * optional uint64 amount = 1;
1027
+ * @return {number}
1028
+ */
1029
+ proto.RipplePayment.prototype.getAmount = function() {
1030
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1031
+ };
1032
+
1033
+
1034
+ /**
1035
+ * @param {number} value
1036
+ * @return {!proto.RipplePayment} returns this
1037
+ */
1038
+ proto.RipplePayment.prototype.setAmount = function(value) {
1039
+ return jspb.Message.setField(this, 1, value);
1040
+ };
1041
+
1042
+
1043
+ /**
1044
+ * Clears the field making it undefined.
1045
+ * @return {!proto.RipplePayment} returns this
1046
+ */
1047
+ proto.RipplePayment.prototype.clearAmount = function() {
1048
+ return jspb.Message.setField(this, 1, undefined);
1049
+ };
1050
+
1051
+
1052
+ /**
1053
+ * Returns whether this field is set.
1054
+ * @return {boolean}
1055
+ */
1056
+ proto.RipplePayment.prototype.hasAmount = function() {
1057
+ return jspb.Message.getField(this, 1) != null;
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * optional string destination = 2;
1063
+ * @return {string}
1064
+ */
1065
+ proto.RipplePayment.prototype.getDestination = function() {
1066
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * @param {string} value
1072
+ * @return {!proto.RipplePayment} returns this
1073
+ */
1074
+ proto.RipplePayment.prototype.setDestination = function(value) {
1075
+ return jspb.Message.setField(this, 2, value);
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * Clears the field making it undefined.
1081
+ * @return {!proto.RipplePayment} returns this
1082
+ */
1083
+ proto.RipplePayment.prototype.clearDestination = function() {
1084
+ return jspb.Message.setField(this, 2, undefined);
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * Returns whether this field is set.
1090
+ * @return {boolean}
1091
+ */
1092
+ proto.RipplePayment.prototype.hasDestination = function() {
1093
+ return jspb.Message.getField(this, 2) != null;
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * optional uint32 destination_tag = 3;
1099
+ * @return {number}
1100
+ */
1101
+ proto.RipplePayment.prototype.getDestinationTag = function() {
1102
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * @param {number} value
1108
+ * @return {!proto.RipplePayment} returns this
1109
+ */
1110
+ proto.RipplePayment.prototype.setDestinationTag = function(value) {
1111
+ return jspb.Message.setField(this, 3, value);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * Clears the field making it undefined.
1117
+ * @return {!proto.RipplePayment} returns this
1118
+ */
1119
+ proto.RipplePayment.prototype.clearDestinationTag = function() {
1120
+ return jspb.Message.setField(this, 3, undefined);
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * Returns whether this field is set.
1126
+ * @return {boolean}
1127
+ */
1128
+ proto.RipplePayment.prototype.hasDestinationTag = function() {
1129
+ return jspb.Message.getField(this, 3) != null;
1130
+ };
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1137
+ /**
1138
+ * Creates an object representation of this proto.
1139
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1140
+ * Optional fields that are not set will be set to undefined.
1141
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1142
+ * For the list of reserved names please see:
1143
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1144
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1145
+ * JSPB instance for transitional soy proto support:
1146
+ * http://goto/soy-param-migration
1147
+ * @return {!Object}
1148
+ */
1149
+ proto.RippleSignedTx.prototype.toObject = function(opt_includeInstance) {
1150
+ return proto.RippleSignedTx.toObject(opt_includeInstance, this);
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * Static version of the {@see toObject} method.
1156
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1157
+ * the JSPB instance for transitional soy proto support:
1158
+ * http://goto/soy-param-migration
1159
+ * @param {!proto.RippleSignedTx} msg The msg instance to transform.
1160
+ * @return {!Object}
1161
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1162
+ */
1163
+ proto.RippleSignedTx.toObject = function(includeInstance, msg) {
1164
+ var f, obj = {
1165
+ signature: msg.getSignature_asB64(),
1166
+ serializedTx: msg.getSerializedTx_asB64()
1167
+ };
1168
+
1169
+ if (includeInstance) {
1170
+ obj.$jspbMessageInstance = msg;
1171
+ }
1172
+ return obj;
1173
+ };
1174
+ }
1175
+
1176
+
1177
+ /**
1178
+ * Deserializes binary data (in protobuf wire format).
1179
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1180
+ * @return {!proto.RippleSignedTx}
1181
+ */
1182
+ proto.RippleSignedTx.deserializeBinary = function(bytes) {
1183
+ var reader = new jspb.BinaryReader(bytes);
1184
+ var msg = new proto.RippleSignedTx;
1185
+ return proto.RippleSignedTx.deserializeBinaryFromReader(msg, reader);
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * Deserializes binary data (in protobuf wire format) from the
1191
+ * given reader into the given message object.
1192
+ * @param {!proto.RippleSignedTx} msg The message object to deserialize into.
1193
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1194
+ * @return {!proto.RippleSignedTx}
1195
+ */
1196
+ proto.RippleSignedTx.deserializeBinaryFromReader = function(msg, reader) {
1197
+ while (reader.nextField()) {
1198
+ if (reader.isEndGroup()) {
1199
+ break;
1200
+ }
1201
+ var field = reader.getFieldNumber();
1202
+ switch (field) {
1203
+ case 1:
1204
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1205
+ msg.setSignature(value);
1206
+ break;
1207
+ case 2:
1208
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1209
+ msg.setSerializedTx(value);
1210
+ break;
1211
+ default:
1212
+ reader.skipField();
1213
+ break;
1214
+ }
1215
+ }
1216
+ return msg;
1217
+ };
1218
+
1219
+
1220
+ /**
1221
+ * Serializes the message to binary data (in protobuf wire format).
1222
+ * @return {!Uint8Array}
1223
+ */
1224
+ proto.RippleSignedTx.prototype.serializeBinary = function() {
1225
+ var writer = new jspb.BinaryWriter();
1226
+ proto.RippleSignedTx.serializeBinaryToWriter(this, writer);
1227
+ return writer.getResultBuffer();
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Serializes the given message to binary data (in protobuf wire
1233
+ * format), writing to the given BinaryWriter.
1234
+ * @param {!proto.RippleSignedTx} message
1235
+ * @param {!jspb.BinaryWriter} writer
1236
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1237
+ */
1238
+ proto.RippleSignedTx.serializeBinaryToWriter = function(message, writer) {
1239
+ var f = undefined;
1240
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
1241
+ if (f != null) {
1242
+ writer.writeBytes(
1243
+ 1,
1244
+ f
1245
+ );
1246
+ }
1247
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
1248
+ if (f != null) {
1249
+ writer.writeBytes(
1250
+ 2,
1251
+ f
1252
+ );
1253
+ }
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * optional bytes signature = 1;
1259
+ * @return {!(string|Uint8Array)}
1260
+ */
1261
+ proto.RippleSignedTx.prototype.getSignature = function() {
1262
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * optional bytes signature = 1;
1268
+ * This is a type-conversion wrapper around `getSignature()`
1269
+ * @return {string}
1270
+ */
1271
+ proto.RippleSignedTx.prototype.getSignature_asB64 = function() {
1272
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1273
+ this.getSignature()));
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * optional bytes signature = 1;
1279
+ * Note that Uint8Array is not supported on all browsers.
1280
+ * @see http://caniuse.com/Uint8Array
1281
+ * This is a type-conversion wrapper around `getSignature()`
1282
+ * @return {!Uint8Array}
1283
+ */
1284
+ proto.RippleSignedTx.prototype.getSignature_asU8 = function() {
1285
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1286
+ this.getSignature()));
1287
+ };
1288
+
1289
+
1290
+ /**
1291
+ * @param {!(string|Uint8Array)} value
1292
+ * @return {!proto.RippleSignedTx} returns this
1293
+ */
1294
+ proto.RippleSignedTx.prototype.setSignature = function(value) {
1295
+ return jspb.Message.setField(this, 1, value);
1296
+ };
1297
+
1298
+
1299
+ /**
1300
+ * Clears the field making it undefined.
1301
+ * @return {!proto.RippleSignedTx} returns this
1302
+ */
1303
+ proto.RippleSignedTx.prototype.clearSignature = function() {
1304
+ return jspb.Message.setField(this, 1, undefined);
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * Returns whether this field is set.
1310
+ * @return {boolean}
1311
+ */
1312
+ proto.RippleSignedTx.prototype.hasSignature = function() {
1313
+ return jspb.Message.getField(this, 1) != null;
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * optional bytes serialized_tx = 2;
1319
+ * @return {!(string|Uint8Array)}
1320
+ */
1321
+ proto.RippleSignedTx.prototype.getSerializedTx = function() {
1322
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * optional bytes serialized_tx = 2;
1328
+ * This is a type-conversion wrapper around `getSerializedTx()`
1329
+ * @return {string}
1330
+ */
1331
+ proto.RippleSignedTx.prototype.getSerializedTx_asB64 = function() {
1332
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1333
+ this.getSerializedTx()));
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * optional bytes serialized_tx = 2;
1339
+ * Note that Uint8Array is not supported on all browsers.
1340
+ * @see http://caniuse.com/Uint8Array
1341
+ * This is a type-conversion wrapper around `getSerializedTx()`
1342
+ * @return {!Uint8Array}
1343
+ */
1344
+ proto.RippleSignedTx.prototype.getSerializedTx_asU8 = function() {
1345
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1346
+ this.getSerializedTx()));
1347
+ };
1348
+
1349
+
1350
+ /**
1351
+ * @param {!(string|Uint8Array)} value
1352
+ * @return {!proto.RippleSignedTx} returns this
1353
+ */
1354
+ proto.RippleSignedTx.prototype.setSerializedTx = function(value) {
1355
+ return jspb.Message.setField(this, 2, value);
1356
+ };
1357
+
1358
+
1359
+ /**
1360
+ * Clears the field making it undefined.
1361
+ * @return {!proto.RippleSignedTx} returns this
1362
+ */
1363
+ proto.RippleSignedTx.prototype.clearSerializedTx = function() {
1364
+ return jspb.Message.setField(this, 2, undefined);
1365
+ };
1366
+
1367
+
1368
+ /**
1369
+ * Returns whether this field is set.
1370
+ * @return {boolean}
1371
+ */
1372
+ proto.RippleSignedTx.prototype.hasSerializedTx = function() {
1373
+ return jspb.Message.getField(this, 2) != null;
1374
+ };
1375
+
1376
+
1377
+ goog.object.extend(exports, proto);