core-3nweb-client-lib 0.24.0 → 0.24.3

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 (46) hide show
  1. package/build/api-defs/web3n.d.ts +6 -6
  2. package/build/ipc-via-protobuf/asmail-cap.js +17 -18
  3. package/build/ipc-via-protobuf/bytes.js +10 -11
  4. package/build/ipc-via-protobuf/connector.d.ts +2 -1
  5. package/build/ipc-via-protobuf/connector.js +4 -2
  6. package/build/ipc-via-protobuf/file.d.ts +1 -1
  7. package/build/ipc-via-protobuf/file.js +30 -31
  8. package/build/ipc-via-protobuf/fs.d.ts +1 -1
  9. package/build/ipc-via-protobuf/fs.js +37 -38
  10. package/build/ipc-via-protobuf/log-cap.js +4 -5
  11. package/build/ipc-via-protobuf/mailerid.js +5 -7
  12. package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -2
  13. package/build/ipc-via-protobuf/protobuf-msg.js +9 -24
  14. package/build/ipc-via-protobuf/startup-cap.js +10 -11
  15. package/build/ipc-via-protobuf/storage-cap.js +7 -8
  16. package/build/lib-client/cryptor/cryptor-in-worker.js +7 -20
  17. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  18. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  19. package/build/lib-client/cryptor/in-proc-wasm.js +7 -20
  20. package/build/lib-client/{protobuf-loader.d.ts → protobuf-type.d.ts} +2 -4
  21. package/build/lib-client/{protobuf-loader.js → protobuf-type.js} +3 -43
  22. package/build/protos/asmail.proto.js +22296 -0
  23. package/build/protos/bytes.proto.js +3614 -0
  24. package/build/protos/common.proto.js +1863 -0
  25. package/build/protos/cryptor.proto.js +1667 -0
  26. package/build/protos/file.proto.js +7264 -0
  27. package/build/protos/fs.proto.js +17142 -0
  28. package/build/protos/ipc.proto.js +2349 -0
  29. package/build/protos/logger.proto.js +2112 -0
  30. package/build/protos/mailerid.proto.js +2249 -0
  31. package/build/protos/startup.proto.js +3291 -0
  32. package/build/protos/storage.proto.js +2689 -0
  33. package/package.json +2 -2
  34. package/{build/ipc-via-protobuf/protos → protos}/asmail.proto +0 -0
  35. package/{build/ipc-via-protobuf/protos → protos}/bytes.proto +0 -0
  36. package/{build/ipc-via-protobuf/protos → protos}/common.proto +0 -0
  37. package/{build/ipc-via-protobuf/protos → protos}/file.proto +0 -0
  38. package/{build/ipc-via-protobuf/protos → protos}/fs.proto +0 -0
  39. package/{build/ipc-via-protobuf/protos → protos}/ipc.proto +0 -0
  40. package/{build/ipc-via-protobuf/protos → protos}/logger.proto +0 -0
  41. package/{build/ipc-via-protobuf/protos → protos}/mailerid.proto +0 -0
  42. package/{build/ipc-via-protobuf/protos → protos}/startup.proto +0 -0
  43. package/{build/ipc-via-protobuf/protos → protos}/storage.proto +0 -0
  44. package/build/ipc-via-protobuf/proto-defs.js +0 -1092
  45. package/build/lib-client/cryptor/proto-defs.js +0 -50
  46. package/build/lib-client/cryptor/protos/cryptor.proto +0 -45
@@ -0,0 +1,3291 @@
1
+ /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
2
+ "use strict";
3
+
4
+ var $protobuf = require("protobufjs/minimal");
5
+
6
+ // Common aliases
7
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
8
+
9
+ // Exported root namespace
10
+ var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
11
+
12
+ $root.startup = (function() {
13
+
14
+ /**
15
+ * Namespace startup.
16
+ * @exports startup
17
+ * @namespace
18
+ */
19
+ var startup = {};
20
+
21
+ startup.GetAvailableAddressesRequestBody = (function() {
22
+
23
+ /**
24
+ * Properties of a GetAvailableAddressesRequestBody.
25
+ * @memberof startup
26
+ * @interface IGetAvailableAddressesRequestBody
27
+ * @property {string|null} [name] GetAvailableAddressesRequestBody name
28
+ * @property {common.IStringValue|null} [token] GetAvailableAddressesRequestBody token
29
+ */
30
+
31
+ /**
32
+ * Constructs a new GetAvailableAddressesRequestBody.
33
+ * @memberof startup
34
+ * @classdesc Represents a GetAvailableAddressesRequestBody.
35
+ * @implements IGetAvailableAddressesRequestBody
36
+ * @constructor
37
+ * @param {startup.IGetAvailableAddressesRequestBody=} [properties] Properties to set
38
+ */
39
+ function GetAvailableAddressesRequestBody(properties) {
40
+ if (properties)
41
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
42
+ if (properties[keys[i]] != null)
43
+ this[keys[i]] = properties[keys[i]];
44
+ }
45
+
46
+ /**
47
+ * GetAvailableAddressesRequestBody name.
48
+ * @member {string} name
49
+ * @memberof startup.GetAvailableAddressesRequestBody
50
+ * @instance
51
+ */
52
+ GetAvailableAddressesRequestBody.prototype.name = "";
53
+
54
+ /**
55
+ * GetAvailableAddressesRequestBody token.
56
+ * @member {common.IStringValue|null|undefined} token
57
+ * @memberof startup.GetAvailableAddressesRequestBody
58
+ * @instance
59
+ */
60
+ GetAvailableAddressesRequestBody.prototype.token = null;
61
+
62
+ /**
63
+ * Creates a new GetAvailableAddressesRequestBody instance using the specified properties.
64
+ * @function create
65
+ * @memberof startup.GetAvailableAddressesRequestBody
66
+ * @static
67
+ * @param {startup.IGetAvailableAddressesRequestBody=} [properties] Properties to set
68
+ * @returns {startup.GetAvailableAddressesRequestBody} GetAvailableAddressesRequestBody instance
69
+ */
70
+ GetAvailableAddressesRequestBody.create = function create(properties) {
71
+ return new GetAvailableAddressesRequestBody(properties);
72
+ };
73
+
74
+ /**
75
+ * Encodes the specified GetAvailableAddressesRequestBody message. Does not implicitly {@link startup.GetAvailableAddressesRequestBody.verify|verify} messages.
76
+ * @function encode
77
+ * @memberof startup.GetAvailableAddressesRequestBody
78
+ * @static
79
+ * @param {startup.IGetAvailableAddressesRequestBody} message GetAvailableAddressesRequestBody message or plain object to encode
80
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81
+ * @returns {$protobuf.Writer} Writer
82
+ */
83
+ GetAvailableAddressesRequestBody.encode = function encode(message, writer) {
84
+ if (!writer)
85
+ writer = $Writer.create();
86
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
87
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
88
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
89
+ $root.common.StringValue.encode(message.token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
90
+ return writer;
91
+ };
92
+
93
+ /**
94
+ * Encodes the specified GetAvailableAddressesRequestBody message, length delimited. Does not implicitly {@link startup.GetAvailableAddressesRequestBody.verify|verify} messages.
95
+ * @function encodeDelimited
96
+ * @memberof startup.GetAvailableAddressesRequestBody
97
+ * @static
98
+ * @param {startup.IGetAvailableAddressesRequestBody} message GetAvailableAddressesRequestBody message or plain object to encode
99
+ * @param {$protobuf.Writer} [writer] Writer to encode to
100
+ * @returns {$protobuf.Writer} Writer
101
+ */
102
+ GetAvailableAddressesRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
103
+ return this.encode(message, writer).ldelim();
104
+ };
105
+
106
+ /**
107
+ * Decodes a GetAvailableAddressesRequestBody message from the specified reader or buffer.
108
+ * @function decode
109
+ * @memberof startup.GetAvailableAddressesRequestBody
110
+ * @static
111
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
112
+ * @param {number} [length] Message length if known beforehand
113
+ * @returns {startup.GetAvailableAddressesRequestBody} GetAvailableAddressesRequestBody
114
+ * @throws {Error} If the payload is not a reader or valid buffer
115
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
116
+ */
117
+ GetAvailableAddressesRequestBody.decode = function decode(reader, length) {
118
+ if (!(reader instanceof $Reader))
119
+ reader = $Reader.create(reader);
120
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.GetAvailableAddressesRequestBody();
121
+ while (reader.pos < end) {
122
+ var tag = reader.uint32();
123
+ switch (tag >>> 3) {
124
+ case 1:
125
+ message.name = reader.string();
126
+ break;
127
+ case 2:
128
+ message.token = $root.common.StringValue.decode(reader, reader.uint32());
129
+ break;
130
+ default:
131
+ reader.skipType(tag & 7);
132
+ break;
133
+ }
134
+ }
135
+ return message;
136
+ };
137
+
138
+ /**
139
+ * Decodes a GetAvailableAddressesRequestBody message from the specified reader or buffer, length delimited.
140
+ * @function decodeDelimited
141
+ * @memberof startup.GetAvailableAddressesRequestBody
142
+ * @static
143
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
144
+ * @returns {startup.GetAvailableAddressesRequestBody} GetAvailableAddressesRequestBody
145
+ * @throws {Error} If the payload is not a reader or valid buffer
146
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
147
+ */
148
+ GetAvailableAddressesRequestBody.decodeDelimited = function decodeDelimited(reader) {
149
+ if (!(reader instanceof $Reader))
150
+ reader = new $Reader(reader);
151
+ return this.decode(reader, reader.uint32());
152
+ };
153
+
154
+ /**
155
+ * Verifies a GetAvailableAddressesRequestBody message.
156
+ * @function verify
157
+ * @memberof startup.GetAvailableAddressesRequestBody
158
+ * @static
159
+ * @param {Object.<string,*>} message Plain object to verify
160
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
161
+ */
162
+ GetAvailableAddressesRequestBody.verify = function verify(message) {
163
+ if (typeof message !== "object" || message === null)
164
+ return "object expected";
165
+ if (message.name != null && message.hasOwnProperty("name"))
166
+ if (!$util.isString(message.name))
167
+ return "name: string expected";
168
+ if (message.token != null && message.hasOwnProperty("token")) {
169
+ var error = $root.common.StringValue.verify(message.token);
170
+ if (error)
171
+ return "token." + error;
172
+ }
173
+ return null;
174
+ };
175
+
176
+ /**
177
+ * Creates a GetAvailableAddressesRequestBody message from a plain object. Also converts values to their respective internal types.
178
+ * @function fromObject
179
+ * @memberof startup.GetAvailableAddressesRequestBody
180
+ * @static
181
+ * @param {Object.<string,*>} object Plain object
182
+ * @returns {startup.GetAvailableAddressesRequestBody} GetAvailableAddressesRequestBody
183
+ */
184
+ GetAvailableAddressesRequestBody.fromObject = function fromObject(object) {
185
+ if (object instanceof $root.startup.GetAvailableAddressesRequestBody)
186
+ return object;
187
+ var message = new $root.startup.GetAvailableAddressesRequestBody();
188
+ if (object.name != null)
189
+ message.name = String(object.name);
190
+ if (object.token != null) {
191
+ if (typeof object.token !== "object")
192
+ throw TypeError(".startup.GetAvailableAddressesRequestBody.token: object expected");
193
+ message.token = $root.common.StringValue.fromObject(object.token);
194
+ }
195
+ return message;
196
+ };
197
+
198
+ /**
199
+ * Creates a plain object from a GetAvailableAddressesRequestBody message. Also converts values to other types if specified.
200
+ * @function toObject
201
+ * @memberof startup.GetAvailableAddressesRequestBody
202
+ * @static
203
+ * @param {startup.GetAvailableAddressesRequestBody} message GetAvailableAddressesRequestBody
204
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
205
+ * @returns {Object.<string,*>} Plain object
206
+ */
207
+ GetAvailableAddressesRequestBody.toObject = function toObject(message, options) {
208
+ if (!options)
209
+ options = {};
210
+ var object = {};
211
+ if (options.defaults) {
212
+ object.name = "";
213
+ object.token = null;
214
+ }
215
+ if (message.name != null && message.hasOwnProperty("name"))
216
+ object.name = message.name;
217
+ if (message.token != null && message.hasOwnProperty("token"))
218
+ object.token = $root.common.StringValue.toObject(message.token, options);
219
+ return object;
220
+ };
221
+
222
+ /**
223
+ * Converts this GetAvailableAddressesRequestBody to JSON.
224
+ * @function toJSON
225
+ * @memberof startup.GetAvailableAddressesRequestBody
226
+ * @instance
227
+ * @returns {Object.<string,*>} JSON object
228
+ */
229
+ GetAvailableAddressesRequestBody.prototype.toJSON = function toJSON() {
230
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
231
+ };
232
+
233
+ return GetAvailableAddressesRequestBody;
234
+ })();
235
+
236
+ startup.AddUserRequestBody = (function() {
237
+
238
+ /**
239
+ * Properties of an AddUserRequestBody.
240
+ * @memberof startup
241
+ * @interface IAddUserRequestBody
242
+ * @property {string|null} [userId] AddUserRequestBody userId
243
+ * @property {common.IStringValue|null} [token] AddUserRequestBody token
244
+ */
245
+
246
+ /**
247
+ * Constructs a new AddUserRequestBody.
248
+ * @memberof startup
249
+ * @classdesc Represents an AddUserRequestBody.
250
+ * @implements IAddUserRequestBody
251
+ * @constructor
252
+ * @param {startup.IAddUserRequestBody=} [properties] Properties to set
253
+ */
254
+ function AddUserRequestBody(properties) {
255
+ if (properties)
256
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
257
+ if (properties[keys[i]] != null)
258
+ this[keys[i]] = properties[keys[i]];
259
+ }
260
+
261
+ /**
262
+ * AddUserRequestBody userId.
263
+ * @member {string} userId
264
+ * @memberof startup.AddUserRequestBody
265
+ * @instance
266
+ */
267
+ AddUserRequestBody.prototype.userId = "";
268
+
269
+ /**
270
+ * AddUserRequestBody token.
271
+ * @member {common.IStringValue|null|undefined} token
272
+ * @memberof startup.AddUserRequestBody
273
+ * @instance
274
+ */
275
+ AddUserRequestBody.prototype.token = null;
276
+
277
+ /**
278
+ * Creates a new AddUserRequestBody instance using the specified properties.
279
+ * @function create
280
+ * @memberof startup.AddUserRequestBody
281
+ * @static
282
+ * @param {startup.IAddUserRequestBody=} [properties] Properties to set
283
+ * @returns {startup.AddUserRequestBody} AddUserRequestBody instance
284
+ */
285
+ AddUserRequestBody.create = function create(properties) {
286
+ return new AddUserRequestBody(properties);
287
+ };
288
+
289
+ /**
290
+ * Encodes the specified AddUserRequestBody message. Does not implicitly {@link startup.AddUserRequestBody.verify|verify} messages.
291
+ * @function encode
292
+ * @memberof startup.AddUserRequestBody
293
+ * @static
294
+ * @param {startup.IAddUserRequestBody} message AddUserRequestBody message or plain object to encode
295
+ * @param {$protobuf.Writer} [writer] Writer to encode to
296
+ * @returns {$protobuf.Writer} Writer
297
+ */
298
+ AddUserRequestBody.encode = function encode(message, writer) {
299
+ if (!writer)
300
+ writer = $Writer.create();
301
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
302
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
303
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
304
+ $root.common.StringValue.encode(message.token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
305
+ return writer;
306
+ };
307
+
308
+ /**
309
+ * Encodes the specified AddUserRequestBody message, length delimited. Does not implicitly {@link startup.AddUserRequestBody.verify|verify} messages.
310
+ * @function encodeDelimited
311
+ * @memberof startup.AddUserRequestBody
312
+ * @static
313
+ * @param {startup.IAddUserRequestBody} message AddUserRequestBody message or plain object to encode
314
+ * @param {$protobuf.Writer} [writer] Writer to encode to
315
+ * @returns {$protobuf.Writer} Writer
316
+ */
317
+ AddUserRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
318
+ return this.encode(message, writer).ldelim();
319
+ };
320
+
321
+ /**
322
+ * Decodes an AddUserRequestBody message from the specified reader or buffer.
323
+ * @function decode
324
+ * @memberof startup.AddUserRequestBody
325
+ * @static
326
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
327
+ * @param {number} [length] Message length if known beforehand
328
+ * @returns {startup.AddUserRequestBody} AddUserRequestBody
329
+ * @throws {Error} If the payload is not a reader or valid buffer
330
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
331
+ */
332
+ AddUserRequestBody.decode = function decode(reader, length) {
333
+ if (!(reader instanceof $Reader))
334
+ reader = $Reader.create(reader);
335
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.AddUserRequestBody();
336
+ while (reader.pos < end) {
337
+ var tag = reader.uint32();
338
+ switch (tag >>> 3) {
339
+ case 1:
340
+ message.userId = reader.string();
341
+ break;
342
+ case 2:
343
+ message.token = $root.common.StringValue.decode(reader, reader.uint32());
344
+ break;
345
+ default:
346
+ reader.skipType(tag & 7);
347
+ break;
348
+ }
349
+ }
350
+ return message;
351
+ };
352
+
353
+ /**
354
+ * Decodes an AddUserRequestBody message from the specified reader or buffer, length delimited.
355
+ * @function decodeDelimited
356
+ * @memberof startup.AddUserRequestBody
357
+ * @static
358
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
359
+ * @returns {startup.AddUserRequestBody} AddUserRequestBody
360
+ * @throws {Error} If the payload is not a reader or valid buffer
361
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
362
+ */
363
+ AddUserRequestBody.decodeDelimited = function decodeDelimited(reader) {
364
+ if (!(reader instanceof $Reader))
365
+ reader = new $Reader(reader);
366
+ return this.decode(reader, reader.uint32());
367
+ };
368
+
369
+ /**
370
+ * Verifies an AddUserRequestBody message.
371
+ * @function verify
372
+ * @memberof startup.AddUserRequestBody
373
+ * @static
374
+ * @param {Object.<string,*>} message Plain object to verify
375
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
376
+ */
377
+ AddUserRequestBody.verify = function verify(message) {
378
+ if (typeof message !== "object" || message === null)
379
+ return "object expected";
380
+ if (message.userId != null && message.hasOwnProperty("userId"))
381
+ if (!$util.isString(message.userId))
382
+ return "userId: string expected";
383
+ if (message.token != null && message.hasOwnProperty("token")) {
384
+ var error = $root.common.StringValue.verify(message.token);
385
+ if (error)
386
+ return "token." + error;
387
+ }
388
+ return null;
389
+ };
390
+
391
+ /**
392
+ * Creates an AddUserRequestBody message from a plain object. Also converts values to their respective internal types.
393
+ * @function fromObject
394
+ * @memberof startup.AddUserRequestBody
395
+ * @static
396
+ * @param {Object.<string,*>} object Plain object
397
+ * @returns {startup.AddUserRequestBody} AddUserRequestBody
398
+ */
399
+ AddUserRequestBody.fromObject = function fromObject(object) {
400
+ if (object instanceof $root.startup.AddUserRequestBody)
401
+ return object;
402
+ var message = new $root.startup.AddUserRequestBody();
403
+ if (object.userId != null)
404
+ message.userId = String(object.userId);
405
+ if (object.token != null) {
406
+ if (typeof object.token !== "object")
407
+ throw TypeError(".startup.AddUserRequestBody.token: object expected");
408
+ message.token = $root.common.StringValue.fromObject(object.token);
409
+ }
410
+ return message;
411
+ };
412
+
413
+ /**
414
+ * Creates a plain object from an AddUserRequestBody message. Also converts values to other types if specified.
415
+ * @function toObject
416
+ * @memberof startup.AddUserRequestBody
417
+ * @static
418
+ * @param {startup.AddUserRequestBody} message AddUserRequestBody
419
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
420
+ * @returns {Object.<string,*>} Plain object
421
+ */
422
+ AddUserRequestBody.toObject = function toObject(message, options) {
423
+ if (!options)
424
+ options = {};
425
+ var object = {};
426
+ if (options.defaults) {
427
+ object.userId = "";
428
+ object.token = null;
429
+ }
430
+ if (message.userId != null && message.hasOwnProperty("userId"))
431
+ object.userId = message.userId;
432
+ if (message.token != null && message.hasOwnProperty("token"))
433
+ object.token = $root.common.StringValue.toObject(message.token, options);
434
+ return object;
435
+ };
436
+
437
+ /**
438
+ * Converts this AddUserRequestBody to JSON.
439
+ * @function toJSON
440
+ * @memberof startup.AddUserRequestBody
441
+ * @instance
442
+ * @returns {Object.<string,*>} JSON object
443
+ */
444
+ AddUserRequestBody.prototype.toJSON = function toJSON() {
445
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
446
+ };
447
+
448
+ return AddUserRequestBody;
449
+ })();
450
+
451
+ startup.IsActivatedRequestBody = (function() {
452
+
453
+ /**
454
+ * Properties of an IsActivatedRequestBody.
455
+ * @memberof startup
456
+ * @interface IIsActivatedRequestBody
457
+ * @property {string|null} [userId] IsActivatedRequestBody userId
458
+ */
459
+
460
+ /**
461
+ * Constructs a new IsActivatedRequestBody.
462
+ * @memberof startup
463
+ * @classdesc Represents an IsActivatedRequestBody.
464
+ * @implements IIsActivatedRequestBody
465
+ * @constructor
466
+ * @param {startup.IIsActivatedRequestBody=} [properties] Properties to set
467
+ */
468
+ function IsActivatedRequestBody(properties) {
469
+ if (properties)
470
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
471
+ if (properties[keys[i]] != null)
472
+ this[keys[i]] = properties[keys[i]];
473
+ }
474
+
475
+ /**
476
+ * IsActivatedRequestBody userId.
477
+ * @member {string} userId
478
+ * @memberof startup.IsActivatedRequestBody
479
+ * @instance
480
+ */
481
+ IsActivatedRequestBody.prototype.userId = "";
482
+
483
+ /**
484
+ * Creates a new IsActivatedRequestBody instance using the specified properties.
485
+ * @function create
486
+ * @memberof startup.IsActivatedRequestBody
487
+ * @static
488
+ * @param {startup.IIsActivatedRequestBody=} [properties] Properties to set
489
+ * @returns {startup.IsActivatedRequestBody} IsActivatedRequestBody instance
490
+ */
491
+ IsActivatedRequestBody.create = function create(properties) {
492
+ return new IsActivatedRequestBody(properties);
493
+ };
494
+
495
+ /**
496
+ * Encodes the specified IsActivatedRequestBody message. Does not implicitly {@link startup.IsActivatedRequestBody.verify|verify} messages.
497
+ * @function encode
498
+ * @memberof startup.IsActivatedRequestBody
499
+ * @static
500
+ * @param {startup.IIsActivatedRequestBody} message IsActivatedRequestBody message or plain object to encode
501
+ * @param {$protobuf.Writer} [writer] Writer to encode to
502
+ * @returns {$protobuf.Writer} Writer
503
+ */
504
+ IsActivatedRequestBody.encode = function encode(message, writer) {
505
+ if (!writer)
506
+ writer = $Writer.create();
507
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
508
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
509
+ return writer;
510
+ };
511
+
512
+ /**
513
+ * Encodes the specified IsActivatedRequestBody message, length delimited. Does not implicitly {@link startup.IsActivatedRequestBody.verify|verify} messages.
514
+ * @function encodeDelimited
515
+ * @memberof startup.IsActivatedRequestBody
516
+ * @static
517
+ * @param {startup.IIsActivatedRequestBody} message IsActivatedRequestBody message or plain object to encode
518
+ * @param {$protobuf.Writer} [writer] Writer to encode to
519
+ * @returns {$protobuf.Writer} Writer
520
+ */
521
+ IsActivatedRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
522
+ return this.encode(message, writer).ldelim();
523
+ };
524
+
525
+ /**
526
+ * Decodes an IsActivatedRequestBody message from the specified reader or buffer.
527
+ * @function decode
528
+ * @memberof startup.IsActivatedRequestBody
529
+ * @static
530
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
531
+ * @param {number} [length] Message length if known beforehand
532
+ * @returns {startup.IsActivatedRequestBody} IsActivatedRequestBody
533
+ * @throws {Error} If the payload is not a reader or valid buffer
534
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
535
+ */
536
+ IsActivatedRequestBody.decode = function decode(reader, length) {
537
+ if (!(reader instanceof $Reader))
538
+ reader = $Reader.create(reader);
539
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.IsActivatedRequestBody();
540
+ while (reader.pos < end) {
541
+ var tag = reader.uint32();
542
+ switch (tag >>> 3) {
543
+ case 1:
544
+ message.userId = reader.string();
545
+ break;
546
+ default:
547
+ reader.skipType(tag & 7);
548
+ break;
549
+ }
550
+ }
551
+ return message;
552
+ };
553
+
554
+ /**
555
+ * Decodes an IsActivatedRequestBody message from the specified reader or buffer, length delimited.
556
+ * @function decodeDelimited
557
+ * @memberof startup.IsActivatedRequestBody
558
+ * @static
559
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
560
+ * @returns {startup.IsActivatedRequestBody} IsActivatedRequestBody
561
+ * @throws {Error} If the payload is not a reader or valid buffer
562
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
563
+ */
564
+ IsActivatedRequestBody.decodeDelimited = function decodeDelimited(reader) {
565
+ if (!(reader instanceof $Reader))
566
+ reader = new $Reader(reader);
567
+ return this.decode(reader, reader.uint32());
568
+ };
569
+
570
+ /**
571
+ * Verifies an IsActivatedRequestBody message.
572
+ * @function verify
573
+ * @memberof startup.IsActivatedRequestBody
574
+ * @static
575
+ * @param {Object.<string,*>} message Plain object to verify
576
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
577
+ */
578
+ IsActivatedRequestBody.verify = function verify(message) {
579
+ if (typeof message !== "object" || message === null)
580
+ return "object expected";
581
+ if (message.userId != null && message.hasOwnProperty("userId"))
582
+ if (!$util.isString(message.userId))
583
+ return "userId: string expected";
584
+ return null;
585
+ };
586
+
587
+ /**
588
+ * Creates an IsActivatedRequestBody message from a plain object. Also converts values to their respective internal types.
589
+ * @function fromObject
590
+ * @memberof startup.IsActivatedRequestBody
591
+ * @static
592
+ * @param {Object.<string,*>} object Plain object
593
+ * @returns {startup.IsActivatedRequestBody} IsActivatedRequestBody
594
+ */
595
+ IsActivatedRequestBody.fromObject = function fromObject(object) {
596
+ if (object instanceof $root.startup.IsActivatedRequestBody)
597
+ return object;
598
+ var message = new $root.startup.IsActivatedRequestBody();
599
+ if (object.userId != null)
600
+ message.userId = String(object.userId);
601
+ return message;
602
+ };
603
+
604
+ /**
605
+ * Creates a plain object from an IsActivatedRequestBody message. Also converts values to other types if specified.
606
+ * @function toObject
607
+ * @memberof startup.IsActivatedRequestBody
608
+ * @static
609
+ * @param {startup.IsActivatedRequestBody} message IsActivatedRequestBody
610
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
611
+ * @returns {Object.<string,*>} Plain object
612
+ */
613
+ IsActivatedRequestBody.toObject = function toObject(message, options) {
614
+ if (!options)
615
+ options = {};
616
+ var object = {};
617
+ if (options.defaults)
618
+ object.userId = "";
619
+ if (message.userId != null && message.hasOwnProperty("userId"))
620
+ object.userId = message.userId;
621
+ return object;
622
+ };
623
+
624
+ /**
625
+ * Converts this IsActivatedRequestBody to JSON.
626
+ * @function toJSON
627
+ * @memberof startup.IsActivatedRequestBody
628
+ * @instance
629
+ * @returns {Object.<string,*>} JSON object
630
+ */
631
+ IsActivatedRequestBody.prototype.toJSON = function toJSON() {
632
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
633
+ };
634
+
635
+ return IsActivatedRequestBody;
636
+ })();
637
+
638
+ startup.PassOnlyRequestBody = (function() {
639
+
640
+ /**
641
+ * Properties of a PassOnlyRequestBody.
642
+ * @memberof startup
643
+ * @interface IPassOnlyRequestBody
644
+ * @property {string|null} [pass] PassOnlyRequestBody pass
645
+ */
646
+
647
+ /**
648
+ * Constructs a new PassOnlyRequestBody.
649
+ * @memberof startup
650
+ * @classdesc Represents a PassOnlyRequestBody.
651
+ * @implements IPassOnlyRequestBody
652
+ * @constructor
653
+ * @param {startup.IPassOnlyRequestBody=} [properties] Properties to set
654
+ */
655
+ function PassOnlyRequestBody(properties) {
656
+ if (properties)
657
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
658
+ if (properties[keys[i]] != null)
659
+ this[keys[i]] = properties[keys[i]];
660
+ }
661
+
662
+ /**
663
+ * PassOnlyRequestBody pass.
664
+ * @member {string} pass
665
+ * @memberof startup.PassOnlyRequestBody
666
+ * @instance
667
+ */
668
+ PassOnlyRequestBody.prototype.pass = "";
669
+
670
+ /**
671
+ * Creates a new PassOnlyRequestBody instance using the specified properties.
672
+ * @function create
673
+ * @memberof startup.PassOnlyRequestBody
674
+ * @static
675
+ * @param {startup.IPassOnlyRequestBody=} [properties] Properties to set
676
+ * @returns {startup.PassOnlyRequestBody} PassOnlyRequestBody instance
677
+ */
678
+ PassOnlyRequestBody.create = function create(properties) {
679
+ return new PassOnlyRequestBody(properties);
680
+ };
681
+
682
+ /**
683
+ * Encodes the specified PassOnlyRequestBody message. Does not implicitly {@link startup.PassOnlyRequestBody.verify|verify} messages.
684
+ * @function encode
685
+ * @memberof startup.PassOnlyRequestBody
686
+ * @static
687
+ * @param {startup.IPassOnlyRequestBody} message PassOnlyRequestBody message or plain object to encode
688
+ * @param {$protobuf.Writer} [writer] Writer to encode to
689
+ * @returns {$protobuf.Writer} Writer
690
+ */
691
+ PassOnlyRequestBody.encode = function encode(message, writer) {
692
+ if (!writer)
693
+ writer = $Writer.create();
694
+ if (message.pass != null && Object.hasOwnProperty.call(message, "pass"))
695
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.pass);
696
+ return writer;
697
+ };
698
+
699
+ /**
700
+ * Encodes the specified PassOnlyRequestBody message, length delimited. Does not implicitly {@link startup.PassOnlyRequestBody.verify|verify} messages.
701
+ * @function encodeDelimited
702
+ * @memberof startup.PassOnlyRequestBody
703
+ * @static
704
+ * @param {startup.IPassOnlyRequestBody} message PassOnlyRequestBody message or plain object to encode
705
+ * @param {$protobuf.Writer} [writer] Writer to encode to
706
+ * @returns {$protobuf.Writer} Writer
707
+ */
708
+ PassOnlyRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
709
+ return this.encode(message, writer).ldelim();
710
+ };
711
+
712
+ /**
713
+ * Decodes a PassOnlyRequestBody message from the specified reader or buffer.
714
+ * @function decode
715
+ * @memberof startup.PassOnlyRequestBody
716
+ * @static
717
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
718
+ * @param {number} [length] Message length if known beforehand
719
+ * @returns {startup.PassOnlyRequestBody} PassOnlyRequestBody
720
+ * @throws {Error} If the payload is not a reader or valid buffer
721
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
722
+ */
723
+ PassOnlyRequestBody.decode = function decode(reader, length) {
724
+ if (!(reader instanceof $Reader))
725
+ reader = $Reader.create(reader);
726
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.PassOnlyRequestBody();
727
+ while (reader.pos < end) {
728
+ var tag = reader.uint32();
729
+ switch (tag >>> 3) {
730
+ case 1:
731
+ message.pass = reader.string();
732
+ break;
733
+ default:
734
+ reader.skipType(tag & 7);
735
+ break;
736
+ }
737
+ }
738
+ return message;
739
+ };
740
+
741
+ /**
742
+ * Decodes a PassOnlyRequestBody message from the specified reader or buffer, length delimited.
743
+ * @function decodeDelimited
744
+ * @memberof startup.PassOnlyRequestBody
745
+ * @static
746
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
747
+ * @returns {startup.PassOnlyRequestBody} PassOnlyRequestBody
748
+ * @throws {Error} If the payload is not a reader or valid buffer
749
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
750
+ */
751
+ PassOnlyRequestBody.decodeDelimited = function decodeDelimited(reader) {
752
+ if (!(reader instanceof $Reader))
753
+ reader = new $Reader(reader);
754
+ return this.decode(reader, reader.uint32());
755
+ };
756
+
757
+ /**
758
+ * Verifies a PassOnlyRequestBody message.
759
+ * @function verify
760
+ * @memberof startup.PassOnlyRequestBody
761
+ * @static
762
+ * @param {Object.<string,*>} message Plain object to verify
763
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
764
+ */
765
+ PassOnlyRequestBody.verify = function verify(message) {
766
+ if (typeof message !== "object" || message === null)
767
+ return "object expected";
768
+ if (message.pass != null && message.hasOwnProperty("pass"))
769
+ if (!$util.isString(message.pass))
770
+ return "pass: string expected";
771
+ return null;
772
+ };
773
+
774
+ /**
775
+ * Creates a PassOnlyRequestBody message from a plain object. Also converts values to their respective internal types.
776
+ * @function fromObject
777
+ * @memberof startup.PassOnlyRequestBody
778
+ * @static
779
+ * @param {Object.<string,*>} object Plain object
780
+ * @returns {startup.PassOnlyRequestBody} PassOnlyRequestBody
781
+ */
782
+ PassOnlyRequestBody.fromObject = function fromObject(object) {
783
+ if (object instanceof $root.startup.PassOnlyRequestBody)
784
+ return object;
785
+ var message = new $root.startup.PassOnlyRequestBody();
786
+ if (object.pass != null)
787
+ message.pass = String(object.pass);
788
+ return message;
789
+ };
790
+
791
+ /**
792
+ * Creates a plain object from a PassOnlyRequestBody message. Also converts values to other types if specified.
793
+ * @function toObject
794
+ * @memberof startup.PassOnlyRequestBody
795
+ * @static
796
+ * @param {startup.PassOnlyRequestBody} message PassOnlyRequestBody
797
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
798
+ * @returns {Object.<string,*>} Plain object
799
+ */
800
+ PassOnlyRequestBody.toObject = function toObject(message, options) {
801
+ if (!options)
802
+ options = {};
803
+ var object = {};
804
+ if (options.defaults)
805
+ object.pass = "";
806
+ if (message.pass != null && message.hasOwnProperty("pass"))
807
+ object.pass = message.pass;
808
+ return object;
809
+ };
810
+
811
+ /**
812
+ * Converts this PassOnlyRequestBody to JSON.
813
+ * @function toJSON
814
+ * @memberof startup.PassOnlyRequestBody
815
+ * @instance
816
+ * @returns {Object.<string,*>} JSON object
817
+ */
818
+ PassOnlyRequestBody.prototype.toJSON = function toJSON() {
819
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
820
+ };
821
+
822
+ return PassOnlyRequestBody;
823
+ })();
824
+
825
+ startup.StartLoginToRemoteStorageRequestBody = (function() {
826
+
827
+ /**
828
+ * Properties of a StartLoginToRemoteStorageRequestBody.
829
+ * @memberof startup
830
+ * @interface IStartLoginToRemoteStorageRequestBody
831
+ * @property {string|null} [address] StartLoginToRemoteStorageRequestBody address
832
+ */
833
+
834
+ /**
835
+ * Constructs a new StartLoginToRemoteStorageRequestBody.
836
+ * @memberof startup
837
+ * @classdesc Represents a StartLoginToRemoteStorageRequestBody.
838
+ * @implements IStartLoginToRemoteStorageRequestBody
839
+ * @constructor
840
+ * @param {startup.IStartLoginToRemoteStorageRequestBody=} [properties] Properties to set
841
+ */
842
+ function StartLoginToRemoteStorageRequestBody(properties) {
843
+ if (properties)
844
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
845
+ if (properties[keys[i]] != null)
846
+ this[keys[i]] = properties[keys[i]];
847
+ }
848
+
849
+ /**
850
+ * StartLoginToRemoteStorageRequestBody address.
851
+ * @member {string} address
852
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
853
+ * @instance
854
+ */
855
+ StartLoginToRemoteStorageRequestBody.prototype.address = "";
856
+
857
+ /**
858
+ * Creates a new StartLoginToRemoteStorageRequestBody instance using the specified properties.
859
+ * @function create
860
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
861
+ * @static
862
+ * @param {startup.IStartLoginToRemoteStorageRequestBody=} [properties] Properties to set
863
+ * @returns {startup.StartLoginToRemoteStorageRequestBody} StartLoginToRemoteStorageRequestBody instance
864
+ */
865
+ StartLoginToRemoteStorageRequestBody.create = function create(properties) {
866
+ return new StartLoginToRemoteStorageRequestBody(properties);
867
+ };
868
+
869
+ /**
870
+ * Encodes the specified StartLoginToRemoteStorageRequestBody message. Does not implicitly {@link startup.StartLoginToRemoteStorageRequestBody.verify|verify} messages.
871
+ * @function encode
872
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
873
+ * @static
874
+ * @param {startup.IStartLoginToRemoteStorageRequestBody} message StartLoginToRemoteStorageRequestBody message or plain object to encode
875
+ * @param {$protobuf.Writer} [writer] Writer to encode to
876
+ * @returns {$protobuf.Writer} Writer
877
+ */
878
+ StartLoginToRemoteStorageRequestBody.encode = function encode(message, writer) {
879
+ if (!writer)
880
+ writer = $Writer.create();
881
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
882
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.address);
883
+ return writer;
884
+ };
885
+
886
+ /**
887
+ * Encodes the specified StartLoginToRemoteStorageRequestBody message, length delimited. Does not implicitly {@link startup.StartLoginToRemoteStorageRequestBody.verify|verify} messages.
888
+ * @function encodeDelimited
889
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
890
+ * @static
891
+ * @param {startup.IStartLoginToRemoteStorageRequestBody} message StartLoginToRemoteStorageRequestBody message or plain object to encode
892
+ * @param {$protobuf.Writer} [writer] Writer to encode to
893
+ * @returns {$protobuf.Writer} Writer
894
+ */
895
+ StartLoginToRemoteStorageRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
896
+ return this.encode(message, writer).ldelim();
897
+ };
898
+
899
+ /**
900
+ * Decodes a StartLoginToRemoteStorageRequestBody message from the specified reader or buffer.
901
+ * @function decode
902
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
903
+ * @static
904
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
905
+ * @param {number} [length] Message length if known beforehand
906
+ * @returns {startup.StartLoginToRemoteStorageRequestBody} StartLoginToRemoteStorageRequestBody
907
+ * @throws {Error} If the payload is not a reader or valid buffer
908
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
909
+ */
910
+ StartLoginToRemoteStorageRequestBody.decode = function decode(reader, length) {
911
+ if (!(reader instanceof $Reader))
912
+ reader = $Reader.create(reader);
913
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.StartLoginToRemoteStorageRequestBody();
914
+ while (reader.pos < end) {
915
+ var tag = reader.uint32();
916
+ switch (tag >>> 3) {
917
+ case 1:
918
+ message.address = reader.string();
919
+ break;
920
+ default:
921
+ reader.skipType(tag & 7);
922
+ break;
923
+ }
924
+ }
925
+ return message;
926
+ };
927
+
928
+ /**
929
+ * Decodes a StartLoginToRemoteStorageRequestBody message from the specified reader or buffer, length delimited.
930
+ * @function decodeDelimited
931
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
932
+ * @static
933
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
934
+ * @returns {startup.StartLoginToRemoteStorageRequestBody} StartLoginToRemoteStorageRequestBody
935
+ * @throws {Error} If the payload is not a reader or valid buffer
936
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
937
+ */
938
+ StartLoginToRemoteStorageRequestBody.decodeDelimited = function decodeDelimited(reader) {
939
+ if (!(reader instanceof $Reader))
940
+ reader = new $Reader(reader);
941
+ return this.decode(reader, reader.uint32());
942
+ };
943
+
944
+ /**
945
+ * Verifies a StartLoginToRemoteStorageRequestBody message.
946
+ * @function verify
947
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
948
+ * @static
949
+ * @param {Object.<string,*>} message Plain object to verify
950
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
951
+ */
952
+ StartLoginToRemoteStorageRequestBody.verify = function verify(message) {
953
+ if (typeof message !== "object" || message === null)
954
+ return "object expected";
955
+ if (message.address != null && message.hasOwnProperty("address"))
956
+ if (!$util.isString(message.address))
957
+ return "address: string expected";
958
+ return null;
959
+ };
960
+
961
+ /**
962
+ * Creates a StartLoginToRemoteStorageRequestBody message from a plain object. Also converts values to their respective internal types.
963
+ * @function fromObject
964
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
965
+ * @static
966
+ * @param {Object.<string,*>} object Plain object
967
+ * @returns {startup.StartLoginToRemoteStorageRequestBody} StartLoginToRemoteStorageRequestBody
968
+ */
969
+ StartLoginToRemoteStorageRequestBody.fromObject = function fromObject(object) {
970
+ if (object instanceof $root.startup.StartLoginToRemoteStorageRequestBody)
971
+ return object;
972
+ var message = new $root.startup.StartLoginToRemoteStorageRequestBody();
973
+ if (object.address != null)
974
+ message.address = String(object.address);
975
+ return message;
976
+ };
977
+
978
+ /**
979
+ * Creates a plain object from a StartLoginToRemoteStorageRequestBody message. Also converts values to other types if specified.
980
+ * @function toObject
981
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
982
+ * @static
983
+ * @param {startup.StartLoginToRemoteStorageRequestBody} message StartLoginToRemoteStorageRequestBody
984
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
985
+ * @returns {Object.<string,*>} Plain object
986
+ */
987
+ StartLoginToRemoteStorageRequestBody.toObject = function toObject(message, options) {
988
+ if (!options)
989
+ options = {};
990
+ var object = {};
991
+ if (options.defaults)
992
+ object.address = "";
993
+ if (message.address != null && message.hasOwnProperty("address"))
994
+ object.address = message.address;
995
+ return object;
996
+ };
997
+
998
+ /**
999
+ * Converts this StartLoginToRemoteStorageRequestBody to JSON.
1000
+ * @function toJSON
1001
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
1002
+ * @instance
1003
+ * @returns {Object.<string,*>} JSON object
1004
+ */
1005
+ StartLoginToRemoteStorageRequestBody.prototype.toJSON = function toJSON() {
1006
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1007
+ };
1008
+
1009
+ return StartLoginToRemoteStorageRequestBody;
1010
+ })();
1011
+
1012
+ startup.ProgressValue = (function() {
1013
+
1014
+ /**
1015
+ * Properties of a ProgressValue.
1016
+ * @memberof startup
1017
+ * @interface IProgressValue
1018
+ * @property {number|null} [p] ProgressValue p
1019
+ * @property {common.IBooleanValue|null} [decrResult] ProgressValue decrResult
1020
+ */
1021
+
1022
+ /**
1023
+ * Constructs a new ProgressValue.
1024
+ * @memberof startup
1025
+ * @classdesc Represents a ProgressValue.
1026
+ * @implements IProgressValue
1027
+ * @constructor
1028
+ * @param {startup.IProgressValue=} [properties] Properties to set
1029
+ */
1030
+ function ProgressValue(properties) {
1031
+ if (properties)
1032
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1033
+ if (properties[keys[i]] != null)
1034
+ this[keys[i]] = properties[keys[i]];
1035
+ }
1036
+
1037
+ /**
1038
+ * ProgressValue p.
1039
+ * @member {number} p
1040
+ * @memberof startup.ProgressValue
1041
+ * @instance
1042
+ */
1043
+ ProgressValue.prototype.p = 0;
1044
+
1045
+ /**
1046
+ * ProgressValue decrResult.
1047
+ * @member {common.IBooleanValue|null|undefined} decrResult
1048
+ * @memberof startup.ProgressValue
1049
+ * @instance
1050
+ */
1051
+ ProgressValue.prototype.decrResult = null;
1052
+
1053
+ /**
1054
+ * Creates a new ProgressValue instance using the specified properties.
1055
+ * @function create
1056
+ * @memberof startup.ProgressValue
1057
+ * @static
1058
+ * @param {startup.IProgressValue=} [properties] Properties to set
1059
+ * @returns {startup.ProgressValue} ProgressValue instance
1060
+ */
1061
+ ProgressValue.create = function create(properties) {
1062
+ return new ProgressValue(properties);
1063
+ };
1064
+
1065
+ /**
1066
+ * Encodes the specified ProgressValue message. Does not implicitly {@link startup.ProgressValue.verify|verify} messages.
1067
+ * @function encode
1068
+ * @memberof startup.ProgressValue
1069
+ * @static
1070
+ * @param {startup.IProgressValue} message ProgressValue message or plain object to encode
1071
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1072
+ * @returns {$protobuf.Writer} Writer
1073
+ */
1074
+ ProgressValue.encode = function encode(message, writer) {
1075
+ if (!writer)
1076
+ writer = $Writer.create();
1077
+ if (message.p != null && Object.hasOwnProperty.call(message, "p"))
1078
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.p);
1079
+ if (message.decrResult != null && Object.hasOwnProperty.call(message, "decrResult"))
1080
+ $root.common.BooleanValue.encode(message.decrResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
1081
+ return writer;
1082
+ };
1083
+
1084
+ /**
1085
+ * Encodes the specified ProgressValue message, length delimited. Does not implicitly {@link startup.ProgressValue.verify|verify} messages.
1086
+ * @function encodeDelimited
1087
+ * @memberof startup.ProgressValue
1088
+ * @static
1089
+ * @param {startup.IProgressValue} message ProgressValue message or plain object to encode
1090
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1091
+ * @returns {$protobuf.Writer} Writer
1092
+ */
1093
+ ProgressValue.encodeDelimited = function encodeDelimited(message, writer) {
1094
+ return this.encode(message, writer).ldelim();
1095
+ };
1096
+
1097
+ /**
1098
+ * Decodes a ProgressValue message from the specified reader or buffer.
1099
+ * @function decode
1100
+ * @memberof startup.ProgressValue
1101
+ * @static
1102
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1103
+ * @param {number} [length] Message length if known beforehand
1104
+ * @returns {startup.ProgressValue} ProgressValue
1105
+ * @throws {Error} If the payload is not a reader or valid buffer
1106
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1107
+ */
1108
+ ProgressValue.decode = function decode(reader, length) {
1109
+ if (!(reader instanceof $Reader))
1110
+ reader = $Reader.create(reader);
1111
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.ProgressValue();
1112
+ while (reader.pos < end) {
1113
+ var tag = reader.uint32();
1114
+ switch (tag >>> 3) {
1115
+ case 1:
1116
+ message.p = reader.float();
1117
+ break;
1118
+ case 2:
1119
+ message.decrResult = $root.common.BooleanValue.decode(reader, reader.uint32());
1120
+ break;
1121
+ default:
1122
+ reader.skipType(tag & 7);
1123
+ break;
1124
+ }
1125
+ }
1126
+ return message;
1127
+ };
1128
+
1129
+ /**
1130
+ * Decodes a ProgressValue message from the specified reader or buffer, length delimited.
1131
+ * @function decodeDelimited
1132
+ * @memberof startup.ProgressValue
1133
+ * @static
1134
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1135
+ * @returns {startup.ProgressValue} ProgressValue
1136
+ * @throws {Error} If the payload is not a reader or valid buffer
1137
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1138
+ */
1139
+ ProgressValue.decodeDelimited = function decodeDelimited(reader) {
1140
+ if (!(reader instanceof $Reader))
1141
+ reader = new $Reader(reader);
1142
+ return this.decode(reader, reader.uint32());
1143
+ };
1144
+
1145
+ /**
1146
+ * Verifies a ProgressValue message.
1147
+ * @function verify
1148
+ * @memberof startup.ProgressValue
1149
+ * @static
1150
+ * @param {Object.<string,*>} message Plain object to verify
1151
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1152
+ */
1153
+ ProgressValue.verify = function verify(message) {
1154
+ if (typeof message !== "object" || message === null)
1155
+ return "object expected";
1156
+ if (message.p != null && message.hasOwnProperty("p"))
1157
+ if (typeof message.p !== "number")
1158
+ return "p: number expected";
1159
+ if (message.decrResult != null && message.hasOwnProperty("decrResult")) {
1160
+ var error = $root.common.BooleanValue.verify(message.decrResult);
1161
+ if (error)
1162
+ return "decrResult." + error;
1163
+ }
1164
+ return null;
1165
+ };
1166
+
1167
+ /**
1168
+ * Creates a ProgressValue message from a plain object. Also converts values to their respective internal types.
1169
+ * @function fromObject
1170
+ * @memberof startup.ProgressValue
1171
+ * @static
1172
+ * @param {Object.<string,*>} object Plain object
1173
+ * @returns {startup.ProgressValue} ProgressValue
1174
+ */
1175
+ ProgressValue.fromObject = function fromObject(object) {
1176
+ if (object instanceof $root.startup.ProgressValue)
1177
+ return object;
1178
+ var message = new $root.startup.ProgressValue();
1179
+ if (object.p != null)
1180
+ message.p = Number(object.p);
1181
+ if (object.decrResult != null) {
1182
+ if (typeof object.decrResult !== "object")
1183
+ throw TypeError(".startup.ProgressValue.decrResult: object expected");
1184
+ message.decrResult = $root.common.BooleanValue.fromObject(object.decrResult);
1185
+ }
1186
+ return message;
1187
+ };
1188
+
1189
+ /**
1190
+ * Creates a plain object from a ProgressValue message. Also converts values to other types if specified.
1191
+ * @function toObject
1192
+ * @memberof startup.ProgressValue
1193
+ * @static
1194
+ * @param {startup.ProgressValue} message ProgressValue
1195
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1196
+ * @returns {Object.<string,*>} Plain object
1197
+ */
1198
+ ProgressValue.toObject = function toObject(message, options) {
1199
+ if (!options)
1200
+ options = {};
1201
+ var object = {};
1202
+ if (options.defaults) {
1203
+ object.p = 0;
1204
+ object.decrResult = null;
1205
+ }
1206
+ if (message.p != null && message.hasOwnProperty("p"))
1207
+ object.p = options.json && !isFinite(message.p) ? String(message.p) : message.p;
1208
+ if (message.decrResult != null && message.hasOwnProperty("decrResult"))
1209
+ object.decrResult = $root.common.BooleanValue.toObject(message.decrResult, options);
1210
+ return object;
1211
+ };
1212
+
1213
+ /**
1214
+ * Converts this ProgressValue to JSON.
1215
+ * @function toJSON
1216
+ * @memberof startup.ProgressValue
1217
+ * @instance
1218
+ * @returns {Object.<string,*>} JSON object
1219
+ */
1220
+ ProgressValue.prototype.toJSON = function toJSON() {
1221
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1222
+ };
1223
+
1224
+ return ProgressValue;
1225
+ })();
1226
+
1227
+ startup.UseExistingStorageRequestBody = (function() {
1228
+
1229
+ /**
1230
+ * Properties of a UseExistingStorageRequestBody.
1231
+ * @memberof startup
1232
+ * @interface IUseExistingStorageRequestBody
1233
+ * @property {string|null} [address] UseExistingStorageRequestBody address
1234
+ * @property {string|null} [pass] UseExistingStorageRequestBody pass
1235
+ */
1236
+
1237
+ /**
1238
+ * Constructs a new UseExistingStorageRequestBody.
1239
+ * @memberof startup
1240
+ * @classdesc Represents a UseExistingStorageRequestBody.
1241
+ * @implements IUseExistingStorageRequestBody
1242
+ * @constructor
1243
+ * @param {startup.IUseExistingStorageRequestBody=} [properties] Properties to set
1244
+ */
1245
+ function UseExistingStorageRequestBody(properties) {
1246
+ if (properties)
1247
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1248
+ if (properties[keys[i]] != null)
1249
+ this[keys[i]] = properties[keys[i]];
1250
+ }
1251
+
1252
+ /**
1253
+ * UseExistingStorageRequestBody address.
1254
+ * @member {string} address
1255
+ * @memberof startup.UseExistingStorageRequestBody
1256
+ * @instance
1257
+ */
1258
+ UseExistingStorageRequestBody.prototype.address = "";
1259
+
1260
+ /**
1261
+ * UseExistingStorageRequestBody pass.
1262
+ * @member {string} pass
1263
+ * @memberof startup.UseExistingStorageRequestBody
1264
+ * @instance
1265
+ */
1266
+ UseExistingStorageRequestBody.prototype.pass = "";
1267
+
1268
+ /**
1269
+ * Creates a new UseExistingStorageRequestBody instance using the specified properties.
1270
+ * @function create
1271
+ * @memberof startup.UseExistingStorageRequestBody
1272
+ * @static
1273
+ * @param {startup.IUseExistingStorageRequestBody=} [properties] Properties to set
1274
+ * @returns {startup.UseExistingStorageRequestBody} UseExistingStorageRequestBody instance
1275
+ */
1276
+ UseExistingStorageRequestBody.create = function create(properties) {
1277
+ return new UseExistingStorageRequestBody(properties);
1278
+ };
1279
+
1280
+ /**
1281
+ * Encodes the specified UseExistingStorageRequestBody message. Does not implicitly {@link startup.UseExistingStorageRequestBody.verify|verify} messages.
1282
+ * @function encode
1283
+ * @memberof startup.UseExistingStorageRequestBody
1284
+ * @static
1285
+ * @param {startup.IUseExistingStorageRequestBody} message UseExistingStorageRequestBody message or plain object to encode
1286
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1287
+ * @returns {$protobuf.Writer} Writer
1288
+ */
1289
+ UseExistingStorageRequestBody.encode = function encode(message, writer) {
1290
+ if (!writer)
1291
+ writer = $Writer.create();
1292
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
1293
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.address);
1294
+ if (message.pass != null && Object.hasOwnProperty.call(message, "pass"))
1295
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pass);
1296
+ return writer;
1297
+ };
1298
+
1299
+ /**
1300
+ * Encodes the specified UseExistingStorageRequestBody message, length delimited. Does not implicitly {@link startup.UseExistingStorageRequestBody.verify|verify} messages.
1301
+ * @function encodeDelimited
1302
+ * @memberof startup.UseExistingStorageRequestBody
1303
+ * @static
1304
+ * @param {startup.IUseExistingStorageRequestBody} message UseExistingStorageRequestBody message or plain object to encode
1305
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1306
+ * @returns {$protobuf.Writer} Writer
1307
+ */
1308
+ UseExistingStorageRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
1309
+ return this.encode(message, writer).ldelim();
1310
+ };
1311
+
1312
+ /**
1313
+ * Decodes a UseExistingStorageRequestBody message from the specified reader or buffer.
1314
+ * @function decode
1315
+ * @memberof startup.UseExistingStorageRequestBody
1316
+ * @static
1317
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1318
+ * @param {number} [length] Message length if known beforehand
1319
+ * @returns {startup.UseExistingStorageRequestBody} UseExistingStorageRequestBody
1320
+ * @throws {Error} If the payload is not a reader or valid buffer
1321
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1322
+ */
1323
+ UseExistingStorageRequestBody.decode = function decode(reader, length) {
1324
+ if (!(reader instanceof $Reader))
1325
+ reader = $Reader.create(reader);
1326
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.UseExistingStorageRequestBody();
1327
+ while (reader.pos < end) {
1328
+ var tag = reader.uint32();
1329
+ switch (tag >>> 3) {
1330
+ case 1:
1331
+ message.address = reader.string();
1332
+ break;
1333
+ case 2:
1334
+ message.pass = reader.string();
1335
+ break;
1336
+ default:
1337
+ reader.skipType(tag & 7);
1338
+ break;
1339
+ }
1340
+ }
1341
+ return message;
1342
+ };
1343
+
1344
+ /**
1345
+ * Decodes a UseExistingStorageRequestBody message from the specified reader or buffer, length delimited.
1346
+ * @function decodeDelimited
1347
+ * @memberof startup.UseExistingStorageRequestBody
1348
+ * @static
1349
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1350
+ * @returns {startup.UseExistingStorageRequestBody} UseExistingStorageRequestBody
1351
+ * @throws {Error} If the payload is not a reader or valid buffer
1352
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1353
+ */
1354
+ UseExistingStorageRequestBody.decodeDelimited = function decodeDelimited(reader) {
1355
+ if (!(reader instanceof $Reader))
1356
+ reader = new $Reader(reader);
1357
+ return this.decode(reader, reader.uint32());
1358
+ };
1359
+
1360
+ /**
1361
+ * Verifies a UseExistingStorageRequestBody message.
1362
+ * @function verify
1363
+ * @memberof startup.UseExistingStorageRequestBody
1364
+ * @static
1365
+ * @param {Object.<string,*>} message Plain object to verify
1366
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1367
+ */
1368
+ UseExistingStorageRequestBody.verify = function verify(message) {
1369
+ if (typeof message !== "object" || message === null)
1370
+ return "object expected";
1371
+ if (message.address != null && message.hasOwnProperty("address"))
1372
+ if (!$util.isString(message.address))
1373
+ return "address: string expected";
1374
+ if (message.pass != null && message.hasOwnProperty("pass"))
1375
+ if (!$util.isString(message.pass))
1376
+ return "pass: string expected";
1377
+ return null;
1378
+ };
1379
+
1380
+ /**
1381
+ * Creates a UseExistingStorageRequestBody message from a plain object. Also converts values to their respective internal types.
1382
+ * @function fromObject
1383
+ * @memberof startup.UseExistingStorageRequestBody
1384
+ * @static
1385
+ * @param {Object.<string,*>} object Plain object
1386
+ * @returns {startup.UseExistingStorageRequestBody} UseExistingStorageRequestBody
1387
+ */
1388
+ UseExistingStorageRequestBody.fromObject = function fromObject(object) {
1389
+ if (object instanceof $root.startup.UseExistingStorageRequestBody)
1390
+ return object;
1391
+ var message = new $root.startup.UseExistingStorageRequestBody();
1392
+ if (object.address != null)
1393
+ message.address = String(object.address);
1394
+ if (object.pass != null)
1395
+ message.pass = String(object.pass);
1396
+ return message;
1397
+ };
1398
+
1399
+ /**
1400
+ * Creates a plain object from a UseExistingStorageRequestBody message. Also converts values to other types if specified.
1401
+ * @function toObject
1402
+ * @memberof startup.UseExistingStorageRequestBody
1403
+ * @static
1404
+ * @param {startup.UseExistingStorageRequestBody} message UseExistingStorageRequestBody
1405
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1406
+ * @returns {Object.<string,*>} Plain object
1407
+ */
1408
+ UseExistingStorageRequestBody.toObject = function toObject(message, options) {
1409
+ if (!options)
1410
+ options = {};
1411
+ var object = {};
1412
+ if (options.defaults) {
1413
+ object.address = "";
1414
+ object.pass = "";
1415
+ }
1416
+ if (message.address != null && message.hasOwnProperty("address"))
1417
+ object.address = message.address;
1418
+ if (message.pass != null && message.hasOwnProperty("pass"))
1419
+ object.pass = message.pass;
1420
+ return object;
1421
+ };
1422
+
1423
+ /**
1424
+ * Converts this UseExistingStorageRequestBody to JSON.
1425
+ * @function toJSON
1426
+ * @memberof startup.UseExistingStorageRequestBody
1427
+ * @instance
1428
+ * @returns {Object.<string,*>} JSON object
1429
+ */
1430
+ UseExistingStorageRequestBody.prototype.toJSON = function toJSON() {
1431
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1432
+ };
1433
+
1434
+ return UseExistingStorageRequestBody;
1435
+ })();
1436
+
1437
+ return startup;
1438
+ })();
1439
+
1440
+ $root.common = (function() {
1441
+
1442
+ /**
1443
+ * Namespace common.
1444
+ * @exports common
1445
+ * @namespace
1446
+ */
1447
+ var common = {};
1448
+
1449
+ common.ObjectReference = (function() {
1450
+
1451
+ /**
1452
+ * Properties of an ObjectReference.
1453
+ * @memberof common
1454
+ * @interface IObjectReference
1455
+ * @property {string|null} [objType] ObjectReference objType
1456
+ * @property {Array.<string>|null} [path] ObjectReference path
1457
+ */
1458
+
1459
+ /**
1460
+ * Constructs a new ObjectReference.
1461
+ * @memberof common
1462
+ * @classdesc Represents an ObjectReference.
1463
+ * @implements IObjectReference
1464
+ * @constructor
1465
+ * @param {common.IObjectReference=} [properties] Properties to set
1466
+ */
1467
+ function ObjectReference(properties) {
1468
+ this.path = [];
1469
+ if (properties)
1470
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1471
+ if (properties[keys[i]] != null)
1472
+ this[keys[i]] = properties[keys[i]];
1473
+ }
1474
+
1475
+ /**
1476
+ * ObjectReference objType.
1477
+ * @member {string} objType
1478
+ * @memberof common.ObjectReference
1479
+ * @instance
1480
+ */
1481
+ ObjectReference.prototype.objType = "";
1482
+
1483
+ /**
1484
+ * ObjectReference path.
1485
+ * @member {Array.<string>} path
1486
+ * @memberof common.ObjectReference
1487
+ * @instance
1488
+ */
1489
+ ObjectReference.prototype.path = $util.emptyArray;
1490
+
1491
+ /**
1492
+ * Creates a new ObjectReference instance using the specified properties.
1493
+ * @function create
1494
+ * @memberof common.ObjectReference
1495
+ * @static
1496
+ * @param {common.IObjectReference=} [properties] Properties to set
1497
+ * @returns {common.ObjectReference} ObjectReference instance
1498
+ */
1499
+ ObjectReference.create = function create(properties) {
1500
+ return new ObjectReference(properties);
1501
+ };
1502
+
1503
+ /**
1504
+ * Encodes the specified ObjectReference message. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
1505
+ * @function encode
1506
+ * @memberof common.ObjectReference
1507
+ * @static
1508
+ * @param {common.IObjectReference} message ObjectReference message or plain object to encode
1509
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1510
+ * @returns {$protobuf.Writer} Writer
1511
+ */
1512
+ ObjectReference.encode = function encode(message, writer) {
1513
+ if (!writer)
1514
+ writer = $Writer.create();
1515
+ if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
1516
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.objType);
1517
+ if (message.path != null && message.path.length)
1518
+ for (var i = 0; i < message.path.length; ++i)
1519
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path[i]);
1520
+ return writer;
1521
+ };
1522
+
1523
+ /**
1524
+ * Encodes the specified ObjectReference message, length delimited. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
1525
+ * @function encodeDelimited
1526
+ * @memberof common.ObjectReference
1527
+ * @static
1528
+ * @param {common.IObjectReference} message ObjectReference message or plain object to encode
1529
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1530
+ * @returns {$protobuf.Writer} Writer
1531
+ */
1532
+ ObjectReference.encodeDelimited = function encodeDelimited(message, writer) {
1533
+ return this.encode(message, writer).ldelim();
1534
+ };
1535
+
1536
+ /**
1537
+ * Decodes an ObjectReference message from the specified reader or buffer.
1538
+ * @function decode
1539
+ * @memberof common.ObjectReference
1540
+ * @static
1541
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1542
+ * @param {number} [length] Message length if known beforehand
1543
+ * @returns {common.ObjectReference} ObjectReference
1544
+ * @throws {Error} If the payload is not a reader or valid buffer
1545
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1546
+ */
1547
+ ObjectReference.decode = function decode(reader, length) {
1548
+ if (!(reader instanceof $Reader))
1549
+ reader = $Reader.create(reader);
1550
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ObjectReference();
1551
+ while (reader.pos < end) {
1552
+ var tag = reader.uint32();
1553
+ switch (tag >>> 3) {
1554
+ case 1:
1555
+ message.objType = reader.string();
1556
+ break;
1557
+ case 2:
1558
+ if (!(message.path && message.path.length))
1559
+ message.path = [];
1560
+ message.path.push(reader.string());
1561
+ break;
1562
+ default:
1563
+ reader.skipType(tag & 7);
1564
+ break;
1565
+ }
1566
+ }
1567
+ return message;
1568
+ };
1569
+
1570
+ /**
1571
+ * Decodes an ObjectReference message from the specified reader or buffer, length delimited.
1572
+ * @function decodeDelimited
1573
+ * @memberof common.ObjectReference
1574
+ * @static
1575
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1576
+ * @returns {common.ObjectReference} ObjectReference
1577
+ * @throws {Error} If the payload is not a reader or valid buffer
1578
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1579
+ */
1580
+ ObjectReference.decodeDelimited = function decodeDelimited(reader) {
1581
+ if (!(reader instanceof $Reader))
1582
+ reader = new $Reader(reader);
1583
+ return this.decode(reader, reader.uint32());
1584
+ };
1585
+
1586
+ /**
1587
+ * Verifies an ObjectReference message.
1588
+ * @function verify
1589
+ * @memberof common.ObjectReference
1590
+ * @static
1591
+ * @param {Object.<string,*>} message Plain object to verify
1592
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1593
+ */
1594
+ ObjectReference.verify = function verify(message) {
1595
+ if (typeof message !== "object" || message === null)
1596
+ return "object expected";
1597
+ if (message.objType != null && message.hasOwnProperty("objType"))
1598
+ if (!$util.isString(message.objType))
1599
+ return "objType: string expected";
1600
+ if (message.path != null && message.hasOwnProperty("path")) {
1601
+ if (!Array.isArray(message.path))
1602
+ return "path: array expected";
1603
+ for (var i = 0; i < message.path.length; ++i)
1604
+ if (!$util.isString(message.path[i]))
1605
+ return "path: string[] expected";
1606
+ }
1607
+ return null;
1608
+ };
1609
+
1610
+ /**
1611
+ * Creates an ObjectReference message from a plain object. Also converts values to their respective internal types.
1612
+ * @function fromObject
1613
+ * @memberof common.ObjectReference
1614
+ * @static
1615
+ * @param {Object.<string,*>} object Plain object
1616
+ * @returns {common.ObjectReference} ObjectReference
1617
+ */
1618
+ ObjectReference.fromObject = function fromObject(object) {
1619
+ if (object instanceof $root.common.ObjectReference)
1620
+ return object;
1621
+ var message = new $root.common.ObjectReference();
1622
+ if (object.objType != null)
1623
+ message.objType = String(object.objType);
1624
+ if (object.path) {
1625
+ if (!Array.isArray(object.path))
1626
+ throw TypeError(".common.ObjectReference.path: array expected");
1627
+ message.path = [];
1628
+ for (var i = 0; i < object.path.length; ++i)
1629
+ message.path[i] = String(object.path[i]);
1630
+ }
1631
+ return message;
1632
+ };
1633
+
1634
+ /**
1635
+ * Creates a plain object from an ObjectReference message. Also converts values to other types if specified.
1636
+ * @function toObject
1637
+ * @memberof common.ObjectReference
1638
+ * @static
1639
+ * @param {common.ObjectReference} message ObjectReference
1640
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1641
+ * @returns {Object.<string,*>} Plain object
1642
+ */
1643
+ ObjectReference.toObject = function toObject(message, options) {
1644
+ if (!options)
1645
+ options = {};
1646
+ var object = {};
1647
+ if (options.arrays || options.defaults)
1648
+ object.path = [];
1649
+ if (options.defaults)
1650
+ object.objType = "";
1651
+ if (message.objType != null && message.hasOwnProperty("objType"))
1652
+ object.objType = message.objType;
1653
+ if (message.path && message.path.length) {
1654
+ object.path = [];
1655
+ for (var j = 0; j < message.path.length; ++j)
1656
+ object.path[j] = message.path[j];
1657
+ }
1658
+ return object;
1659
+ };
1660
+
1661
+ /**
1662
+ * Converts this ObjectReference to JSON.
1663
+ * @function toJSON
1664
+ * @memberof common.ObjectReference
1665
+ * @instance
1666
+ * @returns {Object.<string,*>} JSON object
1667
+ */
1668
+ ObjectReference.prototype.toJSON = function toJSON() {
1669
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1670
+ };
1671
+
1672
+ return ObjectReference;
1673
+ })();
1674
+
1675
+ common.BooleanValue = (function() {
1676
+
1677
+ /**
1678
+ * Properties of a BooleanValue.
1679
+ * @memberof common
1680
+ * @interface IBooleanValue
1681
+ * @property {boolean|null} [value] BooleanValue value
1682
+ */
1683
+
1684
+ /**
1685
+ * Constructs a new BooleanValue.
1686
+ * @memberof common
1687
+ * @classdesc Represents a BooleanValue.
1688
+ * @implements IBooleanValue
1689
+ * @constructor
1690
+ * @param {common.IBooleanValue=} [properties] Properties to set
1691
+ */
1692
+ function BooleanValue(properties) {
1693
+ if (properties)
1694
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1695
+ if (properties[keys[i]] != null)
1696
+ this[keys[i]] = properties[keys[i]];
1697
+ }
1698
+
1699
+ /**
1700
+ * BooleanValue value.
1701
+ * @member {boolean} value
1702
+ * @memberof common.BooleanValue
1703
+ * @instance
1704
+ */
1705
+ BooleanValue.prototype.value = false;
1706
+
1707
+ /**
1708
+ * Creates a new BooleanValue instance using the specified properties.
1709
+ * @function create
1710
+ * @memberof common.BooleanValue
1711
+ * @static
1712
+ * @param {common.IBooleanValue=} [properties] Properties to set
1713
+ * @returns {common.BooleanValue} BooleanValue instance
1714
+ */
1715
+ BooleanValue.create = function create(properties) {
1716
+ return new BooleanValue(properties);
1717
+ };
1718
+
1719
+ /**
1720
+ * Encodes the specified BooleanValue message. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
1721
+ * @function encode
1722
+ * @memberof common.BooleanValue
1723
+ * @static
1724
+ * @param {common.IBooleanValue} message BooleanValue message or plain object to encode
1725
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1726
+ * @returns {$protobuf.Writer} Writer
1727
+ */
1728
+ BooleanValue.encode = function encode(message, writer) {
1729
+ if (!writer)
1730
+ writer = $Writer.create();
1731
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
1732
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
1733
+ return writer;
1734
+ };
1735
+
1736
+ /**
1737
+ * Encodes the specified BooleanValue message, length delimited. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
1738
+ * @function encodeDelimited
1739
+ * @memberof common.BooleanValue
1740
+ * @static
1741
+ * @param {common.IBooleanValue} message BooleanValue message or plain object to encode
1742
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1743
+ * @returns {$protobuf.Writer} Writer
1744
+ */
1745
+ BooleanValue.encodeDelimited = function encodeDelimited(message, writer) {
1746
+ return this.encode(message, writer).ldelim();
1747
+ };
1748
+
1749
+ /**
1750
+ * Decodes a BooleanValue message from the specified reader or buffer.
1751
+ * @function decode
1752
+ * @memberof common.BooleanValue
1753
+ * @static
1754
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1755
+ * @param {number} [length] Message length if known beforehand
1756
+ * @returns {common.BooleanValue} BooleanValue
1757
+ * @throws {Error} If the payload is not a reader or valid buffer
1758
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1759
+ */
1760
+ BooleanValue.decode = function decode(reader, length) {
1761
+ if (!(reader instanceof $Reader))
1762
+ reader = $Reader.create(reader);
1763
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BooleanValue();
1764
+ while (reader.pos < end) {
1765
+ var tag = reader.uint32();
1766
+ switch (tag >>> 3) {
1767
+ case 1:
1768
+ message.value = reader.bool();
1769
+ break;
1770
+ default:
1771
+ reader.skipType(tag & 7);
1772
+ break;
1773
+ }
1774
+ }
1775
+ return message;
1776
+ };
1777
+
1778
+ /**
1779
+ * Decodes a BooleanValue message from the specified reader or buffer, length delimited.
1780
+ * @function decodeDelimited
1781
+ * @memberof common.BooleanValue
1782
+ * @static
1783
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1784
+ * @returns {common.BooleanValue} BooleanValue
1785
+ * @throws {Error} If the payload is not a reader or valid buffer
1786
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1787
+ */
1788
+ BooleanValue.decodeDelimited = function decodeDelimited(reader) {
1789
+ if (!(reader instanceof $Reader))
1790
+ reader = new $Reader(reader);
1791
+ return this.decode(reader, reader.uint32());
1792
+ };
1793
+
1794
+ /**
1795
+ * Verifies a BooleanValue message.
1796
+ * @function verify
1797
+ * @memberof common.BooleanValue
1798
+ * @static
1799
+ * @param {Object.<string,*>} message Plain object to verify
1800
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1801
+ */
1802
+ BooleanValue.verify = function verify(message) {
1803
+ if (typeof message !== "object" || message === null)
1804
+ return "object expected";
1805
+ if (message.value != null && message.hasOwnProperty("value"))
1806
+ if (typeof message.value !== "boolean")
1807
+ return "value: boolean expected";
1808
+ return null;
1809
+ };
1810
+
1811
+ /**
1812
+ * Creates a BooleanValue message from a plain object. Also converts values to their respective internal types.
1813
+ * @function fromObject
1814
+ * @memberof common.BooleanValue
1815
+ * @static
1816
+ * @param {Object.<string,*>} object Plain object
1817
+ * @returns {common.BooleanValue} BooleanValue
1818
+ */
1819
+ BooleanValue.fromObject = function fromObject(object) {
1820
+ if (object instanceof $root.common.BooleanValue)
1821
+ return object;
1822
+ var message = new $root.common.BooleanValue();
1823
+ if (object.value != null)
1824
+ message.value = Boolean(object.value);
1825
+ return message;
1826
+ };
1827
+
1828
+ /**
1829
+ * Creates a plain object from a BooleanValue message. Also converts values to other types if specified.
1830
+ * @function toObject
1831
+ * @memberof common.BooleanValue
1832
+ * @static
1833
+ * @param {common.BooleanValue} message BooleanValue
1834
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1835
+ * @returns {Object.<string,*>} Plain object
1836
+ */
1837
+ BooleanValue.toObject = function toObject(message, options) {
1838
+ if (!options)
1839
+ options = {};
1840
+ var object = {};
1841
+ if (options.defaults)
1842
+ object.value = false;
1843
+ if (message.value != null && message.hasOwnProperty("value"))
1844
+ object.value = message.value;
1845
+ return object;
1846
+ };
1847
+
1848
+ /**
1849
+ * Converts this BooleanValue to JSON.
1850
+ * @function toJSON
1851
+ * @memberof common.BooleanValue
1852
+ * @instance
1853
+ * @returns {Object.<string,*>} JSON object
1854
+ */
1855
+ BooleanValue.prototype.toJSON = function toJSON() {
1856
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1857
+ };
1858
+
1859
+ return BooleanValue;
1860
+ })();
1861
+
1862
+ common.StringArrayValue = (function() {
1863
+
1864
+ /**
1865
+ * Properties of a StringArrayValue.
1866
+ * @memberof common
1867
+ * @interface IStringArrayValue
1868
+ * @property {Array.<string>|null} [values] StringArrayValue values
1869
+ */
1870
+
1871
+ /**
1872
+ * Constructs a new StringArrayValue.
1873
+ * @memberof common
1874
+ * @classdesc Represents a StringArrayValue.
1875
+ * @implements IStringArrayValue
1876
+ * @constructor
1877
+ * @param {common.IStringArrayValue=} [properties] Properties to set
1878
+ */
1879
+ function StringArrayValue(properties) {
1880
+ this.values = [];
1881
+ if (properties)
1882
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1883
+ if (properties[keys[i]] != null)
1884
+ this[keys[i]] = properties[keys[i]];
1885
+ }
1886
+
1887
+ /**
1888
+ * StringArrayValue values.
1889
+ * @member {Array.<string>} values
1890
+ * @memberof common.StringArrayValue
1891
+ * @instance
1892
+ */
1893
+ StringArrayValue.prototype.values = $util.emptyArray;
1894
+
1895
+ /**
1896
+ * Creates a new StringArrayValue instance using the specified properties.
1897
+ * @function create
1898
+ * @memberof common.StringArrayValue
1899
+ * @static
1900
+ * @param {common.IStringArrayValue=} [properties] Properties to set
1901
+ * @returns {common.StringArrayValue} StringArrayValue instance
1902
+ */
1903
+ StringArrayValue.create = function create(properties) {
1904
+ return new StringArrayValue(properties);
1905
+ };
1906
+
1907
+ /**
1908
+ * Encodes the specified StringArrayValue message. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
1909
+ * @function encode
1910
+ * @memberof common.StringArrayValue
1911
+ * @static
1912
+ * @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
1913
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1914
+ * @returns {$protobuf.Writer} Writer
1915
+ */
1916
+ StringArrayValue.encode = function encode(message, writer) {
1917
+ if (!writer)
1918
+ writer = $Writer.create();
1919
+ if (message.values != null && message.values.length)
1920
+ for (var i = 0; i < message.values.length; ++i)
1921
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
1922
+ return writer;
1923
+ };
1924
+
1925
+ /**
1926
+ * Encodes the specified StringArrayValue message, length delimited. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
1927
+ * @function encodeDelimited
1928
+ * @memberof common.StringArrayValue
1929
+ * @static
1930
+ * @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
1931
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1932
+ * @returns {$protobuf.Writer} Writer
1933
+ */
1934
+ StringArrayValue.encodeDelimited = function encodeDelimited(message, writer) {
1935
+ return this.encode(message, writer).ldelim();
1936
+ };
1937
+
1938
+ /**
1939
+ * Decodes a StringArrayValue message from the specified reader or buffer.
1940
+ * @function decode
1941
+ * @memberof common.StringArrayValue
1942
+ * @static
1943
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1944
+ * @param {number} [length] Message length if known beforehand
1945
+ * @returns {common.StringArrayValue} StringArrayValue
1946
+ * @throws {Error} If the payload is not a reader or valid buffer
1947
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1948
+ */
1949
+ StringArrayValue.decode = function decode(reader, length) {
1950
+ if (!(reader instanceof $Reader))
1951
+ reader = $Reader.create(reader);
1952
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringArrayValue();
1953
+ while (reader.pos < end) {
1954
+ var tag = reader.uint32();
1955
+ switch (tag >>> 3) {
1956
+ case 1:
1957
+ if (!(message.values && message.values.length))
1958
+ message.values = [];
1959
+ message.values.push(reader.string());
1960
+ break;
1961
+ default:
1962
+ reader.skipType(tag & 7);
1963
+ break;
1964
+ }
1965
+ }
1966
+ return message;
1967
+ };
1968
+
1969
+ /**
1970
+ * Decodes a StringArrayValue message from the specified reader or buffer, length delimited.
1971
+ * @function decodeDelimited
1972
+ * @memberof common.StringArrayValue
1973
+ * @static
1974
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1975
+ * @returns {common.StringArrayValue} StringArrayValue
1976
+ * @throws {Error} If the payload is not a reader or valid buffer
1977
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1978
+ */
1979
+ StringArrayValue.decodeDelimited = function decodeDelimited(reader) {
1980
+ if (!(reader instanceof $Reader))
1981
+ reader = new $Reader(reader);
1982
+ return this.decode(reader, reader.uint32());
1983
+ };
1984
+
1985
+ /**
1986
+ * Verifies a StringArrayValue message.
1987
+ * @function verify
1988
+ * @memberof common.StringArrayValue
1989
+ * @static
1990
+ * @param {Object.<string,*>} message Plain object to verify
1991
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1992
+ */
1993
+ StringArrayValue.verify = function verify(message) {
1994
+ if (typeof message !== "object" || message === null)
1995
+ return "object expected";
1996
+ if (message.values != null && message.hasOwnProperty("values")) {
1997
+ if (!Array.isArray(message.values))
1998
+ return "values: array expected";
1999
+ for (var i = 0; i < message.values.length; ++i)
2000
+ if (!$util.isString(message.values[i]))
2001
+ return "values: string[] expected";
2002
+ }
2003
+ return null;
2004
+ };
2005
+
2006
+ /**
2007
+ * Creates a StringArrayValue message from a plain object. Also converts values to their respective internal types.
2008
+ * @function fromObject
2009
+ * @memberof common.StringArrayValue
2010
+ * @static
2011
+ * @param {Object.<string,*>} object Plain object
2012
+ * @returns {common.StringArrayValue} StringArrayValue
2013
+ */
2014
+ StringArrayValue.fromObject = function fromObject(object) {
2015
+ if (object instanceof $root.common.StringArrayValue)
2016
+ return object;
2017
+ var message = new $root.common.StringArrayValue();
2018
+ if (object.values) {
2019
+ if (!Array.isArray(object.values))
2020
+ throw TypeError(".common.StringArrayValue.values: array expected");
2021
+ message.values = [];
2022
+ for (var i = 0; i < object.values.length; ++i)
2023
+ message.values[i] = String(object.values[i]);
2024
+ }
2025
+ return message;
2026
+ };
2027
+
2028
+ /**
2029
+ * Creates a plain object from a StringArrayValue message. Also converts values to other types if specified.
2030
+ * @function toObject
2031
+ * @memberof common.StringArrayValue
2032
+ * @static
2033
+ * @param {common.StringArrayValue} message StringArrayValue
2034
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2035
+ * @returns {Object.<string,*>} Plain object
2036
+ */
2037
+ StringArrayValue.toObject = function toObject(message, options) {
2038
+ if (!options)
2039
+ options = {};
2040
+ var object = {};
2041
+ if (options.arrays || options.defaults)
2042
+ object.values = [];
2043
+ if (message.values && message.values.length) {
2044
+ object.values = [];
2045
+ for (var j = 0; j < message.values.length; ++j)
2046
+ object.values[j] = message.values[j];
2047
+ }
2048
+ return object;
2049
+ };
2050
+
2051
+ /**
2052
+ * Converts this StringArrayValue to JSON.
2053
+ * @function toJSON
2054
+ * @memberof common.StringArrayValue
2055
+ * @instance
2056
+ * @returns {Object.<string,*>} JSON object
2057
+ */
2058
+ StringArrayValue.prototype.toJSON = function toJSON() {
2059
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2060
+ };
2061
+
2062
+ return StringArrayValue;
2063
+ })();
2064
+
2065
+ common.UInt64Value = (function() {
2066
+
2067
+ /**
2068
+ * Properties of a UInt64Value.
2069
+ * @memberof common
2070
+ * @interface IUInt64Value
2071
+ * @property {number|Long|null} [value] UInt64Value value
2072
+ */
2073
+
2074
+ /**
2075
+ * Constructs a new UInt64Value.
2076
+ * @memberof common
2077
+ * @classdesc Represents a UInt64Value.
2078
+ * @implements IUInt64Value
2079
+ * @constructor
2080
+ * @param {common.IUInt64Value=} [properties] Properties to set
2081
+ */
2082
+ function UInt64Value(properties) {
2083
+ if (properties)
2084
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2085
+ if (properties[keys[i]] != null)
2086
+ this[keys[i]] = properties[keys[i]];
2087
+ }
2088
+
2089
+ /**
2090
+ * UInt64Value value.
2091
+ * @member {number|Long} value
2092
+ * @memberof common.UInt64Value
2093
+ * @instance
2094
+ */
2095
+ UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
2096
+
2097
+ /**
2098
+ * Creates a new UInt64Value instance using the specified properties.
2099
+ * @function create
2100
+ * @memberof common.UInt64Value
2101
+ * @static
2102
+ * @param {common.IUInt64Value=} [properties] Properties to set
2103
+ * @returns {common.UInt64Value} UInt64Value instance
2104
+ */
2105
+ UInt64Value.create = function create(properties) {
2106
+ return new UInt64Value(properties);
2107
+ };
2108
+
2109
+ /**
2110
+ * Encodes the specified UInt64Value message. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
2111
+ * @function encode
2112
+ * @memberof common.UInt64Value
2113
+ * @static
2114
+ * @param {common.IUInt64Value} message UInt64Value message or plain object to encode
2115
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2116
+ * @returns {$protobuf.Writer} Writer
2117
+ */
2118
+ UInt64Value.encode = function encode(message, writer) {
2119
+ if (!writer)
2120
+ writer = $Writer.create();
2121
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
2122
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
2123
+ return writer;
2124
+ };
2125
+
2126
+ /**
2127
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
2128
+ * @function encodeDelimited
2129
+ * @memberof common.UInt64Value
2130
+ * @static
2131
+ * @param {common.IUInt64Value} message UInt64Value message or plain object to encode
2132
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2133
+ * @returns {$protobuf.Writer} Writer
2134
+ */
2135
+ UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
2136
+ return this.encode(message, writer).ldelim();
2137
+ };
2138
+
2139
+ /**
2140
+ * Decodes a UInt64Value message from the specified reader or buffer.
2141
+ * @function decode
2142
+ * @memberof common.UInt64Value
2143
+ * @static
2144
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2145
+ * @param {number} [length] Message length if known beforehand
2146
+ * @returns {common.UInt64Value} UInt64Value
2147
+ * @throws {Error} If the payload is not a reader or valid buffer
2148
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2149
+ */
2150
+ UInt64Value.decode = function decode(reader, length) {
2151
+ if (!(reader instanceof $Reader))
2152
+ reader = $Reader.create(reader);
2153
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt64Value();
2154
+ while (reader.pos < end) {
2155
+ var tag = reader.uint32();
2156
+ switch (tag >>> 3) {
2157
+ case 1:
2158
+ message.value = reader.uint64();
2159
+ break;
2160
+ default:
2161
+ reader.skipType(tag & 7);
2162
+ break;
2163
+ }
2164
+ }
2165
+ return message;
2166
+ };
2167
+
2168
+ /**
2169
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
2170
+ * @function decodeDelimited
2171
+ * @memberof common.UInt64Value
2172
+ * @static
2173
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2174
+ * @returns {common.UInt64Value} UInt64Value
2175
+ * @throws {Error} If the payload is not a reader or valid buffer
2176
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2177
+ */
2178
+ UInt64Value.decodeDelimited = function decodeDelimited(reader) {
2179
+ if (!(reader instanceof $Reader))
2180
+ reader = new $Reader(reader);
2181
+ return this.decode(reader, reader.uint32());
2182
+ };
2183
+
2184
+ /**
2185
+ * Verifies a UInt64Value message.
2186
+ * @function verify
2187
+ * @memberof common.UInt64Value
2188
+ * @static
2189
+ * @param {Object.<string,*>} message Plain object to verify
2190
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2191
+ */
2192
+ UInt64Value.verify = function verify(message) {
2193
+ if (typeof message !== "object" || message === null)
2194
+ return "object expected";
2195
+ if (message.value != null && message.hasOwnProperty("value"))
2196
+ if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
2197
+ return "value: integer|Long expected";
2198
+ return null;
2199
+ };
2200
+
2201
+ /**
2202
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
2203
+ * @function fromObject
2204
+ * @memberof common.UInt64Value
2205
+ * @static
2206
+ * @param {Object.<string,*>} object Plain object
2207
+ * @returns {common.UInt64Value} UInt64Value
2208
+ */
2209
+ UInt64Value.fromObject = function fromObject(object) {
2210
+ if (object instanceof $root.common.UInt64Value)
2211
+ return object;
2212
+ var message = new $root.common.UInt64Value();
2213
+ if (object.value != null)
2214
+ if ($util.Long)
2215
+ (message.value = $util.Long.fromValue(object.value)).unsigned = true;
2216
+ else if (typeof object.value === "string")
2217
+ message.value = parseInt(object.value, 10);
2218
+ else if (typeof object.value === "number")
2219
+ message.value = object.value;
2220
+ else if (typeof object.value === "object")
2221
+ message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true);
2222
+ return message;
2223
+ };
2224
+
2225
+ /**
2226
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
2227
+ * @function toObject
2228
+ * @memberof common.UInt64Value
2229
+ * @static
2230
+ * @param {common.UInt64Value} message UInt64Value
2231
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2232
+ * @returns {Object.<string,*>} Plain object
2233
+ */
2234
+ UInt64Value.toObject = function toObject(message, options) {
2235
+ if (!options)
2236
+ options = {};
2237
+ var object = {};
2238
+ if (options.defaults)
2239
+ if ($util.Long) {
2240
+ var long = new $util.Long(0, 0, true);
2241
+ object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2242
+ } else
2243
+ object.value = options.longs === String ? "0" : 0;
2244
+ if (message.value != null && message.hasOwnProperty("value"))
2245
+ if (typeof message.value === "number")
2246
+ object.value = options.longs === String ? String(message.value) : message.value;
2247
+ else
2248
+ object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value;
2249
+ return object;
2250
+ };
2251
+
2252
+ /**
2253
+ * Converts this UInt64Value to JSON.
2254
+ * @function toJSON
2255
+ * @memberof common.UInt64Value
2256
+ * @instance
2257
+ * @returns {Object.<string,*>} JSON object
2258
+ */
2259
+ UInt64Value.prototype.toJSON = function toJSON() {
2260
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2261
+ };
2262
+
2263
+ return UInt64Value;
2264
+ })();
2265
+
2266
+ common.UInt32Value = (function() {
2267
+
2268
+ /**
2269
+ * Properties of a UInt32Value.
2270
+ * @memberof common
2271
+ * @interface IUInt32Value
2272
+ * @property {number|null} [value] UInt32Value value
2273
+ */
2274
+
2275
+ /**
2276
+ * Constructs a new UInt32Value.
2277
+ * @memberof common
2278
+ * @classdesc Represents a UInt32Value.
2279
+ * @implements IUInt32Value
2280
+ * @constructor
2281
+ * @param {common.IUInt32Value=} [properties] Properties to set
2282
+ */
2283
+ function UInt32Value(properties) {
2284
+ if (properties)
2285
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2286
+ if (properties[keys[i]] != null)
2287
+ this[keys[i]] = properties[keys[i]];
2288
+ }
2289
+
2290
+ /**
2291
+ * UInt32Value value.
2292
+ * @member {number} value
2293
+ * @memberof common.UInt32Value
2294
+ * @instance
2295
+ */
2296
+ UInt32Value.prototype.value = 0;
2297
+
2298
+ /**
2299
+ * Creates a new UInt32Value instance using the specified properties.
2300
+ * @function create
2301
+ * @memberof common.UInt32Value
2302
+ * @static
2303
+ * @param {common.IUInt32Value=} [properties] Properties to set
2304
+ * @returns {common.UInt32Value} UInt32Value instance
2305
+ */
2306
+ UInt32Value.create = function create(properties) {
2307
+ return new UInt32Value(properties);
2308
+ };
2309
+
2310
+ /**
2311
+ * Encodes the specified UInt32Value message. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
2312
+ * @function encode
2313
+ * @memberof common.UInt32Value
2314
+ * @static
2315
+ * @param {common.IUInt32Value} message UInt32Value message or plain object to encode
2316
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2317
+ * @returns {$protobuf.Writer} Writer
2318
+ */
2319
+ UInt32Value.encode = function encode(message, writer) {
2320
+ if (!writer)
2321
+ writer = $Writer.create();
2322
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
2323
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
2324
+ return writer;
2325
+ };
2326
+
2327
+ /**
2328
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
2329
+ * @function encodeDelimited
2330
+ * @memberof common.UInt32Value
2331
+ * @static
2332
+ * @param {common.IUInt32Value} message UInt32Value message or plain object to encode
2333
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2334
+ * @returns {$protobuf.Writer} Writer
2335
+ */
2336
+ UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
2337
+ return this.encode(message, writer).ldelim();
2338
+ };
2339
+
2340
+ /**
2341
+ * Decodes a UInt32Value message from the specified reader or buffer.
2342
+ * @function decode
2343
+ * @memberof common.UInt32Value
2344
+ * @static
2345
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2346
+ * @param {number} [length] Message length if known beforehand
2347
+ * @returns {common.UInt32Value} UInt32Value
2348
+ * @throws {Error} If the payload is not a reader or valid buffer
2349
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2350
+ */
2351
+ UInt32Value.decode = function decode(reader, length) {
2352
+ if (!(reader instanceof $Reader))
2353
+ reader = $Reader.create(reader);
2354
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt32Value();
2355
+ while (reader.pos < end) {
2356
+ var tag = reader.uint32();
2357
+ switch (tag >>> 3) {
2358
+ case 1:
2359
+ message.value = reader.uint32();
2360
+ break;
2361
+ default:
2362
+ reader.skipType(tag & 7);
2363
+ break;
2364
+ }
2365
+ }
2366
+ return message;
2367
+ };
2368
+
2369
+ /**
2370
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
2371
+ * @function decodeDelimited
2372
+ * @memberof common.UInt32Value
2373
+ * @static
2374
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2375
+ * @returns {common.UInt32Value} UInt32Value
2376
+ * @throws {Error} If the payload is not a reader or valid buffer
2377
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2378
+ */
2379
+ UInt32Value.decodeDelimited = function decodeDelimited(reader) {
2380
+ if (!(reader instanceof $Reader))
2381
+ reader = new $Reader(reader);
2382
+ return this.decode(reader, reader.uint32());
2383
+ };
2384
+
2385
+ /**
2386
+ * Verifies a UInt32Value message.
2387
+ * @function verify
2388
+ * @memberof common.UInt32Value
2389
+ * @static
2390
+ * @param {Object.<string,*>} message Plain object to verify
2391
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2392
+ */
2393
+ UInt32Value.verify = function verify(message) {
2394
+ if (typeof message !== "object" || message === null)
2395
+ return "object expected";
2396
+ if (message.value != null && message.hasOwnProperty("value"))
2397
+ if (!$util.isInteger(message.value))
2398
+ return "value: integer expected";
2399
+ return null;
2400
+ };
2401
+
2402
+ /**
2403
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
2404
+ * @function fromObject
2405
+ * @memberof common.UInt32Value
2406
+ * @static
2407
+ * @param {Object.<string,*>} object Plain object
2408
+ * @returns {common.UInt32Value} UInt32Value
2409
+ */
2410
+ UInt32Value.fromObject = function fromObject(object) {
2411
+ if (object instanceof $root.common.UInt32Value)
2412
+ return object;
2413
+ var message = new $root.common.UInt32Value();
2414
+ if (object.value != null)
2415
+ message.value = object.value >>> 0;
2416
+ return message;
2417
+ };
2418
+
2419
+ /**
2420
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
2421
+ * @function toObject
2422
+ * @memberof common.UInt32Value
2423
+ * @static
2424
+ * @param {common.UInt32Value} message UInt32Value
2425
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2426
+ * @returns {Object.<string,*>} Plain object
2427
+ */
2428
+ UInt32Value.toObject = function toObject(message, options) {
2429
+ if (!options)
2430
+ options = {};
2431
+ var object = {};
2432
+ if (options.defaults)
2433
+ object.value = 0;
2434
+ if (message.value != null && message.hasOwnProperty("value"))
2435
+ object.value = message.value;
2436
+ return object;
2437
+ };
2438
+
2439
+ /**
2440
+ * Converts this UInt32Value to JSON.
2441
+ * @function toJSON
2442
+ * @memberof common.UInt32Value
2443
+ * @instance
2444
+ * @returns {Object.<string,*>} JSON object
2445
+ */
2446
+ UInt32Value.prototype.toJSON = function toJSON() {
2447
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2448
+ };
2449
+
2450
+ return UInt32Value;
2451
+ })();
2452
+
2453
+ common.StringValue = (function() {
2454
+
2455
+ /**
2456
+ * Properties of a StringValue.
2457
+ * @memberof common
2458
+ * @interface IStringValue
2459
+ * @property {string|null} [value] StringValue value
2460
+ */
2461
+
2462
+ /**
2463
+ * Constructs a new StringValue.
2464
+ * @memberof common
2465
+ * @classdesc Represents a StringValue.
2466
+ * @implements IStringValue
2467
+ * @constructor
2468
+ * @param {common.IStringValue=} [properties] Properties to set
2469
+ */
2470
+ function StringValue(properties) {
2471
+ if (properties)
2472
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2473
+ if (properties[keys[i]] != null)
2474
+ this[keys[i]] = properties[keys[i]];
2475
+ }
2476
+
2477
+ /**
2478
+ * StringValue value.
2479
+ * @member {string} value
2480
+ * @memberof common.StringValue
2481
+ * @instance
2482
+ */
2483
+ StringValue.prototype.value = "";
2484
+
2485
+ /**
2486
+ * Creates a new StringValue instance using the specified properties.
2487
+ * @function create
2488
+ * @memberof common.StringValue
2489
+ * @static
2490
+ * @param {common.IStringValue=} [properties] Properties to set
2491
+ * @returns {common.StringValue} StringValue instance
2492
+ */
2493
+ StringValue.create = function create(properties) {
2494
+ return new StringValue(properties);
2495
+ };
2496
+
2497
+ /**
2498
+ * Encodes the specified StringValue message. Does not implicitly {@link common.StringValue.verify|verify} messages.
2499
+ * @function encode
2500
+ * @memberof common.StringValue
2501
+ * @static
2502
+ * @param {common.IStringValue} message StringValue message or plain object to encode
2503
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2504
+ * @returns {$protobuf.Writer} Writer
2505
+ */
2506
+ StringValue.encode = function encode(message, writer) {
2507
+ if (!writer)
2508
+ writer = $Writer.create();
2509
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
2510
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
2511
+ return writer;
2512
+ };
2513
+
2514
+ /**
2515
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link common.StringValue.verify|verify} messages.
2516
+ * @function encodeDelimited
2517
+ * @memberof common.StringValue
2518
+ * @static
2519
+ * @param {common.IStringValue} message StringValue message or plain object to encode
2520
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2521
+ * @returns {$protobuf.Writer} Writer
2522
+ */
2523
+ StringValue.encodeDelimited = function encodeDelimited(message, writer) {
2524
+ return this.encode(message, writer).ldelim();
2525
+ };
2526
+
2527
+ /**
2528
+ * Decodes a StringValue message from the specified reader or buffer.
2529
+ * @function decode
2530
+ * @memberof common.StringValue
2531
+ * @static
2532
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2533
+ * @param {number} [length] Message length if known beforehand
2534
+ * @returns {common.StringValue} StringValue
2535
+ * @throws {Error} If the payload is not a reader or valid buffer
2536
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2537
+ */
2538
+ StringValue.decode = function decode(reader, length) {
2539
+ if (!(reader instanceof $Reader))
2540
+ reader = $Reader.create(reader);
2541
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringValue();
2542
+ while (reader.pos < end) {
2543
+ var tag = reader.uint32();
2544
+ switch (tag >>> 3) {
2545
+ case 1:
2546
+ message.value = reader.string();
2547
+ break;
2548
+ default:
2549
+ reader.skipType(tag & 7);
2550
+ break;
2551
+ }
2552
+ }
2553
+ return message;
2554
+ };
2555
+
2556
+ /**
2557
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
2558
+ * @function decodeDelimited
2559
+ * @memberof common.StringValue
2560
+ * @static
2561
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2562
+ * @returns {common.StringValue} StringValue
2563
+ * @throws {Error} If the payload is not a reader or valid buffer
2564
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2565
+ */
2566
+ StringValue.decodeDelimited = function decodeDelimited(reader) {
2567
+ if (!(reader instanceof $Reader))
2568
+ reader = new $Reader(reader);
2569
+ return this.decode(reader, reader.uint32());
2570
+ };
2571
+
2572
+ /**
2573
+ * Verifies a StringValue message.
2574
+ * @function verify
2575
+ * @memberof common.StringValue
2576
+ * @static
2577
+ * @param {Object.<string,*>} message Plain object to verify
2578
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2579
+ */
2580
+ StringValue.verify = function verify(message) {
2581
+ if (typeof message !== "object" || message === null)
2582
+ return "object expected";
2583
+ if (message.value != null && message.hasOwnProperty("value"))
2584
+ if (!$util.isString(message.value))
2585
+ return "value: string expected";
2586
+ return null;
2587
+ };
2588
+
2589
+ /**
2590
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
2591
+ * @function fromObject
2592
+ * @memberof common.StringValue
2593
+ * @static
2594
+ * @param {Object.<string,*>} object Plain object
2595
+ * @returns {common.StringValue} StringValue
2596
+ */
2597
+ StringValue.fromObject = function fromObject(object) {
2598
+ if (object instanceof $root.common.StringValue)
2599
+ return object;
2600
+ var message = new $root.common.StringValue();
2601
+ if (object.value != null)
2602
+ message.value = String(object.value);
2603
+ return message;
2604
+ };
2605
+
2606
+ /**
2607
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
2608
+ * @function toObject
2609
+ * @memberof common.StringValue
2610
+ * @static
2611
+ * @param {common.StringValue} message StringValue
2612
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2613
+ * @returns {Object.<string,*>} Plain object
2614
+ */
2615
+ StringValue.toObject = function toObject(message, options) {
2616
+ if (!options)
2617
+ options = {};
2618
+ var object = {};
2619
+ if (options.defaults)
2620
+ object.value = "";
2621
+ if (message.value != null && message.hasOwnProperty("value"))
2622
+ object.value = message.value;
2623
+ return object;
2624
+ };
2625
+
2626
+ /**
2627
+ * Converts this StringValue to JSON.
2628
+ * @function toJSON
2629
+ * @memberof common.StringValue
2630
+ * @instance
2631
+ * @returns {Object.<string,*>} JSON object
2632
+ */
2633
+ StringValue.prototype.toJSON = function toJSON() {
2634
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2635
+ };
2636
+
2637
+ return StringValue;
2638
+ })();
2639
+
2640
+ common.BytesValue = (function() {
2641
+
2642
+ /**
2643
+ * Properties of a BytesValue.
2644
+ * @memberof common
2645
+ * @interface IBytesValue
2646
+ * @property {Uint8Array|null} [value] BytesValue value
2647
+ */
2648
+
2649
+ /**
2650
+ * Constructs a new BytesValue.
2651
+ * @memberof common
2652
+ * @classdesc Represents a BytesValue.
2653
+ * @implements IBytesValue
2654
+ * @constructor
2655
+ * @param {common.IBytesValue=} [properties] Properties to set
2656
+ */
2657
+ function BytesValue(properties) {
2658
+ if (properties)
2659
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2660
+ if (properties[keys[i]] != null)
2661
+ this[keys[i]] = properties[keys[i]];
2662
+ }
2663
+
2664
+ /**
2665
+ * BytesValue value.
2666
+ * @member {Uint8Array} value
2667
+ * @memberof common.BytesValue
2668
+ * @instance
2669
+ */
2670
+ BytesValue.prototype.value = $util.newBuffer([]);
2671
+
2672
+ /**
2673
+ * Creates a new BytesValue instance using the specified properties.
2674
+ * @function create
2675
+ * @memberof common.BytesValue
2676
+ * @static
2677
+ * @param {common.IBytesValue=} [properties] Properties to set
2678
+ * @returns {common.BytesValue} BytesValue instance
2679
+ */
2680
+ BytesValue.create = function create(properties) {
2681
+ return new BytesValue(properties);
2682
+ };
2683
+
2684
+ /**
2685
+ * Encodes the specified BytesValue message. Does not implicitly {@link common.BytesValue.verify|verify} messages.
2686
+ * @function encode
2687
+ * @memberof common.BytesValue
2688
+ * @static
2689
+ * @param {common.IBytesValue} message BytesValue message or plain object to encode
2690
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2691
+ * @returns {$protobuf.Writer} Writer
2692
+ */
2693
+ BytesValue.encode = function encode(message, writer) {
2694
+ if (!writer)
2695
+ writer = $Writer.create();
2696
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
2697
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
2698
+ return writer;
2699
+ };
2700
+
2701
+ /**
2702
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link common.BytesValue.verify|verify} messages.
2703
+ * @function encodeDelimited
2704
+ * @memberof common.BytesValue
2705
+ * @static
2706
+ * @param {common.IBytesValue} message BytesValue message or plain object to encode
2707
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2708
+ * @returns {$protobuf.Writer} Writer
2709
+ */
2710
+ BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
2711
+ return this.encode(message, writer).ldelim();
2712
+ };
2713
+
2714
+ /**
2715
+ * Decodes a BytesValue message from the specified reader or buffer.
2716
+ * @function decode
2717
+ * @memberof common.BytesValue
2718
+ * @static
2719
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2720
+ * @param {number} [length] Message length if known beforehand
2721
+ * @returns {common.BytesValue} BytesValue
2722
+ * @throws {Error} If the payload is not a reader or valid buffer
2723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2724
+ */
2725
+ BytesValue.decode = function decode(reader, length) {
2726
+ if (!(reader instanceof $Reader))
2727
+ reader = $Reader.create(reader);
2728
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BytesValue();
2729
+ while (reader.pos < end) {
2730
+ var tag = reader.uint32();
2731
+ switch (tag >>> 3) {
2732
+ case 1:
2733
+ message.value = reader.bytes();
2734
+ break;
2735
+ default:
2736
+ reader.skipType(tag & 7);
2737
+ break;
2738
+ }
2739
+ }
2740
+ return message;
2741
+ };
2742
+
2743
+ /**
2744
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
2745
+ * @function decodeDelimited
2746
+ * @memberof common.BytesValue
2747
+ * @static
2748
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2749
+ * @returns {common.BytesValue} BytesValue
2750
+ * @throws {Error} If the payload is not a reader or valid buffer
2751
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2752
+ */
2753
+ BytesValue.decodeDelimited = function decodeDelimited(reader) {
2754
+ if (!(reader instanceof $Reader))
2755
+ reader = new $Reader(reader);
2756
+ return this.decode(reader, reader.uint32());
2757
+ };
2758
+
2759
+ /**
2760
+ * Verifies a BytesValue message.
2761
+ * @function verify
2762
+ * @memberof common.BytesValue
2763
+ * @static
2764
+ * @param {Object.<string,*>} message Plain object to verify
2765
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2766
+ */
2767
+ BytesValue.verify = function verify(message) {
2768
+ if (typeof message !== "object" || message === null)
2769
+ return "object expected";
2770
+ if (message.value != null && message.hasOwnProperty("value"))
2771
+ if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
2772
+ return "value: buffer expected";
2773
+ return null;
2774
+ };
2775
+
2776
+ /**
2777
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
2778
+ * @function fromObject
2779
+ * @memberof common.BytesValue
2780
+ * @static
2781
+ * @param {Object.<string,*>} object Plain object
2782
+ * @returns {common.BytesValue} BytesValue
2783
+ */
2784
+ BytesValue.fromObject = function fromObject(object) {
2785
+ if (object instanceof $root.common.BytesValue)
2786
+ return object;
2787
+ var message = new $root.common.BytesValue();
2788
+ if (object.value != null)
2789
+ if (typeof object.value === "string")
2790
+ $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
2791
+ else if (object.value.length)
2792
+ message.value = object.value;
2793
+ return message;
2794
+ };
2795
+
2796
+ /**
2797
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
2798
+ * @function toObject
2799
+ * @memberof common.BytesValue
2800
+ * @static
2801
+ * @param {common.BytesValue} message BytesValue
2802
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2803
+ * @returns {Object.<string,*>} Plain object
2804
+ */
2805
+ BytesValue.toObject = function toObject(message, options) {
2806
+ if (!options)
2807
+ options = {};
2808
+ var object = {};
2809
+ if (options.defaults)
2810
+ if (options.bytes === String)
2811
+ object.value = "";
2812
+ else {
2813
+ object.value = [];
2814
+ if (options.bytes !== Array)
2815
+ object.value = $util.newBuffer(object.value);
2816
+ }
2817
+ if (message.value != null && message.hasOwnProperty("value"))
2818
+ object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
2819
+ return object;
2820
+ };
2821
+
2822
+ /**
2823
+ * Converts this BytesValue to JSON.
2824
+ * @function toJSON
2825
+ * @memberof common.BytesValue
2826
+ * @instance
2827
+ * @returns {Object.<string,*>} JSON object
2828
+ */
2829
+ BytesValue.prototype.toJSON = function toJSON() {
2830
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2831
+ };
2832
+
2833
+ return BytesValue;
2834
+ })();
2835
+
2836
+ common.ErrorValue = (function() {
2837
+
2838
+ /**
2839
+ * Properties of an ErrorValue.
2840
+ * @memberof common
2841
+ * @interface IErrorValue
2842
+ * @property {string|null} [runtimeExcJson] ErrorValue runtimeExcJson
2843
+ * @property {string|null} [err] ErrorValue err
2844
+ */
2845
+
2846
+ /**
2847
+ * Constructs a new ErrorValue.
2848
+ * @memberof common
2849
+ * @classdesc Represents an ErrorValue.
2850
+ * @implements IErrorValue
2851
+ * @constructor
2852
+ * @param {common.IErrorValue=} [properties] Properties to set
2853
+ */
2854
+ function ErrorValue(properties) {
2855
+ if (properties)
2856
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2857
+ if (properties[keys[i]] != null)
2858
+ this[keys[i]] = properties[keys[i]];
2859
+ }
2860
+
2861
+ /**
2862
+ * ErrorValue runtimeExcJson.
2863
+ * @member {string} runtimeExcJson
2864
+ * @memberof common.ErrorValue
2865
+ * @instance
2866
+ */
2867
+ ErrorValue.prototype.runtimeExcJson = "";
2868
+
2869
+ /**
2870
+ * ErrorValue err.
2871
+ * @member {string} err
2872
+ * @memberof common.ErrorValue
2873
+ * @instance
2874
+ */
2875
+ ErrorValue.prototype.err = "";
2876
+
2877
+ /**
2878
+ * Creates a new ErrorValue instance using the specified properties.
2879
+ * @function create
2880
+ * @memberof common.ErrorValue
2881
+ * @static
2882
+ * @param {common.IErrorValue=} [properties] Properties to set
2883
+ * @returns {common.ErrorValue} ErrorValue instance
2884
+ */
2885
+ ErrorValue.create = function create(properties) {
2886
+ return new ErrorValue(properties);
2887
+ };
2888
+
2889
+ /**
2890
+ * Encodes the specified ErrorValue message. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
2891
+ * @function encode
2892
+ * @memberof common.ErrorValue
2893
+ * @static
2894
+ * @param {common.IErrorValue} message ErrorValue message or plain object to encode
2895
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2896
+ * @returns {$protobuf.Writer} Writer
2897
+ */
2898
+ ErrorValue.encode = function encode(message, writer) {
2899
+ if (!writer)
2900
+ writer = $Writer.create();
2901
+ if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
2902
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.runtimeExcJson);
2903
+ if (message.err != null && Object.hasOwnProperty.call(message, "err"))
2904
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.err);
2905
+ return writer;
2906
+ };
2907
+
2908
+ /**
2909
+ * Encodes the specified ErrorValue message, length delimited. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
2910
+ * @function encodeDelimited
2911
+ * @memberof common.ErrorValue
2912
+ * @static
2913
+ * @param {common.IErrorValue} message ErrorValue message or plain object to encode
2914
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2915
+ * @returns {$protobuf.Writer} Writer
2916
+ */
2917
+ ErrorValue.encodeDelimited = function encodeDelimited(message, writer) {
2918
+ return this.encode(message, writer).ldelim();
2919
+ };
2920
+
2921
+ /**
2922
+ * Decodes an ErrorValue message from the specified reader or buffer.
2923
+ * @function decode
2924
+ * @memberof common.ErrorValue
2925
+ * @static
2926
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2927
+ * @param {number} [length] Message length if known beforehand
2928
+ * @returns {common.ErrorValue} ErrorValue
2929
+ * @throws {Error} If the payload is not a reader or valid buffer
2930
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2931
+ */
2932
+ ErrorValue.decode = function decode(reader, length) {
2933
+ if (!(reader instanceof $Reader))
2934
+ reader = $Reader.create(reader);
2935
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ErrorValue();
2936
+ while (reader.pos < end) {
2937
+ var tag = reader.uint32();
2938
+ switch (tag >>> 3) {
2939
+ case 1:
2940
+ message.runtimeExcJson = reader.string();
2941
+ break;
2942
+ case 2:
2943
+ message.err = reader.string();
2944
+ break;
2945
+ default:
2946
+ reader.skipType(tag & 7);
2947
+ break;
2948
+ }
2949
+ }
2950
+ return message;
2951
+ };
2952
+
2953
+ /**
2954
+ * Decodes an ErrorValue message from the specified reader or buffer, length delimited.
2955
+ * @function decodeDelimited
2956
+ * @memberof common.ErrorValue
2957
+ * @static
2958
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2959
+ * @returns {common.ErrorValue} ErrorValue
2960
+ * @throws {Error} If the payload is not a reader or valid buffer
2961
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2962
+ */
2963
+ ErrorValue.decodeDelimited = function decodeDelimited(reader) {
2964
+ if (!(reader instanceof $Reader))
2965
+ reader = new $Reader(reader);
2966
+ return this.decode(reader, reader.uint32());
2967
+ };
2968
+
2969
+ /**
2970
+ * Verifies an ErrorValue message.
2971
+ * @function verify
2972
+ * @memberof common.ErrorValue
2973
+ * @static
2974
+ * @param {Object.<string,*>} message Plain object to verify
2975
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2976
+ */
2977
+ ErrorValue.verify = function verify(message) {
2978
+ if (typeof message !== "object" || message === null)
2979
+ return "object expected";
2980
+ if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
2981
+ if (!$util.isString(message.runtimeExcJson))
2982
+ return "runtimeExcJson: string expected";
2983
+ if (message.err != null && message.hasOwnProperty("err"))
2984
+ if (!$util.isString(message.err))
2985
+ return "err: string expected";
2986
+ return null;
2987
+ };
2988
+
2989
+ /**
2990
+ * Creates an ErrorValue message from a plain object. Also converts values to their respective internal types.
2991
+ * @function fromObject
2992
+ * @memberof common.ErrorValue
2993
+ * @static
2994
+ * @param {Object.<string,*>} object Plain object
2995
+ * @returns {common.ErrorValue} ErrorValue
2996
+ */
2997
+ ErrorValue.fromObject = function fromObject(object) {
2998
+ if (object instanceof $root.common.ErrorValue)
2999
+ return object;
3000
+ var message = new $root.common.ErrorValue();
3001
+ if (object.runtimeExcJson != null)
3002
+ message.runtimeExcJson = String(object.runtimeExcJson);
3003
+ if (object.err != null)
3004
+ message.err = String(object.err);
3005
+ return message;
3006
+ };
3007
+
3008
+ /**
3009
+ * Creates a plain object from an ErrorValue message. Also converts values to other types if specified.
3010
+ * @function toObject
3011
+ * @memberof common.ErrorValue
3012
+ * @static
3013
+ * @param {common.ErrorValue} message ErrorValue
3014
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3015
+ * @returns {Object.<string,*>} Plain object
3016
+ */
3017
+ ErrorValue.toObject = function toObject(message, options) {
3018
+ if (!options)
3019
+ options = {};
3020
+ var object = {};
3021
+ if (options.defaults) {
3022
+ object.runtimeExcJson = "";
3023
+ object.err = "";
3024
+ }
3025
+ if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
3026
+ object.runtimeExcJson = message.runtimeExcJson;
3027
+ if (message.err != null && message.hasOwnProperty("err"))
3028
+ object.err = message.err;
3029
+ return object;
3030
+ };
3031
+
3032
+ /**
3033
+ * Converts this ErrorValue to JSON.
3034
+ * @function toJSON
3035
+ * @memberof common.ErrorValue
3036
+ * @instance
3037
+ * @returns {Object.<string,*>} JSON object
3038
+ */
3039
+ ErrorValue.prototype.toJSON = function toJSON() {
3040
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3041
+ };
3042
+
3043
+ return ErrorValue;
3044
+ })();
3045
+
3046
+ common.AnyValue = (function() {
3047
+
3048
+ /**
3049
+ * Properties of an AnyValue.
3050
+ * @memberof common
3051
+ * @interface IAnyValue
3052
+ * @property {string|null} [type] AnyValue type
3053
+ * @property {common.IStringValue|null} [json] AnyValue json
3054
+ * @property {common.IBytesValue|null} [bytes] AnyValue bytes
3055
+ */
3056
+
3057
+ /**
3058
+ * Constructs a new AnyValue.
3059
+ * @memberof common
3060
+ * @classdesc Represents an AnyValue.
3061
+ * @implements IAnyValue
3062
+ * @constructor
3063
+ * @param {common.IAnyValue=} [properties] Properties to set
3064
+ */
3065
+ function AnyValue(properties) {
3066
+ if (properties)
3067
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3068
+ if (properties[keys[i]] != null)
3069
+ this[keys[i]] = properties[keys[i]];
3070
+ }
3071
+
3072
+ /**
3073
+ * AnyValue type.
3074
+ * @member {string} type
3075
+ * @memberof common.AnyValue
3076
+ * @instance
3077
+ */
3078
+ AnyValue.prototype.type = "";
3079
+
3080
+ /**
3081
+ * AnyValue json.
3082
+ * @member {common.IStringValue|null|undefined} json
3083
+ * @memberof common.AnyValue
3084
+ * @instance
3085
+ */
3086
+ AnyValue.prototype.json = null;
3087
+
3088
+ /**
3089
+ * AnyValue bytes.
3090
+ * @member {common.IBytesValue|null|undefined} bytes
3091
+ * @memberof common.AnyValue
3092
+ * @instance
3093
+ */
3094
+ AnyValue.prototype.bytes = null;
3095
+
3096
+ /**
3097
+ * Creates a new AnyValue instance using the specified properties.
3098
+ * @function create
3099
+ * @memberof common.AnyValue
3100
+ * @static
3101
+ * @param {common.IAnyValue=} [properties] Properties to set
3102
+ * @returns {common.AnyValue} AnyValue instance
3103
+ */
3104
+ AnyValue.create = function create(properties) {
3105
+ return new AnyValue(properties);
3106
+ };
3107
+
3108
+ /**
3109
+ * Encodes the specified AnyValue message. Does not implicitly {@link common.AnyValue.verify|verify} messages.
3110
+ * @function encode
3111
+ * @memberof common.AnyValue
3112
+ * @static
3113
+ * @param {common.IAnyValue} message AnyValue message or plain object to encode
3114
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3115
+ * @returns {$protobuf.Writer} Writer
3116
+ */
3117
+ AnyValue.encode = function encode(message, writer) {
3118
+ if (!writer)
3119
+ writer = $Writer.create();
3120
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
3121
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
3122
+ if (message.json != null && Object.hasOwnProperty.call(message, "json"))
3123
+ $root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
3124
+ if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
3125
+ $root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
3126
+ return writer;
3127
+ };
3128
+
3129
+ /**
3130
+ * Encodes the specified AnyValue message, length delimited. Does not implicitly {@link common.AnyValue.verify|verify} messages.
3131
+ * @function encodeDelimited
3132
+ * @memberof common.AnyValue
3133
+ * @static
3134
+ * @param {common.IAnyValue} message AnyValue message or plain object to encode
3135
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3136
+ * @returns {$protobuf.Writer} Writer
3137
+ */
3138
+ AnyValue.encodeDelimited = function encodeDelimited(message, writer) {
3139
+ return this.encode(message, writer).ldelim();
3140
+ };
3141
+
3142
+ /**
3143
+ * Decodes an AnyValue message from the specified reader or buffer.
3144
+ * @function decode
3145
+ * @memberof common.AnyValue
3146
+ * @static
3147
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3148
+ * @param {number} [length] Message length if known beforehand
3149
+ * @returns {common.AnyValue} AnyValue
3150
+ * @throws {Error} If the payload is not a reader or valid buffer
3151
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3152
+ */
3153
+ AnyValue.decode = function decode(reader, length) {
3154
+ if (!(reader instanceof $Reader))
3155
+ reader = $Reader.create(reader);
3156
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.AnyValue();
3157
+ while (reader.pos < end) {
3158
+ var tag = reader.uint32();
3159
+ switch (tag >>> 3) {
3160
+ case 1:
3161
+ message.type = reader.string();
3162
+ break;
3163
+ case 2:
3164
+ message.json = $root.common.StringValue.decode(reader, reader.uint32());
3165
+ break;
3166
+ case 3:
3167
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3168
+ break;
3169
+ default:
3170
+ reader.skipType(tag & 7);
3171
+ break;
3172
+ }
3173
+ }
3174
+ return message;
3175
+ };
3176
+
3177
+ /**
3178
+ * Decodes an AnyValue message from the specified reader or buffer, length delimited.
3179
+ * @function decodeDelimited
3180
+ * @memberof common.AnyValue
3181
+ * @static
3182
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3183
+ * @returns {common.AnyValue} AnyValue
3184
+ * @throws {Error} If the payload is not a reader or valid buffer
3185
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3186
+ */
3187
+ AnyValue.decodeDelimited = function decodeDelimited(reader) {
3188
+ if (!(reader instanceof $Reader))
3189
+ reader = new $Reader(reader);
3190
+ return this.decode(reader, reader.uint32());
3191
+ };
3192
+
3193
+ /**
3194
+ * Verifies an AnyValue message.
3195
+ * @function verify
3196
+ * @memberof common.AnyValue
3197
+ * @static
3198
+ * @param {Object.<string,*>} message Plain object to verify
3199
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
3200
+ */
3201
+ AnyValue.verify = function verify(message) {
3202
+ if (typeof message !== "object" || message === null)
3203
+ return "object expected";
3204
+ if (message.type != null && message.hasOwnProperty("type"))
3205
+ if (!$util.isString(message.type))
3206
+ return "type: string expected";
3207
+ if (message.json != null && message.hasOwnProperty("json")) {
3208
+ var error = $root.common.StringValue.verify(message.json);
3209
+ if (error)
3210
+ return "json." + error;
3211
+ }
3212
+ if (message.bytes != null && message.hasOwnProperty("bytes")) {
3213
+ var error = $root.common.BytesValue.verify(message.bytes);
3214
+ if (error)
3215
+ return "bytes." + error;
3216
+ }
3217
+ return null;
3218
+ };
3219
+
3220
+ /**
3221
+ * Creates an AnyValue message from a plain object. Also converts values to their respective internal types.
3222
+ * @function fromObject
3223
+ * @memberof common.AnyValue
3224
+ * @static
3225
+ * @param {Object.<string,*>} object Plain object
3226
+ * @returns {common.AnyValue} AnyValue
3227
+ */
3228
+ AnyValue.fromObject = function fromObject(object) {
3229
+ if (object instanceof $root.common.AnyValue)
3230
+ return object;
3231
+ var message = new $root.common.AnyValue();
3232
+ if (object.type != null)
3233
+ message.type = String(object.type);
3234
+ if (object.json != null) {
3235
+ if (typeof object.json !== "object")
3236
+ throw TypeError(".common.AnyValue.json: object expected");
3237
+ message.json = $root.common.StringValue.fromObject(object.json);
3238
+ }
3239
+ if (object.bytes != null) {
3240
+ if (typeof object.bytes !== "object")
3241
+ throw TypeError(".common.AnyValue.bytes: object expected");
3242
+ message.bytes = $root.common.BytesValue.fromObject(object.bytes);
3243
+ }
3244
+ return message;
3245
+ };
3246
+
3247
+ /**
3248
+ * Creates a plain object from an AnyValue message. Also converts values to other types if specified.
3249
+ * @function toObject
3250
+ * @memberof common.AnyValue
3251
+ * @static
3252
+ * @param {common.AnyValue} message AnyValue
3253
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3254
+ * @returns {Object.<string,*>} Plain object
3255
+ */
3256
+ AnyValue.toObject = function toObject(message, options) {
3257
+ if (!options)
3258
+ options = {};
3259
+ var object = {};
3260
+ if (options.defaults) {
3261
+ object.type = "";
3262
+ object.json = null;
3263
+ object.bytes = null;
3264
+ }
3265
+ if (message.type != null && message.hasOwnProperty("type"))
3266
+ object.type = message.type;
3267
+ if (message.json != null && message.hasOwnProperty("json"))
3268
+ object.json = $root.common.StringValue.toObject(message.json, options);
3269
+ if (message.bytes != null && message.hasOwnProperty("bytes"))
3270
+ object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
3271
+ return object;
3272
+ };
3273
+
3274
+ /**
3275
+ * Converts this AnyValue to JSON.
3276
+ * @function toJSON
3277
+ * @memberof common.AnyValue
3278
+ * @instance
3279
+ * @returns {Object.<string,*>} JSON object
3280
+ */
3281
+ AnyValue.prototype.toJSON = function toJSON() {
3282
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3283
+ };
3284
+
3285
+ return AnyValue;
3286
+ })();
3287
+
3288
+ return common;
3289
+ })();
3290
+
3291
+ module.exports = $root;