@miradorlabs/web-grpc 1.0.0

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