core-3nweb-client-lib 0.30.6 → 0.31.1

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