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