core-3nweb-client-lib 0.48.7 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/core/index.d.ts +1 -1
- package/build/core/index.js +3 -3
- package/build/core/startup/sign-in.d.ts +6 -5
- package/build/core/startup/sign-in.js +24 -5
- package/build/core/startup/sign-up.d.ts +2 -1
- package/build/core/startup/sign-up.js +5 -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
|
@@ -39,7 +39,7 @@ $root.json_ipc = (function() {
|
|
|
39
39
|
this.values = [];
|
|
40
40
|
if (properties)
|
|
41
41
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42
|
-
if (properties[keys[i]] != null)
|
|
42
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
43
43
|
this[keys[i]] = properties[keys[i]];
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -72,12 +72,16 @@ $root.json_ipc = (function() {
|
|
|
72
72
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73
73
|
* @returns {$protobuf.Writer} Writer
|
|
74
74
|
*/
|
|
75
|
-
ValuesSequence.encode = function encode(message, writer) {
|
|
75
|
+
ValuesSequence.encode = function encode(message, writer, q) {
|
|
76
76
|
if (!writer)
|
|
77
77
|
writer = $Writer.create();
|
|
78
|
+
if (q === undefined)
|
|
79
|
+
q = 0;
|
|
80
|
+
if (q > $util.recursionLimit)
|
|
81
|
+
throw Error("max depth exceeded");
|
|
78
82
|
if (message.values != null && message.values.length)
|
|
79
83
|
for (var i = 0; i < message.values.length; ++i)
|
|
80
|
-
$root.json_ipc.ValuesSequence.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
84
|
+
$root.json_ipc.ValuesSequence.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
|
|
81
85
|
return writer;
|
|
82
86
|
};
|
|
83
87
|
|
|
@@ -91,7 +95,7 @@ $root.json_ipc = (function() {
|
|
|
91
95
|
* @returns {$protobuf.Writer} Writer
|
|
92
96
|
*/
|
|
93
97
|
ValuesSequence.encodeDelimited = function encodeDelimited(message, writer) {
|
|
94
|
-
return this.encode(message, writer).ldelim();
|
|
98
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
95
99
|
};
|
|
96
100
|
|
|
97
101
|
/**
|
|
@@ -105,9 +109,13 @@ $root.json_ipc = (function() {
|
|
|
105
109
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
106
110
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
107
111
|
*/
|
|
108
|
-
ValuesSequence.decode = function decode(reader, length, error) {
|
|
112
|
+
ValuesSequence.decode = function decode(reader, length, error, long) {
|
|
109
113
|
if (!(reader instanceof $Reader))
|
|
110
114
|
reader = $Reader.create(reader);
|
|
115
|
+
if (long === undefined)
|
|
116
|
+
long = 0;
|
|
117
|
+
if (long > $Reader.recursionLimit)
|
|
118
|
+
throw Error("maximum nesting depth exceeded");
|
|
111
119
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence();
|
|
112
120
|
while (reader.pos < end) {
|
|
113
121
|
var tag = reader.uint32();
|
|
@@ -117,11 +125,11 @@ $root.json_ipc = (function() {
|
|
|
117
125
|
case 1: {
|
|
118
126
|
if (!(message.values && message.values.length))
|
|
119
127
|
message.values = [];
|
|
120
|
-
message.values.push($root.json_ipc.ValuesSequence.Value.decode(reader, reader.uint32()));
|
|
128
|
+
message.values.push($root.json_ipc.ValuesSequence.Value.decode(reader, reader.uint32(), undefined, long + 1));
|
|
121
129
|
break;
|
|
122
130
|
}
|
|
123
131
|
default:
|
|
124
|
-
reader.skipType(tag & 7);
|
|
132
|
+
reader.skipType(tag & 7, long);
|
|
125
133
|
break;
|
|
126
134
|
}
|
|
127
135
|
}
|
|
@@ -152,14 +160,18 @@ $root.json_ipc = (function() {
|
|
|
152
160
|
* @param {Object.<string,*>} message Plain object to verify
|
|
153
161
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
154
162
|
*/
|
|
155
|
-
ValuesSequence.verify = function verify(message) {
|
|
163
|
+
ValuesSequence.verify = function verify(message, long) {
|
|
156
164
|
if (typeof message !== "object" || message === null)
|
|
157
165
|
return "object expected";
|
|
158
|
-
if (
|
|
166
|
+
if (long === undefined)
|
|
167
|
+
long = 0;
|
|
168
|
+
if (long > $util.recursionLimit)
|
|
169
|
+
return "maximum nesting depth exceeded";
|
|
170
|
+
if (message.values != null && Object.hasOwnProperty.call(message, "values")) {
|
|
159
171
|
if (!Array.isArray(message.values))
|
|
160
172
|
return "values: array expected";
|
|
161
173
|
for (var i = 0; i < message.values.length; ++i) {
|
|
162
|
-
var error = $root.json_ipc.ValuesSequence.Value.verify(message.values[i]);
|
|
174
|
+
var error = $root.json_ipc.ValuesSequence.Value.verify(message.values[i], long + 1);
|
|
163
175
|
if (error)
|
|
164
176
|
return "values." + error;
|
|
165
177
|
}
|
|
@@ -175,18 +187,24 @@ $root.json_ipc = (function() {
|
|
|
175
187
|
* @param {Object.<string,*>} object Plain object
|
|
176
188
|
* @returns {json_ipc.ValuesSequence} ValuesSequence
|
|
177
189
|
*/
|
|
178
|
-
ValuesSequence.fromObject = function fromObject(object) {
|
|
190
|
+
ValuesSequence.fromObject = function fromObject(object, long) {
|
|
179
191
|
if (object instanceof $root.json_ipc.ValuesSequence)
|
|
180
192
|
return object;
|
|
193
|
+
if (!$util.isObject(object))
|
|
194
|
+
throw TypeError(".json_ipc.ValuesSequence: object expected");
|
|
195
|
+
if (long === undefined)
|
|
196
|
+
long = 0;
|
|
197
|
+
if (long > $util.recursionLimit)
|
|
198
|
+
throw Error("maximum nesting depth exceeded");
|
|
181
199
|
var message = new $root.json_ipc.ValuesSequence();
|
|
182
200
|
if (object.values) {
|
|
183
201
|
if (!Array.isArray(object.values))
|
|
184
202
|
throw TypeError(".json_ipc.ValuesSequence.values: array expected");
|
|
185
203
|
message.values = [];
|
|
186
204
|
for (var i = 0; i < object.values.length; ++i) {
|
|
187
|
-
if (
|
|
205
|
+
if (!$util.isObject(object.values[i]))
|
|
188
206
|
throw TypeError(".json_ipc.ValuesSequence.values: object expected");
|
|
189
|
-
message.values[i] = $root.json_ipc.ValuesSequence.Value.fromObject(object.values[i]);
|
|
207
|
+
message.values[i] = $root.json_ipc.ValuesSequence.Value.fromObject(object.values[i], long + 1);
|
|
190
208
|
}
|
|
191
209
|
}
|
|
192
210
|
return message;
|
|
@@ -201,16 +219,20 @@ $root.json_ipc = (function() {
|
|
|
201
219
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
202
220
|
* @returns {Object.<string,*>} Plain object
|
|
203
221
|
*/
|
|
204
|
-
ValuesSequence.toObject = function toObject(message, options) {
|
|
222
|
+
ValuesSequence.toObject = function toObject(message, options, q) {
|
|
205
223
|
if (!options)
|
|
206
224
|
options = {};
|
|
225
|
+
if (q === undefined)
|
|
226
|
+
q = 0;
|
|
227
|
+
if (q > $util.recursionLimit)
|
|
228
|
+
throw Error("max depth exceeded");
|
|
207
229
|
var object = {};
|
|
208
230
|
if (options.arrays || options.defaults)
|
|
209
231
|
object.values = [];
|
|
210
232
|
if (message.values && message.values.length) {
|
|
211
233
|
object.values = [];
|
|
212
234
|
for (var j = 0; j < message.values.length; ++j)
|
|
213
|
-
object.values[j] = $root.json_ipc.ValuesSequence.Value.toObject(message.values[j], options);
|
|
235
|
+
object.values[j] = $root.json_ipc.ValuesSequence.Value.toObject(message.values[j], options, q + 1);
|
|
214
236
|
}
|
|
215
237
|
return object;
|
|
216
238
|
};
|
|
@@ -263,7 +285,7 @@ $root.json_ipc = (function() {
|
|
|
263
285
|
this.objLocation = [];
|
|
264
286
|
if (properties)
|
|
265
287
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
266
|
-
if (properties[keys[i]] != null)
|
|
288
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
267
289
|
this[keys[i]] = properties[keys[i]];
|
|
268
290
|
}
|
|
269
291
|
|
|
@@ -304,9 +326,13 @@ $root.json_ipc = (function() {
|
|
|
304
326
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
305
327
|
* @returns {$protobuf.Writer} Writer
|
|
306
328
|
*/
|
|
307
|
-
BinaryValue.encode = function encode(message, writer) {
|
|
329
|
+
BinaryValue.encode = function encode(message, writer, q) {
|
|
308
330
|
if (!writer)
|
|
309
331
|
writer = $Writer.create();
|
|
332
|
+
if (q === undefined)
|
|
333
|
+
q = 0;
|
|
334
|
+
if (q > $util.recursionLimit)
|
|
335
|
+
throw Error("max depth exceeded");
|
|
310
336
|
if (message.arr != null && Object.hasOwnProperty.call(message, "arr"))
|
|
311
337
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.arr);
|
|
312
338
|
if (message.objLocation != null && message.objLocation.length)
|
|
@@ -325,7 +351,7 @@ $root.json_ipc = (function() {
|
|
|
325
351
|
* @returns {$protobuf.Writer} Writer
|
|
326
352
|
*/
|
|
327
353
|
BinaryValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
328
|
-
return this.encode(message, writer).ldelim();
|
|
354
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
329
355
|
};
|
|
330
356
|
|
|
331
357
|
/**
|
|
@@ -339,9 +365,13 @@ $root.json_ipc = (function() {
|
|
|
339
365
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
340
366
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
341
367
|
*/
|
|
342
|
-
BinaryValue.decode = function decode(reader, length, error) {
|
|
368
|
+
BinaryValue.decode = function decode(reader, length, error, long) {
|
|
343
369
|
if (!(reader instanceof $Reader))
|
|
344
370
|
reader = $Reader.create(reader);
|
|
371
|
+
if (long === undefined)
|
|
372
|
+
long = 0;
|
|
373
|
+
if (long > $Reader.recursionLimit)
|
|
374
|
+
throw Error("maximum nesting depth exceeded");
|
|
345
375
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence.BinaryValue();
|
|
346
376
|
while (reader.pos < end) {
|
|
347
377
|
var tag = reader.uint32();
|
|
@@ -359,7 +389,7 @@ $root.json_ipc = (function() {
|
|
|
359
389
|
break;
|
|
360
390
|
}
|
|
361
391
|
default:
|
|
362
|
-
reader.skipType(tag & 7);
|
|
392
|
+
reader.skipType(tag & 7, long);
|
|
363
393
|
break;
|
|
364
394
|
}
|
|
365
395
|
}
|
|
@@ -390,13 +420,17 @@ $root.json_ipc = (function() {
|
|
|
390
420
|
* @param {Object.<string,*>} message Plain object to verify
|
|
391
421
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
392
422
|
*/
|
|
393
|
-
BinaryValue.verify = function verify(message) {
|
|
423
|
+
BinaryValue.verify = function verify(message, long) {
|
|
394
424
|
if (typeof message !== "object" || message === null)
|
|
395
425
|
return "object expected";
|
|
396
|
-
if (
|
|
426
|
+
if (long === undefined)
|
|
427
|
+
long = 0;
|
|
428
|
+
if (long > $util.recursionLimit)
|
|
429
|
+
return "maximum nesting depth exceeded";
|
|
430
|
+
if (message.arr != null && Object.hasOwnProperty.call(message, "arr"))
|
|
397
431
|
if (!(message.arr && typeof message.arr.length === "number" || $util.isString(message.arr)))
|
|
398
432
|
return "arr: buffer expected";
|
|
399
|
-
if (message.objLocation != null &&
|
|
433
|
+
if (message.objLocation != null && Object.hasOwnProperty.call(message, "objLocation")) {
|
|
400
434
|
if (!Array.isArray(message.objLocation))
|
|
401
435
|
return "objLocation: array expected";
|
|
402
436
|
for (var i = 0; i < message.objLocation.length; ++i)
|
|
@@ -414,9 +448,15 @@ $root.json_ipc = (function() {
|
|
|
414
448
|
* @param {Object.<string,*>} object Plain object
|
|
415
449
|
* @returns {json_ipc.ValuesSequence.BinaryValue} BinaryValue
|
|
416
450
|
*/
|
|
417
|
-
BinaryValue.fromObject = function fromObject(object) {
|
|
451
|
+
BinaryValue.fromObject = function fromObject(object, long) {
|
|
418
452
|
if (object instanceof $root.json_ipc.ValuesSequence.BinaryValue)
|
|
419
453
|
return object;
|
|
454
|
+
if (!$util.isObject(object))
|
|
455
|
+
throw TypeError(".json_ipc.ValuesSequence.BinaryValue: object expected");
|
|
456
|
+
if (long === undefined)
|
|
457
|
+
long = 0;
|
|
458
|
+
if (long > $util.recursionLimit)
|
|
459
|
+
throw Error("maximum nesting depth exceeded");
|
|
420
460
|
var message = new $root.json_ipc.ValuesSequence.BinaryValue();
|
|
421
461
|
if (object.arr != null)
|
|
422
462
|
if (typeof object.arr === "string")
|
|
@@ -442,9 +482,13 @@ $root.json_ipc = (function() {
|
|
|
442
482
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
443
483
|
* @returns {Object.<string,*>} Plain object
|
|
444
484
|
*/
|
|
445
|
-
BinaryValue.toObject = function toObject(message, options) {
|
|
485
|
+
BinaryValue.toObject = function toObject(message, options, q) {
|
|
446
486
|
if (!options)
|
|
447
487
|
options = {};
|
|
488
|
+
if (q === undefined)
|
|
489
|
+
q = 0;
|
|
490
|
+
if (q > $util.recursionLimit)
|
|
491
|
+
throw Error("max depth exceeded");
|
|
448
492
|
var object = {};
|
|
449
493
|
if (options.arrays || options.defaults)
|
|
450
494
|
object.objLocation = [];
|
|
@@ -456,7 +500,7 @@ $root.json_ipc = (function() {
|
|
|
456
500
|
if (options.bytes !== Array)
|
|
457
501
|
object.arr = $util.newBuffer(object.arr);
|
|
458
502
|
}
|
|
459
|
-
if (message.arr != null &&
|
|
503
|
+
if (message.arr != null && Object.hasOwnProperty.call(message, "arr"))
|
|
460
504
|
object.arr = options.bytes === String ? $util.base64.encode(message.arr, 0, message.arr.length) : options.bytes === Array ? Array.prototype.slice.call(message.arr) : message.arr;
|
|
461
505
|
if (message.objLocation && message.objLocation.length) {
|
|
462
506
|
object.objLocation = [];
|
|
@@ -517,7 +561,7 @@ $root.json_ipc = (function() {
|
|
|
517
561
|
this.objLocation = [];
|
|
518
562
|
if (properties)
|
|
519
563
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
520
|
-
if (properties[keys[i]] != null)
|
|
564
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
521
565
|
this[keys[i]] = properties[keys[i]];
|
|
522
566
|
}
|
|
523
567
|
|
|
@@ -558,14 +602,18 @@ $root.json_ipc = (function() {
|
|
|
558
602
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
559
603
|
* @returns {$protobuf.Writer} Writer
|
|
560
604
|
*/
|
|
561
|
-
TransferredObj.encode = function encode(message, writer) {
|
|
605
|
+
TransferredObj.encode = function encode(message, writer, q) {
|
|
562
606
|
if (!writer)
|
|
563
607
|
writer = $Writer.create();
|
|
608
|
+
if (q === undefined)
|
|
609
|
+
q = 0;
|
|
610
|
+
if (q > $util.recursionLimit)
|
|
611
|
+
throw Error("max depth exceeded");
|
|
564
612
|
if (message.objLocation != null && message.objLocation.length)
|
|
565
613
|
for (var i = 0; i < message.objLocation.length; ++i)
|
|
566
614
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objLocation[i]);
|
|
567
615
|
if (message.objRef != null && Object.hasOwnProperty.call(message, "objRef"))
|
|
568
|
-
$root.common.ObjectReference.encode(message.objRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
616
|
+
$root.common.ObjectReference.encode(message.objRef, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
|
|
569
617
|
return writer;
|
|
570
618
|
};
|
|
571
619
|
|
|
@@ -579,7 +627,7 @@ $root.json_ipc = (function() {
|
|
|
579
627
|
* @returns {$protobuf.Writer} Writer
|
|
580
628
|
*/
|
|
581
629
|
TransferredObj.encodeDelimited = function encodeDelimited(message, writer) {
|
|
582
|
-
return this.encode(message, writer).ldelim();
|
|
630
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
583
631
|
};
|
|
584
632
|
|
|
585
633
|
/**
|
|
@@ -593,9 +641,13 @@ $root.json_ipc = (function() {
|
|
|
593
641
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
594
642
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
595
643
|
*/
|
|
596
|
-
TransferredObj.decode = function decode(reader, length, error) {
|
|
644
|
+
TransferredObj.decode = function decode(reader, length, error, long) {
|
|
597
645
|
if (!(reader instanceof $Reader))
|
|
598
646
|
reader = $Reader.create(reader);
|
|
647
|
+
if (long === undefined)
|
|
648
|
+
long = 0;
|
|
649
|
+
if (long > $Reader.recursionLimit)
|
|
650
|
+
throw Error("maximum nesting depth exceeded");
|
|
599
651
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence.TransferredObj();
|
|
600
652
|
while (reader.pos < end) {
|
|
601
653
|
var tag = reader.uint32();
|
|
@@ -609,11 +661,11 @@ $root.json_ipc = (function() {
|
|
|
609
661
|
break;
|
|
610
662
|
}
|
|
611
663
|
case 2: {
|
|
612
|
-
message.objRef = $root.common.ObjectReference.decode(reader, reader.uint32());
|
|
664
|
+
message.objRef = $root.common.ObjectReference.decode(reader, reader.uint32(), undefined, long + 1);
|
|
613
665
|
break;
|
|
614
666
|
}
|
|
615
667
|
default:
|
|
616
|
-
reader.skipType(tag & 7);
|
|
668
|
+
reader.skipType(tag & 7, long);
|
|
617
669
|
break;
|
|
618
670
|
}
|
|
619
671
|
}
|
|
@@ -644,18 +696,22 @@ $root.json_ipc = (function() {
|
|
|
644
696
|
* @param {Object.<string,*>} message Plain object to verify
|
|
645
697
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
646
698
|
*/
|
|
647
|
-
TransferredObj.verify = function verify(message) {
|
|
699
|
+
TransferredObj.verify = function verify(message, long) {
|
|
648
700
|
if (typeof message !== "object" || message === null)
|
|
649
701
|
return "object expected";
|
|
650
|
-
if (
|
|
702
|
+
if (long === undefined)
|
|
703
|
+
long = 0;
|
|
704
|
+
if (long > $util.recursionLimit)
|
|
705
|
+
return "maximum nesting depth exceeded";
|
|
706
|
+
if (message.objLocation != null && Object.hasOwnProperty.call(message, "objLocation")) {
|
|
651
707
|
if (!Array.isArray(message.objLocation))
|
|
652
708
|
return "objLocation: array expected";
|
|
653
709
|
for (var i = 0; i < message.objLocation.length; ++i)
|
|
654
710
|
if (!$util.isString(message.objLocation[i]))
|
|
655
711
|
return "objLocation: string[] expected";
|
|
656
712
|
}
|
|
657
|
-
if (message.objRef != null &&
|
|
658
|
-
var error = $root.common.ObjectReference.verify(message.objRef);
|
|
713
|
+
if (message.objRef != null && Object.hasOwnProperty.call(message, "objRef")) {
|
|
714
|
+
var error = $root.common.ObjectReference.verify(message.objRef, long + 1);
|
|
659
715
|
if (error)
|
|
660
716
|
return "objRef." + error;
|
|
661
717
|
}
|
|
@@ -670,9 +726,15 @@ $root.json_ipc = (function() {
|
|
|
670
726
|
* @param {Object.<string,*>} object Plain object
|
|
671
727
|
* @returns {json_ipc.ValuesSequence.TransferredObj} TransferredObj
|
|
672
728
|
*/
|
|
673
|
-
TransferredObj.fromObject = function fromObject(object) {
|
|
729
|
+
TransferredObj.fromObject = function fromObject(object, long) {
|
|
674
730
|
if (object instanceof $root.json_ipc.ValuesSequence.TransferredObj)
|
|
675
731
|
return object;
|
|
732
|
+
if (!$util.isObject(object))
|
|
733
|
+
throw TypeError(".json_ipc.ValuesSequence.TransferredObj: object expected");
|
|
734
|
+
if (long === undefined)
|
|
735
|
+
long = 0;
|
|
736
|
+
if (long > $util.recursionLimit)
|
|
737
|
+
throw Error("maximum nesting depth exceeded");
|
|
676
738
|
var message = new $root.json_ipc.ValuesSequence.TransferredObj();
|
|
677
739
|
if (object.objLocation) {
|
|
678
740
|
if (!Array.isArray(object.objLocation))
|
|
@@ -682,9 +744,9 @@ $root.json_ipc = (function() {
|
|
|
682
744
|
message.objLocation[i] = String(object.objLocation[i]);
|
|
683
745
|
}
|
|
684
746
|
if (object.objRef != null) {
|
|
685
|
-
if (
|
|
747
|
+
if (!$util.isObject(object.objRef))
|
|
686
748
|
throw TypeError(".json_ipc.ValuesSequence.TransferredObj.objRef: object expected");
|
|
687
|
-
message.objRef = $root.common.ObjectReference.fromObject(object.objRef);
|
|
749
|
+
message.objRef = $root.common.ObjectReference.fromObject(object.objRef, long + 1);
|
|
688
750
|
}
|
|
689
751
|
return message;
|
|
690
752
|
};
|
|
@@ -698,9 +760,13 @@ $root.json_ipc = (function() {
|
|
|
698
760
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
699
761
|
* @returns {Object.<string,*>} Plain object
|
|
700
762
|
*/
|
|
701
|
-
TransferredObj.toObject = function toObject(message, options) {
|
|
763
|
+
TransferredObj.toObject = function toObject(message, options, q) {
|
|
702
764
|
if (!options)
|
|
703
765
|
options = {};
|
|
766
|
+
if (q === undefined)
|
|
767
|
+
q = 0;
|
|
768
|
+
if (q > $util.recursionLimit)
|
|
769
|
+
throw Error("max depth exceeded");
|
|
704
770
|
var object = {};
|
|
705
771
|
if (options.arrays || options.defaults)
|
|
706
772
|
object.objLocation = [];
|
|
@@ -711,8 +777,8 @@ $root.json_ipc = (function() {
|
|
|
711
777
|
for (var j = 0; j < message.objLocation.length; ++j)
|
|
712
778
|
object.objLocation[j] = message.objLocation[j];
|
|
713
779
|
}
|
|
714
|
-
if (message.objRef != null &&
|
|
715
|
-
object.objRef = $root.common.ObjectReference.toObject(message.objRef, options);
|
|
780
|
+
if (message.objRef != null && Object.hasOwnProperty.call(message, "objRef"))
|
|
781
|
+
object.objRef = $root.common.ObjectReference.toObject(message.objRef, options, q + 1);
|
|
716
782
|
return object;
|
|
717
783
|
};
|
|
718
784
|
|
|
@@ -771,7 +837,7 @@ $root.json_ipc = (function() {
|
|
|
771
837
|
this.transferredInJson = [];
|
|
772
838
|
if (properties)
|
|
773
839
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
774
|
-
if (properties[keys[i]] != null)
|
|
840
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
775
841
|
this[keys[i]] = properties[keys[i]];
|
|
776
842
|
}
|
|
777
843
|
|
|
@@ -836,21 +902,25 @@ $root.json_ipc = (function() {
|
|
|
836
902
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
837
903
|
* @returns {$protobuf.Writer} Writer
|
|
838
904
|
*/
|
|
839
|
-
Value.encode = function encode(message, writer) {
|
|
905
|
+
Value.encode = function encode(message, writer, q) {
|
|
840
906
|
if (!writer)
|
|
841
907
|
writer = $Writer.create();
|
|
908
|
+
if (q === undefined)
|
|
909
|
+
q = 0;
|
|
910
|
+
if (q > $util.recursionLimit)
|
|
911
|
+
throw Error("max depth exceeded");
|
|
842
912
|
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
843
913
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.json);
|
|
844
914
|
if (message.binaryInJson != null && message.binaryInJson.length)
|
|
845
915
|
for (var i = 0; i < message.binaryInJson.length; ++i)
|
|
846
|
-
$root.json_ipc.ValuesSequence.BinaryValue.encode(message.binaryInJson[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
916
|
+
$root.json_ipc.ValuesSequence.BinaryValue.encode(message.binaryInJson[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
|
|
847
917
|
if (message.transferredInJson != null && message.transferredInJson.length)
|
|
848
918
|
for (var i = 0; i < message.transferredInJson.length; ++i)
|
|
849
|
-
$root.json_ipc.ValuesSequence.TransferredObj.encode(message.transferredInJson[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
919
|
+
$root.json_ipc.ValuesSequence.TransferredObj.encode(message.transferredInJson[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
|
|
850
920
|
if (message.arr != null && Object.hasOwnProperty.call(message, "arr"))
|
|
851
|
-
$root.json_ipc.ValuesSequence.BinaryValue.encode(message.arr, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
921
|
+
$root.json_ipc.ValuesSequence.BinaryValue.encode(message.arr, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
|
|
852
922
|
if (message.transferred != null && Object.hasOwnProperty.call(message, "transferred"))
|
|
853
|
-
$root.json_ipc.ValuesSequence.TransferredObj.encode(message.transferred, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
923
|
+
$root.json_ipc.ValuesSequence.TransferredObj.encode(message.transferred, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
|
|
854
924
|
return writer;
|
|
855
925
|
};
|
|
856
926
|
|
|
@@ -864,7 +934,7 @@ $root.json_ipc = (function() {
|
|
|
864
934
|
* @returns {$protobuf.Writer} Writer
|
|
865
935
|
*/
|
|
866
936
|
Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
867
|
-
return this.encode(message, writer).ldelim();
|
|
937
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
868
938
|
};
|
|
869
939
|
|
|
870
940
|
/**
|
|
@@ -878,9 +948,13 @@ $root.json_ipc = (function() {
|
|
|
878
948
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
879
949
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
880
950
|
*/
|
|
881
|
-
Value.decode = function decode(reader, length, error) {
|
|
951
|
+
Value.decode = function decode(reader, length, error, long) {
|
|
882
952
|
if (!(reader instanceof $Reader))
|
|
883
953
|
reader = $Reader.create(reader);
|
|
954
|
+
if (long === undefined)
|
|
955
|
+
long = 0;
|
|
956
|
+
if (long > $Reader.recursionLimit)
|
|
957
|
+
throw Error("maximum nesting depth exceeded");
|
|
884
958
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence.Value();
|
|
885
959
|
while (reader.pos < end) {
|
|
886
960
|
var tag = reader.uint32();
|
|
@@ -894,25 +968,25 @@ $root.json_ipc = (function() {
|
|
|
894
968
|
case 2: {
|
|
895
969
|
if (!(message.binaryInJson && message.binaryInJson.length))
|
|
896
970
|
message.binaryInJson = [];
|
|
897
|
-
message.binaryInJson.push($root.json_ipc.ValuesSequence.BinaryValue.decode(reader, reader.uint32()));
|
|
971
|
+
message.binaryInJson.push($root.json_ipc.ValuesSequence.BinaryValue.decode(reader, reader.uint32(), undefined, long + 1));
|
|
898
972
|
break;
|
|
899
973
|
}
|
|
900
974
|
case 3: {
|
|
901
975
|
if (!(message.transferredInJson && message.transferredInJson.length))
|
|
902
976
|
message.transferredInJson = [];
|
|
903
|
-
message.transferredInJson.push($root.json_ipc.ValuesSequence.TransferredObj.decode(reader, reader.uint32()));
|
|
977
|
+
message.transferredInJson.push($root.json_ipc.ValuesSequence.TransferredObj.decode(reader, reader.uint32(), undefined, long + 1));
|
|
904
978
|
break;
|
|
905
979
|
}
|
|
906
980
|
case 4: {
|
|
907
|
-
message.arr = $root.json_ipc.ValuesSequence.BinaryValue.decode(reader, reader.uint32());
|
|
981
|
+
message.arr = $root.json_ipc.ValuesSequence.BinaryValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
908
982
|
break;
|
|
909
983
|
}
|
|
910
984
|
case 5: {
|
|
911
|
-
message.transferred = $root.json_ipc.ValuesSequence.TransferredObj.decode(reader, reader.uint32());
|
|
985
|
+
message.transferred = $root.json_ipc.ValuesSequence.TransferredObj.decode(reader, reader.uint32(), undefined, long + 1);
|
|
912
986
|
break;
|
|
913
987
|
}
|
|
914
988
|
default:
|
|
915
|
-
reader.skipType(tag & 7);
|
|
989
|
+
reader.skipType(tag & 7, long);
|
|
916
990
|
break;
|
|
917
991
|
}
|
|
918
992
|
}
|
|
@@ -943,37 +1017,41 @@ $root.json_ipc = (function() {
|
|
|
943
1017
|
* @param {Object.<string,*>} message Plain object to verify
|
|
944
1018
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
945
1019
|
*/
|
|
946
|
-
Value.verify = function verify(message) {
|
|
1020
|
+
Value.verify = function verify(message, long) {
|
|
947
1021
|
if (typeof message !== "object" || message === null)
|
|
948
1022
|
return "object expected";
|
|
949
|
-
if (
|
|
1023
|
+
if (long === undefined)
|
|
1024
|
+
long = 0;
|
|
1025
|
+
if (long > $util.recursionLimit)
|
|
1026
|
+
return "maximum nesting depth exceeded";
|
|
1027
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
950
1028
|
if (!$util.isString(message.json))
|
|
951
1029
|
return "json: string expected";
|
|
952
|
-
if (message.binaryInJson != null &&
|
|
1030
|
+
if (message.binaryInJson != null && Object.hasOwnProperty.call(message, "binaryInJson")) {
|
|
953
1031
|
if (!Array.isArray(message.binaryInJson))
|
|
954
1032
|
return "binaryInJson: array expected";
|
|
955
1033
|
for (var i = 0; i < message.binaryInJson.length; ++i) {
|
|
956
|
-
var error = $root.json_ipc.ValuesSequence.BinaryValue.verify(message.binaryInJson[i]);
|
|
1034
|
+
var error = $root.json_ipc.ValuesSequence.BinaryValue.verify(message.binaryInJson[i], long + 1);
|
|
957
1035
|
if (error)
|
|
958
1036
|
return "binaryInJson." + error;
|
|
959
1037
|
}
|
|
960
1038
|
}
|
|
961
|
-
if (message.transferredInJson != null &&
|
|
1039
|
+
if (message.transferredInJson != null && Object.hasOwnProperty.call(message, "transferredInJson")) {
|
|
962
1040
|
if (!Array.isArray(message.transferredInJson))
|
|
963
1041
|
return "transferredInJson: array expected";
|
|
964
1042
|
for (var i = 0; i < message.transferredInJson.length; ++i) {
|
|
965
|
-
var error = $root.json_ipc.ValuesSequence.TransferredObj.verify(message.transferredInJson[i]);
|
|
1043
|
+
var error = $root.json_ipc.ValuesSequence.TransferredObj.verify(message.transferredInJson[i], long + 1);
|
|
966
1044
|
if (error)
|
|
967
1045
|
return "transferredInJson." + error;
|
|
968
1046
|
}
|
|
969
1047
|
}
|
|
970
|
-
if (message.arr != null &&
|
|
971
|
-
var error = $root.json_ipc.ValuesSequence.BinaryValue.verify(message.arr);
|
|
1048
|
+
if (message.arr != null && Object.hasOwnProperty.call(message, "arr")) {
|
|
1049
|
+
var error = $root.json_ipc.ValuesSequence.BinaryValue.verify(message.arr, long + 1);
|
|
972
1050
|
if (error)
|
|
973
1051
|
return "arr." + error;
|
|
974
1052
|
}
|
|
975
|
-
if (message.transferred != null &&
|
|
976
|
-
var error = $root.json_ipc.ValuesSequence.TransferredObj.verify(message.transferred);
|
|
1053
|
+
if (message.transferred != null && Object.hasOwnProperty.call(message, "transferred")) {
|
|
1054
|
+
var error = $root.json_ipc.ValuesSequence.TransferredObj.verify(message.transferred, long + 1);
|
|
977
1055
|
if (error)
|
|
978
1056
|
return "transferred." + error;
|
|
979
1057
|
}
|
|
@@ -988,9 +1066,15 @@ $root.json_ipc = (function() {
|
|
|
988
1066
|
* @param {Object.<string,*>} object Plain object
|
|
989
1067
|
* @returns {json_ipc.ValuesSequence.Value} Value
|
|
990
1068
|
*/
|
|
991
|
-
Value.fromObject = function fromObject(object) {
|
|
1069
|
+
Value.fromObject = function fromObject(object, long) {
|
|
992
1070
|
if (object instanceof $root.json_ipc.ValuesSequence.Value)
|
|
993
1071
|
return object;
|
|
1072
|
+
if (!$util.isObject(object))
|
|
1073
|
+
throw TypeError(".json_ipc.ValuesSequence.Value: object expected");
|
|
1074
|
+
if (long === undefined)
|
|
1075
|
+
long = 0;
|
|
1076
|
+
if (long > $util.recursionLimit)
|
|
1077
|
+
throw Error("maximum nesting depth exceeded");
|
|
994
1078
|
var message = new $root.json_ipc.ValuesSequence.Value();
|
|
995
1079
|
if (object.json != null)
|
|
996
1080
|
message.json = String(object.json);
|
|
@@ -999,9 +1083,9 @@ $root.json_ipc = (function() {
|
|
|
999
1083
|
throw TypeError(".json_ipc.ValuesSequence.Value.binaryInJson: array expected");
|
|
1000
1084
|
message.binaryInJson = [];
|
|
1001
1085
|
for (var i = 0; i < object.binaryInJson.length; ++i) {
|
|
1002
|
-
if (
|
|
1086
|
+
if (!$util.isObject(object.binaryInJson[i]))
|
|
1003
1087
|
throw TypeError(".json_ipc.ValuesSequence.Value.binaryInJson: object expected");
|
|
1004
|
-
message.binaryInJson[i] = $root.json_ipc.ValuesSequence.BinaryValue.fromObject(object.binaryInJson[i]);
|
|
1088
|
+
message.binaryInJson[i] = $root.json_ipc.ValuesSequence.BinaryValue.fromObject(object.binaryInJson[i], long + 1);
|
|
1005
1089
|
}
|
|
1006
1090
|
}
|
|
1007
1091
|
if (object.transferredInJson) {
|
|
@@ -1009,20 +1093,20 @@ $root.json_ipc = (function() {
|
|
|
1009
1093
|
throw TypeError(".json_ipc.ValuesSequence.Value.transferredInJson: array expected");
|
|
1010
1094
|
message.transferredInJson = [];
|
|
1011
1095
|
for (var i = 0; i < object.transferredInJson.length; ++i) {
|
|
1012
|
-
if (
|
|
1096
|
+
if (!$util.isObject(object.transferredInJson[i]))
|
|
1013
1097
|
throw TypeError(".json_ipc.ValuesSequence.Value.transferredInJson: object expected");
|
|
1014
|
-
message.transferredInJson[i] = $root.json_ipc.ValuesSequence.TransferredObj.fromObject(object.transferredInJson[i]);
|
|
1098
|
+
message.transferredInJson[i] = $root.json_ipc.ValuesSequence.TransferredObj.fromObject(object.transferredInJson[i], long + 1);
|
|
1015
1099
|
}
|
|
1016
1100
|
}
|
|
1017
1101
|
if (object.arr != null) {
|
|
1018
|
-
if (
|
|
1102
|
+
if (!$util.isObject(object.arr))
|
|
1019
1103
|
throw TypeError(".json_ipc.ValuesSequence.Value.arr: object expected");
|
|
1020
|
-
message.arr = $root.json_ipc.ValuesSequence.BinaryValue.fromObject(object.arr);
|
|
1104
|
+
message.arr = $root.json_ipc.ValuesSequence.BinaryValue.fromObject(object.arr, long + 1);
|
|
1021
1105
|
}
|
|
1022
1106
|
if (object.transferred != null) {
|
|
1023
|
-
if (
|
|
1107
|
+
if (!$util.isObject(object.transferred))
|
|
1024
1108
|
throw TypeError(".json_ipc.ValuesSequence.Value.transferred: object expected");
|
|
1025
|
-
message.transferred = $root.json_ipc.ValuesSequence.TransferredObj.fromObject(object.transferred);
|
|
1109
|
+
message.transferred = $root.json_ipc.ValuesSequence.TransferredObj.fromObject(object.transferred, long + 1);
|
|
1026
1110
|
}
|
|
1027
1111
|
return message;
|
|
1028
1112
|
};
|
|
@@ -1036,9 +1120,13 @@ $root.json_ipc = (function() {
|
|
|
1036
1120
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1037
1121
|
* @returns {Object.<string,*>} Plain object
|
|
1038
1122
|
*/
|
|
1039
|
-
Value.toObject = function toObject(message, options) {
|
|
1123
|
+
Value.toObject = function toObject(message, options, q) {
|
|
1040
1124
|
if (!options)
|
|
1041
1125
|
options = {};
|
|
1126
|
+
if (q === undefined)
|
|
1127
|
+
q = 0;
|
|
1128
|
+
if (q > $util.recursionLimit)
|
|
1129
|
+
throw Error("max depth exceeded");
|
|
1042
1130
|
var object = {};
|
|
1043
1131
|
if (options.arrays || options.defaults) {
|
|
1044
1132
|
object.binaryInJson = [];
|
|
@@ -1049,22 +1137,22 @@ $root.json_ipc = (function() {
|
|
|
1049
1137
|
object.arr = null;
|
|
1050
1138
|
object.transferred = null;
|
|
1051
1139
|
}
|
|
1052
|
-
if (message.json != null &&
|
|
1140
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
1053
1141
|
object.json = message.json;
|
|
1054
1142
|
if (message.binaryInJson && message.binaryInJson.length) {
|
|
1055
1143
|
object.binaryInJson = [];
|
|
1056
1144
|
for (var j = 0; j < message.binaryInJson.length; ++j)
|
|
1057
|
-
object.binaryInJson[j] = $root.json_ipc.ValuesSequence.BinaryValue.toObject(message.binaryInJson[j], options);
|
|
1145
|
+
object.binaryInJson[j] = $root.json_ipc.ValuesSequence.BinaryValue.toObject(message.binaryInJson[j], options, q + 1);
|
|
1058
1146
|
}
|
|
1059
1147
|
if (message.transferredInJson && message.transferredInJson.length) {
|
|
1060
1148
|
object.transferredInJson = [];
|
|
1061
1149
|
for (var j = 0; j < message.transferredInJson.length; ++j)
|
|
1062
|
-
object.transferredInJson[j] = $root.json_ipc.ValuesSequence.TransferredObj.toObject(message.transferredInJson[j], options);
|
|
1150
|
+
object.transferredInJson[j] = $root.json_ipc.ValuesSequence.TransferredObj.toObject(message.transferredInJson[j], options, q + 1);
|
|
1063
1151
|
}
|
|
1064
|
-
if (message.arr != null &&
|
|
1065
|
-
object.arr = $root.json_ipc.ValuesSequence.BinaryValue.toObject(message.arr, options);
|
|
1066
|
-
if (message.transferred != null &&
|
|
1067
|
-
object.transferred = $root.json_ipc.ValuesSequence.TransferredObj.toObject(message.transferred, options);
|
|
1152
|
+
if (message.arr != null && Object.hasOwnProperty.call(message, "arr"))
|
|
1153
|
+
object.arr = $root.json_ipc.ValuesSequence.BinaryValue.toObject(message.arr, options, q + 1);
|
|
1154
|
+
if (message.transferred != null && Object.hasOwnProperty.call(message, "transferred"))
|
|
1155
|
+
object.transferred = $root.json_ipc.ValuesSequence.TransferredObj.toObject(message.transferred, options, q + 1);
|
|
1068
1156
|
return object;
|
|
1069
1157
|
};
|
|
1070
1158
|
|
|
@@ -1134,7 +1222,7 @@ $root.common = (function() {
|
|
|
1134
1222
|
this.path = [];
|
|
1135
1223
|
if (properties)
|
|
1136
1224
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1137
|
-
if (properties[keys[i]] != null)
|
|
1225
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1138
1226
|
this[keys[i]] = properties[keys[i]];
|
|
1139
1227
|
}
|
|
1140
1228
|
|
|
@@ -1175,9 +1263,13 @@ $root.common = (function() {
|
|
|
1175
1263
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1176
1264
|
* @returns {$protobuf.Writer} Writer
|
|
1177
1265
|
*/
|
|
1178
|
-
ObjectReference.encode = function encode(message, writer) {
|
|
1266
|
+
ObjectReference.encode = function encode(message, writer, q) {
|
|
1179
1267
|
if (!writer)
|
|
1180
1268
|
writer = $Writer.create();
|
|
1269
|
+
if (q === undefined)
|
|
1270
|
+
q = 0;
|
|
1271
|
+
if (q > $util.recursionLimit)
|
|
1272
|
+
throw Error("max depth exceeded");
|
|
1181
1273
|
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
1182
1274
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objType);
|
|
1183
1275
|
if (message.path != null && message.path.length)
|
|
@@ -1196,7 +1288,7 @@ $root.common = (function() {
|
|
|
1196
1288
|
* @returns {$protobuf.Writer} Writer
|
|
1197
1289
|
*/
|
|
1198
1290
|
ObjectReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1199
|
-
return this.encode(message, writer).ldelim();
|
|
1291
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1200
1292
|
};
|
|
1201
1293
|
|
|
1202
1294
|
/**
|
|
@@ -1210,9 +1302,13 @@ $root.common = (function() {
|
|
|
1210
1302
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1211
1303
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1212
1304
|
*/
|
|
1213
|
-
ObjectReference.decode = function decode(reader, length, error) {
|
|
1305
|
+
ObjectReference.decode = function decode(reader, length, error, long) {
|
|
1214
1306
|
if (!(reader instanceof $Reader))
|
|
1215
1307
|
reader = $Reader.create(reader);
|
|
1308
|
+
if (long === undefined)
|
|
1309
|
+
long = 0;
|
|
1310
|
+
if (long > $Reader.recursionLimit)
|
|
1311
|
+
throw Error("maximum nesting depth exceeded");
|
|
1216
1312
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ObjectReference();
|
|
1217
1313
|
while (reader.pos < end) {
|
|
1218
1314
|
var tag = reader.uint32();
|
|
@@ -1230,7 +1326,7 @@ $root.common = (function() {
|
|
|
1230
1326
|
break;
|
|
1231
1327
|
}
|
|
1232
1328
|
default:
|
|
1233
|
-
reader.skipType(tag & 7);
|
|
1329
|
+
reader.skipType(tag & 7, long);
|
|
1234
1330
|
break;
|
|
1235
1331
|
}
|
|
1236
1332
|
}
|
|
@@ -1261,13 +1357,17 @@ $root.common = (function() {
|
|
|
1261
1357
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1262
1358
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1263
1359
|
*/
|
|
1264
|
-
ObjectReference.verify = function verify(message) {
|
|
1360
|
+
ObjectReference.verify = function verify(message, long) {
|
|
1265
1361
|
if (typeof message !== "object" || message === null)
|
|
1266
1362
|
return "object expected";
|
|
1267
|
-
if (
|
|
1363
|
+
if (long === undefined)
|
|
1364
|
+
long = 0;
|
|
1365
|
+
if (long > $util.recursionLimit)
|
|
1366
|
+
return "maximum nesting depth exceeded";
|
|
1367
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
1268
1368
|
if (!$util.isString(message.objType))
|
|
1269
1369
|
return "objType: string expected";
|
|
1270
|
-
if (message.path != null &&
|
|
1370
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path")) {
|
|
1271
1371
|
if (!Array.isArray(message.path))
|
|
1272
1372
|
return "path: array expected";
|
|
1273
1373
|
for (var i = 0; i < message.path.length; ++i)
|
|
@@ -1285,9 +1385,15 @@ $root.common = (function() {
|
|
|
1285
1385
|
* @param {Object.<string,*>} object Plain object
|
|
1286
1386
|
* @returns {common.ObjectReference} ObjectReference
|
|
1287
1387
|
*/
|
|
1288
|
-
ObjectReference.fromObject = function fromObject(object) {
|
|
1388
|
+
ObjectReference.fromObject = function fromObject(object, long) {
|
|
1289
1389
|
if (object instanceof $root.common.ObjectReference)
|
|
1290
1390
|
return object;
|
|
1391
|
+
if (!$util.isObject(object))
|
|
1392
|
+
throw TypeError(".common.ObjectReference: object expected");
|
|
1393
|
+
if (long === undefined)
|
|
1394
|
+
long = 0;
|
|
1395
|
+
if (long > $util.recursionLimit)
|
|
1396
|
+
throw Error("maximum nesting depth exceeded");
|
|
1291
1397
|
var message = new $root.common.ObjectReference();
|
|
1292
1398
|
if (object.objType != null)
|
|
1293
1399
|
message.objType = String(object.objType);
|
|
@@ -1310,15 +1416,19 @@ $root.common = (function() {
|
|
|
1310
1416
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1311
1417
|
* @returns {Object.<string,*>} Plain object
|
|
1312
1418
|
*/
|
|
1313
|
-
ObjectReference.toObject = function toObject(message, options) {
|
|
1419
|
+
ObjectReference.toObject = function toObject(message, options, q) {
|
|
1314
1420
|
if (!options)
|
|
1315
1421
|
options = {};
|
|
1422
|
+
if (q === undefined)
|
|
1423
|
+
q = 0;
|
|
1424
|
+
if (q > $util.recursionLimit)
|
|
1425
|
+
throw Error("max depth exceeded");
|
|
1316
1426
|
var object = {};
|
|
1317
1427
|
if (options.arrays || options.defaults)
|
|
1318
1428
|
object.path = [];
|
|
1319
1429
|
if (options.defaults)
|
|
1320
1430
|
object.objType = "";
|
|
1321
|
-
if (message.objType != null &&
|
|
1431
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
1322
1432
|
object.objType = message.objType;
|
|
1323
1433
|
if (message.path && message.path.length) {
|
|
1324
1434
|
object.path = [];
|
|
@@ -1377,7 +1487,7 @@ $root.common = (function() {
|
|
|
1377
1487
|
function BooleanValue(properties) {
|
|
1378
1488
|
if (properties)
|
|
1379
1489
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1380
|
-
if (properties[keys[i]] != null)
|
|
1490
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1381
1491
|
this[keys[i]] = properties[keys[i]];
|
|
1382
1492
|
}
|
|
1383
1493
|
|
|
@@ -1410,9 +1520,13 @@ $root.common = (function() {
|
|
|
1410
1520
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1411
1521
|
* @returns {$protobuf.Writer} Writer
|
|
1412
1522
|
*/
|
|
1413
|
-
BooleanValue.encode = function encode(message, writer) {
|
|
1523
|
+
BooleanValue.encode = function encode(message, writer, q) {
|
|
1414
1524
|
if (!writer)
|
|
1415
1525
|
writer = $Writer.create();
|
|
1526
|
+
if (q === undefined)
|
|
1527
|
+
q = 0;
|
|
1528
|
+
if (q > $util.recursionLimit)
|
|
1529
|
+
throw Error("max depth exceeded");
|
|
1416
1530
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1417
1531
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
|
|
1418
1532
|
return writer;
|
|
@@ -1428,7 +1542,7 @@ $root.common = (function() {
|
|
|
1428
1542
|
* @returns {$protobuf.Writer} Writer
|
|
1429
1543
|
*/
|
|
1430
1544
|
BooleanValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1431
|
-
return this.encode(message, writer).ldelim();
|
|
1545
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1432
1546
|
};
|
|
1433
1547
|
|
|
1434
1548
|
/**
|
|
@@ -1442,9 +1556,13 @@ $root.common = (function() {
|
|
|
1442
1556
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1443
1557
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1444
1558
|
*/
|
|
1445
|
-
BooleanValue.decode = function decode(reader, length, error) {
|
|
1559
|
+
BooleanValue.decode = function decode(reader, length, error, long) {
|
|
1446
1560
|
if (!(reader instanceof $Reader))
|
|
1447
1561
|
reader = $Reader.create(reader);
|
|
1562
|
+
if (long === undefined)
|
|
1563
|
+
long = 0;
|
|
1564
|
+
if (long > $Reader.recursionLimit)
|
|
1565
|
+
throw Error("maximum nesting depth exceeded");
|
|
1448
1566
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BooleanValue();
|
|
1449
1567
|
while (reader.pos < end) {
|
|
1450
1568
|
var tag = reader.uint32();
|
|
@@ -1456,7 +1574,7 @@ $root.common = (function() {
|
|
|
1456
1574
|
break;
|
|
1457
1575
|
}
|
|
1458
1576
|
default:
|
|
1459
|
-
reader.skipType(tag & 7);
|
|
1577
|
+
reader.skipType(tag & 7, long);
|
|
1460
1578
|
break;
|
|
1461
1579
|
}
|
|
1462
1580
|
}
|
|
@@ -1487,10 +1605,14 @@ $root.common = (function() {
|
|
|
1487
1605
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1488
1606
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1489
1607
|
*/
|
|
1490
|
-
BooleanValue.verify = function verify(message) {
|
|
1608
|
+
BooleanValue.verify = function verify(message, long) {
|
|
1491
1609
|
if (typeof message !== "object" || message === null)
|
|
1492
1610
|
return "object expected";
|
|
1493
|
-
if (
|
|
1611
|
+
if (long === undefined)
|
|
1612
|
+
long = 0;
|
|
1613
|
+
if (long > $util.recursionLimit)
|
|
1614
|
+
return "maximum nesting depth exceeded";
|
|
1615
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1494
1616
|
if (typeof message.value !== "boolean")
|
|
1495
1617
|
return "value: boolean expected";
|
|
1496
1618
|
return null;
|
|
@@ -1504,9 +1626,15 @@ $root.common = (function() {
|
|
|
1504
1626
|
* @param {Object.<string,*>} object Plain object
|
|
1505
1627
|
* @returns {common.BooleanValue} BooleanValue
|
|
1506
1628
|
*/
|
|
1507
|
-
BooleanValue.fromObject = function fromObject(object) {
|
|
1629
|
+
BooleanValue.fromObject = function fromObject(object, long) {
|
|
1508
1630
|
if (object instanceof $root.common.BooleanValue)
|
|
1509
1631
|
return object;
|
|
1632
|
+
if (!$util.isObject(object))
|
|
1633
|
+
throw TypeError(".common.BooleanValue: object expected");
|
|
1634
|
+
if (long === undefined)
|
|
1635
|
+
long = 0;
|
|
1636
|
+
if (long > $util.recursionLimit)
|
|
1637
|
+
throw Error("maximum nesting depth exceeded");
|
|
1510
1638
|
var message = new $root.common.BooleanValue();
|
|
1511
1639
|
if (object.value != null)
|
|
1512
1640
|
message.value = Boolean(object.value);
|
|
@@ -1522,13 +1650,17 @@ $root.common = (function() {
|
|
|
1522
1650
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1523
1651
|
* @returns {Object.<string,*>} Plain object
|
|
1524
1652
|
*/
|
|
1525
|
-
BooleanValue.toObject = function toObject(message, options) {
|
|
1653
|
+
BooleanValue.toObject = function toObject(message, options, q) {
|
|
1526
1654
|
if (!options)
|
|
1527
1655
|
options = {};
|
|
1656
|
+
if (q === undefined)
|
|
1657
|
+
q = 0;
|
|
1658
|
+
if (q > $util.recursionLimit)
|
|
1659
|
+
throw Error("max depth exceeded");
|
|
1528
1660
|
var object = {};
|
|
1529
1661
|
if (options.defaults)
|
|
1530
1662
|
object.value = false;
|
|
1531
|
-
if (message.value != null &&
|
|
1663
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1532
1664
|
object.value = message.value;
|
|
1533
1665
|
return object;
|
|
1534
1666
|
};
|
|
@@ -1583,7 +1715,7 @@ $root.common = (function() {
|
|
|
1583
1715
|
this.values = [];
|
|
1584
1716
|
if (properties)
|
|
1585
1717
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1586
|
-
if (properties[keys[i]] != null)
|
|
1718
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1587
1719
|
this[keys[i]] = properties[keys[i]];
|
|
1588
1720
|
}
|
|
1589
1721
|
|
|
@@ -1616,9 +1748,13 @@ $root.common = (function() {
|
|
|
1616
1748
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1617
1749
|
* @returns {$protobuf.Writer} Writer
|
|
1618
1750
|
*/
|
|
1619
|
-
StringArrayValue.encode = function encode(message, writer) {
|
|
1751
|
+
StringArrayValue.encode = function encode(message, writer, q) {
|
|
1620
1752
|
if (!writer)
|
|
1621
1753
|
writer = $Writer.create();
|
|
1754
|
+
if (q === undefined)
|
|
1755
|
+
q = 0;
|
|
1756
|
+
if (q > $util.recursionLimit)
|
|
1757
|
+
throw Error("max depth exceeded");
|
|
1622
1758
|
if (message.values != null && message.values.length)
|
|
1623
1759
|
for (var i = 0; i < message.values.length; ++i)
|
|
1624
1760
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
|
|
@@ -1635,7 +1771,7 @@ $root.common = (function() {
|
|
|
1635
1771
|
* @returns {$protobuf.Writer} Writer
|
|
1636
1772
|
*/
|
|
1637
1773
|
StringArrayValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1638
|
-
return this.encode(message, writer).ldelim();
|
|
1774
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1639
1775
|
};
|
|
1640
1776
|
|
|
1641
1777
|
/**
|
|
@@ -1649,9 +1785,13 @@ $root.common = (function() {
|
|
|
1649
1785
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1650
1786
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1651
1787
|
*/
|
|
1652
|
-
StringArrayValue.decode = function decode(reader, length, error) {
|
|
1788
|
+
StringArrayValue.decode = function decode(reader, length, error, long) {
|
|
1653
1789
|
if (!(reader instanceof $Reader))
|
|
1654
1790
|
reader = $Reader.create(reader);
|
|
1791
|
+
if (long === undefined)
|
|
1792
|
+
long = 0;
|
|
1793
|
+
if (long > $Reader.recursionLimit)
|
|
1794
|
+
throw Error("maximum nesting depth exceeded");
|
|
1655
1795
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringArrayValue();
|
|
1656
1796
|
while (reader.pos < end) {
|
|
1657
1797
|
var tag = reader.uint32();
|
|
@@ -1665,7 +1805,7 @@ $root.common = (function() {
|
|
|
1665
1805
|
break;
|
|
1666
1806
|
}
|
|
1667
1807
|
default:
|
|
1668
|
-
reader.skipType(tag & 7);
|
|
1808
|
+
reader.skipType(tag & 7, long);
|
|
1669
1809
|
break;
|
|
1670
1810
|
}
|
|
1671
1811
|
}
|
|
@@ -1696,10 +1836,14 @@ $root.common = (function() {
|
|
|
1696
1836
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1697
1837
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1698
1838
|
*/
|
|
1699
|
-
StringArrayValue.verify = function verify(message) {
|
|
1839
|
+
StringArrayValue.verify = function verify(message, long) {
|
|
1700
1840
|
if (typeof message !== "object" || message === null)
|
|
1701
1841
|
return "object expected";
|
|
1702
|
-
if (
|
|
1842
|
+
if (long === undefined)
|
|
1843
|
+
long = 0;
|
|
1844
|
+
if (long > $util.recursionLimit)
|
|
1845
|
+
return "maximum nesting depth exceeded";
|
|
1846
|
+
if (message.values != null && Object.hasOwnProperty.call(message, "values")) {
|
|
1703
1847
|
if (!Array.isArray(message.values))
|
|
1704
1848
|
return "values: array expected";
|
|
1705
1849
|
for (var i = 0; i < message.values.length; ++i)
|
|
@@ -1717,9 +1861,15 @@ $root.common = (function() {
|
|
|
1717
1861
|
* @param {Object.<string,*>} object Plain object
|
|
1718
1862
|
* @returns {common.StringArrayValue} StringArrayValue
|
|
1719
1863
|
*/
|
|
1720
|
-
StringArrayValue.fromObject = function fromObject(object) {
|
|
1864
|
+
StringArrayValue.fromObject = function fromObject(object, long) {
|
|
1721
1865
|
if (object instanceof $root.common.StringArrayValue)
|
|
1722
1866
|
return object;
|
|
1867
|
+
if (!$util.isObject(object))
|
|
1868
|
+
throw TypeError(".common.StringArrayValue: object expected");
|
|
1869
|
+
if (long === undefined)
|
|
1870
|
+
long = 0;
|
|
1871
|
+
if (long > $util.recursionLimit)
|
|
1872
|
+
throw Error("maximum nesting depth exceeded");
|
|
1723
1873
|
var message = new $root.common.StringArrayValue();
|
|
1724
1874
|
if (object.values) {
|
|
1725
1875
|
if (!Array.isArray(object.values))
|
|
@@ -1740,9 +1890,13 @@ $root.common = (function() {
|
|
|
1740
1890
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1741
1891
|
* @returns {Object.<string,*>} Plain object
|
|
1742
1892
|
*/
|
|
1743
|
-
StringArrayValue.toObject = function toObject(message, options) {
|
|
1893
|
+
StringArrayValue.toObject = function toObject(message, options, q) {
|
|
1744
1894
|
if (!options)
|
|
1745
1895
|
options = {};
|
|
1896
|
+
if (q === undefined)
|
|
1897
|
+
q = 0;
|
|
1898
|
+
if (q > $util.recursionLimit)
|
|
1899
|
+
throw Error("max depth exceeded");
|
|
1746
1900
|
var object = {};
|
|
1747
1901
|
if (options.arrays || options.defaults)
|
|
1748
1902
|
object.values = [];
|
|
@@ -1803,7 +1957,7 @@ $root.common = (function() {
|
|
|
1803
1957
|
function UInt64Value(properties) {
|
|
1804
1958
|
if (properties)
|
|
1805
1959
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1806
|
-
if (properties[keys[i]] != null)
|
|
1960
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1807
1961
|
this[keys[i]] = properties[keys[i]];
|
|
1808
1962
|
}
|
|
1809
1963
|
|
|
@@ -1836,9 +1990,13 @@ $root.common = (function() {
|
|
|
1836
1990
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1837
1991
|
* @returns {$protobuf.Writer} Writer
|
|
1838
1992
|
*/
|
|
1839
|
-
UInt64Value.encode = function encode(message, writer) {
|
|
1993
|
+
UInt64Value.encode = function encode(message, writer, q) {
|
|
1840
1994
|
if (!writer)
|
|
1841
1995
|
writer = $Writer.create();
|
|
1996
|
+
if (q === undefined)
|
|
1997
|
+
q = 0;
|
|
1998
|
+
if (q > $util.recursionLimit)
|
|
1999
|
+
throw Error("max depth exceeded");
|
|
1842
2000
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1843
2001
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
|
|
1844
2002
|
return writer;
|
|
@@ -1854,7 +2012,7 @@ $root.common = (function() {
|
|
|
1854
2012
|
* @returns {$protobuf.Writer} Writer
|
|
1855
2013
|
*/
|
|
1856
2014
|
UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1857
|
-
return this.encode(message, writer).ldelim();
|
|
2015
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1858
2016
|
};
|
|
1859
2017
|
|
|
1860
2018
|
/**
|
|
@@ -1868,9 +2026,13 @@ $root.common = (function() {
|
|
|
1868
2026
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1869
2027
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1870
2028
|
*/
|
|
1871
|
-
UInt64Value.decode = function decode(reader, length, error) {
|
|
2029
|
+
UInt64Value.decode = function decode(reader, length, error, long) {
|
|
1872
2030
|
if (!(reader instanceof $Reader))
|
|
1873
2031
|
reader = $Reader.create(reader);
|
|
2032
|
+
if (long === undefined)
|
|
2033
|
+
long = 0;
|
|
2034
|
+
if (long > $Reader.recursionLimit)
|
|
2035
|
+
throw Error("maximum nesting depth exceeded");
|
|
1874
2036
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt64Value();
|
|
1875
2037
|
while (reader.pos < end) {
|
|
1876
2038
|
var tag = reader.uint32();
|
|
@@ -1882,7 +2044,7 @@ $root.common = (function() {
|
|
|
1882
2044
|
break;
|
|
1883
2045
|
}
|
|
1884
2046
|
default:
|
|
1885
|
-
reader.skipType(tag & 7);
|
|
2047
|
+
reader.skipType(tag & 7, long);
|
|
1886
2048
|
break;
|
|
1887
2049
|
}
|
|
1888
2050
|
}
|
|
@@ -1913,10 +2075,14 @@ $root.common = (function() {
|
|
|
1913
2075
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1914
2076
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1915
2077
|
*/
|
|
1916
|
-
UInt64Value.verify = function verify(message) {
|
|
2078
|
+
UInt64Value.verify = function verify(message, long) {
|
|
1917
2079
|
if (typeof message !== "object" || message === null)
|
|
1918
2080
|
return "object expected";
|
|
1919
|
-
if (
|
|
2081
|
+
if (long === undefined)
|
|
2082
|
+
long = 0;
|
|
2083
|
+
if (long > $util.recursionLimit)
|
|
2084
|
+
return "maximum nesting depth exceeded";
|
|
2085
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1920
2086
|
if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
|
|
1921
2087
|
return "value: integer|Long expected";
|
|
1922
2088
|
return null;
|
|
@@ -1930,13 +2096,19 @@ $root.common = (function() {
|
|
|
1930
2096
|
* @param {Object.<string,*>} object Plain object
|
|
1931
2097
|
* @returns {common.UInt64Value} UInt64Value
|
|
1932
2098
|
*/
|
|
1933
|
-
UInt64Value.fromObject = function fromObject(object) {
|
|
2099
|
+
UInt64Value.fromObject = function fromObject(object, long) {
|
|
1934
2100
|
if (object instanceof $root.common.UInt64Value)
|
|
1935
2101
|
return object;
|
|
2102
|
+
if (!$util.isObject(object))
|
|
2103
|
+
throw TypeError(".common.UInt64Value: object expected");
|
|
2104
|
+
if (long === undefined)
|
|
2105
|
+
long = 0;
|
|
2106
|
+
if (long > $util.recursionLimit)
|
|
2107
|
+
throw Error("maximum nesting depth exceeded");
|
|
1936
2108
|
var message = new $root.common.UInt64Value();
|
|
1937
2109
|
if (object.value != null)
|
|
1938
2110
|
if ($util.Long)
|
|
1939
|
-
|
|
2111
|
+
message.value = $util.Long.fromValue(object.value, true);
|
|
1940
2112
|
else if (typeof object.value === "string")
|
|
1941
2113
|
message.value = parseInt(object.value, 10);
|
|
1942
2114
|
else if (typeof object.value === "number")
|
|
@@ -1955,18 +2127,24 @@ $root.common = (function() {
|
|
|
1955
2127
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1956
2128
|
* @returns {Object.<string,*>} Plain object
|
|
1957
2129
|
*/
|
|
1958
|
-
UInt64Value.toObject = function toObject(message, options) {
|
|
2130
|
+
UInt64Value.toObject = function toObject(message, options, q) {
|
|
1959
2131
|
if (!options)
|
|
1960
2132
|
options = {};
|
|
2133
|
+
if (q === undefined)
|
|
2134
|
+
q = 0;
|
|
2135
|
+
if (q > $util.recursionLimit)
|
|
2136
|
+
throw Error("max depth exceeded");
|
|
1961
2137
|
var object = {};
|
|
1962
2138
|
if (options.defaults)
|
|
1963
2139
|
if ($util.Long) {
|
|
1964
2140
|
var long = new $util.Long(0, 0, true);
|
|
1965
|
-
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2141
|
+
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
1966
2142
|
} else
|
|
1967
|
-
object.value = options.longs === String ? "0" : 0;
|
|
1968
|
-
if (message.value != null &&
|
|
1969
|
-
if (typeof
|
|
2143
|
+
object.value = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
2144
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2145
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
2146
|
+
object.value = typeof message.value === "number" ? BigInt(message.value) : $util.Long.fromBits(message.value.low >>> 0, message.value.high >>> 0, true).toBigInt();
|
|
2147
|
+
else if (typeof message.value === "number")
|
|
1970
2148
|
object.value = options.longs === String ? String(message.value) : message.value;
|
|
1971
2149
|
else
|
|
1972
2150
|
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;
|
|
@@ -2022,7 +2200,7 @@ $root.common = (function() {
|
|
|
2022
2200
|
function UInt32Value(properties) {
|
|
2023
2201
|
if (properties)
|
|
2024
2202
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2025
|
-
if (properties[keys[i]] != null)
|
|
2203
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2026
2204
|
this[keys[i]] = properties[keys[i]];
|
|
2027
2205
|
}
|
|
2028
2206
|
|
|
@@ -2055,9 +2233,13 @@ $root.common = (function() {
|
|
|
2055
2233
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2056
2234
|
* @returns {$protobuf.Writer} Writer
|
|
2057
2235
|
*/
|
|
2058
|
-
UInt32Value.encode = function encode(message, writer) {
|
|
2236
|
+
UInt32Value.encode = function encode(message, writer, q) {
|
|
2059
2237
|
if (!writer)
|
|
2060
2238
|
writer = $Writer.create();
|
|
2239
|
+
if (q === undefined)
|
|
2240
|
+
q = 0;
|
|
2241
|
+
if (q > $util.recursionLimit)
|
|
2242
|
+
throw Error("max depth exceeded");
|
|
2061
2243
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2062
2244
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
|
|
2063
2245
|
return writer;
|
|
@@ -2073,7 +2255,7 @@ $root.common = (function() {
|
|
|
2073
2255
|
* @returns {$protobuf.Writer} Writer
|
|
2074
2256
|
*/
|
|
2075
2257
|
UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2076
|
-
return this.encode(message, writer).ldelim();
|
|
2258
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2077
2259
|
};
|
|
2078
2260
|
|
|
2079
2261
|
/**
|
|
@@ -2087,9 +2269,13 @@ $root.common = (function() {
|
|
|
2087
2269
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2088
2270
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2089
2271
|
*/
|
|
2090
|
-
UInt32Value.decode = function decode(reader, length, error) {
|
|
2272
|
+
UInt32Value.decode = function decode(reader, length, error, long) {
|
|
2091
2273
|
if (!(reader instanceof $Reader))
|
|
2092
2274
|
reader = $Reader.create(reader);
|
|
2275
|
+
if (long === undefined)
|
|
2276
|
+
long = 0;
|
|
2277
|
+
if (long > $Reader.recursionLimit)
|
|
2278
|
+
throw Error("maximum nesting depth exceeded");
|
|
2093
2279
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt32Value();
|
|
2094
2280
|
while (reader.pos < end) {
|
|
2095
2281
|
var tag = reader.uint32();
|
|
@@ -2101,7 +2287,7 @@ $root.common = (function() {
|
|
|
2101
2287
|
break;
|
|
2102
2288
|
}
|
|
2103
2289
|
default:
|
|
2104
|
-
reader.skipType(tag & 7);
|
|
2290
|
+
reader.skipType(tag & 7, long);
|
|
2105
2291
|
break;
|
|
2106
2292
|
}
|
|
2107
2293
|
}
|
|
@@ -2132,10 +2318,14 @@ $root.common = (function() {
|
|
|
2132
2318
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2133
2319
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2134
2320
|
*/
|
|
2135
|
-
UInt32Value.verify = function verify(message) {
|
|
2321
|
+
UInt32Value.verify = function verify(message, long) {
|
|
2136
2322
|
if (typeof message !== "object" || message === null)
|
|
2137
2323
|
return "object expected";
|
|
2138
|
-
if (
|
|
2324
|
+
if (long === undefined)
|
|
2325
|
+
long = 0;
|
|
2326
|
+
if (long > $util.recursionLimit)
|
|
2327
|
+
return "maximum nesting depth exceeded";
|
|
2328
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2139
2329
|
if (!$util.isInteger(message.value))
|
|
2140
2330
|
return "value: integer expected";
|
|
2141
2331
|
return null;
|
|
@@ -2149,9 +2339,15 @@ $root.common = (function() {
|
|
|
2149
2339
|
* @param {Object.<string,*>} object Plain object
|
|
2150
2340
|
* @returns {common.UInt32Value} UInt32Value
|
|
2151
2341
|
*/
|
|
2152
|
-
UInt32Value.fromObject = function fromObject(object) {
|
|
2342
|
+
UInt32Value.fromObject = function fromObject(object, long) {
|
|
2153
2343
|
if (object instanceof $root.common.UInt32Value)
|
|
2154
2344
|
return object;
|
|
2345
|
+
if (!$util.isObject(object))
|
|
2346
|
+
throw TypeError(".common.UInt32Value: object expected");
|
|
2347
|
+
if (long === undefined)
|
|
2348
|
+
long = 0;
|
|
2349
|
+
if (long > $util.recursionLimit)
|
|
2350
|
+
throw Error("maximum nesting depth exceeded");
|
|
2155
2351
|
var message = new $root.common.UInt32Value();
|
|
2156
2352
|
if (object.value != null)
|
|
2157
2353
|
message.value = object.value >>> 0;
|
|
@@ -2167,13 +2363,17 @@ $root.common = (function() {
|
|
|
2167
2363
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2168
2364
|
* @returns {Object.<string,*>} Plain object
|
|
2169
2365
|
*/
|
|
2170
|
-
UInt32Value.toObject = function toObject(message, options) {
|
|
2366
|
+
UInt32Value.toObject = function toObject(message, options, q) {
|
|
2171
2367
|
if (!options)
|
|
2172
2368
|
options = {};
|
|
2369
|
+
if (q === undefined)
|
|
2370
|
+
q = 0;
|
|
2371
|
+
if (q > $util.recursionLimit)
|
|
2372
|
+
throw Error("max depth exceeded");
|
|
2173
2373
|
var object = {};
|
|
2174
2374
|
if (options.defaults)
|
|
2175
2375
|
object.value = 0;
|
|
2176
|
-
if (message.value != null &&
|
|
2376
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2177
2377
|
object.value = message.value;
|
|
2178
2378
|
return object;
|
|
2179
2379
|
};
|
|
@@ -2227,7 +2427,7 @@ $root.common = (function() {
|
|
|
2227
2427
|
function StringValue(properties) {
|
|
2228
2428
|
if (properties)
|
|
2229
2429
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2230
|
-
if (properties[keys[i]] != null)
|
|
2430
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2231
2431
|
this[keys[i]] = properties[keys[i]];
|
|
2232
2432
|
}
|
|
2233
2433
|
|
|
@@ -2260,9 +2460,13 @@ $root.common = (function() {
|
|
|
2260
2460
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2261
2461
|
* @returns {$protobuf.Writer} Writer
|
|
2262
2462
|
*/
|
|
2263
|
-
StringValue.encode = function encode(message, writer) {
|
|
2463
|
+
StringValue.encode = function encode(message, writer, q) {
|
|
2264
2464
|
if (!writer)
|
|
2265
2465
|
writer = $Writer.create();
|
|
2466
|
+
if (q === undefined)
|
|
2467
|
+
q = 0;
|
|
2468
|
+
if (q > $util.recursionLimit)
|
|
2469
|
+
throw Error("max depth exceeded");
|
|
2266
2470
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2267
2471
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
2268
2472
|
return writer;
|
|
@@ -2278,7 +2482,7 @@ $root.common = (function() {
|
|
|
2278
2482
|
* @returns {$protobuf.Writer} Writer
|
|
2279
2483
|
*/
|
|
2280
2484
|
StringValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2281
|
-
return this.encode(message, writer).ldelim();
|
|
2485
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2282
2486
|
};
|
|
2283
2487
|
|
|
2284
2488
|
/**
|
|
@@ -2292,9 +2496,13 @@ $root.common = (function() {
|
|
|
2292
2496
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2293
2497
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2294
2498
|
*/
|
|
2295
|
-
StringValue.decode = function decode(reader, length, error) {
|
|
2499
|
+
StringValue.decode = function decode(reader, length, error, long) {
|
|
2296
2500
|
if (!(reader instanceof $Reader))
|
|
2297
2501
|
reader = $Reader.create(reader);
|
|
2502
|
+
if (long === undefined)
|
|
2503
|
+
long = 0;
|
|
2504
|
+
if (long > $Reader.recursionLimit)
|
|
2505
|
+
throw Error("maximum nesting depth exceeded");
|
|
2298
2506
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringValue();
|
|
2299
2507
|
while (reader.pos < end) {
|
|
2300
2508
|
var tag = reader.uint32();
|
|
@@ -2306,7 +2514,7 @@ $root.common = (function() {
|
|
|
2306
2514
|
break;
|
|
2307
2515
|
}
|
|
2308
2516
|
default:
|
|
2309
|
-
reader.skipType(tag & 7);
|
|
2517
|
+
reader.skipType(tag & 7, long);
|
|
2310
2518
|
break;
|
|
2311
2519
|
}
|
|
2312
2520
|
}
|
|
@@ -2337,10 +2545,14 @@ $root.common = (function() {
|
|
|
2337
2545
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2338
2546
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2339
2547
|
*/
|
|
2340
|
-
StringValue.verify = function verify(message) {
|
|
2548
|
+
StringValue.verify = function verify(message, long) {
|
|
2341
2549
|
if (typeof message !== "object" || message === null)
|
|
2342
2550
|
return "object expected";
|
|
2343
|
-
if (
|
|
2551
|
+
if (long === undefined)
|
|
2552
|
+
long = 0;
|
|
2553
|
+
if (long > $util.recursionLimit)
|
|
2554
|
+
return "maximum nesting depth exceeded";
|
|
2555
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2344
2556
|
if (!$util.isString(message.value))
|
|
2345
2557
|
return "value: string expected";
|
|
2346
2558
|
return null;
|
|
@@ -2354,9 +2566,15 @@ $root.common = (function() {
|
|
|
2354
2566
|
* @param {Object.<string,*>} object Plain object
|
|
2355
2567
|
* @returns {common.StringValue} StringValue
|
|
2356
2568
|
*/
|
|
2357
|
-
StringValue.fromObject = function fromObject(object) {
|
|
2569
|
+
StringValue.fromObject = function fromObject(object, long) {
|
|
2358
2570
|
if (object instanceof $root.common.StringValue)
|
|
2359
2571
|
return object;
|
|
2572
|
+
if (!$util.isObject(object))
|
|
2573
|
+
throw TypeError(".common.StringValue: object expected");
|
|
2574
|
+
if (long === undefined)
|
|
2575
|
+
long = 0;
|
|
2576
|
+
if (long > $util.recursionLimit)
|
|
2577
|
+
throw Error("maximum nesting depth exceeded");
|
|
2360
2578
|
var message = new $root.common.StringValue();
|
|
2361
2579
|
if (object.value != null)
|
|
2362
2580
|
message.value = String(object.value);
|
|
@@ -2372,13 +2590,17 @@ $root.common = (function() {
|
|
|
2372
2590
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2373
2591
|
* @returns {Object.<string,*>} Plain object
|
|
2374
2592
|
*/
|
|
2375
|
-
StringValue.toObject = function toObject(message, options) {
|
|
2593
|
+
StringValue.toObject = function toObject(message, options, q) {
|
|
2376
2594
|
if (!options)
|
|
2377
2595
|
options = {};
|
|
2596
|
+
if (q === undefined)
|
|
2597
|
+
q = 0;
|
|
2598
|
+
if (q > $util.recursionLimit)
|
|
2599
|
+
throw Error("max depth exceeded");
|
|
2378
2600
|
var object = {};
|
|
2379
2601
|
if (options.defaults)
|
|
2380
2602
|
object.value = "";
|
|
2381
|
-
if (message.value != null &&
|
|
2603
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2382
2604
|
object.value = message.value;
|
|
2383
2605
|
return object;
|
|
2384
2606
|
};
|
|
@@ -2432,7 +2654,7 @@ $root.common = (function() {
|
|
|
2432
2654
|
function BytesValue(properties) {
|
|
2433
2655
|
if (properties)
|
|
2434
2656
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2435
|
-
if (properties[keys[i]] != null)
|
|
2657
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2436
2658
|
this[keys[i]] = properties[keys[i]];
|
|
2437
2659
|
}
|
|
2438
2660
|
|
|
@@ -2465,9 +2687,13 @@ $root.common = (function() {
|
|
|
2465
2687
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2466
2688
|
* @returns {$protobuf.Writer} Writer
|
|
2467
2689
|
*/
|
|
2468
|
-
BytesValue.encode = function encode(message, writer) {
|
|
2690
|
+
BytesValue.encode = function encode(message, writer, q) {
|
|
2469
2691
|
if (!writer)
|
|
2470
2692
|
writer = $Writer.create();
|
|
2693
|
+
if (q === undefined)
|
|
2694
|
+
q = 0;
|
|
2695
|
+
if (q > $util.recursionLimit)
|
|
2696
|
+
throw Error("max depth exceeded");
|
|
2471
2697
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2472
2698
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
|
2473
2699
|
return writer;
|
|
@@ -2483,7 +2709,7 @@ $root.common = (function() {
|
|
|
2483
2709
|
* @returns {$protobuf.Writer} Writer
|
|
2484
2710
|
*/
|
|
2485
2711
|
BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2486
|
-
return this.encode(message, writer).ldelim();
|
|
2712
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2487
2713
|
};
|
|
2488
2714
|
|
|
2489
2715
|
/**
|
|
@@ -2497,9 +2723,13 @@ $root.common = (function() {
|
|
|
2497
2723
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2498
2724
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2499
2725
|
*/
|
|
2500
|
-
BytesValue.decode = function decode(reader, length, error) {
|
|
2726
|
+
BytesValue.decode = function decode(reader, length, error, long) {
|
|
2501
2727
|
if (!(reader instanceof $Reader))
|
|
2502
2728
|
reader = $Reader.create(reader);
|
|
2729
|
+
if (long === undefined)
|
|
2730
|
+
long = 0;
|
|
2731
|
+
if (long > $Reader.recursionLimit)
|
|
2732
|
+
throw Error("maximum nesting depth exceeded");
|
|
2503
2733
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BytesValue();
|
|
2504
2734
|
while (reader.pos < end) {
|
|
2505
2735
|
var tag = reader.uint32();
|
|
@@ -2511,7 +2741,7 @@ $root.common = (function() {
|
|
|
2511
2741
|
break;
|
|
2512
2742
|
}
|
|
2513
2743
|
default:
|
|
2514
|
-
reader.skipType(tag & 7);
|
|
2744
|
+
reader.skipType(tag & 7, long);
|
|
2515
2745
|
break;
|
|
2516
2746
|
}
|
|
2517
2747
|
}
|
|
@@ -2542,10 +2772,14 @@ $root.common = (function() {
|
|
|
2542
2772
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2543
2773
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2544
2774
|
*/
|
|
2545
|
-
BytesValue.verify = function verify(message) {
|
|
2775
|
+
BytesValue.verify = function verify(message, long) {
|
|
2546
2776
|
if (typeof message !== "object" || message === null)
|
|
2547
2777
|
return "object expected";
|
|
2548
|
-
if (
|
|
2778
|
+
if (long === undefined)
|
|
2779
|
+
long = 0;
|
|
2780
|
+
if (long > $util.recursionLimit)
|
|
2781
|
+
return "maximum nesting depth exceeded";
|
|
2782
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2549
2783
|
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
2550
2784
|
return "value: buffer expected";
|
|
2551
2785
|
return null;
|
|
@@ -2559,9 +2793,15 @@ $root.common = (function() {
|
|
|
2559
2793
|
* @param {Object.<string,*>} object Plain object
|
|
2560
2794
|
* @returns {common.BytesValue} BytesValue
|
|
2561
2795
|
*/
|
|
2562
|
-
BytesValue.fromObject = function fromObject(object) {
|
|
2796
|
+
BytesValue.fromObject = function fromObject(object, long) {
|
|
2563
2797
|
if (object instanceof $root.common.BytesValue)
|
|
2564
2798
|
return object;
|
|
2799
|
+
if (!$util.isObject(object))
|
|
2800
|
+
throw TypeError(".common.BytesValue: object expected");
|
|
2801
|
+
if (long === undefined)
|
|
2802
|
+
long = 0;
|
|
2803
|
+
if (long > $util.recursionLimit)
|
|
2804
|
+
throw Error("maximum nesting depth exceeded");
|
|
2565
2805
|
var message = new $root.common.BytesValue();
|
|
2566
2806
|
if (object.value != null)
|
|
2567
2807
|
if (typeof object.value === "string")
|
|
@@ -2580,9 +2820,13 @@ $root.common = (function() {
|
|
|
2580
2820
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2581
2821
|
* @returns {Object.<string,*>} Plain object
|
|
2582
2822
|
*/
|
|
2583
|
-
BytesValue.toObject = function toObject(message, options) {
|
|
2823
|
+
BytesValue.toObject = function toObject(message, options, q) {
|
|
2584
2824
|
if (!options)
|
|
2585
2825
|
options = {};
|
|
2826
|
+
if (q === undefined)
|
|
2827
|
+
q = 0;
|
|
2828
|
+
if (q > $util.recursionLimit)
|
|
2829
|
+
throw Error("max depth exceeded");
|
|
2586
2830
|
var object = {};
|
|
2587
2831
|
if (options.defaults)
|
|
2588
2832
|
if (options.bytes === String)
|
|
@@ -2592,7 +2836,7 @@ $root.common = (function() {
|
|
|
2592
2836
|
if (options.bytes !== Array)
|
|
2593
2837
|
object.value = $util.newBuffer(object.value);
|
|
2594
2838
|
}
|
|
2595
|
-
if (message.value != null &&
|
|
2839
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2596
2840
|
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;
|
|
2597
2841
|
return object;
|
|
2598
2842
|
};
|
|
@@ -2647,7 +2891,7 @@ $root.common = (function() {
|
|
|
2647
2891
|
function ErrorValue(properties) {
|
|
2648
2892
|
if (properties)
|
|
2649
2893
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2650
|
-
if (properties[keys[i]] != null)
|
|
2894
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2651
2895
|
this[keys[i]] = properties[keys[i]];
|
|
2652
2896
|
}
|
|
2653
2897
|
|
|
@@ -2688,9 +2932,13 @@ $root.common = (function() {
|
|
|
2688
2932
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2689
2933
|
* @returns {$protobuf.Writer} Writer
|
|
2690
2934
|
*/
|
|
2691
|
-
ErrorValue.encode = function encode(message, writer) {
|
|
2935
|
+
ErrorValue.encode = function encode(message, writer, q) {
|
|
2692
2936
|
if (!writer)
|
|
2693
2937
|
writer = $Writer.create();
|
|
2938
|
+
if (q === undefined)
|
|
2939
|
+
q = 0;
|
|
2940
|
+
if (q > $util.recursionLimit)
|
|
2941
|
+
throw Error("max depth exceeded");
|
|
2694
2942
|
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2695
2943
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.runtimeExcJson);
|
|
2696
2944
|
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
@@ -2708,7 +2956,7 @@ $root.common = (function() {
|
|
|
2708
2956
|
* @returns {$protobuf.Writer} Writer
|
|
2709
2957
|
*/
|
|
2710
2958
|
ErrorValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2711
|
-
return this.encode(message, writer).ldelim();
|
|
2959
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2712
2960
|
};
|
|
2713
2961
|
|
|
2714
2962
|
/**
|
|
@@ -2722,9 +2970,13 @@ $root.common = (function() {
|
|
|
2722
2970
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2723
2971
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2724
2972
|
*/
|
|
2725
|
-
ErrorValue.decode = function decode(reader, length, error) {
|
|
2973
|
+
ErrorValue.decode = function decode(reader, length, error, long) {
|
|
2726
2974
|
if (!(reader instanceof $Reader))
|
|
2727
2975
|
reader = $Reader.create(reader);
|
|
2976
|
+
if (long === undefined)
|
|
2977
|
+
long = 0;
|
|
2978
|
+
if (long > $Reader.recursionLimit)
|
|
2979
|
+
throw Error("maximum nesting depth exceeded");
|
|
2728
2980
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ErrorValue();
|
|
2729
2981
|
while (reader.pos < end) {
|
|
2730
2982
|
var tag = reader.uint32();
|
|
@@ -2740,7 +2992,7 @@ $root.common = (function() {
|
|
|
2740
2992
|
break;
|
|
2741
2993
|
}
|
|
2742
2994
|
default:
|
|
2743
|
-
reader.skipType(tag & 7);
|
|
2995
|
+
reader.skipType(tag & 7, long);
|
|
2744
2996
|
break;
|
|
2745
2997
|
}
|
|
2746
2998
|
}
|
|
@@ -2771,13 +3023,17 @@ $root.common = (function() {
|
|
|
2771
3023
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2772
3024
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2773
3025
|
*/
|
|
2774
|
-
ErrorValue.verify = function verify(message) {
|
|
3026
|
+
ErrorValue.verify = function verify(message, long) {
|
|
2775
3027
|
if (typeof message !== "object" || message === null)
|
|
2776
3028
|
return "object expected";
|
|
2777
|
-
if (
|
|
3029
|
+
if (long === undefined)
|
|
3030
|
+
long = 0;
|
|
3031
|
+
if (long > $util.recursionLimit)
|
|
3032
|
+
return "maximum nesting depth exceeded";
|
|
3033
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2778
3034
|
if (!$util.isString(message.runtimeExcJson))
|
|
2779
3035
|
return "runtimeExcJson: string expected";
|
|
2780
|
-
if (message.err != null &&
|
|
3036
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
2781
3037
|
if (!$util.isString(message.err))
|
|
2782
3038
|
return "err: string expected";
|
|
2783
3039
|
return null;
|
|
@@ -2791,9 +3047,15 @@ $root.common = (function() {
|
|
|
2791
3047
|
* @param {Object.<string,*>} object Plain object
|
|
2792
3048
|
* @returns {common.ErrorValue} ErrorValue
|
|
2793
3049
|
*/
|
|
2794
|
-
ErrorValue.fromObject = function fromObject(object) {
|
|
3050
|
+
ErrorValue.fromObject = function fromObject(object, long) {
|
|
2795
3051
|
if (object instanceof $root.common.ErrorValue)
|
|
2796
3052
|
return object;
|
|
3053
|
+
if (!$util.isObject(object))
|
|
3054
|
+
throw TypeError(".common.ErrorValue: object expected");
|
|
3055
|
+
if (long === undefined)
|
|
3056
|
+
long = 0;
|
|
3057
|
+
if (long > $util.recursionLimit)
|
|
3058
|
+
throw Error("maximum nesting depth exceeded");
|
|
2797
3059
|
var message = new $root.common.ErrorValue();
|
|
2798
3060
|
if (object.runtimeExcJson != null)
|
|
2799
3061
|
message.runtimeExcJson = String(object.runtimeExcJson);
|
|
@@ -2811,17 +3073,21 @@ $root.common = (function() {
|
|
|
2811
3073
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2812
3074
|
* @returns {Object.<string,*>} Plain object
|
|
2813
3075
|
*/
|
|
2814
|
-
ErrorValue.toObject = function toObject(message, options) {
|
|
3076
|
+
ErrorValue.toObject = function toObject(message, options, q) {
|
|
2815
3077
|
if (!options)
|
|
2816
3078
|
options = {};
|
|
3079
|
+
if (q === undefined)
|
|
3080
|
+
q = 0;
|
|
3081
|
+
if (q > $util.recursionLimit)
|
|
3082
|
+
throw Error("max depth exceeded");
|
|
2817
3083
|
var object = {};
|
|
2818
3084
|
if (options.defaults) {
|
|
2819
3085
|
object.runtimeExcJson = "";
|
|
2820
3086
|
object.err = "";
|
|
2821
3087
|
}
|
|
2822
|
-
if (message.runtimeExcJson != null &&
|
|
3088
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2823
3089
|
object.runtimeExcJson = message.runtimeExcJson;
|
|
2824
|
-
if (message.err != null &&
|
|
3090
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
2825
3091
|
object.err = message.err;
|
|
2826
3092
|
return object;
|
|
2827
3093
|
};
|
|
@@ -2877,7 +3143,7 @@ $root.common = (function() {
|
|
|
2877
3143
|
function AnyValue(properties) {
|
|
2878
3144
|
if (properties)
|
|
2879
3145
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2880
|
-
if (properties[keys[i]] != null)
|
|
3146
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
2881
3147
|
this[keys[i]] = properties[keys[i]];
|
|
2882
3148
|
}
|
|
2883
3149
|
|
|
@@ -2926,15 +3192,19 @@ $root.common = (function() {
|
|
|
2926
3192
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2927
3193
|
* @returns {$protobuf.Writer} Writer
|
|
2928
3194
|
*/
|
|
2929
|
-
AnyValue.encode = function encode(message, writer) {
|
|
3195
|
+
AnyValue.encode = function encode(message, writer, q) {
|
|
2930
3196
|
if (!writer)
|
|
2931
3197
|
writer = $Writer.create();
|
|
3198
|
+
if (q === undefined)
|
|
3199
|
+
q = 0;
|
|
3200
|
+
if (q > $util.recursionLimit)
|
|
3201
|
+
throw Error("max depth exceeded");
|
|
2932
3202
|
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2933
3203
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
2934
3204
|
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
2935
|
-
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
3205
|
+
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
|
|
2936
3206
|
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
2937
|
-
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3207
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
|
|
2938
3208
|
return writer;
|
|
2939
3209
|
};
|
|
2940
3210
|
|
|
@@ -2948,7 +3218,7 @@ $root.common = (function() {
|
|
|
2948
3218
|
* @returns {$protobuf.Writer} Writer
|
|
2949
3219
|
*/
|
|
2950
3220
|
AnyValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2951
|
-
return this.encode(message, writer).ldelim();
|
|
3221
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2952
3222
|
};
|
|
2953
3223
|
|
|
2954
3224
|
/**
|
|
@@ -2962,9 +3232,13 @@ $root.common = (function() {
|
|
|
2962
3232
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2963
3233
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2964
3234
|
*/
|
|
2965
|
-
AnyValue.decode = function decode(reader, length, error) {
|
|
3235
|
+
AnyValue.decode = function decode(reader, length, error, long) {
|
|
2966
3236
|
if (!(reader instanceof $Reader))
|
|
2967
3237
|
reader = $Reader.create(reader);
|
|
3238
|
+
if (long === undefined)
|
|
3239
|
+
long = 0;
|
|
3240
|
+
if (long > $Reader.recursionLimit)
|
|
3241
|
+
throw Error("maximum nesting depth exceeded");
|
|
2968
3242
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.AnyValue();
|
|
2969
3243
|
while (reader.pos < end) {
|
|
2970
3244
|
var tag = reader.uint32();
|
|
@@ -2976,15 +3250,15 @@ $root.common = (function() {
|
|
|
2976
3250
|
break;
|
|
2977
3251
|
}
|
|
2978
3252
|
case 2: {
|
|
2979
|
-
message.json = $root.common.StringValue.decode(reader, reader.uint32());
|
|
3253
|
+
message.json = $root.common.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
2980
3254
|
break;
|
|
2981
3255
|
}
|
|
2982
3256
|
case 3: {
|
|
2983
|
-
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
3257
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
2984
3258
|
break;
|
|
2985
3259
|
}
|
|
2986
3260
|
default:
|
|
2987
|
-
reader.skipType(tag & 7);
|
|
3261
|
+
reader.skipType(tag & 7, long);
|
|
2988
3262
|
break;
|
|
2989
3263
|
}
|
|
2990
3264
|
}
|
|
@@ -3015,19 +3289,23 @@ $root.common = (function() {
|
|
|
3015
3289
|
* @param {Object.<string,*>} message Plain object to verify
|
|
3016
3290
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3017
3291
|
*/
|
|
3018
|
-
AnyValue.verify = function verify(message) {
|
|
3292
|
+
AnyValue.verify = function verify(message, long) {
|
|
3019
3293
|
if (typeof message !== "object" || message === null)
|
|
3020
3294
|
return "object expected";
|
|
3021
|
-
if (
|
|
3295
|
+
if (long === undefined)
|
|
3296
|
+
long = 0;
|
|
3297
|
+
if (long > $util.recursionLimit)
|
|
3298
|
+
return "maximum nesting depth exceeded";
|
|
3299
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
3022
3300
|
if (!$util.isString(message.type))
|
|
3023
3301
|
return "type: string expected";
|
|
3024
|
-
if (message.json != null &&
|
|
3025
|
-
var error = $root.common.StringValue.verify(message.json);
|
|
3302
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json")) {
|
|
3303
|
+
var error = $root.common.StringValue.verify(message.json, long + 1);
|
|
3026
3304
|
if (error)
|
|
3027
3305
|
return "json." + error;
|
|
3028
3306
|
}
|
|
3029
|
-
if (message.bytes != null &&
|
|
3030
|
-
var error = $root.common.BytesValue.verify(message.bytes);
|
|
3307
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes")) {
|
|
3308
|
+
var error = $root.common.BytesValue.verify(message.bytes, long + 1);
|
|
3031
3309
|
if (error)
|
|
3032
3310
|
return "bytes." + error;
|
|
3033
3311
|
}
|
|
@@ -3042,21 +3320,27 @@ $root.common = (function() {
|
|
|
3042
3320
|
* @param {Object.<string,*>} object Plain object
|
|
3043
3321
|
* @returns {common.AnyValue} AnyValue
|
|
3044
3322
|
*/
|
|
3045
|
-
AnyValue.fromObject = function fromObject(object) {
|
|
3323
|
+
AnyValue.fromObject = function fromObject(object, long) {
|
|
3046
3324
|
if (object instanceof $root.common.AnyValue)
|
|
3047
3325
|
return object;
|
|
3326
|
+
if (!$util.isObject(object))
|
|
3327
|
+
throw TypeError(".common.AnyValue: object expected");
|
|
3328
|
+
if (long === undefined)
|
|
3329
|
+
long = 0;
|
|
3330
|
+
if (long > $util.recursionLimit)
|
|
3331
|
+
throw Error("maximum nesting depth exceeded");
|
|
3048
3332
|
var message = new $root.common.AnyValue();
|
|
3049
3333
|
if (object.type != null)
|
|
3050
3334
|
message.type = String(object.type);
|
|
3051
3335
|
if (object.json != null) {
|
|
3052
|
-
if (
|
|
3336
|
+
if (!$util.isObject(object.json))
|
|
3053
3337
|
throw TypeError(".common.AnyValue.json: object expected");
|
|
3054
|
-
message.json = $root.common.StringValue.fromObject(object.json);
|
|
3338
|
+
message.json = $root.common.StringValue.fromObject(object.json, long + 1);
|
|
3055
3339
|
}
|
|
3056
3340
|
if (object.bytes != null) {
|
|
3057
|
-
if (
|
|
3341
|
+
if (!$util.isObject(object.bytes))
|
|
3058
3342
|
throw TypeError(".common.AnyValue.bytes: object expected");
|
|
3059
|
-
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
3343
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes, long + 1);
|
|
3060
3344
|
}
|
|
3061
3345
|
return message;
|
|
3062
3346
|
};
|
|
@@ -3070,21 +3354,25 @@ $root.common = (function() {
|
|
|
3070
3354
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3071
3355
|
* @returns {Object.<string,*>} Plain object
|
|
3072
3356
|
*/
|
|
3073
|
-
AnyValue.toObject = function toObject(message, options) {
|
|
3357
|
+
AnyValue.toObject = function toObject(message, options, q) {
|
|
3074
3358
|
if (!options)
|
|
3075
3359
|
options = {};
|
|
3360
|
+
if (q === undefined)
|
|
3361
|
+
q = 0;
|
|
3362
|
+
if (q > $util.recursionLimit)
|
|
3363
|
+
throw Error("max depth exceeded");
|
|
3076
3364
|
var object = {};
|
|
3077
3365
|
if (options.defaults) {
|
|
3078
3366
|
object.type = "";
|
|
3079
3367
|
object.json = null;
|
|
3080
3368
|
object.bytes = null;
|
|
3081
3369
|
}
|
|
3082
|
-
if (message.type != null &&
|
|
3370
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
3083
3371
|
object.type = message.type;
|
|
3084
|
-
if (message.json != null &&
|
|
3085
|
-
object.json = $root.common.StringValue.toObject(message.json, options);
|
|
3086
|
-
if (message.bytes != null &&
|
|
3087
|
-
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
3372
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
3373
|
+
object.json = $root.common.StringValue.toObject(message.json, options, q + 1);
|
|
3374
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
3375
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options, q + 1);
|
|
3088
3376
|
return object;
|
|
3089
3377
|
};
|
|
3090
3378
|
|