@bithighlander/device-protocol 6.3.2 → 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 -752
  43. package/lib/messages_pb.js +7798 -11081
  44. package/lib/messages_pb.js-e +18219 -0
  45. package/lib/proto.json +2761 -778
  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
package/lib/types_pb.js CHANGED
@@ -1,21 +1,30 @@
1
+ // source: types.proto
1
2
  /**
2
3
  * @fileoverview
3
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
4
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
5
7
  * field starts with 'MSG_' and isn't a translatable message.
6
8
  * @public
7
9
  */
8
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
9
13
 
10
14
  var jspb = require('google-protobuf');
11
15
  var goog = jspb;
12
- var global = Function('return this')();
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));
13
23
 
14
24
  var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
15
- var exchange_pb = require('./exchange_pb.js');
25
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
16
26
  goog.exportSymbol('proto.ButtonRequestType', null, global);
17
27
  goog.exportSymbol('proto.CoinType', null, global);
18
- goog.exportSymbol('proto.ExchangeType', null, global);
19
28
  goog.exportSymbol('proto.FailureType', null, global);
20
29
  goog.exportSymbol('proto.HDNodePathType', null, global);
21
30
  goog.exportSymbol('proto.HDNodeType', null, global);
@@ -38,7 +47,6 @@ goog.exportSymbol('proto.wireDebugIn', null, global);
38
47
  goog.exportSymbol('proto.wireDebugOut', null, global);
39
48
  goog.exportSymbol('proto.wireIn', null, global);
40
49
  goog.exportSymbol('proto.wireOut', null, global);
41
-
42
50
  /**
43
51
  * Generated by JsPbCodeGenerator.
44
52
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -54,19 +62,278 @@ proto.HDNodeType = function(opt_data) {
54
62
  };
55
63
  goog.inherits(proto.HDNodeType, jspb.Message);
56
64
  if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
57
69
  proto.HDNodeType.displayName = 'proto.HDNodeType';
58
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.HDNodePathType = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.HDNodePathType.repeatedFields_, null);
83
+ };
84
+ goog.inherits(proto.HDNodePathType, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.HDNodePathType.displayName = 'proto.HDNodePathType';
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.CoinType = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.CoinType, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.CoinType.displayName = 'proto.CoinType';
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.MultisigRedeemScriptType = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.MultisigRedeemScriptType.repeatedFields_, null);
125
+ };
126
+ goog.inherits(proto.MultisigRedeemScriptType, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.MultisigRedeemScriptType.displayName = 'proto.MultisigRedeemScriptType';
133
+ }
134
+ /**
135
+ * Generated by JsPbCodeGenerator.
136
+ * @param {Array=} opt_data Optional initial data array, typically from a
137
+ * server response, or constructed directly in Javascript. The array is used
138
+ * in place and becomes part of the constructed object. It is not cloned.
139
+ * If no data is provided, the constructed object will be empty, but still
140
+ * valid.
141
+ * @extends {jspb.Message}
142
+ * @constructor
143
+ */
144
+ proto.TxInputType = function(opt_data) {
145
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TxInputType.repeatedFields_, null);
146
+ };
147
+ goog.inherits(proto.TxInputType, jspb.Message);
148
+ if (goog.DEBUG && !COMPILED) {
149
+ /**
150
+ * @public
151
+ * @override
152
+ */
153
+ proto.TxInputType.displayName = 'proto.TxInputType';
154
+ }
155
+ /**
156
+ * Generated by JsPbCodeGenerator.
157
+ * @param {Array=} opt_data Optional initial data array, typically from a
158
+ * server response, or constructed directly in Javascript. The array is used
159
+ * in place and becomes part of the constructed object. It is not cloned.
160
+ * If no data is provided, the constructed object will be empty, but still
161
+ * valid.
162
+ * @extends {jspb.Message}
163
+ * @constructor
164
+ */
165
+ proto.TxOutputType = function(opt_data) {
166
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TxOutputType.repeatedFields_, null);
167
+ };
168
+ goog.inherits(proto.TxOutputType, jspb.Message);
169
+ if (goog.DEBUG && !COMPILED) {
170
+ /**
171
+ * @public
172
+ * @override
173
+ */
174
+ proto.TxOutputType.displayName = 'proto.TxOutputType';
175
+ }
176
+ /**
177
+ * Generated by JsPbCodeGenerator.
178
+ * @param {Array=} opt_data Optional initial data array, typically from a
179
+ * server response, or constructed directly in Javascript. The array is used
180
+ * in place and becomes part of the constructed object. It is not cloned.
181
+ * If no data is provided, the constructed object will be empty, but still
182
+ * valid.
183
+ * @extends {jspb.Message}
184
+ * @constructor
185
+ */
186
+ proto.TxOutputBinType = function(opt_data) {
187
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
188
+ };
189
+ goog.inherits(proto.TxOutputBinType, jspb.Message);
190
+ if (goog.DEBUG && !COMPILED) {
191
+ /**
192
+ * @public
193
+ * @override
194
+ */
195
+ proto.TxOutputBinType.displayName = 'proto.TxOutputBinType';
196
+ }
197
+ /**
198
+ * Generated by JsPbCodeGenerator.
199
+ * @param {Array=} opt_data Optional initial data array, typically from a
200
+ * server response, or constructed directly in Javascript. The array is used
201
+ * in place and becomes part of the constructed object. It is not cloned.
202
+ * If no data is provided, the constructed object will be empty, but still
203
+ * valid.
204
+ * @extends {jspb.Message}
205
+ * @constructor
206
+ */
207
+ proto.TransactionType = function(opt_data) {
208
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TransactionType.repeatedFields_, null);
209
+ };
210
+ goog.inherits(proto.TransactionType, jspb.Message);
211
+ if (goog.DEBUG && !COMPILED) {
212
+ /**
213
+ * @public
214
+ * @override
215
+ */
216
+ proto.TransactionType.displayName = 'proto.TransactionType';
217
+ }
218
+ /**
219
+ * Generated by JsPbCodeGenerator.
220
+ * @param {Array=} opt_data Optional initial data array, typically from a
221
+ * server response, or constructed directly in Javascript. The array is used
222
+ * in place and becomes part of the constructed object. It is not cloned.
223
+ * If no data is provided, the constructed object will be empty, but still
224
+ * valid.
225
+ * @extends {jspb.Message}
226
+ * @constructor
227
+ */
228
+ proto.RawTransactionType = function(opt_data) {
229
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
230
+ };
231
+ goog.inherits(proto.RawTransactionType, jspb.Message);
232
+ if (goog.DEBUG && !COMPILED) {
233
+ /**
234
+ * @public
235
+ * @override
236
+ */
237
+ proto.RawTransactionType.displayName = 'proto.RawTransactionType';
238
+ }
239
+ /**
240
+ * Generated by JsPbCodeGenerator.
241
+ * @param {Array=} opt_data Optional initial data array, typically from a
242
+ * server response, or constructed directly in Javascript. The array is used
243
+ * in place and becomes part of the constructed object. It is not cloned.
244
+ * If no data is provided, the constructed object will be empty, but still
245
+ * valid.
246
+ * @extends {jspb.Message}
247
+ * @constructor
248
+ */
249
+ proto.TxRequestDetailsType = function(opt_data) {
250
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
251
+ };
252
+ goog.inherits(proto.TxRequestDetailsType, jspb.Message);
253
+ if (goog.DEBUG && !COMPILED) {
254
+ /**
255
+ * @public
256
+ * @override
257
+ */
258
+ proto.TxRequestDetailsType.displayName = 'proto.TxRequestDetailsType';
259
+ }
260
+ /**
261
+ * Generated by JsPbCodeGenerator.
262
+ * @param {Array=} opt_data Optional initial data array, typically from a
263
+ * server response, or constructed directly in Javascript. The array is used
264
+ * in place and becomes part of the constructed object. It is not cloned.
265
+ * If no data is provided, the constructed object will be empty, but still
266
+ * valid.
267
+ * @extends {jspb.Message}
268
+ * @constructor
269
+ */
270
+ proto.TxRequestSerializedType = function(opt_data) {
271
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
272
+ };
273
+ goog.inherits(proto.TxRequestSerializedType, jspb.Message);
274
+ if (goog.DEBUG && !COMPILED) {
275
+ /**
276
+ * @public
277
+ * @override
278
+ */
279
+ proto.TxRequestSerializedType.displayName = 'proto.TxRequestSerializedType';
280
+ }
281
+ /**
282
+ * Generated by JsPbCodeGenerator.
283
+ * @param {Array=} opt_data Optional initial data array, typically from a
284
+ * server response, or constructed directly in Javascript. The array is used
285
+ * in place and becomes part of the constructed object. It is not cloned.
286
+ * If no data is provided, the constructed object will be empty, but still
287
+ * valid.
288
+ * @extends {jspb.Message}
289
+ * @constructor
290
+ */
291
+ proto.IdentityType = function(opt_data) {
292
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
293
+ };
294
+ goog.inherits(proto.IdentityType, jspb.Message);
295
+ if (goog.DEBUG && !COMPILED) {
296
+ /**
297
+ * @public
298
+ * @override
299
+ */
300
+ proto.IdentityType.displayName = 'proto.IdentityType';
301
+ }
302
+ /**
303
+ * Generated by JsPbCodeGenerator.
304
+ * @param {Array=} opt_data Optional initial data array, typically from a
305
+ * server response, or constructed directly in Javascript. The array is used
306
+ * in place and becomes part of the constructed object. It is not cloned.
307
+ * If no data is provided, the constructed object will be empty, but still
308
+ * valid.
309
+ * @extends {jspb.Message}
310
+ * @constructor
311
+ */
312
+ proto.PolicyType = function(opt_data) {
313
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
314
+ };
315
+ goog.inherits(proto.PolicyType, jspb.Message);
316
+ if (goog.DEBUG && !COMPILED) {
317
+ /**
318
+ * @public
319
+ * @override
320
+ */
321
+ proto.PolicyType.displayName = 'proto.PolicyType';
322
+ }
323
+
59
324
 
60
325
 
61
326
  if (jspb.Message.GENERATE_TO_OBJECT) {
62
327
  /**
63
- * Creates an object representation of this proto suitable for use in Soy templates.
328
+ * Creates an object representation of this proto.
64
329
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
330
+ * Optional fields that are not set will be set to undefined.
65
331
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66
332
  * For the list of reserved names please see:
67
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
68
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
69
- * for transitional soy proto support: http://goto/soy-param-migration
333
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
334
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
335
+ * JSPB instance for transitional soy proto support:
336
+ * http://goto/soy-param-migration
70
337
  * @return {!Object}
71
338
  */
72
339
  proto.HDNodeType.prototype.toObject = function(opt_includeInstance) {
@@ -76,8 +343,8 @@ proto.HDNodeType.prototype.toObject = function(opt_includeInstance) {
76
343
 
77
344
  /**
78
345
  * Static version of the {@see toObject} method.
79
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
80
- * instance for transitional soy proto support:
346
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
347
+ * the JSPB instance for transitional soy proto support:
81
348
  * http://goto/soy-param-migration
82
349
  * @param {!proto.HDNodeType} msg The msg instance to transform.
83
350
  * @return {!Object}
@@ -85,9 +352,9 @@ proto.HDNodeType.prototype.toObject = function(opt_includeInstance) {
85
352
  */
86
353
  proto.HDNodeType.toObject = function(includeInstance, msg) {
87
354
  var f, obj = {
88
- depth: jspb.Message.getField(msg, 1),
89
- fingerprint: jspb.Message.getField(msg, 2),
90
- childNum: jspb.Message.getField(msg, 3),
355
+ depth: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
356
+ fingerprint: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
357
+ childNum: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
91
358
  chainCode: msg.getChainCode_asB64(),
92
359
  privateKey: msg.getPrivateKey_asB64(),
93
360
  publicKey: msg.getPublicKey_asB64()
@@ -234,20 +501,27 @@ proto.HDNodeType.prototype.getDepth = function() {
234
501
  };
235
502
 
236
503
 
237
- /** @param {number} value */
504
+ /**
505
+ * @param {number} value
506
+ * @return {!proto.HDNodeType} returns this
507
+ */
238
508
  proto.HDNodeType.prototype.setDepth = function(value) {
239
- jspb.Message.setField(this, 1, value);
509
+ return jspb.Message.setField(this, 1, value);
240
510
  };
241
511
 
242
512
 
513
+ /**
514
+ * Clears the field making it undefined.
515
+ * @return {!proto.HDNodeType} returns this
516
+ */
243
517
  proto.HDNodeType.prototype.clearDepth = function() {
244
- jspb.Message.setField(this, 1, undefined);
518
+ return jspb.Message.setField(this, 1, undefined);
245
519
  };
246
520
 
247
521
 
248
522
  /**
249
523
  * Returns whether this field is set.
250
- * @return {!boolean}
524
+ * @return {boolean}
251
525
  */
252
526
  proto.HDNodeType.prototype.hasDepth = function() {
253
527
  return jspb.Message.getField(this, 1) != null;
@@ -263,20 +537,27 @@ proto.HDNodeType.prototype.getFingerprint = function() {
263
537
  };
264
538
 
265
539
 
266
- /** @param {number} value */
540
+ /**
541
+ * @param {number} value
542
+ * @return {!proto.HDNodeType} returns this
543
+ */
267
544
  proto.HDNodeType.prototype.setFingerprint = function(value) {
268
- jspb.Message.setField(this, 2, value);
545
+ return jspb.Message.setField(this, 2, value);
269
546
  };
270
547
 
271
548
 
549
+ /**
550
+ * Clears the field making it undefined.
551
+ * @return {!proto.HDNodeType} returns this
552
+ */
272
553
  proto.HDNodeType.prototype.clearFingerprint = function() {
273
- jspb.Message.setField(this, 2, undefined);
554
+ return jspb.Message.setField(this, 2, undefined);
274
555
  };
275
556
 
276
557
 
277
558
  /**
278
559
  * Returns whether this field is set.
279
- * @return {!boolean}
560
+ * @return {boolean}
280
561
  */
281
562
  proto.HDNodeType.prototype.hasFingerprint = function() {
282
563
  return jspb.Message.getField(this, 2) != null;
@@ -292,20 +573,27 @@ proto.HDNodeType.prototype.getChildNum = function() {
292
573
  };
293
574
 
294
575
 
295
- /** @param {number} value */
576
+ /**
577
+ * @param {number} value
578
+ * @return {!proto.HDNodeType} returns this
579
+ */
296
580
  proto.HDNodeType.prototype.setChildNum = function(value) {
297
- jspb.Message.setField(this, 3, value);
581
+ return jspb.Message.setField(this, 3, value);
298
582
  };
299
583
 
300
584
 
585
+ /**
586
+ * Clears the field making it undefined.
587
+ * @return {!proto.HDNodeType} returns this
588
+ */
301
589
  proto.HDNodeType.prototype.clearChildNum = function() {
302
- jspb.Message.setField(this, 3, undefined);
590
+ return jspb.Message.setField(this, 3, undefined);
303
591
  };
304
592
 
305
593
 
306
594
  /**
307
595
  * Returns whether this field is set.
308
- * @return {!boolean}
596
+ * @return {boolean}
309
597
  */
310
598
  proto.HDNodeType.prototype.hasChildNum = function() {
311
599
  return jspb.Message.getField(this, 3) != null;
@@ -345,20 +633,27 @@ proto.HDNodeType.prototype.getChainCode_asU8 = function() {
345
633
  };
346
634
 
347
635
 
348
- /** @param {!(string|Uint8Array)} value */
636
+ /**
637
+ * @param {!(string|Uint8Array)} value
638
+ * @return {!proto.HDNodeType} returns this
639
+ */
349
640
  proto.HDNodeType.prototype.setChainCode = function(value) {
350
- jspb.Message.setField(this, 4, value);
641
+ return jspb.Message.setField(this, 4, value);
351
642
  };
352
643
 
353
644
 
645
+ /**
646
+ * Clears the field making it undefined.
647
+ * @return {!proto.HDNodeType} returns this
648
+ */
354
649
  proto.HDNodeType.prototype.clearChainCode = function() {
355
- jspb.Message.setField(this, 4, undefined);
650
+ return jspb.Message.setField(this, 4, undefined);
356
651
  };
357
652
 
358
653
 
359
654
  /**
360
655
  * Returns whether this field is set.
361
- * @return {!boolean}
656
+ * @return {boolean}
362
657
  */
363
658
  proto.HDNodeType.prototype.hasChainCode = function() {
364
659
  return jspb.Message.getField(this, 4) != null;
@@ -398,20 +693,27 @@ proto.HDNodeType.prototype.getPrivateKey_asU8 = function() {
398
693
  };
399
694
 
400
695
 
401
- /** @param {!(string|Uint8Array)} value */
696
+ /**
697
+ * @param {!(string|Uint8Array)} value
698
+ * @return {!proto.HDNodeType} returns this
699
+ */
402
700
  proto.HDNodeType.prototype.setPrivateKey = function(value) {
403
- jspb.Message.setField(this, 5, value);
701
+ return jspb.Message.setField(this, 5, value);
404
702
  };
405
703
 
406
704
 
705
+ /**
706
+ * Clears the field making it undefined.
707
+ * @return {!proto.HDNodeType} returns this
708
+ */
407
709
  proto.HDNodeType.prototype.clearPrivateKey = function() {
408
- jspb.Message.setField(this, 5, undefined);
710
+ return jspb.Message.setField(this, 5, undefined);
409
711
  };
410
712
 
411
713
 
412
714
  /**
413
715
  * Returns whether this field is set.
414
- * @return {!boolean}
716
+ * @return {boolean}
415
717
  */
416
718
  proto.HDNodeType.prototype.hasPrivateKey = function() {
417
719
  return jspb.Message.getField(this, 5) != null;
@@ -451,20 +753,27 @@ proto.HDNodeType.prototype.getPublicKey_asU8 = function() {
451
753
  };
452
754
 
453
755
 
454
- /** @param {!(string|Uint8Array)} value */
756
+ /**
757
+ * @param {!(string|Uint8Array)} value
758
+ * @return {!proto.HDNodeType} returns this
759
+ */
455
760
  proto.HDNodeType.prototype.setPublicKey = function(value) {
456
- jspb.Message.setField(this, 6, value);
761
+ return jspb.Message.setField(this, 6, value);
457
762
  };
458
763
 
459
764
 
765
+ /**
766
+ * Clears the field making it undefined.
767
+ * @return {!proto.HDNodeType} returns this
768
+ */
460
769
  proto.HDNodeType.prototype.clearPublicKey = function() {
461
- jspb.Message.setField(this, 6, undefined);
770
+ return jspb.Message.setField(this, 6, undefined);
462
771
  };
463
772
 
464
773
 
465
774
  /**
466
775
  * Returns whether this field is set.
467
- * @return {!boolean}
776
+ * @return {boolean}
468
777
  */
469
778
  proto.HDNodeType.prototype.hasPublicKey = function() {
470
779
  return jspb.Message.getField(this, 6) != null;
@@ -473,26 +782,9 @@ proto.HDNodeType.prototype.hasPublicKey = function() {
473
782
 
474
783
 
475
784
  /**
476
- * Generated by JsPbCodeGenerator.
477
- * @param {Array=} opt_data Optional initial data array, typically from a
478
- * server response, or constructed directly in Javascript. The array is used
479
- * in place and becomes part of the constructed object. It is not cloned.
480
- * If no data is provided, the constructed object will be empty, but still
481
- * valid.
482
- * @extends {jspb.Message}
483
- * @constructor
484
- */
485
- proto.HDNodePathType = function(opt_data) {
486
- jspb.Message.initialize(this, opt_data, 0, -1, proto.HDNodePathType.repeatedFields_, null);
487
- };
488
- goog.inherits(proto.HDNodePathType, jspb.Message);
489
- if (goog.DEBUG && !COMPILED) {
490
- proto.HDNodePathType.displayName = 'proto.HDNodePathType';
491
- }
492
- /**
493
- * List of repeated fields within this message type.
494
- * @private {!Array<number>}
495
- * @const
785
+ * List of repeated fields within this message type.
786
+ * @private {!Array<number>}
787
+ * @const
496
788
  */
497
789
  proto.HDNodePathType.repeatedFields_ = [2];
498
790
 
@@ -500,13 +792,15 @@ proto.HDNodePathType.repeatedFields_ = [2];
500
792
 
501
793
  if (jspb.Message.GENERATE_TO_OBJECT) {
502
794
  /**
503
- * Creates an object representation of this proto suitable for use in Soy templates.
795
+ * Creates an object representation of this proto.
504
796
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
797
+ * Optional fields that are not set will be set to undefined.
505
798
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
506
799
  * For the list of reserved names please see:
507
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
508
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
509
- * for transitional soy proto support: http://goto/soy-param-migration
800
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
801
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
802
+ * JSPB instance for transitional soy proto support:
803
+ * http://goto/soy-param-migration
510
804
  * @return {!Object}
511
805
  */
512
806
  proto.HDNodePathType.prototype.toObject = function(opt_includeInstance) {
@@ -516,8 +810,8 @@ proto.HDNodePathType.prototype.toObject = function(opt_includeInstance) {
516
810
 
517
811
  /**
518
812
  * Static version of the {@see toObject} method.
519
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
520
- * instance for transitional soy proto support:
813
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
814
+ * the JSPB instance for transitional soy proto support:
521
815
  * http://goto/soy-param-migration
522
816
  * @param {!proto.HDNodePathType} msg The msg instance to transform.
523
817
  * @return {!Object}
@@ -526,7 +820,7 @@ proto.HDNodePathType.prototype.toObject = function(opt_includeInstance) {
526
820
  proto.HDNodePathType.toObject = function(includeInstance, msg) {
527
821
  var f, obj = {
528
822
  node: (f = msg.getNode()) && proto.HDNodeType.toObject(includeInstance, f),
529
- addressNList: jspb.Message.getRepeatedField(msg, 2)
823
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
530
824
  };
531
825
 
532
826
  if (includeInstance) {
@@ -569,8 +863,10 @@ proto.HDNodePathType.deserializeBinaryFromReader = function(msg, reader) {
569
863
  msg.setNode(value);
570
864
  break;
571
865
  case 2:
572
- var value = /** @type {number} */ (reader.readUint32());
573
- msg.addAddressN(value);
866
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
867
+ for (var i = 0; i < values.length; i++) {
868
+ msg.addAddressN(values[i]);
869
+ }
574
870
  break;
575
871
  default:
576
872
  reader.skipField();
@@ -629,20 +925,27 @@ proto.HDNodePathType.prototype.getNode = function() {
629
925
  };
630
926
 
631
927
 
632
- /** @param {!proto.HDNodeType} value */
928
+ /**
929
+ * @param {!proto.HDNodeType} value
930
+ * @return {!proto.HDNodePathType} returns this
931
+ */
633
932
  proto.HDNodePathType.prototype.setNode = function(value) {
634
- jspb.Message.setWrapperField(this, 1, value);
933
+ return jspb.Message.setWrapperField(this, 1, value);
635
934
  };
636
935
 
637
936
 
937
+ /**
938
+ * Clears the field making it undefined.
939
+ * @return {!proto.HDNodePathType} returns this
940
+ */
638
941
  proto.HDNodePathType.prototype.clearNode = function() {
639
- jspb.Message.setField(this, 1, undefined);
942
+ return jspb.Message.setField(this, 1, undefined);
640
943
  };
641
944
 
642
945
 
643
946
  /**
644
947
  * Returns whether this field is set.
645
- * @return {!boolean}
948
+ * @return {boolean}
646
949
  */
647
950
  proto.HDNodePathType.prototype.hasNode = function() {
648
951
  return jspb.Message.getField(this, 1) != null;
@@ -658,55 +961,48 @@ proto.HDNodePathType.prototype.getAddressNList = function() {
658
961
  };
659
962
 
660
963
 
661
- /** @param {!Array<number>} value */
964
+ /**
965
+ * @param {!Array<number>} value
966
+ * @return {!proto.HDNodePathType} returns this
967
+ */
662
968
  proto.HDNodePathType.prototype.setAddressNList = function(value) {
663
- jspb.Message.setField(this, 2, value || []);
969
+ return jspb.Message.setField(this, 2, value || []);
664
970
  };
665
971
 
666
972
 
667
973
  /**
668
- * @param {!number} value
974
+ * @param {number} value
669
975
  * @param {number=} opt_index
976
+ * @return {!proto.HDNodePathType} returns this
670
977
  */
671
978
  proto.HDNodePathType.prototype.addAddressN = function(value, opt_index) {
672
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
979
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
673
980
  };
674
981
 
675
982
 
983
+ /**
984
+ * Clears the list making it empty but non-null.
985
+ * @return {!proto.HDNodePathType} returns this
986
+ */
676
987
  proto.HDNodePathType.prototype.clearAddressNList = function() {
677
- this.setAddressNList([]);
988
+ return this.setAddressNList([]);
678
989
  };
679
990
 
680
991
 
681
992
 
682
- /**
683
- * Generated by JsPbCodeGenerator.
684
- * @param {Array=} opt_data Optional initial data array, typically from a
685
- * server response, or constructed directly in Javascript. The array is used
686
- * in place and becomes part of the constructed object. It is not cloned.
687
- * If no data is provided, the constructed object will be empty, but still
688
- * valid.
689
- * @extends {jspb.Message}
690
- * @constructor
691
- */
692
- proto.CoinType = function(opt_data) {
693
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
694
- };
695
- goog.inherits(proto.CoinType, jspb.Message);
696
- if (goog.DEBUG && !COMPILED) {
697
- proto.CoinType.displayName = 'proto.CoinType';
698
- }
699
993
 
700
994
 
701
995
  if (jspb.Message.GENERATE_TO_OBJECT) {
702
996
  /**
703
- * Creates an object representation of this proto suitable for use in Soy templates.
997
+ * Creates an object representation of this proto.
704
998
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
999
+ * Optional fields that are not set will be set to undefined.
705
1000
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
706
1001
  * For the list of reserved names please see:
707
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
708
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
709
- * for transitional soy proto support: http://goto/soy-param-migration
1002
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1003
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1004
+ * JSPB instance for transitional soy proto support:
1005
+ * http://goto/soy-param-migration
710
1006
  * @return {!Object}
711
1007
  */
712
1008
  proto.CoinType.prototype.toObject = function(opt_includeInstance) {
@@ -716,8 +1012,8 @@ proto.CoinType.prototype.toObject = function(opt_includeInstance) {
716
1012
 
717
1013
  /**
718
1014
  * Static version of the {@see toObject} method.
719
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
720
- * instance for transitional soy proto support:
1015
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1016
+ * the JSPB instance for transitional soy proto support:
721
1017
  * http://goto/soy-param-migration
722
1018
  * @param {!proto.CoinType} msg The msg instance to transform.
723
1019
  * @return {!Object}
@@ -725,26 +1021,27 @@ proto.CoinType.prototype.toObject = function(opt_includeInstance) {
725
1021
  */
726
1022
  proto.CoinType.toObject = function(includeInstance, msg) {
727
1023
  var f, obj = {
728
- coinName: jspb.Message.getField(msg, 1),
729
- coinShortcut: jspb.Message.getField(msg, 2),
1024
+ coinName: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
1025
+ coinShortcut: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
730
1026
  addressType: jspb.Message.getFieldWithDefault(msg, 3, 0),
731
- maxfeeKb: jspb.Message.getField(msg, 4),
1027
+ maxfeeKb: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
732
1028
  addressTypeP2sh: jspb.Message.getFieldWithDefault(msg, 5, 5),
733
- signedMessageHeader: jspb.Message.getField(msg, 8),
734
- bip44AccountPath: jspb.Message.getField(msg, 9),
735
- forkid: jspb.Message.getField(msg, 12),
736
- decimals: jspb.Message.getField(msg, 13),
1029
+ signedMessageHeader: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
1030
+ bip44AccountPath: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
1031
+ forkid: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f,
1032
+ decimals: (f = jspb.Message.getField(msg, 13)) == null ? undefined : f,
737
1033
  contractAddress: msg.getContractAddress_asB64(),
738
1034
  xpubMagic: jspb.Message.getFieldWithDefault(msg, 16, 76067358),
739
- segwit: jspb.Message.getField(msg, 18),
740
- forceBip143: jspb.Message.getField(msg, 19),
741
- curveName: jspb.Message.getField(msg, 20),
742
- cashaddrPrefix: jspb.Message.getField(msg, 21),
743
- bech32Prefix: jspb.Message.getField(msg, 22),
744
- decred: jspb.Message.getField(msg, 23),
745
- xpubMagicSegwitP2sh: jspb.Message.getField(msg, 25),
746
- xpubMagicSegwitNative: jspb.Message.getField(msg, 26),
747
- nanoaddrPrefix: jspb.Message.getField(msg, 27)
1035
+ segwit: (f = jspb.Message.getBooleanField(msg, 18)) == null ? undefined : f,
1036
+ forceBip143: (f = jspb.Message.getBooleanField(msg, 19)) == null ? undefined : f,
1037
+ curveName: (f = jspb.Message.getField(msg, 20)) == null ? undefined : f,
1038
+ cashaddrPrefix: (f = jspb.Message.getField(msg, 21)) == null ? undefined : f,
1039
+ bech32Prefix: (f = jspb.Message.getField(msg, 22)) == null ? undefined : f,
1040
+ decred: (f = jspb.Message.getBooleanField(msg, 23)) == null ? undefined : f,
1041
+ xpubMagicSegwitP2sh: (f = jspb.Message.getField(msg, 25)) == null ? undefined : f,
1042
+ xpubMagicSegwitNative: (f = jspb.Message.getField(msg, 26)) == null ? undefined : f,
1043
+ nanoaddrPrefix: (f = jspb.Message.getField(msg, 27)) == null ? undefined : f,
1044
+ taproot: (f = jspb.Message.getBooleanField(msg, 28)) == null ? undefined : f
748
1045
  };
749
1046
 
750
1047
  if (includeInstance) {
@@ -861,6 +1158,10 @@ proto.CoinType.deserializeBinaryFromReader = function(msg, reader) {
861
1158
  var value = /** @type {string} */ (reader.readString());
862
1159
  msg.setNanoaddrPrefix(value);
863
1160
  break;
1161
+ case 28:
1162
+ var value = /** @type {boolean} */ (reader.readBool());
1163
+ msg.setTaproot(value);
1164
+ break;
864
1165
  default:
865
1166
  reader.skipField();
866
1167
  break;
@@ -1030,6 +1331,13 @@ proto.CoinType.serializeBinaryToWriter = function(message, writer) {
1030
1331
  f
1031
1332
  );
1032
1333
  }
1334
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 28));
1335
+ if (f != null) {
1336
+ writer.writeBool(
1337
+ 28,
1338
+ f
1339
+ );
1340
+ }
1033
1341
  };
1034
1342
 
1035
1343
 
@@ -1042,20 +1350,27 @@ proto.CoinType.prototype.getCoinName = function() {
1042
1350
  };
1043
1351
 
1044
1352
 
1045
- /** @param {string} value */
1353
+ /**
1354
+ * @param {string} value
1355
+ * @return {!proto.CoinType} returns this
1356
+ */
1046
1357
  proto.CoinType.prototype.setCoinName = function(value) {
1047
- jspb.Message.setField(this, 1, value);
1358
+ return jspb.Message.setField(this, 1, value);
1048
1359
  };
1049
1360
 
1050
1361
 
1362
+ /**
1363
+ * Clears the field making it undefined.
1364
+ * @return {!proto.CoinType} returns this
1365
+ */
1051
1366
  proto.CoinType.prototype.clearCoinName = function() {
1052
- jspb.Message.setField(this, 1, undefined);
1367
+ return jspb.Message.setField(this, 1, undefined);
1053
1368
  };
1054
1369
 
1055
1370
 
1056
1371
  /**
1057
1372
  * Returns whether this field is set.
1058
- * @return {!boolean}
1373
+ * @return {boolean}
1059
1374
  */
1060
1375
  proto.CoinType.prototype.hasCoinName = function() {
1061
1376
  return jspb.Message.getField(this, 1) != null;
@@ -1071,20 +1386,27 @@ proto.CoinType.prototype.getCoinShortcut = function() {
1071
1386
  };
1072
1387
 
1073
1388
 
1074
- /** @param {string} value */
1389
+ /**
1390
+ * @param {string} value
1391
+ * @return {!proto.CoinType} returns this
1392
+ */
1075
1393
  proto.CoinType.prototype.setCoinShortcut = function(value) {
1076
- jspb.Message.setField(this, 2, value);
1394
+ return jspb.Message.setField(this, 2, value);
1077
1395
  };
1078
1396
 
1079
1397
 
1398
+ /**
1399
+ * Clears the field making it undefined.
1400
+ * @return {!proto.CoinType} returns this
1401
+ */
1080
1402
  proto.CoinType.prototype.clearCoinShortcut = function() {
1081
- jspb.Message.setField(this, 2, undefined);
1403
+ return jspb.Message.setField(this, 2, undefined);
1082
1404
  };
1083
1405
 
1084
1406
 
1085
1407
  /**
1086
1408
  * Returns whether this field is set.
1087
- * @return {!boolean}
1409
+ * @return {boolean}
1088
1410
  */
1089
1411
  proto.CoinType.prototype.hasCoinShortcut = function() {
1090
1412
  return jspb.Message.getField(this, 2) != null;
@@ -1100,20 +1422,27 @@ proto.CoinType.prototype.getAddressType = function() {
1100
1422
  };
1101
1423
 
1102
1424
 
1103
- /** @param {number} value */
1425
+ /**
1426
+ * @param {number} value
1427
+ * @return {!proto.CoinType} returns this
1428
+ */
1104
1429
  proto.CoinType.prototype.setAddressType = function(value) {
1105
- jspb.Message.setField(this, 3, value);
1430
+ return jspb.Message.setField(this, 3, value);
1106
1431
  };
1107
1432
 
1108
1433
 
1434
+ /**
1435
+ * Clears the field making it undefined.
1436
+ * @return {!proto.CoinType} returns this
1437
+ */
1109
1438
  proto.CoinType.prototype.clearAddressType = function() {
1110
- jspb.Message.setField(this, 3, undefined);
1439
+ return jspb.Message.setField(this, 3, undefined);
1111
1440
  };
1112
1441
 
1113
1442
 
1114
1443
  /**
1115
1444
  * Returns whether this field is set.
1116
- * @return {!boolean}
1445
+ * @return {boolean}
1117
1446
  */
1118
1447
  proto.CoinType.prototype.hasAddressType = function() {
1119
1448
  return jspb.Message.getField(this, 3) != null;
@@ -1129,20 +1458,27 @@ proto.CoinType.prototype.getMaxfeeKb = function() {
1129
1458
  };
1130
1459
 
1131
1460
 
1132
- /** @param {number} value */
1461
+ /**
1462
+ * @param {number} value
1463
+ * @return {!proto.CoinType} returns this
1464
+ */
1133
1465
  proto.CoinType.prototype.setMaxfeeKb = function(value) {
1134
- jspb.Message.setField(this, 4, value);
1466
+ return jspb.Message.setField(this, 4, value);
1135
1467
  };
1136
1468
 
1137
1469
 
1470
+ /**
1471
+ * Clears the field making it undefined.
1472
+ * @return {!proto.CoinType} returns this
1473
+ */
1138
1474
  proto.CoinType.prototype.clearMaxfeeKb = function() {
1139
- jspb.Message.setField(this, 4, undefined);
1475
+ return jspb.Message.setField(this, 4, undefined);
1140
1476
  };
1141
1477
 
1142
1478
 
1143
1479
  /**
1144
1480
  * Returns whether this field is set.
1145
- * @return {!boolean}
1481
+ * @return {boolean}
1146
1482
  */
1147
1483
  proto.CoinType.prototype.hasMaxfeeKb = function() {
1148
1484
  return jspb.Message.getField(this, 4) != null;
@@ -1158,20 +1494,27 @@ proto.CoinType.prototype.getAddressTypeP2sh = function() {
1158
1494
  };
1159
1495
 
1160
1496
 
1161
- /** @param {number} value */
1497
+ /**
1498
+ * @param {number} value
1499
+ * @return {!proto.CoinType} returns this
1500
+ */
1162
1501
  proto.CoinType.prototype.setAddressTypeP2sh = function(value) {
1163
- jspb.Message.setField(this, 5, value);
1502
+ return jspb.Message.setField(this, 5, value);
1164
1503
  };
1165
1504
 
1166
1505
 
1506
+ /**
1507
+ * Clears the field making it undefined.
1508
+ * @return {!proto.CoinType} returns this
1509
+ */
1167
1510
  proto.CoinType.prototype.clearAddressTypeP2sh = function() {
1168
- jspb.Message.setField(this, 5, undefined);
1511
+ return jspb.Message.setField(this, 5, undefined);
1169
1512
  };
1170
1513
 
1171
1514
 
1172
1515
  /**
1173
1516
  * Returns whether this field is set.
1174
- * @return {!boolean}
1517
+ * @return {boolean}
1175
1518
  */
1176
1519
  proto.CoinType.prototype.hasAddressTypeP2sh = function() {
1177
1520
  return jspb.Message.getField(this, 5) != null;
@@ -1187,20 +1530,27 @@ proto.CoinType.prototype.getSignedMessageHeader = function() {
1187
1530
  };
1188
1531
 
1189
1532
 
1190
- /** @param {string} value */
1533
+ /**
1534
+ * @param {string} value
1535
+ * @return {!proto.CoinType} returns this
1536
+ */
1191
1537
  proto.CoinType.prototype.setSignedMessageHeader = function(value) {
1192
- jspb.Message.setField(this, 8, value);
1538
+ return jspb.Message.setField(this, 8, value);
1193
1539
  };
1194
1540
 
1195
1541
 
1542
+ /**
1543
+ * Clears the field making it undefined.
1544
+ * @return {!proto.CoinType} returns this
1545
+ */
1196
1546
  proto.CoinType.prototype.clearSignedMessageHeader = function() {
1197
- jspb.Message.setField(this, 8, undefined);
1547
+ return jspb.Message.setField(this, 8, undefined);
1198
1548
  };
1199
1549
 
1200
1550
 
1201
1551
  /**
1202
1552
  * Returns whether this field is set.
1203
- * @return {!boolean}
1553
+ * @return {boolean}
1204
1554
  */
1205
1555
  proto.CoinType.prototype.hasSignedMessageHeader = function() {
1206
1556
  return jspb.Message.getField(this, 8) != null;
@@ -1216,20 +1566,27 @@ proto.CoinType.prototype.getBip44AccountPath = function() {
1216
1566
  };
1217
1567
 
1218
1568
 
1219
- /** @param {number} value */
1569
+ /**
1570
+ * @param {number} value
1571
+ * @return {!proto.CoinType} returns this
1572
+ */
1220
1573
  proto.CoinType.prototype.setBip44AccountPath = function(value) {
1221
- jspb.Message.setField(this, 9, value);
1574
+ return jspb.Message.setField(this, 9, value);
1222
1575
  };
1223
1576
 
1224
1577
 
1578
+ /**
1579
+ * Clears the field making it undefined.
1580
+ * @return {!proto.CoinType} returns this
1581
+ */
1225
1582
  proto.CoinType.prototype.clearBip44AccountPath = function() {
1226
- jspb.Message.setField(this, 9, undefined);
1583
+ return jspb.Message.setField(this, 9, undefined);
1227
1584
  };
1228
1585
 
1229
1586
 
1230
1587
  /**
1231
1588
  * Returns whether this field is set.
1232
- * @return {!boolean}
1589
+ * @return {boolean}
1233
1590
  */
1234
1591
  proto.CoinType.prototype.hasBip44AccountPath = function() {
1235
1592
  return jspb.Message.getField(this, 9) != null;
@@ -1245,20 +1602,27 @@ proto.CoinType.prototype.getForkid = function() {
1245
1602
  };
1246
1603
 
1247
1604
 
1248
- /** @param {number} value */
1605
+ /**
1606
+ * @param {number} value
1607
+ * @return {!proto.CoinType} returns this
1608
+ */
1249
1609
  proto.CoinType.prototype.setForkid = function(value) {
1250
- jspb.Message.setField(this, 12, value);
1610
+ return jspb.Message.setField(this, 12, value);
1251
1611
  };
1252
1612
 
1253
1613
 
1614
+ /**
1615
+ * Clears the field making it undefined.
1616
+ * @return {!proto.CoinType} returns this
1617
+ */
1254
1618
  proto.CoinType.prototype.clearForkid = function() {
1255
- jspb.Message.setField(this, 12, undefined);
1619
+ return jspb.Message.setField(this, 12, undefined);
1256
1620
  };
1257
1621
 
1258
1622
 
1259
1623
  /**
1260
1624
  * Returns whether this field is set.
1261
- * @return {!boolean}
1625
+ * @return {boolean}
1262
1626
  */
1263
1627
  proto.CoinType.prototype.hasForkid = function() {
1264
1628
  return jspb.Message.getField(this, 12) != null;
@@ -1274,20 +1638,27 @@ proto.CoinType.prototype.getDecimals = function() {
1274
1638
  };
1275
1639
 
1276
1640
 
1277
- /** @param {number} value */
1641
+ /**
1642
+ * @param {number} value
1643
+ * @return {!proto.CoinType} returns this
1644
+ */
1278
1645
  proto.CoinType.prototype.setDecimals = function(value) {
1279
- jspb.Message.setField(this, 13, value);
1646
+ return jspb.Message.setField(this, 13, value);
1280
1647
  };
1281
1648
 
1282
1649
 
1650
+ /**
1651
+ * Clears the field making it undefined.
1652
+ * @return {!proto.CoinType} returns this
1653
+ */
1283
1654
  proto.CoinType.prototype.clearDecimals = function() {
1284
- jspb.Message.setField(this, 13, undefined);
1655
+ return jspb.Message.setField(this, 13, undefined);
1285
1656
  };
1286
1657
 
1287
1658
 
1288
1659
  /**
1289
1660
  * Returns whether this field is set.
1290
- * @return {!boolean}
1661
+ * @return {boolean}
1291
1662
  */
1292
1663
  proto.CoinType.prototype.hasDecimals = function() {
1293
1664
  return jspb.Message.getField(this, 13) != null;
@@ -1327,20 +1698,27 @@ proto.CoinType.prototype.getContractAddress_asU8 = function() {
1327
1698
  };
1328
1699
 
1329
1700
 
1330
- /** @param {!(string|Uint8Array)} value */
1701
+ /**
1702
+ * @param {!(string|Uint8Array)} value
1703
+ * @return {!proto.CoinType} returns this
1704
+ */
1331
1705
  proto.CoinType.prototype.setContractAddress = function(value) {
1332
- jspb.Message.setField(this, 14, value);
1706
+ return jspb.Message.setField(this, 14, value);
1333
1707
  };
1334
1708
 
1335
1709
 
1710
+ /**
1711
+ * Clears the field making it undefined.
1712
+ * @return {!proto.CoinType} returns this
1713
+ */
1336
1714
  proto.CoinType.prototype.clearContractAddress = function() {
1337
- jspb.Message.setField(this, 14, undefined);
1715
+ return jspb.Message.setField(this, 14, undefined);
1338
1716
  };
1339
1717
 
1340
1718
 
1341
1719
  /**
1342
1720
  * Returns whether this field is set.
1343
- * @return {!boolean}
1721
+ * @return {boolean}
1344
1722
  */
1345
1723
  proto.CoinType.prototype.hasContractAddress = function() {
1346
1724
  return jspb.Message.getField(this, 14) != null;
@@ -1356,20 +1734,27 @@ proto.CoinType.prototype.getXpubMagic = function() {
1356
1734
  };
1357
1735
 
1358
1736
 
1359
- /** @param {number} value */
1737
+ /**
1738
+ * @param {number} value
1739
+ * @return {!proto.CoinType} returns this
1740
+ */
1360
1741
  proto.CoinType.prototype.setXpubMagic = function(value) {
1361
- jspb.Message.setField(this, 16, value);
1742
+ return jspb.Message.setField(this, 16, value);
1362
1743
  };
1363
1744
 
1364
1745
 
1746
+ /**
1747
+ * Clears the field making it undefined.
1748
+ * @return {!proto.CoinType} returns this
1749
+ */
1365
1750
  proto.CoinType.prototype.clearXpubMagic = function() {
1366
- jspb.Message.setField(this, 16, undefined);
1751
+ return jspb.Message.setField(this, 16, undefined);
1367
1752
  };
1368
1753
 
1369
1754
 
1370
1755
  /**
1371
1756
  * Returns whether this field is set.
1372
- * @return {!boolean}
1757
+ * @return {boolean}
1373
1758
  */
1374
1759
  proto.CoinType.prototype.hasXpubMagic = function() {
1375
1760
  return jspb.Message.getField(this, 16) != null;
@@ -1378,29 +1763,34 @@ proto.CoinType.prototype.hasXpubMagic = function() {
1378
1763
 
1379
1764
  /**
1380
1765
  * optional bool segwit = 18;
1381
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1382
- * You should avoid comparisons like {@code val === true/false} in those cases.
1383
1766
  * @return {boolean}
1384
1767
  */
1385
1768
  proto.CoinType.prototype.getSegwit = function() {
1386
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 18, false));
1769
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false));
1387
1770
  };
1388
1771
 
1389
1772
 
1390
- /** @param {boolean} value */
1773
+ /**
1774
+ * @param {boolean} value
1775
+ * @return {!proto.CoinType} returns this
1776
+ */
1391
1777
  proto.CoinType.prototype.setSegwit = function(value) {
1392
- jspb.Message.setField(this, 18, value);
1778
+ return jspb.Message.setField(this, 18, value);
1393
1779
  };
1394
1780
 
1395
1781
 
1782
+ /**
1783
+ * Clears the field making it undefined.
1784
+ * @return {!proto.CoinType} returns this
1785
+ */
1396
1786
  proto.CoinType.prototype.clearSegwit = function() {
1397
- jspb.Message.setField(this, 18, undefined);
1787
+ return jspb.Message.setField(this, 18, undefined);
1398
1788
  };
1399
1789
 
1400
1790
 
1401
1791
  /**
1402
1792
  * Returns whether this field is set.
1403
- * @return {!boolean}
1793
+ * @return {boolean}
1404
1794
  */
1405
1795
  proto.CoinType.prototype.hasSegwit = function() {
1406
1796
  return jspb.Message.getField(this, 18) != null;
@@ -1409,29 +1799,34 @@ proto.CoinType.prototype.hasSegwit = function() {
1409
1799
 
1410
1800
  /**
1411
1801
  * optional bool force_bip143 = 19;
1412
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1413
- * You should avoid comparisons like {@code val === true/false} in those cases.
1414
1802
  * @return {boolean}
1415
1803
  */
1416
1804
  proto.CoinType.prototype.getForceBip143 = function() {
1417
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 19, false));
1805
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false));
1418
1806
  };
1419
1807
 
1420
1808
 
1421
- /** @param {boolean} value */
1809
+ /**
1810
+ * @param {boolean} value
1811
+ * @return {!proto.CoinType} returns this
1812
+ */
1422
1813
  proto.CoinType.prototype.setForceBip143 = function(value) {
1423
- jspb.Message.setField(this, 19, value);
1814
+ return jspb.Message.setField(this, 19, value);
1424
1815
  };
1425
1816
 
1426
1817
 
1818
+ /**
1819
+ * Clears the field making it undefined.
1820
+ * @return {!proto.CoinType} returns this
1821
+ */
1427
1822
  proto.CoinType.prototype.clearForceBip143 = function() {
1428
- jspb.Message.setField(this, 19, undefined);
1823
+ return jspb.Message.setField(this, 19, undefined);
1429
1824
  };
1430
1825
 
1431
1826
 
1432
1827
  /**
1433
1828
  * Returns whether this field is set.
1434
- * @return {!boolean}
1829
+ * @return {boolean}
1435
1830
  */
1436
1831
  proto.CoinType.prototype.hasForceBip143 = function() {
1437
1832
  return jspb.Message.getField(this, 19) != null;
@@ -1447,20 +1842,27 @@ proto.CoinType.prototype.getCurveName = function() {
1447
1842
  };
1448
1843
 
1449
1844
 
1450
- /** @param {string} value */
1845
+ /**
1846
+ * @param {string} value
1847
+ * @return {!proto.CoinType} returns this
1848
+ */
1451
1849
  proto.CoinType.prototype.setCurveName = function(value) {
1452
- jspb.Message.setField(this, 20, value);
1850
+ return jspb.Message.setField(this, 20, value);
1453
1851
  };
1454
1852
 
1455
1853
 
1854
+ /**
1855
+ * Clears the field making it undefined.
1856
+ * @return {!proto.CoinType} returns this
1857
+ */
1456
1858
  proto.CoinType.prototype.clearCurveName = function() {
1457
- jspb.Message.setField(this, 20, undefined);
1859
+ return jspb.Message.setField(this, 20, undefined);
1458
1860
  };
1459
1861
 
1460
1862
 
1461
1863
  /**
1462
1864
  * Returns whether this field is set.
1463
- * @return {!boolean}
1865
+ * @return {boolean}
1464
1866
  */
1465
1867
  proto.CoinType.prototype.hasCurveName = function() {
1466
1868
  return jspb.Message.getField(this, 20) != null;
@@ -1476,20 +1878,27 @@ proto.CoinType.prototype.getCashaddrPrefix = function() {
1476
1878
  };
1477
1879
 
1478
1880
 
1479
- /** @param {string} value */
1881
+ /**
1882
+ * @param {string} value
1883
+ * @return {!proto.CoinType} returns this
1884
+ */
1480
1885
  proto.CoinType.prototype.setCashaddrPrefix = function(value) {
1481
- jspb.Message.setField(this, 21, value);
1886
+ return jspb.Message.setField(this, 21, value);
1482
1887
  };
1483
1888
 
1484
1889
 
1890
+ /**
1891
+ * Clears the field making it undefined.
1892
+ * @return {!proto.CoinType} returns this
1893
+ */
1485
1894
  proto.CoinType.prototype.clearCashaddrPrefix = function() {
1486
- jspb.Message.setField(this, 21, undefined);
1895
+ return jspb.Message.setField(this, 21, undefined);
1487
1896
  };
1488
1897
 
1489
1898
 
1490
1899
  /**
1491
1900
  * Returns whether this field is set.
1492
- * @return {!boolean}
1901
+ * @return {boolean}
1493
1902
  */
1494
1903
  proto.CoinType.prototype.hasCashaddrPrefix = function() {
1495
1904
  return jspb.Message.getField(this, 21) != null;
@@ -1505,20 +1914,27 @@ proto.CoinType.prototype.getBech32Prefix = function() {
1505
1914
  };
1506
1915
 
1507
1916
 
1508
- /** @param {string} value */
1917
+ /**
1918
+ * @param {string} value
1919
+ * @return {!proto.CoinType} returns this
1920
+ */
1509
1921
  proto.CoinType.prototype.setBech32Prefix = function(value) {
1510
- jspb.Message.setField(this, 22, value);
1922
+ return jspb.Message.setField(this, 22, value);
1511
1923
  };
1512
1924
 
1513
1925
 
1926
+ /**
1927
+ * Clears the field making it undefined.
1928
+ * @return {!proto.CoinType} returns this
1929
+ */
1514
1930
  proto.CoinType.prototype.clearBech32Prefix = function() {
1515
- jspb.Message.setField(this, 22, undefined);
1931
+ return jspb.Message.setField(this, 22, undefined);
1516
1932
  };
1517
1933
 
1518
1934
 
1519
1935
  /**
1520
1936
  * Returns whether this field is set.
1521
- * @return {!boolean}
1937
+ * @return {boolean}
1522
1938
  */
1523
1939
  proto.CoinType.prototype.hasBech32Prefix = function() {
1524
1940
  return jspb.Message.getField(this, 22) != null;
@@ -1527,29 +1943,34 @@ proto.CoinType.prototype.hasBech32Prefix = function() {
1527
1943
 
1528
1944
  /**
1529
1945
  * optional bool decred = 23;
1530
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1531
- * You should avoid comparisons like {@code val === true/false} in those cases.
1532
1946
  * @return {boolean}
1533
1947
  */
1534
1948
  proto.CoinType.prototype.getDecred = function() {
1535
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 23, false));
1949
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false));
1536
1950
  };
1537
1951
 
1538
1952
 
1539
- /** @param {boolean} value */
1953
+ /**
1954
+ * @param {boolean} value
1955
+ * @return {!proto.CoinType} returns this
1956
+ */
1540
1957
  proto.CoinType.prototype.setDecred = function(value) {
1541
- jspb.Message.setField(this, 23, value);
1958
+ return jspb.Message.setField(this, 23, value);
1542
1959
  };
1543
1960
 
1544
1961
 
1962
+ /**
1963
+ * Clears the field making it undefined.
1964
+ * @return {!proto.CoinType} returns this
1965
+ */
1545
1966
  proto.CoinType.prototype.clearDecred = function() {
1546
- jspb.Message.setField(this, 23, undefined);
1967
+ return jspb.Message.setField(this, 23, undefined);
1547
1968
  };
1548
1969
 
1549
1970
 
1550
1971
  /**
1551
1972
  * Returns whether this field is set.
1552
- * @return {!boolean}
1973
+ * @return {boolean}
1553
1974
  */
1554
1975
  proto.CoinType.prototype.hasDecred = function() {
1555
1976
  return jspb.Message.getField(this, 23) != null;
@@ -1565,20 +1986,27 @@ proto.CoinType.prototype.getXpubMagicSegwitP2sh = function() {
1565
1986
  };
1566
1987
 
1567
1988
 
1568
- /** @param {number} value */
1989
+ /**
1990
+ * @param {number} value
1991
+ * @return {!proto.CoinType} returns this
1992
+ */
1569
1993
  proto.CoinType.prototype.setXpubMagicSegwitP2sh = function(value) {
1570
- jspb.Message.setField(this, 25, value);
1994
+ return jspb.Message.setField(this, 25, value);
1571
1995
  };
1572
1996
 
1573
1997
 
1998
+ /**
1999
+ * Clears the field making it undefined.
2000
+ * @return {!proto.CoinType} returns this
2001
+ */
1574
2002
  proto.CoinType.prototype.clearXpubMagicSegwitP2sh = function() {
1575
- jspb.Message.setField(this, 25, undefined);
2003
+ return jspb.Message.setField(this, 25, undefined);
1576
2004
  };
1577
2005
 
1578
2006
 
1579
2007
  /**
1580
2008
  * Returns whether this field is set.
1581
- * @return {!boolean}
2009
+ * @return {boolean}
1582
2010
  */
1583
2011
  proto.CoinType.prototype.hasXpubMagicSegwitP2sh = function() {
1584
2012
  return jspb.Message.getField(this, 25) != null;
@@ -1594,20 +2022,27 @@ proto.CoinType.prototype.getXpubMagicSegwitNative = function() {
1594
2022
  };
1595
2023
 
1596
2024
 
1597
- /** @param {number} value */
2025
+ /**
2026
+ * @param {number} value
2027
+ * @return {!proto.CoinType} returns this
2028
+ */
1598
2029
  proto.CoinType.prototype.setXpubMagicSegwitNative = function(value) {
1599
- jspb.Message.setField(this, 26, value);
2030
+ return jspb.Message.setField(this, 26, value);
1600
2031
  };
1601
2032
 
1602
2033
 
2034
+ /**
2035
+ * Clears the field making it undefined.
2036
+ * @return {!proto.CoinType} returns this
2037
+ */
1603
2038
  proto.CoinType.prototype.clearXpubMagicSegwitNative = function() {
1604
- jspb.Message.setField(this, 26, undefined);
2039
+ return jspb.Message.setField(this, 26, undefined);
1605
2040
  };
1606
2041
 
1607
2042
 
1608
2043
  /**
1609
2044
  * Returns whether this field is set.
1610
- * @return {!boolean}
2045
+ * @return {boolean}
1611
2046
  */
1612
2047
  proto.CoinType.prototype.hasXpubMagicSegwitNative = function() {
1613
2048
  return jspb.Message.getField(this, 26) != null;
@@ -1623,44 +2058,70 @@ proto.CoinType.prototype.getNanoaddrPrefix = function() {
1623
2058
  };
1624
2059
 
1625
2060
 
1626
- /** @param {string} value */
2061
+ /**
2062
+ * @param {string} value
2063
+ * @return {!proto.CoinType} returns this
2064
+ */
1627
2065
  proto.CoinType.prototype.setNanoaddrPrefix = function(value) {
1628
- jspb.Message.setField(this, 27, value);
2066
+ return jspb.Message.setField(this, 27, value);
1629
2067
  };
1630
2068
 
1631
2069
 
2070
+ /**
2071
+ * Clears the field making it undefined.
2072
+ * @return {!proto.CoinType} returns this
2073
+ */
1632
2074
  proto.CoinType.prototype.clearNanoaddrPrefix = function() {
1633
- jspb.Message.setField(this, 27, undefined);
2075
+ return jspb.Message.setField(this, 27, undefined);
1634
2076
  };
1635
2077
 
1636
2078
 
1637
2079
  /**
1638
2080
  * Returns whether this field is set.
1639
- * @return {!boolean}
2081
+ * @return {boolean}
1640
2082
  */
1641
2083
  proto.CoinType.prototype.hasNanoaddrPrefix = function() {
1642
2084
  return jspb.Message.getField(this, 27) != null;
1643
2085
  };
1644
2086
 
1645
2087
 
2088
+ /**
2089
+ * optional bool taproot = 28;
2090
+ * @return {boolean}
2091
+ */
2092
+ proto.CoinType.prototype.getTaproot = function() {
2093
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false));
2094
+ };
2095
+
1646
2096
 
1647
2097
  /**
1648
- * Generated by JsPbCodeGenerator.
1649
- * @param {Array=} opt_data Optional initial data array, typically from a
1650
- * server response, or constructed directly in Javascript. The array is used
1651
- * in place and becomes part of the constructed object. It is not cloned.
1652
- * If no data is provided, the constructed object will be empty, but still
1653
- * valid.
1654
- * @extends {jspb.Message}
1655
- * @constructor
2098
+ * @param {boolean} value
2099
+ * @return {!proto.CoinType} returns this
1656
2100
  */
1657
- proto.MultisigRedeemScriptType = function(opt_data) {
1658
- jspb.Message.initialize(this, opt_data, 0, -1, proto.MultisigRedeemScriptType.repeatedFields_, null);
2101
+ proto.CoinType.prototype.setTaproot = function(value) {
2102
+ return jspb.Message.setField(this, 28, value);
1659
2103
  };
1660
- goog.inherits(proto.MultisigRedeemScriptType, jspb.Message);
1661
- if (goog.DEBUG && !COMPILED) {
1662
- proto.MultisigRedeemScriptType.displayName = 'proto.MultisigRedeemScriptType';
1663
- }
2104
+
2105
+
2106
+ /**
2107
+ * Clears the field making it undefined.
2108
+ * @return {!proto.CoinType} returns this
2109
+ */
2110
+ proto.CoinType.prototype.clearTaproot = function() {
2111
+ return jspb.Message.setField(this, 28, undefined);
2112
+ };
2113
+
2114
+
2115
+ /**
2116
+ * Returns whether this field is set.
2117
+ * @return {boolean}
2118
+ */
2119
+ proto.CoinType.prototype.hasTaproot = function() {
2120
+ return jspb.Message.getField(this, 28) != null;
2121
+ };
2122
+
2123
+
2124
+
1664
2125
  /**
1665
2126
  * List of repeated fields within this message type.
1666
2127
  * @private {!Array<number>}
@@ -1672,13 +2133,15 @@ proto.MultisigRedeemScriptType.repeatedFields_ = [1,2];
1672
2133
 
1673
2134
  if (jspb.Message.GENERATE_TO_OBJECT) {
1674
2135
  /**
1675
- * Creates an object representation of this proto suitable for use in Soy templates.
2136
+ * Creates an object representation of this proto.
1676
2137
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
2138
+ * Optional fields that are not set will be set to undefined.
1677
2139
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1678
2140
  * For the list of reserved names please see:
1679
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1680
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1681
- * for transitional soy proto support: http://goto/soy-param-migration
2141
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2142
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2143
+ * JSPB instance for transitional soy proto support:
2144
+ * http://goto/soy-param-migration
1682
2145
  * @return {!Object}
1683
2146
  */
1684
2147
  proto.MultisigRedeemScriptType.prototype.toObject = function(opt_includeInstance) {
@@ -1688,8 +2151,8 @@ proto.MultisigRedeemScriptType.prototype.toObject = function(opt_includeInstance
1688
2151
 
1689
2152
  /**
1690
2153
  * Static version of the {@see toObject} method.
1691
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1692
- * instance for transitional soy proto support:
2154
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2155
+ * the JSPB instance for transitional soy proto support:
1693
2156
  * http://goto/soy-param-migration
1694
2157
  * @param {!proto.MultisigRedeemScriptType} msg The msg instance to transform.
1695
2158
  * @return {!Object}
@@ -1700,7 +2163,7 @@ proto.MultisigRedeemScriptType.toObject = function(includeInstance, msg) {
1700
2163
  pubkeysList: jspb.Message.toObjectList(msg.getPubkeysList(),
1701
2164
  proto.HDNodePathType.toObject, includeInstance),
1702
2165
  signaturesList: msg.getSignaturesList_asB64(),
1703
- m: jspb.Message.getField(msg, 3)
2166
+ m: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
1704
2167
  };
1705
2168
 
1706
2169
  if (includeInstance) {
@@ -1814,9 +2277,12 @@ proto.MultisigRedeemScriptType.prototype.getPubkeysList = function() {
1814
2277
  };
1815
2278
 
1816
2279
 
1817
- /** @param {!Array<!proto.HDNodePathType>} value */
2280
+ /**
2281
+ * @param {!Array<!proto.HDNodePathType>} value
2282
+ * @return {!proto.MultisigRedeemScriptType} returns this
2283
+ */
1818
2284
  proto.MultisigRedeemScriptType.prototype.setPubkeysList = function(value) {
1819
- jspb.Message.setRepeatedWrapperField(this, 1, value);
2285
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1820
2286
  };
1821
2287
 
1822
2288
 
@@ -1830,8 +2296,12 @@ proto.MultisigRedeemScriptType.prototype.addPubkeys = function(opt_value, opt_in
1830
2296
  };
1831
2297
 
1832
2298
 
2299
+ /**
2300
+ * Clears the list making it empty but non-null.
2301
+ * @return {!proto.MultisigRedeemScriptType} returns this
2302
+ */
1833
2303
  proto.MultisigRedeemScriptType.prototype.clearPubkeysList = function() {
1834
- this.setPubkeysList([]);
2304
+ return this.setPubkeysList([]);
1835
2305
  };
1836
2306
 
1837
2307
 
@@ -1868,23 +2338,31 @@ proto.MultisigRedeemScriptType.prototype.getSignaturesList_asU8 = function() {
1868
2338
  };
1869
2339
 
1870
2340
 
1871
- /** @param {!(Array<!Uint8Array>|Array<string>)} value */
2341
+ /**
2342
+ * @param {!(Array<!Uint8Array>|Array<string>)} value
2343
+ * @return {!proto.MultisigRedeemScriptType} returns this
2344
+ */
1872
2345
  proto.MultisigRedeemScriptType.prototype.setSignaturesList = function(value) {
1873
- jspb.Message.setField(this, 2, value || []);
2346
+ return jspb.Message.setField(this, 2, value || []);
1874
2347
  };
1875
2348
 
1876
2349
 
1877
2350
  /**
1878
2351
  * @param {!(string|Uint8Array)} value
1879
2352
  * @param {number=} opt_index
2353
+ * @return {!proto.MultisigRedeemScriptType} returns this
1880
2354
  */
1881
2355
  proto.MultisigRedeemScriptType.prototype.addSignatures = function(value, opt_index) {
1882
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2356
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1883
2357
  };
1884
2358
 
1885
2359
 
2360
+ /**
2361
+ * Clears the list making it empty but non-null.
2362
+ * @return {!proto.MultisigRedeemScriptType} returns this
2363
+ */
1886
2364
  proto.MultisigRedeemScriptType.prototype.clearSignaturesList = function() {
1887
- this.setSignaturesList([]);
2365
+ return this.setSignaturesList([]);
1888
2366
  };
1889
2367
 
1890
2368
 
@@ -1897,20 +2375,27 @@ proto.MultisigRedeemScriptType.prototype.getM = function() {
1897
2375
  };
1898
2376
 
1899
2377
 
1900
- /** @param {number} value */
2378
+ /**
2379
+ * @param {number} value
2380
+ * @return {!proto.MultisigRedeemScriptType} returns this
2381
+ */
1901
2382
  proto.MultisigRedeemScriptType.prototype.setM = function(value) {
1902
- jspb.Message.setField(this, 3, value);
2383
+ return jspb.Message.setField(this, 3, value);
1903
2384
  };
1904
2385
 
1905
2386
 
2387
+ /**
2388
+ * Clears the field making it undefined.
2389
+ * @return {!proto.MultisigRedeemScriptType} returns this
2390
+ */
1906
2391
  proto.MultisigRedeemScriptType.prototype.clearM = function() {
1907
- jspb.Message.setField(this, 3, undefined);
2392
+ return jspb.Message.setField(this, 3, undefined);
1908
2393
  };
1909
2394
 
1910
2395
 
1911
2396
  /**
1912
2397
  * Returns whether this field is set.
1913
- * @return {!boolean}
2398
+ * @return {boolean}
1914
2399
  */
1915
2400
  proto.MultisigRedeemScriptType.prototype.hasM = function() {
1916
2401
  return jspb.Message.getField(this, 3) != null;
@@ -1918,23 +2403,6 @@ proto.MultisigRedeemScriptType.prototype.hasM = function() {
1918
2403
 
1919
2404
 
1920
2405
 
1921
- /**
1922
- * Generated by JsPbCodeGenerator.
1923
- * @param {Array=} opt_data Optional initial data array, typically from a
1924
- * server response, or constructed directly in Javascript. The array is used
1925
- * in place and becomes part of the constructed object. It is not cloned.
1926
- * If no data is provided, the constructed object will be empty, but still
1927
- * valid.
1928
- * @extends {jspb.Message}
1929
- * @constructor
1930
- */
1931
- proto.TxInputType = function(opt_data) {
1932
- jspb.Message.initialize(this, opt_data, 0, -1, proto.TxInputType.repeatedFields_, null);
1933
- };
1934
- goog.inherits(proto.TxInputType, jspb.Message);
1935
- if (goog.DEBUG && !COMPILED) {
1936
- proto.TxInputType.displayName = 'proto.TxInputType';
1937
- }
1938
2406
  /**
1939
2407
  * List of repeated fields within this message type.
1940
2408
  * @private {!Array<number>}
@@ -1946,13 +2414,15 @@ proto.TxInputType.repeatedFields_ = [1];
1946
2414
 
1947
2415
  if (jspb.Message.GENERATE_TO_OBJECT) {
1948
2416
  /**
1949
- * Creates an object representation of this proto suitable for use in Soy templates.
2417
+ * Creates an object representation of this proto.
1950
2418
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
2419
+ * Optional fields that are not set will be set to undefined.
1951
2420
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1952
2421
  * For the list of reserved names please see:
1953
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1954
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1955
- * for transitional soy proto support: http://goto/soy-param-migration
2422
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2423
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2424
+ * JSPB instance for transitional soy proto support:
2425
+ * http://goto/soy-param-migration
1956
2426
  * @return {!Object}
1957
2427
  */
1958
2428
  proto.TxInputType.prototype.toObject = function(opt_includeInstance) {
@@ -1962,8 +2432,8 @@ proto.TxInputType.prototype.toObject = function(opt_includeInstance) {
1962
2432
 
1963
2433
  /**
1964
2434
  * Static version of the {@see toObject} method.
1965
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1966
- * instance for transitional soy proto support:
2435
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2436
+ * the JSPB instance for transitional soy proto support:
1967
2437
  * http://goto/soy-param-migration
1968
2438
  * @param {!proto.TxInputType} msg The msg instance to transform.
1969
2439
  * @return {!Object}
@@ -1971,16 +2441,16 @@ proto.TxInputType.prototype.toObject = function(opt_includeInstance) {
1971
2441
  */
1972
2442
  proto.TxInputType.toObject = function(includeInstance, msg) {
1973
2443
  var f, obj = {
1974
- addressNList: jspb.Message.getRepeatedField(msg, 1),
2444
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1975
2445
  prevHash: msg.getPrevHash_asB64(),
1976
- prevIndex: jspb.Message.getField(msg, 3),
2446
+ prevIndex: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
1977
2447
  scriptSig: msg.getScriptSig_asB64(),
1978
2448
  sequence: jspb.Message.getFieldWithDefault(msg, 5, -1),
1979
2449
  scriptType: jspb.Message.getFieldWithDefault(msg, 6, 0),
1980
2450
  multisig: (f = msg.getMultisig()) && proto.MultisigRedeemScriptType.toObject(includeInstance, f),
1981
- amount: jspb.Message.getField(msg, 8),
1982
- decredTree: jspb.Message.getField(msg, 9),
1983
- decredScriptVersion: jspb.Message.getField(msg, 10)
2451
+ amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
2452
+ decredTree: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
2453
+ decredScriptVersion: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f
1984
2454
  };
1985
2455
 
1986
2456
  if (includeInstance) {
@@ -2018,8 +2488,10 @@ proto.TxInputType.deserializeBinaryFromReader = function(msg, reader) {
2018
2488
  var field = reader.getFieldNumber();
2019
2489
  switch (field) {
2020
2490
  case 1:
2021
- var value = /** @type {number} */ (reader.readUint32());
2022
- msg.addAddressN(value);
2491
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
2492
+ for (var i = 0; i < values.length; i++) {
2493
+ msg.addAddressN(values[i]);
2494
+ }
2023
2495
  break;
2024
2496
  case 2:
2025
2497
  var value = /** @type {!Uint8Array} */ (reader.readBytes());
@@ -2170,23 +2642,31 @@ proto.TxInputType.prototype.getAddressNList = function() {
2170
2642
  };
2171
2643
 
2172
2644
 
2173
- /** @param {!Array<number>} value */
2645
+ /**
2646
+ * @param {!Array<number>} value
2647
+ * @return {!proto.TxInputType} returns this
2648
+ */
2174
2649
  proto.TxInputType.prototype.setAddressNList = function(value) {
2175
- jspb.Message.setField(this, 1, value || []);
2650
+ return jspb.Message.setField(this, 1, value || []);
2176
2651
  };
2177
2652
 
2178
2653
 
2179
2654
  /**
2180
- * @param {!number} value
2655
+ * @param {number} value
2181
2656
  * @param {number=} opt_index
2657
+ * @return {!proto.TxInputType} returns this
2182
2658
  */
2183
2659
  proto.TxInputType.prototype.addAddressN = function(value, opt_index) {
2184
- jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2660
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2185
2661
  };
2186
2662
 
2187
2663
 
2664
+ /**
2665
+ * Clears the list making it empty but non-null.
2666
+ * @return {!proto.TxInputType} returns this
2667
+ */
2188
2668
  proto.TxInputType.prototype.clearAddressNList = function() {
2189
- this.setAddressNList([]);
2669
+ return this.setAddressNList([]);
2190
2670
  };
2191
2671
 
2192
2672
 
@@ -2223,20 +2703,27 @@ proto.TxInputType.prototype.getPrevHash_asU8 = function() {
2223
2703
  };
2224
2704
 
2225
2705
 
2226
- /** @param {!(string|Uint8Array)} value */
2706
+ /**
2707
+ * @param {!(string|Uint8Array)} value
2708
+ * @return {!proto.TxInputType} returns this
2709
+ */
2227
2710
  proto.TxInputType.prototype.setPrevHash = function(value) {
2228
- jspb.Message.setField(this, 2, value);
2711
+ return jspb.Message.setField(this, 2, value);
2229
2712
  };
2230
2713
 
2231
2714
 
2715
+ /**
2716
+ * Clears the field making it undefined.
2717
+ * @return {!proto.TxInputType} returns this
2718
+ */
2232
2719
  proto.TxInputType.prototype.clearPrevHash = function() {
2233
- jspb.Message.setField(this, 2, undefined);
2720
+ return jspb.Message.setField(this, 2, undefined);
2234
2721
  };
2235
2722
 
2236
2723
 
2237
2724
  /**
2238
2725
  * Returns whether this field is set.
2239
- * @return {!boolean}
2726
+ * @return {boolean}
2240
2727
  */
2241
2728
  proto.TxInputType.prototype.hasPrevHash = function() {
2242
2729
  return jspb.Message.getField(this, 2) != null;
@@ -2252,20 +2739,27 @@ proto.TxInputType.prototype.getPrevIndex = function() {
2252
2739
  };
2253
2740
 
2254
2741
 
2255
- /** @param {number} value */
2742
+ /**
2743
+ * @param {number} value
2744
+ * @return {!proto.TxInputType} returns this
2745
+ */
2256
2746
  proto.TxInputType.prototype.setPrevIndex = function(value) {
2257
- jspb.Message.setField(this, 3, value);
2747
+ return jspb.Message.setField(this, 3, value);
2258
2748
  };
2259
2749
 
2260
2750
 
2751
+ /**
2752
+ * Clears the field making it undefined.
2753
+ * @return {!proto.TxInputType} returns this
2754
+ */
2261
2755
  proto.TxInputType.prototype.clearPrevIndex = function() {
2262
- jspb.Message.setField(this, 3, undefined);
2756
+ return jspb.Message.setField(this, 3, undefined);
2263
2757
  };
2264
2758
 
2265
2759
 
2266
2760
  /**
2267
2761
  * Returns whether this field is set.
2268
- * @return {!boolean}
2762
+ * @return {boolean}
2269
2763
  */
2270
2764
  proto.TxInputType.prototype.hasPrevIndex = function() {
2271
2765
  return jspb.Message.getField(this, 3) != null;
@@ -2305,20 +2799,27 @@ proto.TxInputType.prototype.getScriptSig_asU8 = function() {
2305
2799
  };
2306
2800
 
2307
2801
 
2308
- /** @param {!(string|Uint8Array)} value */
2802
+ /**
2803
+ * @param {!(string|Uint8Array)} value
2804
+ * @return {!proto.TxInputType} returns this
2805
+ */
2309
2806
  proto.TxInputType.prototype.setScriptSig = function(value) {
2310
- jspb.Message.setField(this, 4, value);
2807
+ return jspb.Message.setField(this, 4, value);
2311
2808
  };
2312
2809
 
2313
2810
 
2811
+ /**
2812
+ * Clears the field making it undefined.
2813
+ * @return {!proto.TxInputType} returns this
2814
+ */
2314
2815
  proto.TxInputType.prototype.clearScriptSig = function() {
2315
- jspb.Message.setField(this, 4, undefined);
2816
+ return jspb.Message.setField(this, 4, undefined);
2316
2817
  };
2317
2818
 
2318
2819
 
2319
2820
  /**
2320
2821
  * Returns whether this field is set.
2321
- * @return {!boolean}
2822
+ * @return {boolean}
2322
2823
  */
2323
2824
  proto.TxInputType.prototype.hasScriptSig = function() {
2324
2825
  return jspb.Message.getField(this, 4) != null;
@@ -2334,20 +2835,27 @@ proto.TxInputType.prototype.getSequence = function() {
2334
2835
  };
2335
2836
 
2336
2837
 
2337
- /** @param {number} value */
2838
+ /**
2839
+ * @param {number} value
2840
+ * @return {!proto.TxInputType} returns this
2841
+ */
2338
2842
  proto.TxInputType.prototype.setSequence = function(value) {
2339
- jspb.Message.setField(this, 5, value);
2843
+ return jspb.Message.setField(this, 5, value);
2340
2844
  };
2341
2845
 
2342
2846
 
2847
+ /**
2848
+ * Clears the field making it undefined.
2849
+ * @return {!proto.TxInputType} returns this
2850
+ */
2343
2851
  proto.TxInputType.prototype.clearSequence = function() {
2344
- jspb.Message.setField(this, 5, undefined);
2852
+ return jspb.Message.setField(this, 5, undefined);
2345
2853
  };
2346
2854
 
2347
2855
 
2348
2856
  /**
2349
2857
  * Returns whether this field is set.
2350
- * @return {!boolean}
2858
+ * @return {boolean}
2351
2859
  */
2352
2860
  proto.TxInputType.prototype.hasSequence = function() {
2353
2861
  return jspb.Message.getField(this, 5) != null;
@@ -2363,20 +2871,27 @@ proto.TxInputType.prototype.getScriptType = function() {
2363
2871
  };
2364
2872
 
2365
2873
 
2366
- /** @param {!proto.InputScriptType} value */
2874
+ /**
2875
+ * @param {!proto.InputScriptType} value
2876
+ * @return {!proto.TxInputType} returns this
2877
+ */
2367
2878
  proto.TxInputType.prototype.setScriptType = function(value) {
2368
- jspb.Message.setField(this, 6, value);
2879
+ return jspb.Message.setField(this, 6, value);
2369
2880
  };
2370
2881
 
2371
2882
 
2883
+ /**
2884
+ * Clears the field making it undefined.
2885
+ * @return {!proto.TxInputType} returns this
2886
+ */
2372
2887
  proto.TxInputType.prototype.clearScriptType = function() {
2373
- jspb.Message.setField(this, 6, undefined);
2888
+ return jspb.Message.setField(this, 6, undefined);
2374
2889
  };
2375
2890
 
2376
2891
 
2377
2892
  /**
2378
2893
  * Returns whether this field is set.
2379
- * @return {!boolean}
2894
+ * @return {boolean}
2380
2895
  */
2381
2896
  proto.TxInputType.prototype.hasScriptType = function() {
2382
2897
  return jspb.Message.getField(this, 6) != null;
@@ -2393,20 +2908,27 @@ proto.TxInputType.prototype.getMultisig = function() {
2393
2908
  };
2394
2909
 
2395
2910
 
2396
- /** @param {?proto.MultisigRedeemScriptType|undefined} value */
2911
+ /**
2912
+ * @param {?proto.MultisigRedeemScriptType|undefined} value
2913
+ * @return {!proto.TxInputType} returns this
2914
+ */
2397
2915
  proto.TxInputType.prototype.setMultisig = function(value) {
2398
- jspb.Message.setWrapperField(this, 7, value);
2916
+ return jspb.Message.setWrapperField(this, 7, value);
2399
2917
  };
2400
2918
 
2401
2919
 
2920
+ /**
2921
+ * Clears the message field making it undefined.
2922
+ * @return {!proto.TxInputType} returns this
2923
+ */
2402
2924
  proto.TxInputType.prototype.clearMultisig = function() {
2403
- this.setMultisig(undefined);
2925
+ return this.setMultisig(undefined);
2404
2926
  };
2405
2927
 
2406
2928
 
2407
2929
  /**
2408
2930
  * Returns whether this field is set.
2409
- * @return {!boolean}
2931
+ * @return {boolean}
2410
2932
  */
2411
2933
  proto.TxInputType.prototype.hasMultisig = function() {
2412
2934
  return jspb.Message.getField(this, 7) != null;
@@ -2422,20 +2944,27 @@ proto.TxInputType.prototype.getAmount = function() {
2422
2944
  };
2423
2945
 
2424
2946
 
2425
- /** @param {number} value */
2947
+ /**
2948
+ * @param {number} value
2949
+ * @return {!proto.TxInputType} returns this
2950
+ */
2426
2951
  proto.TxInputType.prototype.setAmount = function(value) {
2427
- jspb.Message.setField(this, 8, value);
2952
+ return jspb.Message.setField(this, 8, value);
2428
2953
  };
2429
2954
 
2430
2955
 
2956
+ /**
2957
+ * Clears the field making it undefined.
2958
+ * @return {!proto.TxInputType} returns this
2959
+ */
2431
2960
  proto.TxInputType.prototype.clearAmount = function() {
2432
- jspb.Message.setField(this, 8, undefined);
2961
+ return jspb.Message.setField(this, 8, undefined);
2433
2962
  };
2434
2963
 
2435
2964
 
2436
2965
  /**
2437
2966
  * Returns whether this field is set.
2438
- * @return {!boolean}
2967
+ * @return {boolean}
2439
2968
  */
2440
2969
  proto.TxInputType.prototype.hasAmount = function() {
2441
2970
  return jspb.Message.getField(this, 8) != null;
@@ -2451,20 +2980,27 @@ proto.TxInputType.prototype.getDecredTree = function() {
2451
2980
  };
2452
2981
 
2453
2982
 
2454
- /** @param {number} value */
2983
+ /**
2984
+ * @param {number} value
2985
+ * @return {!proto.TxInputType} returns this
2986
+ */
2455
2987
  proto.TxInputType.prototype.setDecredTree = function(value) {
2456
- jspb.Message.setField(this, 9, value);
2988
+ return jspb.Message.setField(this, 9, value);
2457
2989
  };
2458
2990
 
2459
2991
 
2992
+ /**
2993
+ * Clears the field making it undefined.
2994
+ * @return {!proto.TxInputType} returns this
2995
+ */
2460
2996
  proto.TxInputType.prototype.clearDecredTree = function() {
2461
- jspb.Message.setField(this, 9, undefined);
2997
+ return jspb.Message.setField(this, 9, undefined);
2462
2998
  };
2463
2999
 
2464
3000
 
2465
3001
  /**
2466
3002
  * Returns whether this field is set.
2467
- * @return {!boolean}
3003
+ * @return {boolean}
2468
3004
  */
2469
3005
  proto.TxInputType.prototype.hasDecredTree = function() {
2470
3006
  return jspb.Message.getField(this, 9) != null;
@@ -2480,20 +3016,27 @@ proto.TxInputType.prototype.getDecredScriptVersion = function() {
2480
3016
  };
2481
3017
 
2482
3018
 
2483
- /** @param {number} value */
3019
+ /**
3020
+ * @param {number} value
3021
+ * @return {!proto.TxInputType} returns this
3022
+ */
2484
3023
  proto.TxInputType.prototype.setDecredScriptVersion = function(value) {
2485
- jspb.Message.setField(this, 10, value);
3024
+ return jspb.Message.setField(this, 10, value);
2486
3025
  };
2487
3026
 
2488
3027
 
3028
+ /**
3029
+ * Clears the field making it undefined.
3030
+ * @return {!proto.TxInputType} returns this
3031
+ */
2489
3032
  proto.TxInputType.prototype.clearDecredScriptVersion = function() {
2490
- jspb.Message.setField(this, 10, undefined);
3033
+ return jspb.Message.setField(this, 10, undefined);
2491
3034
  };
2492
3035
 
2493
3036
 
2494
3037
  /**
2495
3038
  * Returns whether this field is set.
2496
- * @return {!boolean}
3039
+ * @return {boolean}
2497
3040
  */
2498
3041
  proto.TxInputType.prototype.hasDecredScriptVersion = function() {
2499
3042
  return jspb.Message.getField(this, 10) != null;
@@ -2501,23 +3044,6 @@ proto.TxInputType.prototype.hasDecredScriptVersion = function() {
2501
3044
 
2502
3045
 
2503
3046
 
2504
- /**
2505
- * Generated by JsPbCodeGenerator.
2506
- * @param {Array=} opt_data Optional initial data array, typically from a
2507
- * server response, or constructed directly in Javascript. The array is used
2508
- * in place and becomes part of the constructed object. It is not cloned.
2509
- * If no data is provided, the constructed object will be empty, but still
2510
- * valid.
2511
- * @extends {jspb.Message}
2512
- * @constructor
2513
- */
2514
- proto.TxOutputType = function(opt_data) {
2515
- jspb.Message.initialize(this, opt_data, 0, -1, proto.TxOutputType.repeatedFields_, null);
2516
- };
2517
- goog.inherits(proto.TxOutputType, jspb.Message);
2518
- if (goog.DEBUG && !COMPILED) {
2519
- proto.TxOutputType.displayName = 'proto.TxOutputType';
2520
- }
2521
3047
  /**
2522
3048
  * List of repeated fields within this message type.
2523
3049
  * @private {!Array<number>}
@@ -2529,13 +3055,15 @@ proto.TxOutputType.repeatedFields_ = [2];
2529
3055
 
2530
3056
  if (jspb.Message.GENERATE_TO_OBJECT) {
2531
3057
  /**
2532
- * Creates an object representation of this proto suitable for use in Soy templates.
3058
+ * Creates an object representation of this proto.
2533
3059
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
3060
+ * Optional fields that are not set will be set to undefined.
2534
3061
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2535
3062
  * For the list of reserved names please see:
2536
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2537
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2538
- * for transitional soy proto support: http://goto/soy-param-migration
3063
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3064
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3065
+ * JSPB instance for transitional soy proto support:
3066
+ * http://goto/soy-param-migration
2539
3067
  * @return {!Object}
2540
3068
  */
2541
3069
  proto.TxOutputType.prototype.toObject = function(opt_includeInstance) {
@@ -2545,8 +3073,8 @@ proto.TxOutputType.prototype.toObject = function(opt_includeInstance) {
2545
3073
 
2546
3074
  /**
2547
3075
  * Static version of the {@see toObject} method.
2548
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2549
- * instance for transitional soy proto support:
3076
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3077
+ * the JSPB instance for transitional soy proto support:
2550
3078
  * http://goto/soy-param-migration
2551
3079
  * @param {!proto.TxOutputType} msg The msg instance to transform.
2552
3080
  * @return {!Object}
@@ -2554,15 +3082,14 @@ proto.TxOutputType.prototype.toObject = function(opt_includeInstance) {
2554
3082
  */
2555
3083
  proto.TxOutputType.toObject = function(includeInstance, msg) {
2556
3084
  var f, obj = {
2557
- address: jspb.Message.getField(msg, 1),
2558
- addressNList: jspb.Message.getRepeatedField(msg, 2),
2559
- amount: jspb.Message.getField(msg, 3),
2560
- scriptType: jspb.Message.getField(msg, 4),
3085
+ address: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
3086
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
3087
+ amount: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
3088
+ scriptType: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
2561
3089
  multisig: (f = msg.getMultisig()) && proto.MultisigRedeemScriptType.toObject(includeInstance, f),
2562
3090
  opReturnData: msg.getOpReturnData_asB64(),
2563
- addressType: jspb.Message.getField(msg, 7),
2564
- exchangeType: (f = msg.getExchangeType()) && proto.ExchangeType.toObject(includeInstance, f),
2565
- decredScriptVersion: jspb.Message.getField(msg, 9)
3091
+ addressType: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
3092
+ decredScriptVersion: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
2566
3093
  };
2567
3094
 
2568
3095
  if (includeInstance) {
@@ -2604,8 +3131,10 @@ proto.TxOutputType.deserializeBinaryFromReader = function(msg, reader) {
2604
3131
  msg.setAddress(value);
2605
3132
  break;
2606
3133
  case 2:
2607
- var value = /** @type {number} */ (reader.readUint32());
2608
- msg.addAddressN(value);
3134
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
3135
+ for (var i = 0; i < values.length; i++) {
3136
+ msg.addAddressN(values[i]);
3137
+ }
2609
3138
  break;
2610
3139
  case 3:
2611
3140
  var value = /** @type {number} */ (reader.readUint64());
@@ -2628,11 +3157,6 @@ proto.TxOutputType.deserializeBinaryFromReader = function(msg, reader) {
2628
3157
  var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
2629
3158
  msg.setAddressType(value);
2630
3159
  break;
2631
- case 8:
2632
- var value = new proto.ExchangeType;
2633
- reader.readMessage(value,proto.ExchangeType.deserializeBinaryFromReader);
2634
- msg.setExchangeType(value);
2635
- break;
2636
3160
  case 9:
2637
3161
  var value = /** @type {number} */ (reader.readUint32());
2638
3162
  msg.setDecredScriptVersion(value);
@@ -2716,14 +3240,6 @@ proto.TxOutputType.serializeBinaryToWriter = function(message, writer) {
2716
3240
  f
2717
3241
  );
2718
3242
  }
2719
- f = message.getExchangeType();
2720
- if (f != null) {
2721
- writer.writeMessage(
2722
- 8,
2723
- f,
2724
- proto.ExchangeType.serializeBinaryToWriter
2725
- );
2726
- }
2727
3243
  f = /** @type {number} */ (jspb.Message.getField(message, 9));
2728
3244
  if (f != null) {
2729
3245
  writer.writeUint32(
@@ -2743,20 +3259,27 @@ proto.TxOutputType.prototype.getAddress = function() {
2743
3259
  };
2744
3260
 
2745
3261
 
2746
- /** @param {string} value */
3262
+ /**
3263
+ * @param {string} value
3264
+ * @return {!proto.TxOutputType} returns this
3265
+ */
2747
3266
  proto.TxOutputType.prototype.setAddress = function(value) {
2748
- jspb.Message.setField(this, 1, value);
3267
+ return jspb.Message.setField(this, 1, value);
2749
3268
  };
2750
3269
 
2751
3270
 
3271
+ /**
3272
+ * Clears the field making it undefined.
3273
+ * @return {!proto.TxOutputType} returns this
3274
+ */
2752
3275
  proto.TxOutputType.prototype.clearAddress = function() {
2753
- jspb.Message.setField(this, 1, undefined);
3276
+ return jspb.Message.setField(this, 1, undefined);
2754
3277
  };
2755
3278
 
2756
3279
 
2757
3280
  /**
2758
3281
  * Returns whether this field is set.
2759
- * @return {!boolean}
3282
+ * @return {boolean}
2760
3283
  */
2761
3284
  proto.TxOutputType.prototype.hasAddress = function() {
2762
3285
  return jspb.Message.getField(this, 1) != null;
@@ -2772,23 +3295,31 @@ proto.TxOutputType.prototype.getAddressNList = function() {
2772
3295
  };
2773
3296
 
2774
3297
 
2775
- /** @param {!Array<number>} value */
3298
+ /**
3299
+ * @param {!Array<number>} value
3300
+ * @return {!proto.TxOutputType} returns this
3301
+ */
2776
3302
  proto.TxOutputType.prototype.setAddressNList = function(value) {
2777
- jspb.Message.setField(this, 2, value || []);
3303
+ return jspb.Message.setField(this, 2, value || []);
2778
3304
  };
2779
3305
 
2780
3306
 
2781
3307
  /**
2782
- * @param {!number} value
3308
+ * @param {number} value
2783
3309
  * @param {number=} opt_index
3310
+ * @return {!proto.TxOutputType} returns this
2784
3311
  */
2785
3312
  proto.TxOutputType.prototype.addAddressN = function(value, opt_index) {
2786
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3313
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2787
3314
  };
2788
3315
 
2789
3316
 
3317
+ /**
3318
+ * Clears the list making it empty but non-null.
3319
+ * @return {!proto.TxOutputType} returns this
3320
+ */
2790
3321
  proto.TxOutputType.prototype.clearAddressNList = function() {
2791
- this.setAddressNList([]);
3322
+ return this.setAddressNList([]);
2792
3323
  };
2793
3324
 
2794
3325
 
@@ -2801,20 +3332,27 @@ proto.TxOutputType.prototype.getAmount = function() {
2801
3332
  };
2802
3333
 
2803
3334
 
2804
- /** @param {number} value */
3335
+ /**
3336
+ * @param {number} value
3337
+ * @return {!proto.TxOutputType} returns this
3338
+ */
2805
3339
  proto.TxOutputType.prototype.setAmount = function(value) {
2806
- jspb.Message.setField(this, 3, value);
3340
+ return jspb.Message.setField(this, 3, value);
2807
3341
  };
2808
3342
 
2809
3343
 
3344
+ /**
3345
+ * Clears the field making it undefined.
3346
+ * @return {!proto.TxOutputType} returns this
3347
+ */
2810
3348
  proto.TxOutputType.prototype.clearAmount = function() {
2811
- jspb.Message.setField(this, 3, undefined);
3349
+ return jspb.Message.setField(this, 3, undefined);
2812
3350
  };
2813
3351
 
2814
3352
 
2815
3353
  /**
2816
3354
  * Returns whether this field is set.
2817
- * @return {!boolean}
3355
+ * @return {boolean}
2818
3356
  */
2819
3357
  proto.TxOutputType.prototype.hasAmount = function() {
2820
3358
  return jspb.Message.getField(this, 3) != null;
@@ -2830,20 +3368,27 @@ proto.TxOutputType.prototype.getScriptType = function() {
2830
3368
  };
2831
3369
 
2832
3370
 
2833
- /** @param {!proto.OutputScriptType} value */
3371
+ /**
3372
+ * @param {!proto.OutputScriptType} value
3373
+ * @return {!proto.TxOutputType} returns this
3374
+ */
2834
3375
  proto.TxOutputType.prototype.setScriptType = function(value) {
2835
- jspb.Message.setField(this, 4, value);
3376
+ return jspb.Message.setField(this, 4, value);
2836
3377
  };
2837
3378
 
2838
3379
 
3380
+ /**
3381
+ * Clears the field making it undefined.
3382
+ * @return {!proto.TxOutputType} returns this
3383
+ */
2839
3384
  proto.TxOutputType.prototype.clearScriptType = function() {
2840
- jspb.Message.setField(this, 4, undefined);
3385
+ return jspb.Message.setField(this, 4, undefined);
2841
3386
  };
2842
3387
 
2843
3388
 
2844
3389
  /**
2845
3390
  * Returns whether this field is set.
2846
- * @return {!boolean}
3391
+ * @return {boolean}
2847
3392
  */
2848
3393
  proto.TxOutputType.prototype.hasScriptType = function() {
2849
3394
  return jspb.Message.getField(this, 4) != null;
@@ -2860,20 +3405,27 @@ proto.TxOutputType.prototype.getMultisig = function() {
2860
3405
  };
2861
3406
 
2862
3407
 
2863
- /** @param {?proto.MultisigRedeemScriptType|undefined} value */
3408
+ /**
3409
+ * @param {?proto.MultisigRedeemScriptType|undefined} value
3410
+ * @return {!proto.TxOutputType} returns this
3411
+ */
2864
3412
  proto.TxOutputType.prototype.setMultisig = function(value) {
2865
- jspb.Message.setWrapperField(this, 5, value);
3413
+ return jspb.Message.setWrapperField(this, 5, value);
2866
3414
  };
2867
3415
 
2868
3416
 
3417
+ /**
3418
+ * Clears the message field making it undefined.
3419
+ * @return {!proto.TxOutputType} returns this
3420
+ */
2869
3421
  proto.TxOutputType.prototype.clearMultisig = function() {
2870
- this.setMultisig(undefined);
3422
+ return this.setMultisig(undefined);
2871
3423
  };
2872
3424
 
2873
3425
 
2874
3426
  /**
2875
3427
  * Returns whether this field is set.
2876
- * @return {!boolean}
3428
+ * @return {boolean}
2877
3429
  */
2878
3430
  proto.TxOutputType.prototype.hasMultisig = function() {
2879
3431
  return jspb.Message.getField(this, 5) != null;
@@ -2913,20 +3465,27 @@ proto.TxOutputType.prototype.getOpReturnData_asU8 = function() {
2913
3465
  };
2914
3466
 
2915
3467
 
2916
- /** @param {!(string|Uint8Array)} value */
3468
+ /**
3469
+ * @param {!(string|Uint8Array)} value
3470
+ * @return {!proto.TxOutputType} returns this
3471
+ */
2917
3472
  proto.TxOutputType.prototype.setOpReturnData = function(value) {
2918
- jspb.Message.setField(this, 6, value);
3473
+ return jspb.Message.setField(this, 6, value);
2919
3474
  };
2920
3475
 
2921
3476
 
3477
+ /**
3478
+ * Clears the field making it undefined.
3479
+ * @return {!proto.TxOutputType} returns this
3480
+ */
2922
3481
  proto.TxOutputType.prototype.clearOpReturnData = function() {
2923
- jspb.Message.setField(this, 6, undefined);
3482
+ return jspb.Message.setField(this, 6, undefined);
2924
3483
  };
2925
3484
 
2926
3485
 
2927
3486
  /**
2928
3487
  * Returns whether this field is set.
2929
- * @return {!boolean}
3488
+ * @return {boolean}
2930
3489
  */
2931
3490
  proto.TxOutputType.prototype.hasOpReturnData = function() {
2932
3491
  return jspb.Message.getField(this, 6) != null;
@@ -2942,53 +3501,30 @@ proto.TxOutputType.prototype.getAddressType = function() {
2942
3501
  };
2943
3502
 
2944
3503
 
2945
- /** @param {!proto.OutputAddressType} value */
2946
- proto.TxOutputType.prototype.setAddressType = function(value) {
2947
- jspb.Message.setField(this, 7, value);
2948
- };
2949
-
2950
-
2951
- proto.TxOutputType.prototype.clearAddressType = function() {
2952
- jspb.Message.setField(this, 7, undefined);
2953
- };
2954
-
2955
-
2956
3504
  /**
2957
- * Returns whether this field is set.
2958
- * @return {!boolean}
3505
+ * @param {!proto.OutputAddressType} value
3506
+ * @return {!proto.TxOutputType} returns this
2959
3507
  */
2960
- proto.TxOutputType.prototype.hasAddressType = function() {
2961
- return jspb.Message.getField(this, 7) != null;
3508
+ proto.TxOutputType.prototype.setAddressType = function(value) {
3509
+ return jspb.Message.setField(this, 7, value);
2962
3510
  };
2963
3511
 
2964
3512
 
2965
3513
  /**
2966
- * optional ExchangeType exchange_type = 8;
2967
- * @return {?proto.ExchangeType}
3514
+ * Clears the field making it undefined.
3515
+ * @return {!proto.TxOutputType} returns this
2968
3516
  */
2969
- proto.TxOutputType.prototype.getExchangeType = function() {
2970
- return /** @type{?proto.ExchangeType} */ (
2971
- jspb.Message.getWrapperField(this, proto.ExchangeType, 8));
2972
- };
2973
-
2974
-
2975
- /** @param {?proto.ExchangeType|undefined} value */
2976
- proto.TxOutputType.prototype.setExchangeType = function(value) {
2977
- jspb.Message.setWrapperField(this, 8, value);
2978
- };
2979
-
2980
-
2981
- proto.TxOutputType.prototype.clearExchangeType = function() {
2982
- this.setExchangeType(undefined);
3517
+ proto.TxOutputType.prototype.clearAddressType = function() {
3518
+ return jspb.Message.setField(this, 7, undefined);
2983
3519
  };
2984
3520
 
2985
3521
 
2986
3522
  /**
2987
3523
  * Returns whether this field is set.
2988
- * @return {!boolean}
3524
+ * @return {boolean}
2989
3525
  */
2990
- proto.TxOutputType.prototype.hasExchangeType = function() {
2991
- return jspb.Message.getField(this, 8) != null;
3526
+ proto.TxOutputType.prototype.hasAddressType = function() {
3527
+ return jspb.Message.getField(this, 7) != null;
2992
3528
  };
2993
3529
 
2994
3530
 
@@ -3001,20 +3537,27 @@ proto.TxOutputType.prototype.getDecredScriptVersion = function() {
3001
3537
  };
3002
3538
 
3003
3539
 
3004
- /** @param {number} value */
3540
+ /**
3541
+ * @param {number} value
3542
+ * @return {!proto.TxOutputType} returns this
3543
+ */
3005
3544
  proto.TxOutputType.prototype.setDecredScriptVersion = function(value) {
3006
- jspb.Message.setField(this, 9, value);
3545
+ return jspb.Message.setField(this, 9, value);
3007
3546
  };
3008
3547
 
3009
3548
 
3549
+ /**
3550
+ * Clears the field making it undefined.
3551
+ * @return {!proto.TxOutputType} returns this
3552
+ */
3010
3553
  proto.TxOutputType.prototype.clearDecredScriptVersion = function() {
3011
- jspb.Message.setField(this, 9, undefined);
3554
+ return jspb.Message.setField(this, 9, undefined);
3012
3555
  };
3013
3556
 
3014
3557
 
3015
3558
  /**
3016
3559
  * Returns whether this field is set.
3017
- * @return {!boolean}
3560
+ * @return {boolean}
3018
3561
  */
3019
3562
  proto.TxOutputType.prototype.hasDecredScriptVersion = function() {
3020
3563
  return jspb.Message.getField(this, 9) != null;
@@ -3022,34 +3565,19 @@ proto.TxOutputType.prototype.hasDecredScriptVersion = function() {
3022
3565
 
3023
3566
 
3024
3567
 
3025
- /**
3026
- * Generated by JsPbCodeGenerator.
3027
- * @param {Array=} opt_data Optional initial data array, typically from a
3028
- * server response, or constructed directly in Javascript. The array is used
3029
- * in place and becomes part of the constructed object. It is not cloned.
3030
- * If no data is provided, the constructed object will be empty, but still
3031
- * valid.
3032
- * @extends {jspb.Message}
3033
- * @constructor
3034
- */
3035
- proto.TxOutputBinType = function(opt_data) {
3036
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3037
- };
3038
- goog.inherits(proto.TxOutputBinType, jspb.Message);
3039
- if (goog.DEBUG && !COMPILED) {
3040
- proto.TxOutputBinType.displayName = 'proto.TxOutputBinType';
3041
- }
3042
3568
 
3043
3569
 
3044
3570
  if (jspb.Message.GENERATE_TO_OBJECT) {
3045
3571
  /**
3046
- * Creates an object representation of this proto suitable for use in Soy templates.
3572
+ * Creates an object representation of this proto.
3047
3573
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
3574
+ * Optional fields that are not set will be set to undefined.
3048
3575
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3049
3576
  * For the list of reserved names please see:
3050
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3051
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3052
- * for transitional soy proto support: http://goto/soy-param-migration
3577
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3578
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3579
+ * JSPB instance for transitional soy proto support:
3580
+ * http://goto/soy-param-migration
3053
3581
  * @return {!Object}
3054
3582
  */
3055
3583
  proto.TxOutputBinType.prototype.toObject = function(opt_includeInstance) {
@@ -3059,8 +3587,8 @@ proto.TxOutputBinType.prototype.toObject = function(opt_includeInstance) {
3059
3587
 
3060
3588
  /**
3061
3589
  * Static version of the {@see toObject} method.
3062
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
3063
- * instance for transitional soy proto support:
3590
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3591
+ * the JSPB instance for transitional soy proto support:
3064
3592
  * http://goto/soy-param-migration
3065
3593
  * @param {!proto.TxOutputBinType} msg The msg instance to transform.
3066
3594
  * @return {!Object}
@@ -3068,9 +3596,9 @@ proto.TxOutputBinType.prototype.toObject = function(opt_includeInstance) {
3068
3596
  */
3069
3597
  proto.TxOutputBinType.toObject = function(includeInstance, msg) {
3070
3598
  var f, obj = {
3071
- amount: jspb.Message.getField(msg, 1),
3599
+ amount: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
3072
3600
  scriptPubkey: msg.getScriptPubkey_asB64(),
3073
- decredScriptVersion: jspb.Message.getField(msg, 3)
3601
+ decredScriptVersion: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
3074
3602
  };
3075
3603
 
3076
3604
  if (includeInstance) {
@@ -3181,20 +3709,27 @@ proto.TxOutputBinType.prototype.getAmount = function() {
3181
3709
  };
3182
3710
 
3183
3711
 
3184
- /** @param {number} value */
3712
+ /**
3713
+ * @param {number} value
3714
+ * @return {!proto.TxOutputBinType} returns this
3715
+ */
3185
3716
  proto.TxOutputBinType.prototype.setAmount = function(value) {
3186
- jspb.Message.setField(this, 1, value);
3717
+ return jspb.Message.setField(this, 1, value);
3187
3718
  };
3188
3719
 
3189
3720
 
3721
+ /**
3722
+ * Clears the field making it undefined.
3723
+ * @return {!proto.TxOutputBinType} returns this
3724
+ */
3190
3725
  proto.TxOutputBinType.prototype.clearAmount = function() {
3191
- jspb.Message.setField(this, 1, undefined);
3726
+ return jspb.Message.setField(this, 1, undefined);
3192
3727
  };
3193
3728
 
3194
3729
 
3195
3730
  /**
3196
3731
  * Returns whether this field is set.
3197
- * @return {!boolean}
3732
+ * @return {boolean}
3198
3733
  */
3199
3734
  proto.TxOutputBinType.prototype.hasAmount = function() {
3200
3735
  return jspb.Message.getField(this, 1) != null;
@@ -3234,20 +3769,27 @@ proto.TxOutputBinType.prototype.getScriptPubkey_asU8 = function() {
3234
3769
  };
3235
3770
 
3236
3771
 
3237
- /** @param {!(string|Uint8Array)} value */
3772
+ /**
3773
+ * @param {!(string|Uint8Array)} value
3774
+ * @return {!proto.TxOutputBinType} returns this
3775
+ */
3238
3776
  proto.TxOutputBinType.prototype.setScriptPubkey = function(value) {
3239
- jspb.Message.setField(this, 2, value);
3777
+ return jspb.Message.setField(this, 2, value);
3240
3778
  };
3241
3779
 
3242
3780
 
3781
+ /**
3782
+ * Clears the field making it undefined.
3783
+ * @return {!proto.TxOutputBinType} returns this
3784
+ */
3243
3785
  proto.TxOutputBinType.prototype.clearScriptPubkey = function() {
3244
- jspb.Message.setField(this, 2, undefined);
3786
+ return jspb.Message.setField(this, 2, undefined);
3245
3787
  };
3246
3788
 
3247
3789
 
3248
3790
  /**
3249
3791
  * Returns whether this field is set.
3250
- * @return {!boolean}
3792
+ * @return {boolean}
3251
3793
  */
3252
3794
  proto.TxOutputBinType.prototype.hasScriptPubkey = function() {
3253
3795
  return jspb.Message.getField(this, 2) != null;
@@ -3263,20 +3805,27 @@ proto.TxOutputBinType.prototype.getDecredScriptVersion = function() {
3263
3805
  };
3264
3806
 
3265
3807
 
3266
- /** @param {number} value */
3808
+ /**
3809
+ * @param {number} value
3810
+ * @return {!proto.TxOutputBinType} returns this
3811
+ */
3267
3812
  proto.TxOutputBinType.prototype.setDecredScriptVersion = function(value) {
3268
- jspb.Message.setField(this, 3, value);
3813
+ return jspb.Message.setField(this, 3, value);
3269
3814
  };
3270
3815
 
3271
3816
 
3817
+ /**
3818
+ * Clears the field making it undefined.
3819
+ * @return {!proto.TxOutputBinType} returns this
3820
+ */
3272
3821
  proto.TxOutputBinType.prototype.clearDecredScriptVersion = function() {
3273
- jspb.Message.setField(this, 3, undefined);
3822
+ return jspb.Message.setField(this, 3, undefined);
3274
3823
  };
3275
3824
 
3276
3825
 
3277
3826
  /**
3278
3827
  * Returns whether this field is set.
3279
- * @return {!boolean}
3828
+ * @return {boolean}
3280
3829
  */
3281
3830
  proto.TxOutputBinType.prototype.hasDecredScriptVersion = function() {
3282
3831
  return jspb.Message.getField(this, 3) != null;
@@ -3284,23 +3833,6 @@ proto.TxOutputBinType.prototype.hasDecredScriptVersion = function() {
3284
3833
 
3285
3834
 
3286
3835
 
3287
- /**
3288
- * Generated by JsPbCodeGenerator.
3289
- * @param {Array=} opt_data Optional initial data array, typically from a
3290
- * server response, or constructed directly in Javascript. The array is used
3291
- * in place and becomes part of the constructed object. It is not cloned.
3292
- * If no data is provided, the constructed object will be empty, but still
3293
- * valid.
3294
- * @extends {jspb.Message}
3295
- * @constructor
3296
- */
3297
- proto.TransactionType = function(opt_data) {
3298
- jspb.Message.initialize(this, opt_data, 0, -1, proto.TransactionType.repeatedFields_, null);
3299
- };
3300
- goog.inherits(proto.TransactionType, jspb.Message);
3301
- if (goog.DEBUG && !COMPILED) {
3302
- proto.TransactionType.displayName = 'proto.TransactionType';
3303
- }
3304
3836
  /**
3305
3837
  * List of repeated fields within this message type.
3306
3838
  * @private {!Array<number>}
@@ -3312,13 +3844,15 @@ proto.TransactionType.repeatedFields_ = [2,3,5];
3312
3844
 
3313
3845
  if (jspb.Message.GENERATE_TO_OBJECT) {
3314
3846
  /**
3315
- * Creates an object representation of this proto suitable for use in Soy templates.
3847
+ * Creates an object representation of this proto.
3316
3848
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
3849
+ * Optional fields that are not set will be set to undefined.
3317
3850
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3318
3851
  * For the list of reserved names please see:
3319
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3320
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3321
- * for transitional soy proto support: http://goto/soy-param-migration
3852
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3853
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3854
+ * JSPB instance for transitional soy proto support:
3855
+ * http://goto/soy-param-migration
3322
3856
  * @return {!Object}
3323
3857
  */
3324
3858
  proto.TransactionType.prototype.toObject = function(opt_includeInstance) {
@@ -3328,8 +3862,8 @@ proto.TransactionType.prototype.toObject = function(opt_includeInstance) {
3328
3862
 
3329
3863
  /**
3330
3864
  * Static version of the {@see toObject} method.
3331
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
3332
- * instance for transitional soy proto support:
3865
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3866
+ * the JSPB instance for transitional soy proto support:
3333
3867
  * http://goto/soy-param-migration
3334
3868
  * @param {!proto.TransactionType} msg The msg instance to transform.
3335
3869
  * @return {!Object}
@@ -3337,22 +3871,22 @@ proto.TransactionType.prototype.toObject = function(opt_includeInstance) {
3337
3871
  */
3338
3872
  proto.TransactionType.toObject = function(includeInstance, msg) {
3339
3873
  var f, obj = {
3340
- version: jspb.Message.getField(msg, 1),
3874
+ version: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
3341
3875
  inputsList: jspb.Message.toObjectList(msg.getInputsList(),
3342
3876
  proto.TxInputType.toObject, includeInstance),
3343
3877
  binOutputsList: jspb.Message.toObjectList(msg.getBinOutputsList(),
3344
3878
  proto.TxOutputBinType.toObject, includeInstance),
3345
3879
  outputsList: jspb.Message.toObjectList(msg.getOutputsList(),
3346
3880
  proto.TxOutputType.toObject, includeInstance),
3347
- lockTime: jspb.Message.getField(msg, 4),
3348
- inputsCnt: jspb.Message.getField(msg, 6),
3349
- outputsCnt: jspb.Message.getField(msg, 7),
3881
+ lockTime: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
3882
+ inputsCnt: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
3883
+ outputsCnt: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
3350
3884
  extraData: msg.getExtraData_asB64(),
3351
- extraDataLen: jspb.Message.getField(msg, 9),
3352
- expiry: jspb.Message.getField(msg, 10),
3353
- overwintered: jspb.Message.getField(msg, 11),
3354
- versionGroupId: jspb.Message.getField(msg, 12),
3355
- branchId: jspb.Message.getField(msg, 13)
3885
+ extraDataLen: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
3886
+ expiry: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f,
3887
+ overwintered: (f = jspb.Message.getBooleanField(msg, 11)) == null ? undefined : f,
3888
+ versionGroupId: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f,
3889
+ branchId: (f = jspb.Message.getField(msg, 13)) == null ? undefined : f
3356
3890
  };
3357
3891
 
3358
3892
  if (includeInstance) {
@@ -3579,20 +4113,27 @@ proto.TransactionType.prototype.getVersion = function() {
3579
4113
  };
3580
4114
 
3581
4115
 
3582
- /** @param {number} value */
4116
+ /**
4117
+ * @param {number} value
4118
+ * @return {!proto.TransactionType} returns this
4119
+ */
3583
4120
  proto.TransactionType.prototype.setVersion = function(value) {
3584
- jspb.Message.setField(this, 1, value);
4121
+ return jspb.Message.setField(this, 1, value);
3585
4122
  };
3586
4123
 
3587
4124
 
4125
+ /**
4126
+ * Clears the field making it undefined.
4127
+ * @return {!proto.TransactionType} returns this
4128
+ */
3588
4129
  proto.TransactionType.prototype.clearVersion = function() {
3589
- jspb.Message.setField(this, 1, undefined);
4130
+ return jspb.Message.setField(this, 1, undefined);
3590
4131
  };
3591
4132
 
3592
4133
 
3593
4134
  /**
3594
4135
  * Returns whether this field is set.
3595
- * @return {!boolean}
4136
+ * @return {boolean}
3596
4137
  */
3597
4138
  proto.TransactionType.prototype.hasVersion = function() {
3598
4139
  return jspb.Message.getField(this, 1) != null;
@@ -3609,9 +4150,12 @@ proto.TransactionType.prototype.getInputsList = function() {
3609
4150
  };
3610
4151
 
3611
4152
 
3612
- /** @param {!Array<!proto.TxInputType>} value */
4153
+ /**
4154
+ * @param {!Array<!proto.TxInputType>} value
4155
+ * @return {!proto.TransactionType} returns this
4156
+ */
3613
4157
  proto.TransactionType.prototype.setInputsList = function(value) {
3614
- jspb.Message.setRepeatedWrapperField(this, 2, value);
4158
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3615
4159
  };
3616
4160
 
3617
4161
 
@@ -3625,8 +4169,12 @@ proto.TransactionType.prototype.addInputs = function(opt_value, opt_index) {
3625
4169
  };
3626
4170
 
3627
4171
 
4172
+ /**
4173
+ * Clears the list making it empty but non-null.
4174
+ * @return {!proto.TransactionType} returns this
4175
+ */
3628
4176
  proto.TransactionType.prototype.clearInputsList = function() {
3629
- this.setInputsList([]);
4177
+ return this.setInputsList([]);
3630
4178
  };
3631
4179
 
3632
4180
 
@@ -3640,9 +4188,12 @@ proto.TransactionType.prototype.getBinOutputsList = function() {
3640
4188
  };
3641
4189
 
3642
4190
 
3643
- /** @param {!Array<!proto.TxOutputBinType>} value */
4191
+ /**
4192
+ * @param {!Array<!proto.TxOutputBinType>} value
4193
+ * @return {!proto.TransactionType} returns this
4194
+ */
3644
4195
  proto.TransactionType.prototype.setBinOutputsList = function(value) {
3645
- jspb.Message.setRepeatedWrapperField(this, 3, value);
4196
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
3646
4197
  };
3647
4198
 
3648
4199
 
@@ -3656,8 +4207,12 @@ proto.TransactionType.prototype.addBinOutputs = function(opt_value, opt_index) {
3656
4207
  };
3657
4208
 
3658
4209
 
4210
+ /**
4211
+ * Clears the list making it empty but non-null.
4212
+ * @return {!proto.TransactionType} returns this
4213
+ */
3659
4214
  proto.TransactionType.prototype.clearBinOutputsList = function() {
3660
- this.setBinOutputsList([]);
4215
+ return this.setBinOutputsList([]);
3661
4216
  };
3662
4217
 
3663
4218
 
@@ -3671,9 +4226,12 @@ proto.TransactionType.prototype.getOutputsList = function() {
3671
4226
  };
3672
4227
 
3673
4228
 
3674
- /** @param {!Array<!proto.TxOutputType>} value */
4229
+ /**
4230
+ * @param {!Array<!proto.TxOutputType>} value
4231
+ * @return {!proto.TransactionType} returns this
4232
+ */
3675
4233
  proto.TransactionType.prototype.setOutputsList = function(value) {
3676
- jspb.Message.setRepeatedWrapperField(this, 5, value);
4234
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
3677
4235
  };
3678
4236
 
3679
4237
 
@@ -3687,8 +4245,12 @@ proto.TransactionType.prototype.addOutputs = function(opt_value, opt_index) {
3687
4245
  };
3688
4246
 
3689
4247
 
4248
+ /**
4249
+ * Clears the list making it empty but non-null.
4250
+ * @return {!proto.TransactionType} returns this
4251
+ */
3690
4252
  proto.TransactionType.prototype.clearOutputsList = function() {
3691
- this.setOutputsList([]);
4253
+ return this.setOutputsList([]);
3692
4254
  };
3693
4255
 
3694
4256
 
@@ -3701,20 +4263,27 @@ proto.TransactionType.prototype.getLockTime = function() {
3701
4263
  };
3702
4264
 
3703
4265
 
3704
- /** @param {number} value */
4266
+ /**
4267
+ * @param {number} value
4268
+ * @return {!proto.TransactionType} returns this
4269
+ */
3705
4270
  proto.TransactionType.prototype.setLockTime = function(value) {
3706
- jspb.Message.setField(this, 4, value);
4271
+ return jspb.Message.setField(this, 4, value);
3707
4272
  };
3708
4273
 
3709
4274
 
4275
+ /**
4276
+ * Clears the field making it undefined.
4277
+ * @return {!proto.TransactionType} returns this
4278
+ */
3710
4279
  proto.TransactionType.prototype.clearLockTime = function() {
3711
- jspb.Message.setField(this, 4, undefined);
4280
+ return jspb.Message.setField(this, 4, undefined);
3712
4281
  };
3713
4282
 
3714
4283
 
3715
4284
  /**
3716
4285
  * Returns whether this field is set.
3717
- * @return {!boolean}
4286
+ * @return {boolean}
3718
4287
  */
3719
4288
  proto.TransactionType.prototype.hasLockTime = function() {
3720
4289
  return jspb.Message.getField(this, 4) != null;
@@ -3730,20 +4299,27 @@ proto.TransactionType.prototype.getInputsCnt = function() {
3730
4299
  };
3731
4300
 
3732
4301
 
3733
- /** @param {number} value */
4302
+ /**
4303
+ * @param {number} value
4304
+ * @return {!proto.TransactionType} returns this
4305
+ */
3734
4306
  proto.TransactionType.prototype.setInputsCnt = function(value) {
3735
- jspb.Message.setField(this, 6, value);
4307
+ return jspb.Message.setField(this, 6, value);
3736
4308
  };
3737
4309
 
3738
4310
 
4311
+ /**
4312
+ * Clears the field making it undefined.
4313
+ * @return {!proto.TransactionType} returns this
4314
+ */
3739
4315
  proto.TransactionType.prototype.clearInputsCnt = function() {
3740
- jspb.Message.setField(this, 6, undefined);
4316
+ return jspb.Message.setField(this, 6, undefined);
3741
4317
  };
3742
4318
 
3743
4319
 
3744
4320
  /**
3745
4321
  * Returns whether this field is set.
3746
- * @return {!boolean}
4322
+ * @return {boolean}
3747
4323
  */
3748
4324
  proto.TransactionType.prototype.hasInputsCnt = function() {
3749
4325
  return jspb.Message.getField(this, 6) != null;
@@ -3759,20 +4335,27 @@ proto.TransactionType.prototype.getOutputsCnt = function() {
3759
4335
  };
3760
4336
 
3761
4337
 
3762
- /** @param {number} value */
4338
+ /**
4339
+ * @param {number} value
4340
+ * @return {!proto.TransactionType} returns this
4341
+ */
3763
4342
  proto.TransactionType.prototype.setOutputsCnt = function(value) {
3764
- jspb.Message.setField(this, 7, value);
4343
+ return jspb.Message.setField(this, 7, value);
3765
4344
  };
3766
4345
 
3767
4346
 
4347
+ /**
4348
+ * Clears the field making it undefined.
4349
+ * @return {!proto.TransactionType} returns this
4350
+ */
3768
4351
  proto.TransactionType.prototype.clearOutputsCnt = function() {
3769
- jspb.Message.setField(this, 7, undefined);
4352
+ return jspb.Message.setField(this, 7, undefined);
3770
4353
  };
3771
4354
 
3772
4355
 
3773
4356
  /**
3774
4357
  * Returns whether this field is set.
3775
- * @return {!boolean}
4358
+ * @return {boolean}
3776
4359
  */
3777
4360
  proto.TransactionType.prototype.hasOutputsCnt = function() {
3778
4361
  return jspb.Message.getField(this, 7) != null;
@@ -3812,20 +4395,27 @@ proto.TransactionType.prototype.getExtraData_asU8 = function() {
3812
4395
  };
3813
4396
 
3814
4397
 
3815
- /** @param {!(string|Uint8Array)} value */
4398
+ /**
4399
+ * @param {!(string|Uint8Array)} value
4400
+ * @return {!proto.TransactionType} returns this
4401
+ */
3816
4402
  proto.TransactionType.prototype.setExtraData = function(value) {
3817
- jspb.Message.setField(this, 8, value);
4403
+ return jspb.Message.setField(this, 8, value);
3818
4404
  };
3819
4405
 
3820
4406
 
4407
+ /**
4408
+ * Clears the field making it undefined.
4409
+ * @return {!proto.TransactionType} returns this
4410
+ */
3821
4411
  proto.TransactionType.prototype.clearExtraData = function() {
3822
- jspb.Message.setField(this, 8, undefined);
4412
+ return jspb.Message.setField(this, 8, undefined);
3823
4413
  };
3824
4414
 
3825
4415
 
3826
4416
  /**
3827
4417
  * Returns whether this field is set.
3828
- * @return {!boolean}
4418
+ * @return {boolean}
3829
4419
  */
3830
4420
  proto.TransactionType.prototype.hasExtraData = function() {
3831
4421
  return jspb.Message.getField(this, 8) != null;
@@ -3841,20 +4431,27 @@ proto.TransactionType.prototype.getExtraDataLen = function() {
3841
4431
  };
3842
4432
 
3843
4433
 
3844
- /** @param {number} value */
4434
+ /**
4435
+ * @param {number} value
4436
+ * @return {!proto.TransactionType} returns this
4437
+ */
3845
4438
  proto.TransactionType.prototype.setExtraDataLen = function(value) {
3846
- jspb.Message.setField(this, 9, value);
4439
+ return jspb.Message.setField(this, 9, value);
3847
4440
  };
3848
4441
 
3849
4442
 
4443
+ /**
4444
+ * Clears the field making it undefined.
4445
+ * @return {!proto.TransactionType} returns this
4446
+ */
3850
4447
  proto.TransactionType.prototype.clearExtraDataLen = function() {
3851
- jspb.Message.setField(this, 9, undefined);
4448
+ return jspb.Message.setField(this, 9, undefined);
3852
4449
  };
3853
4450
 
3854
4451
 
3855
4452
  /**
3856
4453
  * Returns whether this field is set.
3857
- * @return {!boolean}
4454
+ * @return {boolean}
3858
4455
  */
3859
4456
  proto.TransactionType.prototype.hasExtraDataLen = function() {
3860
4457
  return jspb.Message.getField(this, 9) != null;
@@ -3870,20 +4467,27 @@ proto.TransactionType.prototype.getExpiry = function() {
3870
4467
  };
3871
4468
 
3872
4469
 
3873
- /** @param {number} value */
4470
+ /**
4471
+ * @param {number} value
4472
+ * @return {!proto.TransactionType} returns this
4473
+ */
3874
4474
  proto.TransactionType.prototype.setExpiry = function(value) {
3875
- jspb.Message.setField(this, 10, value);
4475
+ return jspb.Message.setField(this, 10, value);
3876
4476
  };
3877
4477
 
3878
4478
 
4479
+ /**
4480
+ * Clears the field making it undefined.
4481
+ * @return {!proto.TransactionType} returns this
4482
+ */
3879
4483
  proto.TransactionType.prototype.clearExpiry = function() {
3880
- jspb.Message.setField(this, 10, undefined);
4484
+ return jspb.Message.setField(this, 10, undefined);
3881
4485
  };
3882
4486
 
3883
4487
 
3884
4488
  /**
3885
4489
  * Returns whether this field is set.
3886
- * @return {!boolean}
4490
+ * @return {boolean}
3887
4491
  */
3888
4492
  proto.TransactionType.prototype.hasExpiry = function() {
3889
4493
  return jspb.Message.getField(this, 10) != null;
@@ -3892,29 +4496,34 @@ proto.TransactionType.prototype.hasExpiry = function() {
3892
4496
 
3893
4497
  /**
3894
4498
  * optional bool overwintered = 11;
3895
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
3896
- * You should avoid comparisons like {@code val === true/false} in those cases.
3897
4499
  * @return {boolean}
3898
4500
  */
3899
4501
  proto.TransactionType.prototype.getOverwintered = function() {
3900
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false));
4502
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
3901
4503
  };
3902
4504
 
3903
4505
 
3904
- /** @param {boolean} value */
4506
+ /**
4507
+ * @param {boolean} value
4508
+ * @return {!proto.TransactionType} returns this
4509
+ */
3905
4510
  proto.TransactionType.prototype.setOverwintered = function(value) {
3906
- jspb.Message.setField(this, 11, value);
4511
+ return jspb.Message.setField(this, 11, value);
3907
4512
  };
3908
4513
 
3909
4514
 
4515
+ /**
4516
+ * Clears the field making it undefined.
4517
+ * @return {!proto.TransactionType} returns this
4518
+ */
3910
4519
  proto.TransactionType.prototype.clearOverwintered = function() {
3911
- jspb.Message.setField(this, 11, undefined);
4520
+ return jspb.Message.setField(this, 11, undefined);
3912
4521
  };
3913
4522
 
3914
4523
 
3915
4524
  /**
3916
4525
  * Returns whether this field is set.
3917
- * @return {!boolean}
4526
+ * @return {boolean}
3918
4527
  */
3919
4528
  proto.TransactionType.prototype.hasOverwintered = function() {
3920
4529
  return jspb.Message.getField(this, 11) != null;
@@ -3930,20 +4539,27 @@ proto.TransactionType.prototype.getVersionGroupId = function() {
3930
4539
  };
3931
4540
 
3932
4541
 
3933
- /** @param {number} value */
4542
+ /**
4543
+ * @param {number} value
4544
+ * @return {!proto.TransactionType} returns this
4545
+ */
3934
4546
  proto.TransactionType.prototype.setVersionGroupId = function(value) {
3935
- jspb.Message.setField(this, 12, value);
4547
+ return jspb.Message.setField(this, 12, value);
3936
4548
  };
3937
4549
 
3938
4550
 
4551
+ /**
4552
+ * Clears the field making it undefined.
4553
+ * @return {!proto.TransactionType} returns this
4554
+ */
3939
4555
  proto.TransactionType.prototype.clearVersionGroupId = function() {
3940
- jspb.Message.setField(this, 12, undefined);
4556
+ return jspb.Message.setField(this, 12, undefined);
3941
4557
  };
3942
4558
 
3943
4559
 
3944
4560
  /**
3945
4561
  * Returns whether this field is set.
3946
- * @return {!boolean}
4562
+ * @return {boolean}
3947
4563
  */
3948
4564
  proto.TransactionType.prototype.hasVersionGroupId = function() {
3949
4565
  return jspb.Message.getField(this, 12) != null;
@@ -3959,20 +4575,27 @@ proto.TransactionType.prototype.getBranchId = function() {
3959
4575
  };
3960
4576
 
3961
4577
 
3962
- /** @param {number} value */
4578
+ /**
4579
+ * @param {number} value
4580
+ * @return {!proto.TransactionType} returns this
4581
+ */
3963
4582
  proto.TransactionType.prototype.setBranchId = function(value) {
3964
- jspb.Message.setField(this, 13, value);
4583
+ return jspb.Message.setField(this, 13, value);
3965
4584
  };
3966
4585
 
3967
4586
 
4587
+ /**
4588
+ * Clears the field making it undefined.
4589
+ * @return {!proto.TransactionType} returns this
4590
+ */
3968
4591
  proto.TransactionType.prototype.clearBranchId = function() {
3969
- jspb.Message.setField(this, 13, undefined);
4592
+ return jspb.Message.setField(this, 13, undefined);
3970
4593
  };
3971
4594
 
3972
4595
 
3973
4596
  /**
3974
4597
  * Returns whether this field is set.
3975
- * @return {!boolean}
4598
+ * @return {boolean}
3976
4599
  */
3977
4600
  proto.TransactionType.prototype.hasBranchId = function() {
3978
4601
  return jspb.Message.getField(this, 13) != null;
@@ -3980,34 +4603,19 @@ proto.TransactionType.prototype.hasBranchId = function() {
3980
4603
 
3981
4604
 
3982
4605
 
3983
- /**
3984
- * Generated by JsPbCodeGenerator.
3985
- * @param {Array=} opt_data Optional initial data array, typically from a
3986
- * server response, or constructed directly in Javascript. The array is used
3987
- * in place and becomes part of the constructed object. It is not cloned.
3988
- * If no data is provided, the constructed object will be empty, but still
3989
- * valid.
3990
- * @extends {jspb.Message}
3991
- * @constructor
3992
- */
3993
- proto.RawTransactionType = function(opt_data) {
3994
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3995
- };
3996
- goog.inherits(proto.RawTransactionType, jspb.Message);
3997
- if (goog.DEBUG && !COMPILED) {
3998
- proto.RawTransactionType.displayName = 'proto.RawTransactionType';
3999
- }
4000
4606
 
4001
4607
 
4002
4608
  if (jspb.Message.GENERATE_TO_OBJECT) {
4003
4609
  /**
4004
- * Creates an object representation of this proto suitable for use in Soy templates.
4610
+ * Creates an object representation of this proto.
4005
4611
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
4612
+ * Optional fields that are not set will be set to undefined.
4006
4613
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4007
4614
  * For the list of reserved names please see:
4008
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4009
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4010
- * for transitional soy proto support: http://goto/soy-param-migration
4615
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4616
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4617
+ * JSPB instance for transitional soy proto support:
4618
+ * http://goto/soy-param-migration
4011
4619
  * @return {!Object}
4012
4620
  */
4013
4621
  proto.RawTransactionType.prototype.toObject = function(opt_includeInstance) {
@@ -4017,8 +4625,8 @@ proto.RawTransactionType.prototype.toObject = function(opt_includeInstance) {
4017
4625
 
4018
4626
  /**
4019
4627
  * Static version of the {@see toObject} method.
4020
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
4021
- * instance for transitional soy proto support:
4628
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4629
+ * the JSPB instance for transitional soy proto support:
4022
4630
  * http://goto/soy-param-migration
4023
4631
  * @param {!proto.RawTransactionType} msg The msg instance to transform.
4024
4632
  * @return {!Object}
@@ -4139,20 +4747,27 @@ proto.RawTransactionType.prototype.getPayload_asU8 = function() {
4139
4747
  };
4140
4748
 
4141
4749
 
4142
- /** @param {!(string|Uint8Array)} value */
4750
+ /**
4751
+ * @param {!(string|Uint8Array)} value
4752
+ * @return {!proto.RawTransactionType} returns this
4753
+ */
4143
4754
  proto.RawTransactionType.prototype.setPayload = function(value) {
4144
- jspb.Message.setField(this, 1, value);
4755
+ return jspb.Message.setField(this, 1, value);
4145
4756
  };
4146
4757
 
4147
4758
 
4759
+ /**
4760
+ * Clears the field making it undefined.
4761
+ * @return {!proto.RawTransactionType} returns this
4762
+ */
4148
4763
  proto.RawTransactionType.prototype.clearPayload = function() {
4149
- jspb.Message.setField(this, 1, undefined);
4764
+ return jspb.Message.setField(this, 1, undefined);
4150
4765
  };
4151
4766
 
4152
4767
 
4153
4768
  /**
4154
4769
  * Returns whether this field is set.
4155
- * @return {!boolean}
4770
+ * @return {boolean}
4156
4771
  */
4157
4772
  proto.RawTransactionType.prototype.hasPayload = function() {
4158
4773
  return jspb.Message.getField(this, 1) != null;
@@ -4160,34 +4775,19 @@ proto.RawTransactionType.prototype.hasPayload = function() {
4160
4775
 
4161
4776
 
4162
4777
 
4163
- /**
4164
- * Generated by JsPbCodeGenerator.
4165
- * @param {Array=} opt_data Optional initial data array, typically from a
4166
- * server response, or constructed directly in Javascript. The array is used
4167
- * in place and becomes part of the constructed object. It is not cloned.
4168
- * If no data is provided, the constructed object will be empty, but still
4169
- * valid.
4170
- * @extends {jspb.Message}
4171
- * @constructor
4172
- */
4173
- proto.TxRequestDetailsType = function(opt_data) {
4174
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4175
- };
4176
- goog.inherits(proto.TxRequestDetailsType, jspb.Message);
4177
- if (goog.DEBUG && !COMPILED) {
4178
- proto.TxRequestDetailsType.displayName = 'proto.TxRequestDetailsType';
4179
- }
4180
4778
 
4181
4779
 
4182
4780
  if (jspb.Message.GENERATE_TO_OBJECT) {
4183
4781
  /**
4184
- * Creates an object representation of this proto suitable for use in Soy templates.
4782
+ * Creates an object representation of this proto.
4185
4783
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
4784
+ * Optional fields that are not set will be set to undefined.
4186
4785
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4187
4786
  * For the list of reserved names please see:
4188
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4189
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4190
- * for transitional soy proto support: http://goto/soy-param-migration
4787
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4788
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4789
+ * JSPB instance for transitional soy proto support:
4790
+ * http://goto/soy-param-migration
4191
4791
  * @return {!Object}
4192
4792
  */
4193
4793
  proto.TxRequestDetailsType.prototype.toObject = function(opt_includeInstance) {
@@ -4197,8 +4797,8 @@ proto.TxRequestDetailsType.prototype.toObject = function(opt_includeInstance) {
4197
4797
 
4198
4798
  /**
4199
4799
  * Static version of the {@see toObject} method.
4200
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
4201
- * instance for transitional soy proto support:
4800
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4801
+ * the JSPB instance for transitional soy proto support:
4202
4802
  * http://goto/soy-param-migration
4203
4803
  * @param {!proto.TxRequestDetailsType} msg The msg instance to transform.
4204
4804
  * @return {!Object}
@@ -4206,10 +4806,10 @@ proto.TxRequestDetailsType.prototype.toObject = function(opt_includeInstance) {
4206
4806
  */
4207
4807
  proto.TxRequestDetailsType.toObject = function(includeInstance, msg) {
4208
4808
  var f, obj = {
4209
- requestIndex: jspb.Message.getField(msg, 1),
4809
+ requestIndex: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
4210
4810
  txHash: msg.getTxHash_asB64(),
4211
- extraDataLen: jspb.Message.getField(msg, 3),
4212
- extraDataOffset: jspb.Message.getField(msg, 4)
4811
+ extraDataLen: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
4812
+ extraDataOffset: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
4213
4813
  };
4214
4814
 
4215
4815
  if (includeInstance) {
@@ -4331,20 +4931,27 @@ proto.TxRequestDetailsType.prototype.getRequestIndex = function() {
4331
4931
  };
4332
4932
 
4333
4933
 
4334
- /** @param {number} value */
4934
+ /**
4935
+ * @param {number} value
4936
+ * @return {!proto.TxRequestDetailsType} returns this
4937
+ */
4335
4938
  proto.TxRequestDetailsType.prototype.setRequestIndex = function(value) {
4336
- jspb.Message.setField(this, 1, value);
4939
+ return jspb.Message.setField(this, 1, value);
4337
4940
  };
4338
4941
 
4339
4942
 
4943
+ /**
4944
+ * Clears the field making it undefined.
4945
+ * @return {!proto.TxRequestDetailsType} returns this
4946
+ */
4340
4947
  proto.TxRequestDetailsType.prototype.clearRequestIndex = function() {
4341
- jspb.Message.setField(this, 1, undefined);
4948
+ return jspb.Message.setField(this, 1, undefined);
4342
4949
  };
4343
4950
 
4344
4951
 
4345
4952
  /**
4346
4953
  * Returns whether this field is set.
4347
- * @return {!boolean}
4954
+ * @return {boolean}
4348
4955
  */
4349
4956
  proto.TxRequestDetailsType.prototype.hasRequestIndex = function() {
4350
4957
  return jspb.Message.getField(this, 1) != null;
@@ -4384,20 +4991,27 @@ proto.TxRequestDetailsType.prototype.getTxHash_asU8 = function() {
4384
4991
  };
4385
4992
 
4386
4993
 
4387
- /** @param {!(string|Uint8Array)} value */
4994
+ /**
4995
+ * @param {!(string|Uint8Array)} value
4996
+ * @return {!proto.TxRequestDetailsType} returns this
4997
+ */
4388
4998
  proto.TxRequestDetailsType.prototype.setTxHash = function(value) {
4389
- jspb.Message.setField(this, 2, value);
4999
+ return jspb.Message.setField(this, 2, value);
4390
5000
  };
4391
5001
 
4392
5002
 
5003
+ /**
5004
+ * Clears the field making it undefined.
5005
+ * @return {!proto.TxRequestDetailsType} returns this
5006
+ */
4393
5007
  proto.TxRequestDetailsType.prototype.clearTxHash = function() {
4394
- jspb.Message.setField(this, 2, undefined);
5008
+ return jspb.Message.setField(this, 2, undefined);
4395
5009
  };
4396
5010
 
4397
5011
 
4398
5012
  /**
4399
5013
  * Returns whether this field is set.
4400
- * @return {!boolean}
5014
+ * @return {boolean}
4401
5015
  */
4402
5016
  proto.TxRequestDetailsType.prototype.hasTxHash = function() {
4403
5017
  return jspb.Message.getField(this, 2) != null;
@@ -4413,20 +5027,27 @@ proto.TxRequestDetailsType.prototype.getExtraDataLen = function() {
4413
5027
  };
4414
5028
 
4415
5029
 
4416
- /** @param {number} value */
5030
+ /**
5031
+ * @param {number} value
5032
+ * @return {!proto.TxRequestDetailsType} returns this
5033
+ */
4417
5034
  proto.TxRequestDetailsType.prototype.setExtraDataLen = function(value) {
4418
- jspb.Message.setField(this, 3, value);
5035
+ return jspb.Message.setField(this, 3, value);
4419
5036
  };
4420
5037
 
4421
5038
 
5039
+ /**
5040
+ * Clears the field making it undefined.
5041
+ * @return {!proto.TxRequestDetailsType} returns this
5042
+ */
4422
5043
  proto.TxRequestDetailsType.prototype.clearExtraDataLen = function() {
4423
- jspb.Message.setField(this, 3, undefined);
5044
+ return jspb.Message.setField(this, 3, undefined);
4424
5045
  };
4425
5046
 
4426
5047
 
4427
5048
  /**
4428
5049
  * Returns whether this field is set.
4429
- * @return {!boolean}
5050
+ * @return {boolean}
4430
5051
  */
4431
5052
  proto.TxRequestDetailsType.prototype.hasExtraDataLen = function() {
4432
5053
  return jspb.Message.getField(this, 3) != null;
@@ -4442,20 +5063,27 @@ proto.TxRequestDetailsType.prototype.getExtraDataOffset = function() {
4442
5063
  };
4443
5064
 
4444
5065
 
4445
- /** @param {number} value */
5066
+ /**
5067
+ * @param {number} value
5068
+ * @return {!proto.TxRequestDetailsType} returns this
5069
+ */
4446
5070
  proto.TxRequestDetailsType.prototype.setExtraDataOffset = function(value) {
4447
- jspb.Message.setField(this, 4, value);
5071
+ return jspb.Message.setField(this, 4, value);
4448
5072
  };
4449
5073
 
4450
5074
 
5075
+ /**
5076
+ * Clears the field making it undefined.
5077
+ * @return {!proto.TxRequestDetailsType} returns this
5078
+ */
4451
5079
  proto.TxRequestDetailsType.prototype.clearExtraDataOffset = function() {
4452
- jspb.Message.setField(this, 4, undefined);
5080
+ return jspb.Message.setField(this, 4, undefined);
4453
5081
  };
4454
5082
 
4455
5083
 
4456
5084
  /**
4457
5085
  * Returns whether this field is set.
4458
- * @return {!boolean}
5086
+ * @return {boolean}
4459
5087
  */
4460
5088
  proto.TxRequestDetailsType.prototype.hasExtraDataOffset = function() {
4461
5089
  return jspb.Message.getField(this, 4) != null;
@@ -4463,34 +5091,19 @@ proto.TxRequestDetailsType.prototype.hasExtraDataOffset = function() {
4463
5091
 
4464
5092
 
4465
5093
 
4466
- /**
4467
- * Generated by JsPbCodeGenerator.
4468
- * @param {Array=} opt_data Optional initial data array, typically from a
4469
- * server response, or constructed directly in Javascript. The array is used
4470
- * in place and becomes part of the constructed object. It is not cloned.
4471
- * If no data is provided, the constructed object will be empty, but still
4472
- * valid.
4473
- * @extends {jspb.Message}
4474
- * @constructor
4475
- */
4476
- proto.TxRequestSerializedType = function(opt_data) {
4477
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4478
- };
4479
- goog.inherits(proto.TxRequestSerializedType, jspb.Message);
4480
- if (goog.DEBUG && !COMPILED) {
4481
- proto.TxRequestSerializedType.displayName = 'proto.TxRequestSerializedType';
4482
- }
4483
5094
 
4484
5095
 
4485
5096
  if (jspb.Message.GENERATE_TO_OBJECT) {
4486
5097
  /**
4487
- * Creates an object representation of this proto suitable for use in Soy templates.
5098
+ * Creates an object representation of this proto.
4488
5099
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
5100
+ * Optional fields that are not set will be set to undefined.
4489
5101
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4490
5102
  * For the list of reserved names please see:
4491
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4492
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4493
- * for transitional soy proto support: http://goto/soy-param-migration
5103
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5104
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5105
+ * JSPB instance for transitional soy proto support:
5106
+ * http://goto/soy-param-migration
4494
5107
  * @return {!Object}
4495
5108
  */
4496
5109
  proto.TxRequestSerializedType.prototype.toObject = function(opt_includeInstance) {
@@ -4500,8 +5113,8 @@ proto.TxRequestSerializedType.prototype.toObject = function(opt_includeInstance)
4500
5113
 
4501
5114
  /**
4502
5115
  * Static version of the {@see toObject} method.
4503
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
4504
- * instance for transitional soy proto support:
5116
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5117
+ * the JSPB instance for transitional soy proto support:
4505
5118
  * http://goto/soy-param-migration
4506
5119
  * @param {!proto.TxRequestSerializedType} msg The msg instance to transform.
4507
5120
  * @return {!Object}
@@ -4509,7 +5122,7 @@ proto.TxRequestSerializedType.prototype.toObject = function(opt_includeInstance)
4509
5122
  */
4510
5123
  proto.TxRequestSerializedType.toObject = function(includeInstance, msg) {
4511
5124
  var f, obj = {
4512
- signatureIndex: jspb.Message.getField(msg, 1),
5125
+ signatureIndex: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
4513
5126
  signature: msg.getSignature_asB64(),
4514
5127
  serializedTx: msg.getSerializedTx_asB64()
4515
5128
  };
@@ -4622,20 +5235,27 @@ proto.TxRequestSerializedType.prototype.getSignatureIndex = function() {
4622
5235
  };
4623
5236
 
4624
5237
 
4625
- /** @param {number} value */
5238
+ /**
5239
+ * @param {number} value
5240
+ * @return {!proto.TxRequestSerializedType} returns this
5241
+ */
4626
5242
  proto.TxRequestSerializedType.prototype.setSignatureIndex = function(value) {
4627
- jspb.Message.setField(this, 1, value);
5243
+ return jspb.Message.setField(this, 1, value);
4628
5244
  };
4629
5245
 
4630
5246
 
5247
+ /**
5248
+ * Clears the field making it undefined.
5249
+ * @return {!proto.TxRequestSerializedType} returns this
5250
+ */
4631
5251
  proto.TxRequestSerializedType.prototype.clearSignatureIndex = function() {
4632
- jspb.Message.setField(this, 1, undefined);
5252
+ return jspb.Message.setField(this, 1, undefined);
4633
5253
  };
4634
5254
 
4635
5255
 
4636
5256
  /**
4637
5257
  * Returns whether this field is set.
4638
- * @return {!boolean}
5258
+ * @return {boolean}
4639
5259
  */
4640
5260
  proto.TxRequestSerializedType.prototype.hasSignatureIndex = function() {
4641
5261
  return jspb.Message.getField(this, 1) != null;
@@ -4675,20 +5295,27 @@ proto.TxRequestSerializedType.prototype.getSignature_asU8 = function() {
4675
5295
  };
4676
5296
 
4677
5297
 
4678
- /** @param {!(string|Uint8Array)} value */
5298
+ /**
5299
+ * @param {!(string|Uint8Array)} value
5300
+ * @return {!proto.TxRequestSerializedType} returns this
5301
+ */
4679
5302
  proto.TxRequestSerializedType.prototype.setSignature = function(value) {
4680
- jspb.Message.setField(this, 2, value);
5303
+ return jspb.Message.setField(this, 2, value);
4681
5304
  };
4682
5305
 
4683
5306
 
5307
+ /**
5308
+ * Clears the field making it undefined.
5309
+ * @return {!proto.TxRequestSerializedType} returns this
5310
+ */
4684
5311
  proto.TxRequestSerializedType.prototype.clearSignature = function() {
4685
- jspb.Message.setField(this, 2, undefined);
5312
+ return jspb.Message.setField(this, 2, undefined);
4686
5313
  };
4687
5314
 
4688
5315
 
4689
5316
  /**
4690
5317
  * Returns whether this field is set.
4691
- * @return {!boolean}
5318
+ * @return {boolean}
4692
5319
  */
4693
5320
  proto.TxRequestSerializedType.prototype.hasSignature = function() {
4694
5321
  return jspb.Message.getField(this, 2) != null;
@@ -4728,20 +5355,27 @@ proto.TxRequestSerializedType.prototype.getSerializedTx_asU8 = function() {
4728
5355
  };
4729
5356
 
4730
5357
 
4731
- /** @param {!(string|Uint8Array)} value */
5358
+ /**
5359
+ * @param {!(string|Uint8Array)} value
5360
+ * @return {!proto.TxRequestSerializedType} returns this
5361
+ */
4732
5362
  proto.TxRequestSerializedType.prototype.setSerializedTx = function(value) {
4733
- jspb.Message.setField(this, 3, value);
5363
+ return jspb.Message.setField(this, 3, value);
4734
5364
  };
4735
5365
 
4736
5366
 
5367
+ /**
5368
+ * Clears the field making it undefined.
5369
+ * @return {!proto.TxRequestSerializedType} returns this
5370
+ */
4737
5371
  proto.TxRequestSerializedType.prototype.clearSerializedTx = function() {
4738
- jspb.Message.setField(this, 3, undefined);
5372
+ return jspb.Message.setField(this, 3, undefined);
4739
5373
  };
4740
5374
 
4741
5375
 
4742
5376
  /**
4743
5377
  * Returns whether this field is set.
4744
- * @return {!boolean}
5378
+ * @return {boolean}
4745
5379
  */
4746
5380
  proto.TxRequestSerializedType.prototype.hasSerializedTx = function() {
4747
5381
  return jspb.Message.getField(this, 3) != null;
@@ -4749,34 +5383,19 @@ proto.TxRequestSerializedType.prototype.hasSerializedTx = function() {
4749
5383
 
4750
5384
 
4751
5385
 
4752
- /**
4753
- * Generated by JsPbCodeGenerator.
4754
- * @param {Array=} opt_data Optional initial data array, typically from a
4755
- * server response, or constructed directly in Javascript. The array is used
4756
- * in place and becomes part of the constructed object. It is not cloned.
4757
- * If no data is provided, the constructed object will be empty, but still
4758
- * valid.
4759
- * @extends {jspb.Message}
4760
- * @constructor
4761
- */
4762
- proto.IdentityType = function(opt_data) {
4763
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4764
- };
4765
- goog.inherits(proto.IdentityType, jspb.Message);
4766
- if (goog.DEBUG && !COMPILED) {
4767
- proto.IdentityType.displayName = 'proto.IdentityType';
4768
- }
4769
5386
 
4770
5387
 
4771
5388
  if (jspb.Message.GENERATE_TO_OBJECT) {
4772
5389
  /**
4773
- * Creates an object representation of this proto suitable for use in Soy templates.
5390
+ * Creates an object representation of this proto.
4774
5391
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
5392
+ * Optional fields that are not set will be set to undefined.
4775
5393
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4776
5394
  * For the list of reserved names please see:
4777
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4778
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4779
- * for transitional soy proto support: http://goto/soy-param-migration
5395
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5396
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5397
+ * JSPB instance for transitional soy proto support:
5398
+ * http://goto/soy-param-migration
4780
5399
  * @return {!Object}
4781
5400
  */
4782
5401
  proto.IdentityType.prototype.toObject = function(opt_includeInstance) {
@@ -4786,8 +5405,8 @@ proto.IdentityType.prototype.toObject = function(opt_includeInstance) {
4786
5405
 
4787
5406
  /**
4788
5407
  * Static version of the {@see toObject} method.
4789
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
4790
- * instance for transitional soy proto support:
5408
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5409
+ * the JSPB instance for transitional soy proto support:
4791
5410
  * http://goto/soy-param-migration
4792
5411
  * @param {!proto.IdentityType} msg The msg instance to transform.
4793
5412
  * @return {!Object}
@@ -4795,11 +5414,11 @@ proto.IdentityType.prototype.toObject = function(opt_includeInstance) {
4795
5414
  */
4796
5415
  proto.IdentityType.toObject = function(includeInstance, msg) {
4797
5416
  var f, obj = {
4798
- proto: jspb.Message.getField(msg, 1),
4799
- user: jspb.Message.getField(msg, 2),
4800
- host: jspb.Message.getField(msg, 3),
4801
- port: jspb.Message.getField(msg, 4),
4802
- path: jspb.Message.getField(msg, 5),
5417
+ proto: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
5418
+ user: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
5419
+ host: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
5420
+ port: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
5421
+ path: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
4803
5422
  index: jspb.Message.getFieldWithDefault(msg, 6, 0)
4804
5423
  };
4805
5424
 
@@ -4944,20 +5563,27 @@ proto.IdentityType.prototype.getProto = function() {
4944
5563
  };
4945
5564
 
4946
5565
 
4947
- /** @param {string} value */
5566
+ /**
5567
+ * @param {string} value
5568
+ * @return {!proto.IdentityType} returns this
5569
+ */
4948
5570
  proto.IdentityType.prototype.setProto = function(value) {
4949
- jspb.Message.setField(this, 1, value);
5571
+ return jspb.Message.setField(this, 1, value);
4950
5572
  };
4951
5573
 
4952
5574
 
5575
+ /**
5576
+ * Clears the field making it undefined.
5577
+ * @return {!proto.IdentityType} returns this
5578
+ */
4953
5579
  proto.IdentityType.prototype.clearProto = function() {
4954
- jspb.Message.setField(this, 1, undefined);
5580
+ return jspb.Message.setField(this, 1, undefined);
4955
5581
  };
4956
5582
 
4957
5583
 
4958
5584
  /**
4959
5585
  * Returns whether this field is set.
4960
- * @return {!boolean}
5586
+ * @return {boolean}
4961
5587
  */
4962
5588
  proto.IdentityType.prototype.hasProto = function() {
4963
5589
  return jspb.Message.getField(this, 1) != null;
@@ -4973,20 +5599,27 @@ proto.IdentityType.prototype.getUser = function() {
4973
5599
  };
4974
5600
 
4975
5601
 
4976
- /** @param {string} value */
5602
+ /**
5603
+ * @param {string} value
5604
+ * @return {!proto.IdentityType} returns this
5605
+ */
4977
5606
  proto.IdentityType.prototype.setUser = function(value) {
4978
- jspb.Message.setField(this, 2, value);
5607
+ return jspb.Message.setField(this, 2, value);
4979
5608
  };
4980
5609
 
4981
5610
 
5611
+ /**
5612
+ * Clears the field making it undefined.
5613
+ * @return {!proto.IdentityType} returns this
5614
+ */
4982
5615
  proto.IdentityType.prototype.clearUser = function() {
4983
- jspb.Message.setField(this, 2, undefined);
5616
+ return jspb.Message.setField(this, 2, undefined);
4984
5617
  };
4985
5618
 
4986
5619
 
4987
5620
  /**
4988
5621
  * Returns whether this field is set.
4989
- * @return {!boolean}
5622
+ * @return {boolean}
4990
5623
  */
4991
5624
  proto.IdentityType.prototype.hasUser = function() {
4992
5625
  return jspb.Message.getField(this, 2) != null;
@@ -5002,20 +5635,27 @@ proto.IdentityType.prototype.getHost = function() {
5002
5635
  };
5003
5636
 
5004
5637
 
5005
- /** @param {string} value */
5638
+ /**
5639
+ * @param {string} value
5640
+ * @return {!proto.IdentityType} returns this
5641
+ */
5006
5642
  proto.IdentityType.prototype.setHost = function(value) {
5007
- jspb.Message.setField(this, 3, value);
5643
+ return jspb.Message.setField(this, 3, value);
5008
5644
  };
5009
5645
 
5010
5646
 
5647
+ /**
5648
+ * Clears the field making it undefined.
5649
+ * @return {!proto.IdentityType} returns this
5650
+ */
5011
5651
  proto.IdentityType.prototype.clearHost = function() {
5012
- jspb.Message.setField(this, 3, undefined);
5652
+ return jspb.Message.setField(this, 3, undefined);
5013
5653
  };
5014
5654
 
5015
5655
 
5016
5656
  /**
5017
5657
  * Returns whether this field is set.
5018
- * @return {!boolean}
5658
+ * @return {boolean}
5019
5659
  */
5020
5660
  proto.IdentityType.prototype.hasHost = function() {
5021
5661
  return jspb.Message.getField(this, 3) != null;
@@ -5031,20 +5671,27 @@ proto.IdentityType.prototype.getPort = function() {
5031
5671
  };
5032
5672
 
5033
5673
 
5034
- /** @param {string} value */
5674
+ /**
5675
+ * @param {string} value
5676
+ * @return {!proto.IdentityType} returns this
5677
+ */
5035
5678
  proto.IdentityType.prototype.setPort = function(value) {
5036
- jspb.Message.setField(this, 4, value);
5679
+ return jspb.Message.setField(this, 4, value);
5037
5680
  };
5038
5681
 
5039
5682
 
5683
+ /**
5684
+ * Clears the field making it undefined.
5685
+ * @return {!proto.IdentityType} returns this
5686
+ */
5040
5687
  proto.IdentityType.prototype.clearPort = function() {
5041
- jspb.Message.setField(this, 4, undefined);
5688
+ return jspb.Message.setField(this, 4, undefined);
5042
5689
  };
5043
5690
 
5044
5691
 
5045
5692
  /**
5046
5693
  * Returns whether this field is set.
5047
- * @return {!boolean}
5694
+ * @return {boolean}
5048
5695
  */
5049
5696
  proto.IdentityType.prototype.hasPort = function() {
5050
5697
  return jspb.Message.getField(this, 4) != null;
@@ -5060,20 +5707,27 @@ proto.IdentityType.prototype.getPath = function() {
5060
5707
  };
5061
5708
 
5062
5709
 
5063
- /** @param {string} value */
5710
+ /**
5711
+ * @param {string} value
5712
+ * @return {!proto.IdentityType} returns this
5713
+ */
5064
5714
  proto.IdentityType.prototype.setPath = function(value) {
5065
- jspb.Message.setField(this, 5, value);
5715
+ return jspb.Message.setField(this, 5, value);
5066
5716
  };
5067
5717
 
5068
5718
 
5719
+ /**
5720
+ * Clears the field making it undefined.
5721
+ * @return {!proto.IdentityType} returns this
5722
+ */
5069
5723
  proto.IdentityType.prototype.clearPath = function() {
5070
- jspb.Message.setField(this, 5, undefined);
5724
+ return jspb.Message.setField(this, 5, undefined);
5071
5725
  };
5072
5726
 
5073
5727
 
5074
5728
  /**
5075
5729
  * Returns whether this field is set.
5076
- * @return {!boolean}
5730
+ * @return {boolean}
5077
5731
  */
5078
5732
  proto.IdentityType.prototype.hasPath = function() {
5079
5733
  return jspb.Message.getField(this, 5) != null;
@@ -5089,20 +5743,27 @@ proto.IdentityType.prototype.getIndex = function() {
5089
5743
  };
5090
5744
 
5091
5745
 
5092
- /** @param {number} value */
5746
+ /**
5747
+ * @param {number} value
5748
+ * @return {!proto.IdentityType} returns this
5749
+ */
5093
5750
  proto.IdentityType.prototype.setIndex = function(value) {
5094
- jspb.Message.setField(this, 6, value);
5751
+ return jspb.Message.setField(this, 6, value);
5095
5752
  };
5096
5753
 
5097
5754
 
5755
+ /**
5756
+ * Clears the field making it undefined.
5757
+ * @return {!proto.IdentityType} returns this
5758
+ */
5098
5759
  proto.IdentityType.prototype.clearIndex = function() {
5099
- jspb.Message.setField(this, 6, undefined);
5760
+ return jspb.Message.setField(this, 6, undefined);
5100
5761
  };
5101
5762
 
5102
5763
 
5103
5764
  /**
5104
5765
  * Returns whether this field is set.
5105
- * @return {!boolean}
5766
+ * @return {boolean}
5106
5767
  */
5107
5768
  proto.IdentityType.prototype.hasIndex = function() {
5108
5769
  return jspb.Message.getField(this, 6) != null;
@@ -5110,34 +5771,19 @@ proto.IdentityType.prototype.hasIndex = function() {
5110
5771
 
5111
5772
 
5112
5773
 
5113
- /**
5114
- * Generated by JsPbCodeGenerator.
5115
- * @param {Array=} opt_data Optional initial data array, typically from a
5116
- * server response, or constructed directly in Javascript. The array is used
5117
- * in place and becomes part of the constructed object. It is not cloned.
5118
- * If no data is provided, the constructed object will be empty, but still
5119
- * valid.
5120
- * @extends {jspb.Message}
5121
- * @constructor
5122
- */
5123
- proto.PolicyType = function(opt_data) {
5124
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5125
- };
5126
- goog.inherits(proto.PolicyType, jspb.Message);
5127
- if (goog.DEBUG && !COMPILED) {
5128
- proto.PolicyType.displayName = 'proto.PolicyType';
5129
- }
5130
5774
 
5131
5775
 
5132
5776
  if (jspb.Message.GENERATE_TO_OBJECT) {
5133
5777
  /**
5134
- * Creates an object representation of this proto suitable for use in Soy templates.
5778
+ * Creates an object representation of this proto.
5135
5779
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
5780
+ * Optional fields that are not set will be set to undefined.
5136
5781
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5137
5782
  * For the list of reserved names please see:
5138
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
5139
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
5140
- * for transitional soy proto support: http://goto/soy-param-migration
5783
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5784
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5785
+ * JSPB instance for transitional soy proto support:
5786
+ * http://goto/soy-param-migration
5141
5787
  * @return {!Object}
5142
5788
  */
5143
5789
  proto.PolicyType.prototype.toObject = function(opt_includeInstance) {
@@ -5147,8 +5793,8 @@ proto.PolicyType.prototype.toObject = function(opt_includeInstance) {
5147
5793
 
5148
5794
  /**
5149
5795
  * Static version of the {@see toObject} method.
5150
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
5151
- * instance for transitional soy proto support:
5796
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5797
+ * the JSPB instance for transitional soy proto support:
5152
5798
  * http://goto/soy-param-migration
5153
5799
  * @param {!proto.PolicyType} msg The msg instance to transform.
5154
5800
  * @return {!Object}
@@ -5156,8 +5802,8 @@ proto.PolicyType.prototype.toObject = function(opt_includeInstance) {
5156
5802
  */
5157
5803
  proto.PolicyType.toObject = function(includeInstance, msg) {
5158
5804
  var f, obj = {
5159
- policyName: jspb.Message.getField(msg, 1),
5160
- enabled: jspb.Message.getField(msg, 2)
5805
+ policyName: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
5806
+ enabled: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f
5161
5807
  };
5162
5808
 
5163
5809
  if (includeInstance) {
@@ -5257,20 +5903,27 @@ proto.PolicyType.prototype.getPolicyName = function() {
5257
5903
  };
5258
5904
 
5259
5905
 
5260
- /** @param {string} value */
5906
+ /**
5907
+ * @param {string} value
5908
+ * @return {!proto.PolicyType} returns this
5909
+ */
5261
5910
  proto.PolicyType.prototype.setPolicyName = function(value) {
5262
- jspb.Message.setField(this, 1, value);
5911
+ return jspb.Message.setField(this, 1, value);
5263
5912
  };
5264
5913
 
5265
5914
 
5915
+ /**
5916
+ * Clears the field making it undefined.
5917
+ * @return {!proto.PolicyType} returns this
5918
+ */
5266
5919
  proto.PolicyType.prototype.clearPolicyName = function() {
5267
- jspb.Message.setField(this, 1, undefined);
5920
+ return jspb.Message.setField(this, 1, undefined);
5268
5921
  };
5269
5922
 
5270
5923
 
5271
5924
  /**
5272
5925
  * Returns whether this field is set.
5273
- * @return {!boolean}
5926
+ * @return {boolean}
5274
5927
  */
5275
5928
  proto.PolicyType.prototype.hasPolicyName = function() {
5276
5929
  return jspb.Message.getField(this, 1) != null;
@@ -5279,406 +5932,40 @@ proto.PolicyType.prototype.hasPolicyName = function() {
5279
5932
 
5280
5933
  /**
5281
5934
  * optional bool enabled = 2;
5282
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
5283
- * You should avoid comparisons like {@code val === true/false} in those cases.
5284
5935
  * @return {boolean}
5285
5936
  */
5286
5937
  proto.PolicyType.prototype.getEnabled = function() {
5287
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false));
5288
- };
5289
-
5290
-
5291
- /** @param {boolean} value */
5292
- proto.PolicyType.prototype.setEnabled = function(value) {
5293
- jspb.Message.setField(this, 2, value);
5294
- };
5295
-
5296
-
5297
- proto.PolicyType.prototype.clearEnabled = function() {
5298
- jspb.Message.setField(this, 2, undefined);
5299
- };
5300
-
5301
-
5302
- /**
5303
- * Returns whether this field is set.
5304
- * @return {!boolean}
5305
- */
5306
- proto.PolicyType.prototype.hasEnabled = function() {
5307
- return jspb.Message.getField(this, 2) != null;
5308
- };
5309
-
5310
-
5311
-
5312
- /**
5313
- * Generated by JsPbCodeGenerator.
5314
- * @param {Array=} opt_data Optional initial data array, typically from a
5315
- * server response, or constructed directly in Javascript. The array is used
5316
- * in place and becomes part of the constructed object. It is not cloned.
5317
- * If no data is provided, the constructed object will be empty, but still
5318
- * valid.
5319
- * @extends {jspb.Message}
5320
- * @constructor
5321
- */
5322
- proto.ExchangeType = function(opt_data) {
5323
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ExchangeType.repeatedFields_, null);
5324
- };
5325
- goog.inherits(proto.ExchangeType, jspb.Message);
5326
- if (goog.DEBUG && !COMPILED) {
5327
- proto.ExchangeType.displayName = 'proto.ExchangeType';
5328
- }
5329
- /**
5330
- * List of repeated fields within this message type.
5331
- * @private {!Array<number>}
5332
- * @const
5333
- */
5334
- proto.ExchangeType.repeatedFields_ = [3,4];
5335
-
5336
-
5337
-
5338
- if (jspb.Message.GENERATE_TO_OBJECT) {
5339
- /**
5340
- * Creates an object representation of this proto suitable for use in Soy templates.
5341
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5342
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5343
- * For the list of reserved names please see:
5344
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
5345
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
5346
- * for transitional soy proto support: http://goto/soy-param-migration
5347
- * @return {!Object}
5348
- */
5349
- proto.ExchangeType.prototype.toObject = function(opt_includeInstance) {
5350
- return proto.ExchangeType.toObject(opt_includeInstance, this);
5351
- };
5352
-
5353
-
5354
- /**
5355
- * Static version of the {@see toObject} method.
5356
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
5357
- * instance for transitional soy proto support:
5358
- * http://goto/soy-param-migration
5359
- * @param {!proto.ExchangeType} msg The msg instance to transform.
5360
- * @return {!Object}
5361
- * @suppress {unusedLocalVariables} f is only used for nested messages
5362
- */
5363
- proto.ExchangeType.toObject = function(includeInstance, msg) {
5364
- var f, obj = {
5365
- signedExchangeResponse: (f = msg.getSignedExchangeResponse()) && exchange_pb.SignedExchangeResponse.toObject(includeInstance, f),
5366
- withdrawalCoinName: jspb.Message.getFieldWithDefault(msg, 2, "Bitcoin"),
5367
- withdrawalAddressNList: jspb.Message.getRepeatedField(msg, 3),
5368
- returnAddressNList: jspb.Message.getRepeatedField(msg, 4),
5369
- withdrawalScriptType: jspb.Message.getFieldWithDefault(msg, 5, 0),
5370
- returnScriptType: jspb.Message.getFieldWithDefault(msg, 6, 0)
5371
- };
5372
-
5373
- if (includeInstance) {
5374
- obj.$jspbMessageInstance = msg;
5375
- }
5376
- return obj;
5377
- };
5378
- }
5379
-
5380
-
5381
- /**
5382
- * Deserializes binary data (in protobuf wire format).
5383
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
5384
- * @return {!proto.ExchangeType}
5385
- */
5386
- proto.ExchangeType.deserializeBinary = function(bytes) {
5387
- var reader = new jspb.BinaryReader(bytes);
5388
- var msg = new proto.ExchangeType;
5389
- return proto.ExchangeType.deserializeBinaryFromReader(msg, reader);
5390
- };
5391
-
5392
-
5393
- /**
5394
- * Deserializes binary data (in protobuf wire format) from the
5395
- * given reader into the given message object.
5396
- * @param {!proto.ExchangeType} msg The message object to deserialize into.
5397
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5398
- * @return {!proto.ExchangeType}
5399
- */
5400
- proto.ExchangeType.deserializeBinaryFromReader = function(msg, reader) {
5401
- while (reader.nextField()) {
5402
- if (reader.isEndGroup()) {
5403
- break;
5404
- }
5405
- var field = reader.getFieldNumber();
5406
- switch (field) {
5407
- case 1:
5408
- var value = new exchange_pb.SignedExchangeResponse;
5409
- reader.readMessage(value,exchange_pb.SignedExchangeResponse.deserializeBinaryFromReader);
5410
- msg.setSignedExchangeResponse(value);
5411
- break;
5412
- case 2:
5413
- var value = /** @type {string} */ (reader.readString());
5414
- msg.setWithdrawalCoinName(value);
5415
- break;
5416
- case 3:
5417
- var value = /** @type {number} */ (reader.readUint32());
5418
- msg.addWithdrawalAddressN(value);
5419
- break;
5420
- case 4:
5421
- var value = /** @type {number} */ (reader.readUint32());
5422
- msg.addReturnAddressN(value);
5423
- break;
5424
- case 5:
5425
- var value = /** @type {!proto.InputScriptType} */ (reader.readEnum());
5426
- msg.setWithdrawalScriptType(value);
5427
- break;
5428
- case 6:
5429
- var value = /** @type {!proto.InputScriptType} */ (reader.readEnum());
5430
- msg.setReturnScriptType(value);
5431
- break;
5432
- default:
5433
- reader.skipField();
5434
- break;
5435
- }
5436
- }
5437
- return msg;
5438
- };
5439
-
5440
-
5441
- /**
5442
- * Serializes the message to binary data (in protobuf wire format).
5443
- * @return {!Uint8Array}
5444
- */
5445
- proto.ExchangeType.prototype.serializeBinary = function() {
5446
- var writer = new jspb.BinaryWriter();
5447
- proto.ExchangeType.serializeBinaryToWriter(this, writer);
5448
- return writer.getResultBuffer();
5938
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
5449
5939
  };
5450
5940
 
5451
5941
 
5452
5942
  /**
5453
- * Serializes the given message to binary data (in protobuf wire
5454
- * format), writing to the given BinaryWriter.
5455
- * @param {!proto.ExchangeType} message
5456
- * @param {!jspb.BinaryWriter} writer
5457
- * @suppress {unusedLocalVariables} f is only used for nested messages
5943
+ * @param {boolean} value
5944
+ * @return {!proto.PolicyType} returns this
5458
5945
  */
5459
- proto.ExchangeType.serializeBinaryToWriter = function(message, writer) {
5460
- var f = undefined;
5461
- f = message.getSignedExchangeResponse();
5462
- if (f != null) {
5463
- writer.writeMessage(
5464
- 1,
5465
- f,
5466
- exchange_pb.SignedExchangeResponse.serializeBinaryToWriter
5467
- );
5468
- }
5469
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
5470
- if (f != null) {
5471
- writer.writeString(
5472
- 2,
5473
- f
5474
- );
5475
- }
5476
- f = message.getWithdrawalAddressNList();
5477
- if (f.length > 0) {
5478
- writer.writeRepeatedUint32(
5479
- 3,
5480
- f
5481
- );
5482
- }
5483
- f = message.getReturnAddressNList();
5484
- if (f.length > 0) {
5485
- writer.writeRepeatedUint32(
5486
- 4,
5487
- f
5488
- );
5489
- }
5490
- f = /** @type {!proto.InputScriptType} */ (jspb.Message.getField(message, 5));
5491
- if (f != null) {
5492
- writer.writeEnum(
5493
- 5,
5494
- f
5495
- );
5496
- }
5497
- f = /** @type {!proto.InputScriptType} */ (jspb.Message.getField(message, 6));
5498
- if (f != null) {
5499
- writer.writeEnum(
5500
- 6,
5501
- f
5502
- );
5503
- }
5504
- };
5505
-
5506
-
5507
- /**
5508
- * optional SignedExchangeResponse signed_exchange_response = 1;
5509
- * @return {?proto.SignedExchangeResponse}
5510
- */
5511
- proto.ExchangeType.prototype.getSignedExchangeResponse = function() {
5512
- return /** @type{?proto.SignedExchangeResponse} */ (
5513
- jspb.Message.getWrapperField(this, exchange_pb.SignedExchangeResponse, 1));
5514
- };
5515
-
5516
-
5517
- /** @param {?proto.SignedExchangeResponse|undefined} value */
5518
- proto.ExchangeType.prototype.setSignedExchangeResponse = function(value) {
5519
- jspb.Message.setWrapperField(this, 1, value);
5520
- };
5521
-
5522
-
5523
- proto.ExchangeType.prototype.clearSignedExchangeResponse = function() {
5524
- this.setSignedExchangeResponse(undefined);
5525
- };
5526
-
5527
-
5528
- /**
5529
- * Returns whether this field is set.
5530
- * @return {!boolean}
5531
- */
5532
- proto.ExchangeType.prototype.hasSignedExchangeResponse = function() {
5533
- return jspb.Message.getField(this, 1) != null;
5946
+ proto.PolicyType.prototype.setEnabled = function(value) {
5947
+ return jspb.Message.setField(this, 2, value);
5534
5948
  };
5535
5949
 
5536
5950
 
5537
5951
  /**
5538
- * optional string withdrawal_coin_name = 2;
5539
- * @return {string}
5952
+ * Clears the field making it undefined.
5953
+ * @return {!proto.PolicyType} returns this
5540
5954
  */
5541
- proto.ExchangeType.prototype.getWithdrawalCoinName = function() {
5542
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "Bitcoin"));
5543
- };
5544
-
5545
-
5546
- /** @param {string} value */
5547
- proto.ExchangeType.prototype.setWithdrawalCoinName = function(value) {
5548
- jspb.Message.setField(this, 2, value);
5549
- };
5550
-
5551
-
5552
- proto.ExchangeType.prototype.clearWithdrawalCoinName = function() {
5553
- jspb.Message.setField(this, 2, undefined);
5955
+ proto.PolicyType.prototype.clearEnabled = function() {
5956
+ return jspb.Message.setField(this, 2, undefined);
5554
5957
  };
5555
5958
 
5556
5959
 
5557
5960
  /**
5558
5961
  * Returns whether this field is set.
5559
- * @return {!boolean}
5962
+ * @return {boolean}
5560
5963
  */
5561
- proto.ExchangeType.prototype.hasWithdrawalCoinName = function() {
5964
+ proto.PolicyType.prototype.hasEnabled = function() {
5562
5965
  return jspb.Message.getField(this, 2) != null;
5563
5966
  };
5564
5967
 
5565
5968
 
5566
- /**
5567
- * repeated uint32 withdrawal_address_n = 3;
5568
- * @return {!Array<number>}
5569
- */
5570
- proto.ExchangeType.prototype.getWithdrawalAddressNList = function() {
5571
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
5572
- };
5573
-
5574
-
5575
- /** @param {!Array<number>} value */
5576
- proto.ExchangeType.prototype.setWithdrawalAddressNList = function(value) {
5577
- jspb.Message.setField(this, 3, value || []);
5578
- };
5579
-
5580
-
5581
- /**
5582
- * @param {!number} value
5583
- * @param {number=} opt_index
5584
- */
5585
- proto.ExchangeType.prototype.addWithdrawalAddressN = function(value, opt_index) {
5586
- jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5587
- };
5588
-
5589
-
5590
- proto.ExchangeType.prototype.clearWithdrawalAddressNList = function() {
5591
- this.setWithdrawalAddressNList([]);
5592
- };
5593
-
5594
-
5595
- /**
5596
- * repeated uint32 return_address_n = 4;
5597
- * @return {!Array<number>}
5598
- */
5599
- proto.ExchangeType.prototype.getReturnAddressNList = function() {
5600
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
5601
- };
5602
-
5603
-
5604
- /** @param {!Array<number>} value */
5605
- proto.ExchangeType.prototype.setReturnAddressNList = function(value) {
5606
- jspb.Message.setField(this, 4, value || []);
5607
- };
5608
-
5609
-
5610
- /**
5611
- * @param {!number} value
5612
- * @param {number=} opt_index
5613
- */
5614
- proto.ExchangeType.prototype.addReturnAddressN = function(value, opt_index) {
5615
- jspb.Message.addToRepeatedField(this, 4, value, opt_index);
5616
- };
5617
-
5618
-
5619
- proto.ExchangeType.prototype.clearReturnAddressNList = function() {
5620
- this.setReturnAddressNList([]);
5621
- };
5622
-
5623
-
5624
- /**
5625
- * optional InputScriptType withdrawal_script_type = 5;
5626
- * @return {!proto.InputScriptType}
5627
- */
5628
- proto.ExchangeType.prototype.getWithdrawalScriptType = function() {
5629
- return /** @type {!proto.InputScriptType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5630
- };
5631
-
5632
-
5633
- /** @param {!proto.InputScriptType} value */
5634
- proto.ExchangeType.prototype.setWithdrawalScriptType = function(value) {
5635
- jspb.Message.setField(this, 5, value);
5636
- };
5637
-
5638
-
5639
- proto.ExchangeType.prototype.clearWithdrawalScriptType = function() {
5640
- jspb.Message.setField(this, 5, undefined);
5641
- };
5642
-
5643
-
5644
- /**
5645
- * Returns whether this field is set.
5646
- * @return {!boolean}
5647
- */
5648
- proto.ExchangeType.prototype.hasWithdrawalScriptType = function() {
5649
- return jspb.Message.getField(this, 5) != null;
5650
- };
5651
-
5652
-
5653
- /**
5654
- * optional InputScriptType return_script_type = 6;
5655
- * @return {!proto.InputScriptType}
5656
- */
5657
- proto.ExchangeType.prototype.getReturnScriptType = function() {
5658
- return /** @type {!proto.InputScriptType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
5659
- };
5660
-
5661
-
5662
- /** @param {!proto.InputScriptType} value */
5663
- proto.ExchangeType.prototype.setReturnScriptType = function(value) {
5664
- jspb.Message.setField(this, 6, value);
5665
- };
5666
-
5667
-
5668
- proto.ExchangeType.prototype.clearReturnScriptType = function() {
5669
- jspb.Message.setField(this, 6, undefined);
5670
- };
5671
-
5672
-
5673
- /**
5674
- * Returns whether this field is set.
5675
- * @return {!boolean}
5676
- */
5677
- proto.ExchangeType.prototype.hasReturnScriptType = function() {
5678
- return jspb.Message.getField(this, 6) != null;
5679
- };
5680
-
5681
-
5682
5969
  /**
5683
5970
  * @enum {number}
5684
5971
  */
@@ -5707,7 +5994,8 @@ proto.OutputScriptType = {
5707
5994
  PAYTOMULTISIG: 2,
5708
5995
  PAYTOOPRETURN: 3,
5709
5996
  PAYTOWITNESS: 4,
5710
- PAYTOP2SHWITNESS: 5
5997
+ PAYTOP2SHWITNESS: 5,
5998
+ PAYTOTAPROOT: 6
5711
5999
  };
5712
6000
 
5713
6001
  /**
@@ -5718,7 +6006,8 @@ proto.InputScriptType = {
5718
6006
  SPENDMULTISIG: 1,
5719
6007
  EXTERNAL: 2,
5720
6008
  SPENDWITNESS: 3,
5721
- SPENDP2SHWITNESS: 4
6009
+ SPENDP2SHWITNESS: 4,
6010
+ SPENDTAPROOT: 5
5722
6011
  };
5723
6012
 
5724
6013
  /**
@@ -5738,8 +6027,7 @@ proto.RequestType = {
5738
6027
  proto.OutputAddressType = {
5739
6028
  SPEND: 0,
5740
6029
  TRANSFER: 1,
5741
- CHANGE: 2,
5742
- EXCHANGE: 3
6030
+ CHANGE: 2
5743
6031
  };
5744
6032
 
5745
6033
  /**
@@ -5775,12 +6063,14 @@ proto.ButtonRequestType = {
5775
6063
  BUTTONREQUEST_GETENTROPY: 27,
5776
6064
  BUTTONREQUEST_SIGNMESSAGE: 28,
5777
6065
  BUTTONREQUEST_APPLYPOLICIES: 29,
5778
- BUTTONREQUEST_SIGNEXCHANGE: 30,
5779
6066
  BUTTONREQUEST_AUTOLOCKDELAYMS: 31,
5780
6067
  BUTTONREQUEST_U2FCOUNTER: 32,
5781
6068
  BUTTONREQUEST_CONFIRMEOSACTION: 33,
5782
6069
  BUTTONREQUEST_CONFIRMEOSBUDGET: 34,
5783
- BUTTONREQUEST_CONFIRMMEMO: 35
6070
+ BUTTONREQUEST_CONFIRMMEMO: 35,
6071
+ BUTTONREQUEST_REMOVEWIPECODE: 36,
6072
+ BUTTONREQUEST_CHANGEWIPECODE: 37,
6073
+ BUTTONREQUEST_CREATEWIPECODE: 38
5784
6074
  };
5785
6075
 
5786
6076
  /**