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
|
@@ -40,7 +40,7 @@ $root.common = (function() {
|
|
|
40
40
|
this.path = [];
|
|
41
41
|
if (properties)
|
|
42
42
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43
|
-
if (properties[keys[i]] != null)
|
|
43
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
44
44
|
this[keys[i]] = properties[keys[i]];
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -81,9 +81,13 @@ $root.common = (function() {
|
|
|
81
81
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
82
82
|
* @returns {$protobuf.Writer} Writer
|
|
83
83
|
*/
|
|
84
|
-
ObjectReference.encode = function encode(message, writer) {
|
|
84
|
+
ObjectReference.encode = function encode(message, writer, q) {
|
|
85
85
|
if (!writer)
|
|
86
86
|
writer = $Writer.create();
|
|
87
|
+
if (q === undefined)
|
|
88
|
+
q = 0;
|
|
89
|
+
if (q > $util.recursionLimit)
|
|
90
|
+
throw Error("max depth exceeded");
|
|
87
91
|
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
88
92
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objType);
|
|
89
93
|
if (message.path != null && message.path.length)
|
|
@@ -102,7 +106,7 @@ $root.common = (function() {
|
|
|
102
106
|
* @returns {$protobuf.Writer} Writer
|
|
103
107
|
*/
|
|
104
108
|
ObjectReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
105
|
-
return this.encode(message, writer).ldelim();
|
|
109
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
106
110
|
};
|
|
107
111
|
|
|
108
112
|
/**
|
|
@@ -116,9 +120,13 @@ $root.common = (function() {
|
|
|
116
120
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
117
121
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118
122
|
*/
|
|
119
|
-
ObjectReference.decode = function decode(reader, length, error) {
|
|
123
|
+
ObjectReference.decode = function decode(reader, length, error, long) {
|
|
120
124
|
if (!(reader instanceof $Reader))
|
|
121
125
|
reader = $Reader.create(reader);
|
|
126
|
+
if (long === undefined)
|
|
127
|
+
long = 0;
|
|
128
|
+
if (long > $Reader.recursionLimit)
|
|
129
|
+
throw Error("maximum nesting depth exceeded");
|
|
122
130
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ObjectReference();
|
|
123
131
|
while (reader.pos < end) {
|
|
124
132
|
var tag = reader.uint32();
|
|
@@ -136,7 +144,7 @@ $root.common = (function() {
|
|
|
136
144
|
break;
|
|
137
145
|
}
|
|
138
146
|
default:
|
|
139
|
-
reader.skipType(tag & 7);
|
|
147
|
+
reader.skipType(tag & 7, long);
|
|
140
148
|
break;
|
|
141
149
|
}
|
|
142
150
|
}
|
|
@@ -167,13 +175,17 @@ $root.common = (function() {
|
|
|
167
175
|
* @param {Object.<string,*>} message Plain object to verify
|
|
168
176
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
169
177
|
*/
|
|
170
|
-
ObjectReference.verify = function verify(message) {
|
|
178
|
+
ObjectReference.verify = function verify(message, long) {
|
|
171
179
|
if (typeof message !== "object" || message === null)
|
|
172
180
|
return "object expected";
|
|
173
|
-
if (
|
|
181
|
+
if (long === undefined)
|
|
182
|
+
long = 0;
|
|
183
|
+
if (long > $util.recursionLimit)
|
|
184
|
+
return "maximum nesting depth exceeded";
|
|
185
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
174
186
|
if (!$util.isString(message.objType))
|
|
175
187
|
return "objType: string expected";
|
|
176
|
-
if (message.path != null &&
|
|
188
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path")) {
|
|
177
189
|
if (!Array.isArray(message.path))
|
|
178
190
|
return "path: array expected";
|
|
179
191
|
for (var i = 0; i < message.path.length; ++i)
|
|
@@ -191,9 +203,15 @@ $root.common = (function() {
|
|
|
191
203
|
* @param {Object.<string,*>} object Plain object
|
|
192
204
|
* @returns {common.ObjectReference} ObjectReference
|
|
193
205
|
*/
|
|
194
|
-
ObjectReference.fromObject = function fromObject(object) {
|
|
206
|
+
ObjectReference.fromObject = function fromObject(object, long) {
|
|
195
207
|
if (object instanceof $root.common.ObjectReference)
|
|
196
208
|
return object;
|
|
209
|
+
if (!$util.isObject(object))
|
|
210
|
+
throw TypeError(".common.ObjectReference: object expected");
|
|
211
|
+
if (long === undefined)
|
|
212
|
+
long = 0;
|
|
213
|
+
if (long > $util.recursionLimit)
|
|
214
|
+
throw Error("maximum nesting depth exceeded");
|
|
197
215
|
var message = new $root.common.ObjectReference();
|
|
198
216
|
if (object.objType != null)
|
|
199
217
|
message.objType = String(object.objType);
|
|
@@ -216,15 +234,19 @@ $root.common = (function() {
|
|
|
216
234
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
217
235
|
* @returns {Object.<string,*>} Plain object
|
|
218
236
|
*/
|
|
219
|
-
ObjectReference.toObject = function toObject(message, options) {
|
|
237
|
+
ObjectReference.toObject = function toObject(message, options, q) {
|
|
220
238
|
if (!options)
|
|
221
239
|
options = {};
|
|
240
|
+
if (q === undefined)
|
|
241
|
+
q = 0;
|
|
242
|
+
if (q > $util.recursionLimit)
|
|
243
|
+
throw Error("max depth exceeded");
|
|
222
244
|
var object = {};
|
|
223
245
|
if (options.arrays || options.defaults)
|
|
224
246
|
object.path = [];
|
|
225
247
|
if (options.defaults)
|
|
226
248
|
object.objType = "";
|
|
227
|
-
if (message.objType != null &&
|
|
249
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
228
250
|
object.objType = message.objType;
|
|
229
251
|
if (message.path && message.path.length) {
|
|
230
252
|
object.path = [];
|
|
@@ -283,7 +305,7 @@ $root.common = (function() {
|
|
|
283
305
|
function BooleanValue(properties) {
|
|
284
306
|
if (properties)
|
|
285
307
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
286
|
-
if (properties[keys[i]] != null)
|
|
308
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
287
309
|
this[keys[i]] = properties[keys[i]];
|
|
288
310
|
}
|
|
289
311
|
|
|
@@ -316,9 +338,13 @@ $root.common = (function() {
|
|
|
316
338
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
317
339
|
* @returns {$protobuf.Writer} Writer
|
|
318
340
|
*/
|
|
319
|
-
BooleanValue.encode = function encode(message, writer) {
|
|
341
|
+
BooleanValue.encode = function encode(message, writer, q) {
|
|
320
342
|
if (!writer)
|
|
321
343
|
writer = $Writer.create();
|
|
344
|
+
if (q === undefined)
|
|
345
|
+
q = 0;
|
|
346
|
+
if (q > $util.recursionLimit)
|
|
347
|
+
throw Error("max depth exceeded");
|
|
322
348
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
323
349
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
|
|
324
350
|
return writer;
|
|
@@ -334,7 +360,7 @@ $root.common = (function() {
|
|
|
334
360
|
* @returns {$protobuf.Writer} Writer
|
|
335
361
|
*/
|
|
336
362
|
BooleanValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
337
|
-
return this.encode(message, writer).ldelim();
|
|
363
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
338
364
|
};
|
|
339
365
|
|
|
340
366
|
/**
|
|
@@ -348,9 +374,13 @@ $root.common = (function() {
|
|
|
348
374
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
349
375
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
350
376
|
*/
|
|
351
|
-
BooleanValue.decode = function decode(reader, length, error) {
|
|
377
|
+
BooleanValue.decode = function decode(reader, length, error, long) {
|
|
352
378
|
if (!(reader instanceof $Reader))
|
|
353
379
|
reader = $Reader.create(reader);
|
|
380
|
+
if (long === undefined)
|
|
381
|
+
long = 0;
|
|
382
|
+
if (long > $Reader.recursionLimit)
|
|
383
|
+
throw Error("maximum nesting depth exceeded");
|
|
354
384
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BooleanValue();
|
|
355
385
|
while (reader.pos < end) {
|
|
356
386
|
var tag = reader.uint32();
|
|
@@ -362,7 +392,7 @@ $root.common = (function() {
|
|
|
362
392
|
break;
|
|
363
393
|
}
|
|
364
394
|
default:
|
|
365
|
-
reader.skipType(tag & 7);
|
|
395
|
+
reader.skipType(tag & 7, long);
|
|
366
396
|
break;
|
|
367
397
|
}
|
|
368
398
|
}
|
|
@@ -393,10 +423,14 @@ $root.common = (function() {
|
|
|
393
423
|
* @param {Object.<string,*>} message Plain object to verify
|
|
394
424
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
395
425
|
*/
|
|
396
|
-
BooleanValue.verify = function verify(message) {
|
|
426
|
+
BooleanValue.verify = function verify(message, long) {
|
|
397
427
|
if (typeof message !== "object" || message === null)
|
|
398
428
|
return "object expected";
|
|
399
|
-
if (
|
|
429
|
+
if (long === undefined)
|
|
430
|
+
long = 0;
|
|
431
|
+
if (long > $util.recursionLimit)
|
|
432
|
+
return "maximum nesting depth exceeded";
|
|
433
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
400
434
|
if (typeof message.value !== "boolean")
|
|
401
435
|
return "value: boolean expected";
|
|
402
436
|
return null;
|
|
@@ -410,9 +444,15 @@ $root.common = (function() {
|
|
|
410
444
|
* @param {Object.<string,*>} object Plain object
|
|
411
445
|
* @returns {common.BooleanValue} BooleanValue
|
|
412
446
|
*/
|
|
413
|
-
BooleanValue.fromObject = function fromObject(object) {
|
|
447
|
+
BooleanValue.fromObject = function fromObject(object, long) {
|
|
414
448
|
if (object instanceof $root.common.BooleanValue)
|
|
415
449
|
return object;
|
|
450
|
+
if (!$util.isObject(object))
|
|
451
|
+
throw TypeError(".common.BooleanValue: object expected");
|
|
452
|
+
if (long === undefined)
|
|
453
|
+
long = 0;
|
|
454
|
+
if (long > $util.recursionLimit)
|
|
455
|
+
throw Error("maximum nesting depth exceeded");
|
|
416
456
|
var message = new $root.common.BooleanValue();
|
|
417
457
|
if (object.value != null)
|
|
418
458
|
message.value = Boolean(object.value);
|
|
@@ -428,13 +468,17 @@ $root.common = (function() {
|
|
|
428
468
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
429
469
|
* @returns {Object.<string,*>} Plain object
|
|
430
470
|
*/
|
|
431
|
-
BooleanValue.toObject = function toObject(message, options) {
|
|
471
|
+
BooleanValue.toObject = function toObject(message, options, q) {
|
|
432
472
|
if (!options)
|
|
433
473
|
options = {};
|
|
474
|
+
if (q === undefined)
|
|
475
|
+
q = 0;
|
|
476
|
+
if (q > $util.recursionLimit)
|
|
477
|
+
throw Error("max depth exceeded");
|
|
434
478
|
var object = {};
|
|
435
479
|
if (options.defaults)
|
|
436
480
|
object.value = false;
|
|
437
|
-
if (message.value != null &&
|
|
481
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
438
482
|
object.value = message.value;
|
|
439
483
|
return object;
|
|
440
484
|
};
|
|
@@ -489,7 +533,7 @@ $root.common = (function() {
|
|
|
489
533
|
this.values = [];
|
|
490
534
|
if (properties)
|
|
491
535
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
492
|
-
if (properties[keys[i]] != null)
|
|
536
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
493
537
|
this[keys[i]] = properties[keys[i]];
|
|
494
538
|
}
|
|
495
539
|
|
|
@@ -522,9 +566,13 @@ $root.common = (function() {
|
|
|
522
566
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
523
567
|
* @returns {$protobuf.Writer} Writer
|
|
524
568
|
*/
|
|
525
|
-
StringArrayValue.encode = function encode(message, writer) {
|
|
569
|
+
StringArrayValue.encode = function encode(message, writer, q) {
|
|
526
570
|
if (!writer)
|
|
527
571
|
writer = $Writer.create();
|
|
572
|
+
if (q === undefined)
|
|
573
|
+
q = 0;
|
|
574
|
+
if (q > $util.recursionLimit)
|
|
575
|
+
throw Error("max depth exceeded");
|
|
528
576
|
if (message.values != null && message.values.length)
|
|
529
577
|
for (var i = 0; i < message.values.length; ++i)
|
|
530
578
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
|
|
@@ -541,7 +589,7 @@ $root.common = (function() {
|
|
|
541
589
|
* @returns {$protobuf.Writer} Writer
|
|
542
590
|
*/
|
|
543
591
|
StringArrayValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
544
|
-
return this.encode(message, writer).ldelim();
|
|
592
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
545
593
|
};
|
|
546
594
|
|
|
547
595
|
/**
|
|
@@ -555,9 +603,13 @@ $root.common = (function() {
|
|
|
555
603
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
556
604
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
557
605
|
*/
|
|
558
|
-
StringArrayValue.decode = function decode(reader, length, error) {
|
|
606
|
+
StringArrayValue.decode = function decode(reader, length, error, long) {
|
|
559
607
|
if (!(reader instanceof $Reader))
|
|
560
608
|
reader = $Reader.create(reader);
|
|
609
|
+
if (long === undefined)
|
|
610
|
+
long = 0;
|
|
611
|
+
if (long > $Reader.recursionLimit)
|
|
612
|
+
throw Error("maximum nesting depth exceeded");
|
|
561
613
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringArrayValue();
|
|
562
614
|
while (reader.pos < end) {
|
|
563
615
|
var tag = reader.uint32();
|
|
@@ -571,7 +623,7 @@ $root.common = (function() {
|
|
|
571
623
|
break;
|
|
572
624
|
}
|
|
573
625
|
default:
|
|
574
|
-
reader.skipType(tag & 7);
|
|
626
|
+
reader.skipType(tag & 7, long);
|
|
575
627
|
break;
|
|
576
628
|
}
|
|
577
629
|
}
|
|
@@ -602,10 +654,14 @@ $root.common = (function() {
|
|
|
602
654
|
* @param {Object.<string,*>} message Plain object to verify
|
|
603
655
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
604
656
|
*/
|
|
605
|
-
StringArrayValue.verify = function verify(message) {
|
|
657
|
+
StringArrayValue.verify = function verify(message, long) {
|
|
606
658
|
if (typeof message !== "object" || message === null)
|
|
607
659
|
return "object expected";
|
|
608
|
-
if (
|
|
660
|
+
if (long === undefined)
|
|
661
|
+
long = 0;
|
|
662
|
+
if (long > $util.recursionLimit)
|
|
663
|
+
return "maximum nesting depth exceeded";
|
|
664
|
+
if (message.values != null && Object.hasOwnProperty.call(message, "values")) {
|
|
609
665
|
if (!Array.isArray(message.values))
|
|
610
666
|
return "values: array expected";
|
|
611
667
|
for (var i = 0; i < message.values.length; ++i)
|
|
@@ -623,9 +679,15 @@ $root.common = (function() {
|
|
|
623
679
|
* @param {Object.<string,*>} object Plain object
|
|
624
680
|
* @returns {common.StringArrayValue} StringArrayValue
|
|
625
681
|
*/
|
|
626
|
-
StringArrayValue.fromObject = function fromObject(object) {
|
|
682
|
+
StringArrayValue.fromObject = function fromObject(object, long) {
|
|
627
683
|
if (object instanceof $root.common.StringArrayValue)
|
|
628
684
|
return object;
|
|
685
|
+
if (!$util.isObject(object))
|
|
686
|
+
throw TypeError(".common.StringArrayValue: object expected");
|
|
687
|
+
if (long === undefined)
|
|
688
|
+
long = 0;
|
|
689
|
+
if (long > $util.recursionLimit)
|
|
690
|
+
throw Error("maximum nesting depth exceeded");
|
|
629
691
|
var message = new $root.common.StringArrayValue();
|
|
630
692
|
if (object.values) {
|
|
631
693
|
if (!Array.isArray(object.values))
|
|
@@ -646,9 +708,13 @@ $root.common = (function() {
|
|
|
646
708
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
647
709
|
* @returns {Object.<string,*>} Plain object
|
|
648
710
|
*/
|
|
649
|
-
StringArrayValue.toObject = function toObject(message, options) {
|
|
711
|
+
StringArrayValue.toObject = function toObject(message, options, q) {
|
|
650
712
|
if (!options)
|
|
651
713
|
options = {};
|
|
714
|
+
if (q === undefined)
|
|
715
|
+
q = 0;
|
|
716
|
+
if (q > $util.recursionLimit)
|
|
717
|
+
throw Error("max depth exceeded");
|
|
652
718
|
var object = {};
|
|
653
719
|
if (options.arrays || options.defaults)
|
|
654
720
|
object.values = [];
|
|
@@ -709,7 +775,7 @@ $root.common = (function() {
|
|
|
709
775
|
function UInt64Value(properties) {
|
|
710
776
|
if (properties)
|
|
711
777
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
712
|
-
if (properties[keys[i]] != null)
|
|
778
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
713
779
|
this[keys[i]] = properties[keys[i]];
|
|
714
780
|
}
|
|
715
781
|
|
|
@@ -742,9 +808,13 @@ $root.common = (function() {
|
|
|
742
808
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
743
809
|
* @returns {$protobuf.Writer} Writer
|
|
744
810
|
*/
|
|
745
|
-
UInt64Value.encode = function encode(message, writer) {
|
|
811
|
+
UInt64Value.encode = function encode(message, writer, q) {
|
|
746
812
|
if (!writer)
|
|
747
813
|
writer = $Writer.create();
|
|
814
|
+
if (q === undefined)
|
|
815
|
+
q = 0;
|
|
816
|
+
if (q > $util.recursionLimit)
|
|
817
|
+
throw Error("max depth exceeded");
|
|
748
818
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
749
819
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
|
|
750
820
|
return writer;
|
|
@@ -760,7 +830,7 @@ $root.common = (function() {
|
|
|
760
830
|
* @returns {$protobuf.Writer} Writer
|
|
761
831
|
*/
|
|
762
832
|
UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
763
|
-
return this.encode(message, writer).ldelim();
|
|
833
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
764
834
|
};
|
|
765
835
|
|
|
766
836
|
/**
|
|
@@ -774,9 +844,13 @@ $root.common = (function() {
|
|
|
774
844
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
775
845
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
776
846
|
*/
|
|
777
|
-
UInt64Value.decode = function decode(reader, length, error) {
|
|
847
|
+
UInt64Value.decode = function decode(reader, length, error, long) {
|
|
778
848
|
if (!(reader instanceof $Reader))
|
|
779
849
|
reader = $Reader.create(reader);
|
|
850
|
+
if (long === undefined)
|
|
851
|
+
long = 0;
|
|
852
|
+
if (long > $Reader.recursionLimit)
|
|
853
|
+
throw Error("maximum nesting depth exceeded");
|
|
780
854
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt64Value();
|
|
781
855
|
while (reader.pos < end) {
|
|
782
856
|
var tag = reader.uint32();
|
|
@@ -788,7 +862,7 @@ $root.common = (function() {
|
|
|
788
862
|
break;
|
|
789
863
|
}
|
|
790
864
|
default:
|
|
791
|
-
reader.skipType(tag & 7);
|
|
865
|
+
reader.skipType(tag & 7, long);
|
|
792
866
|
break;
|
|
793
867
|
}
|
|
794
868
|
}
|
|
@@ -819,10 +893,14 @@ $root.common = (function() {
|
|
|
819
893
|
* @param {Object.<string,*>} message Plain object to verify
|
|
820
894
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
821
895
|
*/
|
|
822
|
-
UInt64Value.verify = function verify(message) {
|
|
896
|
+
UInt64Value.verify = function verify(message, long) {
|
|
823
897
|
if (typeof message !== "object" || message === null)
|
|
824
898
|
return "object expected";
|
|
825
|
-
if (
|
|
899
|
+
if (long === undefined)
|
|
900
|
+
long = 0;
|
|
901
|
+
if (long > $util.recursionLimit)
|
|
902
|
+
return "maximum nesting depth exceeded";
|
|
903
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
826
904
|
if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
|
|
827
905
|
return "value: integer|Long expected";
|
|
828
906
|
return null;
|
|
@@ -836,13 +914,19 @@ $root.common = (function() {
|
|
|
836
914
|
* @param {Object.<string,*>} object Plain object
|
|
837
915
|
* @returns {common.UInt64Value} UInt64Value
|
|
838
916
|
*/
|
|
839
|
-
UInt64Value.fromObject = function fromObject(object) {
|
|
917
|
+
UInt64Value.fromObject = function fromObject(object, long) {
|
|
840
918
|
if (object instanceof $root.common.UInt64Value)
|
|
841
919
|
return object;
|
|
920
|
+
if (!$util.isObject(object))
|
|
921
|
+
throw TypeError(".common.UInt64Value: object expected");
|
|
922
|
+
if (long === undefined)
|
|
923
|
+
long = 0;
|
|
924
|
+
if (long > $util.recursionLimit)
|
|
925
|
+
throw Error("maximum nesting depth exceeded");
|
|
842
926
|
var message = new $root.common.UInt64Value();
|
|
843
927
|
if (object.value != null)
|
|
844
928
|
if ($util.Long)
|
|
845
|
-
|
|
929
|
+
message.value = $util.Long.fromValue(object.value, true);
|
|
846
930
|
else if (typeof object.value === "string")
|
|
847
931
|
message.value = parseInt(object.value, 10);
|
|
848
932
|
else if (typeof object.value === "number")
|
|
@@ -861,18 +945,24 @@ $root.common = (function() {
|
|
|
861
945
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
862
946
|
* @returns {Object.<string,*>} Plain object
|
|
863
947
|
*/
|
|
864
|
-
UInt64Value.toObject = function toObject(message, options) {
|
|
948
|
+
UInt64Value.toObject = function toObject(message, options, q) {
|
|
865
949
|
if (!options)
|
|
866
950
|
options = {};
|
|
951
|
+
if (q === undefined)
|
|
952
|
+
q = 0;
|
|
953
|
+
if (q > $util.recursionLimit)
|
|
954
|
+
throw Error("max depth exceeded");
|
|
867
955
|
var object = {};
|
|
868
956
|
if (options.defaults)
|
|
869
957
|
if ($util.Long) {
|
|
870
958
|
var long = new $util.Long(0, 0, true);
|
|
871
|
-
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
959
|
+
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
872
960
|
} else
|
|
873
|
-
object.value = options.longs === String ? "0" : 0;
|
|
874
|
-
if (message.value != null &&
|
|
875
|
-
if (typeof
|
|
961
|
+
object.value = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
962
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
963
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
964
|
+
object.value = typeof message.value === "number" ? BigInt(message.value) : $util.Long.fromBits(message.value.low >>> 0, message.value.high >>> 0, true).toBigInt();
|
|
965
|
+
else if (typeof message.value === "number")
|
|
876
966
|
object.value = options.longs === String ? String(message.value) : message.value;
|
|
877
967
|
else
|
|
878
968
|
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;
|
|
@@ -928,7 +1018,7 @@ $root.common = (function() {
|
|
|
928
1018
|
function UInt32Value(properties) {
|
|
929
1019
|
if (properties)
|
|
930
1020
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
931
|
-
if (properties[keys[i]] != null)
|
|
1021
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
932
1022
|
this[keys[i]] = properties[keys[i]];
|
|
933
1023
|
}
|
|
934
1024
|
|
|
@@ -961,9 +1051,13 @@ $root.common = (function() {
|
|
|
961
1051
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
962
1052
|
* @returns {$protobuf.Writer} Writer
|
|
963
1053
|
*/
|
|
964
|
-
UInt32Value.encode = function encode(message, writer) {
|
|
1054
|
+
UInt32Value.encode = function encode(message, writer, q) {
|
|
965
1055
|
if (!writer)
|
|
966
1056
|
writer = $Writer.create();
|
|
1057
|
+
if (q === undefined)
|
|
1058
|
+
q = 0;
|
|
1059
|
+
if (q > $util.recursionLimit)
|
|
1060
|
+
throw Error("max depth exceeded");
|
|
967
1061
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
968
1062
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
|
|
969
1063
|
return writer;
|
|
@@ -979,7 +1073,7 @@ $root.common = (function() {
|
|
|
979
1073
|
* @returns {$protobuf.Writer} Writer
|
|
980
1074
|
*/
|
|
981
1075
|
UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
982
|
-
return this.encode(message, writer).ldelim();
|
|
1076
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
983
1077
|
};
|
|
984
1078
|
|
|
985
1079
|
/**
|
|
@@ -993,9 +1087,13 @@ $root.common = (function() {
|
|
|
993
1087
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
994
1088
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
995
1089
|
*/
|
|
996
|
-
UInt32Value.decode = function decode(reader, length, error) {
|
|
1090
|
+
UInt32Value.decode = function decode(reader, length, error, long) {
|
|
997
1091
|
if (!(reader instanceof $Reader))
|
|
998
1092
|
reader = $Reader.create(reader);
|
|
1093
|
+
if (long === undefined)
|
|
1094
|
+
long = 0;
|
|
1095
|
+
if (long > $Reader.recursionLimit)
|
|
1096
|
+
throw Error("maximum nesting depth exceeded");
|
|
999
1097
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt32Value();
|
|
1000
1098
|
while (reader.pos < end) {
|
|
1001
1099
|
var tag = reader.uint32();
|
|
@@ -1007,7 +1105,7 @@ $root.common = (function() {
|
|
|
1007
1105
|
break;
|
|
1008
1106
|
}
|
|
1009
1107
|
default:
|
|
1010
|
-
reader.skipType(tag & 7);
|
|
1108
|
+
reader.skipType(tag & 7, long);
|
|
1011
1109
|
break;
|
|
1012
1110
|
}
|
|
1013
1111
|
}
|
|
@@ -1038,10 +1136,14 @@ $root.common = (function() {
|
|
|
1038
1136
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1039
1137
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1040
1138
|
*/
|
|
1041
|
-
UInt32Value.verify = function verify(message) {
|
|
1139
|
+
UInt32Value.verify = function verify(message, long) {
|
|
1042
1140
|
if (typeof message !== "object" || message === null)
|
|
1043
1141
|
return "object expected";
|
|
1044
|
-
if (
|
|
1142
|
+
if (long === undefined)
|
|
1143
|
+
long = 0;
|
|
1144
|
+
if (long > $util.recursionLimit)
|
|
1145
|
+
return "maximum nesting depth exceeded";
|
|
1146
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1045
1147
|
if (!$util.isInteger(message.value))
|
|
1046
1148
|
return "value: integer expected";
|
|
1047
1149
|
return null;
|
|
@@ -1055,9 +1157,15 @@ $root.common = (function() {
|
|
|
1055
1157
|
* @param {Object.<string,*>} object Plain object
|
|
1056
1158
|
* @returns {common.UInt32Value} UInt32Value
|
|
1057
1159
|
*/
|
|
1058
|
-
UInt32Value.fromObject = function fromObject(object) {
|
|
1160
|
+
UInt32Value.fromObject = function fromObject(object, long) {
|
|
1059
1161
|
if (object instanceof $root.common.UInt32Value)
|
|
1060
1162
|
return object;
|
|
1163
|
+
if (!$util.isObject(object))
|
|
1164
|
+
throw TypeError(".common.UInt32Value: object expected");
|
|
1165
|
+
if (long === undefined)
|
|
1166
|
+
long = 0;
|
|
1167
|
+
if (long > $util.recursionLimit)
|
|
1168
|
+
throw Error("maximum nesting depth exceeded");
|
|
1061
1169
|
var message = new $root.common.UInt32Value();
|
|
1062
1170
|
if (object.value != null)
|
|
1063
1171
|
message.value = object.value >>> 0;
|
|
@@ -1073,13 +1181,17 @@ $root.common = (function() {
|
|
|
1073
1181
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1074
1182
|
* @returns {Object.<string,*>} Plain object
|
|
1075
1183
|
*/
|
|
1076
|
-
UInt32Value.toObject = function toObject(message, options) {
|
|
1184
|
+
UInt32Value.toObject = function toObject(message, options, q) {
|
|
1077
1185
|
if (!options)
|
|
1078
1186
|
options = {};
|
|
1187
|
+
if (q === undefined)
|
|
1188
|
+
q = 0;
|
|
1189
|
+
if (q > $util.recursionLimit)
|
|
1190
|
+
throw Error("max depth exceeded");
|
|
1079
1191
|
var object = {};
|
|
1080
1192
|
if (options.defaults)
|
|
1081
1193
|
object.value = 0;
|
|
1082
|
-
if (message.value != null &&
|
|
1194
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1083
1195
|
object.value = message.value;
|
|
1084
1196
|
return object;
|
|
1085
1197
|
};
|
|
@@ -1133,7 +1245,7 @@ $root.common = (function() {
|
|
|
1133
1245
|
function StringValue(properties) {
|
|
1134
1246
|
if (properties)
|
|
1135
1247
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1136
|
-
if (properties[keys[i]] != null)
|
|
1248
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1137
1249
|
this[keys[i]] = properties[keys[i]];
|
|
1138
1250
|
}
|
|
1139
1251
|
|
|
@@ -1166,9 +1278,13 @@ $root.common = (function() {
|
|
|
1166
1278
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1167
1279
|
* @returns {$protobuf.Writer} Writer
|
|
1168
1280
|
*/
|
|
1169
|
-
StringValue.encode = function encode(message, writer) {
|
|
1281
|
+
StringValue.encode = function encode(message, writer, q) {
|
|
1170
1282
|
if (!writer)
|
|
1171
1283
|
writer = $Writer.create();
|
|
1284
|
+
if (q === undefined)
|
|
1285
|
+
q = 0;
|
|
1286
|
+
if (q > $util.recursionLimit)
|
|
1287
|
+
throw Error("max depth exceeded");
|
|
1172
1288
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1173
1289
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
1174
1290
|
return writer;
|
|
@@ -1184,7 +1300,7 @@ $root.common = (function() {
|
|
|
1184
1300
|
* @returns {$protobuf.Writer} Writer
|
|
1185
1301
|
*/
|
|
1186
1302
|
StringValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1187
|
-
return this.encode(message, writer).ldelim();
|
|
1303
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1188
1304
|
};
|
|
1189
1305
|
|
|
1190
1306
|
/**
|
|
@@ -1198,9 +1314,13 @@ $root.common = (function() {
|
|
|
1198
1314
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1199
1315
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1200
1316
|
*/
|
|
1201
|
-
StringValue.decode = function decode(reader, length, error) {
|
|
1317
|
+
StringValue.decode = function decode(reader, length, error, long) {
|
|
1202
1318
|
if (!(reader instanceof $Reader))
|
|
1203
1319
|
reader = $Reader.create(reader);
|
|
1320
|
+
if (long === undefined)
|
|
1321
|
+
long = 0;
|
|
1322
|
+
if (long > $Reader.recursionLimit)
|
|
1323
|
+
throw Error("maximum nesting depth exceeded");
|
|
1204
1324
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringValue();
|
|
1205
1325
|
while (reader.pos < end) {
|
|
1206
1326
|
var tag = reader.uint32();
|
|
@@ -1212,7 +1332,7 @@ $root.common = (function() {
|
|
|
1212
1332
|
break;
|
|
1213
1333
|
}
|
|
1214
1334
|
default:
|
|
1215
|
-
reader.skipType(tag & 7);
|
|
1335
|
+
reader.skipType(tag & 7, long);
|
|
1216
1336
|
break;
|
|
1217
1337
|
}
|
|
1218
1338
|
}
|
|
@@ -1243,10 +1363,14 @@ $root.common = (function() {
|
|
|
1243
1363
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1244
1364
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1245
1365
|
*/
|
|
1246
|
-
StringValue.verify = function verify(message) {
|
|
1366
|
+
StringValue.verify = function verify(message, long) {
|
|
1247
1367
|
if (typeof message !== "object" || message === null)
|
|
1248
1368
|
return "object expected";
|
|
1249
|
-
if (
|
|
1369
|
+
if (long === undefined)
|
|
1370
|
+
long = 0;
|
|
1371
|
+
if (long > $util.recursionLimit)
|
|
1372
|
+
return "maximum nesting depth exceeded";
|
|
1373
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1250
1374
|
if (!$util.isString(message.value))
|
|
1251
1375
|
return "value: string expected";
|
|
1252
1376
|
return null;
|
|
@@ -1260,9 +1384,15 @@ $root.common = (function() {
|
|
|
1260
1384
|
* @param {Object.<string,*>} object Plain object
|
|
1261
1385
|
* @returns {common.StringValue} StringValue
|
|
1262
1386
|
*/
|
|
1263
|
-
StringValue.fromObject = function fromObject(object) {
|
|
1387
|
+
StringValue.fromObject = function fromObject(object, long) {
|
|
1264
1388
|
if (object instanceof $root.common.StringValue)
|
|
1265
1389
|
return object;
|
|
1390
|
+
if (!$util.isObject(object))
|
|
1391
|
+
throw TypeError(".common.StringValue: object expected");
|
|
1392
|
+
if (long === undefined)
|
|
1393
|
+
long = 0;
|
|
1394
|
+
if (long > $util.recursionLimit)
|
|
1395
|
+
throw Error("maximum nesting depth exceeded");
|
|
1266
1396
|
var message = new $root.common.StringValue();
|
|
1267
1397
|
if (object.value != null)
|
|
1268
1398
|
message.value = String(object.value);
|
|
@@ -1278,13 +1408,17 @@ $root.common = (function() {
|
|
|
1278
1408
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1279
1409
|
* @returns {Object.<string,*>} Plain object
|
|
1280
1410
|
*/
|
|
1281
|
-
StringValue.toObject = function toObject(message, options) {
|
|
1411
|
+
StringValue.toObject = function toObject(message, options, q) {
|
|
1282
1412
|
if (!options)
|
|
1283
1413
|
options = {};
|
|
1414
|
+
if (q === undefined)
|
|
1415
|
+
q = 0;
|
|
1416
|
+
if (q > $util.recursionLimit)
|
|
1417
|
+
throw Error("max depth exceeded");
|
|
1284
1418
|
var object = {};
|
|
1285
1419
|
if (options.defaults)
|
|
1286
1420
|
object.value = "";
|
|
1287
|
-
if (message.value != null &&
|
|
1421
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1288
1422
|
object.value = message.value;
|
|
1289
1423
|
return object;
|
|
1290
1424
|
};
|
|
@@ -1338,7 +1472,7 @@ $root.common = (function() {
|
|
|
1338
1472
|
function BytesValue(properties) {
|
|
1339
1473
|
if (properties)
|
|
1340
1474
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1341
|
-
if (properties[keys[i]] != null)
|
|
1475
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1342
1476
|
this[keys[i]] = properties[keys[i]];
|
|
1343
1477
|
}
|
|
1344
1478
|
|
|
@@ -1371,9 +1505,13 @@ $root.common = (function() {
|
|
|
1371
1505
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1372
1506
|
* @returns {$protobuf.Writer} Writer
|
|
1373
1507
|
*/
|
|
1374
|
-
BytesValue.encode = function encode(message, writer) {
|
|
1508
|
+
BytesValue.encode = function encode(message, writer, q) {
|
|
1375
1509
|
if (!writer)
|
|
1376
1510
|
writer = $Writer.create();
|
|
1511
|
+
if (q === undefined)
|
|
1512
|
+
q = 0;
|
|
1513
|
+
if (q > $util.recursionLimit)
|
|
1514
|
+
throw Error("max depth exceeded");
|
|
1377
1515
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1378
1516
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
|
1379
1517
|
return writer;
|
|
@@ -1389,7 +1527,7 @@ $root.common = (function() {
|
|
|
1389
1527
|
* @returns {$protobuf.Writer} Writer
|
|
1390
1528
|
*/
|
|
1391
1529
|
BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1392
|
-
return this.encode(message, writer).ldelim();
|
|
1530
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1393
1531
|
};
|
|
1394
1532
|
|
|
1395
1533
|
/**
|
|
@@ -1403,9 +1541,13 @@ $root.common = (function() {
|
|
|
1403
1541
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1404
1542
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1405
1543
|
*/
|
|
1406
|
-
BytesValue.decode = function decode(reader, length, error) {
|
|
1544
|
+
BytesValue.decode = function decode(reader, length, error, long) {
|
|
1407
1545
|
if (!(reader instanceof $Reader))
|
|
1408
1546
|
reader = $Reader.create(reader);
|
|
1547
|
+
if (long === undefined)
|
|
1548
|
+
long = 0;
|
|
1549
|
+
if (long > $Reader.recursionLimit)
|
|
1550
|
+
throw Error("maximum nesting depth exceeded");
|
|
1409
1551
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BytesValue();
|
|
1410
1552
|
while (reader.pos < end) {
|
|
1411
1553
|
var tag = reader.uint32();
|
|
@@ -1417,7 +1559,7 @@ $root.common = (function() {
|
|
|
1417
1559
|
break;
|
|
1418
1560
|
}
|
|
1419
1561
|
default:
|
|
1420
|
-
reader.skipType(tag & 7);
|
|
1562
|
+
reader.skipType(tag & 7, long);
|
|
1421
1563
|
break;
|
|
1422
1564
|
}
|
|
1423
1565
|
}
|
|
@@ -1448,10 +1590,14 @@ $root.common = (function() {
|
|
|
1448
1590
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1449
1591
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1450
1592
|
*/
|
|
1451
|
-
BytesValue.verify = function verify(message) {
|
|
1593
|
+
BytesValue.verify = function verify(message, long) {
|
|
1452
1594
|
if (typeof message !== "object" || message === null)
|
|
1453
1595
|
return "object expected";
|
|
1454
|
-
if (
|
|
1596
|
+
if (long === undefined)
|
|
1597
|
+
long = 0;
|
|
1598
|
+
if (long > $util.recursionLimit)
|
|
1599
|
+
return "maximum nesting depth exceeded";
|
|
1600
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1455
1601
|
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
1456
1602
|
return "value: buffer expected";
|
|
1457
1603
|
return null;
|
|
@@ -1465,9 +1611,15 @@ $root.common = (function() {
|
|
|
1465
1611
|
* @param {Object.<string,*>} object Plain object
|
|
1466
1612
|
* @returns {common.BytesValue} BytesValue
|
|
1467
1613
|
*/
|
|
1468
|
-
BytesValue.fromObject = function fromObject(object) {
|
|
1614
|
+
BytesValue.fromObject = function fromObject(object, long) {
|
|
1469
1615
|
if (object instanceof $root.common.BytesValue)
|
|
1470
1616
|
return object;
|
|
1617
|
+
if (!$util.isObject(object))
|
|
1618
|
+
throw TypeError(".common.BytesValue: object expected");
|
|
1619
|
+
if (long === undefined)
|
|
1620
|
+
long = 0;
|
|
1621
|
+
if (long > $util.recursionLimit)
|
|
1622
|
+
throw Error("maximum nesting depth exceeded");
|
|
1471
1623
|
var message = new $root.common.BytesValue();
|
|
1472
1624
|
if (object.value != null)
|
|
1473
1625
|
if (typeof object.value === "string")
|
|
@@ -1486,9 +1638,13 @@ $root.common = (function() {
|
|
|
1486
1638
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1487
1639
|
* @returns {Object.<string,*>} Plain object
|
|
1488
1640
|
*/
|
|
1489
|
-
BytesValue.toObject = function toObject(message, options) {
|
|
1641
|
+
BytesValue.toObject = function toObject(message, options, q) {
|
|
1490
1642
|
if (!options)
|
|
1491
1643
|
options = {};
|
|
1644
|
+
if (q === undefined)
|
|
1645
|
+
q = 0;
|
|
1646
|
+
if (q > $util.recursionLimit)
|
|
1647
|
+
throw Error("max depth exceeded");
|
|
1492
1648
|
var object = {};
|
|
1493
1649
|
if (options.defaults)
|
|
1494
1650
|
if (options.bytes === String)
|
|
@@ -1498,7 +1654,7 @@ $root.common = (function() {
|
|
|
1498
1654
|
if (options.bytes !== Array)
|
|
1499
1655
|
object.value = $util.newBuffer(object.value);
|
|
1500
1656
|
}
|
|
1501
|
-
if (message.value != null &&
|
|
1657
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1502
1658
|
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;
|
|
1503
1659
|
return object;
|
|
1504
1660
|
};
|
|
@@ -1553,7 +1709,7 @@ $root.common = (function() {
|
|
|
1553
1709
|
function ErrorValue(properties) {
|
|
1554
1710
|
if (properties)
|
|
1555
1711
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1556
|
-
if (properties[keys[i]] != null)
|
|
1712
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1557
1713
|
this[keys[i]] = properties[keys[i]];
|
|
1558
1714
|
}
|
|
1559
1715
|
|
|
@@ -1594,9 +1750,13 @@ $root.common = (function() {
|
|
|
1594
1750
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1595
1751
|
* @returns {$protobuf.Writer} Writer
|
|
1596
1752
|
*/
|
|
1597
|
-
ErrorValue.encode = function encode(message, writer) {
|
|
1753
|
+
ErrorValue.encode = function encode(message, writer, q) {
|
|
1598
1754
|
if (!writer)
|
|
1599
1755
|
writer = $Writer.create();
|
|
1756
|
+
if (q === undefined)
|
|
1757
|
+
q = 0;
|
|
1758
|
+
if (q > $util.recursionLimit)
|
|
1759
|
+
throw Error("max depth exceeded");
|
|
1600
1760
|
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
1601
1761
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.runtimeExcJson);
|
|
1602
1762
|
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
@@ -1614,7 +1774,7 @@ $root.common = (function() {
|
|
|
1614
1774
|
* @returns {$protobuf.Writer} Writer
|
|
1615
1775
|
*/
|
|
1616
1776
|
ErrorValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1617
|
-
return this.encode(message, writer).ldelim();
|
|
1777
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1618
1778
|
};
|
|
1619
1779
|
|
|
1620
1780
|
/**
|
|
@@ -1628,9 +1788,13 @@ $root.common = (function() {
|
|
|
1628
1788
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1629
1789
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1630
1790
|
*/
|
|
1631
|
-
ErrorValue.decode = function decode(reader, length, error) {
|
|
1791
|
+
ErrorValue.decode = function decode(reader, length, error, long) {
|
|
1632
1792
|
if (!(reader instanceof $Reader))
|
|
1633
1793
|
reader = $Reader.create(reader);
|
|
1794
|
+
if (long === undefined)
|
|
1795
|
+
long = 0;
|
|
1796
|
+
if (long > $Reader.recursionLimit)
|
|
1797
|
+
throw Error("maximum nesting depth exceeded");
|
|
1634
1798
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ErrorValue();
|
|
1635
1799
|
while (reader.pos < end) {
|
|
1636
1800
|
var tag = reader.uint32();
|
|
@@ -1646,7 +1810,7 @@ $root.common = (function() {
|
|
|
1646
1810
|
break;
|
|
1647
1811
|
}
|
|
1648
1812
|
default:
|
|
1649
|
-
reader.skipType(tag & 7);
|
|
1813
|
+
reader.skipType(tag & 7, long);
|
|
1650
1814
|
break;
|
|
1651
1815
|
}
|
|
1652
1816
|
}
|
|
@@ -1677,13 +1841,17 @@ $root.common = (function() {
|
|
|
1677
1841
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1678
1842
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1679
1843
|
*/
|
|
1680
|
-
ErrorValue.verify = function verify(message) {
|
|
1844
|
+
ErrorValue.verify = function verify(message, long) {
|
|
1681
1845
|
if (typeof message !== "object" || message === null)
|
|
1682
1846
|
return "object expected";
|
|
1683
|
-
if (
|
|
1847
|
+
if (long === undefined)
|
|
1848
|
+
long = 0;
|
|
1849
|
+
if (long > $util.recursionLimit)
|
|
1850
|
+
return "maximum nesting depth exceeded";
|
|
1851
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
1684
1852
|
if (!$util.isString(message.runtimeExcJson))
|
|
1685
1853
|
return "runtimeExcJson: string expected";
|
|
1686
|
-
if (message.err != null &&
|
|
1854
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
1687
1855
|
if (!$util.isString(message.err))
|
|
1688
1856
|
return "err: string expected";
|
|
1689
1857
|
return null;
|
|
@@ -1697,9 +1865,15 @@ $root.common = (function() {
|
|
|
1697
1865
|
* @param {Object.<string,*>} object Plain object
|
|
1698
1866
|
* @returns {common.ErrorValue} ErrorValue
|
|
1699
1867
|
*/
|
|
1700
|
-
ErrorValue.fromObject = function fromObject(object) {
|
|
1868
|
+
ErrorValue.fromObject = function fromObject(object, long) {
|
|
1701
1869
|
if (object instanceof $root.common.ErrorValue)
|
|
1702
1870
|
return object;
|
|
1871
|
+
if (!$util.isObject(object))
|
|
1872
|
+
throw TypeError(".common.ErrorValue: object expected");
|
|
1873
|
+
if (long === undefined)
|
|
1874
|
+
long = 0;
|
|
1875
|
+
if (long > $util.recursionLimit)
|
|
1876
|
+
throw Error("maximum nesting depth exceeded");
|
|
1703
1877
|
var message = new $root.common.ErrorValue();
|
|
1704
1878
|
if (object.runtimeExcJson != null)
|
|
1705
1879
|
message.runtimeExcJson = String(object.runtimeExcJson);
|
|
@@ -1717,17 +1891,21 @@ $root.common = (function() {
|
|
|
1717
1891
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1718
1892
|
* @returns {Object.<string,*>} Plain object
|
|
1719
1893
|
*/
|
|
1720
|
-
ErrorValue.toObject = function toObject(message, options) {
|
|
1894
|
+
ErrorValue.toObject = function toObject(message, options, q) {
|
|
1721
1895
|
if (!options)
|
|
1722
1896
|
options = {};
|
|
1897
|
+
if (q === undefined)
|
|
1898
|
+
q = 0;
|
|
1899
|
+
if (q > $util.recursionLimit)
|
|
1900
|
+
throw Error("max depth exceeded");
|
|
1723
1901
|
var object = {};
|
|
1724
1902
|
if (options.defaults) {
|
|
1725
1903
|
object.runtimeExcJson = "";
|
|
1726
1904
|
object.err = "";
|
|
1727
1905
|
}
|
|
1728
|
-
if (message.runtimeExcJson != null &&
|
|
1906
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
1729
1907
|
object.runtimeExcJson = message.runtimeExcJson;
|
|
1730
|
-
if (message.err != null &&
|
|
1908
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
1731
1909
|
object.err = message.err;
|
|
1732
1910
|
return object;
|
|
1733
1911
|
};
|
|
@@ -1783,7 +1961,7 @@ $root.common = (function() {
|
|
|
1783
1961
|
function AnyValue(properties) {
|
|
1784
1962
|
if (properties)
|
|
1785
1963
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1786
|
-
if (properties[keys[i]] != null)
|
|
1964
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1787
1965
|
this[keys[i]] = properties[keys[i]];
|
|
1788
1966
|
}
|
|
1789
1967
|
|
|
@@ -1832,15 +2010,19 @@ $root.common = (function() {
|
|
|
1832
2010
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1833
2011
|
* @returns {$protobuf.Writer} Writer
|
|
1834
2012
|
*/
|
|
1835
|
-
AnyValue.encode = function encode(message, writer) {
|
|
2013
|
+
AnyValue.encode = function encode(message, writer, q) {
|
|
1836
2014
|
if (!writer)
|
|
1837
2015
|
writer = $Writer.create();
|
|
2016
|
+
if (q === undefined)
|
|
2017
|
+
q = 0;
|
|
2018
|
+
if (q > $util.recursionLimit)
|
|
2019
|
+
throw Error("max depth exceeded");
|
|
1838
2020
|
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
1839
2021
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
1840
2022
|
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
1841
|
-
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2023
|
+
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
|
|
1842
2024
|
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
1843
|
-
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
2025
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
|
|
1844
2026
|
return writer;
|
|
1845
2027
|
};
|
|
1846
2028
|
|
|
@@ -1854,7 +2036,7 @@ $root.common = (function() {
|
|
|
1854
2036
|
* @returns {$protobuf.Writer} Writer
|
|
1855
2037
|
*/
|
|
1856
2038
|
AnyValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1857
|
-
return this.encode(message, writer).ldelim();
|
|
2039
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1858
2040
|
};
|
|
1859
2041
|
|
|
1860
2042
|
/**
|
|
@@ -1868,9 +2050,13 @@ $root.common = (function() {
|
|
|
1868
2050
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1869
2051
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1870
2052
|
*/
|
|
1871
|
-
AnyValue.decode = function decode(reader, length, error) {
|
|
2053
|
+
AnyValue.decode = function decode(reader, length, error, long) {
|
|
1872
2054
|
if (!(reader instanceof $Reader))
|
|
1873
2055
|
reader = $Reader.create(reader);
|
|
2056
|
+
if (long === undefined)
|
|
2057
|
+
long = 0;
|
|
2058
|
+
if (long > $Reader.recursionLimit)
|
|
2059
|
+
throw Error("maximum nesting depth exceeded");
|
|
1874
2060
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.AnyValue();
|
|
1875
2061
|
while (reader.pos < end) {
|
|
1876
2062
|
var tag = reader.uint32();
|
|
@@ -1882,15 +2068,15 @@ $root.common = (function() {
|
|
|
1882
2068
|
break;
|
|
1883
2069
|
}
|
|
1884
2070
|
case 2: {
|
|
1885
|
-
message.json = $root.common.StringValue.decode(reader, reader.uint32());
|
|
2071
|
+
message.json = $root.common.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
1886
2072
|
break;
|
|
1887
2073
|
}
|
|
1888
2074
|
case 3: {
|
|
1889
|
-
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
2075
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32(), undefined, long + 1);
|
|
1890
2076
|
break;
|
|
1891
2077
|
}
|
|
1892
2078
|
default:
|
|
1893
|
-
reader.skipType(tag & 7);
|
|
2079
|
+
reader.skipType(tag & 7, long);
|
|
1894
2080
|
break;
|
|
1895
2081
|
}
|
|
1896
2082
|
}
|
|
@@ -1921,19 +2107,23 @@ $root.common = (function() {
|
|
|
1921
2107
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1922
2108
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1923
2109
|
*/
|
|
1924
|
-
AnyValue.verify = function verify(message) {
|
|
2110
|
+
AnyValue.verify = function verify(message, long) {
|
|
1925
2111
|
if (typeof message !== "object" || message === null)
|
|
1926
2112
|
return "object expected";
|
|
1927
|
-
if (
|
|
2113
|
+
if (long === undefined)
|
|
2114
|
+
long = 0;
|
|
2115
|
+
if (long > $util.recursionLimit)
|
|
2116
|
+
return "maximum nesting depth exceeded";
|
|
2117
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
1928
2118
|
if (!$util.isString(message.type))
|
|
1929
2119
|
return "type: string expected";
|
|
1930
|
-
if (message.json != null &&
|
|
1931
|
-
var error = $root.common.StringValue.verify(message.json);
|
|
2120
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json")) {
|
|
2121
|
+
var error = $root.common.StringValue.verify(message.json, long + 1);
|
|
1932
2122
|
if (error)
|
|
1933
2123
|
return "json." + error;
|
|
1934
2124
|
}
|
|
1935
|
-
if (message.bytes != null &&
|
|
1936
|
-
var error = $root.common.BytesValue.verify(message.bytes);
|
|
2125
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes")) {
|
|
2126
|
+
var error = $root.common.BytesValue.verify(message.bytes, long + 1);
|
|
1937
2127
|
if (error)
|
|
1938
2128
|
return "bytes." + error;
|
|
1939
2129
|
}
|
|
@@ -1948,21 +2138,27 @@ $root.common = (function() {
|
|
|
1948
2138
|
* @param {Object.<string,*>} object Plain object
|
|
1949
2139
|
* @returns {common.AnyValue} AnyValue
|
|
1950
2140
|
*/
|
|
1951
|
-
AnyValue.fromObject = function fromObject(object) {
|
|
2141
|
+
AnyValue.fromObject = function fromObject(object, long) {
|
|
1952
2142
|
if (object instanceof $root.common.AnyValue)
|
|
1953
2143
|
return object;
|
|
2144
|
+
if (!$util.isObject(object))
|
|
2145
|
+
throw TypeError(".common.AnyValue: object expected");
|
|
2146
|
+
if (long === undefined)
|
|
2147
|
+
long = 0;
|
|
2148
|
+
if (long > $util.recursionLimit)
|
|
2149
|
+
throw Error("maximum nesting depth exceeded");
|
|
1954
2150
|
var message = new $root.common.AnyValue();
|
|
1955
2151
|
if (object.type != null)
|
|
1956
2152
|
message.type = String(object.type);
|
|
1957
2153
|
if (object.json != null) {
|
|
1958
|
-
if (
|
|
2154
|
+
if (!$util.isObject(object.json))
|
|
1959
2155
|
throw TypeError(".common.AnyValue.json: object expected");
|
|
1960
|
-
message.json = $root.common.StringValue.fromObject(object.json);
|
|
2156
|
+
message.json = $root.common.StringValue.fromObject(object.json, long + 1);
|
|
1961
2157
|
}
|
|
1962
2158
|
if (object.bytes != null) {
|
|
1963
|
-
if (
|
|
2159
|
+
if (!$util.isObject(object.bytes))
|
|
1964
2160
|
throw TypeError(".common.AnyValue.bytes: object expected");
|
|
1965
|
-
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
2161
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes, long + 1);
|
|
1966
2162
|
}
|
|
1967
2163
|
return message;
|
|
1968
2164
|
};
|
|
@@ -1976,21 +2172,25 @@ $root.common = (function() {
|
|
|
1976
2172
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1977
2173
|
* @returns {Object.<string,*>} Plain object
|
|
1978
2174
|
*/
|
|
1979
|
-
AnyValue.toObject = function toObject(message, options) {
|
|
2175
|
+
AnyValue.toObject = function toObject(message, options, q) {
|
|
1980
2176
|
if (!options)
|
|
1981
2177
|
options = {};
|
|
2178
|
+
if (q === undefined)
|
|
2179
|
+
q = 0;
|
|
2180
|
+
if (q > $util.recursionLimit)
|
|
2181
|
+
throw Error("max depth exceeded");
|
|
1982
2182
|
var object = {};
|
|
1983
2183
|
if (options.defaults) {
|
|
1984
2184
|
object.type = "";
|
|
1985
2185
|
object.json = null;
|
|
1986
2186
|
object.bytes = null;
|
|
1987
2187
|
}
|
|
1988
|
-
if (message.type != null &&
|
|
2188
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
1989
2189
|
object.type = message.type;
|
|
1990
|
-
if (message.json != null &&
|
|
1991
|
-
object.json = $root.common.StringValue.toObject(message.json, options);
|
|
1992
|
-
if (message.bytes != null &&
|
|
1993
|
-
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
2190
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
2191
|
+
object.json = $root.common.StringValue.toObject(message.json, options, q + 1);
|
|
2192
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
2193
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options, q + 1);
|
|
1994
2194
|
return object;
|
|
1995
2195
|
};
|
|
1996
2196
|
|