core-3nweb-client-lib 0.48.7 → 0.49.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.
- package/build/core/index.d.ts +1 -1
- package/build/core/index.js +3 -3
- package/build/core/startup/sign-in.d.ts +7 -5
- package/build/core/startup/sign-in.js +41 -5
- package/build/core/startup/sign-up.d.ts +2 -1
- package/build/core/startup/sign-up.js +6 -2
- package/build/protos/asmail.proto.js +6504 -3198
- package/build/protos/bytes.proto.js +695 -283
- package/build/protos/common.proto.js +312 -112
- package/build/protos/file.proto.js +2678 -1280
- package/build/protos/fs.proto.js +5520 -2706
- package/build/protos/ipc.proto.js +399 -155
- package/build/protos/json-ipc.proto.js +483 -195
- package/build/protos/storage.proto.js +468 -180
- package/package.json +2 -2
|
@@ -38,7 +38,7 @@ $root.storage = (function() {
|
|
|
38
38
|
function GetAppLocalFSRequestBody(properties) {
|
|
39
39
|
if (properties)
|
|
40
40
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41
|
-
if (properties[keys[i]] != null)
|
|
41
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
42
42
|
this[keys[i]] = properties[keys[i]];
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -71,11 +71,15 @@ $root.storage = (function() {
|
|
|
71
71
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72
72
|
* @returns {$protobuf.Writer} Writer
|
|
73
73
|
*/
|
|
74
|
-
GetAppLocalFSRequestBody.encode = function encode(message, writer) {
|
|
74
|
+
GetAppLocalFSRequestBody.encode = function encode(message, writer, q) {
|
|
75
75
|
if (!writer)
|
|
76
76
|
writer = $Writer.create();
|
|
77
|
+
if (q === undefined)
|
|
78
|
+
q = 0;
|
|
79
|
+
if (q > $util.recursionLimit)
|
|
80
|
+
throw Error("max depth exceeded");
|
|
77
81
|
if (message.appName != null && Object.hasOwnProperty.call(message, "appName"))
|
|
78
|
-
$root.common.StringValue.encode(message.appName, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
82
|
+
$root.common.StringValue.encode(message.appName, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
|
|
79
83
|
return writer;
|
|
80
84
|
};
|
|
81
85
|
|
|
@@ -89,7 +93,7 @@ $root.storage = (function() {
|
|
|
89
93
|
* @returns {$protobuf.Writer} Writer
|
|
90
94
|
*/
|
|
91
95
|
GetAppLocalFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
92
|
-
return this.encode(message, writer).ldelim();
|
|
96
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
93
97
|
};
|
|
94
98
|
|
|
95
99
|
/**
|
|
@@ -103,9 +107,13 @@ $root.storage = (function() {
|
|
|
103
107
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104
108
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105
109
|
*/
|
|
106
|
-
GetAppLocalFSRequestBody.decode = function decode(reader, length, error) {
|
|
110
|
+
GetAppLocalFSRequestBody.decode = function decode(reader, length, error, long) {
|
|
107
111
|
if (!(reader instanceof $Reader))
|
|
108
112
|
reader = $Reader.create(reader);
|
|
113
|
+
if (long === undefined)
|
|
114
|
+
long = 0;
|
|
115
|
+
if (long > $Reader.recursionLimit)
|
|
116
|
+
throw Error("maximum nesting depth exceeded");
|
|
109
117
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetAppLocalFSRequestBody();
|
|
110
118
|
while (reader.pos < end) {
|
|
111
119
|
var tag = reader.uint32();
|
|
@@ -113,11 +121,11 @@ $root.storage = (function() {
|
|
|
113
121
|
break;
|
|
114
122
|
switch (tag >>> 3) {
|
|
115
123
|
case 1: {
|
|
116
|
-
message.appName = $root.common.StringValue.decode(reader, reader.uint32());
|
|
124
|
+
message.appName = $root.common.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
117
125
|
break;
|
|
118
126
|
}
|
|
119
127
|
default:
|
|
120
|
-
reader.skipType(tag & 7);
|
|
128
|
+
reader.skipType(tag & 7, long);
|
|
121
129
|
break;
|
|
122
130
|
}
|
|
123
131
|
}
|
|
@@ -148,11 +156,15 @@ $root.storage = (function() {
|
|
|
148
156
|
* @param {Object.<string,*>} message Plain object to verify
|
|
149
157
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
150
158
|
*/
|
|
151
|
-
GetAppLocalFSRequestBody.verify = function verify(message) {
|
|
159
|
+
GetAppLocalFSRequestBody.verify = function verify(message, long) {
|
|
152
160
|
if (typeof message !== "object" || message === null)
|
|
153
161
|
return "object expected";
|
|
154
|
-
if (
|
|
155
|
-
|
|
162
|
+
if (long === undefined)
|
|
163
|
+
long = 0;
|
|
164
|
+
if (long > $util.recursionLimit)
|
|
165
|
+
return "maximum nesting depth exceeded";
|
|
166
|
+
if (message.appName != null && Object.hasOwnProperty.call(message, "appName")) {
|
|
167
|
+
var error = $root.common.StringValue.verify(message.appName, long + 1);
|
|
156
168
|
if (error)
|
|
157
169
|
return "appName." + error;
|
|
158
170
|
}
|
|
@@ -167,14 +179,20 @@ $root.storage = (function() {
|
|
|
167
179
|
* @param {Object.<string,*>} object Plain object
|
|
168
180
|
* @returns {storage.GetAppLocalFSRequestBody} GetAppLocalFSRequestBody
|
|
169
181
|
*/
|
|
170
|
-
GetAppLocalFSRequestBody.fromObject = function fromObject(object) {
|
|
182
|
+
GetAppLocalFSRequestBody.fromObject = function fromObject(object, long) {
|
|
171
183
|
if (object instanceof $root.storage.GetAppLocalFSRequestBody)
|
|
172
184
|
return object;
|
|
185
|
+
if (!$util.isObject(object))
|
|
186
|
+
throw TypeError(".storage.GetAppLocalFSRequestBody: object expected");
|
|
187
|
+
if (long === undefined)
|
|
188
|
+
long = 0;
|
|
189
|
+
if (long > $util.recursionLimit)
|
|
190
|
+
throw Error("maximum nesting depth exceeded");
|
|
173
191
|
var message = new $root.storage.GetAppLocalFSRequestBody();
|
|
174
192
|
if (object.appName != null) {
|
|
175
|
-
if (
|
|
193
|
+
if (!$util.isObject(object.appName))
|
|
176
194
|
throw TypeError(".storage.GetAppLocalFSRequestBody.appName: object expected");
|
|
177
|
-
message.appName = $root.common.StringValue.fromObject(object.appName);
|
|
195
|
+
message.appName = $root.common.StringValue.fromObject(object.appName, long + 1);
|
|
178
196
|
}
|
|
179
197
|
return message;
|
|
180
198
|
};
|
|
@@ -188,14 +206,18 @@ $root.storage = (function() {
|
|
|
188
206
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
189
207
|
* @returns {Object.<string,*>} Plain object
|
|
190
208
|
*/
|
|
191
|
-
GetAppLocalFSRequestBody.toObject = function toObject(message, options) {
|
|
209
|
+
GetAppLocalFSRequestBody.toObject = function toObject(message, options, q) {
|
|
192
210
|
if (!options)
|
|
193
211
|
options = {};
|
|
212
|
+
if (q === undefined)
|
|
213
|
+
q = 0;
|
|
214
|
+
if (q > $util.recursionLimit)
|
|
215
|
+
throw Error("max depth exceeded");
|
|
194
216
|
var object = {};
|
|
195
217
|
if (options.defaults)
|
|
196
218
|
object.appName = null;
|
|
197
|
-
if (message.appName != null &&
|
|
198
|
-
object.appName = $root.common.StringValue.toObject(message.appName, options);
|
|
219
|
+
if (message.appName != null && Object.hasOwnProperty.call(message, "appName"))
|
|
220
|
+
object.appName = $root.common.StringValue.toObject(message.appName, options, q + 1);
|
|
199
221
|
return object;
|
|
200
222
|
};
|
|
201
223
|
|
|
@@ -248,7 +270,7 @@ $root.storage = (function() {
|
|
|
248
270
|
function GetAppSyncedFSRequestBody(properties) {
|
|
249
271
|
if (properties)
|
|
250
272
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
251
|
-
if (properties[keys[i]] != null)
|
|
273
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
252
274
|
this[keys[i]] = properties[keys[i]];
|
|
253
275
|
}
|
|
254
276
|
|
|
@@ -281,11 +303,15 @@ $root.storage = (function() {
|
|
|
281
303
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
282
304
|
* @returns {$protobuf.Writer} Writer
|
|
283
305
|
*/
|
|
284
|
-
GetAppSyncedFSRequestBody.encode = function encode(message, writer) {
|
|
306
|
+
GetAppSyncedFSRequestBody.encode = function encode(message, writer, q) {
|
|
285
307
|
if (!writer)
|
|
286
308
|
writer = $Writer.create();
|
|
309
|
+
if (q === undefined)
|
|
310
|
+
q = 0;
|
|
311
|
+
if (q > $util.recursionLimit)
|
|
312
|
+
throw Error("max depth exceeded");
|
|
287
313
|
if (message.appName != null && Object.hasOwnProperty.call(message, "appName"))
|
|
288
|
-
$root.common.StringValue.encode(message.appName, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
314
|
+
$root.common.StringValue.encode(message.appName, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
|
|
289
315
|
return writer;
|
|
290
316
|
};
|
|
291
317
|
|
|
@@ -299,7 +325,7 @@ $root.storage = (function() {
|
|
|
299
325
|
* @returns {$protobuf.Writer} Writer
|
|
300
326
|
*/
|
|
301
327
|
GetAppSyncedFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
302
|
-
return this.encode(message, writer).ldelim();
|
|
328
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
303
329
|
};
|
|
304
330
|
|
|
305
331
|
/**
|
|
@@ -313,9 +339,13 @@ $root.storage = (function() {
|
|
|
313
339
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
314
340
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
315
341
|
*/
|
|
316
|
-
GetAppSyncedFSRequestBody.decode = function decode(reader, length, error) {
|
|
342
|
+
GetAppSyncedFSRequestBody.decode = function decode(reader, length, error, long) {
|
|
317
343
|
if (!(reader instanceof $Reader))
|
|
318
344
|
reader = $Reader.create(reader);
|
|
345
|
+
if (long === undefined)
|
|
346
|
+
long = 0;
|
|
347
|
+
if (long > $Reader.recursionLimit)
|
|
348
|
+
throw Error("maximum nesting depth exceeded");
|
|
319
349
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetAppSyncedFSRequestBody();
|
|
320
350
|
while (reader.pos < end) {
|
|
321
351
|
var tag = reader.uint32();
|
|
@@ -323,11 +353,11 @@ $root.storage = (function() {
|
|
|
323
353
|
break;
|
|
324
354
|
switch (tag >>> 3) {
|
|
325
355
|
case 1: {
|
|
326
|
-
message.appName = $root.common.StringValue.decode(reader, reader.uint32());
|
|
356
|
+
message.appName = $root.common.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
327
357
|
break;
|
|
328
358
|
}
|
|
329
359
|
default:
|
|
330
|
-
reader.skipType(tag & 7);
|
|
360
|
+
reader.skipType(tag & 7, long);
|
|
331
361
|
break;
|
|
332
362
|
}
|
|
333
363
|
}
|
|
@@ -358,11 +388,15 @@ $root.storage = (function() {
|
|
|
358
388
|
* @param {Object.<string,*>} message Plain object to verify
|
|
359
389
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
360
390
|
*/
|
|
361
|
-
GetAppSyncedFSRequestBody.verify = function verify(message) {
|
|
391
|
+
GetAppSyncedFSRequestBody.verify = function verify(message, long) {
|
|
362
392
|
if (typeof message !== "object" || message === null)
|
|
363
393
|
return "object expected";
|
|
364
|
-
if (
|
|
365
|
-
|
|
394
|
+
if (long === undefined)
|
|
395
|
+
long = 0;
|
|
396
|
+
if (long > $util.recursionLimit)
|
|
397
|
+
return "maximum nesting depth exceeded";
|
|
398
|
+
if (message.appName != null && Object.hasOwnProperty.call(message, "appName")) {
|
|
399
|
+
var error = $root.common.StringValue.verify(message.appName, long + 1);
|
|
366
400
|
if (error)
|
|
367
401
|
return "appName." + error;
|
|
368
402
|
}
|
|
@@ -377,14 +411,20 @@ $root.storage = (function() {
|
|
|
377
411
|
* @param {Object.<string,*>} object Plain object
|
|
378
412
|
* @returns {storage.GetAppSyncedFSRequestBody} GetAppSyncedFSRequestBody
|
|
379
413
|
*/
|
|
380
|
-
GetAppSyncedFSRequestBody.fromObject = function fromObject(object) {
|
|
414
|
+
GetAppSyncedFSRequestBody.fromObject = function fromObject(object, long) {
|
|
381
415
|
if (object instanceof $root.storage.GetAppSyncedFSRequestBody)
|
|
382
416
|
return object;
|
|
417
|
+
if (!$util.isObject(object))
|
|
418
|
+
throw TypeError(".storage.GetAppSyncedFSRequestBody: object expected");
|
|
419
|
+
if (long === undefined)
|
|
420
|
+
long = 0;
|
|
421
|
+
if (long > $util.recursionLimit)
|
|
422
|
+
throw Error("maximum nesting depth exceeded");
|
|
383
423
|
var message = new $root.storage.GetAppSyncedFSRequestBody();
|
|
384
424
|
if (object.appName != null) {
|
|
385
|
-
if (
|
|
425
|
+
if (!$util.isObject(object.appName))
|
|
386
426
|
throw TypeError(".storage.GetAppSyncedFSRequestBody.appName: object expected");
|
|
387
|
-
message.appName = $root.common.StringValue.fromObject(object.appName);
|
|
427
|
+
message.appName = $root.common.StringValue.fromObject(object.appName, long + 1);
|
|
388
428
|
}
|
|
389
429
|
return message;
|
|
390
430
|
};
|
|
@@ -398,14 +438,18 @@ $root.storage = (function() {
|
|
|
398
438
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
399
439
|
* @returns {Object.<string,*>} Plain object
|
|
400
440
|
*/
|
|
401
|
-
GetAppSyncedFSRequestBody.toObject = function toObject(message, options) {
|
|
441
|
+
GetAppSyncedFSRequestBody.toObject = function toObject(message, options, q) {
|
|
402
442
|
if (!options)
|
|
403
443
|
options = {};
|
|
444
|
+
if (q === undefined)
|
|
445
|
+
q = 0;
|
|
446
|
+
if (q > $util.recursionLimit)
|
|
447
|
+
throw Error("max depth exceeded");
|
|
404
448
|
var object = {};
|
|
405
449
|
if (options.defaults)
|
|
406
450
|
object.appName = null;
|
|
407
|
-
if (message.appName != null &&
|
|
408
|
-
object.appName = $root.common.StringValue.toObject(message.appName, options);
|
|
451
|
+
if (message.appName != null && Object.hasOwnProperty.call(message, "appName"))
|
|
452
|
+
object.appName = $root.common.StringValue.toObject(message.appName, options, q + 1);
|
|
409
453
|
return object;
|
|
410
454
|
};
|
|
411
455
|
|
|
@@ -459,7 +503,7 @@ $root.storage = (function() {
|
|
|
459
503
|
function GetUserFSRequestBody(properties) {
|
|
460
504
|
if (properties)
|
|
461
505
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
462
|
-
if (properties[keys[i]] != null)
|
|
506
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
463
507
|
this[keys[i]] = properties[keys[i]];
|
|
464
508
|
}
|
|
465
509
|
|
|
@@ -500,13 +544,17 @@ $root.storage = (function() {
|
|
|
500
544
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
501
545
|
* @returns {$protobuf.Writer} Writer
|
|
502
546
|
*/
|
|
503
|
-
GetUserFSRequestBody.encode = function encode(message, writer) {
|
|
547
|
+
GetUserFSRequestBody.encode = function encode(message, writer, q) {
|
|
504
548
|
if (!writer)
|
|
505
549
|
writer = $Writer.create();
|
|
550
|
+
if (q === undefined)
|
|
551
|
+
q = 0;
|
|
552
|
+
if (q > $util.recursionLimit)
|
|
553
|
+
throw Error("max depth exceeded");
|
|
506
554
|
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
507
555
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
508
556
|
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
509
|
-
$root.common.StringValue.encode(message.path, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
557
|
+
$root.common.StringValue.encode(message.path, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
|
|
510
558
|
return writer;
|
|
511
559
|
};
|
|
512
560
|
|
|
@@ -520,7 +568,7 @@ $root.storage = (function() {
|
|
|
520
568
|
* @returns {$protobuf.Writer} Writer
|
|
521
569
|
*/
|
|
522
570
|
GetUserFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
523
|
-
return this.encode(message, writer).ldelim();
|
|
571
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
524
572
|
};
|
|
525
573
|
|
|
526
574
|
/**
|
|
@@ -534,9 +582,13 @@ $root.storage = (function() {
|
|
|
534
582
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
535
583
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
536
584
|
*/
|
|
537
|
-
GetUserFSRequestBody.decode = function decode(reader, length, error) {
|
|
585
|
+
GetUserFSRequestBody.decode = function decode(reader, length, error, long) {
|
|
538
586
|
if (!(reader instanceof $Reader))
|
|
539
587
|
reader = $Reader.create(reader);
|
|
588
|
+
if (long === undefined)
|
|
589
|
+
long = 0;
|
|
590
|
+
if (long > $Reader.recursionLimit)
|
|
591
|
+
throw Error("maximum nesting depth exceeded");
|
|
540
592
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetUserFSRequestBody();
|
|
541
593
|
while (reader.pos < end) {
|
|
542
594
|
var tag = reader.uint32();
|
|
@@ -548,11 +600,11 @@ $root.storage = (function() {
|
|
|
548
600
|
break;
|
|
549
601
|
}
|
|
550
602
|
case 2: {
|
|
551
|
-
message.path = $root.common.StringValue.decode(reader, reader.uint32());
|
|
603
|
+
message.path = $root.common.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
552
604
|
break;
|
|
553
605
|
}
|
|
554
606
|
default:
|
|
555
|
-
reader.skipType(tag & 7);
|
|
607
|
+
reader.skipType(tag & 7, long);
|
|
556
608
|
break;
|
|
557
609
|
}
|
|
558
610
|
}
|
|
@@ -583,14 +635,18 @@ $root.storage = (function() {
|
|
|
583
635
|
* @param {Object.<string,*>} message Plain object to verify
|
|
584
636
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
585
637
|
*/
|
|
586
|
-
GetUserFSRequestBody.verify = function verify(message) {
|
|
638
|
+
GetUserFSRequestBody.verify = function verify(message, long) {
|
|
587
639
|
if (typeof message !== "object" || message === null)
|
|
588
640
|
return "object expected";
|
|
589
|
-
if (
|
|
641
|
+
if (long === undefined)
|
|
642
|
+
long = 0;
|
|
643
|
+
if (long > $util.recursionLimit)
|
|
644
|
+
return "maximum nesting depth exceeded";
|
|
645
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
590
646
|
if (!$util.isString(message.type))
|
|
591
647
|
return "type: string expected";
|
|
592
|
-
if (message.path != null &&
|
|
593
|
-
var error = $root.common.StringValue.verify(message.path);
|
|
648
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path")) {
|
|
649
|
+
var error = $root.common.StringValue.verify(message.path, long + 1);
|
|
594
650
|
if (error)
|
|
595
651
|
return "path." + error;
|
|
596
652
|
}
|
|
@@ -605,16 +661,22 @@ $root.storage = (function() {
|
|
|
605
661
|
* @param {Object.<string,*>} object Plain object
|
|
606
662
|
* @returns {storage.GetUserFSRequestBody} GetUserFSRequestBody
|
|
607
663
|
*/
|
|
608
|
-
GetUserFSRequestBody.fromObject = function fromObject(object) {
|
|
664
|
+
GetUserFSRequestBody.fromObject = function fromObject(object, long) {
|
|
609
665
|
if (object instanceof $root.storage.GetUserFSRequestBody)
|
|
610
666
|
return object;
|
|
667
|
+
if (!$util.isObject(object))
|
|
668
|
+
throw TypeError(".storage.GetUserFSRequestBody: object expected");
|
|
669
|
+
if (long === undefined)
|
|
670
|
+
long = 0;
|
|
671
|
+
if (long > $util.recursionLimit)
|
|
672
|
+
throw Error("maximum nesting depth exceeded");
|
|
611
673
|
var message = new $root.storage.GetUserFSRequestBody();
|
|
612
674
|
if (object.type != null)
|
|
613
675
|
message.type = String(object.type);
|
|
614
676
|
if (object.path != null) {
|
|
615
|
-
if (
|
|
677
|
+
if (!$util.isObject(object.path))
|
|
616
678
|
throw TypeError(".storage.GetUserFSRequestBody.path: object expected");
|
|
617
|
-
message.path = $root.common.StringValue.fromObject(object.path);
|
|
679
|
+
message.path = $root.common.StringValue.fromObject(object.path, long + 1);
|
|
618
680
|
}
|
|
619
681
|
return message;
|
|
620
682
|
};
|
|
@@ -628,18 +690,22 @@ $root.storage = (function() {
|
|
|
628
690
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
629
691
|
* @returns {Object.<string,*>} Plain object
|
|
630
692
|
*/
|
|
631
|
-
GetUserFSRequestBody.toObject = function toObject(message, options) {
|
|
693
|
+
GetUserFSRequestBody.toObject = function toObject(message, options, q) {
|
|
632
694
|
if (!options)
|
|
633
695
|
options = {};
|
|
696
|
+
if (q === undefined)
|
|
697
|
+
q = 0;
|
|
698
|
+
if (q > $util.recursionLimit)
|
|
699
|
+
throw Error("max depth exceeded");
|
|
634
700
|
var object = {};
|
|
635
701
|
if (options.defaults) {
|
|
636
702
|
object.type = "";
|
|
637
703
|
object.path = null;
|
|
638
704
|
}
|
|
639
|
-
if (message.type != null &&
|
|
705
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
640
706
|
object.type = message.type;
|
|
641
|
-
if (message.path != null &&
|
|
642
|
-
object.path = $root.common.StringValue.toObject(message.path, options);
|
|
707
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
708
|
+
object.path = $root.common.StringValue.toObject(message.path, options, q + 1);
|
|
643
709
|
return object;
|
|
644
710
|
};
|
|
645
711
|
|
|
@@ -693,7 +759,7 @@ $root.storage = (function() {
|
|
|
693
759
|
function GetSysFSRequestBody(properties) {
|
|
694
760
|
if (properties)
|
|
695
761
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
696
|
-
if (properties[keys[i]] != null)
|
|
762
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
697
763
|
this[keys[i]] = properties[keys[i]];
|
|
698
764
|
}
|
|
699
765
|
|
|
@@ -734,13 +800,17 @@ $root.storage = (function() {
|
|
|
734
800
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
735
801
|
* @returns {$protobuf.Writer} Writer
|
|
736
802
|
*/
|
|
737
|
-
GetSysFSRequestBody.encode = function encode(message, writer) {
|
|
803
|
+
GetSysFSRequestBody.encode = function encode(message, writer, q) {
|
|
738
804
|
if (!writer)
|
|
739
805
|
writer = $Writer.create();
|
|
806
|
+
if (q === undefined)
|
|
807
|
+
q = 0;
|
|
808
|
+
if (q > $util.recursionLimit)
|
|
809
|
+
throw Error("max depth exceeded");
|
|
740
810
|
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
741
811
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
742
812
|
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
743
|
-
$root.common.StringValue.encode(message.path, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
813
|
+
$root.common.StringValue.encode(message.path, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
|
|
744
814
|
return writer;
|
|
745
815
|
};
|
|
746
816
|
|
|
@@ -754,7 +824,7 @@ $root.storage = (function() {
|
|
|
754
824
|
* @returns {$protobuf.Writer} Writer
|
|
755
825
|
*/
|
|
756
826
|
GetSysFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
757
|
-
return this.encode(message, writer).ldelim();
|
|
827
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
758
828
|
};
|
|
759
829
|
|
|
760
830
|
/**
|
|
@@ -768,9 +838,13 @@ $root.storage = (function() {
|
|
|
768
838
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
769
839
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
770
840
|
*/
|
|
771
|
-
GetSysFSRequestBody.decode = function decode(reader, length, error) {
|
|
841
|
+
GetSysFSRequestBody.decode = function decode(reader, length, error, long) {
|
|
772
842
|
if (!(reader instanceof $Reader))
|
|
773
843
|
reader = $Reader.create(reader);
|
|
844
|
+
if (long === undefined)
|
|
845
|
+
long = 0;
|
|
846
|
+
if (long > $Reader.recursionLimit)
|
|
847
|
+
throw Error("maximum nesting depth exceeded");
|
|
774
848
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetSysFSRequestBody();
|
|
775
849
|
while (reader.pos < end) {
|
|
776
850
|
var tag = reader.uint32();
|
|
@@ -782,11 +856,11 @@ $root.storage = (function() {
|
|
|
782
856
|
break;
|
|
783
857
|
}
|
|
784
858
|
case 2: {
|
|
785
|
-
message.path = $root.common.StringValue.decode(reader, reader.uint32());
|
|
859
|
+
message.path = $root.common.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
786
860
|
break;
|
|
787
861
|
}
|
|
788
862
|
default:
|
|
789
|
-
reader.skipType(tag & 7);
|
|
863
|
+
reader.skipType(tag & 7, long);
|
|
790
864
|
break;
|
|
791
865
|
}
|
|
792
866
|
}
|
|
@@ -817,14 +891,18 @@ $root.storage = (function() {
|
|
|
817
891
|
* @param {Object.<string,*>} message Plain object to verify
|
|
818
892
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
819
893
|
*/
|
|
820
|
-
GetSysFSRequestBody.verify = function verify(message) {
|
|
894
|
+
GetSysFSRequestBody.verify = function verify(message, long) {
|
|
821
895
|
if (typeof message !== "object" || message === null)
|
|
822
896
|
return "object expected";
|
|
823
|
-
if (
|
|
897
|
+
if (long === undefined)
|
|
898
|
+
long = 0;
|
|
899
|
+
if (long > $util.recursionLimit)
|
|
900
|
+
return "maximum nesting depth exceeded";
|
|
901
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
824
902
|
if (!$util.isString(message.type))
|
|
825
903
|
return "type: string expected";
|
|
826
|
-
if (message.path != null &&
|
|
827
|
-
var error = $root.common.StringValue.verify(message.path);
|
|
904
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path")) {
|
|
905
|
+
var error = $root.common.StringValue.verify(message.path, long + 1);
|
|
828
906
|
if (error)
|
|
829
907
|
return "path." + error;
|
|
830
908
|
}
|
|
@@ -839,16 +917,22 @@ $root.storage = (function() {
|
|
|
839
917
|
* @param {Object.<string,*>} object Plain object
|
|
840
918
|
* @returns {storage.GetSysFSRequestBody} GetSysFSRequestBody
|
|
841
919
|
*/
|
|
842
|
-
GetSysFSRequestBody.fromObject = function fromObject(object) {
|
|
920
|
+
GetSysFSRequestBody.fromObject = function fromObject(object, long) {
|
|
843
921
|
if (object instanceof $root.storage.GetSysFSRequestBody)
|
|
844
922
|
return object;
|
|
923
|
+
if (!$util.isObject(object))
|
|
924
|
+
throw TypeError(".storage.GetSysFSRequestBody: object expected");
|
|
925
|
+
if (long === undefined)
|
|
926
|
+
long = 0;
|
|
927
|
+
if (long > $util.recursionLimit)
|
|
928
|
+
throw Error("maximum nesting depth exceeded");
|
|
845
929
|
var message = new $root.storage.GetSysFSRequestBody();
|
|
846
930
|
if (object.type != null)
|
|
847
931
|
message.type = String(object.type);
|
|
848
932
|
if (object.path != null) {
|
|
849
|
-
if (
|
|
933
|
+
if (!$util.isObject(object.path))
|
|
850
934
|
throw TypeError(".storage.GetSysFSRequestBody.path: object expected");
|
|
851
|
-
message.path = $root.common.StringValue.fromObject(object.path);
|
|
935
|
+
message.path = $root.common.StringValue.fromObject(object.path, long + 1);
|
|
852
936
|
}
|
|
853
937
|
return message;
|
|
854
938
|
};
|
|
@@ -862,18 +946,22 @@ $root.storage = (function() {
|
|
|
862
946
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
863
947
|
* @returns {Object.<string,*>} Plain object
|
|
864
948
|
*/
|
|
865
|
-
GetSysFSRequestBody.toObject = function toObject(message, options) {
|
|
949
|
+
GetSysFSRequestBody.toObject = function toObject(message, options, q) {
|
|
866
950
|
if (!options)
|
|
867
951
|
options = {};
|
|
952
|
+
if (q === undefined)
|
|
953
|
+
q = 0;
|
|
954
|
+
if (q > $util.recursionLimit)
|
|
955
|
+
throw Error("max depth exceeded");
|
|
868
956
|
var object = {};
|
|
869
957
|
if (options.defaults) {
|
|
870
958
|
object.type = "";
|
|
871
959
|
object.path = null;
|
|
872
960
|
}
|
|
873
|
-
if (message.type != null &&
|
|
961
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
874
962
|
object.type = message.type;
|
|
875
|
-
if (message.path != null &&
|
|
876
|
-
object.path = $root.common.StringValue.toObject(message.path, options);
|
|
963
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
964
|
+
object.path = $root.common.StringValue.toObject(message.path, options, q + 1);
|
|
877
965
|
return object;
|
|
878
966
|
};
|
|
879
967
|
|
|
@@ -940,7 +1028,7 @@ $root.common = (function() {
|
|
|
940
1028
|
this.path = [];
|
|
941
1029
|
if (properties)
|
|
942
1030
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
943
|
-
if (properties[keys[i]] != null)
|
|
1031
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
944
1032
|
this[keys[i]] = properties[keys[i]];
|
|
945
1033
|
}
|
|
946
1034
|
|
|
@@ -981,9 +1069,13 @@ $root.common = (function() {
|
|
|
981
1069
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
982
1070
|
* @returns {$protobuf.Writer} Writer
|
|
983
1071
|
*/
|
|
984
|
-
ObjectReference.encode = function encode(message, writer) {
|
|
1072
|
+
ObjectReference.encode = function encode(message, writer, q) {
|
|
985
1073
|
if (!writer)
|
|
986
1074
|
writer = $Writer.create();
|
|
1075
|
+
if (q === undefined)
|
|
1076
|
+
q = 0;
|
|
1077
|
+
if (q > $util.recursionLimit)
|
|
1078
|
+
throw Error("max depth exceeded");
|
|
987
1079
|
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
988
1080
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objType);
|
|
989
1081
|
if (message.path != null && message.path.length)
|
|
@@ -1002,7 +1094,7 @@ $root.common = (function() {
|
|
|
1002
1094
|
* @returns {$protobuf.Writer} Writer
|
|
1003
1095
|
*/
|
|
1004
1096
|
ObjectReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1005
|
-
return this.encode(message, writer).ldelim();
|
|
1097
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1006
1098
|
};
|
|
1007
1099
|
|
|
1008
1100
|
/**
|
|
@@ -1016,9 +1108,13 @@ $root.common = (function() {
|
|
|
1016
1108
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1017
1109
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1018
1110
|
*/
|
|
1019
|
-
ObjectReference.decode = function decode(reader, length, error) {
|
|
1111
|
+
ObjectReference.decode = function decode(reader, length, error, long) {
|
|
1020
1112
|
if (!(reader instanceof $Reader))
|
|
1021
1113
|
reader = $Reader.create(reader);
|
|
1114
|
+
if (long === undefined)
|
|
1115
|
+
long = 0;
|
|
1116
|
+
if (long > $Reader.recursionLimit)
|
|
1117
|
+
throw Error("maximum nesting depth exceeded");
|
|
1022
1118
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ObjectReference();
|
|
1023
1119
|
while (reader.pos < end) {
|
|
1024
1120
|
var tag = reader.uint32();
|
|
@@ -1036,7 +1132,7 @@ $root.common = (function() {
|
|
|
1036
1132
|
break;
|
|
1037
1133
|
}
|
|
1038
1134
|
default:
|
|
1039
|
-
reader.skipType(tag & 7);
|
|
1135
|
+
reader.skipType(tag & 7, long);
|
|
1040
1136
|
break;
|
|
1041
1137
|
}
|
|
1042
1138
|
}
|
|
@@ -1067,13 +1163,17 @@ $root.common = (function() {
|
|
|
1067
1163
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1068
1164
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1069
1165
|
*/
|
|
1070
|
-
ObjectReference.verify = function verify(message) {
|
|
1166
|
+
ObjectReference.verify = function verify(message, long) {
|
|
1071
1167
|
if (typeof message !== "object" || message === null)
|
|
1072
1168
|
return "object expected";
|
|
1073
|
-
if (
|
|
1169
|
+
if (long === undefined)
|
|
1170
|
+
long = 0;
|
|
1171
|
+
if (long > $util.recursionLimit)
|
|
1172
|
+
return "maximum nesting depth exceeded";
|
|
1173
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
1074
1174
|
if (!$util.isString(message.objType))
|
|
1075
1175
|
return "objType: string expected";
|
|
1076
|
-
if (message.path != null &&
|
|
1176
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path")) {
|
|
1077
1177
|
if (!Array.isArray(message.path))
|
|
1078
1178
|
return "path: array expected";
|
|
1079
1179
|
for (var i = 0; i < message.path.length; ++i)
|
|
@@ -1091,9 +1191,15 @@ $root.common = (function() {
|
|
|
1091
1191
|
* @param {Object.<string,*>} object Plain object
|
|
1092
1192
|
* @returns {common.ObjectReference} ObjectReference
|
|
1093
1193
|
*/
|
|
1094
|
-
ObjectReference.fromObject = function fromObject(object) {
|
|
1194
|
+
ObjectReference.fromObject = function fromObject(object, long) {
|
|
1095
1195
|
if (object instanceof $root.common.ObjectReference)
|
|
1096
1196
|
return object;
|
|
1197
|
+
if (!$util.isObject(object))
|
|
1198
|
+
throw TypeError(".common.ObjectReference: object expected");
|
|
1199
|
+
if (long === undefined)
|
|
1200
|
+
long = 0;
|
|
1201
|
+
if (long > $util.recursionLimit)
|
|
1202
|
+
throw Error("maximum nesting depth exceeded");
|
|
1097
1203
|
var message = new $root.common.ObjectReference();
|
|
1098
1204
|
if (object.objType != null)
|
|
1099
1205
|
message.objType = String(object.objType);
|
|
@@ -1116,15 +1222,19 @@ $root.common = (function() {
|
|
|
1116
1222
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1117
1223
|
* @returns {Object.<string,*>} Plain object
|
|
1118
1224
|
*/
|
|
1119
|
-
ObjectReference.toObject = function toObject(message, options) {
|
|
1225
|
+
ObjectReference.toObject = function toObject(message, options, q) {
|
|
1120
1226
|
if (!options)
|
|
1121
1227
|
options = {};
|
|
1228
|
+
if (q === undefined)
|
|
1229
|
+
q = 0;
|
|
1230
|
+
if (q > $util.recursionLimit)
|
|
1231
|
+
throw Error("max depth exceeded");
|
|
1122
1232
|
var object = {};
|
|
1123
1233
|
if (options.arrays || options.defaults)
|
|
1124
1234
|
object.path = [];
|
|
1125
1235
|
if (options.defaults)
|
|
1126
1236
|
object.objType = "";
|
|
1127
|
-
if (message.objType != null &&
|
|
1237
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
1128
1238
|
object.objType = message.objType;
|
|
1129
1239
|
if (message.path && message.path.length) {
|
|
1130
1240
|
object.path = [];
|
|
@@ -1183,7 +1293,7 @@ $root.common = (function() {
|
|
|
1183
1293
|
function BooleanValue(properties) {
|
|
1184
1294
|
if (properties)
|
|
1185
1295
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1186
|
-
if (properties[keys[i]] != null)
|
|
1296
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1187
1297
|
this[keys[i]] = properties[keys[i]];
|
|
1188
1298
|
}
|
|
1189
1299
|
|
|
@@ -1216,9 +1326,13 @@ $root.common = (function() {
|
|
|
1216
1326
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1217
1327
|
* @returns {$protobuf.Writer} Writer
|
|
1218
1328
|
*/
|
|
1219
|
-
BooleanValue.encode = function encode(message, writer) {
|
|
1329
|
+
BooleanValue.encode = function encode(message, writer, q) {
|
|
1220
1330
|
if (!writer)
|
|
1221
1331
|
writer = $Writer.create();
|
|
1332
|
+
if (q === undefined)
|
|
1333
|
+
q = 0;
|
|
1334
|
+
if (q > $util.recursionLimit)
|
|
1335
|
+
throw Error("max depth exceeded");
|
|
1222
1336
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1223
1337
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
|
|
1224
1338
|
return writer;
|
|
@@ -1234,7 +1348,7 @@ $root.common = (function() {
|
|
|
1234
1348
|
* @returns {$protobuf.Writer} Writer
|
|
1235
1349
|
*/
|
|
1236
1350
|
BooleanValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1237
|
-
return this.encode(message, writer).ldelim();
|
|
1351
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1238
1352
|
};
|
|
1239
1353
|
|
|
1240
1354
|
/**
|
|
@@ -1248,9 +1362,13 @@ $root.common = (function() {
|
|
|
1248
1362
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1249
1363
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1250
1364
|
*/
|
|
1251
|
-
BooleanValue.decode = function decode(reader, length, error) {
|
|
1365
|
+
BooleanValue.decode = function decode(reader, length, error, long) {
|
|
1252
1366
|
if (!(reader instanceof $Reader))
|
|
1253
1367
|
reader = $Reader.create(reader);
|
|
1368
|
+
if (long === undefined)
|
|
1369
|
+
long = 0;
|
|
1370
|
+
if (long > $Reader.recursionLimit)
|
|
1371
|
+
throw Error("maximum nesting depth exceeded");
|
|
1254
1372
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BooleanValue();
|
|
1255
1373
|
while (reader.pos < end) {
|
|
1256
1374
|
var tag = reader.uint32();
|
|
@@ -1262,7 +1380,7 @@ $root.common = (function() {
|
|
|
1262
1380
|
break;
|
|
1263
1381
|
}
|
|
1264
1382
|
default:
|
|
1265
|
-
reader.skipType(tag & 7);
|
|
1383
|
+
reader.skipType(tag & 7, long);
|
|
1266
1384
|
break;
|
|
1267
1385
|
}
|
|
1268
1386
|
}
|
|
@@ -1293,10 +1411,14 @@ $root.common = (function() {
|
|
|
1293
1411
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1294
1412
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1295
1413
|
*/
|
|
1296
|
-
BooleanValue.verify = function verify(message) {
|
|
1414
|
+
BooleanValue.verify = function verify(message, long) {
|
|
1297
1415
|
if (typeof message !== "object" || message === null)
|
|
1298
1416
|
return "object expected";
|
|
1299
|
-
if (
|
|
1417
|
+
if (long === undefined)
|
|
1418
|
+
long = 0;
|
|
1419
|
+
if (long > $util.recursionLimit)
|
|
1420
|
+
return "maximum nesting depth exceeded";
|
|
1421
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1300
1422
|
if (typeof message.value !== "boolean")
|
|
1301
1423
|
return "value: boolean expected";
|
|
1302
1424
|
return null;
|
|
@@ -1310,9 +1432,15 @@ $root.common = (function() {
|
|
|
1310
1432
|
* @param {Object.<string,*>} object Plain object
|
|
1311
1433
|
* @returns {common.BooleanValue} BooleanValue
|
|
1312
1434
|
*/
|
|
1313
|
-
BooleanValue.fromObject = function fromObject(object) {
|
|
1435
|
+
BooleanValue.fromObject = function fromObject(object, long) {
|
|
1314
1436
|
if (object instanceof $root.common.BooleanValue)
|
|
1315
1437
|
return object;
|
|
1438
|
+
if (!$util.isObject(object))
|
|
1439
|
+
throw TypeError(".common.BooleanValue: object expected");
|
|
1440
|
+
if (long === undefined)
|
|
1441
|
+
long = 0;
|
|
1442
|
+
if (long > $util.recursionLimit)
|
|
1443
|
+
throw Error("maximum nesting depth exceeded");
|
|
1316
1444
|
var message = new $root.common.BooleanValue();
|
|
1317
1445
|
if (object.value != null)
|
|
1318
1446
|
message.value = Boolean(object.value);
|
|
@@ -1328,13 +1456,17 @@ $root.common = (function() {
|
|
|
1328
1456
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1329
1457
|
* @returns {Object.<string,*>} Plain object
|
|
1330
1458
|
*/
|
|
1331
|
-
BooleanValue.toObject = function toObject(message, options) {
|
|
1459
|
+
BooleanValue.toObject = function toObject(message, options, q) {
|
|
1332
1460
|
if (!options)
|
|
1333
1461
|
options = {};
|
|
1462
|
+
if (q === undefined)
|
|
1463
|
+
q = 0;
|
|
1464
|
+
if (q > $util.recursionLimit)
|
|
1465
|
+
throw Error("max depth exceeded");
|
|
1334
1466
|
var object = {};
|
|
1335
1467
|
if (options.defaults)
|
|
1336
1468
|
object.value = false;
|
|
1337
|
-
if (message.value != null &&
|
|
1469
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1338
1470
|
object.value = message.value;
|
|
1339
1471
|
return object;
|
|
1340
1472
|
};
|
|
@@ -1389,7 +1521,7 @@ $root.common = (function() {
|
|
|
1389
1521
|
this.values = [];
|
|
1390
1522
|
if (properties)
|
|
1391
1523
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1392
|
-
if (properties[keys[i]] != null)
|
|
1524
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1393
1525
|
this[keys[i]] = properties[keys[i]];
|
|
1394
1526
|
}
|
|
1395
1527
|
|
|
@@ -1422,9 +1554,13 @@ $root.common = (function() {
|
|
|
1422
1554
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1423
1555
|
* @returns {$protobuf.Writer} Writer
|
|
1424
1556
|
*/
|
|
1425
|
-
StringArrayValue.encode = function encode(message, writer) {
|
|
1557
|
+
StringArrayValue.encode = function encode(message, writer, q) {
|
|
1426
1558
|
if (!writer)
|
|
1427
1559
|
writer = $Writer.create();
|
|
1560
|
+
if (q === undefined)
|
|
1561
|
+
q = 0;
|
|
1562
|
+
if (q > $util.recursionLimit)
|
|
1563
|
+
throw Error("max depth exceeded");
|
|
1428
1564
|
if (message.values != null && message.values.length)
|
|
1429
1565
|
for (var i = 0; i < message.values.length; ++i)
|
|
1430
1566
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
|
|
@@ -1441,7 +1577,7 @@ $root.common = (function() {
|
|
|
1441
1577
|
* @returns {$protobuf.Writer} Writer
|
|
1442
1578
|
*/
|
|
1443
1579
|
StringArrayValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1444
|
-
return this.encode(message, writer).ldelim();
|
|
1580
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1445
1581
|
};
|
|
1446
1582
|
|
|
1447
1583
|
/**
|
|
@@ -1455,9 +1591,13 @@ $root.common = (function() {
|
|
|
1455
1591
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1456
1592
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1457
1593
|
*/
|
|
1458
|
-
StringArrayValue.decode = function decode(reader, length, error) {
|
|
1594
|
+
StringArrayValue.decode = function decode(reader, length, error, long) {
|
|
1459
1595
|
if (!(reader instanceof $Reader))
|
|
1460
1596
|
reader = $Reader.create(reader);
|
|
1597
|
+
if (long === undefined)
|
|
1598
|
+
long = 0;
|
|
1599
|
+
if (long > $Reader.recursionLimit)
|
|
1600
|
+
throw Error("maximum nesting depth exceeded");
|
|
1461
1601
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringArrayValue();
|
|
1462
1602
|
while (reader.pos < end) {
|
|
1463
1603
|
var tag = reader.uint32();
|
|
@@ -1471,7 +1611,7 @@ $root.common = (function() {
|
|
|
1471
1611
|
break;
|
|
1472
1612
|
}
|
|
1473
1613
|
default:
|
|
1474
|
-
reader.skipType(tag & 7);
|
|
1614
|
+
reader.skipType(tag & 7, long);
|
|
1475
1615
|
break;
|
|
1476
1616
|
}
|
|
1477
1617
|
}
|
|
@@ -1502,10 +1642,14 @@ $root.common = (function() {
|
|
|
1502
1642
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1503
1643
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1504
1644
|
*/
|
|
1505
|
-
StringArrayValue.verify = function verify(message) {
|
|
1645
|
+
StringArrayValue.verify = function verify(message, long) {
|
|
1506
1646
|
if (typeof message !== "object" || message === null)
|
|
1507
1647
|
return "object expected";
|
|
1508
|
-
if (
|
|
1648
|
+
if (long === undefined)
|
|
1649
|
+
long = 0;
|
|
1650
|
+
if (long > $util.recursionLimit)
|
|
1651
|
+
return "maximum nesting depth exceeded";
|
|
1652
|
+
if (message.values != null && Object.hasOwnProperty.call(message, "values")) {
|
|
1509
1653
|
if (!Array.isArray(message.values))
|
|
1510
1654
|
return "values: array expected";
|
|
1511
1655
|
for (var i = 0; i < message.values.length; ++i)
|
|
@@ -1523,9 +1667,15 @@ $root.common = (function() {
|
|
|
1523
1667
|
* @param {Object.<string,*>} object Plain object
|
|
1524
1668
|
* @returns {common.StringArrayValue} StringArrayValue
|
|
1525
1669
|
*/
|
|
1526
|
-
StringArrayValue.fromObject = function fromObject(object) {
|
|
1670
|
+
StringArrayValue.fromObject = function fromObject(object, long) {
|
|
1527
1671
|
if (object instanceof $root.common.StringArrayValue)
|
|
1528
1672
|
return object;
|
|
1673
|
+
if (!$util.isObject(object))
|
|
1674
|
+
throw TypeError(".common.StringArrayValue: object expected");
|
|
1675
|
+
if (long === undefined)
|
|
1676
|
+
long = 0;
|
|
1677
|
+
if (long > $util.recursionLimit)
|
|
1678
|
+
throw Error("maximum nesting depth exceeded");
|
|
1529
1679
|
var message = new $root.common.StringArrayValue();
|
|
1530
1680
|
if (object.values) {
|
|
1531
1681
|
if (!Array.isArray(object.values))
|
|
@@ -1546,9 +1696,13 @@ $root.common = (function() {
|
|
|
1546
1696
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1547
1697
|
* @returns {Object.<string,*>} Plain object
|
|
1548
1698
|
*/
|
|
1549
|
-
StringArrayValue.toObject = function toObject(message, options) {
|
|
1699
|
+
StringArrayValue.toObject = function toObject(message, options, q) {
|
|
1550
1700
|
if (!options)
|
|
1551
1701
|
options = {};
|
|
1702
|
+
if (q === undefined)
|
|
1703
|
+
q = 0;
|
|
1704
|
+
if (q > $util.recursionLimit)
|
|
1705
|
+
throw Error("max depth exceeded");
|
|
1552
1706
|
var object = {};
|
|
1553
1707
|
if (options.arrays || options.defaults)
|
|
1554
1708
|
object.values = [];
|
|
@@ -1609,7 +1763,7 @@ $root.common = (function() {
|
|
|
1609
1763
|
function UInt64Value(properties) {
|
|
1610
1764
|
if (properties)
|
|
1611
1765
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1612
|
-
if (properties[keys[i]] != null)
|
|
1766
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1613
1767
|
this[keys[i]] = properties[keys[i]];
|
|
1614
1768
|
}
|
|
1615
1769
|
|
|
@@ -1642,9 +1796,13 @@ $root.common = (function() {
|
|
|
1642
1796
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1643
1797
|
* @returns {$protobuf.Writer} Writer
|
|
1644
1798
|
*/
|
|
1645
|
-
UInt64Value.encode = function encode(message, writer) {
|
|
1799
|
+
UInt64Value.encode = function encode(message, writer, q) {
|
|
1646
1800
|
if (!writer)
|
|
1647
1801
|
writer = $Writer.create();
|
|
1802
|
+
if (q === undefined)
|
|
1803
|
+
q = 0;
|
|
1804
|
+
if (q > $util.recursionLimit)
|
|
1805
|
+
throw Error("max depth exceeded");
|
|
1648
1806
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1649
1807
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
|
|
1650
1808
|
return writer;
|
|
@@ -1660,7 +1818,7 @@ $root.common = (function() {
|
|
|
1660
1818
|
* @returns {$protobuf.Writer} Writer
|
|
1661
1819
|
*/
|
|
1662
1820
|
UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1663
|
-
return this.encode(message, writer).ldelim();
|
|
1821
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1664
1822
|
};
|
|
1665
1823
|
|
|
1666
1824
|
/**
|
|
@@ -1674,9 +1832,13 @@ $root.common = (function() {
|
|
|
1674
1832
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1675
1833
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1676
1834
|
*/
|
|
1677
|
-
UInt64Value.decode = function decode(reader, length, error) {
|
|
1835
|
+
UInt64Value.decode = function decode(reader, length, error, long) {
|
|
1678
1836
|
if (!(reader instanceof $Reader))
|
|
1679
1837
|
reader = $Reader.create(reader);
|
|
1838
|
+
if (long === undefined)
|
|
1839
|
+
long = 0;
|
|
1840
|
+
if (long > $Reader.recursionLimit)
|
|
1841
|
+
throw Error("maximum nesting depth exceeded");
|
|
1680
1842
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt64Value();
|
|
1681
1843
|
while (reader.pos < end) {
|
|
1682
1844
|
var tag = reader.uint32();
|
|
@@ -1688,7 +1850,7 @@ $root.common = (function() {
|
|
|
1688
1850
|
break;
|
|
1689
1851
|
}
|
|
1690
1852
|
default:
|
|
1691
|
-
reader.skipType(tag & 7);
|
|
1853
|
+
reader.skipType(tag & 7, long);
|
|
1692
1854
|
break;
|
|
1693
1855
|
}
|
|
1694
1856
|
}
|
|
@@ -1719,10 +1881,14 @@ $root.common = (function() {
|
|
|
1719
1881
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1720
1882
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1721
1883
|
*/
|
|
1722
|
-
UInt64Value.verify = function verify(message) {
|
|
1884
|
+
UInt64Value.verify = function verify(message, long) {
|
|
1723
1885
|
if (typeof message !== "object" || message === null)
|
|
1724
1886
|
return "object expected";
|
|
1725
|
-
if (
|
|
1887
|
+
if (long === undefined)
|
|
1888
|
+
long = 0;
|
|
1889
|
+
if (long > $util.recursionLimit)
|
|
1890
|
+
return "maximum nesting depth exceeded";
|
|
1891
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1726
1892
|
if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
|
|
1727
1893
|
return "value: integer|Long expected";
|
|
1728
1894
|
return null;
|
|
@@ -1736,13 +1902,19 @@ $root.common = (function() {
|
|
|
1736
1902
|
* @param {Object.<string,*>} object Plain object
|
|
1737
1903
|
* @returns {common.UInt64Value} UInt64Value
|
|
1738
1904
|
*/
|
|
1739
|
-
UInt64Value.fromObject = function fromObject(object) {
|
|
1905
|
+
UInt64Value.fromObject = function fromObject(object, long) {
|
|
1740
1906
|
if (object instanceof $root.common.UInt64Value)
|
|
1741
1907
|
return object;
|
|
1908
|
+
if (!$util.isObject(object))
|
|
1909
|
+
throw TypeError(".common.UInt64Value: object expected");
|
|
1910
|
+
if (long === undefined)
|
|
1911
|
+
long = 0;
|
|
1912
|
+
if (long > $util.recursionLimit)
|
|
1913
|
+
throw Error("maximum nesting depth exceeded");
|
|
1742
1914
|
var message = new $root.common.UInt64Value();
|
|
1743
1915
|
if (object.value != null)
|
|
1744
1916
|
if ($util.Long)
|
|
1745
|
-
|
|
1917
|
+
message.value = $util.Long.fromValue(object.value, true);
|
|
1746
1918
|
else if (typeof object.value === "string")
|
|
1747
1919
|
message.value = parseInt(object.value, 10);
|
|
1748
1920
|
else if (typeof object.value === "number")
|
|
@@ -1761,18 +1933,24 @@ $root.common = (function() {
|
|
|
1761
1933
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1762
1934
|
* @returns {Object.<string,*>} Plain object
|
|
1763
1935
|
*/
|
|
1764
|
-
UInt64Value.toObject = function toObject(message, options) {
|
|
1936
|
+
UInt64Value.toObject = function toObject(message, options, q) {
|
|
1765
1937
|
if (!options)
|
|
1766
1938
|
options = {};
|
|
1939
|
+
if (q === undefined)
|
|
1940
|
+
q = 0;
|
|
1941
|
+
if (q > $util.recursionLimit)
|
|
1942
|
+
throw Error("max depth exceeded");
|
|
1767
1943
|
var object = {};
|
|
1768
1944
|
if (options.defaults)
|
|
1769
1945
|
if ($util.Long) {
|
|
1770
1946
|
var long = new $util.Long(0, 0, true);
|
|
1771
|
-
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1947
|
+
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
1772
1948
|
} else
|
|
1773
|
-
object.value = options.longs === String ? "0" : 0;
|
|
1774
|
-
if (message.value != null &&
|
|
1775
|
-
if (typeof
|
|
1949
|
+
object.value = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
1950
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1951
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
1952
|
+
object.value = typeof message.value === "number" ? BigInt(message.value) : $util.Long.fromBits(message.value.low >>> 0, message.value.high >>> 0, true).toBigInt();
|
|
1953
|
+
else if (typeof message.value === "number")
|
|
1776
1954
|
object.value = options.longs === String ? String(message.value) : message.value;
|
|
1777
1955
|
else
|
|
1778
1956
|
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;
|
|
@@ -1828,7 +2006,7 @@ $root.common = (function() {
|
|
|
1828
2006
|
function UInt32Value(properties) {
|
|
1829
2007
|
if (properties)
|
|
1830
2008
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1831
|
-
if (properties[keys[i]] != null)
|
|
2009
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1832
2010
|
this[keys[i]] = properties[keys[i]];
|
|
1833
2011
|
}
|
|
1834
2012
|
|
|
@@ -1861,9 +2039,13 @@ $root.common = (function() {
|
|
|
1861
2039
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1862
2040
|
* @returns {$protobuf.Writer} Writer
|
|
1863
2041
|
*/
|
|
1864
|
-
UInt32Value.encode = function encode(message, writer) {
|
|
2042
|
+
UInt32Value.encode = function encode(message, writer, q) {
|
|
1865
2043
|
if (!writer)
|
|
1866
2044
|
writer = $Writer.create();
|
|
2045
|
+
if (q === undefined)
|
|
2046
|
+
q = 0;
|
|
2047
|
+
if (q > $util.recursionLimit)
|
|
2048
|
+
throw Error("max depth exceeded");
|
|
1867
2049
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1868
2050
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
|
|
1869
2051
|
return writer;
|
|
@@ -1879,7 +2061,7 @@ $root.common = (function() {
|
|
|
1879
2061
|
* @returns {$protobuf.Writer} Writer
|
|
1880
2062
|
*/
|
|
1881
2063
|
UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1882
|
-
return this.encode(message, writer).ldelim();
|
|
2064
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1883
2065
|
};
|
|
1884
2066
|
|
|
1885
2067
|
/**
|
|
@@ -1893,9 +2075,13 @@ $root.common = (function() {
|
|
|
1893
2075
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1894
2076
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1895
2077
|
*/
|
|
1896
|
-
UInt32Value.decode = function decode(reader, length, error) {
|
|
2078
|
+
UInt32Value.decode = function decode(reader, length, error, long) {
|
|
1897
2079
|
if (!(reader instanceof $Reader))
|
|
1898
2080
|
reader = $Reader.create(reader);
|
|
2081
|
+
if (long === undefined)
|
|
2082
|
+
long = 0;
|
|
2083
|
+
if (long > $Reader.recursionLimit)
|
|
2084
|
+
throw Error("maximum nesting depth exceeded");
|
|
1899
2085
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt32Value();
|
|
1900
2086
|
while (reader.pos < end) {
|
|
1901
2087
|
var tag = reader.uint32();
|
|
@@ -1907,7 +2093,7 @@ $root.common = (function() {
|
|
|
1907
2093
|
break;
|
|
1908
2094
|
}
|
|
1909
2095
|
default:
|
|
1910
|
-
reader.skipType(tag & 7);
|
|
2096
|
+
reader.skipType(tag & 7, long);
|
|
1911
2097
|
break;
|
|
1912
2098
|
}
|
|
1913
2099
|
}
|
|
@@ -1938,10 +2124,14 @@ $root.common = (function() {
|
|
|
1938
2124
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1939
2125
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1940
2126
|
*/
|
|
1941
|
-
UInt32Value.verify = function verify(message) {
|
|
2127
|
+
UInt32Value.verify = function verify(message, long) {
|
|
1942
2128
|
if (typeof message !== "object" || message === null)
|
|
1943
2129
|
return "object expected";
|
|
1944
|
-
if (
|
|
2130
|
+
if (long === undefined)
|
|
2131
|
+
long = 0;
|
|
2132
|
+
if (long > $util.recursionLimit)
|
|
2133
|
+
return "maximum nesting depth exceeded";
|
|
2134
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1945
2135
|
if (!$util.isInteger(message.value))
|
|
1946
2136
|
return "value: integer expected";
|
|
1947
2137
|
return null;
|
|
@@ -1955,9 +2145,15 @@ $root.common = (function() {
|
|
|
1955
2145
|
* @param {Object.<string,*>} object Plain object
|
|
1956
2146
|
* @returns {common.UInt32Value} UInt32Value
|
|
1957
2147
|
*/
|
|
1958
|
-
UInt32Value.fromObject = function fromObject(object) {
|
|
2148
|
+
UInt32Value.fromObject = function fromObject(object, long) {
|
|
1959
2149
|
if (object instanceof $root.common.UInt32Value)
|
|
1960
2150
|
return object;
|
|
2151
|
+
if (!$util.isObject(object))
|
|
2152
|
+
throw TypeError(".common.UInt32Value: object expected");
|
|
2153
|
+
if (long === undefined)
|
|
2154
|
+
long = 0;
|
|
2155
|
+
if (long > $util.recursionLimit)
|
|
2156
|
+
throw Error("maximum nesting depth exceeded");
|
|
1961
2157
|
var message = new $root.common.UInt32Value();
|
|
1962
2158
|
if (object.value != null)
|
|
1963
2159
|
message.value = object.value >>> 0;
|
|
@@ -1973,13 +2169,17 @@ $root.common = (function() {
|
|
|
1973
2169
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1974
2170
|
* @returns {Object.<string,*>} Plain object
|
|
1975
2171
|
*/
|
|
1976
|
-
UInt32Value.toObject = function toObject(message, options) {
|
|
2172
|
+
UInt32Value.toObject = function toObject(message, options, q) {
|
|
1977
2173
|
if (!options)
|
|
1978
2174
|
options = {};
|
|
2175
|
+
if (q === undefined)
|
|
2176
|
+
q = 0;
|
|
2177
|
+
if (q > $util.recursionLimit)
|
|
2178
|
+
throw Error("max depth exceeded");
|
|
1979
2179
|
var object = {};
|
|
1980
2180
|
if (options.defaults)
|
|
1981
2181
|
object.value = 0;
|
|
1982
|
-
if (message.value != null &&
|
|
2182
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1983
2183
|
object.value = message.value;
|
|
1984
2184
|
return object;
|
|
1985
2185
|
};
|
|
@@ -2033,7 +2233,7 @@ $root.common = (function() {
|
|
|
2033
2233
|
function StringValue(properties) {
|
|
2034
2234
|
if (properties)
|
|
2035
2235
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2036
|
-
if (properties[keys[i]] != null)
|
|
2236
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2037
2237
|
this[keys[i]] = properties[keys[i]];
|
|
2038
2238
|
}
|
|
2039
2239
|
|
|
@@ -2066,9 +2266,13 @@ $root.common = (function() {
|
|
|
2066
2266
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2067
2267
|
* @returns {$protobuf.Writer} Writer
|
|
2068
2268
|
*/
|
|
2069
|
-
StringValue.encode = function encode(message, writer) {
|
|
2269
|
+
StringValue.encode = function encode(message, writer, q) {
|
|
2070
2270
|
if (!writer)
|
|
2071
2271
|
writer = $Writer.create();
|
|
2272
|
+
if (q === undefined)
|
|
2273
|
+
q = 0;
|
|
2274
|
+
if (q > $util.recursionLimit)
|
|
2275
|
+
throw Error("max depth exceeded");
|
|
2072
2276
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2073
2277
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
2074
2278
|
return writer;
|
|
@@ -2084,7 +2288,7 @@ $root.common = (function() {
|
|
|
2084
2288
|
* @returns {$protobuf.Writer} Writer
|
|
2085
2289
|
*/
|
|
2086
2290
|
StringValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2087
|
-
return this.encode(message, writer).ldelim();
|
|
2291
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2088
2292
|
};
|
|
2089
2293
|
|
|
2090
2294
|
/**
|
|
@@ -2098,9 +2302,13 @@ $root.common = (function() {
|
|
|
2098
2302
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2099
2303
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2100
2304
|
*/
|
|
2101
|
-
StringValue.decode = function decode(reader, length, error) {
|
|
2305
|
+
StringValue.decode = function decode(reader, length, error, long) {
|
|
2102
2306
|
if (!(reader instanceof $Reader))
|
|
2103
2307
|
reader = $Reader.create(reader);
|
|
2308
|
+
if (long === undefined)
|
|
2309
|
+
long = 0;
|
|
2310
|
+
if (long > $Reader.recursionLimit)
|
|
2311
|
+
throw Error("maximum nesting depth exceeded");
|
|
2104
2312
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringValue();
|
|
2105
2313
|
while (reader.pos < end) {
|
|
2106
2314
|
var tag = reader.uint32();
|
|
@@ -2112,7 +2320,7 @@ $root.common = (function() {
|
|
|
2112
2320
|
break;
|
|
2113
2321
|
}
|
|
2114
2322
|
default:
|
|
2115
|
-
reader.skipType(tag & 7);
|
|
2323
|
+
reader.skipType(tag & 7, long);
|
|
2116
2324
|
break;
|
|
2117
2325
|
}
|
|
2118
2326
|
}
|
|
@@ -2143,10 +2351,14 @@ $root.common = (function() {
|
|
|
2143
2351
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2144
2352
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2145
2353
|
*/
|
|
2146
|
-
StringValue.verify = function verify(message) {
|
|
2354
|
+
StringValue.verify = function verify(message, long) {
|
|
2147
2355
|
if (typeof message !== "object" || message === null)
|
|
2148
2356
|
return "object expected";
|
|
2149
|
-
if (
|
|
2357
|
+
if (long === undefined)
|
|
2358
|
+
long = 0;
|
|
2359
|
+
if (long > $util.recursionLimit)
|
|
2360
|
+
return "maximum nesting depth exceeded";
|
|
2361
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2150
2362
|
if (!$util.isString(message.value))
|
|
2151
2363
|
return "value: string expected";
|
|
2152
2364
|
return null;
|
|
@@ -2160,9 +2372,15 @@ $root.common = (function() {
|
|
|
2160
2372
|
* @param {Object.<string,*>} object Plain object
|
|
2161
2373
|
* @returns {common.StringValue} StringValue
|
|
2162
2374
|
*/
|
|
2163
|
-
StringValue.fromObject = function fromObject(object) {
|
|
2375
|
+
StringValue.fromObject = function fromObject(object, long) {
|
|
2164
2376
|
if (object instanceof $root.common.StringValue)
|
|
2165
2377
|
return object;
|
|
2378
|
+
if (!$util.isObject(object))
|
|
2379
|
+
throw TypeError(".common.StringValue: object expected");
|
|
2380
|
+
if (long === undefined)
|
|
2381
|
+
long = 0;
|
|
2382
|
+
if (long > $util.recursionLimit)
|
|
2383
|
+
throw Error("maximum nesting depth exceeded");
|
|
2166
2384
|
var message = new $root.common.StringValue();
|
|
2167
2385
|
if (object.value != null)
|
|
2168
2386
|
message.value = String(object.value);
|
|
@@ -2178,13 +2396,17 @@ $root.common = (function() {
|
|
|
2178
2396
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2179
2397
|
* @returns {Object.<string,*>} Plain object
|
|
2180
2398
|
*/
|
|
2181
|
-
StringValue.toObject = function toObject(message, options) {
|
|
2399
|
+
StringValue.toObject = function toObject(message, options, q) {
|
|
2182
2400
|
if (!options)
|
|
2183
2401
|
options = {};
|
|
2402
|
+
if (q === undefined)
|
|
2403
|
+
q = 0;
|
|
2404
|
+
if (q > $util.recursionLimit)
|
|
2405
|
+
throw Error("max depth exceeded");
|
|
2184
2406
|
var object = {};
|
|
2185
2407
|
if (options.defaults)
|
|
2186
2408
|
object.value = "";
|
|
2187
|
-
if (message.value != null &&
|
|
2409
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2188
2410
|
object.value = message.value;
|
|
2189
2411
|
return object;
|
|
2190
2412
|
};
|
|
@@ -2238,7 +2460,7 @@ $root.common = (function() {
|
|
|
2238
2460
|
function BytesValue(properties) {
|
|
2239
2461
|
if (properties)
|
|
2240
2462
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2241
|
-
if (properties[keys[i]] != null)
|
|
2463
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2242
2464
|
this[keys[i]] = properties[keys[i]];
|
|
2243
2465
|
}
|
|
2244
2466
|
|
|
@@ -2271,9 +2493,13 @@ $root.common = (function() {
|
|
|
2271
2493
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2272
2494
|
* @returns {$protobuf.Writer} Writer
|
|
2273
2495
|
*/
|
|
2274
|
-
BytesValue.encode = function encode(message, writer) {
|
|
2496
|
+
BytesValue.encode = function encode(message, writer, q) {
|
|
2275
2497
|
if (!writer)
|
|
2276
2498
|
writer = $Writer.create();
|
|
2499
|
+
if (q === undefined)
|
|
2500
|
+
q = 0;
|
|
2501
|
+
if (q > $util.recursionLimit)
|
|
2502
|
+
throw Error("max depth exceeded");
|
|
2277
2503
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2278
2504
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
|
2279
2505
|
return writer;
|
|
@@ -2289,7 +2515,7 @@ $root.common = (function() {
|
|
|
2289
2515
|
* @returns {$protobuf.Writer} Writer
|
|
2290
2516
|
*/
|
|
2291
2517
|
BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2292
|
-
return this.encode(message, writer).ldelim();
|
|
2518
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2293
2519
|
};
|
|
2294
2520
|
|
|
2295
2521
|
/**
|
|
@@ -2303,9 +2529,13 @@ $root.common = (function() {
|
|
|
2303
2529
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2304
2530
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2305
2531
|
*/
|
|
2306
|
-
BytesValue.decode = function decode(reader, length, error) {
|
|
2532
|
+
BytesValue.decode = function decode(reader, length, error, long) {
|
|
2307
2533
|
if (!(reader instanceof $Reader))
|
|
2308
2534
|
reader = $Reader.create(reader);
|
|
2535
|
+
if (long === undefined)
|
|
2536
|
+
long = 0;
|
|
2537
|
+
if (long > $Reader.recursionLimit)
|
|
2538
|
+
throw Error("maximum nesting depth exceeded");
|
|
2309
2539
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BytesValue();
|
|
2310
2540
|
while (reader.pos < end) {
|
|
2311
2541
|
var tag = reader.uint32();
|
|
@@ -2317,7 +2547,7 @@ $root.common = (function() {
|
|
|
2317
2547
|
break;
|
|
2318
2548
|
}
|
|
2319
2549
|
default:
|
|
2320
|
-
reader.skipType(tag & 7);
|
|
2550
|
+
reader.skipType(tag & 7, long);
|
|
2321
2551
|
break;
|
|
2322
2552
|
}
|
|
2323
2553
|
}
|
|
@@ -2348,10 +2578,14 @@ $root.common = (function() {
|
|
|
2348
2578
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2349
2579
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2350
2580
|
*/
|
|
2351
|
-
BytesValue.verify = function verify(message) {
|
|
2581
|
+
BytesValue.verify = function verify(message, long) {
|
|
2352
2582
|
if (typeof message !== "object" || message === null)
|
|
2353
2583
|
return "object expected";
|
|
2354
|
-
if (
|
|
2584
|
+
if (long === undefined)
|
|
2585
|
+
long = 0;
|
|
2586
|
+
if (long > $util.recursionLimit)
|
|
2587
|
+
return "maximum nesting depth exceeded";
|
|
2588
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2355
2589
|
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
2356
2590
|
return "value: buffer expected";
|
|
2357
2591
|
return null;
|
|
@@ -2365,9 +2599,15 @@ $root.common = (function() {
|
|
|
2365
2599
|
* @param {Object.<string,*>} object Plain object
|
|
2366
2600
|
* @returns {common.BytesValue} BytesValue
|
|
2367
2601
|
*/
|
|
2368
|
-
BytesValue.fromObject = function fromObject(object) {
|
|
2602
|
+
BytesValue.fromObject = function fromObject(object, long) {
|
|
2369
2603
|
if (object instanceof $root.common.BytesValue)
|
|
2370
2604
|
return object;
|
|
2605
|
+
if (!$util.isObject(object))
|
|
2606
|
+
throw TypeError(".common.BytesValue: object expected");
|
|
2607
|
+
if (long === undefined)
|
|
2608
|
+
long = 0;
|
|
2609
|
+
if (long > $util.recursionLimit)
|
|
2610
|
+
throw Error("maximum nesting depth exceeded");
|
|
2371
2611
|
var message = new $root.common.BytesValue();
|
|
2372
2612
|
if (object.value != null)
|
|
2373
2613
|
if (typeof object.value === "string")
|
|
@@ -2386,9 +2626,13 @@ $root.common = (function() {
|
|
|
2386
2626
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2387
2627
|
* @returns {Object.<string,*>} Plain object
|
|
2388
2628
|
*/
|
|
2389
|
-
BytesValue.toObject = function toObject(message, options) {
|
|
2629
|
+
BytesValue.toObject = function toObject(message, options, q) {
|
|
2390
2630
|
if (!options)
|
|
2391
2631
|
options = {};
|
|
2632
|
+
if (q === undefined)
|
|
2633
|
+
q = 0;
|
|
2634
|
+
if (q > $util.recursionLimit)
|
|
2635
|
+
throw Error("max depth exceeded");
|
|
2392
2636
|
var object = {};
|
|
2393
2637
|
if (options.defaults)
|
|
2394
2638
|
if (options.bytes === String)
|
|
@@ -2398,7 +2642,7 @@ $root.common = (function() {
|
|
|
2398
2642
|
if (options.bytes !== Array)
|
|
2399
2643
|
object.value = $util.newBuffer(object.value);
|
|
2400
2644
|
}
|
|
2401
|
-
if (message.value != null &&
|
|
2645
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2402
2646
|
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;
|
|
2403
2647
|
return object;
|
|
2404
2648
|
};
|
|
@@ -2453,7 +2697,7 @@ $root.common = (function() {
|
|
|
2453
2697
|
function ErrorValue(properties) {
|
|
2454
2698
|
if (properties)
|
|
2455
2699
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2456
|
-
if (properties[keys[i]] != null)
|
|
2700
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2457
2701
|
this[keys[i]] = properties[keys[i]];
|
|
2458
2702
|
}
|
|
2459
2703
|
|
|
@@ -2494,9 +2738,13 @@ $root.common = (function() {
|
|
|
2494
2738
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2495
2739
|
* @returns {$protobuf.Writer} Writer
|
|
2496
2740
|
*/
|
|
2497
|
-
ErrorValue.encode = function encode(message, writer) {
|
|
2741
|
+
ErrorValue.encode = function encode(message, writer, q) {
|
|
2498
2742
|
if (!writer)
|
|
2499
2743
|
writer = $Writer.create();
|
|
2744
|
+
if (q === undefined)
|
|
2745
|
+
q = 0;
|
|
2746
|
+
if (q > $util.recursionLimit)
|
|
2747
|
+
throw Error("max depth exceeded");
|
|
2500
2748
|
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2501
2749
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.runtimeExcJson);
|
|
2502
2750
|
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
@@ -2514,7 +2762,7 @@ $root.common = (function() {
|
|
|
2514
2762
|
* @returns {$protobuf.Writer} Writer
|
|
2515
2763
|
*/
|
|
2516
2764
|
ErrorValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2517
|
-
return this.encode(message, writer).ldelim();
|
|
2765
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2518
2766
|
};
|
|
2519
2767
|
|
|
2520
2768
|
/**
|
|
@@ -2528,9 +2776,13 @@ $root.common = (function() {
|
|
|
2528
2776
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2529
2777
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2530
2778
|
*/
|
|
2531
|
-
ErrorValue.decode = function decode(reader, length, error) {
|
|
2779
|
+
ErrorValue.decode = function decode(reader, length, error, long) {
|
|
2532
2780
|
if (!(reader instanceof $Reader))
|
|
2533
2781
|
reader = $Reader.create(reader);
|
|
2782
|
+
if (long === undefined)
|
|
2783
|
+
long = 0;
|
|
2784
|
+
if (long > $Reader.recursionLimit)
|
|
2785
|
+
throw Error("maximum nesting depth exceeded");
|
|
2534
2786
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ErrorValue();
|
|
2535
2787
|
while (reader.pos < end) {
|
|
2536
2788
|
var tag = reader.uint32();
|
|
@@ -2546,7 +2798,7 @@ $root.common = (function() {
|
|
|
2546
2798
|
break;
|
|
2547
2799
|
}
|
|
2548
2800
|
default:
|
|
2549
|
-
reader.skipType(tag & 7);
|
|
2801
|
+
reader.skipType(tag & 7, long);
|
|
2550
2802
|
break;
|
|
2551
2803
|
}
|
|
2552
2804
|
}
|
|
@@ -2577,13 +2829,17 @@ $root.common = (function() {
|
|
|
2577
2829
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2578
2830
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2579
2831
|
*/
|
|
2580
|
-
ErrorValue.verify = function verify(message) {
|
|
2832
|
+
ErrorValue.verify = function verify(message, long) {
|
|
2581
2833
|
if (typeof message !== "object" || message === null)
|
|
2582
2834
|
return "object expected";
|
|
2583
|
-
if (
|
|
2835
|
+
if (long === undefined)
|
|
2836
|
+
long = 0;
|
|
2837
|
+
if (long > $util.recursionLimit)
|
|
2838
|
+
return "maximum nesting depth exceeded";
|
|
2839
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2584
2840
|
if (!$util.isString(message.runtimeExcJson))
|
|
2585
2841
|
return "runtimeExcJson: string expected";
|
|
2586
|
-
if (message.err != null &&
|
|
2842
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
2587
2843
|
if (!$util.isString(message.err))
|
|
2588
2844
|
return "err: string expected";
|
|
2589
2845
|
return null;
|
|
@@ -2597,9 +2853,15 @@ $root.common = (function() {
|
|
|
2597
2853
|
* @param {Object.<string,*>} object Plain object
|
|
2598
2854
|
* @returns {common.ErrorValue} ErrorValue
|
|
2599
2855
|
*/
|
|
2600
|
-
ErrorValue.fromObject = function fromObject(object) {
|
|
2856
|
+
ErrorValue.fromObject = function fromObject(object, long) {
|
|
2601
2857
|
if (object instanceof $root.common.ErrorValue)
|
|
2602
2858
|
return object;
|
|
2859
|
+
if (!$util.isObject(object))
|
|
2860
|
+
throw TypeError(".common.ErrorValue: object expected");
|
|
2861
|
+
if (long === undefined)
|
|
2862
|
+
long = 0;
|
|
2863
|
+
if (long > $util.recursionLimit)
|
|
2864
|
+
throw Error("maximum nesting depth exceeded");
|
|
2603
2865
|
var message = new $root.common.ErrorValue();
|
|
2604
2866
|
if (object.runtimeExcJson != null)
|
|
2605
2867
|
message.runtimeExcJson = String(object.runtimeExcJson);
|
|
@@ -2617,17 +2879,21 @@ $root.common = (function() {
|
|
|
2617
2879
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2618
2880
|
* @returns {Object.<string,*>} Plain object
|
|
2619
2881
|
*/
|
|
2620
|
-
ErrorValue.toObject = function toObject(message, options) {
|
|
2882
|
+
ErrorValue.toObject = function toObject(message, options, q) {
|
|
2621
2883
|
if (!options)
|
|
2622
2884
|
options = {};
|
|
2885
|
+
if (q === undefined)
|
|
2886
|
+
q = 0;
|
|
2887
|
+
if (q > $util.recursionLimit)
|
|
2888
|
+
throw Error("max depth exceeded");
|
|
2623
2889
|
var object = {};
|
|
2624
2890
|
if (options.defaults) {
|
|
2625
2891
|
object.runtimeExcJson = "";
|
|
2626
2892
|
object.err = "";
|
|
2627
2893
|
}
|
|
2628
|
-
if (message.runtimeExcJson != null &&
|
|
2894
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2629
2895
|
object.runtimeExcJson = message.runtimeExcJson;
|
|
2630
|
-
if (message.err != null &&
|
|
2896
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
2631
2897
|
object.err = message.err;
|
|
2632
2898
|
return object;
|
|
2633
2899
|
};
|
|
@@ -2683,7 +2949,7 @@ $root.common = (function() {
|
|
|
2683
2949
|
function AnyValue(properties) {
|
|
2684
2950
|
if (properties)
|
|
2685
2951
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2686
|
-
if (properties[keys[i]] != null)
|
|
2952
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2687
2953
|
this[keys[i]] = properties[keys[i]];
|
|
2688
2954
|
}
|
|
2689
2955
|
|
|
@@ -2732,15 +2998,19 @@ $root.common = (function() {
|
|
|
2732
2998
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2733
2999
|
* @returns {$protobuf.Writer} Writer
|
|
2734
3000
|
*/
|
|
2735
|
-
AnyValue.encode = function encode(message, writer) {
|
|
3001
|
+
AnyValue.encode = function encode(message, writer, q) {
|
|
2736
3002
|
if (!writer)
|
|
2737
3003
|
writer = $Writer.create();
|
|
3004
|
+
if (q === undefined)
|
|
3005
|
+
q = 0;
|
|
3006
|
+
if (q > $util.recursionLimit)
|
|
3007
|
+
throw Error("max depth exceeded");
|
|
2738
3008
|
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2739
3009
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
2740
3010
|
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
2741
|
-
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
3011
|
+
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
|
|
2742
3012
|
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
2743
|
-
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3013
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
|
|
2744
3014
|
return writer;
|
|
2745
3015
|
};
|
|
2746
3016
|
|
|
@@ -2754,7 +3024,7 @@ $root.common = (function() {
|
|
|
2754
3024
|
* @returns {$protobuf.Writer} Writer
|
|
2755
3025
|
*/
|
|
2756
3026
|
AnyValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2757
|
-
return this.encode(message, writer).ldelim();
|
|
3027
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2758
3028
|
};
|
|
2759
3029
|
|
|
2760
3030
|
/**
|
|
@@ -2768,9 +3038,13 @@ $root.common = (function() {
|
|
|
2768
3038
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2769
3039
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2770
3040
|
*/
|
|
2771
|
-
AnyValue.decode = function decode(reader, length, error) {
|
|
3041
|
+
AnyValue.decode = function decode(reader, length, error, long) {
|
|
2772
3042
|
if (!(reader instanceof $Reader))
|
|
2773
3043
|
reader = $Reader.create(reader);
|
|
3044
|
+
if (long === undefined)
|
|
3045
|
+
long = 0;
|
|
3046
|
+
if (long > $Reader.recursionLimit)
|
|
3047
|
+
throw Error("maximum nesting depth exceeded");
|
|
2774
3048
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.AnyValue();
|
|
2775
3049
|
while (reader.pos < end) {
|
|
2776
3050
|
var tag = reader.uint32();
|
|
@@ -2782,15 +3056,15 @@ $root.common = (function() {
|
|
|
2782
3056
|
break;
|
|
2783
3057
|
}
|
|
2784
3058
|
case 2: {
|
|
2785
|
-
message.json = $root.common.StringValue.decode(reader, reader.uint32());
|
|
3059
|
+
message.json = $root.common.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
2786
3060
|
break;
|
|
2787
3061
|
}
|
|
2788
3062
|
case 3: {
|
|
2789
|
-
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
3063
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
2790
3064
|
break;
|
|
2791
3065
|
}
|
|
2792
3066
|
default:
|
|
2793
|
-
reader.skipType(tag & 7);
|
|
3067
|
+
reader.skipType(tag & 7, long);
|
|
2794
3068
|
break;
|
|
2795
3069
|
}
|
|
2796
3070
|
}
|
|
@@ -2821,19 +3095,23 @@ $root.common = (function() {
|
|
|
2821
3095
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2822
3096
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2823
3097
|
*/
|
|
2824
|
-
AnyValue.verify = function verify(message) {
|
|
3098
|
+
AnyValue.verify = function verify(message, long) {
|
|
2825
3099
|
if (typeof message !== "object" || message === null)
|
|
2826
3100
|
return "object expected";
|
|
2827
|
-
if (
|
|
3101
|
+
if (long === undefined)
|
|
3102
|
+
long = 0;
|
|
3103
|
+
if (long > $util.recursionLimit)
|
|
3104
|
+
return "maximum nesting depth exceeded";
|
|
3105
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2828
3106
|
if (!$util.isString(message.type))
|
|
2829
3107
|
return "type: string expected";
|
|
2830
|
-
if (message.json != null &&
|
|
2831
|
-
var error = $root.common.StringValue.verify(message.json);
|
|
3108
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json")) {
|
|
3109
|
+
var error = $root.common.StringValue.verify(message.json, long + 1);
|
|
2832
3110
|
if (error)
|
|
2833
3111
|
return "json." + error;
|
|
2834
3112
|
}
|
|
2835
|
-
if (message.bytes != null &&
|
|
2836
|
-
var error = $root.common.BytesValue.verify(message.bytes);
|
|
3113
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes")) {
|
|
3114
|
+
var error = $root.common.BytesValue.verify(message.bytes, long + 1);
|
|
2837
3115
|
if (error)
|
|
2838
3116
|
return "bytes." + error;
|
|
2839
3117
|
}
|
|
@@ -2848,21 +3126,27 @@ $root.common = (function() {
|
|
|
2848
3126
|
* @param {Object.<string,*>} object Plain object
|
|
2849
3127
|
* @returns {common.AnyValue} AnyValue
|
|
2850
3128
|
*/
|
|
2851
|
-
AnyValue.fromObject = function fromObject(object) {
|
|
3129
|
+
AnyValue.fromObject = function fromObject(object, long) {
|
|
2852
3130
|
if (object instanceof $root.common.AnyValue)
|
|
2853
3131
|
return object;
|
|
3132
|
+
if (!$util.isObject(object))
|
|
3133
|
+
throw TypeError(".common.AnyValue: object expected");
|
|
3134
|
+
if (long === undefined)
|
|
3135
|
+
long = 0;
|
|
3136
|
+
if (long > $util.recursionLimit)
|
|
3137
|
+
throw Error("maximum nesting depth exceeded");
|
|
2854
3138
|
var message = new $root.common.AnyValue();
|
|
2855
3139
|
if (object.type != null)
|
|
2856
3140
|
message.type = String(object.type);
|
|
2857
3141
|
if (object.json != null) {
|
|
2858
|
-
if (
|
|
3142
|
+
if (!$util.isObject(object.json))
|
|
2859
3143
|
throw TypeError(".common.AnyValue.json: object expected");
|
|
2860
|
-
message.json = $root.common.StringValue.fromObject(object.json);
|
|
3144
|
+
message.json = $root.common.StringValue.fromObject(object.json, long + 1);
|
|
2861
3145
|
}
|
|
2862
3146
|
if (object.bytes != null) {
|
|
2863
|
-
if (
|
|
3147
|
+
if (!$util.isObject(object.bytes))
|
|
2864
3148
|
throw TypeError(".common.AnyValue.bytes: object expected");
|
|
2865
|
-
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
3149
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes, long + 1);
|
|
2866
3150
|
}
|
|
2867
3151
|
return message;
|
|
2868
3152
|
};
|
|
@@ -2876,21 +3160,25 @@ $root.common = (function() {
|
|
|
2876
3160
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2877
3161
|
* @returns {Object.<string,*>} Plain object
|
|
2878
3162
|
*/
|
|
2879
|
-
AnyValue.toObject = function toObject(message, options) {
|
|
3163
|
+
AnyValue.toObject = function toObject(message, options, q) {
|
|
2880
3164
|
if (!options)
|
|
2881
3165
|
options = {};
|
|
3166
|
+
if (q === undefined)
|
|
3167
|
+
q = 0;
|
|
3168
|
+
if (q > $util.recursionLimit)
|
|
3169
|
+
throw Error("max depth exceeded");
|
|
2882
3170
|
var object = {};
|
|
2883
3171
|
if (options.defaults) {
|
|
2884
3172
|
object.type = "";
|
|
2885
3173
|
object.json = null;
|
|
2886
3174
|
object.bytes = null;
|
|
2887
3175
|
}
|
|
2888
|
-
if (message.type != null &&
|
|
3176
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2889
3177
|
object.type = message.type;
|
|
2890
|
-
if (message.json != null &&
|
|
2891
|
-
object.json = $root.common.StringValue.toObject(message.json, options);
|
|
2892
|
-
if (message.bytes != null &&
|
|
2893
|
-
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
3178
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
3179
|
+
object.json = $root.common.StringValue.toObject(message.json, options, q + 1);
|
|
3180
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
3181
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options, q + 1);
|
|
2894
3182
|
return object;
|
|
2895
3183
|
};
|
|
2896
3184
|
|