@dfinity/nns 0.1.6 → 0.2.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 (74) hide show
  1. package/README.md +10 -11
  2. package/dist/cjs/index.cjs.js +869 -0
  3. package/dist/cjs/index.cjs.js.map +7 -0
  4. package/dist/esm/account_identifier.js +2 -0
  5. package/dist/esm/account_identifier.js.map +7 -0
  6. package/dist/esm/chunk-4FZAJTYF.js +2 -0
  7. package/dist/esm/chunk-4FZAJTYF.js.map +7 -0
  8. package/dist/esm/chunk-AM5HOKAH.js +2 -0
  9. package/dist/esm/chunk-AM5HOKAH.js.map +7 -0
  10. package/dist/esm/chunk-FVDRR6PO.js +17 -0
  11. package/dist/esm/chunk-FVDRR6PO.js.map +7 -0
  12. package/dist/esm/chunk-HFWTAZD7.js +825 -0
  13. package/dist/esm/chunk-HFWTAZD7.js.map +7 -0
  14. package/dist/esm/chunk-IQ5S76MI.js +4 -0
  15. package/dist/esm/chunk-IQ5S76MI.js.map +7 -0
  16. package/dist/esm/chunk-LNMGZ6W7.js +3 -0
  17. package/dist/esm/chunk-LNMGZ6W7.js.map +7 -0
  18. package/dist/esm/chunk-NYI672WX.js +14 -0
  19. package/dist/esm/chunk-NYI672WX.js.map +7 -0
  20. package/dist/esm/chunk-SO23SIWX.js +3 -0
  21. package/dist/esm/chunk-SO23SIWX.js.map +7 -0
  22. package/dist/esm/chunk-X2SHUWG3.js +2 -0
  23. package/dist/esm/chunk-X2SHUWG3.js.map +7 -0
  24. package/dist/esm/governance.js +2 -0
  25. package/dist/esm/governance.js.map +7 -0
  26. package/dist/esm/icp.js +2 -0
  27. package/dist/esm/icp.js.map +7 -0
  28. package/dist/esm/index.js +2 -0
  29. package/dist/esm/index.js.map +7 -0
  30. package/dist/esm/ledger.js +2 -0
  31. package/dist/esm/ledger.js.map +7 -0
  32. package/dist/index.cjs.js +1 -0
  33. package/dist/index.js +1 -12
  34. package/dist/{account_identifier.d.ts → types/account_identifier.d.ts} +5 -2
  35. package/dist/types/canisters/governance/payloads.d.ts +3 -0
  36. package/dist/types/canisters/governance/request.converters.d.ts +26 -0
  37. package/dist/types/canisters/governance/response.converters.d.ts +35 -0
  38. package/dist/types/constants/canister_ids.d.ts +4 -0
  39. package/dist/types/constants/constants.d.ts +5 -0
  40. package/dist/types/governance.d.ts +29 -0
  41. package/dist/{icp.d.ts → types/icp.d.ts} +2 -5
  42. package/dist/types/index.d.ts +8 -0
  43. package/dist/types/ledger.d.ts +33 -0
  44. package/dist/types/types/common.d.ts +8 -0
  45. package/dist/types/types/governance.d.ts +9 -0
  46. package/dist/types/types/governance_converters.d.ts +532 -0
  47. package/dist/types/types/icp.d.ts +4 -0
  48. package/dist/types/types/ledger.d.ts +30 -0
  49. package/dist/types/types/option.d.ts +1 -0
  50. package/dist/types/utils/agent.utils.d.ts +5 -0
  51. package/dist/types/utils/converter.utils.d.ts +18 -0
  52. package/dist/{utils/proto.d.ts → types/utils/proto.utils.d.ts} +0 -0
  53. package/package.json +47 -36
  54. package/candid/governance.certified.did +0 -12
  55. package/candid/governance.certified.idl.d.ts +0 -2
  56. package/candid/governance.certified.idl.js +0 -18
  57. package/candid/governance.did +0 -10
  58. package/candid/governance.idl.d.ts +0 -5
  59. package/candid/governance.idl.js +0 -18
  60. package/candid/governanceTypes.d.ts +0 -16
  61. package/dist/account_identifier.js +0 -95
  62. package/dist/governance.d.ts +0 -30
  63. package/dist/governance.js +0 -55
  64. package/dist/icp.js +0 -65
  65. package/dist/index.d.ts +0 -4
  66. package/dist/ledger.d.ts +0 -54
  67. package/dist/ledger.js +0 -131
  68. package/dist/utils/proto.js +0 -59
  69. package/proto/base_types.proto +0 -60
  70. package/proto/base_types_pb.d.ts +0 -144
  71. package/proto/base_types_pb.js +0 -1142
  72. package/proto/ledger.proto +0 -277
  73. package/proto/ledger_pb.d.ts +0 -911
  74. package/proto/ledger_pb.js +0 -7151
@@ -1,1142 +0,0 @@
1
- // source: proto/base_types.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global = Function('return this')();
17
-
18
- var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
19
- goog.object.extend(proto, google_protobuf_descriptor_pb);
20
- goog.exportSymbol('proto.ic_base_types.pb.v1.CanisterAuthzInfo', null, global);
21
- goog.exportSymbol('proto.ic_base_types.pb.v1.CanisterId', null, global);
22
- goog.exportSymbol('proto.ic_base_types.pb.v1.MethodAuthzInfo', null, global);
23
- goog.exportSymbol('proto.ic_base_types.pb.v1.NeuronId', null, global);
24
- goog.exportSymbol('proto.ic_base_types.pb.v1.PrincipalId', null, global);
25
- goog.exportSymbol('proto.ic_base_types.pb.v1.ProposalId', null, global);
26
- goog.exportSymbol('proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021', null, global);
27
- goog.exportSymbol('proto.ic_base_types.pb.v1.tuiSignedMessage', null, global);
28
- /**
29
- * Generated by JsPbCodeGenerator.
30
- * @param {Array=} opt_data Optional initial data array, typically from a
31
- * server response, or constructed directly in Javascript. The array is used
32
- * in place and becomes part of the constructed object. It is not cloned.
33
- * If no data is provided, the constructed object will be empty, but still
34
- * valid.
35
- * @extends {jspb.Message}
36
- * @constructor
37
- */
38
- proto.ic_base_types.pb.v1.PrincipalId = function(opt_data) {
39
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
40
- };
41
- goog.inherits(proto.ic_base_types.pb.v1.PrincipalId, jspb.Message);
42
- if (goog.DEBUG && !COMPILED) {
43
- /**
44
- * @public
45
- * @override
46
- */
47
- proto.ic_base_types.pb.v1.PrincipalId.displayName = 'proto.ic_base_types.pb.v1.PrincipalId';
48
- }
49
- /**
50
- * Generated by JsPbCodeGenerator.
51
- * @param {Array=} opt_data Optional initial data array, typically from a
52
- * server response, or constructed directly in Javascript. The array is used
53
- * in place and becomes part of the constructed object. It is not cloned.
54
- * If no data is provided, the constructed object will be empty, but still
55
- * valid.
56
- * @extends {jspb.Message}
57
- * @constructor
58
- */
59
- proto.ic_base_types.pb.v1.CanisterId = function(opt_data) {
60
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
61
- };
62
- goog.inherits(proto.ic_base_types.pb.v1.CanisterId, jspb.Message);
63
- if (goog.DEBUG && !COMPILED) {
64
- /**
65
- * @public
66
- * @override
67
- */
68
- proto.ic_base_types.pb.v1.CanisterId.displayName = 'proto.ic_base_types.pb.v1.CanisterId';
69
- }
70
- /**
71
- * Generated by JsPbCodeGenerator.
72
- * @param {Array=} opt_data Optional initial data array, typically from a
73
- * server response, or constructed directly in Javascript. The array is used
74
- * in place and becomes part of the constructed object. It is not cloned.
75
- * If no data is provided, the constructed object will be empty, but still
76
- * valid.
77
- * @extends {jspb.Message}
78
- * @constructor
79
- */
80
- proto.ic_base_types.pb.v1.NeuronId = function(opt_data) {
81
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
82
- };
83
- goog.inherits(proto.ic_base_types.pb.v1.NeuronId, jspb.Message);
84
- if (goog.DEBUG && !COMPILED) {
85
- /**
86
- * @public
87
- * @override
88
- */
89
- proto.ic_base_types.pb.v1.NeuronId.displayName = 'proto.ic_base_types.pb.v1.NeuronId';
90
- }
91
- /**
92
- * Generated by JsPbCodeGenerator.
93
- * @param {Array=} opt_data Optional initial data array, typically from a
94
- * server response, or constructed directly in Javascript. The array is used
95
- * in place and becomes part of the constructed object. It is not cloned.
96
- * If no data is provided, the constructed object will be empty, but still
97
- * valid.
98
- * @extends {jspb.Message}
99
- * @constructor
100
- */
101
- proto.ic_base_types.pb.v1.ProposalId = function(opt_data) {
102
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
103
- };
104
- goog.inherits(proto.ic_base_types.pb.v1.ProposalId, jspb.Message);
105
- if (goog.DEBUG && !COMPILED) {
106
- /**
107
- * @public
108
- * @override
109
- */
110
- proto.ic_base_types.pb.v1.ProposalId.displayName = 'proto.ic_base_types.pb.v1.ProposalId';
111
- }
112
- /**
113
- * Generated by JsPbCodeGenerator.
114
- * @param {Array=} opt_data Optional initial data array, typically from a
115
- * server response, or constructed directly in Javascript. The array is used
116
- * in place and becomes part of the constructed object. It is not cloned.
117
- * If no data is provided, the constructed object will be empty, but still
118
- * valid.
119
- * @extends {jspb.Message}
120
- * @constructor
121
- */
122
- proto.ic_base_types.pb.v1.MethodAuthzInfo = function(opt_data) {
123
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_, null);
124
- };
125
- goog.inherits(proto.ic_base_types.pb.v1.MethodAuthzInfo, jspb.Message);
126
- if (goog.DEBUG && !COMPILED) {
127
- /**
128
- * @public
129
- * @override
130
- */
131
- proto.ic_base_types.pb.v1.MethodAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.MethodAuthzInfo';
132
- }
133
- /**
134
- * Generated by JsPbCodeGenerator.
135
- * @param {Array=} opt_data Optional initial data array, typically from a
136
- * server response, or constructed directly in Javascript. The array is used
137
- * in place and becomes part of the constructed object. It is not cloned.
138
- * If no data is provided, the constructed object will be empty, but still
139
- * valid.
140
- * @extends {jspb.Message}
141
- * @constructor
142
- */
143
- proto.ic_base_types.pb.v1.CanisterAuthzInfo = function(opt_data) {
144
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_, null);
145
- };
146
- goog.inherits(proto.ic_base_types.pb.v1.CanisterAuthzInfo, jspb.Message);
147
- if (goog.DEBUG && !COMPILED) {
148
- /**
149
- * @public
150
- * @override
151
- */
152
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.CanisterAuthzInfo';
153
- }
154
-
155
-
156
-
157
- if (jspb.Message.GENERATE_TO_OBJECT) {
158
- /**
159
- * Creates an object representation of this proto.
160
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
161
- * Optional fields that are not set will be set to undefined.
162
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
163
- * For the list of reserved names please see:
164
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
165
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
166
- * JSPB instance for transitional soy proto support:
167
- * http://goto/soy-param-migration
168
- * @return {!Object}
169
- */
170
- proto.ic_base_types.pb.v1.PrincipalId.prototype.toObject = function(opt_includeInstance) {
171
- return proto.ic_base_types.pb.v1.PrincipalId.toObject(opt_includeInstance, this);
172
- };
173
-
174
-
175
- /**
176
- * Static version of the {@see toObject} method.
177
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
178
- * the JSPB instance for transitional soy proto support:
179
- * http://goto/soy-param-migration
180
- * @param {!proto.ic_base_types.pb.v1.PrincipalId} msg The msg instance to transform.
181
- * @return {!Object}
182
- * @suppress {unusedLocalVariables} f is only used for nested messages
183
- */
184
- proto.ic_base_types.pb.v1.PrincipalId.toObject = function(includeInstance, msg) {
185
- var f, obj = {
186
- serializedId: msg.getSerializedId_asB64()
187
- };
188
-
189
- if (includeInstance) {
190
- obj.$jspbMessageInstance = msg;
191
- }
192
- return obj;
193
- };
194
- }
195
-
196
-
197
- /**
198
- * Deserializes binary data (in protobuf wire format).
199
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
200
- * @return {!proto.ic_base_types.pb.v1.PrincipalId}
201
- */
202
- proto.ic_base_types.pb.v1.PrincipalId.deserializeBinary = function(bytes) {
203
- var reader = new jspb.BinaryReader(bytes);
204
- var msg = new proto.ic_base_types.pb.v1.PrincipalId;
205
- return proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader(msg, reader);
206
- };
207
-
208
-
209
- /**
210
- * Deserializes binary data (in protobuf wire format) from the
211
- * given reader into the given message object.
212
- * @param {!proto.ic_base_types.pb.v1.PrincipalId} msg The message object to deserialize into.
213
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
214
- * @return {!proto.ic_base_types.pb.v1.PrincipalId}
215
- */
216
- proto.ic_base_types.pb.v1.PrincipalId.deserializeBinaryFromReader = function(msg, reader) {
217
- while (reader.nextField()) {
218
- if (reader.isEndGroup()) {
219
- break;
220
- }
221
- var field = reader.getFieldNumber();
222
- switch (field) {
223
- case 1:
224
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
225
- msg.setSerializedId(value);
226
- break;
227
- default:
228
- reader.skipField();
229
- break;
230
- }
231
- }
232
- return msg;
233
- };
234
-
235
-
236
- /**
237
- * Serializes the message to binary data (in protobuf wire format).
238
- * @return {!Uint8Array}
239
- */
240
- proto.ic_base_types.pb.v1.PrincipalId.prototype.serializeBinary = function() {
241
- var writer = new jspb.BinaryWriter();
242
- proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter(this, writer);
243
- return writer.getResultBuffer();
244
- };
245
-
246
-
247
- /**
248
- * Serializes the given message to binary data (in protobuf wire
249
- * format), writing to the given BinaryWriter.
250
- * @param {!proto.ic_base_types.pb.v1.PrincipalId} message
251
- * @param {!jspb.BinaryWriter} writer
252
- * @suppress {unusedLocalVariables} f is only used for nested messages
253
- */
254
- proto.ic_base_types.pb.v1.PrincipalId.serializeBinaryToWriter = function(message, writer) {
255
- var f = undefined;
256
- f = message.getSerializedId_asU8();
257
- if (f.length > 0) {
258
- writer.writeBytes(
259
- 1,
260
- f
261
- );
262
- }
263
- };
264
-
265
-
266
- /**
267
- * optional bytes serialized_id = 1;
268
- * @return {!(string|Uint8Array)}
269
- */
270
- proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId = function() {
271
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
272
- };
273
-
274
-
275
- /**
276
- * optional bytes serialized_id = 1;
277
- * This is a type-conversion wrapper around `getSerializedId()`
278
- * @return {string}
279
- */
280
- proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asB64 = function() {
281
- return /** @type {string} */ (jspb.Message.bytesAsB64(
282
- this.getSerializedId()));
283
- };
284
-
285
-
286
- /**
287
- * optional bytes serialized_id = 1;
288
- * Note that Uint8Array is not supported on all browsers.
289
- * @see http://caniuse.com/Uint8Array
290
- * This is a type-conversion wrapper around `getSerializedId()`
291
- * @return {!Uint8Array}
292
- */
293
- proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asU8 = function() {
294
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
295
- this.getSerializedId()));
296
- };
297
-
298
-
299
- /**
300
- * @param {!(string|Uint8Array)} value
301
- * @return {!proto.ic_base_types.pb.v1.PrincipalId} returns this
302
- */
303
- proto.ic_base_types.pb.v1.PrincipalId.prototype.setSerializedId = function(value) {
304
- return jspb.Message.setProto3BytesField(this, 1, value);
305
- };
306
-
307
-
308
-
309
-
310
-
311
- if (jspb.Message.GENERATE_TO_OBJECT) {
312
- /**
313
- * Creates an object representation of this proto.
314
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
315
- * Optional fields that are not set will be set to undefined.
316
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
317
- * For the list of reserved names please see:
318
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
319
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
320
- * JSPB instance for transitional soy proto support:
321
- * http://goto/soy-param-migration
322
- * @return {!Object}
323
- */
324
- proto.ic_base_types.pb.v1.CanisterId.prototype.toObject = function(opt_includeInstance) {
325
- return proto.ic_base_types.pb.v1.CanisterId.toObject(opt_includeInstance, this);
326
- };
327
-
328
-
329
- /**
330
- * Static version of the {@see toObject} method.
331
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
332
- * the JSPB instance for transitional soy proto support:
333
- * http://goto/soy-param-migration
334
- * @param {!proto.ic_base_types.pb.v1.CanisterId} msg The msg instance to transform.
335
- * @return {!Object}
336
- * @suppress {unusedLocalVariables} f is only used for nested messages
337
- */
338
- proto.ic_base_types.pb.v1.CanisterId.toObject = function(includeInstance, msg) {
339
- var f, obj = {
340
- serializedId: msg.getSerializedId_asB64()
341
- };
342
-
343
- if (includeInstance) {
344
- obj.$jspbMessageInstance = msg;
345
- }
346
- return obj;
347
- };
348
- }
349
-
350
-
351
- /**
352
- * Deserializes binary data (in protobuf wire format).
353
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
354
- * @return {!proto.ic_base_types.pb.v1.CanisterId}
355
- */
356
- proto.ic_base_types.pb.v1.CanisterId.deserializeBinary = function(bytes) {
357
- var reader = new jspb.BinaryReader(bytes);
358
- var msg = new proto.ic_base_types.pb.v1.CanisterId;
359
- return proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader(msg, reader);
360
- };
361
-
362
-
363
- /**
364
- * Deserializes binary data (in protobuf wire format) from the
365
- * given reader into the given message object.
366
- * @param {!proto.ic_base_types.pb.v1.CanisterId} msg The message object to deserialize into.
367
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
368
- * @return {!proto.ic_base_types.pb.v1.CanisterId}
369
- */
370
- proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader = function(msg, reader) {
371
- while (reader.nextField()) {
372
- if (reader.isEndGroup()) {
373
- break;
374
- }
375
- var field = reader.getFieldNumber();
376
- switch (field) {
377
- case 1:
378
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
379
- msg.setSerializedId(value);
380
- break;
381
- default:
382
- reader.skipField();
383
- break;
384
- }
385
- }
386
- return msg;
387
- };
388
-
389
-
390
- /**
391
- * Serializes the message to binary data (in protobuf wire format).
392
- * @return {!Uint8Array}
393
- */
394
- proto.ic_base_types.pb.v1.CanisterId.prototype.serializeBinary = function() {
395
- var writer = new jspb.BinaryWriter();
396
- proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter(this, writer);
397
- return writer.getResultBuffer();
398
- };
399
-
400
-
401
- /**
402
- * Serializes the given message to binary data (in protobuf wire
403
- * format), writing to the given BinaryWriter.
404
- * @param {!proto.ic_base_types.pb.v1.CanisterId} message
405
- * @param {!jspb.BinaryWriter} writer
406
- * @suppress {unusedLocalVariables} f is only used for nested messages
407
- */
408
- proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter = function(message, writer) {
409
- var f = undefined;
410
- f = message.getSerializedId_asU8();
411
- if (f.length > 0) {
412
- writer.writeBytes(
413
- 1,
414
- f
415
- );
416
- }
417
- };
418
-
419
-
420
- /**
421
- * optional bytes serialized_id = 1;
422
- * @return {!(string|Uint8Array)}
423
- */
424
- proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId = function() {
425
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
426
- };
427
-
428
-
429
- /**
430
- * optional bytes serialized_id = 1;
431
- * This is a type-conversion wrapper around `getSerializedId()`
432
- * @return {string}
433
- */
434
- proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asB64 = function() {
435
- return /** @type {string} */ (jspb.Message.bytesAsB64(
436
- this.getSerializedId()));
437
- };
438
-
439
-
440
- /**
441
- * optional bytes serialized_id = 1;
442
- * Note that Uint8Array is not supported on all browsers.
443
- * @see http://caniuse.com/Uint8Array
444
- * This is a type-conversion wrapper around `getSerializedId()`
445
- * @return {!Uint8Array}
446
- */
447
- proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asU8 = function() {
448
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
449
- this.getSerializedId()));
450
- };
451
-
452
-
453
- /**
454
- * @param {!(string|Uint8Array)} value
455
- * @return {!proto.ic_base_types.pb.v1.CanisterId} returns this
456
- */
457
- proto.ic_base_types.pb.v1.CanisterId.prototype.setSerializedId = function(value) {
458
- return jspb.Message.setProto3BytesField(this, 1, value);
459
- };
460
-
461
-
462
-
463
-
464
-
465
- if (jspb.Message.GENERATE_TO_OBJECT) {
466
- /**
467
- * Creates an object representation of this proto.
468
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
469
- * Optional fields that are not set will be set to undefined.
470
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
471
- * For the list of reserved names please see:
472
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
473
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
474
- * JSPB instance for transitional soy proto support:
475
- * http://goto/soy-param-migration
476
- * @return {!Object}
477
- */
478
- proto.ic_base_types.pb.v1.NeuronId.prototype.toObject = function(opt_includeInstance) {
479
- return proto.ic_base_types.pb.v1.NeuronId.toObject(opt_includeInstance, this);
480
- };
481
-
482
-
483
- /**
484
- * Static version of the {@see toObject} method.
485
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
486
- * the JSPB instance for transitional soy proto support:
487
- * http://goto/soy-param-migration
488
- * @param {!proto.ic_base_types.pb.v1.NeuronId} msg The msg instance to transform.
489
- * @return {!Object}
490
- * @suppress {unusedLocalVariables} f is only used for nested messages
491
- */
492
- proto.ic_base_types.pb.v1.NeuronId.toObject = function(includeInstance, msg) {
493
- var f, obj = {
494
- id: jspb.Message.getFieldWithDefault(msg, 2, "0")
495
- };
496
-
497
- if (includeInstance) {
498
- obj.$jspbMessageInstance = msg;
499
- }
500
- return obj;
501
- };
502
- }
503
-
504
-
505
- /**
506
- * Deserializes binary data (in protobuf wire format).
507
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
508
- * @return {!proto.ic_base_types.pb.v1.NeuronId}
509
- */
510
- proto.ic_base_types.pb.v1.NeuronId.deserializeBinary = function(bytes) {
511
- var reader = new jspb.BinaryReader(bytes);
512
- var msg = new proto.ic_base_types.pb.v1.NeuronId;
513
- return proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader(msg, reader);
514
- };
515
-
516
-
517
- /**
518
- * Deserializes binary data (in protobuf wire format) from the
519
- * given reader into the given message object.
520
- * @param {!proto.ic_base_types.pb.v1.NeuronId} msg The message object to deserialize into.
521
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
522
- * @return {!proto.ic_base_types.pb.v1.NeuronId}
523
- */
524
- proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader = function(msg, reader) {
525
- while (reader.nextField()) {
526
- if (reader.isEndGroup()) {
527
- break;
528
- }
529
- var field = reader.getFieldNumber();
530
- switch (field) {
531
- case 2:
532
- var value = /** @type {string} */ (reader.readUint64String());
533
- msg.setId(value);
534
- break;
535
- default:
536
- reader.skipField();
537
- break;
538
- }
539
- }
540
- return msg;
541
- };
542
-
543
-
544
- /**
545
- * Serializes the message to binary data (in protobuf wire format).
546
- * @return {!Uint8Array}
547
- */
548
- proto.ic_base_types.pb.v1.NeuronId.prototype.serializeBinary = function() {
549
- var writer = new jspb.BinaryWriter();
550
- proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter(this, writer);
551
- return writer.getResultBuffer();
552
- };
553
-
554
-
555
- /**
556
- * Serializes the given message to binary data (in protobuf wire
557
- * format), writing to the given BinaryWriter.
558
- * @param {!proto.ic_base_types.pb.v1.NeuronId} message
559
- * @param {!jspb.BinaryWriter} writer
560
- * @suppress {unusedLocalVariables} f is only used for nested messages
561
- */
562
- proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter = function(message, writer) {
563
- var f = undefined;
564
- f = message.getId();
565
- if (parseInt(f, 10) !== 0) {
566
- writer.writeUint64String(
567
- 2,
568
- f
569
- );
570
- }
571
- };
572
-
573
-
574
- /**
575
- * optional uint64 id = 2;
576
- * @return {string}
577
- */
578
- proto.ic_base_types.pb.v1.NeuronId.prototype.getId = function() {
579
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
580
- };
581
-
582
-
583
- /**
584
- * @param {string} value
585
- * @return {!proto.ic_base_types.pb.v1.NeuronId} returns this
586
- */
587
- proto.ic_base_types.pb.v1.NeuronId.prototype.setId = function(value) {
588
- return jspb.Message.setProto3StringIntField(this, 2, value);
589
- };
590
-
591
-
592
-
593
-
594
-
595
- if (jspb.Message.GENERATE_TO_OBJECT) {
596
- /**
597
- * Creates an object representation of this proto.
598
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
599
- * Optional fields that are not set will be set to undefined.
600
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
601
- * For the list of reserved names please see:
602
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
603
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
604
- * JSPB instance for transitional soy proto support:
605
- * http://goto/soy-param-migration
606
- * @return {!Object}
607
- */
608
- proto.ic_base_types.pb.v1.ProposalId.prototype.toObject = function(opt_includeInstance) {
609
- return proto.ic_base_types.pb.v1.ProposalId.toObject(opt_includeInstance, this);
610
- };
611
-
612
-
613
- /**
614
- * Static version of the {@see toObject} method.
615
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
616
- * the JSPB instance for transitional soy proto support:
617
- * http://goto/soy-param-migration
618
- * @param {!proto.ic_base_types.pb.v1.ProposalId} msg The msg instance to transform.
619
- * @return {!Object}
620
- * @suppress {unusedLocalVariables} f is only used for nested messages
621
- */
622
- proto.ic_base_types.pb.v1.ProposalId.toObject = function(includeInstance, msg) {
623
- var f, obj = {
624
- id: jspb.Message.getFieldWithDefault(msg, 1, "0")
625
- };
626
-
627
- if (includeInstance) {
628
- obj.$jspbMessageInstance = msg;
629
- }
630
- return obj;
631
- };
632
- }
633
-
634
-
635
- /**
636
- * Deserializes binary data (in protobuf wire format).
637
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
638
- * @return {!proto.ic_base_types.pb.v1.ProposalId}
639
- */
640
- proto.ic_base_types.pb.v1.ProposalId.deserializeBinary = function(bytes) {
641
- var reader = new jspb.BinaryReader(bytes);
642
- var msg = new proto.ic_base_types.pb.v1.ProposalId;
643
- return proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader(msg, reader);
644
- };
645
-
646
-
647
- /**
648
- * Deserializes binary data (in protobuf wire format) from the
649
- * given reader into the given message object.
650
- * @param {!proto.ic_base_types.pb.v1.ProposalId} msg The message object to deserialize into.
651
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
652
- * @return {!proto.ic_base_types.pb.v1.ProposalId}
653
- */
654
- proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader = function(msg, reader) {
655
- while (reader.nextField()) {
656
- if (reader.isEndGroup()) {
657
- break;
658
- }
659
- var field = reader.getFieldNumber();
660
- switch (field) {
661
- case 1:
662
- var value = /** @type {string} */ (reader.readUint64String());
663
- msg.setId(value);
664
- break;
665
- default:
666
- reader.skipField();
667
- break;
668
- }
669
- }
670
- return msg;
671
- };
672
-
673
-
674
- /**
675
- * Serializes the message to binary data (in protobuf wire format).
676
- * @return {!Uint8Array}
677
- */
678
- proto.ic_base_types.pb.v1.ProposalId.prototype.serializeBinary = function() {
679
- var writer = new jspb.BinaryWriter();
680
- proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter(this, writer);
681
- return writer.getResultBuffer();
682
- };
683
-
684
-
685
- /**
686
- * Serializes the given message to binary data (in protobuf wire
687
- * format), writing to the given BinaryWriter.
688
- * @param {!proto.ic_base_types.pb.v1.ProposalId} message
689
- * @param {!jspb.BinaryWriter} writer
690
- * @suppress {unusedLocalVariables} f is only used for nested messages
691
- */
692
- proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter = function(message, writer) {
693
- var f = undefined;
694
- f = message.getId();
695
- if (parseInt(f, 10) !== 0) {
696
- writer.writeUint64String(
697
- 1,
698
- f
699
- );
700
- }
701
- };
702
-
703
-
704
- /**
705
- * optional uint64 id = 1;
706
- * @return {string}
707
- */
708
- proto.ic_base_types.pb.v1.ProposalId.prototype.getId = function() {
709
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
710
- };
711
-
712
-
713
- /**
714
- * @param {string} value
715
- * @return {!proto.ic_base_types.pb.v1.ProposalId} returns this
716
- */
717
- proto.ic_base_types.pb.v1.ProposalId.prototype.setId = function(value) {
718
- return jspb.Message.setProto3StringIntField(this, 1, value);
719
- };
720
-
721
-
722
-
723
- /**
724
- * List of repeated fields within this message type.
725
- * @private {!Array<number>}
726
- * @const
727
- */
728
- proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_ = [2];
729
-
730
-
731
-
732
- if (jspb.Message.GENERATE_TO_OBJECT) {
733
- /**
734
- * Creates an object representation of this proto.
735
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
736
- * Optional fields that are not set will be set to undefined.
737
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
738
- * For the list of reserved names please see:
739
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
740
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
741
- * JSPB instance for transitional soy proto support:
742
- * http://goto/soy-param-migration
743
- * @return {!Object}
744
- */
745
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.toObject = function(opt_includeInstance) {
746
- return proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject(opt_includeInstance, this);
747
- };
748
-
749
-
750
- /**
751
- * Static version of the {@see toObject} method.
752
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
753
- * the JSPB instance for transitional soy proto support:
754
- * http://goto/soy-param-migration
755
- * @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo} msg The msg instance to transform.
756
- * @return {!Object}
757
- * @suppress {unusedLocalVariables} f is only used for nested messages
758
- */
759
- proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject = function(includeInstance, msg) {
760
- var f, obj = {
761
- methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
762
- principalIdsList: msg.getPrincipalIdsList_asB64()
763
- };
764
-
765
- if (includeInstance) {
766
- obj.$jspbMessageInstance = msg;
767
- }
768
- return obj;
769
- };
770
- }
771
-
772
-
773
- /**
774
- * Deserializes binary data (in protobuf wire format).
775
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
776
- * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo}
777
- */
778
- proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinary = function(bytes) {
779
- var reader = new jspb.BinaryReader(bytes);
780
- var msg = new proto.ic_base_types.pb.v1.MethodAuthzInfo;
781
- return proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader(msg, reader);
782
- };
783
-
784
-
785
- /**
786
- * Deserializes binary data (in protobuf wire format) from the
787
- * given reader into the given message object.
788
- * @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo} msg The message object to deserialize into.
789
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
790
- * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo}
791
- */
792
- proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader = function(msg, reader) {
793
- while (reader.nextField()) {
794
- if (reader.isEndGroup()) {
795
- break;
796
- }
797
- var field = reader.getFieldNumber();
798
- switch (field) {
799
- case 1:
800
- var value = /** @type {string} */ (reader.readString());
801
- msg.setMethodName(value);
802
- break;
803
- case 2:
804
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
805
- msg.addPrincipalIds(value);
806
- break;
807
- default:
808
- reader.skipField();
809
- break;
810
- }
811
- }
812
- return msg;
813
- };
814
-
815
-
816
- /**
817
- * Serializes the message to binary data (in protobuf wire format).
818
- * @return {!Uint8Array}
819
- */
820
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.serializeBinary = function() {
821
- var writer = new jspb.BinaryWriter();
822
- proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter(this, writer);
823
- return writer.getResultBuffer();
824
- };
825
-
826
-
827
- /**
828
- * Serializes the given message to binary data (in protobuf wire
829
- * format), writing to the given BinaryWriter.
830
- * @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo} message
831
- * @param {!jspb.BinaryWriter} writer
832
- * @suppress {unusedLocalVariables} f is only used for nested messages
833
- */
834
- proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter = function(message, writer) {
835
- var f = undefined;
836
- f = message.getMethodName();
837
- if (f.length > 0) {
838
- writer.writeString(
839
- 1,
840
- f
841
- );
842
- }
843
- f = message.getPrincipalIdsList_asU8();
844
- if (f.length > 0) {
845
- writer.writeRepeatedBytes(
846
- 2,
847
- f
848
- );
849
- }
850
- };
851
-
852
-
853
- /**
854
- * optional string method_name = 1;
855
- * @return {string}
856
- */
857
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getMethodName = function() {
858
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
859
- };
860
-
861
-
862
- /**
863
- * @param {string} value
864
- * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
865
- */
866
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setMethodName = function(value) {
867
- return jspb.Message.setProto3StringField(this, 1, value);
868
- };
869
-
870
-
871
- /**
872
- * repeated bytes principal_ids = 2;
873
- * @return {!(Array<!Uint8Array>|Array<string>)}
874
- */
875
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList = function() {
876
- return /** @type {!(Array<!Uint8Array>|Array<string>)} */ (jspb.Message.getRepeatedField(this, 2));
877
- };
878
-
879
-
880
- /**
881
- * repeated bytes principal_ids = 2;
882
- * This is a type-conversion wrapper around `getPrincipalIdsList()`
883
- * @return {!Array<string>}
884
- */
885
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asB64 = function() {
886
- return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
887
- this.getPrincipalIdsList()));
888
- };
889
-
890
-
891
- /**
892
- * repeated bytes principal_ids = 2;
893
- * Note that Uint8Array is not supported on all browsers.
894
- * @see http://caniuse.com/Uint8Array
895
- * This is a type-conversion wrapper around `getPrincipalIdsList()`
896
- * @return {!Array<!Uint8Array>}
897
- */
898
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asU8 = function() {
899
- return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
900
- this.getPrincipalIdsList()));
901
- };
902
-
903
-
904
- /**
905
- * @param {!(Array<!Uint8Array>|Array<string>)} value
906
- * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
907
- */
908
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setPrincipalIdsList = function(value) {
909
- return jspb.Message.setField(this, 2, value || []);
910
- };
911
-
912
-
913
- /**
914
- * @param {!(string|Uint8Array)} value
915
- * @param {number=} opt_index
916
- * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
917
- */
918
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.addPrincipalIds = function(value, opt_index) {
919
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
920
- };
921
-
922
-
923
- /**
924
- * Clears the list making it empty but non-null.
925
- * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
926
- */
927
- proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.clearPrincipalIdsList = function() {
928
- return this.setPrincipalIdsList([]);
929
- };
930
-
931
-
932
-
933
- /**
934
- * List of repeated fields within this message type.
935
- * @private {!Array<number>}
936
- * @const
937
- */
938
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_ = [1];
939
-
940
-
941
-
942
- if (jspb.Message.GENERATE_TO_OBJECT) {
943
- /**
944
- * Creates an object representation of this proto.
945
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
946
- * Optional fields that are not set will be set to undefined.
947
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
948
- * For the list of reserved names please see:
949
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
950
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
951
- * JSPB instance for transitional soy proto support:
952
- * http://goto/soy-param-migration
953
- * @return {!Object}
954
- */
955
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.toObject = function(opt_includeInstance) {
956
- return proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject(opt_includeInstance, this);
957
- };
958
-
959
-
960
- /**
961
- * Static version of the {@see toObject} method.
962
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
963
- * the JSPB instance for transitional soy proto support:
964
- * http://goto/soy-param-migration
965
- * @param {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} msg The msg instance to transform.
966
- * @return {!Object}
967
- * @suppress {unusedLocalVariables} f is only used for nested messages
968
- */
969
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject = function(includeInstance, msg) {
970
- var f, obj = {
971
- methodsAuthzList: jspb.Message.toObjectList(msg.getMethodsAuthzList(),
972
- proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject, includeInstance)
973
- };
974
-
975
- if (includeInstance) {
976
- obj.$jspbMessageInstance = msg;
977
- }
978
- return obj;
979
- };
980
- }
981
-
982
-
983
- /**
984
- * Deserializes binary data (in protobuf wire format).
985
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
986
- * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo}
987
- */
988
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinary = function(bytes) {
989
- var reader = new jspb.BinaryReader(bytes);
990
- var msg = new proto.ic_base_types.pb.v1.CanisterAuthzInfo;
991
- return proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader(msg, reader);
992
- };
993
-
994
-
995
- /**
996
- * Deserializes binary data (in protobuf wire format) from the
997
- * given reader into the given message object.
998
- * @param {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} msg The message object to deserialize into.
999
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1000
- * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo}
1001
- */
1002
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader = function(msg, reader) {
1003
- while (reader.nextField()) {
1004
- if (reader.isEndGroup()) {
1005
- break;
1006
- }
1007
- var field = reader.getFieldNumber();
1008
- switch (field) {
1009
- case 1:
1010
- var value = new proto.ic_base_types.pb.v1.MethodAuthzInfo;
1011
- reader.readMessage(value,proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader);
1012
- msg.addMethodsAuthz(value);
1013
- break;
1014
- default:
1015
- reader.skipField();
1016
- break;
1017
- }
1018
- }
1019
- return msg;
1020
- };
1021
-
1022
-
1023
- /**
1024
- * Serializes the message to binary data (in protobuf wire format).
1025
- * @return {!Uint8Array}
1026
- */
1027
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.serializeBinary = function() {
1028
- var writer = new jspb.BinaryWriter();
1029
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter(this, writer);
1030
- return writer.getResultBuffer();
1031
- };
1032
-
1033
-
1034
- /**
1035
- * Serializes the given message to binary data (in protobuf wire
1036
- * format), writing to the given BinaryWriter.
1037
- * @param {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} message
1038
- * @param {!jspb.BinaryWriter} writer
1039
- * @suppress {unusedLocalVariables} f is only used for nested messages
1040
- */
1041
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter = function(message, writer) {
1042
- var f = undefined;
1043
- f = message.getMethodsAuthzList();
1044
- if (f.length > 0) {
1045
- writer.writeRepeatedMessage(
1046
- 1,
1047
- f,
1048
- proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter
1049
- );
1050
- }
1051
- };
1052
-
1053
-
1054
- /**
1055
- * repeated MethodAuthzInfo methods_authz = 1;
1056
- * @return {!Array<!proto.ic_base_types.pb.v1.MethodAuthzInfo>}
1057
- */
1058
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.getMethodsAuthzList = function() {
1059
- return /** @type{!Array<!proto.ic_base_types.pb.v1.MethodAuthzInfo>} */ (
1060
- jspb.Message.getRepeatedWrapperField(this, proto.ic_base_types.pb.v1.MethodAuthzInfo, 1));
1061
- };
1062
-
1063
-
1064
- /**
1065
- * @param {!Array<!proto.ic_base_types.pb.v1.MethodAuthzInfo>} value
1066
- * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} returns this
1067
- */
1068
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.setMethodsAuthzList = function(value) {
1069
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1070
- };
1071
-
1072
-
1073
- /**
1074
- * @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo=} opt_value
1075
- * @param {number=} opt_index
1076
- * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo}
1077
- */
1078
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.addMethodsAuthz = function(opt_value, opt_index) {
1079
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_base_types.pb.v1.MethodAuthzInfo, opt_index);
1080
- };
1081
-
1082
-
1083
- /**
1084
- * Clears the list making it empty but non-null.
1085
- * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} returns this
1086
- */
1087
- proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.clearMethodsAuthzList = function() {
1088
- return this.setMethodsAuthzList([]);
1089
- };
1090
-
1091
-
1092
-
1093
- /**
1094
- * A tuple of {field number, class constructor} for the extension
1095
- * field named `tuiSignedMessage`.
1096
- * @type {!jspb.ExtensionFieldInfo<boolean>}
1097
- */
1098
- proto.ic_base_types.pb.v1.tuiSignedMessage = new jspb.ExtensionFieldInfo(
1099
- 20000,
1100
- {tuiSignedMessage: 0},
1101
- null,
1102
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
1103
- null),
1104
- 0);
1105
-
1106
- google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[20000] = new jspb.ExtensionFieldBinaryInfo(
1107
- proto.ic_base_types.pb.v1.tuiSignedMessage,
1108
- jspb.BinaryReader.prototype.readBool,
1109
- jspb.BinaryWriter.prototype.writeBool,
1110
- undefined,
1111
- undefined,
1112
- false);
1113
- // This registers the extension field with the extended class, so that
1114
- // toObject() will function correctly.
1115
- google_protobuf_descriptor_pb.MessageOptions.extensions[20000] = proto.ic_base_types.pb.v1.tuiSignedMessage;
1116
-
1117
-
1118
- /**
1119
- * A tuple of {field number, class constructor} for the extension
1120
- * field named `tuiSignedDisplayQ22021`.
1121
- * @type {!jspb.ExtensionFieldInfo<boolean>}
1122
- */
1123
- proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021 = new jspb.ExtensionFieldInfo(
1124
- 20001,
1125
- {tuiSignedDisplayQ22021: 0},
1126
- null,
1127
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
1128
- null),
1129
- 0);
1130
-
1131
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[20001] = new jspb.ExtensionFieldBinaryInfo(
1132
- proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021,
1133
- jspb.BinaryReader.prototype.readBool,
1134
- jspb.BinaryWriter.prototype.writeBool,
1135
- undefined,
1136
- undefined,
1137
- false);
1138
- // This registers the extension field with the extended class, so that
1139
- // toObject() will function correctly.
1140
- google_protobuf_descriptor_pb.FieldOptions.extensions[20001] = proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021;
1141
-
1142
- goog.object.extend(exports, proto.ic_base_types.pb.v1);