@keepkey/device-protocol 7.9.0 → 7.10.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.
@@ -0,0 +1,4421 @@
1
+ // source: messages-ethereum.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ var types_pb = require('./types_pb.js');
25
+ goog.object.extend(proto, types_pb);
26
+ goog.exportSymbol('proto.Ethereum712TypesValues', null, global);
27
+ goog.exportSymbol('proto.EthereumAddress', null, global);
28
+ goog.exportSymbol('proto.EthereumGetAddress', null, global);
29
+ goog.exportSymbol('proto.EthereumMessageSignature', null, global);
30
+ goog.exportSymbol('proto.EthereumSignMessage', null, global);
31
+ goog.exportSymbol('proto.EthereumSignTx', null, global);
32
+ goog.exportSymbol('proto.EthereumSignTypedHash', null, global);
33
+ goog.exportSymbol('proto.EthereumTxAck', null, global);
34
+ goog.exportSymbol('proto.EthereumTxRequest', null, global);
35
+ goog.exportSymbol('proto.EthereumTypedDataSignature', null, global);
36
+ goog.exportSymbol('proto.EthereumVerifyMessage', null, global);
37
+ /**
38
+ * Generated by JsPbCodeGenerator.
39
+ * @param {Array=} opt_data Optional initial data array, typically from a
40
+ * server response, or constructed directly in Javascript. The array is used
41
+ * in place and becomes part of the constructed object. It is not cloned.
42
+ * If no data is provided, the constructed object will be empty, but still
43
+ * valid.
44
+ * @extends {jspb.Message}
45
+ * @constructor
46
+ */
47
+ proto.EthereumGetAddress = function(opt_data) {
48
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.EthereumGetAddress.repeatedFields_, null);
49
+ };
50
+ goog.inherits(proto.EthereumGetAddress, jspb.Message);
51
+ if (goog.DEBUG && !COMPILED) {
52
+ /**
53
+ * @public
54
+ * @override
55
+ */
56
+ proto.EthereumGetAddress.displayName = 'proto.EthereumGetAddress';
57
+ }
58
+ /**
59
+ * Generated by JsPbCodeGenerator.
60
+ * @param {Array=} opt_data Optional initial data array, typically from a
61
+ * server response, or constructed directly in Javascript. The array is used
62
+ * in place and becomes part of the constructed object. It is not cloned.
63
+ * If no data is provided, the constructed object will be empty, but still
64
+ * valid.
65
+ * @extends {jspb.Message}
66
+ * @constructor
67
+ */
68
+ proto.EthereumAddress = function(opt_data) {
69
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
70
+ };
71
+ goog.inherits(proto.EthereumAddress, jspb.Message);
72
+ if (goog.DEBUG && !COMPILED) {
73
+ /**
74
+ * @public
75
+ * @override
76
+ */
77
+ proto.EthereumAddress.displayName = 'proto.EthereumAddress';
78
+ }
79
+ /**
80
+ * Generated by JsPbCodeGenerator.
81
+ * @param {Array=} opt_data Optional initial data array, typically from a
82
+ * server response, or constructed directly in Javascript. The array is used
83
+ * in place and becomes part of the constructed object. It is not cloned.
84
+ * If no data is provided, the constructed object will be empty, but still
85
+ * valid.
86
+ * @extends {jspb.Message}
87
+ * @constructor
88
+ */
89
+ proto.EthereumSignTx = function(opt_data) {
90
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.EthereumSignTx.repeatedFields_, null);
91
+ };
92
+ goog.inherits(proto.EthereumSignTx, jspb.Message);
93
+ if (goog.DEBUG && !COMPILED) {
94
+ /**
95
+ * @public
96
+ * @override
97
+ */
98
+ proto.EthereumSignTx.displayName = 'proto.EthereumSignTx';
99
+ }
100
+ /**
101
+ * Generated by JsPbCodeGenerator.
102
+ * @param {Array=} opt_data Optional initial data array, typically from a
103
+ * server response, or constructed directly in Javascript. The array is used
104
+ * in place and becomes part of the constructed object. It is not cloned.
105
+ * If no data is provided, the constructed object will be empty, but still
106
+ * valid.
107
+ * @extends {jspb.Message}
108
+ * @constructor
109
+ */
110
+ proto.EthereumTxRequest = function(opt_data) {
111
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
+ };
113
+ goog.inherits(proto.EthereumTxRequest, jspb.Message);
114
+ if (goog.DEBUG && !COMPILED) {
115
+ /**
116
+ * @public
117
+ * @override
118
+ */
119
+ proto.EthereumTxRequest.displayName = 'proto.EthereumTxRequest';
120
+ }
121
+ /**
122
+ * Generated by JsPbCodeGenerator.
123
+ * @param {Array=} opt_data Optional initial data array, typically from a
124
+ * server response, or constructed directly in Javascript. The array is used
125
+ * in place and becomes part of the constructed object. It is not cloned.
126
+ * If no data is provided, the constructed object will be empty, but still
127
+ * valid.
128
+ * @extends {jspb.Message}
129
+ * @constructor
130
+ */
131
+ proto.EthereumTxAck = function(opt_data) {
132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
+ };
134
+ goog.inherits(proto.EthereumTxAck, jspb.Message);
135
+ if (goog.DEBUG && !COMPILED) {
136
+ /**
137
+ * @public
138
+ * @override
139
+ */
140
+ proto.EthereumTxAck.displayName = 'proto.EthereumTxAck';
141
+ }
142
+ /**
143
+ * Generated by JsPbCodeGenerator.
144
+ * @param {Array=} opt_data Optional initial data array, typically from a
145
+ * server response, or constructed directly in Javascript. The array is used
146
+ * in place and becomes part of the constructed object. It is not cloned.
147
+ * If no data is provided, the constructed object will be empty, but still
148
+ * valid.
149
+ * @extends {jspb.Message}
150
+ * @constructor
151
+ */
152
+ proto.EthereumSignMessage = function(opt_data) {
153
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.EthereumSignMessage.repeatedFields_, null);
154
+ };
155
+ goog.inherits(proto.EthereumSignMessage, jspb.Message);
156
+ if (goog.DEBUG && !COMPILED) {
157
+ /**
158
+ * @public
159
+ * @override
160
+ */
161
+ proto.EthereumSignMessage.displayName = 'proto.EthereumSignMessage';
162
+ }
163
+ /**
164
+ * Generated by JsPbCodeGenerator.
165
+ * @param {Array=} opt_data Optional initial data array, typically from a
166
+ * server response, or constructed directly in Javascript. The array is used
167
+ * in place and becomes part of the constructed object. It is not cloned.
168
+ * If no data is provided, the constructed object will be empty, but still
169
+ * valid.
170
+ * @extends {jspb.Message}
171
+ * @constructor
172
+ */
173
+ proto.EthereumVerifyMessage = function(opt_data) {
174
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
175
+ };
176
+ goog.inherits(proto.EthereumVerifyMessage, jspb.Message);
177
+ if (goog.DEBUG && !COMPILED) {
178
+ /**
179
+ * @public
180
+ * @override
181
+ */
182
+ proto.EthereumVerifyMessage.displayName = 'proto.EthereumVerifyMessage';
183
+ }
184
+ /**
185
+ * Generated by JsPbCodeGenerator.
186
+ * @param {Array=} opt_data Optional initial data array, typically from a
187
+ * server response, or constructed directly in Javascript. The array is used
188
+ * in place and becomes part of the constructed object. It is not cloned.
189
+ * If no data is provided, the constructed object will be empty, but still
190
+ * valid.
191
+ * @extends {jspb.Message}
192
+ * @constructor
193
+ */
194
+ proto.EthereumMessageSignature = function(opt_data) {
195
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
196
+ };
197
+ goog.inherits(proto.EthereumMessageSignature, jspb.Message);
198
+ if (goog.DEBUG && !COMPILED) {
199
+ /**
200
+ * @public
201
+ * @override
202
+ */
203
+ proto.EthereumMessageSignature.displayName = 'proto.EthereumMessageSignature';
204
+ }
205
+ /**
206
+ * Generated by JsPbCodeGenerator.
207
+ * @param {Array=} opt_data Optional initial data array, typically from a
208
+ * server response, or constructed directly in Javascript. The array is used
209
+ * in place and becomes part of the constructed object. It is not cloned.
210
+ * If no data is provided, the constructed object will be empty, but still
211
+ * valid.
212
+ * @extends {jspb.Message}
213
+ * @constructor
214
+ */
215
+ proto.EthereumSignTypedHash = function(opt_data) {
216
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.EthereumSignTypedHash.repeatedFields_, null);
217
+ };
218
+ goog.inherits(proto.EthereumSignTypedHash, jspb.Message);
219
+ if (goog.DEBUG && !COMPILED) {
220
+ /**
221
+ * @public
222
+ * @override
223
+ */
224
+ proto.EthereumSignTypedHash.displayName = 'proto.EthereumSignTypedHash';
225
+ }
226
+ /**
227
+ * Generated by JsPbCodeGenerator.
228
+ * @param {Array=} opt_data Optional initial data array, typically from a
229
+ * server response, or constructed directly in Javascript. The array is used
230
+ * in place and becomes part of the constructed object. It is not cloned.
231
+ * If no data is provided, the constructed object will be empty, but still
232
+ * valid.
233
+ * @extends {jspb.Message}
234
+ * @constructor
235
+ */
236
+ proto.EthereumTypedDataSignature = function(opt_data) {
237
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
238
+ };
239
+ goog.inherits(proto.EthereumTypedDataSignature, jspb.Message);
240
+ if (goog.DEBUG && !COMPILED) {
241
+ /**
242
+ * @public
243
+ * @override
244
+ */
245
+ proto.EthereumTypedDataSignature.displayName = 'proto.EthereumTypedDataSignature';
246
+ }
247
+ /**
248
+ * Generated by JsPbCodeGenerator.
249
+ * @param {Array=} opt_data Optional initial data array, typically from a
250
+ * server response, or constructed directly in Javascript. The array is used
251
+ * in place and becomes part of the constructed object. It is not cloned.
252
+ * If no data is provided, the constructed object will be empty, but still
253
+ * valid.
254
+ * @extends {jspb.Message}
255
+ * @constructor
256
+ */
257
+ proto.Ethereum712TypesValues = function(opt_data) {
258
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Ethereum712TypesValues.repeatedFields_, null);
259
+ };
260
+ goog.inherits(proto.Ethereum712TypesValues, jspb.Message);
261
+ if (goog.DEBUG && !COMPILED) {
262
+ /**
263
+ * @public
264
+ * @override
265
+ */
266
+ proto.Ethereum712TypesValues.displayName = 'proto.Ethereum712TypesValues';
267
+ }
268
+
269
+ /**
270
+ * List of repeated fields within this message type.
271
+ * @private {!Array<number>}
272
+ * @const
273
+ */
274
+ proto.EthereumGetAddress.repeatedFields_ = [1];
275
+
276
+
277
+
278
+ if (jspb.Message.GENERATE_TO_OBJECT) {
279
+ /**
280
+ * Creates an object representation of this proto.
281
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
282
+ * Optional fields that are not set will be set to undefined.
283
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
284
+ * For the list of reserved names please see:
285
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
286
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
287
+ * JSPB instance for transitional soy proto support:
288
+ * http://goto/soy-param-migration
289
+ * @return {!Object}
290
+ */
291
+ proto.EthereumGetAddress.prototype.toObject = function(opt_includeInstance) {
292
+ return proto.EthereumGetAddress.toObject(opt_includeInstance, this);
293
+ };
294
+
295
+
296
+ /**
297
+ * Static version of the {@see toObject} method.
298
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
299
+ * the JSPB instance for transitional soy proto support:
300
+ * http://goto/soy-param-migration
301
+ * @param {!proto.EthereumGetAddress} msg The msg instance to transform.
302
+ * @return {!Object}
303
+ * @suppress {unusedLocalVariables} f is only used for nested messages
304
+ */
305
+ proto.EthereumGetAddress.toObject = function(includeInstance, msg) {
306
+ var f, obj = {
307
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
308
+ showDisplay: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f
309
+ };
310
+
311
+ if (includeInstance) {
312
+ obj.$jspbMessageInstance = msg;
313
+ }
314
+ return obj;
315
+ };
316
+ }
317
+
318
+
319
+ /**
320
+ * Deserializes binary data (in protobuf wire format).
321
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
322
+ * @return {!proto.EthereumGetAddress}
323
+ */
324
+ proto.EthereumGetAddress.deserializeBinary = function(bytes) {
325
+ var reader = new jspb.BinaryReader(bytes);
326
+ var msg = new proto.EthereumGetAddress;
327
+ return proto.EthereumGetAddress.deserializeBinaryFromReader(msg, reader);
328
+ };
329
+
330
+
331
+ /**
332
+ * Deserializes binary data (in protobuf wire format) from the
333
+ * given reader into the given message object.
334
+ * @param {!proto.EthereumGetAddress} msg The message object to deserialize into.
335
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
336
+ * @return {!proto.EthereumGetAddress}
337
+ */
338
+ proto.EthereumGetAddress.deserializeBinaryFromReader = function(msg, reader) {
339
+ while (reader.nextField()) {
340
+ if (reader.isEndGroup()) {
341
+ break;
342
+ }
343
+ var field = reader.getFieldNumber();
344
+ switch (field) {
345
+ case 1:
346
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
347
+ for (var i = 0; i < values.length; i++) {
348
+ msg.addAddressN(values[i]);
349
+ }
350
+ break;
351
+ case 2:
352
+ var value = /** @type {boolean} */ (reader.readBool());
353
+ msg.setShowDisplay(value);
354
+ break;
355
+ default:
356
+ reader.skipField();
357
+ break;
358
+ }
359
+ }
360
+ return msg;
361
+ };
362
+
363
+
364
+ /**
365
+ * Serializes the message to binary data (in protobuf wire format).
366
+ * @return {!Uint8Array}
367
+ */
368
+ proto.EthereumGetAddress.prototype.serializeBinary = function() {
369
+ var writer = new jspb.BinaryWriter();
370
+ proto.EthereumGetAddress.serializeBinaryToWriter(this, writer);
371
+ return writer.getResultBuffer();
372
+ };
373
+
374
+
375
+ /**
376
+ * Serializes the given message to binary data (in protobuf wire
377
+ * format), writing to the given BinaryWriter.
378
+ * @param {!proto.EthereumGetAddress} message
379
+ * @param {!jspb.BinaryWriter} writer
380
+ * @suppress {unusedLocalVariables} f is only used for nested messages
381
+ */
382
+ proto.EthereumGetAddress.serializeBinaryToWriter = function(message, writer) {
383
+ var f = undefined;
384
+ f = message.getAddressNList();
385
+ if (f.length > 0) {
386
+ writer.writeRepeatedUint32(
387
+ 1,
388
+ f
389
+ );
390
+ }
391
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
392
+ if (f != null) {
393
+ writer.writeBool(
394
+ 2,
395
+ f
396
+ );
397
+ }
398
+ };
399
+
400
+
401
+ /**
402
+ * repeated uint32 address_n = 1;
403
+ * @return {!Array<number>}
404
+ */
405
+ proto.EthereumGetAddress.prototype.getAddressNList = function() {
406
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
407
+ };
408
+
409
+
410
+ /**
411
+ * @param {!Array<number>} value
412
+ * @return {!proto.EthereumGetAddress} returns this
413
+ */
414
+ proto.EthereumGetAddress.prototype.setAddressNList = function(value) {
415
+ return jspb.Message.setField(this, 1, value || []);
416
+ };
417
+
418
+
419
+ /**
420
+ * @param {number} value
421
+ * @param {number=} opt_index
422
+ * @return {!proto.EthereumGetAddress} returns this
423
+ */
424
+ proto.EthereumGetAddress.prototype.addAddressN = function(value, opt_index) {
425
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
426
+ };
427
+
428
+
429
+ /**
430
+ * Clears the list making it empty but non-null.
431
+ * @return {!proto.EthereumGetAddress} returns this
432
+ */
433
+ proto.EthereumGetAddress.prototype.clearAddressNList = function() {
434
+ return this.setAddressNList([]);
435
+ };
436
+
437
+
438
+ /**
439
+ * optional bool show_display = 2;
440
+ * @return {boolean}
441
+ */
442
+ proto.EthereumGetAddress.prototype.getShowDisplay = function() {
443
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
444
+ };
445
+
446
+
447
+ /**
448
+ * @param {boolean} value
449
+ * @return {!proto.EthereumGetAddress} returns this
450
+ */
451
+ proto.EthereumGetAddress.prototype.setShowDisplay = function(value) {
452
+ return jspb.Message.setField(this, 2, value);
453
+ };
454
+
455
+
456
+ /**
457
+ * Clears the field making it undefined.
458
+ * @return {!proto.EthereumGetAddress} returns this
459
+ */
460
+ proto.EthereumGetAddress.prototype.clearShowDisplay = function() {
461
+ return jspb.Message.setField(this, 2, undefined);
462
+ };
463
+
464
+
465
+ /**
466
+ * Returns whether this field is set.
467
+ * @return {boolean}
468
+ */
469
+ proto.EthereumGetAddress.prototype.hasShowDisplay = function() {
470
+ return jspb.Message.getField(this, 2) != null;
471
+ };
472
+
473
+
474
+
475
+
476
+
477
+ if (jspb.Message.GENERATE_TO_OBJECT) {
478
+ /**
479
+ * Creates an object representation of this proto.
480
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
481
+ * Optional fields that are not set will be set to undefined.
482
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
483
+ * For the list of reserved names please see:
484
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
485
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
486
+ * JSPB instance for transitional soy proto support:
487
+ * http://goto/soy-param-migration
488
+ * @return {!Object}
489
+ */
490
+ proto.EthereumAddress.prototype.toObject = function(opt_includeInstance) {
491
+ return proto.EthereumAddress.toObject(opt_includeInstance, this);
492
+ };
493
+
494
+
495
+ /**
496
+ * Static version of the {@see toObject} method.
497
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
498
+ * the JSPB instance for transitional soy proto support:
499
+ * http://goto/soy-param-migration
500
+ * @param {!proto.EthereumAddress} msg The msg instance to transform.
501
+ * @return {!Object}
502
+ * @suppress {unusedLocalVariables} f is only used for nested messages
503
+ */
504
+ proto.EthereumAddress.toObject = function(includeInstance, msg) {
505
+ var f, obj = {
506
+ address: msg.getAddress_asB64(),
507
+ addressStr: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
508
+ };
509
+
510
+ if (includeInstance) {
511
+ obj.$jspbMessageInstance = msg;
512
+ }
513
+ return obj;
514
+ };
515
+ }
516
+
517
+
518
+ /**
519
+ * Deserializes binary data (in protobuf wire format).
520
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
521
+ * @return {!proto.EthereumAddress}
522
+ */
523
+ proto.EthereumAddress.deserializeBinary = function(bytes) {
524
+ var reader = new jspb.BinaryReader(bytes);
525
+ var msg = new proto.EthereumAddress;
526
+ return proto.EthereumAddress.deserializeBinaryFromReader(msg, reader);
527
+ };
528
+
529
+
530
+ /**
531
+ * Deserializes binary data (in protobuf wire format) from the
532
+ * given reader into the given message object.
533
+ * @param {!proto.EthereumAddress} msg The message object to deserialize into.
534
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
535
+ * @return {!proto.EthereumAddress}
536
+ */
537
+ proto.EthereumAddress.deserializeBinaryFromReader = function(msg, reader) {
538
+ while (reader.nextField()) {
539
+ if (reader.isEndGroup()) {
540
+ break;
541
+ }
542
+ var field = reader.getFieldNumber();
543
+ switch (field) {
544
+ case 1:
545
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
546
+ msg.setAddress(value);
547
+ break;
548
+ case 2:
549
+ var value = /** @type {string} */ (reader.readString());
550
+ msg.setAddressStr(value);
551
+ break;
552
+ default:
553
+ reader.skipField();
554
+ break;
555
+ }
556
+ }
557
+ return msg;
558
+ };
559
+
560
+
561
+ /**
562
+ * Serializes the message to binary data (in protobuf wire format).
563
+ * @return {!Uint8Array}
564
+ */
565
+ proto.EthereumAddress.prototype.serializeBinary = function() {
566
+ var writer = new jspb.BinaryWriter();
567
+ proto.EthereumAddress.serializeBinaryToWriter(this, writer);
568
+ return writer.getResultBuffer();
569
+ };
570
+
571
+
572
+ /**
573
+ * Serializes the given message to binary data (in protobuf wire
574
+ * format), writing to the given BinaryWriter.
575
+ * @param {!proto.EthereumAddress} message
576
+ * @param {!jspb.BinaryWriter} writer
577
+ * @suppress {unusedLocalVariables} f is only used for nested messages
578
+ */
579
+ proto.EthereumAddress.serializeBinaryToWriter = function(message, writer) {
580
+ var f = undefined;
581
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
582
+ if (f != null) {
583
+ writer.writeBytes(
584
+ 1,
585
+ f
586
+ );
587
+ }
588
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
589
+ if (f != null) {
590
+ writer.writeString(
591
+ 2,
592
+ f
593
+ );
594
+ }
595
+ };
596
+
597
+
598
+ /**
599
+ * required bytes address = 1;
600
+ * @return {!(string|Uint8Array)}
601
+ */
602
+ proto.EthereumAddress.prototype.getAddress = function() {
603
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
604
+ };
605
+
606
+
607
+ /**
608
+ * required bytes address = 1;
609
+ * This is a type-conversion wrapper around `getAddress()`
610
+ * @return {string}
611
+ */
612
+ proto.EthereumAddress.prototype.getAddress_asB64 = function() {
613
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
614
+ this.getAddress()));
615
+ };
616
+
617
+
618
+ /**
619
+ * required bytes address = 1;
620
+ * Note that Uint8Array is not supported on all browsers.
621
+ * @see http://caniuse.com/Uint8Array
622
+ * This is a type-conversion wrapper around `getAddress()`
623
+ * @return {!Uint8Array}
624
+ */
625
+ proto.EthereumAddress.prototype.getAddress_asU8 = function() {
626
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
627
+ this.getAddress()));
628
+ };
629
+
630
+
631
+ /**
632
+ * @param {!(string|Uint8Array)} value
633
+ * @return {!proto.EthereumAddress} returns this
634
+ */
635
+ proto.EthereumAddress.prototype.setAddress = function(value) {
636
+ return jspb.Message.setField(this, 1, value);
637
+ };
638
+
639
+
640
+ /**
641
+ * Clears the field making it undefined.
642
+ * @return {!proto.EthereumAddress} returns this
643
+ */
644
+ proto.EthereumAddress.prototype.clearAddress = function() {
645
+ return jspb.Message.setField(this, 1, undefined);
646
+ };
647
+
648
+
649
+ /**
650
+ * Returns whether this field is set.
651
+ * @return {boolean}
652
+ */
653
+ proto.EthereumAddress.prototype.hasAddress = function() {
654
+ return jspb.Message.getField(this, 1) != null;
655
+ };
656
+
657
+
658
+ /**
659
+ * optional string address_str = 2;
660
+ * @return {string}
661
+ */
662
+ proto.EthereumAddress.prototype.getAddressStr = function() {
663
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
664
+ };
665
+
666
+
667
+ /**
668
+ * @param {string} value
669
+ * @return {!proto.EthereumAddress} returns this
670
+ */
671
+ proto.EthereumAddress.prototype.setAddressStr = function(value) {
672
+ return jspb.Message.setField(this, 2, value);
673
+ };
674
+
675
+
676
+ /**
677
+ * Clears the field making it undefined.
678
+ * @return {!proto.EthereumAddress} returns this
679
+ */
680
+ proto.EthereumAddress.prototype.clearAddressStr = function() {
681
+ return jspb.Message.setField(this, 2, undefined);
682
+ };
683
+
684
+
685
+ /**
686
+ * Returns whether this field is set.
687
+ * @return {boolean}
688
+ */
689
+ proto.EthereumAddress.prototype.hasAddressStr = function() {
690
+ return jspb.Message.getField(this, 2) != null;
691
+ };
692
+
693
+
694
+
695
+ /**
696
+ * List of repeated fields within this message type.
697
+ * @private {!Array<number>}
698
+ * @const
699
+ */
700
+ proto.EthereumSignTx.repeatedFields_ = [1,9];
701
+
702
+
703
+
704
+ if (jspb.Message.GENERATE_TO_OBJECT) {
705
+ /**
706
+ * Creates an object representation of this proto.
707
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
708
+ * Optional fields that are not set will be set to undefined.
709
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
710
+ * For the list of reserved names please see:
711
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
712
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
713
+ * JSPB instance for transitional soy proto support:
714
+ * http://goto/soy-param-migration
715
+ * @return {!Object}
716
+ */
717
+ proto.EthereumSignTx.prototype.toObject = function(opt_includeInstance) {
718
+ return proto.EthereumSignTx.toObject(opt_includeInstance, this);
719
+ };
720
+
721
+
722
+ /**
723
+ * Static version of the {@see toObject} method.
724
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
725
+ * the JSPB instance for transitional soy proto support:
726
+ * http://goto/soy-param-migration
727
+ * @param {!proto.EthereumSignTx} msg The msg instance to transform.
728
+ * @return {!Object}
729
+ * @suppress {unusedLocalVariables} f is only used for nested messages
730
+ */
731
+ proto.EthereumSignTx.toObject = function(includeInstance, msg) {
732
+ var f, obj = {
733
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
734
+ nonce: msg.getNonce_asB64(),
735
+ gasPrice: msg.getGasPrice_asB64(),
736
+ gasLimit: msg.getGasLimit_asB64(),
737
+ to: msg.getTo_asB64(),
738
+ value: msg.getValue_asB64(),
739
+ dataInitialChunk: msg.getDataInitialChunk_asB64(),
740
+ dataLength: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
741
+ toAddressNList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
742
+ addressType: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f,
743
+ chainId: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f,
744
+ maxFeePerGas: msg.getMaxFeePerGas_asB64(),
745
+ maxPriorityFeePerGas: msg.getMaxPriorityFeePerGas_asB64(),
746
+ tokenValue: msg.getTokenValue_asB64(),
747
+ tokenTo: msg.getTokenTo_asB64(),
748
+ tokenShortcut: (f = jspb.Message.getField(msg, 102)) == null ? undefined : f,
749
+ txType: (f = jspb.Message.getField(msg, 103)) == null ? undefined : f,
750
+ type: (f = jspb.Message.getField(msg, 104)) == null ? undefined : f
751
+ };
752
+
753
+ if (includeInstance) {
754
+ obj.$jspbMessageInstance = msg;
755
+ }
756
+ return obj;
757
+ };
758
+ }
759
+
760
+
761
+ /**
762
+ * Deserializes binary data (in protobuf wire format).
763
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
764
+ * @return {!proto.EthereumSignTx}
765
+ */
766
+ proto.EthereumSignTx.deserializeBinary = function(bytes) {
767
+ var reader = new jspb.BinaryReader(bytes);
768
+ var msg = new proto.EthereumSignTx;
769
+ return proto.EthereumSignTx.deserializeBinaryFromReader(msg, reader);
770
+ };
771
+
772
+
773
+ /**
774
+ * Deserializes binary data (in protobuf wire format) from the
775
+ * given reader into the given message object.
776
+ * @param {!proto.EthereumSignTx} msg The message object to deserialize into.
777
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
778
+ * @return {!proto.EthereumSignTx}
779
+ */
780
+ proto.EthereumSignTx.deserializeBinaryFromReader = function(msg, reader) {
781
+ while (reader.nextField()) {
782
+ if (reader.isEndGroup()) {
783
+ break;
784
+ }
785
+ var field = reader.getFieldNumber();
786
+ switch (field) {
787
+ case 1:
788
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
789
+ for (var i = 0; i < values.length; i++) {
790
+ msg.addAddressN(values[i]);
791
+ }
792
+ break;
793
+ case 2:
794
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
795
+ msg.setNonce(value);
796
+ break;
797
+ case 3:
798
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
799
+ msg.setGasPrice(value);
800
+ break;
801
+ case 4:
802
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
803
+ msg.setGasLimit(value);
804
+ break;
805
+ case 5:
806
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
807
+ msg.setTo(value);
808
+ break;
809
+ case 6:
810
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
811
+ msg.setValue(value);
812
+ break;
813
+ case 7:
814
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
815
+ msg.setDataInitialChunk(value);
816
+ break;
817
+ case 8:
818
+ var value = /** @type {number} */ (reader.readUint32());
819
+ msg.setDataLength(value);
820
+ break;
821
+ case 9:
822
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
823
+ for (var i = 0; i < values.length; i++) {
824
+ msg.addToAddressN(values[i]);
825
+ }
826
+ break;
827
+ case 10:
828
+ var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
829
+ msg.setAddressType(value);
830
+ break;
831
+ case 12:
832
+ var value = /** @type {number} */ (reader.readUint32());
833
+ msg.setChainId(value);
834
+ break;
835
+ case 13:
836
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
837
+ msg.setMaxFeePerGas(value);
838
+ break;
839
+ case 14:
840
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
841
+ msg.setMaxPriorityFeePerGas(value);
842
+ break;
843
+ case 100:
844
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
845
+ msg.setTokenValue(value);
846
+ break;
847
+ case 101:
848
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
849
+ msg.setTokenTo(value);
850
+ break;
851
+ case 102:
852
+ var value = /** @type {string} */ (reader.readString());
853
+ msg.setTokenShortcut(value);
854
+ break;
855
+ case 103:
856
+ var value = /** @type {number} */ (reader.readUint32());
857
+ msg.setTxType(value);
858
+ break;
859
+ case 104:
860
+ var value = /** @type {number} */ (reader.readUint32());
861
+ msg.setType(value);
862
+ break;
863
+ default:
864
+ reader.skipField();
865
+ break;
866
+ }
867
+ }
868
+ return msg;
869
+ };
870
+
871
+
872
+ /**
873
+ * Serializes the message to binary data (in protobuf wire format).
874
+ * @return {!Uint8Array}
875
+ */
876
+ proto.EthereumSignTx.prototype.serializeBinary = function() {
877
+ var writer = new jspb.BinaryWriter();
878
+ proto.EthereumSignTx.serializeBinaryToWriter(this, writer);
879
+ return writer.getResultBuffer();
880
+ };
881
+
882
+
883
+ /**
884
+ * Serializes the given message to binary data (in protobuf wire
885
+ * format), writing to the given BinaryWriter.
886
+ * @param {!proto.EthereumSignTx} message
887
+ * @param {!jspb.BinaryWriter} writer
888
+ * @suppress {unusedLocalVariables} f is only used for nested messages
889
+ */
890
+ proto.EthereumSignTx.serializeBinaryToWriter = function(message, writer) {
891
+ var f = undefined;
892
+ f = message.getAddressNList();
893
+ if (f.length > 0) {
894
+ writer.writeRepeatedUint32(
895
+ 1,
896
+ f
897
+ );
898
+ }
899
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
900
+ if (f != null) {
901
+ writer.writeBytes(
902
+ 2,
903
+ f
904
+ );
905
+ }
906
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
907
+ if (f != null) {
908
+ writer.writeBytes(
909
+ 3,
910
+ f
911
+ );
912
+ }
913
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4));
914
+ if (f != null) {
915
+ writer.writeBytes(
916
+ 4,
917
+ f
918
+ );
919
+ }
920
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 5));
921
+ if (f != null) {
922
+ writer.writeBytes(
923
+ 5,
924
+ f
925
+ );
926
+ }
927
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 6));
928
+ if (f != null) {
929
+ writer.writeBytes(
930
+ 6,
931
+ f
932
+ );
933
+ }
934
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7));
935
+ if (f != null) {
936
+ writer.writeBytes(
937
+ 7,
938
+ f
939
+ );
940
+ }
941
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
942
+ if (f != null) {
943
+ writer.writeUint32(
944
+ 8,
945
+ f
946
+ );
947
+ }
948
+ f = message.getToAddressNList();
949
+ if (f.length > 0) {
950
+ writer.writeRepeatedUint32(
951
+ 9,
952
+ f
953
+ );
954
+ }
955
+ f = /** @type {!proto.OutputAddressType} */ (jspb.Message.getField(message, 10));
956
+ if (f != null) {
957
+ writer.writeEnum(
958
+ 10,
959
+ f
960
+ );
961
+ }
962
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
963
+ if (f != null) {
964
+ writer.writeUint32(
965
+ 12,
966
+ f
967
+ );
968
+ }
969
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 13));
970
+ if (f != null) {
971
+ writer.writeBytes(
972
+ 13,
973
+ f
974
+ );
975
+ }
976
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 14));
977
+ if (f != null) {
978
+ writer.writeBytes(
979
+ 14,
980
+ f
981
+ );
982
+ }
983
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 100));
984
+ if (f != null) {
985
+ writer.writeBytes(
986
+ 100,
987
+ f
988
+ );
989
+ }
990
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 101));
991
+ if (f != null) {
992
+ writer.writeBytes(
993
+ 101,
994
+ f
995
+ );
996
+ }
997
+ f = /** @type {string} */ (jspb.Message.getField(message, 102));
998
+ if (f != null) {
999
+ writer.writeString(
1000
+ 102,
1001
+ f
1002
+ );
1003
+ }
1004
+ f = /** @type {number} */ (jspb.Message.getField(message, 103));
1005
+ if (f != null) {
1006
+ writer.writeUint32(
1007
+ 103,
1008
+ f
1009
+ );
1010
+ }
1011
+ f = /** @type {number} */ (jspb.Message.getField(message, 104));
1012
+ if (f != null) {
1013
+ writer.writeUint32(
1014
+ 104,
1015
+ f
1016
+ );
1017
+ }
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * repeated uint32 address_n = 1;
1023
+ * @return {!Array<number>}
1024
+ */
1025
+ proto.EthereumSignTx.prototype.getAddressNList = function() {
1026
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
1027
+ };
1028
+
1029
+
1030
+ /**
1031
+ * @param {!Array<number>} value
1032
+ * @return {!proto.EthereumSignTx} returns this
1033
+ */
1034
+ proto.EthereumSignTx.prototype.setAddressNList = function(value) {
1035
+ return jspb.Message.setField(this, 1, value || []);
1036
+ };
1037
+
1038
+
1039
+ /**
1040
+ * @param {number} value
1041
+ * @param {number=} opt_index
1042
+ * @return {!proto.EthereumSignTx} returns this
1043
+ */
1044
+ proto.EthereumSignTx.prototype.addAddressN = function(value, opt_index) {
1045
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Clears the list making it empty but non-null.
1051
+ * @return {!proto.EthereumSignTx} returns this
1052
+ */
1053
+ proto.EthereumSignTx.prototype.clearAddressNList = function() {
1054
+ return this.setAddressNList([]);
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * optional bytes nonce = 2;
1060
+ * @return {!(string|Uint8Array)}
1061
+ */
1062
+ proto.EthereumSignTx.prototype.getNonce = function() {
1063
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * optional bytes nonce = 2;
1069
+ * This is a type-conversion wrapper around `getNonce()`
1070
+ * @return {string}
1071
+ */
1072
+ proto.EthereumSignTx.prototype.getNonce_asB64 = function() {
1073
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1074
+ this.getNonce()));
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * optional bytes nonce = 2;
1080
+ * Note that Uint8Array is not supported on all browsers.
1081
+ * @see http://caniuse.com/Uint8Array
1082
+ * This is a type-conversion wrapper around `getNonce()`
1083
+ * @return {!Uint8Array}
1084
+ */
1085
+ proto.EthereumSignTx.prototype.getNonce_asU8 = function() {
1086
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1087
+ this.getNonce()));
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * @param {!(string|Uint8Array)} value
1093
+ * @return {!proto.EthereumSignTx} returns this
1094
+ */
1095
+ proto.EthereumSignTx.prototype.setNonce = function(value) {
1096
+ return jspb.Message.setField(this, 2, value);
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * Clears the field making it undefined.
1102
+ * @return {!proto.EthereumSignTx} returns this
1103
+ */
1104
+ proto.EthereumSignTx.prototype.clearNonce = function() {
1105
+ return jspb.Message.setField(this, 2, undefined);
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * Returns whether this field is set.
1111
+ * @return {boolean}
1112
+ */
1113
+ proto.EthereumSignTx.prototype.hasNonce = function() {
1114
+ return jspb.Message.getField(this, 2) != null;
1115
+ };
1116
+
1117
+
1118
+ /**
1119
+ * optional bytes gas_price = 3;
1120
+ * @return {!(string|Uint8Array)}
1121
+ */
1122
+ proto.EthereumSignTx.prototype.getGasPrice = function() {
1123
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * optional bytes gas_price = 3;
1129
+ * This is a type-conversion wrapper around `getGasPrice()`
1130
+ * @return {string}
1131
+ */
1132
+ proto.EthereumSignTx.prototype.getGasPrice_asB64 = function() {
1133
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1134
+ this.getGasPrice()));
1135
+ };
1136
+
1137
+
1138
+ /**
1139
+ * optional bytes gas_price = 3;
1140
+ * Note that Uint8Array is not supported on all browsers.
1141
+ * @see http://caniuse.com/Uint8Array
1142
+ * This is a type-conversion wrapper around `getGasPrice()`
1143
+ * @return {!Uint8Array}
1144
+ */
1145
+ proto.EthereumSignTx.prototype.getGasPrice_asU8 = function() {
1146
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1147
+ this.getGasPrice()));
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * @param {!(string|Uint8Array)} value
1153
+ * @return {!proto.EthereumSignTx} returns this
1154
+ */
1155
+ proto.EthereumSignTx.prototype.setGasPrice = function(value) {
1156
+ return jspb.Message.setField(this, 3, value);
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * Clears the field making it undefined.
1162
+ * @return {!proto.EthereumSignTx} returns this
1163
+ */
1164
+ proto.EthereumSignTx.prototype.clearGasPrice = function() {
1165
+ return jspb.Message.setField(this, 3, undefined);
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * Returns whether this field is set.
1171
+ * @return {boolean}
1172
+ */
1173
+ proto.EthereumSignTx.prototype.hasGasPrice = function() {
1174
+ return jspb.Message.getField(this, 3) != null;
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * optional bytes gas_limit = 4;
1180
+ * @return {!(string|Uint8Array)}
1181
+ */
1182
+ proto.EthereumSignTx.prototype.getGasLimit = function() {
1183
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * optional bytes gas_limit = 4;
1189
+ * This is a type-conversion wrapper around `getGasLimit()`
1190
+ * @return {string}
1191
+ */
1192
+ proto.EthereumSignTx.prototype.getGasLimit_asB64 = function() {
1193
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1194
+ this.getGasLimit()));
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * optional bytes gas_limit = 4;
1200
+ * Note that Uint8Array is not supported on all browsers.
1201
+ * @see http://caniuse.com/Uint8Array
1202
+ * This is a type-conversion wrapper around `getGasLimit()`
1203
+ * @return {!Uint8Array}
1204
+ */
1205
+ proto.EthereumSignTx.prototype.getGasLimit_asU8 = function() {
1206
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1207
+ this.getGasLimit()));
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * @param {!(string|Uint8Array)} value
1213
+ * @return {!proto.EthereumSignTx} returns this
1214
+ */
1215
+ proto.EthereumSignTx.prototype.setGasLimit = function(value) {
1216
+ return jspb.Message.setField(this, 4, value);
1217
+ };
1218
+
1219
+
1220
+ /**
1221
+ * Clears the field making it undefined.
1222
+ * @return {!proto.EthereumSignTx} returns this
1223
+ */
1224
+ proto.EthereumSignTx.prototype.clearGasLimit = function() {
1225
+ return jspb.Message.setField(this, 4, undefined);
1226
+ };
1227
+
1228
+
1229
+ /**
1230
+ * Returns whether this field is set.
1231
+ * @return {boolean}
1232
+ */
1233
+ proto.EthereumSignTx.prototype.hasGasLimit = function() {
1234
+ return jspb.Message.getField(this, 4) != null;
1235
+ };
1236
+
1237
+
1238
+ /**
1239
+ * optional bytes to = 5;
1240
+ * @return {!(string|Uint8Array)}
1241
+ */
1242
+ proto.EthereumSignTx.prototype.getTo = function() {
1243
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * optional bytes to = 5;
1249
+ * This is a type-conversion wrapper around `getTo()`
1250
+ * @return {string}
1251
+ */
1252
+ proto.EthereumSignTx.prototype.getTo_asB64 = function() {
1253
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1254
+ this.getTo()));
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * optional bytes to = 5;
1260
+ * Note that Uint8Array is not supported on all browsers.
1261
+ * @see http://caniuse.com/Uint8Array
1262
+ * This is a type-conversion wrapper around `getTo()`
1263
+ * @return {!Uint8Array}
1264
+ */
1265
+ proto.EthereumSignTx.prototype.getTo_asU8 = function() {
1266
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1267
+ this.getTo()));
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * @param {!(string|Uint8Array)} value
1273
+ * @return {!proto.EthereumSignTx} returns this
1274
+ */
1275
+ proto.EthereumSignTx.prototype.setTo = function(value) {
1276
+ return jspb.Message.setField(this, 5, value);
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * Clears the field making it undefined.
1282
+ * @return {!proto.EthereumSignTx} returns this
1283
+ */
1284
+ proto.EthereumSignTx.prototype.clearTo = function() {
1285
+ return jspb.Message.setField(this, 5, undefined);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Returns whether this field is set.
1291
+ * @return {boolean}
1292
+ */
1293
+ proto.EthereumSignTx.prototype.hasTo = function() {
1294
+ return jspb.Message.getField(this, 5) != null;
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * optional bytes value = 6;
1300
+ * @return {!(string|Uint8Array)}
1301
+ */
1302
+ proto.EthereumSignTx.prototype.getValue = function() {
1303
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * optional bytes value = 6;
1309
+ * This is a type-conversion wrapper around `getValue()`
1310
+ * @return {string}
1311
+ */
1312
+ proto.EthereumSignTx.prototype.getValue_asB64 = function() {
1313
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1314
+ this.getValue()));
1315
+ };
1316
+
1317
+
1318
+ /**
1319
+ * optional bytes value = 6;
1320
+ * Note that Uint8Array is not supported on all browsers.
1321
+ * @see http://caniuse.com/Uint8Array
1322
+ * This is a type-conversion wrapper around `getValue()`
1323
+ * @return {!Uint8Array}
1324
+ */
1325
+ proto.EthereumSignTx.prototype.getValue_asU8 = function() {
1326
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1327
+ this.getValue()));
1328
+ };
1329
+
1330
+
1331
+ /**
1332
+ * @param {!(string|Uint8Array)} value
1333
+ * @return {!proto.EthereumSignTx} returns this
1334
+ */
1335
+ proto.EthereumSignTx.prototype.setValue = function(value) {
1336
+ return jspb.Message.setField(this, 6, value);
1337
+ };
1338
+
1339
+
1340
+ /**
1341
+ * Clears the field making it undefined.
1342
+ * @return {!proto.EthereumSignTx} returns this
1343
+ */
1344
+ proto.EthereumSignTx.prototype.clearValue = function() {
1345
+ return jspb.Message.setField(this, 6, undefined);
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * Returns whether this field is set.
1351
+ * @return {boolean}
1352
+ */
1353
+ proto.EthereumSignTx.prototype.hasValue = function() {
1354
+ return jspb.Message.getField(this, 6) != null;
1355
+ };
1356
+
1357
+
1358
+ /**
1359
+ * optional bytes data_initial_chunk = 7;
1360
+ * @return {!(string|Uint8Array)}
1361
+ */
1362
+ proto.EthereumSignTx.prototype.getDataInitialChunk = function() {
1363
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1364
+ };
1365
+
1366
+
1367
+ /**
1368
+ * optional bytes data_initial_chunk = 7;
1369
+ * This is a type-conversion wrapper around `getDataInitialChunk()`
1370
+ * @return {string}
1371
+ */
1372
+ proto.EthereumSignTx.prototype.getDataInitialChunk_asB64 = function() {
1373
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1374
+ this.getDataInitialChunk()));
1375
+ };
1376
+
1377
+
1378
+ /**
1379
+ * optional bytes data_initial_chunk = 7;
1380
+ * Note that Uint8Array is not supported on all browsers.
1381
+ * @see http://caniuse.com/Uint8Array
1382
+ * This is a type-conversion wrapper around `getDataInitialChunk()`
1383
+ * @return {!Uint8Array}
1384
+ */
1385
+ proto.EthereumSignTx.prototype.getDataInitialChunk_asU8 = function() {
1386
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1387
+ this.getDataInitialChunk()));
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * @param {!(string|Uint8Array)} value
1393
+ * @return {!proto.EthereumSignTx} returns this
1394
+ */
1395
+ proto.EthereumSignTx.prototype.setDataInitialChunk = function(value) {
1396
+ return jspb.Message.setField(this, 7, value);
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * Clears the field making it undefined.
1402
+ * @return {!proto.EthereumSignTx} returns this
1403
+ */
1404
+ proto.EthereumSignTx.prototype.clearDataInitialChunk = function() {
1405
+ return jspb.Message.setField(this, 7, undefined);
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * Returns whether this field is set.
1411
+ * @return {boolean}
1412
+ */
1413
+ proto.EthereumSignTx.prototype.hasDataInitialChunk = function() {
1414
+ return jspb.Message.getField(this, 7) != null;
1415
+ };
1416
+
1417
+
1418
+ /**
1419
+ * optional uint32 data_length = 8;
1420
+ * @return {number}
1421
+ */
1422
+ proto.EthereumSignTx.prototype.getDataLength = function() {
1423
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * @param {number} value
1429
+ * @return {!proto.EthereumSignTx} returns this
1430
+ */
1431
+ proto.EthereumSignTx.prototype.setDataLength = function(value) {
1432
+ return jspb.Message.setField(this, 8, value);
1433
+ };
1434
+
1435
+
1436
+ /**
1437
+ * Clears the field making it undefined.
1438
+ * @return {!proto.EthereumSignTx} returns this
1439
+ */
1440
+ proto.EthereumSignTx.prototype.clearDataLength = function() {
1441
+ return jspb.Message.setField(this, 8, undefined);
1442
+ };
1443
+
1444
+
1445
+ /**
1446
+ * Returns whether this field is set.
1447
+ * @return {boolean}
1448
+ */
1449
+ proto.EthereumSignTx.prototype.hasDataLength = function() {
1450
+ return jspb.Message.getField(this, 8) != null;
1451
+ };
1452
+
1453
+
1454
+ /**
1455
+ * repeated uint32 to_address_n = 9;
1456
+ * @return {!Array<number>}
1457
+ */
1458
+ proto.EthereumSignTx.prototype.getToAddressNList = function() {
1459
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 9));
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * @param {!Array<number>} value
1465
+ * @return {!proto.EthereumSignTx} returns this
1466
+ */
1467
+ proto.EthereumSignTx.prototype.setToAddressNList = function(value) {
1468
+ return jspb.Message.setField(this, 9, value || []);
1469
+ };
1470
+
1471
+
1472
+ /**
1473
+ * @param {number} value
1474
+ * @param {number=} opt_index
1475
+ * @return {!proto.EthereumSignTx} returns this
1476
+ */
1477
+ proto.EthereumSignTx.prototype.addToAddressN = function(value, opt_index) {
1478
+ return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * Clears the list making it empty but non-null.
1484
+ * @return {!proto.EthereumSignTx} returns this
1485
+ */
1486
+ proto.EthereumSignTx.prototype.clearToAddressNList = function() {
1487
+ return this.setToAddressNList([]);
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * optional OutputAddressType address_type = 10;
1493
+ * @return {!proto.OutputAddressType}
1494
+ */
1495
+ proto.EthereumSignTx.prototype.getAddressType = function() {
1496
+ return /** @type {!proto.OutputAddressType} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * @param {!proto.OutputAddressType} value
1502
+ * @return {!proto.EthereumSignTx} returns this
1503
+ */
1504
+ proto.EthereumSignTx.prototype.setAddressType = function(value) {
1505
+ return jspb.Message.setField(this, 10, value);
1506
+ };
1507
+
1508
+
1509
+ /**
1510
+ * Clears the field making it undefined.
1511
+ * @return {!proto.EthereumSignTx} returns this
1512
+ */
1513
+ proto.EthereumSignTx.prototype.clearAddressType = function() {
1514
+ return jspb.Message.setField(this, 10, undefined);
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * Returns whether this field is set.
1520
+ * @return {boolean}
1521
+ */
1522
+ proto.EthereumSignTx.prototype.hasAddressType = function() {
1523
+ return jspb.Message.getField(this, 10) != null;
1524
+ };
1525
+
1526
+
1527
+ /**
1528
+ * optional uint32 chain_id = 12;
1529
+ * @return {number}
1530
+ */
1531
+ proto.EthereumSignTx.prototype.getChainId = function() {
1532
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * @param {number} value
1538
+ * @return {!proto.EthereumSignTx} returns this
1539
+ */
1540
+ proto.EthereumSignTx.prototype.setChainId = function(value) {
1541
+ return jspb.Message.setField(this, 12, value);
1542
+ };
1543
+
1544
+
1545
+ /**
1546
+ * Clears the field making it undefined.
1547
+ * @return {!proto.EthereumSignTx} returns this
1548
+ */
1549
+ proto.EthereumSignTx.prototype.clearChainId = function() {
1550
+ return jspb.Message.setField(this, 12, undefined);
1551
+ };
1552
+
1553
+
1554
+ /**
1555
+ * Returns whether this field is set.
1556
+ * @return {boolean}
1557
+ */
1558
+ proto.EthereumSignTx.prototype.hasChainId = function() {
1559
+ return jspb.Message.getField(this, 12) != null;
1560
+ };
1561
+
1562
+
1563
+ /**
1564
+ * optional bytes max_fee_per_gas = 13;
1565
+ * @return {!(string|Uint8Array)}
1566
+ */
1567
+ proto.EthereumSignTx.prototype.getMaxFeePerGas = function() {
1568
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1569
+ };
1570
+
1571
+
1572
+ /**
1573
+ * optional bytes max_fee_per_gas = 13;
1574
+ * This is a type-conversion wrapper around `getMaxFeePerGas()`
1575
+ * @return {string}
1576
+ */
1577
+ proto.EthereumSignTx.prototype.getMaxFeePerGas_asB64 = function() {
1578
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1579
+ this.getMaxFeePerGas()));
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * optional bytes max_fee_per_gas = 13;
1585
+ * Note that Uint8Array is not supported on all browsers.
1586
+ * @see http://caniuse.com/Uint8Array
1587
+ * This is a type-conversion wrapper around `getMaxFeePerGas()`
1588
+ * @return {!Uint8Array}
1589
+ */
1590
+ proto.EthereumSignTx.prototype.getMaxFeePerGas_asU8 = function() {
1591
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1592
+ this.getMaxFeePerGas()));
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * @param {!(string|Uint8Array)} value
1598
+ * @return {!proto.EthereumSignTx} returns this
1599
+ */
1600
+ proto.EthereumSignTx.prototype.setMaxFeePerGas = function(value) {
1601
+ return jspb.Message.setField(this, 13, value);
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * Clears the field making it undefined.
1607
+ * @return {!proto.EthereumSignTx} returns this
1608
+ */
1609
+ proto.EthereumSignTx.prototype.clearMaxFeePerGas = function() {
1610
+ return jspb.Message.setField(this, 13, undefined);
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * Returns whether this field is set.
1616
+ * @return {boolean}
1617
+ */
1618
+ proto.EthereumSignTx.prototype.hasMaxFeePerGas = function() {
1619
+ return jspb.Message.getField(this, 13) != null;
1620
+ };
1621
+
1622
+
1623
+ /**
1624
+ * optional bytes max_priority_fee_per_gas = 14;
1625
+ * @return {!(string|Uint8Array)}
1626
+ */
1627
+ proto.EthereumSignTx.prototype.getMaxPriorityFeePerGas = function() {
1628
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1629
+ };
1630
+
1631
+
1632
+ /**
1633
+ * optional bytes max_priority_fee_per_gas = 14;
1634
+ * This is a type-conversion wrapper around `getMaxPriorityFeePerGas()`
1635
+ * @return {string}
1636
+ */
1637
+ proto.EthereumSignTx.prototype.getMaxPriorityFeePerGas_asB64 = function() {
1638
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1639
+ this.getMaxPriorityFeePerGas()));
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * optional bytes max_priority_fee_per_gas = 14;
1645
+ * Note that Uint8Array is not supported on all browsers.
1646
+ * @see http://caniuse.com/Uint8Array
1647
+ * This is a type-conversion wrapper around `getMaxPriorityFeePerGas()`
1648
+ * @return {!Uint8Array}
1649
+ */
1650
+ proto.EthereumSignTx.prototype.getMaxPriorityFeePerGas_asU8 = function() {
1651
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1652
+ this.getMaxPriorityFeePerGas()));
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * @param {!(string|Uint8Array)} value
1658
+ * @return {!proto.EthereumSignTx} returns this
1659
+ */
1660
+ proto.EthereumSignTx.prototype.setMaxPriorityFeePerGas = function(value) {
1661
+ return jspb.Message.setField(this, 14, value);
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * Clears the field making it undefined.
1667
+ * @return {!proto.EthereumSignTx} returns this
1668
+ */
1669
+ proto.EthereumSignTx.prototype.clearMaxPriorityFeePerGas = function() {
1670
+ return jspb.Message.setField(this, 14, undefined);
1671
+ };
1672
+
1673
+
1674
+ /**
1675
+ * Returns whether this field is set.
1676
+ * @return {boolean}
1677
+ */
1678
+ proto.EthereumSignTx.prototype.hasMaxPriorityFeePerGas = function() {
1679
+ return jspb.Message.getField(this, 14) != null;
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * optional bytes token_value = 100;
1685
+ * @return {!(string|Uint8Array)}
1686
+ */
1687
+ proto.EthereumSignTx.prototype.getTokenValue = function() {
1688
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 100, ""));
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * optional bytes token_value = 100;
1694
+ * This is a type-conversion wrapper around `getTokenValue()`
1695
+ * @return {string}
1696
+ */
1697
+ proto.EthereumSignTx.prototype.getTokenValue_asB64 = function() {
1698
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1699
+ this.getTokenValue()));
1700
+ };
1701
+
1702
+
1703
+ /**
1704
+ * optional bytes token_value = 100;
1705
+ * Note that Uint8Array is not supported on all browsers.
1706
+ * @see http://caniuse.com/Uint8Array
1707
+ * This is a type-conversion wrapper around `getTokenValue()`
1708
+ * @return {!Uint8Array}
1709
+ */
1710
+ proto.EthereumSignTx.prototype.getTokenValue_asU8 = function() {
1711
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1712
+ this.getTokenValue()));
1713
+ };
1714
+
1715
+
1716
+ /**
1717
+ * @param {!(string|Uint8Array)} value
1718
+ * @return {!proto.EthereumSignTx} returns this
1719
+ */
1720
+ proto.EthereumSignTx.prototype.setTokenValue = function(value) {
1721
+ return jspb.Message.setField(this, 100, value);
1722
+ };
1723
+
1724
+
1725
+ /**
1726
+ * Clears the field making it undefined.
1727
+ * @return {!proto.EthereumSignTx} returns this
1728
+ */
1729
+ proto.EthereumSignTx.prototype.clearTokenValue = function() {
1730
+ return jspb.Message.setField(this, 100, undefined);
1731
+ };
1732
+
1733
+
1734
+ /**
1735
+ * Returns whether this field is set.
1736
+ * @return {boolean}
1737
+ */
1738
+ proto.EthereumSignTx.prototype.hasTokenValue = function() {
1739
+ return jspb.Message.getField(this, 100) != null;
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * optional bytes token_to = 101;
1745
+ * @return {!(string|Uint8Array)}
1746
+ */
1747
+ proto.EthereumSignTx.prototype.getTokenTo = function() {
1748
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 101, ""));
1749
+ };
1750
+
1751
+
1752
+ /**
1753
+ * optional bytes token_to = 101;
1754
+ * This is a type-conversion wrapper around `getTokenTo()`
1755
+ * @return {string}
1756
+ */
1757
+ proto.EthereumSignTx.prototype.getTokenTo_asB64 = function() {
1758
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1759
+ this.getTokenTo()));
1760
+ };
1761
+
1762
+
1763
+ /**
1764
+ * optional bytes token_to = 101;
1765
+ * Note that Uint8Array is not supported on all browsers.
1766
+ * @see http://caniuse.com/Uint8Array
1767
+ * This is a type-conversion wrapper around `getTokenTo()`
1768
+ * @return {!Uint8Array}
1769
+ */
1770
+ proto.EthereumSignTx.prototype.getTokenTo_asU8 = function() {
1771
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1772
+ this.getTokenTo()));
1773
+ };
1774
+
1775
+
1776
+ /**
1777
+ * @param {!(string|Uint8Array)} value
1778
+ * @return {!proto.EthereumSignTx} returns this
1779
+ */
1780
+ proto.EthereumSignTx.prototype.setTokenTo = function(value) {
1781
+ return jspb.Message.setField(this, 101, value);
1782
+ };
1783
+
1784
+
1785
+ /**
1786
+ * Clears the field making it undefined.
1787
+ * @return {!proto.EthereumSignTx} returns this
1788
+ */
1789
+ proto.EthereumSignTx.prototype.clearTokenTo = function() {
1790
+ return jspb.Message.setField(this, 101, undefined);
1791
+ };
1792
+
1793
+
1794
+ /**
1795
+ * Returns whether this field is set.
1796
+ * @return {boolean}
1797
+ */
1798
+ proto.EthereumSignTx.prototype.hasTokenTo = function() {
1799
+ return jspb.Message.getField(this, 101) != null;
1800
+ };
1801
+
1802
+
1803
+ /**
1804
+ * optional string token_shortcut = 102;
1805
+ * @return {string}
1806
+ */
1807
+ proto.EthereumSignTx.prototype.getTokenShortcut = function() {
1808
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, ""));
1809
+ };
1810
+
1811
+
1812
+ /**
1813
+ * @param {string} value
1814
+ * @return {!proto.EthereumSignTx} returns this
1815
+ */
1816
+ proto.EthereumSignTx.prototype.setTokenShortcut = function(value) {
1817
+ return jspb.Message.setField(this, 102, value);
1818
+ };
1819
+
1820
+
1821
+ /**
1822
+ * Clears the field making it undefined.
1823
+ * @return {!proto.EthereumSignTx} returns this
1824
+ */
1825
+ proto.EthereumSignTx.prototype.clearTokenShortcut = function() {
1826
+ return jspb.Message.setField(this, 102, undefined);
1827
+ };
1828
+
1829
+
1830
+ /**
1831
+ * Returns whether this field is set.
1832
+ * @return {boolean}
1833
+ */
1834
+ proto.EthereumSignTx.prototype.hasTokenShortcut = function() {
1835
+ return jspb.Message.getField(this, 102) != null;
1836
+ };
1837
+
1838
+
1839
+ /**
1840
+ * optional uint32 tx_type = 103;
1841
+ * @return {number}
1842
+ */
1843
+ proto.EthereumSignTx.prototype.getTxType = function() {
1844
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 103, 0));
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * @param {number} value
1850
+ * @return {!proto.EthereumSignTx} returns this
1851
+ */
1852
+ proto.EthereumSignTx.prototype.setTxType = function(value) {
1853
+ return jspb.Message.setField(this, 103, value);
1854
+ };
1855
+
1856
+
1857
+ /**
1858
+ * Clears the field making it undefined.
1859
+ * @return {!proto.EthereumSignTx} returns this
1860
+ */
1861
+ proto.EthereumSignTx.prototype.clearTxType = function() {
1862
+ return jspb.Message.setField(this, 103, undefined);
1863
+ };
1864
+
1865
+
1866
+ /**
1867
+ * Returns whether this field is set.
1868
+ * @return {boolean}
1869
+ */
1870
+ proto.EthereumSignTx.prototype.hasTxType = function() {
1871
+ return jspb.Message.getField(this, 103) != null;
1872
+ };
1873
+
1874
+
1875
+ /**
1876
+ * optional uint32 type = 104;
1877
+ * @return {number}
1878
+ */
1879
+ proto.EthereumSignTx.prototype.getType = function() {
1880
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 104, 0));
1881
+ };
1882
+
1883
+
1884
+ /**
1885
+ * @param {number} value
1886
+ * @return {!proto.EthereumSignTx} returns this
1887
+ */
1888
+ proto.EthereumSignTx.prototype.setType = function(value) {
1889
+ return jspb.Message.setField(this, 104, value);
1890
+ };
1891
+
1892
+
1893
+ /**
1894
+ * Clears the field making it undefined.
1895
+ * @return {!proto.EthereumSignTx} returns this
1896
+ */
1897
+ proto.EthereumSignTx.prototype.clearType = function() {
1898
+ return jspb.Message.setField(this, 104, undefined);
1899
+ };
1900
+
1901
+
1902
+ /**
1903
+ * Returns whether this field is set.
1904
+ * @return {boolean}
1905
+ */
1906
+ proto.EthereumSignTx.prototype.hasType = function() {
1907
+ return jspb.Message.getField(this, 104) != null;
1908
+ };
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1915
+ /**
1916
+ * Creates an object representation of this proto.
1917
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1918
+ * Optional fields that are not set will be set to undefined.
1919
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1920
+ * For the list of reserved names please see:
1921
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1922
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1923
+ * JSPB instance for transitional soy proto support:
1924
+ * http://goto/soy-param-migration
1925
+ * @return {!Object}
1926
+ */
1927
+ proto.EthereumTxRequest.prototype.toObject = function(opt_includeInstance) {
1928
+ return proto.EthereumTxRequest.toObject(opt_includeInstance, this);
1929
+ };
1930
+
1931
+
1932
+ /**
1933
+ * Static version of the {@see toObject} method.
1934
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1935
+ * the JSPB instance for transitional soy proto support:
1936
+ * http://goto/soy-param-migration
1937
+ * @param {!proto.EthereumTxRequest} msg The msg instance to transform.
1938
+ * @return {!Object}
1939
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1940
+ */
1941
+ proto.EthereumTxRequest.toObject = function(includeInstance, msg) {
1942
+ var f, obj = {
1943
+ dataLength: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
1944
+ signatureV: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
1945
+ signatureR: msg.getSignatureR_asB64(),
1946
+ signatureS: msg.getSignatureS_asB64(),
1947
+ hash: msg.getHash_asB64(),
1948
+ signatureDer: msg.getSignatureDer_asB64()
1949
+ };
1950
+
1951
+ if (includeInstance) {
1952
+ obj.$jspbMessageInstance = msg;
1953
+ }
1954
+ return obj;
1955
+ };
1956
+ }
1957
+
1958
+
1959
+ /**
1960
+ * Deserializes binary data (in protobuf wire format).
1961
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1962
+ * @return {!proto.EthereumTxRequest}
1963
+ */
1964
+ proto.EthereumTxRequest.deserializeBinary = function(bytes) {
1965
+ var reader = new jspb.BinaryReader(bytes);
1966
+ var msg = new proto.EthereumTxRequest;
1967
+ return proto.EthereumTxRequest.deserializeBinaryFromReader(msg, reader);
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * Deserializes binary data (in protobuf wire format) from the
1973
+ * given reader into the given message object.
1974
+ * @param {!proto.EthereumTxRequest} msg The message object to deserialize into.
1975
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1976
+ * @return {!proto.EthereumTxRequest}
1977
+ */
1978
+ proto.EthereumTxRequest.deserializeBinaryFromReader = function(msg, reader) {
1979
+ while (reader.nextField()) {
1980
+ if (reader.isEndGroup()) {
1981
+ break;
1982
+ }
1983
+ var field = reader.getFieldNumber();
1984
+ switch (field) {
1985
+ case 1:
1986
+ var value = /** @type {number} */ (reader.readUint32());
1987
+ msg.setDataLength(value);
1988
+ break;
1989
+ case 2:
1990
+ var value = /** @type {number} */ (reader.readUint32());
1991
+ msg.setSignatureV(value);
1992
+ break;
1993
+ case 3:
1994
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1995
+ msg.setSignatureR(value);
1996
+ break;
1997
+ case 4:
1998
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1999
+ msg.setSignatureS(value);
2000
+ break;
2001
+ case 5:
2002
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2003
+ msg.setHash(value);
2004
+ break;
2005
+ case 6:
2006
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2007
+ msg.setSignatureDer(value);
2008
+ break;
2009
+ default:
2010
+ reader.skipField();
2011
+ break;
2012
+ }
2013
+ }
2014
+ return msg;
2015
+ };
2016
+
2017
+
2018
+ /**
2019
+ * Serializes the message to binary data (in protobuf wire format).
2020
+ * @return {!Uint8Array}
2021
+ */
2022
+ proto.EthereumTxRequest.prototype.serializeBinary = function() {
2023
+ var writer = new jspb.BinaryWriter();
2024
+ proto.EthereumTxRequest.serializeBinaryToWriter(this, writer);
2025
+ return writer.getResultBuffer();
2026
+ };
2027
+
2028
+
2029
+ /**
2030
+ * Serializes the given message to binary data (in protobuf wire
2031
+ * format), writing to the given BinaryWriter.
2032
+ * @param {!proto.EthereumTxRequest} message
2033
+ * @param {!jspb.BinaryWriter} writer
2034
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2035
+ */
2036
+ proto.EthereumTxRequest.serializeBinaryToWriter = function(message, writer) {
2037
+ var f = undefined;
2038
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
2039
+ if (f != null) {
2040
+ writer.writeUint32(
2041
+ 1,
2042
+ f
2043
+ );
2044
+ }
2045
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2046
+ if (f != null) {
2047
+ writer.writeUint32(
2048
+ 2,
2049
+ f
2050
+ );
2051
+ }
2052
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
2053
+ if (f != null) {
2054
+ writer.writeBytes(
2055
+ 3,
2056
+ f
2057
+ );
2058
+ }
2059
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4));
2060
+ if (f != null) {
2061
+ writer.writeBytes(
2062
+ 4,
2063
+ f
2064
+ );
2065
+ }
2066
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 5));
2067
+ if (f != null) {
2068
+ writer.writeBytes(
2069
+ 5,
2070
+ f
2071
+ );
2072
+ }
2073
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 6));
2074
+ if (f != null) {
2075
+ writer.writeBytes(
2076
+ 6,
2077
+ f
2078
+ );
2079
+ }
2080
+ };
2081
+
2082
+
2083
+ /**
2084
+ * optional uint32 data_length = 1;
2085
+ * @return {number}
2086
+ */
2087
+ proto.EthereumTxRequest.prototype.getDataLength = function() {
2088
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2089
+ };
2090
+
2091
+
2092
+ /**
2093
+ * @param {number} value
2094
+ * @return {!proto.EthereumTxRequest} returns this
2095
+ */
2096
+ proto.EthereumTxRequest.prototype.setDataLength = function(value) {
2097
+ return jspb.Message.setField(this, 1, value);
2098
+ };
2099
+
2100
+
2101
+ /**
2102
+ * Clears the field making it undefined.
2103
+ * @return {!proto.EthereumTxRequest} returns this
2104
+ */
2105
+ proto.EthereumTxRequest.prototype.clearDataLength = function() {
2106
+ return jspb.Message.setField(this, 1, undefined);
2107
+ };
2108
+
2109
+
2110
+ /**
2111
+ * Returns whether this field is set.
2112
+ * @return {boolean}
2113
+ */
2114
+ proto.EthereumTxRequest.prototype.hasDataLength = function() {
2115
+ return jspb.Message.getField(this, 1) != null;
2116
+ };
2117
+
2118
+
2119
+ /**
2120
+ * optional uint32 signature_v = 2;
2121
+ * @return {number}
2122
+ */
2123
+ proto.EthereumTxRequest.prototype.getSignatureV = function() {
2124
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2125
+ };
2126
+
2127
+
2128
+ /**
2129
+ * @param {number} value
2130
+ * @return {!proto.EthereumTxRequest} returns this
2131
+ */
2132
+ proto.EthereumTxRequest.prototype.setSignatureV = function(value) {
2133
+ return jspb.Message.setField(this, 2, value);
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * Clears the field making it undefined.
2139
+ * @return {!proto.EthereumTxRequest} returns this
2140
+ */
2141
+ proto.EthereumTxRequest.prototype.clearSignatureV = function() {
2142
+ return jspb.Message.setField(this, 2, undefined);
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * Returns whether this field is set.
2148
+ * @return {boolean}
2149
+ */
2150
+ proto.EthereumTxRequest.prototype.hasSignatureV = function() {
2151
+ return jspb.Message.getField(this, 2) != null;
2152
+ };
2153
+
2154
+
2155
+ /**
2156
+ * optional bytes signature_r = 3;
2157
+ * @return {!(string|Uint8Array)}
2158
+ */
2159
+ proto.EthereumTxRequest.prototype.getSignatureR = function() {
2160
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2161
+ };
2162
+
2163
+
2164
+ /**
2165
+ * optional bytes signature_r = 3;
2166
+ * This is a type-conversion wrapper around `getSignatureR()`
2167
+ * @return {string}
2168
+ */
2169
+ proto.EthereumTxRequest.prototype.getSignatureR_asB64 = function() {
2170
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2171
+ this.getSignatureR()));
2172
+ };
2173
+
2174
+
2175
+ /**
2176
+ * optional bytes signature_r = 3;
2177
+ * Note that Uint8Array is not supported on all browsers.
2178
+ * @see http://caniuse.com/Uint8Array
2179
+ * This is a type-conversion wrapper around `getSignatureR()`
2180
+ * @return {!Uint8Array}
2181
+ */
2182
+ proto.EthereumTxRequest.prototype.getSignatureR_asU8 = function() {
2183
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2184
+ this.getSignatureR()));
2185
+ };
2186
+
2187
+
2188
+ /**
2189
+ * @param {!(string|Uint8Array)} value
2190
+ * @return {!proto.EthereumTxRequest} returns this
2191
+ */
2192
+ proto.EthereumTxRequest.prototype.setSignatureR = function(value) {
2193
+ return jspb.Message.setField(this, 3, value);
2194
+ };
2195
+
2196
+
2197
+ /**
2198
+ * Clears the field making it undefined.
2199
+ * @return {!proto.EthereumTxRequest} returns this
2200
+ */
2201
+ proto.EthereumTxRequest.prototype.clearSignatureR = function() {
2202
+ return jspb.Message.setField(this, 3, undefined);
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * Returns whether this field is set.
2208
+ * @return {boolean}
2209
+ */
2210
+ proto.EthereumTxRequest.prototype.hasSignatureR = function() {
2211
+ return jspb.Message.getField(this, 3) != null;
2212
+ };
2213
+
2214
+
2215
+ /**
2216
+ * optional bytes signature_s = 4;
2217
+ * @return {!(string|Uint8Array)}
2218
+ */
2219
+ proto.EthereumTxRequest.prototype.getSignatureS = function() {
2220
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2221
+ };
2222
+
2223
+
2224
+ /**
2225
+ * optional bytes signature_s = 4;
2226
+ * This is a type-conversion wrapper around `getSignatureS()`
2227
+ * @return {string}
2228
+ */
2229
+ proto.EthereumTxRequest.prototype.getSignatureS_asB64 = function() {
2230
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2231
+ this.getSignatureS()));
2232
+ };
2233
+
2234
+
2235
+ /**
2236
+ * optional bytes signature_s = 4;
2237
+ * Note that Uint8Array is not supported on all browsers.
2238
+ * @see http://caniuse.com/Uint8Array
2239
+ * This is a type-conversion wrapper around `getSignatureS()`
2240
+ * @return {!Uint8Array}
2241
+ */
2242
+ proto.EthereumTxRequest.prototype.getSignatureS_asU8 = function() {
2243
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2244
+ this.getSignatureS()));
2245
+ };
2246
+
2247
+
2248
+ /**
2249
+ * @param {!(string|Uint8Array)} value
2250
+ * @return {!proto.EthereumTxRequest} returns this
2251
+ */
2252
+ proto.EthereumTxRequest.prototype.setSignatureS = function(value) {
2253
+ return jspb.Message.setField(this, 4, value);
2254
+ };
2255
+
2256
+
2257
+ /**
2258
+ * Clears the field making it undefined.
2259
+ * @return {!proto.EthereumTxRequest} returns this
2260
+ */
2261
+ proto.EthereumTxRequest.prototype.clearSignatureS = function() {
2262
+ return jspb.Message.setField(this, 4, undefined);
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * Returns whether this field is set.
2268
+ * @return {boolean}
2269
+ */
2270
+ proto.EthereumTxRequest.prototype.hasSignatureS = function() {
2271
+ return jspb.Message.getField(this, 4) != null;
2272
+ };
2273
+
2274
+
2275
+ /**
2276
+ * optional bytes hash = 5;
2277
+ * @return {!(string|Uint8Array)}
2278
+ */
2279
+ proto.EthereumTxRequest.prototype.getHash = function() {
2280
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2281
+ };
2282
+
2283
+
2284
+ /**
2285
+ * optional bytes hash = 5;
2286
+ * This is a type-conversion wrapper around `getHash()`
2287
+ * @return {string}
2288
+ */
2289
+ proto.EthereumTxRequest.prototype.getHash_asB64 = function() {
2290
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2291
+ this.getHash()));
2292
+ };
2293
+
2294
+
2295
+ /**
2296
+ * optional bytes hash = 5;
2297
+ * Note that Uint8Array is not supported on all browsers.
2298
+ * @see http://caniuse.com/Uint8Array
2299
+ * This is a type-conversion wrapper around `getHash()`
2300
+ * @return {!Uint8Array}
2301
+ */
2302
+ proto.EthereumTxRequest.prototype.getHash_asU8 = function() {
2303
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2304
+ this.getHash()));
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * @param {!(string|Uint8Array)} value
2310
+ * @return {!proto.EthereumTxRequest} returns this
2311
+ */
2312
+ proto.EthereumTxRequest.prototype.setHash = function(value) {
2313
+ return jspb.Message.setField(this, 5, value);
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * Clears the field making it undefined.
2319
+ * @return {!proto.EthereumTxRequest} returns this
2320
+ */
2321
+ proto.EthereumTxRequest.prototype.clearHash = function() {
2322
+ return jspb.Message.setField(this, 5, undefined);
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * Returns whether this field is set.
2328
+ * @return {boolean}
2329
+ */
2330
+ proto.EthereumTxRequest.prototype.hasHash = function() {
2331
+ return jspb.Message.getField(this, 5) != null;
2332
+ };
2333
+
2334
+
2335
+ /**
2336
+ * optional bytes signature_der = 6;
2337
+ * @return {!(string|Uint8Array)}
2338
+ */
2339
+ proto.EthereumTxRequest.prototype.getSignatureDer = function() {
2340
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * optional bytes signature_der = 6;
2346
+ * This is a type-conversion wrapper around `getSignatureDer()`
2347
+ * @return {string}
2348
+ */
2349
+ proto.EthereumTxRequest.prototype.getSignatureDer_asB64 = function() {
2350
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2351
+ this.getSignatureDer()));
2352
+ };
2353
+
2354
+
2355
+ /**
2356
+ * optional bytes signature_der = 6;
2357
+ * Note that Uint8Array is not supported on all browsers.
2358
+ * @see http://caniuse.com/Uint8Array
2359
+ * This is a type-conversion wrapper around `getSignatureDer()`
2360
+ * @return {!Uint8Array}
2361
+ */
2362
+ proto.EthereumTxRequest.prototype.getSignatureDer_asU8 = function() {
2363
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2364
+ this.getSignatureDer()));
2365
+ };
2366
+
2367
+
2368
+ /**
2369
+ * @param {!(string|Uint8Array)} value
2370
+ * @return {!proto.EthereumTxRequest} returns this
2371
+ */
2372
+ proto.EthereumTxRequest.prototype.setSignatureDer = function(value) {
2373
+ return jspb.Message.setField(this, 6, value);
2374
+ };
2375
+
2376
+
2377
+ /**
2378
+ * Clears the field making it undefined.
2379
+ * @return {!proto.EthereumTxRequest} returns this
2380
+ */
2381
+ proto.EthereumTxRequest.prototype.clearSignatureDer = function() {
2382
+ return jspb.Message.setField(this, 6, undefined);
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * Returns whether this field is set.
2388
+ * @return {boolean}
2389
+ */
2390
+ proto.EthereumTxRequest.prototype.hasSignatureDer = function() {
2391
+ return jspb.Message.getField(this, 6) != null;
2392
+ };
2393
+
2394
+
2395
+
2396
+
2397
+
2398
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2399
+ /**
2400
+ * Creates an object representation of this proto.
2401
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2402
+ * Optional fields that are not set will be set to undefined.
2403
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2404
+ * For the list of reserved names please see:
2405
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2406
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2407
+ * JSPB instance for transitional soy proto support:
2408
+ * http://goto/soy-param-migration
2409
+ * @return {!Object}
2410
+ */
2411
+ proto.EthereumTxAck.prototype.toObject = function(opt_includeInstance) {
2412
+ return proto.EthereumTxAck.toObject(opt_includeInstance, this);
2413
+ };
2414
+
2415
+
2416
+ /**
2417
+ * Static version of the {@see toObject} method.
2418
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2419
+ * the JSPB instance for transitional soy proto support:
2420
+ * http://goto/soy-param-migration
2421
+ * @param {!proto.EthereumTxAck} msg The msg instance to transform.
2422
+ * @return {!Object}
2423
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2424
+ */
2425
+ proto.EthereumTxAck.toObject = function(includeInstance, msg) {
2426
+ var f, obj = {
2427
+ dataChunk: msg.getDataChunk_asB64()
2428
+ };
2429
+
2430
+ if (includeInstance) {
2431
+ obj.$jspbMessageInstance = msg;
2432
+ }
2433
+ return obj;
2434
+ };
2435
+ }
2436
+
2437
+
2438
+ /**
2439
+ * Deserializes binary data (in protobuf wire format).
2440
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2441
+ * @return {!proto.EthereumTxAck}
2442
+ */
2443
+ proto.EthereumTxAck.deserializeBinary = function(bytes) {
2444
+ var reader = new jspb.BinaryReader(bytes);
2445
+ var msg = new proto.EthereumTxAck;
2446
+ return proto.EthereumTxAck.deserializeBinaryFromReader(msg, reader);
2447
+ };
2448
+
2449
+
2450
+ /**
2451
+ * Deserializes binary data (in protobuf wire format) from the
2452
+ * given reader into the given message object.
2453
+ * @param {!proto.EthereumTxAck} msg The message object to deserialize into.
2454
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2455
+ * @return {!proto.EthereumTxAck}
2456
+ */
2457
+ proto.EthereumTxAck.deserializeBinaryFromReader = function(msg, reader) {
2458
+ while (reader.nextField()) {
2459
+ if (reader.isEndGroup()) {
2460
+ break;
2461
+ }
2462
+ var field = reader.getFieldNumber();
2463
+ switch (field) {
2464
+ case 1:
2465
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2466
+ msg.setDataChunk(value);
2467
+ break;
2468
+ default:
2469
+ reader.skipField();
2470
+ break;
2471
+ }
2472
+ }
2473
+ return msg;
2474
+ };
2475
+
2476
+
2477
+ /**
2478
+ * Serializes the message to binary data (in protobuf wire format).
2479
+ * @return {!Uint8Array}
2480
+ */
2481
+ proto.EthereumTxAck.prototype.serializeBinary = function() {
2482
+ var writer = new jspb.BinaryWriter();
2483
+ proto.EthereumTxAck.serializeBinaryToWriter(this, writer);
2484
+ return writer.getResultBuffer();
2485
+ };
2486
+
2487
+
2488
+ /**
2489
+ * Serializes the given message to binary data (in protobuf wire
2490
+ * format), writing to the given BinaryWriter.
2491
+ * @param {!proto.EthereumTxAck} message
2492
+ * @param {!jspb.BinaryWriter} writer
2493
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2494
+ */
2495
+ proto.EthereumTxAck.serializeBinaryToWriter = function(message, writer) {
2496
+ var f = undefined;
2497
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
2498
+ if (f != null) {
2499
+ writer.writeBytes(
2500
+ 1,
2501
+ f
2502
+ );
2503
+ }
2504
+ };
2505
+
2506
+
2507
+ /**
2508
+ * optional bytes data_chunk = 1;
2509
+ * @return {!(string|Uint8Array)}
2510
+ */
2511
+ proto.EthereumTxAck.prototype.getDataChunk = function() {
2512
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2513
+ };
2514
+
2515
+
2516
+ /**
2517
+ * optional bytes data_chunk = 1;
2518
+ * This is a type-conversion wrapper around `getDataChunk()`
2519
+ * @return {string}
2520
+ */
2521
+ proto.EthereumTxAck.prototype.getDataChunk_asB64 = function() {
2522
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2523
+ this.getDataChunk()));
2524
+ };
2525
+
2526
+
2527
+ /**
2528
+ * optional bytes data_chunk = 1;
2529
+ * Note that Uint8Array is not supported on all browsers.
2530
+ * @see http://caniuse.com/Uint8Array
2531
+ * This is a type-conversion wrapper around `getDataChunk()`
2532
+ * @return {!Uint8Array}
2533
+ */
2534
+ proto.EthereumTxAck.prototype.getDataChunk_asU8 = function() {
2535
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2536
+ this.getDataChunk()));
2537
+ };
2538
+
2539
+
2540
+ /**
2541
+ * @param {!(string|Uint8Array)} value
2542
+ * @return {!proto.EthereumTxAck} returns this
2543
+ */
2544
+ proto.EthereumTxAck.prototype.setDataChunk = function(value) {
2545
+ return jspb.Message.setField(this, 1, value);
2546
+ };
2547
+
2548
+
2549
+ /**
2550
+ * Clears the field making it undefined.
2551
+ * @return {!proto.EthereumTxAck} returns this
2552
+ */
2553
+ proto.EthereumTxAck.prototype.clearDataChunk = function() {
2554
+ return jspb.Message.setField(this, 1, undefined);
2555
+ };
2556
+
2557
+
2558
+ /**
2559
+ * Returns whether this field is set.
2560
+ * @return {boolean}
2561
+ */
2562
+ proto.EthereumTxAck.prototype.hasDataChunk = function() {
2563
+ return jspb.Message.getField(this, 1) != null;
2564
+ };
2565
+
2566
+
2567
+
2568
+ /**
2569
+ * List of repeated fields within this message type.
2570
+ * @private {!Array<number>}
2571
+ * @const
2572
+ */
2573
+ proto.EthereumSignMessage.repeatedFields_ = [1];
2574
+
2575
+
2576
+
2577
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2578
+ /**
2579
+ * Creates an object representation of this proto.
2580
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2581
+ * Optional fields that are not set will be set to undefined.
2582
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2583
+ * For the list of reserved names please see:
2584
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2585
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2586
+ * JSPB instance for transitional soy proto support:
2587
+ * http://goto/soy-param-migration
2588
+ * @return {!Object}
2589
+ */
2590
+ proto.EthereumSignMessage.prototype.toObject = function(opt_includeInstance) {
2591
+ return proto.EthereumSignMessage.toObject(opt_includeInstance, this);
2592
+ };
2593
+
2594
+
2595
+ /**
2596
+ * Static version of the {@see toObject} method.
2597
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2598
+ * the JSPB instance for transitional soy proto support:
2599
+ * http://goto/soy-param-migration
2600
+ * @param {!proto.EthereumSignMessage} msg The msg instance to transform.
2601
+ * @return {!Object}
2602
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2603
+ */
2604
+ proto.EthereumSignMessage.toObject = function(includeInstance, msg) {
2605
+ var f, obj = {
2606
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2607
+ message: msg.getMessage_asB64()
2608
+ };
2609
+
2610
+ if (includeInstance) {
2611
+ obj.$jspbMessageInstance = msg;
2612
+ }
2613
+ return obj;
2614
+ };
2615
+ }
2616
+
2617
+
2618
+ /**
2619
+ * Deserializes binary data (in protobuf wire format).
2620
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2621
+ * @return {!proto.EthereumSignMessage}
2622
+ */
2623
+ proto.EthereumSignMessage.deserializeBinary = function(bytes) {
2624
+ var reader = new jspb.BinaryReader(bytes);
2625
+ var msg = new proto.EthereumSignMessage;
2626
+ return proto.EthereumSignMessage.deserializeBinaryFromReader(msg, reader);
2627
+ };
2628
+
2629
+
2630
+ /**
2631
+ * Deserializes binary data (in protobuf wire format) from the
2632
+ * given reader into the given message object.
2633
+ * @param {!proto.EthereumSignMessage} msg The message object to deserialize into.
2634
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2635
+ * @return {!proto.EthereumSignMessage}
2636
+ */
2637
+ proto.EthereumSignMessage.deserializeBinaryFromReader = function(msg, reader) {
2638
+ while (reader.nextField()) {
2639
+ if (reader.isEndGroup()) {
2640
+ break;
2641
+ }
2642
+ var field = reader.getFieldNumber();
2643
+ switch (field) {
2644
+ case 1:
2645
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
2646
+ for (var i = 0; i < values.length; i++) {
2647
+ msg.addAddressN(values[i]);
2648
+ }
2649
+ break;
2650
+ case 2:
2651
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2652
+ msg.setMessage(value);
2653
+ break;
2654
+ default:
2655
+ reader.skipField();
2656
+ break;
2657
+ }
2658
+ }
2659
+ return msg;
2660
+ };
2661
+
2662
+
2663
+ /**
2664
+ * Serializes the message to binary data (in protobuf wire format).
2665
+ * @return {!Uint8Array}
2666
+ */
2667
+ proto.EthereumSignMessage.prototype.serializeBinary = function() {
2668
+ var writer = new jspb.BinaryWriter();
2669
+ proto.EthereumSignMessage.serializeBinaryToWriter(this, writer);
2670
+ return writer.getResultBuffer();
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * Serializes the given message to binary data (in protobuf wire
2676
+ * format), writing to the given BinaryWriter.
2677
+ * @param {!proto.EthereumSignMessage} message
2678
+ * @param {!jspb.BinaryWriter} writer
2679
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2680
+ */
2681
+ proto.EthereumSignMessage.serializeBinaryToWriter = function(message, writer) {
2682
+ var f = undefined;
2683
+ f = message.getAddressNList();
2684
+ if (f.length > 0) {
2685
+ writer.writeRepeatedUint32(
2686
+ 1,
2687
+ f
2688
+ );
2689
+ }
2690
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
2691
+ if (f != null) {
2692
+ writer.writeBytes(
2693
+ 2,
2694
+ f
2695
+ );
2696
+ }
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * repeated uint32 address_n = 1;
2702
+ * @return {!Array<number>}
2703
+ */
2704
+ proto.EthereumSignMessage.prototype.getAddressNList = function() {
2705
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
2706
+ };
2707
+
2708
+
2709
+ /**
2710
+ * @param {!Array<number>} value
2711
+ * @return {!proto.EthereumSignMessage} returns this
2712
+ */
2713
+ proto.EthereumSignMessage.prototype.setAddressNList = function(value) {
2714
+ return jspb.Message.setField(this, 1, value || []);
2715
+ };
2716
+
2717
+
2718
+ /**
2719
+ * @param {number} value
2720
+ * @param {number=} opt_index
2721
+ * @return {!proto.EthereumSignMessage} returns this
2722
+ */
2723
+ proto.EthereumSignMessage.prototype.addAddressN = function(value, opt_index) {
2724
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2725
+ };
2726
+
2727
+
2728
+ /**
2729
+ * Clears the list making it empty but non-null.
2730
+ * @return {!proto.EthereumSignMessage} returns this
2731
+ */
2732
+ proto.EthereumSignMessage.prototype.clearAddressNList = function() {
2733
+ return this.setAddressNList([]);
2734
+ };
2735
+
2736
+
2737
+ /**
2738
+ * required bytes message = 2;
2739
+ * @return {!(string|Uint8Array)}
2740
+ */
2741
+ proto.EthereumSignMessage.prototype.getMessage = function() {
2742
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2743
+ };
2744
+
2745
+
2746
+ /**
2747
+ * required bytes message = 2;
2748
+ * This is a type-conversion wrapper around `getMessage()`
2749
+ * @return {string}
2750
+ */
2751
+ proto.EthereumSignMessage.prototype.getMessage_asB64 = function() {
2752
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2753
+ this.getMessage()));
2754
+ };
2755
+
2756
+
2757
+ /**
2758
+ * required bytes message = 2;
2759
+ * Note that Uint8Array is not supported on all browsers.
2760
+ * @see http://caniuse.com/Uint8Array
2761
+ * This is a type-conversion wrapper around `getMessage()`
2762
+ * @return {!Uint8Array}
2763
+ */
2764
+ proto.EthereumSignMessage.prototype.getMessage_asU8 = function() {
2765
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2766
+ this.getMessage()));
2767
+ };
2768
+
2769
+
2770
+ /**
2771
+ * @param {!(string|Uint8Array)} value
2772
+ * @return {!proto.EthereumSignMessage} returns this
2773
+ */
2774
+ proto.EthereumSignMessage.prototype.setMessage = function(value) {
2775
+ return jspb.Message.setField(this, 2, value);
2776
+ };
2777
+
2778
+
2779
+ /**
2780
+ * Clears the field making it undefined.
2781
+ * @return {!proto.EthereumSignMessage} returns this
2782
+ */
2783
+ proto.EthereumSignMessage.prototype.clearMessage = function() {
2784
+ return jspb.Message.setField(this, 2, undefined);
2785
+ };
2786
+
2787
+
2788
+ /**
2789
+ * Returns whether this field is set.
2790
+ * @return {boolean}
2791
+ */
2792
+ proto.EthereumSignMessage.prototype.hasMessage = function() {
2793
+ return jspb.Message.getField(this, 2) != null;
2794
+ };
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2801
+ /**
2802
+ * Creates an object representation of this proto.
2803
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2804
+ * Optional fields that are not set will be set to undefined.
2805
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2806
+ * For the list of reserved names please see:
2807
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2808
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2809
+ * JSPB instance for transitional soy proto support:
2810
+ * http://goto/soy-param-migration
2811
+ * @return {!Object}
2812
+ */
2813
+ proto.EthereumVerifyMessage.prototype.toObject = function(opt_includeInstance) {
2814
+ return proto.EthereumVerifyMessage.toObject(opt_includeInstance, this);
2815
+ };
2816
+
2817
+
2818
+ /**
2819
+ * Static version of the {@see toObject} method.
2820
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2821
+ * the JSPB instance for transitional soy proto support:
2822
+ * http://goto/soy-param-migration
2823
+ * @param {!proto.EthereumVerifyMessage} msg The msg instance to transform.
2824
+ * @return {!Object}
2825
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2826
+ */
2827
+ proto.EthereumVerifyMessage.toObject = function(includeInstance, msg) {
2828
+ var f, obj = {
2829
+ address: msg.getAddress_asB64(),
2830
+ signature: msg.getSignature_asB64(),
2831
+ message: msg.getMessage_asB64()
2832
+ };
2833
+
2834
+ if (includeInstance) {
2835
+ obj.$jspbMessageInstance = msg;
2836
+ }
2837
+ return obj;
2838
+ };
2839
+ }
2840
+
2841
+
2842
+ /**
2843
+ * Deserializes binary data (in protobuf wire format).
2844
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2845
+ * @return {!proto.EthereumVerifyMessage}
2846
+ */
2847
+ proto.EthereumVerifyMessage.deserializeBinary = function(bytes) {
2848
+ var reader = new jspb.BinaryReader(bytes);
2849
+ var msg = new proto.EthereumVerifyMessage;
2850
+ return proto.EthereumVerifyMessage.deserializeBinaryFromReader(msg, reader);
2851
+ };
2852
+
2853
+
2854
+ /**
2855
+ * Deserializes binary data (in protobuf wire format) from the
2856
+ * given reader into the given message object.
2857
+ * @param {!proto.EthereumVerifyMessage} msg The message object to deserialize into.
2858
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2859
+ * @return {!proto.EthereumVerifyMessage}
2860
+ */
2861
+ proto.EthereumVerifyMessage.deserializeBinaryFromReader = function(msg, reader) {
2862
+ while (reader.nextField()) {
2863
+ if (reader.isEndGroup()) {
2864
+ break;
2865
+ }
2866
+ var field = reader.getFieldNumber();
2867
+ switch (field) {
2868
+ case 1:
2869
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2870
+ msg.setAddress(value);
2871
+ break;
2872
+ case 2:
2873
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2874
+ msg.setSignature(value);
2875
+ break;
2876
+ case 3:
2877
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2878
+ msg.setMessage(value);
2879
+ break;
2880
+ default:
2881
+ reader.skipField();
2882
+ break;
2883
+ }
2884
+ }
2885
+ return msg;
2886
+ };
2887
+
2888
+
2889
+ /**
2890
+ * Serializes the message to binary data (in protobuf wire format).
2891
+ * @return {!Uint8Array}
2892
+ */
2893
+ proto.EthereumVerifyMessage.prototype.serializeBinary = function() {
2894
+ var writer = new jspb.BinaryWriter();
2895
+ proto.EthereumVerifyMessage.serializeBinaryToWriter(this, writer);
2896
+ return writer.getResultBuffer();
2897
+ };
2898
+
2899
+
2900
+ /**
2901
+ * Serializes the given message to binary data (in protobuf wire
2902
+ * format), writing to the given BinaryWriter.
2903
+ * @param {!proto.EthereumVerifyMessage} message
2904
+ * @param {!jspb.BinaryWriter} writer
2905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2906
+ */
2907
+ proto.EthereumVerifyMessage.serializeBinaryToWriter = function(message, writer) {
2908
+ var f = undefined;
2909
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
2910
+ if (f != null) {
2911
+ writer.writeBytes(
2912
+ 1,
2913
+ f
2914
+ );
2915
+ }
2916
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
2917
+ if (f != null) {
2918
+ writer.writeBytes(
2919
+ 2,
2920
+ f
2921
+ );
2922
+ }
2923
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
2924
+ if (f != null) {
2925
+ writer.writeBytes(
2926
+ 3,
2927
+ f
2928
+ );
2929
+ }
2930
+ };
2931
+
2932
+
2933
+ /**
2934
+ * optional bytes address = 1;
2935
+ * @return {!(string|Uint8Array)}
2936
+ */
2937
+ proto.EthereumVerifyMessage.prototype.getAddress = function() {
2938
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * optional bytes address = 1;
2944
+ * This is a type-conversion wrapper around `getAddress()`
2945
+ * @return {string}
2946
+ */
2947
+ proto.EthereumVerifyMessage.prototype.getAddress_asB64 = function() {
2948
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2949
+ this.getAddress()));
2950
+ };
2951
+
2952
+
2953
+ /**
2954
+ * optional bytes address = 1;
2955
+ * Note that Uint8Array is not supported on all browsers.
2956
+ * @see http://caniuse.com/Uint8Array
2957
+ * This is a type-conversion wrapper around `getAddress()`
2958
+ * @return {!Uint8Array}
2959
+ */
2960
+ proto.EthereumVerifyMessage.prototype.getAddress_asU8 = function() {
2961
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2962
+ this.getAddress()));
2963
+ };
2964
+
2965
+
2966
+ /**
2967
+ * @param {!(string|Uint8Array)} value
2968
+ * @return {!proto.EthereumVerifyMessage} returns this
2969
+ */
2970
+ proto.EthereumVerifyMessage.prototype.setAddress = function(value) {
2971
+ return jspb.Message.setField(this, 1, value);
2972
+ };
2973
+
2974
+
2975
+ /**
2976
+ * Clears the field making it undefined.
2977
+ * @return {!proto.EthereumVerifyMessage} returns this
2978
+ */
2979
+ proto.EthereumVerifyMessage.prototype.clearAddress = function() {
2980
+ return jspb.Message.setField(this, 1, undefined);
2981
+ };
2982
+
2983
+
2984
+ /**
2985
+ * Returns whether this field is set.
2986
+ * @return {boolean}
2987
+ */
2988
+ proto.EthereumVerifyMessage.prototype.hasAddress = function() {
2989
+ return jspb.Message.getField(this, 1) != null;
2990
+ };
2991
+
2992
+
2993
+ /**
2994
+ * optional bytes signature = 2;
2995
+ * @return {!(string|Uint8Array)}
2996
+ */
2997
+ proto.EthereumVerifyMessage.prototype.getSignature = function() {
2998
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2999
+ };
3000
+
3001
+
3002
+ /**
3003
+ * optional bytes signature = 2;
3004
+ * This is a type-conversion wrapper around `getSignature()`
3005
+ * @return {string}
3006
+ */
3007
+ proto.EthereumVerifyMessage.prototype.getSignature_asB64 = function() {
3008
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3009
+ this.getSignature()));
3010
+ };
3011
+
3012
+
3013
+ /**
3014
+ * optional bytes signature = 2;
3015
+ * Note that Uint8Array is not supported on all browsers.
3016
+ * @see http://caniuse.com/Uint8Array
3017
+ * This is a type-conversion wrapper around `getSignature()`
3018
+ * @return {!Uint8Array}
3019
+ */
3020
+ proto.EthereumVerifyMessage.prototype.getSignature_asU8 = function() {
3021
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3022
+ this.getSignature()));
3023
+ };
3024
+
3025
+
3026
+ /**
3027
+ * @param {!(string|Uint8Array)} value
3028
+ * @return {!proto.EthereumVerifyMessage} returns this
3029
+ */
3030
+ proto.EthereumVerifyMessage.prototype.setSignature = function(value) {
3031
+ return jspb.Message.setField(this, 2, value);
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * Clears the field making it undefined.
3037
+ * @return {!proto.EthereumVerifyMessage} returns this
3038
+ */
3039
+ proto.EthereumVerifyMessage.prototype.clearSignature = function() {
3040
+ return jspb.Message.setField(this, 2, undefined);
3041
+ };
3042
+
3043
+
3044
+ /**
3045
+ * Returns whether this field is set.
3046
+ * @return {boolean}
3047
+ */
3048
+ proto.EthereumVerifyMessage.prototype.hasSignature = function() {
3049
+ return jspb.Message.getField(this, 2) != null;
3050
+ };
3051
+
3052
+
3053
+ /**
3054
+ * optional bytes message = 3;
3055
+ * @return {!(string|Uint8Array)}
3056
+ */
3057
+ proto.EthereumVerifyMessage.prototype.getMessage = function() {
3058
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3059
+ };
3060
+
3061
+
3062
+ /**
3063
+ * optional bytes message = 3;
3064
+ * This is a type-conversion wrapper around `getMessage()`
3065
+ * @return {string}
3066
+ */
3067
+ proto.EthereumVerifyMessage.prototype.getMessage_asB64 = function() {
3068
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3069
+ this.getMessage()));
3070
+ };
3071
+
3072
+
3073
+ /**
3074
+ * optional bytes message = 3;
3075
+ * Note that Uint8Array is not supported on all browsers.
3076
+ * @see http://caniuse.com/Uint8Array
3077
+ * This is a type-conversion wrapper around `getMessage()`
3078
+ * @return {!Uint8Array}
3079
+ */
3080
+ proto.EthereumVerifyMessage.prototype.getMessage_asU8 = function() {
3081
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3082
+ this.getMessage()));
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * @param {!(string|Uint8Array)} value
3088
+ * @return {!proto.EthereumVerifyMessage} returns this
3089
+ */
3090
+ proto.EthereumVerifyMessage.prototype.setMessage = function(value) {
3091
+ return jspb.Message.setField(this, 3, value);
3092
+ };
3093
+
3094
+
3095
+ /**
3096
+ * Clears the field making it undefined.
3097
+ * @return {!proto.EthereumVerifyMessage} returns this
3098
+ */
3099
+ proto.EthereumVerifyMessage.prototype.clearMessage = function() {
3100
+ return jspb.Message.setField(this, 3, undefined);
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * Returns whether this field is set.
3106
+ * @return {boolean}
3107
+ */
3108
+ proto.EthereumVerifyMessage.prototype.hasMessage = function() {
3109
+ return jspb.Message.getField(this, 3) != null;
3110
+ };
3111
+
3112
+
3113
+
3114
+
3115
+
3116
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3117
+ /**
3118
+ * Creates an object representation of this proto.
3119
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3120
+ * Optional fields that are not set will be set to undefined.
3121
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3122
+ * For the list of reserved names please see:
3123
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3124
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3125
+ * JSPB instance for transitional soy proto support:
3126
+ * http://goto/soy-param-migration
3127
+ * @return {!Object}
3128
+ */
3129
+ proto.EthereumMessageSignature.prototype.toObject = function(opt_includeInstance) {
3130
+ return proto.EthereumMessageSignature.toObject(opt_includeInstance, this);
3131
+ };
3132
+
3133
+
3134
+ /**
3135
+ * Static version of the {@see toObject} method.
3136
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3137
+ * the JSPB instance for transitional soy proto support:
3138
+ * http://goto/soy-param-migration
3139
+ * @param {!proto.EthereumMessageSignature} msg The msg instance to transform.
3140
+ * @return {!Object}
3141
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3142
+ */
3143
+ proto.EthereumMessageSignature.toObject = function(includeInstance, msg) {
3144
+ var f, obj = {
3145
+ address: msg.getAddress_asB64(),
3146
+ signature: msg.getSignature_asB64()
3147
+ };
3148
+
3149
+ if (includeInstance) {
3150
+ obj.$jspbMessageInstance = msg;
3151
+ }
3152
+ return obj;
3153
+ };
3154
+ }
3155
+
3156
+
3157
+ /**
3158
+ * Deserializes binary data (in protobuf wire format).
3159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3160
+ * @return {!proto.EthereumMessageSignature}
3161
+ */
3162
+ proto.EthereumMessageSignature.deserializeBinary = function(bytes) {
3163
+ var reader = new jspb.BinaryReader(bytes);
3164
+ var msg = new proto.EthereumMessageSignature;
3165
+ return proto.EthereumMessageSignature.deserializeBinaryFromReader(msg, reader);
3166
+ };
3167
+
3168
+
3169
+ /**
3170
+ * Deserializes binary data (in protobuf wire format) from the
3171
+ * given reader into the given message object.
3172
+ * @param {!proto.EthereumMessageSignature} msg The message object to deserialize into.
3173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3174
+ * @return {!proto.EthereumMessageSignature}
3175
+ */
3176
+ proto.EthereumMessageSignature.deserializeBinaryFromReader = function(msg, reader) {
3177
+ while (reader.nextField()) {
3178
+ if (reader.isEndGroup()) {
3179
+ break;
3180
+ }
3181
+ var field = reader.getFieldNumber();
3182
+ switch (field) {
3183
+ case 1:
3184
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3185
+ msg.setAddress(value);
3186
+ break;
3187
+ case 2:
3188
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3189
+ msg.setSignature(value);
3190
+ break;
3191
+ default:
3192
+ reader.skipField();
3193
+ break;
3194
+ }
3195
+ }
3196
+ return msg;
3197
+ };
3198
+
3199
+
3200
+ /**
3201
+ * Serializes the message to binary data (in protobuf wire format).
3202
+ * @return {!Uint8Array}
3203
+ */
3204
+ proto.EthereumMessageSignature.prototype.serializeBinary = function() {
3205
+ var writer = new jspb.BinaryWriter();
3206
+ proto.EthereumMessageSignature.serializeBinaryToWriter(this, writer);
3207
+ return writer.getResultBuffer();
3208
+ };
3209
+
3210
+
3211
+ /**
3212
+ * Serializes the given message to binary data (in protobuf wire
3213
+ * format), writing to the given BinaryWriter.
3214
+ * @param {!proto.EthereumMessageSignature} message
3215
+ * @param {!jspb.BinaryWriter} writer
3216
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3217
+ */
3218
+ proto.EthereumMessageSignature.serializeBinaryToWriter = function(message, writer) {
3219
+ var f = undefined;
3220
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
3221
+ if (f != null) {
3222
+ writer.writeBytes(
3223
+ 1,
3224
+ f
3225
+ );
3226
+ }
3227
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
3228
+ if (f != null) {
3229
+ writer.writeBytes(
3230
+ 2,
3231
+ f
3232
+ );
3233
+ }
3234
+ };
3235
+
3236
+
3237
+ /**
3238
+ * optional bytes address = 1;
3239
+ * @return {!(string|Uint8Array)}
3240
+ */
3241
+ proto.EthereumMessageSignature.prototype.getAddress = function() {
3242
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3243
+ };
3244
+
3245
+
3246
+ /**
3247
+ * optional bytes address = 1;
3248
+ * This is a type-conversion wrapper around `getAddress()`
3249
+ * @return {string}
3250
+ */
3251
+ proto.EthereumMessageSignature.prototype.getAddress_asB64 = function() {
3252
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3253
+ this.getAddress()));
3254
+ };
3255
+
3256
+
3257
+ /**
3258
+ * optional bytes address = 1;
3259
+ * Note that Uint8Array is not supported on all browsers.
3260
+ * @see http://caniuse.com/Uint8Array
3261
+ * This is a type-conversion wrapper around `getAddress()`
3262
+ * @return {!Uint8Array}
3263
+ */
3264
+ proto.EthereumMessageSignature.prototype.getAddress_asU8 = function() {
3265
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3266
+ this.getAddress()));
3267
+ };
3268
+
3269
+
3270
+ /**
3271
+ * @param {!(string|Uint8Array)} value
3272
+ * @return {!proto.EthereumMessageSignature} returns this
3273
+ */
3274
+ proto.EthereumMessageSignature.prototype.setAddress = function(value) {
3275
+ return jspb.Message.setField(this, 1, value);
3276
+ };
3277
+
3278
+
3279
+ /**
3280
+ * Clears the field making it undefined.
3281
+ * @return {!proto.EthereumMessageSignature} returns this
3282
+ */
3283
+ proto.EthereumMessageSignature.prototype.clearAddress = function() {
3284
+ return jspb.Message.setField(this, 1, undefined);
3285
+ };
3286
+
3287
+
3288
+ /**
3289
+ * Returns whether this field is set.
3290
+ * @return {boolean}
3291
+ */
3292
+ proto.EthereumMessageSignature.prototype.hasAddress = function() {
3293
+ return jspb.Message.getField(this, 1) != null;
3294
+ };
3295
+
3296
+
3297
+ /**
3298
+ * optional bytes signature = 2;
3299
+ * @return {!(string|Uint8Array)}
3300
+ */
3301
+ proto.EthereumMessageSignature.prototype.getSignature = function() {
3302
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3303
+ };
3304
+
3305
+
3306
+ /**
3307
+ * optional bytes signature = 2;
3308
+ * This is a type-conversion wrapper around `getSignature()`
3309
+ * @return {string}
3310
+ */
3311
+ proto.EthereumMessageSignature.prototype.getSignature_asB64 = function() {
3312
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3313
+ this.getSignature()));
3314
+ };
3315
+
3316
+
3317
+ /**
3318
+ * optional bytes signature = 2;
3319
+ * Note that Uint8Array is not supported on all browsers.
3320
+ * @see http://caniuse.com/Uint8Array
3321
+ * This is a type-conversion wrapper around `getSignature()`
3322
+ * @return {!Uint8Array}
3323
+ */
3324
+ proto.EthereumMessageSignature.prototype.getSignature_asU8 = function() {
3325
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3326
+ this.getSignature()));
3327
+ };
3328
+
3329
+
3330
+ /**
3331
+ * @param {!(string|Uint8Array)} value
3332
+ * @return {!proto.EthereumMessageSignature} returns this
3333
+ */
3334
+ proto.EthereumMessageSignature.prototype.setSignature = function(value) {
3335
+ return jspb.Message.setField(this, 2, value);
3336
+ };
3337
+
3338
+
3339
+ /**
3340
+ * Clears the field making it undefined.
3341
+ * @return {!proto.EthereumMessageSignature} returns this
3342
+ */
3343
+ proto.EthereumMessageSignature.prototype.clearSignature = function() {
3344
+ return jspb.Message.setField(this, 2, undefined);
3345
+ };
3346
+
3347
+
3348
+ /**
3349
+ * Returns whether this field is set.
3350
+ * @return {boolean}
3351
+ */
3352
+ proto.EthereumMessageSignature.prototype.hasSignature = function() {
3353
+ return jspb.Message.getField(this, 2) != null;
3354
+ };
3355
+
3356
+
3357
+
3358
+ /**
3359
+ * List of repeated fields within this message type.
3360
+ * @private {!Array<number>}
3361
+ * @const
3362
+ */
3363
+ proto.EthereumSignTypedHash.repeatedFields_ = [1];
3364
+
3365
+
3366
+
3367
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3368
+ /**
3369
+ * Creates an object representation of this proto.
3370
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3371
+ * Optional fields that are not set will be set to undefined.
3372
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3373
+ * For the list of reserved names please see:
3374
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3375
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3376
+ * JSPB instance for transitional soy proto support:
3377
+ * http://goto/soy-param-migration
3378
+ * @return {!Object}
3379
+ */
3380
+ proto.EthereumSignTypedHash.prototype.toObject = function(opt_includeInstance) {
3381
+ return proto.EthereumSignTypedHash.toObject(opt_includeInstance, this);
3382
+ };
3383
+
3384
+
3385
+ /**
3386
+ * Static version of the {@see toObject} method.
3387
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3388
+ * the JSPB instance for transitional soy proto support:
3389
+ * http://goto/soy-param-migration
3390
+ * @param {!proto.EthereumSignTypedHash} msg The msg instance to transform.
3391
+ * @return {!Object}
3392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3393
+ */
3394
+ proto.EthereumSignTypedHash.toObject = function(includeInstance, msg) {
3395
+ var f, obj = {
3396
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3397
+ domainSeparatorHash: msg.getDomainSeparatorHash_asB64(),
3398
+ messageHash: msg.getMessageHash_asB64()
3399
+ };
3400
+
3401
+ if (includeInstance) {
3402
+ obj.$jspbMessageInstance = msg;
3403
+ }
3404
+ return obj;
3405
+ };
3406
+ }
3407
+
3408
+
3409
+ /**
3410
+ * Deserializes binary data (in protobuf wire format).
3411
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3412
+ * @return {!proto.EthereumSignTypedHash}
3413
+ */
3414
+ proto.EthereumSignTypedHash.deserializeBinary = function(bytes) {
3415
+ var reader = new jspb.BinaryReader(bytes);
3416
+ var msg = new proto.EthereumSignTypedHash;
3417
+ return proto.EthereumSignTypedHash.deserializeBinaryFromReader(msg, reader);
3418
+ };
3419
+
3420
+
3421
+ /**
3422
+ * Deserializes binary data (in protobuf wire format) from the
3423
+ * given reader into the given message object.
3424
+ * @param {!proto.EthereumSignTypedHash} msg The message object to deserialize into.
3425
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3426
+ * @return {!proto.EthereumSignTypedHash}
3427
+ */
3428
+ proto.EthereumSignTypedHash.deserializeBinaryFromReader = function(msg, reader) {
3429
+ while (reader.nextField()) {
3430
+ if (reader.isEndGroup()) {
3431
+ break;
3432
+ }
3433
+ var field = reader.getFieldNumber();
3434
+ switch (field) {
3435
+ case 1:
3436
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
3437
+ for (var i = 0; i < values.length; i++) {
3438
+ msg.addAddressN(values[i]);
3439
+ }
3440
+ break;
3441
+ case 2:
3442
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3443
+ msg.setDomainSeparatorHash(value);
3444
+ break;
3445
+ case 3:
3446
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3447
+ msg.setMessageHash(value);
3448
+ break;
3449
+ default:
3450
+ reader.skipField();
3451
+ break;
3452
+ }
3453
+ }
3454
+ return msg;
3455
+ };
3456
+
3457
+
3458
+ /**
3459
+ * Serializes the message to binary data (in protobuf wire format).
3460
+ * @return {!Uint8Array}
3461
+ */
3462
+ proto.EthereumSignTypedHash.prototype.serializeBinary = function() {
3463
+ var writer = new jspb.BinaryWriter();
3464
+ proto.EthereumSignTypedHash.serializeBinaryToWriter(this, writer);
3465
+ return writer.getResultBuffer();
3466
+ };
3467
+
3468
+
3469
+ /**
3470
+ * Serializes the given message to binary data (in protobuf wire
3471
+ * format), writing to the given BinaryWriter.
3472
+ * @param {!proto.EthereumSignTypedHash} message
3473
+ * @param {!jspb.BinaryWriter} writer
3474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3475
+ */
3476
+ proto.EthereumSignTypedHash.serializeBinaryToWriter = function(message, writer) {
3477
+ var f = undefined;
3478
+ f = message.getAddressNList();
3479
+ if (f.length > 0) {
3480
+ writer.writeRepeatedUint32(
3481
+ 1,
3482
+ f
3483
+ );
3484
+ }
3485
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
3486
+ if (f != null) {
3487
+ writer.writeBytes(
3488
+ 2,
3489
+ f
3490
+ );
3491
+ }
3492
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
3493
+ if (f != null) {
3494
+ writer.writeBytes(
3495
+ 3,
3496
+ f
3497
+ );
3498
+ }
3499
+ };
3500
+
3501
+
3502
+ /**
3503
+ * repeated uint32 address_n = 1;
3504
+ * @return {!Array<number>}
3505
+ */
3506
+ proto.EthereumSignTypedHash.prototype.getAddressNList = function() {
3507
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
3508
+ };
3509
+
3510
+
3511
+ /**
3512
+ * @param {!Array<number>} value
3513
+ * @return {!proto.EthereumSignTypedHash} returns this
3514
+ */
3515
+ proto.EthereumSignTypedHash.prototype.setAddressNList = function(value) {
3516
+ return jspb.Message.setField(this, 1, value || []);
3517
+ };
3518
+
3519
+
3520
+ /**
3521
+ * @param {number} value
3522
+ * @param {number=} opt_index
3523
+ * @return {!proto.EthereumSignTypedHash} returns this
3524
+ */
3525
+ proto.EthereumSignTypedHash.prototype.addAddressN = function(value, opt_index) {
3526
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3527
+ };
3528
+
3529
+
3530
+ /**
3531
+ * Clears the list making it empty but non-null.
3532
+ * @return {!proto.EthereumSignTypedHash} returns this
3533
+ */
3534
+ proto.EthereumSignTypedHash.prototype.clearAddressNList = function() {
3535
+ return this.setAddressNList([]);
3536
+ };
3537
+
3538
+
3539
+ /**
3540
+ * required bytes domain_separator_hash = 2;
3541
+ * @return {!(string|Uint8Array)}
3542
+ */
3543
+ proto.EthereumSignTypedHash.prototype.getDomainSeparatorHash = function() {
3544
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3545
+ };
3546
+
3547
+
3548
+ /**
3549
+ * required bytes domain_separator_hash = 2;
3550
+ * This is a type-conversion wrapper around `getDomainSeparatorHash()`
3551
+ * @return {string}
3552
+ */
3553
+ proto.EthereumSignTypedHash.prototype.getDomainSeparatorHash_asB64 = function() {
3554
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3555
+ this.getDomainSeparatorHash()));
3556
+ };
3557
+
3558
+
3559
+ /**
3560
+ * required bytes domain_separator_hash = 2;
3561
+ * Note that Uint8Array is not supported on all browsers.
3562
+ * @see http://caniuse.com/Uint8Array
3563
+ * This is a type-conversion wrapper around `getDomainSeparatorHash()`
3564
+ * @return {!Uint8Array}
3565
+ */
3566
+ proto.EthereumSignTypedHash.prototype.getDomainSeparatorHash_asU8 = function() {
3567
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3568
+ this.getDomainSeparatorHash()));
3569
+ };
3570
+
3571
+
3572
+ /**
3573
+ * @param {!(string|Uint8Array)} value
3574
+ * @return {!proto.EthereumSignTypedHash} returns this
3575
+ */
3576
+ proto.EthereumSignTypedHash.prototype.setDomainSeparatorHash = function(value) {
3577
+ return jspb.Message.setField(this, 2, value);
3578
+ };
3579
+
3580
+
3581
+ /**
3582
+ * Clears the field making it undefined.
3583
+ * @return {!proto.EthereumSignTypedHash} returns this
3584
+ */
3585
+ proto.EthereumSignTypedHash.prototype.clearDomainSeparatorHash = function() {
3586
+ return jspb.Message.setField(this, 2, undefined);
3587
+ };
3588
+
3589
+
3590
+ /**
3591
+ * Returns whether this field is set.
3592
+ * @return {boolean}
3593
+ */
3594
+ proto.EthereumSignTypedHash.prototype.hasDomainSeparatorHash = function() {
3595
+ return jspb.Message.getField(this, 2) != null;
3596
+ };
3597
+
3598
+
3599
+ /**
3600
+ * optional bytes message_hash = 3;
3601
+ * @return {!(string|Uint8Array)}
3602
+ */
3603
+ proto.EthereumSignTypedHash.prototype.getMessageHash = function() {
3604
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3605
+ };
3606
+
3607
+
3608
+ /**
3609
+ * optional bytes message_hash = 3;
3610
+ * This is a type-conversion wrapper around `getMessageHash()`
3611
+ * @return {string}
3612
+ */
3613
+ proto.EthereumSignTypedHash.prototype.getMessageHash_asB64 = function() {
3614
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3615
+ this.getMessageHash()));
3616
+ };
3617
+
3618
+
3619
+ /**
3620
+ * optional bytes message_hash = 3;
3621
+ * Note that Uint8Array is not supported on all browsers.
3622
+ * @see http://caniuse.com/Uint8Array
3623
+ * This is a type-conversion wrapper around `getMessageHash()`
3624
+ * @return {!Uint8Array}
3625
+ */
3626
+ proto.EthereumSignTypedHash.prototype.getMessageHash_asU8 = function() {
3627
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3628
+ this.getMessageHash()));
3629
+ };
3630
+
3631
+
3632
+ /**
3633
+ * @param {!(string|Uint8Array)} value
3634
+ * @return {!proto.EthereumSignTypedHash} returns this
3635
+ */
3636
+ proto.EthereumSignTypedHash.prototype.setMessageHash = function(value) {
3637
+ return jspb.Message.setField(this, 3, value);
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * Clears the field making it undefined.
3643
+ * @return {!proto.EthereumSignTypedHash} returns this
3644
+ */
3645
+ proto.EthereumSignTypedHash.prototype.clearMessageHash = function() {
3646
+ return jspb.Message.setField(this, 3, undefined);
3647
+ };
3648
+
3649
+
3650
+ /**
3651
+ * Returns whether this field is set.
3652
+ * @return {boolean}
3653
+ */
3654
+ proto.EthereumSignTypedHash.prototype.hasMessageHash = function() {
3655
+ return jspb.Message.getField(this, 3) != null;
3656
+ };
3657
+
3658
+
3659
+
3660
+
3661
+
3662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3663
+ /**
3664
+ * Creates an object representation of this proto.
3665
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3666
+ * Optional fields that are not set will be set to undefined.
3667
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3668
+ * For the list of reserved names please see:
3669
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3670
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3671
+ * JSPB instance for transitional soy proto support:
3672
+ * http://goto/soy-param-migration
3673
+ * @return {!Object}
3674
+ */
3675
+ proto.EthereumTypedDataSignature.prototype.toObject = function(opt_includeInstance) {
3676
+ return proto.EthereumTypedDataSignature.toObject(opt_includeInstance, this);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Static version of the {@see toObject} method.
3682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3683
+ * the JSPB instance for transitional soy proto support:
3684
+ * http://goto/soy-param-migration
3685
+ * @param {!proto.EthereumTypedDataSignature} msg The msg instance to transform.
3686
+ * @return {!Object}
3687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3688
+ */
3689
+ proto.EthereumTypedDataSignature.toObject = function(includeInstance, msg) {
3690
+ var f, obj = {
3691
+ signature: msg.getSignature_asB64(),
3692
+ address: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
3693
+ domainSeparatorHash: msg.getDomainSeparatorHash_asB64(),
3694
+ hasMsgHash: (f = jspb.Message.getBooleanField(msg, 4)) == null ? undefined : f,
3695
+ messageHash: msg.getMessageHash_asB64()
3696
+ };
3697
+
3698
+ if (includeInstance) {
3699
+ obj.$jspbMessageInstance = msg;
3700
+ }
3701
+ return obj;
3702
+ };
3703
+ }
3704
+
3705
+
3706
+ /**
3707
+ * Deserializes binary data (in protobuf wire format).
3708
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3709
+ * @return {!proto.EthereumTypedDataSignature}
3710
+ */
3711
+ proto.EthereumTypedDataSignature.deserializeBinary = function(bytes) {
3712
+ var reader = new jspb.BinaryReader(bytes);
3713
+ var msg = new proto.EthereumTypedDataSignature;
3714
+ return proto.EthereumTypedDataSignature.deserializeBinaryFromReader(msg, reader);
3715
+ };
3716
+
3717
+
3718
+ /**
3719
+ * Deserializes binary data (in protobuf wire format) from the
3720
+ * given reader into the given message object.
3721
+ * @param {!proto.EthereumTypedDataSignature} msg The message object to deserialize into.
3722
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3723
+ * @return {!proto.EthereumTypedDataSignature}
3724
+ */
3725
+ proto.EthereumTypedDataSignature.deserializeBinaryFromReader = function(msg, reader) {
3726
+ while (reader.nextField()) {
3727
+ if (reader.isEndGroup()) {
3728
+ break;
3729
+ }
3730
+ var field = reader.getFieldNumber();
3731
+ switch (field) {
3732
+ case 1:
3733
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3734
+ msg.setSignature(value);
3735
+ break;
3736
+ case 2:
3737
+ var value = /** @type {string} */ (reader.readString());
3738
+ msg.setAddress(value);
3739
+ break;
3740
+ case 3:
3741
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3742
+ msg.setDomainSeparatorHash(value);
3743
+ break;
3744
+ case 4:
3745
+ var value = /** @type {boolean} */ (reader.readBool());
3746
+ msg.setHasMsgHash(value);
3747
+ break;
3748
+ case 5:
3749
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3750
+ msg.setMessageHash(value);
3751
+ break;
3752
+ default:
3753
+ reader.skipField();
3754
+ break;
3755
+ }
3756
+ }
3757
+ return msg;
3758
+ };
3759
+
3760
+
3761
+ /**
3762
+ * Serializes the message to binary data (in protobuf wire format).
3763
+ * @return {!Uint8Array}
3764
+ */
3765
+ proto.EthereumTypedDataSignature.prototype.serializeBinary = function() {
3766
+ var writer = new jspb.BinaryWriter();
3767
+ proto.EthereumTypedDataSignature.serializeBinaryToWriter(this, writer);
3768
+ return writer.getResultBuffer();
3769
+ };
3770
+
3771
+
3772
+ /**
3773
+ * Serializes the given message to binary data (in protobuf wire
3774
+ * format), writing to the given BinaryWriter.
3775
+ * @param {!proto.EthereumTypedDataSignature} message
3776
+ * @param {!jspb.BinaryWriter} writer
3777
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3778
+ */
3779
+ proto.EthereumTypedDataSignature.serializeBinaryToWriter = function(message, writer) {
3780
+ var f = undefined;
3781
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
3782
+ if (f != null) {
3783
+ writer.writeBytes(
3784
+ 1,
3785
+ f
3786
+ );
3787
+ }
3788
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3789
+ if (f != null) {
3790
+ writer.writeString(
3791
+ 2,
3792
+ f
3793
+ );
3794
+ }
3795
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
3796
+ if (f != null) {
3797
+ writer.writeBytes(
3798
+ 3,
3799
+ f
3800
+ );
3801
+ }
3802
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
3803
+ if (f != null) {
3804
+ writer.writeBool(
3805
+ 4,
3806
+ f
3807
+ );
3808
+ }
3809
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 5));
3810
+ if (f != null) {
3811
+ writer.writeBytes(
3812
+ 5,
3813
+ f
3814
+ );
3815
+ }
3816
+ };
3817
+
3818
+
3819
+ /**
3820
+ * required bytes signature = 1;
3821
+ * @return {!(string|Uint8Array)}
3822
+ */
3823
+ proto.EthereumTypedDataSignature.prototype.getSignature = function() {
3824
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3825
+ };
3826
+
3827
+
3828
+ /**
3829
+ * required bytes signature = 1;
3830
+ * This is a type-conversion wrapper around `getSignature()`
3831
+ * @return {string}
3832
+ */
3833
+ proto.EthereumTypedDataSignature.prototype.getSignature_asB64 = function() {
3834
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3835
+ this.getSignature()));
3836
+ };
3837
+
3838
+
3839
+ /**
3840
+ * required bytes signature = 1;
3841
+ * Note that Uint8Array is not supported on all browsers.
3842
+ * @see http://caniuse.com/Uint8Array
3843
+ * This is a type-conversion wrapper around `getSignature()`
3844
+ * @return {!Uint8Array}
3845
+ */
3846
+ proto.EthereumTypedDataSignature.prototype.getSignature_asU8 = function() {
3847
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3848
+ this.getSignature()));
3849
+ };
3850
+
3851
+
3852
+ /**
3853
+ * @param {!(string|Uint8Array)} value
3854
+ * @return {!proto.EthereumTypedDataSignature} returns this
3855
+ */
3856
+ proto.EthereumTypedDataSignature.prototype.setSignature = function(value) {
3857
+ return jspb.Message.setField(this, 1, value);
3858
+ };
3859
+
3860
+
3861
+ /**
3862
+ * Clears the field making it undefined.
3863
+ * @return {!proto.EthereumTypedDataSignature} returns this
3864
+ */
3865
+ proto.EthereumTypedDataSignature.prototype.clearSignature = function() {
3866
+ return jspb.Message.setField(this, 1, undefined);
3867
+ };
3868
+
3869
+
3870
+ /**
3871
+ * Returns whether this field is set.
3872
+ * @return {boolean}
3873
+ */
3874
+ proto.EthereumTypedDataSignature.prototype.hasSignature = function() {
3875
+ return jspb.Message.getField(this, 1) != null;
3876
+ };
3877
+
3878
+
3879
+ /**
3880
+ * required string address = 2;
3881
+ * @return {string}
3882
+ */
3883
+ proto.EthereumTypedDataSignature.prototype.getAddress = function() {
3884
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3885
+ };
3886
+
3887
+
3888
+ /**
3889
+ * @param {string} value
3890
+ * @return {!proto.EthereumTypedDataSignature} returns this
3891
+ */
3892
+ proto.EthereumTypedDataSignature.prototype.setAddress = function(value) {
3893
+ return jspb.Message.setField(this, 2, value);
3894
+ };
3895
+
3896
+
3897
+ /**
3898
+ * Clears the field making it undefined.
3899
+ * @return {!proto.EthereumTypedDataSignature} returns this
3900
+ */
3901
+ proto.EthereumTypedDataSignature.prototype.clearAddress = function() {
3902
+ return jspb.Message.setField(this, 2, undefined);
3903
+ };
3904
+
3905
+
3906
+ /**
3907
+ * Returns whether this field is set.
3908
+ * @return {boolean}
3909
+ */
3910
+ proto.EthereumTypedDataSignature.prototype.hasAddress = function() {
3911
+ return jspb.Message.getField(this, 2) != null;
3912
+ };
3913
+
3914
+
3915
+ /**
3916
+ * optional bytes domain_separator_hash = 3;
3917
+ * @return {!(string|Uint8Array)}
3918
+ */
3919
+ proto.EthereumTypedDataSignature.prototype.getDomainSeparatorHash = function() {
3920
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3921
+ };
3922
+
3923
+
3924
+ /**
3925
+ * optional bytes domain_separator_hash = 3;
3926
+ * This is a type-conversion wrapper around `getDomainSeparatorHash()`
3927
+ * @return {string}
3928
+ */
3929
+ proto.EthereumTypedDataSignature.prototype.getDomainSeparatorHash_asB64 = function() {
3930
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3931
+ this.getDomainSeparatorHash()));
3932
+ };
3933
+
3934
+
3935
+ /**
3936
+ * optional bytes domain_separator_hash = 3;
3937
+ * Note that Uint8Array is not supported on all browsers.
3938
+ * @see http://caniuse.com/Uint8Array
3939
+ * This is a type-conversion wrapper around `getDomainSeparatorHash()`
3940
+ * @return {!Uint8Array}
3941
+ */
3942
+ proto.EthereumTypedDataSignature.prototype.getDomainSeparatorHash_asU8 = function() {
3943
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3944
+ this.getDomainSeparatorHash()));
3945
+ };
3946
+
3947
+
3948
+ /**
3949
+ * @param {!(string|Uint8Array)} value
3950
+ * @return {!proto.EthereumTypedDataSignature} returns this
3951
+ */
3952
+ proto.EthereumTypedDataSignature.prototype.setDomainSeparatorHash = function(value) {
3953
+ return jspb.Message.setField(this, 3, value);
3954
+ };
3955
+
3956
+
3957
+ /**
3958
+ * Clears the field making it undefined.
3959
+ * @return {!proto.EthereumTypedDataSignature} returns this
3960
+ */
3961
+ proto.EthereumTypedDataSignature.prototype.clearDomainSeparatorHash = function() {
3962
+ return jspb.Message.setField(this, 3, undefined);
3963
+ };
3964
+
3965
+
3966
+ /**
3967
+ * Returns whether this field is set.
3968
+ * @return {boolean}
3969
+ */
3970
+ proto.EthereumTypedDataSignature.prototype.hasDomainSeparatorHash = function() {
3971
+ return jspb.Message.getField(this, 3) != null;
3972
+ };
3973
+
3974
+
3975
+ /**
3976
+ * required bool has_msg_hash = 4;
3977
+ * @return {boolean}
3978
+ */
3979
+ proto.EthereumTypedDataSignature.prototype.getHasMsgHash = function() {
3980
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
3981
+ };
3982
+
3983
+
3984
+ /**
3985
+ * @param {boolean} value
3986
+ * @return {!proto.EthereumTypedDataSignature} returns this
3987
+ */
3988
+ proto.EthereumTypedDataSignature.prototype.setHasMsgHash = function(value) {
3989
+ return jspb.Message.setField(this, 4, value);
3990
+ };
3991
+
3992
+
3993
+ /**
3994
+ * Clears the field making it undefined.
3995
+ * @return {!proto.EthereumTypedDataSignature} returns this
3996
+ */
3997
+ proto.EthereumTypedDataSignature.prototype.clearHasMsgHash = function() {
3998
+ return jspb.Message.setField(this, 4, undefined);
3999
+ };
4000
+
4001
+
4002
+ /**
4003
+ * Returns whether this field is set.
4004
+ * @return {boolean}
4005
+ */
4006
+ proto.EthereumTypedDataSignature.prototype.hasHasMsgHash = function() {
4007
+ return jspb.Message.getField(this, 4) != null;
4008
+ };
4009
+
4010
+
4011
+ /**
4012
+ * optional bytes message_hash = 5;
4013
+ * @return {!(string|Uint8Array)}
4014
+ */
4015
+ proto.EthereumTypedDataSignature.prototype.getMessageHash = function() {
4016
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4017
+ };
4018
+
4019
+
4020
+ /**
4021
+ * optional bytes message_hash = 5;
4022
+ * This is a type-conversion wrapper around `getMessageHash()`
4023
+ * @return {string}
4024
+ */
4025
+ proto.EthereumTypedDataSignature.prototype.getMessageHash_asB64 = function() {
4026
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
4027
+ this.getMessageHash()));
4028
+ };
4029
+
4030
+
4031
+ /**
4032
+ * optional bytes message_hash = 5;
4033
+ * Note that Uint8Array is not supported on all browsers.
4034
+ * @see http://caniuse.com/Uint8Array
4035
+ * This is a type-conversion wrapper around `getMessageHash()`
4036
+ * @return {!Uint8Array}
4037
+ */
4038
+ proto.EthereumTypedDataSignature.prototype.getMessageHash_asU8 = function() {
4039
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
4040
+ this.getMessageHash()));
4041
+ };
4042
+
4043
+
4044
+ /**
4045
+ * @param {!(string|Uint8Array)} value
4046
+ * @return {!proto.EthereumTypedDataSignature} returns this
4047
+ */
4048
+ proto.EthereumTypedDataSignature.prototype.setMessageHash = function(value) {
4049
+ return jspb.Message.setField(this, 5, value);
4050
+ };
4051
+
4052
+
4053
+ /**
4054
+ * Clears the field making it undefined.
4055
+ * @return {!proto.EthereumTypedDataSignature} returns this
4056
+ */
4057
+ proto.EthereumTypedDataSignature.prototype.clearMessageHash = function() {
4058
+ return jspb.Message.setField(this, 5, undefined);
4059
+ };
4060
+
4061
+
4062
+ /**
4063
+ * Returns whether this field is set.
4064
+ * @return {boolean}
4065
+ */
4066
+ proto.EthereumTypedDataSignature.prototype.hasMessageHash = function() {
4067
+ return jspb.Message.getField(this, 5) != null;
4068
+ };
4069
+
4070
+
4071
+
4072
+ /**
4073
+ * List of repeated fields within this message type.
4074
+ * @private {!Array<number>}
4075
+ * @const
4076
+ */
4077
+ proto.Ethereum712TypesValues.repeatedFields_ = [1];
4078
+
4079
+
4080
+
4081
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4082
+ /**
4083
+ * Creates an object representation of this proto.
4084
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4085
+ * Optional fields that are not set will be set to undefined.
4086
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4087
+ * For the list of reserved names please see:
4088
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4089
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4090
+ * JSPB instance for transitional soy proto support:
4091
+ * http://goto/soy-param-migration
4092
+ * @return {!Object}
4093
+ */
4094
+ proto.Ethereum712TypesValues.prototype.toObject = function(opt_includeInstance) {
4095
+ return proto.Ethereum712TypesValues.toObject(opt_includeInstance, this);
4096
+ };
4097
+
4098
+
4099
+ /**
4100
+ * Static version of the {@see toObject} method.
4101
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4102
+ * the JSPB instance for transitional soy proto support:
4103
+ * http://goto/soy-param-migration
4104
+ * @param {!proto.Ethereum712TypesValues} msg The msg instance to transform.
4105
+ * @return {!Object}
4106
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4107
+ */
4108
+ proto.Ethereum712TypesValues.toObject = function(includeInstance, msg) {
4109
+ var f, obj = {
4110
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
4111
+ eip712types: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
4112
+ eip712primetype: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
4113
+ eip712data: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
4114
+ eip712typevals: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f
4115
+ };
4116
+
4117
+ if (includeInstance) {
4118
+ obj.$jspbMessageInstance = msg;
4119
+ }
4120
+ return obj;
4121
+ };
4122
+ }
4123
+
4124
+
4125
+ /**
4126
+ * Deserializes binary data (in protobuf wire format).
4127
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4128
+ * @return {!proto.Ethereum712TypesValues}
4129
+ */
4130
+ proto.Ethereum712TypesValues.deserializeBinary = function(bytes) {
4131
+ var reader = new jspb.BinaryReader(bytes);
4132
+ var msg = new proto.Ethereum712TypesValues;
4133
+ return proto.Ethereum712TypesValues.deserializeBinaryFromReader(msg, reader);
4134
+ };
4135
+
4136
+
4137
+ /**
4138
+ * Deserializes binary data (in protobuf wire format) from the
4139
+ * given reader into the given message object.
4140
+ * @param {!proto.Ethereum712TypesValues} msg The message object to deserialize into.
4141
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4142
+ * @return {!proto.Ethereum712TypesValues}
4143
+ */
4144
+ proto.Ethereum712TypesValues.deserializeBinaryFromReader = function(msg, reader) {
4145
+ while (reader.nextField()) {
4146
+ if (reader.isEndGroup()) {
4147
+ break;
4148
+ }
4149
+ var field = reader.getFieldNumber();
4150
+ switch (field) {
4151
+ case 1:
4152
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
4153
+ for (var i = 0; i < values.length; i++) {
4154
+ msg.addAddressN(values[i]);
4155
+ }
4156
+ break;
4157
+ case 2:
4158
+ var value = /** @type {string} */ (reader.readString());
4159
+ msg.setEip712types(value);
4160
+ break;
4161
+ case 3:
4162
+ var value = /** @type {string} */ (reader.readString());
4163
+ msg.setEip712primetype(value);
4164
+ break;
4165
+ case 4:
4166
+ var value = /** @type {string} */ (reader.readString());
4167
+ msg.setEip712data(value);
4168
+ break;
4169
+ case 5:
4170
+ var value = /** @type {number} */ (reader.readUint32());
4171
+ msg.setEip712typevals(value);
4172
+ break;
4173
+ default:
4174
+ reader.skipField();
4175
+ break;
4176
+ }
4177
+ }
4178
+ return msg;
4179
+ };
4180
+
4181
+
4182
+ /**
4183
+ * Serializes the message to binary data (in protobuf wire format).
4184
+ * @return {!Uint8Array}
4185
+ */
4186
+ proto.Ethereum712TypesValues.prototype.serializeBinary = function() {
4187
+ var writer = new jspb.BinaryWriter();
4188
+ proto.Ethereum712TypesValues.serializeBinaryToWriter(this, writer);
4189
+ return writer.getResultBuffer();
4190
+ };
4191
+
4192
+
4193
+ /**
4194
+ * Serializes the given message to binary data (in protobuf wire
4195
+ * format), writing to the given BinaryWriter.
4196
+ * @param {!proto.Ethereum712TypesValues} message
4197
+ * @param {!jspb.BinaryWriter} writer
4198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4199
+ */
4200
+ proto.Ethereum712TypesValues.serializeBinaryToWriter = function(message, writer) {
4201
+ var f = undefined;
4202
+ f = message.getAddressNList();
4203
+ if (f.length > 0) {
4204
+ writer.writeRepeatedUint32(
4205
+ 1,
4206
+ f
4207
+ );
4208
+ }
4209
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
4210
+ if (f != null) {
4211
+ writer.writeString(
4212
+ 2,
4213
+ f
4214
+ );
4215
+ }
4216
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
4217
+ if (f != null) {
4218
+ writer.writeString(
4219
+ 3,
4220
+ f
4221
+ );
4222
+ }
4223
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
4224
+ if (f != null) {
4225
+ writer.writeString(
4226
+ 4,
4227
+ f
4228
+ );
4229
+ }
4230
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
4231
+ if (f != null) {
4232
+ writer.writeUint32(
4233
+ 5,
4234
+ f
4235
+ );
4236
+ }
4237
+ };
4238
+
4239
+
4240
+ /**
4241
+ * repeated uint32 address_n = 1;
4242
+ * @return {!Array<number>}
4243
+ */
4244
+ proto.Ethereum712TypesValues.prototype.getAddressNList = function() {
4245
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
4246
+ };
4247
+
4248
+
4249
+ /**
4250
+ * @param {!Array<number>} value
4251
+ * @return {!proto.Ethereum712TypesValues} returns this
4252
+ */
4253
+ proto.Ethereum712TypesValues.prototype.setAddressNList = function(value) {
4254
+ return jspb.Message.setField(this, 1, value || []);
4255
+ };
4256
+
4257
+
4258
+ /**
4259
+ * @param {number} value
4260
+ * @param {number=} opt_index
4261
+ * @return {!proto.Ethereum712TypesValues} returns this
4262
+ */
4263
+ proto.Ethereum712TypesValues.prototype.addAddressN = function(value, opt_index) {
4264
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4265
+ };
4266
+
4267
+
4268
+ /**
4269
+ * Clears the list making it empty but non-null.
4270
+ * @return {!proto.Ethereum712TypesValues} returns this
4271
+ */
4272
+ proto.Ethereum712TypesValues.prototype.clearAddressNList = function() {
4273
+ return this.setAddressNList([]);
4274
+ };
4275
+
4276
+
4277
+ /**
4278
+ * required string eip712types = 2;
4279
+ * @return {string}
4280
+ */
4281
+ proto.Ethereum712TypesValues.prototype.getEip712types = function() {
4282
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4283
+ };
4284
+
4285
+
4286
+ /**
4287
+ * @param {string} value
4288
+ * @return {!proto.Ethereum712TypesValues} returns this
4289
+ */
4290
+ proto.Ethereum712TypesValues.prototype.setEip712types = function(value) {
4291
+ return jspb.Message.setField(this, 2, value);
4292
+ };
4293
+
4294
+
4295
+ /**
4296
+ * Clears the field making it undefined.
4297
+ * @return {!proto.Ethereum712TypesValues} returns this
4298
+ */
4299
+ proto.Ethereum712TypesValues.prototype.clearEip712types = function() {
4300
+ return jspb.Message.setField(this, 2, undefined);
4301
+ };
4302
+
4303
+
4304
+ /**
4305
+ * Returns whether this field is set.
4306
+ * @return {boolean}
4307
+ */
4308
+ proto.Ethereum712TypesValues.prototype.hasEip712types = function() {
4309
+ return jspb.Message.getField(this, 2) != null;
4310
+ };
4311
+
4312
+
4313
+ /**
4314
+ * required string eip712primetype = 3;
4315
+ * @return {string}
4316
+ */
4317
+ proto.Ethereum712TypesValues.prototype.getEip712primetype = function() {
4318
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4319
+ };
4320
+
4321
+
4322
+ /**
4323
+ * @param {string} value
4324
+ * @return {!proto.Ethereum712TypesValues} returns this
4325
+ */
4326
+ proto.Ethereum712TypesValues.prototype.setEip712primetype = function(value) {
4327
+ return jspb.Message.setField(this, 3, value);
4328
+ };
4329
+
4330
+
4331
+ /**
4332
+ * Clears the field making it undefined.
4333
+ * @return {!proto.Ethereum712TypesValues} returns this
4334
+ */
4335
+ proto.Ethereum712TypesValues.prototype.clearEip712primetype = function() {
4336
+ return jspb.Message.setField(this, 3, undefined);
4337
+ };
4338
+
4339
+
4340
+ /**
4341
+ * Returns whether this field is set.
4342
+ * @return {boolean}
4343
+ */
4344
+ proto.Ethereum712TypesValues.prototype.hasEip712primetype = function() {
4345
+ return jspb.Message.getField(this, 3) != null;
4346
+ };
4347
+
4348
+
4349
+ /**
4350
+ * required string eip712data = 4;
4351
+ * @return {string}
4352
+ */
4353
+ proto.Ethereum712TypesValues.prototype.getEip712data = function() {
4354
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4355
+ };
4356
+
4357
+
4358
+ /**
4359
+ * @param {string} value
4360
+ * @return {!proto.Ethereum712TypesValues} returns this
4361
+ */
4362
+ proto.Ethereum712TypesValues.prototype.setEip712data = function(value) {
4363
+ return jspb.Message.setField(this, 4, value);
4364
+ };
4365
+
4366
+
4367
+ /**
4368
+ * Clears the field making it undefined.
4369
+ * @return {!proto.Ethereum712TypesValues} returns this
4370
+ */
4371
+ proto.Ethereum712TypesValues.prototype.clearEip712data = function() {
4372
+ return jspb.Message.setField(this, 4, undefined);
4373
+ };
4374
+
4375
+
4376
+ /**
4377
+ * Returns whether this field is set.
4378
+ * @return {boolean}
4379
+ */
4380
+ proto.Ethereum712TypesValues.prototype.hasEip712data = function() {
4381
+ return jspb.Message.getField(this, 4) != null;
4382
+ };
4383
+
4384
+
4385
+ /**
4386
+ * required uint32 eip712typevals = 5;
4387
+ * @return {number}
4388
+ */
4389
+ proto.Ethereum712TypesValues.prototype.getEip712typevals = function() {
4390
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4391
+ };
4392
+
4393
+
4394
+ /**
4395
+ * @param {number} value
4396
+ * @return {!proto.Ethereum712TypesValues} returns this
4397
+ */
4398
+ proto.Ethereum712TypesValues.prototype.setEip712typevals = function(value) {
4399
+ return jspb.Message.setField(this, 5, value);
4400
+ };
4401
+
4402
+
4403
+ /**
4404
+ * Clears the field making it undefined.
4405
+ * @return {!proto.Ethereum712TypesValues} returns this
4406
+ */
4407
+ proto.Ethereum712TypesValues.prototype.clearEip712typevals = function() {
4408
+ return jspb.Message.setField(this, 5, undefined);
4409
+ };
4410
+
4411
+
4412
+ /**
4413
+ * Returns whether this field is set.
4414
+ * @return {boolean}
4415
+ */
4416
+ proto.Ethereum712TypesValues.prototype.hasEip712typevals = function() {
4417
+ return jspb.Message.getField(this, 5) != null;
4418
+ };
4419
+
4420
+
4421
+ goog.object.extend(exports, proto);