exposure-keys 1.18.2 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/proto/export.js +342 -277
package/proto/export.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars, default-case, jsdoc/require-param*/
|
|
1
|
+
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-mixed-operators, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars, default-case, jsdoc/require-param*/
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var $protobuf = require("protobufjs/minimal");
|
|
5
5
|
|
|
6
6
|
// Common aliases
|
|
7
7
|
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
|
|
8
|
+
var $Object = $util.global.Object, $undefined = $util.global.undefined, $Error = $util.global.Error, $Array = $util.global.Array, $TypeError = $util.global.TypeError, $parseInt = $util.global.parseInt, $String = $util.global.String, $Number = $util.global.Number, $BigInt = $util.global.BigInt;
|
|
8
9
|
|
|
9
10
|
// Exported root namespace
|
|
10
11
|
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
@@ -46,15 +47,15 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
46
47
|
* @param {TemporaryExposureKeyExport.$Properties=} [properties] Properties to set
|
|
47
48
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
48
49
|
*/
|
|
49
|
-
function
|
|
50
|
+
var TemporaryExposureKeyExport = function (properties) {
|
|
50
51
|
this.signatureInfos = [];
|
|
51
52
|
this.keys = [];
|
|
52
53
|
this.revisedKeys = [];
|
|
53
54
|
if (properties)
|
|
54
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55
56
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
56
57
|
this[keys[i]] = properties[keys[i]];
|
|
57
|
-
}
|
|
58
|
+
};
|
|
58
59
|
|
|
59
60
|
/**
|
|
60
61
|
* TemporaryExposureKeyExport startTimestamp.
|
|
@@ -62,7 +63,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
62
63
|
* @memberof TemporaryExposureKeyExport
|
|
63
64
|
* @instance
|
|
64
65
|
*/
|
|
65
|
-
TemporaryExposureKeyExport.prototype.startTimestamp = $util.Long ? $util.Long.fromBits(0,0,
|
|
66
|
+
TemporaryExposureKeyExport.prototype.startTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
69
|
* TemporaryExposureKeyExport endTimestamp.
|
|
@@ -70,7 +71,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
70
71
|
* @memberof TemporaryExposureKeyExport
|
|
71
72
|
* @instance
|
|
72
73
|
*/
|
|
73
|
-
TemporaryExposureKeyExport.prototype.endTimestamp = $util.Long ? $util.Long.fromBits(0,0,
|
|
74
|
+
TemporaryExposureKeyExport.prototype.endTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
77
|
* TemporaryExposureKeyExport region.
|
|
@@ -132,7 +133,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
132
133
|
* (properties?: TemporaryExposureKeyExport.$Properties): TemporaryExposureKeyExport;
|
|
133
134
|
* }}
|
|
134
135
|
*/
|
|
135
|
-
TemporaryExposureKeyExport.create = function
|
|
136
|
+
TemporaryExposureKeyExport.create = function(properties) {
|
|
136
137
|
return new TemporaryExposureKeyExport(properties);
|
|
137
138
|
};
|
|
138
139
|
|
|
@@ -145,29 +146,33 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
145
146
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
146
147
|
* @returns {$protobuf.Writer} Writer
|
|
147
148
|
*/
|
|
148
|
-
TemporaryExposureKeyExport.encode = function
|
|
149
|
+
TemporaryExposureKeyExport.encode = function (message, writer, _depth) {
|
|
149
150
|
if (!writer)
|
|
150
151
|
writer = $Writer.create();
|
|
151
|
-
if (
|
|
152
|
+
if (_depth === $undefined)
|
|
153
|
+
_depth = 0;
|
|
154
|
+
if (_depth > $util.recursionLimit)
|
|
155
|
+
throw $Error("max depth exceeded");
|
|
156
|
+
if (message.startTimestamp != null && $Object.hasOwnProperty.call(message, "startTimestamp"))
|
|
152
157
|
writer.uint32(/* id 1, wireType 1 =*/9).fixed64(message.startTimestamp);
|
|
153
|
-
if (message.endTimestamp != null && Object.hasOwnProperty.call(message, "endTimestamp"))
|
|
158
|
+
if (message.endTimestamp != null && $Object.hasOwnProperty.call(message, "endTimestamp"))
|
|
154
159
|
writer.uint32(/* id 2, wireType 1 =*/17).fixed64(message.endTimestamp);
|
|
155
|
-
if (message.region != null && Object.hasOwnProperty.call(message, "region"))
|
|
160
|
+
if (message.region != null && $Object.hasOwnProperty.call(message, "region"))
|
|
156
161
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.region);
|
|
157
|
-
if (message.batchNum != null && Object.hasOwnProperty.call(message, "batchNum"))
|
|
162
|
+
if (message.batchNum != null && $Object.hasOwnProperty.call(message, "batchNum"))
|
|
158
163
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.batchNum);
|
|
159
|
-
if (message.batchSize != null && Object.hasOwnProperty.call(message, "batchSize"))
|
|
164
|
+
if (message.batchSize != null && $Object.hasOwnProperty.call(message, "batchSize"))
|
|
160
165
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.batchSize);
|
|
161
166
|
if (message.signatureInfos != null && message.signatureInfos.length)
|
|
162
167
|
for (var i = 0; i < message.signatureInfos.length; ++i)
|
|
163
|
-
$root.SignatureInfo.encode(message.signatureInfos[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
168
|
+
$root.SignatureInfo.encode(message.signatureInfos[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), _depth + 1).ldelim();
|
|
164
169
|
if (message.keys != null && message.keys.length)
|
|
165
170
|
for (var i = 0; i < message.keys.length; ++i)
|
|
166
|
-
$root.TemporaryExposureKey.encode(message.keys[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
171
|
+
$root.TemporaryExposureKey.encode(message.keys[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), _depth + 1).ldelim();
|
|
167
172
|
if (message.revisedKeys != null && message.revisedKeys.length)
|
|
168
173
|
for (var i = 0; i < message.revisedKeys.length; ++i)
|
|
169
|
-
$root.TemporaryExposureKey.encode(message.revisedKeys[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
170
|
-
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
174
|
+
$root.TemporaryExposureKey.encode(message.revisedKeys[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), _depth + 1).ldelim();
|
|
175
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
171
176
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
172
177
|
writer.raw(message.$unknowns[i]);
|
|
173
178
|
return writer;
|
|
@@ -182,8 +187,8 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
182
187
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
183
188
|
* @returns {$protobuf.Writer} Writer
|
|
184
189
|
*/
|
|
185
|
-
TemporaryExposureKeyExport.encodeDelimited = function
|
|
186
|
-
return this.encode(message, writer).ldelim();
|
|
190
|
+
TemporaryExposureKeyExport.encodeDelimited = function(message, writer) {
|
|
191
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
187
192
|
};
|
|
188
193
|
|
|
189
194
|
/**
|
|
@@ -197,19 +202,19 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
197
202
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
198
203
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
199
204
|
*/
|
|
200
|
-
TemporaryExposureKeyExport.decode = function
|
|
205
|
+
TemporaryExposureKeyExport.decode = function (reader, length, _end, _depth, _target) {
|
|
201
206
|
if (!(reader instanceof $Reader))
|
|
202
207
|
reader = $Reader.create(reader);
|
|
203
|
-
if (_depth === undefined)
|
|
208
|
+
if (_depth === $undefined)
|
|
204
209
|
_depth = 0;
|
|
205
210
|
if (_depth > $Reader.recursionLimit)
|
|
206
|
-
throw Error("max depth exceeded");
|
|
207
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.TemporaryExposureKeyExport();
|
|
211
|
+
throw $Error("max depth exceeded");
|
|
212
|
+
var end = length === $undefined ? reader.len : reader.pos + length, message = _target || new $root.TemporaryExposureKeyExport();
|
|
208
213
|
while (reader.pos < end) {
|
|
209
214
|
var start = reader.pos;
|
|
210
215
|
var tag = reader.tag();
|
|
211
216
|
if (tag === _end) {
|
|
212
|
-
_end = undefined;
|
|
217
|
+
_end = $undefined;
|
|
213
218
|
break;
|
|
214
219
|
}
|
|
215
220
|
var wireType = tag & 7;
|
|
@@ -249,7 +254,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
249
254
|
break;
|
|
250
255
|
if (!(message.signatureInfos && message.signatureInfos.length))
|
|
251
256
|
message.signatureInfos = [];
|
|
252
|
-
message.signatureInfos.push($root.SignatureInfo.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
257
|
+
message.signatureInfos.push($root.SignatureInfo.decode(reader, reader.uint32(), $undefined, _depth + 1));
|
|
253
258
|
continue;
|
|
254
259
|
}
|
|
255
260
|
case 7: {
|
|
@@ -257,7 +262,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
257
262
|
break;
|
|
258
263
|
if (!(message.keys && message.keys.length))
|
|
259
264
|
message.keys = [];
|
|
260
|
-
message.keys.push($root.TemporaryExposureKey.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
265
|
+
message.keys.push($root.TemporaryExposureKey.decode(reader, reader.uint32(), $undefined, _depth + 1));
|
|
261
266
|
continue;
|
|
262
267
|
}
|
|
263
268
|
case 8: {
|
|
@@ -265,16 +270,18 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
265
270
|
break;
|
|
266
271
|
if (!(message.revisedKeys && message.revisedKeys.length))
|
|
267
272
|
message.revisedKeys = [];
|
|
268
|
-
message.revisedKeys.push($root.TemporaryExposureKey.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
273
|
+
message.revisedKeys.push($root.TemporaryExposureKey.decode(reader, reader.uint32(), $undefined, _depth + 1));
|
|
269
274
|
continue;
|
|
270
275
|
}
|
|
271
276
|
}
|
|
272
277
|
reader.skipType(wireType, _depth, tag);
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
if (!reader.discardUnknown) {
|
|
279
|
+
$util.makeProp(message, "$unknowns", false);
|
|
280
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
281
|
+
}
|
|
275
282
|
}
|
|
276
|
-
if (_end !== undefined)
|
|
277
|
-
throw Error("missing end group");
|
|
283
|
+
if (_end !== $undefined)
|
|
284
|
+
throw $Error("missing end group");
|
|
278
285
|
return message;
|
|
279
286
|
};
|
|
280
287
|
|
|
@@ -288,7 +295,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
288
295
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
289
296
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
290
297
|
*/
|
|
291
|
-
TemporaryExposureKeyExport.decodeDelimited = function
|
|
298
|
+
TemporaryExposureKeyExport.decodeDelimited = function(reader) {
|
|
292
299
|
if (!(reader instanceof $Reader))
|
|
293
300
|
reader = new $Reader(reader);
|
|
294
301
|
return this.decode(reader, reader.uint32());
|
|
@@ -302,30 +309,30 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
302
309
|
* @param {Object.<string,*>} message Plain object to verify
|
|
303
310
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
304
311
|
*/
|
|
305
|
-
TemporaryExposureKeyExport.verify = function
|
|
312
|
+
TemporaryExposureKeyExport.verify = function (message, _depth) {
|
|
306
313
|
if (typeof message !== "object" || message === null)
|
|
307
314
|
return "object expected";
|
|
308
|
-
if (_depth === undefined)
|
|
315
|
+
if (_depth === $undefined)
|
|
309
316
|
_depth = 0;
|
|
310
317
|
if (_depth > $util.recursionLimit)
|
|
311
318
|
return "max depth exceeded";
|
|
312
|
-
if (message.startTimestamp != null &&
|
|
319
|
+
if (message.startTimestamp != null && $Object.hasOwnProperty.call(message, "startTimestamp"))
|
|
313
320
|
if (!$util.isInteger(message.startTimestamp) && !(message.startTimestamp && $util.isInteger(message.startTimestamp.low) && $util.isInteger(message.startTimestamp.high)))
|
|
314
321
|
return "startTimestamp: integer|Long expected";
|
|
315
|
-
if (message.endTimestamp != null &&
|
|
322
|
+
if (message.endTimestamp != null && $Object.hasOwnProperty.call(message, "endTimestamp"))
|
|
316
323
|
if (!$util.isInteger(message.endTimestamp) && !(message.endTimestamp && $util.isInteger(message.endTimestamp.low) && $util.isInteger(message.endTimestamp.high)))
|
|
317
324
|
return "endTimestamp: integer|Long expected";
|
|
318
|
-
if (message.region != null &&
|
|
325
|
+
if (message.region != null && $Object.hasOwnProperty.call(message, "region"))
|
|
319
326
|
if (!$util.isString(message.region))
|
|
320
327
|
return "region: string expected";
|
|
321
|
-
if (message.batchNum != null &&
|
|
328
|
+
if (message.batchNum != null && $Object.hasOwnProperty.call(message, "batchNum"))
|
|
322
329
|
if (!$util.isInteger(message.batchNum))
|
|
323
330
|
return "batchNum: integer expected";
|
|
324
|
-
if (message.batchSize != null &&
|
|
331
|
+
if (message.batchSize != null && $Object.hasOwnProperty.call(message, "batchSize"))
|
|
325
332
|
if (!$util.isInteger(message.batchSize))
|
|
326
333
|
return "batchSize: integer expected";
|
|
327
|
-
if (message.signatureInfos != null &&
|
|
328
|
-
if (
|
|
334
|
+
if (message.signatureInfos != null && $Object.hasOwnProperty.call(message, "signatureInfos")) {
|
|
335
|
+
if (!$Array.isArray(message.signatureInfos))
|
|
329
336
|
return "signatureInfos: array expected";
|
|
330
337
|
for (var i = 0; i < message.signatureInfos.length; ++i) {
|
|
331
338
|
var error = $root.SignatureInfo.verify(message.signatureInfos[i], _depth + 1);
|
|
@@ -333,8 +340,8 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
333
340
|
return "signatureInfos." + error;
|
|
334
341
|
}
|
|
335
342
|
}
|
|
336
|
-
if (message.keys != null &&
|
|
337
|
-
if (
|
|
343
|
+
if (message.keys != null && $Object.hasOwnProperty.call(message, "keys")) {
|
|
344
|
+
if (!$Array.isArray(message.keys))
|
|
338
345
|
return "keys: array expected";
|
|
339
346
|
for (var i = 0; i < message.keys.length; ++i) {
|
|
340
347
|
var error = $root.TemporaryExposureKey.verify(message.keys[i], _depth + 1);
|
|
@@ -342,8 +349,8 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
342
349
|
return "keys." + error;
|
|
343
350
|
}
|
|
344
351
|
}
|
|
345
|
-
if (message.revisedKeys != null &&
|
|
346
|
-
if (
|
|
352
|
+
if (message.revisedKeys != null && $Object.hasOwnProperty.call(message, "revisedKeys")) {
|
|
353
|
+
if (!$Array.isArray(message.revisedKeys))
|
|
347
354
|
return "revisedKeys: array expected";
|
|
348
355
|
for (var i = 0; i < message.revisedKeys.length; ++i) {
|
|
349
356
|
var error = $root.TemporaryExposureKey.verify(message.revisedKeys[i], _depth + 1);
|
|
@@ -362,65 +369,67 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
362
369
|
* @param {Object.<string,*>} object Plain object
|
|
363
370
|
* @returns {TemporaryExposureKeyExport} TemporaryExposureKeyExport
|
|
364
371
|
*/
|
|
365
|
-
TemporaryExposureKeyExport.fromObject = function
|
|
372
|
+
TemporaryExposureKeyExport.fromObject = function (object, _depth) {
|
|
366
373
|
if (object instanceof $root.TemporaryExposureKeyExport)
|
|
367
374
|
return object;
|
|
368
|
-
if (
|
|
375
|
+
if (!$util.isObject(object))
|
|
376
|
+
throw $TypeError(".TemporaryExposureKeyExport: object expected");
|
|
377
|
+
if (_depth === $undefined)
|
|
369
378
|
_depth = 0;
|
|
370
379
|
if (_depth > $util.recursionLimit)
|
|
371
|
-
throw Error("max depth exceeded");
|
|
380
|
+
throw $Error("max depth exceeded");
|
|
372
381
|
var message = new $root.TemporaryExposureKeyExport();
|
|
373
382
|
if (object.startTimestamp != null)
|
|
374
383
|
if ($util.Long)
|
|
375
|
-
|
|
384
|
+
message.startTimestamp = $util.Long.fromValue(object.startTimestamp, true);
|
|
376
385
|
else if (typeof object.startTimestamp === "string")
|
|
377
|
-
message.startTimestamp = parseInt(object.startTimestamp, 10);
|
|
386
|
+
message.startTimestamp = $parseInt(object.startTimestamp, 10);
|
|
378
387
|
else if (typeof object.startTimestamp === "number")
|
|
379
388
|
message.startTimestamp = object.startTimestamp;
|
|
380
389
|
else if (typeof object.startTimestamp === "object")
|
|
381
|
-
message.startTimestamp = new $util.LongBits(object.startTimestamp.low >>> 0, object.startTimestamp.high >>> 0).toNumber();
|
|
390
|
+
message.startTimestamp = new $util.LongBits(object.startTimestamp.low >>> 0, object.startTimestamp.high >>> 0).toNumber(true);
|
|
382
391
|
if (object.endTimestamp != null)
|
|
383
392
|
if ($util.Long)
|
|
384
|
-
|
|
393
|
+
message.endTimestamp = $util.Long.fromValue(object.endTimestamp, true);
|
|
385
394
|
else if (typeof object.endTimestamp === "string")
|
|
386
|
-
message.endTimestamp = parseInt(object.endTimestamp, 10);
|
|
395
|
+
message.endTimestamp = $parseInt(object.endTimestamp, 10);
|
|
387
396
|
else if (typeof object.endTimestamp === "number")
|
|
388
397
|
message.endTimestamp = object.endTimestamp;
|
|
389
398
|
else if (typeof object.endTimestamp === "object")
|
|
390
|
-
message.endTimestamp = new $util.LongBits(object.endTimestamp.low >>> 0, object.endTimestamp.high >>> 0).toNumber();
|
|
399
|
+
message.endTimestamp = new $util.LongBits(object.endTimestamp.low >>> 0, object.endTimestamp.high >>> 0).toNumber(true);
|
|
391
400
|
if (object.region != null)
|
|
392
|
-
message.region = String(object.region);
|
|
401
|
+
message.region = $String(object.region);
|
|
393
402
|
if (object.batchNum != null)
|
|
394
403
|
message.batchNum = object.batchNum | 0;
|
|
395
404
|
if (object.batchSize != null)
|
|
396
405
|
message.batchSize = object.batchSize | 0;
|
|
397
406
|
if (object.signatureInfos) {
|
|
398
|
-
if (
|
|
399
|
-
throw TypeError(".TemporaryExposureKeyExport.signatureInfos: array expected");
|
|
400
|
-
message.signatureInfos = Array(object.signatureInfos.length);
|
|
407
|
+
if (!$Array.isArray(object.signatureInfos))
|
|
408
|
+
throw $TypeError(".TemporaryExposureKeyExport.signatureInfos: array expected");
|
|
409
|
+
message.signatureInfos = $Array(object.signatureInfos.length);
|
|
401
410
|
for (var i = 0; i < object.signatureInfos.length; ++i) {
|
|
402
|
-
if (
|
|
403
|
-
throw TypeError(".TemporaryExposureKeyExport.signatureInfos: object expected");
|
|
411
|
+
if (!$util.isObject(object.signatureInfos[i]))
|
|
412
|
+
throw $TypeError(".TemporaryExposureKeyExport.signatureInfos: object expected");
|
|
404
413
|
message.signatureInfos[i] = $root.SignatureInfo.fromObject(object.signatureInfos[i], _depth + 1);
|
|
405
414
|
}
|
|
406
415
|
}
|
|
407
416
|
if (object.keys) {
|
|
408
|
-
if (
|
|
409
|
-
throw TypeError(".TemporaryExposureKeyExport.keys: array expected");
|
|
410
|
-
message.keys = Array(object.keys.length);
|
|
417
|
+
if (!$Array.isArray(object.keys))
|
|
418
|
+
throw $TypeError(".TemporaryExposureKeyExport.keys: array expected");
|
|
419
|
+
message.keys = $Array(object.keys.length);
|
|
411
420
|
for (var i = 0; i < object.keys.length; ++i) {
|
|
412
|
-
if (
|
|
413
|
-
throw TypeError(".TemporaryExposureKeyExport.keys: object expected");
|
|
421
|
+
if (!$util.isObject(object.keys[i]))
|
|
422
|
+
throw $TypeError(".TemporaryExposureKeyExport.keys: object expected");
|
|
414
423
|
message.keys[i] = $root.TemporaryExposureKey.fromObject(object.keys[i], _depth + 1);
|
|
415
424
|
}
|
|
416
425
|
}
|
|
417
426
|
if (object.revisedKeys) {
|
|
418
|
-
if (
|
|
419
|
-
throw TypeError(".TemporaryExposureKeyExport.revisedKeys: array expected");
|
|
420
|
-
message.revisedKeys = Array(object.revisedKeys.length);
|
|
427
|
+
if (!$Array.isArray(object.revisedKeys))
|
|
428
|
+
throw $TypeError(".TemporaryExposureKeyExport.revisedKeys: array expected");
|
|
429
|
+
message.revisedKeys = $Array(object.revisedKeys.length);
|
|
421
430
|
for (var i = 0; i < object.revisedKeys.length; ++i) {
|
|
422
|
-
if (
|
|
423
|
-
throw TypeError(".TemporaryExposureKeyExport.revisedKeys: object expected");
|
|
431
|
+
if (!$util.isObject(object.revisedKeys[i]))
|
|
432
|
+
throw $TypeError(".TemporaryExposureKeyExport.revisedKeys: object expected");
|
|
424
433
|
message.revisedKeys[i] = $root.TemporaryExposureKey.fromObject(object.revisedKeys[i], _depth + 1);
|
|
425
434
|
}
|
|
426
435
|
}
|
|
@@ -436,9 +445,13 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
436
445
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
437
446
|
* @returns {Object.<string,*>} Plain object
|
|
438
447
|
*/
|
|
439
|
-
TemporaryExposureKeyExport.toObject = function
|
|
448
|
+
TemporaryExposureKeyExport.toObject = function (message, options, _depth) {
|
|
440
449
|
if (!options)
|
|
441
450
|
options = {};
|
|
451
|
+
if (_depth === $undefined)
|
|
452
|
+
_depth = 0;
|
|
453
|
+
if (_depth > $util.recursionLimit)
|
|
454
|
+
throw $Error("max depth exceeded");
|
|
442
455
|
var object = {};
|
|
443
456
|
if (options.arrays || options.defaults) {
|
|
444
457
|
object.signatureInfos = [];
|
|
@@ -447,49 +460,53 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
447
460
|
}
|
|
448
461
|
if (options.defaults) {
|
|
449
462
|
if ($util.Long) {
|
|
450
|
-
var long = new $util.Long(0, 0,
|
|
451
|
-
object.startTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
463
|
+
var long = new $util.Long(0, 0, true);
|
|
464
|
+
object.startTimestamp = options.longs === $String ? long.toString() : options.longs === $Number ? long.toNumber() : typeof $BigInt !== "undefined" && options.longs === $BigInt ? long.toBigInt() : long;
|
|
452
465
|
} else
|
|
453
|
-
object.startTimestamp = options.longs === String ? "0" : 0;
|
|
466
|
+
object.startTimestamp = options.longs === $String ? "0" : typeof $BigInt !== "undefined" && options.longs === $BigInt ? $BigInt("0") : 0;
|
|
454
467
|
if ($util.Long) {
|
|
455
|
-
var long = new $util.Long(0, 0,
|
|
456
|
-
object.endTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
468
|
+
var long = new $util.Long(0, 0, true);
|
|
469
|
+
object.endTimestamp = options.longs === $String ? long.toString() : options.longs === $Number ? long.toNumber() : typeof $BigInt !== "undefined" && options.longs === $BigInt ? long.toBigInt() : long;
|
|
457
470
|
} else
|
|
458
|
-
object.endTimestamp = options.longs === String ? "0" : 0;
|
|
471
|
+
object.endTimestamp = options.longs === $String ? "0" : typeof $BigInt !== "undefined" && options.longs === $BigInt ? $BigInt("0") : 0;
|
|
459
472
|
object.region = "";
|
|
460
473
|
object.batchNum = 0;
|
|
461
474
|
object.batchSize = 0;
|
|
462
475
|
}
|
|
463
|
-
if (message.startTimestamp != null &&
|
|
464
|
-
if (typeof
|
|
465
|
-
object.startTimestamp =
|
|
476
|
+
if (message.startTimestamp != null && $Object.hasOwnProperty.call(message, "startTimestamp"))
|
|
477
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
478
|
+
object.startTimestamp = typeof message.startTimestamp === "number" ? $BigInt(message.startTimestamp) : $util.Long.fromBits(message.startTimestamp.low >>> 0, message.startTimestamp.high >>> 0, true).toBigInt();
|
|
479
|
+
else if (typeof message.startTimestamp === "number")
|
|
480
|
+
object.startTimestamp = options.longs === $String ? $String(message.startTimestamp) : message.startTimestamp;
|
|
466
481
|
else
|
|
467
|
-
object.startTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.startTimestamp) : options.longs === Number ? new $util.LongBits(message.startTimestamp.low >>> 0, message.startTimestamp.high >>> 0).toNumber() : message.startTimestamp;
|
|
468
|
-
if (message.endTimestamp != null &&
|
|
469
|
-
if (typeof
|
|
470
|
-
object.endTimestamp =
|
|
482
|
+
object.startTimestamp = options.longs === $String ? $util.Long.prototype.toString.call(message.startTimestamp) : options.longs === $Number ? new $util.LongBits(message.startTimestamp.low >>> 0, message.startTimestamp.high >>> 0).toNumber(true) : message.startTimestamp;
|
|
483
|
+
if (message.endTimestamp != null && $Object.hasOwnProperty.call(message, "endTimestamp"))
|
|
484
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
485
|
+
object.endTimestamp = typeof message.endTimestamp === "number" ? $BigInt(message.endTimestamp) : $util.Long.fromBits(message.endTimestamp.low >>> 0, message.endTimestamp.high >>> 0, true).toBigInt();
|
|
486
|
+
else if (typeof message.endTimestamp === "number")
|
|
487
|
+
object.endTimestamp = options.longs === $String ? $String(message.endTimestamp) : message.endTimestamp;
|
|
471
488
|
else
|
|
472
|
-
object.endTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.endTimestamp) : options.longs === Number ? new $util.LongBits(message.endTimestamp.low >>> 0, message.endTimestamp.high >>> 0).toNumber() : message.endTimestamp;
|
|
473
|
-
if (message.region != null &&
|
|
489
|
+
object.endTimestamp = options.longs === $String ? $util.Long.prototype.toString.call(message.endTimestamp) : options.longs === $Number ? new $util.LongBits(message.endTimestamp.low >>> 0, message.endTimestamp.high >>> 0).toNumber(true) : message.endTimestamp;
|
|
490
|
+
if (message.region != null && $Object.hasOwnProperty.call(message, "region"))
|
|
474
491
|
object.region = message.region;
|
|
475
|
-
if (message.batchNum != null &&
|
|
492
|
+
if (message.batchNum != null && $Object.hasOwnProperty.call(message, "batchNum"))
|
|
476
493
|
object.batchNum = message.batchNum;
|
|
477
|
-
if (message.batchSize != null &&
|
|
494
|
+
if (message.batchSize != null && $Object.hasOwnProperty.call(message, "batchSize"))
|
|
478
495
|
object.batchSize = message.batchSize;
|
|
479
496
|
if (message.signatureInfos && message.signatureInfos.length) {
|
|
480
|
-
object.signatureInfos = Array(message.signatureInfos.length);
|
|
497
|
+
object.signatureInfos = $Array(message.signatureInfos.length);
|
|
481
498
|
for (var j = 0; j < message.signatureInfos.length; ++j)
|
|
482
|
-
object.signatureInfos[j] = $root.SignatureInfo.toObject(message.signatureInfos[j], options);
|
|
499
|
+
object.signatureInfos[j] = $root.SignatureInfo.toObject(message.signatureInfos[j], options, _depth + 1);
|
|
483
500
|
}
|
|
484
501
|
if (message.keys && message.keys.length) {
|
|
485
|
-
object.keys = Array(message.keys.length);
|
|
502
|
+
object.keys = $Array(message.keys.length);
|
|
486
503
|
for (var j = 0; j < message.keys.length; ++j)
|
|
487
|
-
object.keys[j] = $root.TemporaryExposureKey.toObject(message.keys[j], options);
|
|
504
|
+
object.keys[j] = $root.TemporaryExposureKey.toObject(message.keys[j], options, _depth + 1);
|
|
488
505
|
}
|
|
489
506
|
if (message.revisedKeys && message.revisedKeys.length) {
|
|
490
|
-
object.revisedKeys = Array(message.revisedKeys.length);
|
|
507
|
+
object.revisedKeys = $Array(message.revisedKeys.length);
|
|
491
508
|
for (var j = 0; j < message.revisedKeys.length; ++j)
|
|
492
|
-
object.revisedKeys[j] = $root.TemporaryExposureKey.toObject(message.revisedKeys[j], options);
|
|
509
|
+
object.revisedKeys[j] = $root.TemporaryExposureKey.toObject(message.revisedKeys[j], options, _depth + 1);
|
|
493
510
|
}
|
|
494
511
|
return object;
|
|
495
512
|
};
|
|
@@ -501,8 +518,8 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
501
518
|
* @instance
|
|
502
519
|
* @returns {Object.<string,*>} JSON object
|
|
503
520
|
*/
|
|
504
|
-
TemporaryExposureKeyExport.prototype.toJSON = function
|
|
505
|
-
return
|
|
521
|
+
TemporaryExposureKeyExport.prototype.toJSON = function() {
|
|
522
|
+
return TemporaryExposureKeyExport.toObject(this, $protobuf.util.toJSONOptions);
|
|
506
523
|
};
|
|
507
524
|
|
|
508
525
|
/**
|
|
@@ -513,8 +530,8 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
513
530
|
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
514
531
|
* @returns {string} The type url
|
|
515
532
|
*/
|
|
516
|
-
TemporaryExposureKeyExport.getTypeUrl = function
|
|
517
|
-
if (prefix === undefined)
|
|
533
|
+
TemporaryExposureKeyExport.getTypeUrl = function(prefix) {
|
|
534
|
+
if (prefix === $undefined)
|
|
518
535
|
prefix = "type.googleapis.com";
|
|
519
536
|
return prefix + "/TemporaryExposureKeyExport";
|
|
520
537
|
};
|
|
@@ -554,12 +571,12 @@ $root.SignatureInfo = (function() {
|
|
|
554
571
|
* @param {SignatureInfo.$Properties=} [properties] Properties to set
|
|
555
572
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
556
573
|
*/
|
|
557
|
-
function
|
|
574
|
+
var SignatureInfo = function (properties) {
|
|
558
575
|
if (properties)
|
|
559
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
576
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
560
577
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
561
578
|
this[keys[i]] = properties[keys[i]];
|
|
562
|
-
}
|
|
579
|
+
};
|
|
563
580
|
|
|
564
581
|
/**
|
|
565
582
|
* SignatureInfo verificationKeyVersion.
|
|
@@ -597,7 +614,7 @@ $root.SignatureInfo = (function() {
|
|
|
597
614
|
* (properties?: SignatureInfo.$Properties): SignatureInfo;
|
|
598
615
|
* }}
|
|
599
616
|
*/
|
|
600
|
-
SignatureInfo.create = function
|
|
617
|
+
SignatureInfo.create = function(properties) {
|
|
601
618
|
return new SignatureInfo(properties);
|
|
602
619
|
};
|
|
603
620
|
|
|
@@ -610,16 +627,20 @@ $root.SignatureInfo = (function() {
|
|
|
610
627
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
611
628
|
* @returns {$protobuf.Writer} Writer
|
|
612
629
|
*/
|
|
613
|
-
SignatureInfo.encode = function
|
|
630
|
+
SignatureInfo.encode = function (message, writer, _depth) {
|
|
614
631
|
if (!writer)
|
|
615
632
|
writer = $Writer.create();
|
|
616
|
-
if (
|
|
633
|
+
if (_depth === $undefined)
|
|
634
|
+
_depth = 0;
|
|
635
|
+
if (_depth > $util.recursionLimit)
|
|
636
|
+
throw $Error("max depth exceeded");
|
|
637
|
+
if (message.verificationKeyVersion != null && $Object.hasOwnProperty.call(message, "verificationKeyVersion"))
|
|
617
638
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.verificationKeyVersion);
|
|
618
|
-
if (message.verificationKeyId != null && Object.hasOwnProperty.call(message, "verificationKeyId"))
|
|
639
|
+
if (message.verificationKeyId != null && $Object.hasOwnProperty.call(message, "verificationKeyId"))
|
|
619
640
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.verificationKeyId);
|
|
620
|
-
if (message.signatureAlgorithm != null && Object.hasOwnProperty.call(message, "signatureAlgorithm"))
|
|
641
|
+
if (message.signatureAlgorithm != null && $Object.hasOwnProperty.call(message, "signatureAlgorithm"))
|
|
621
642
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.signatureAlgorithm);
|
|
622
|
-
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
643
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
623
644
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
624
645
|
writer.raw(message.$unknowns[i]);
|
|
625
646
|
return writer;
|
|
@@ -634,8 +655,8 @@ $root.SignatureInfo = (function() {
|
|
|
634
655
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
635
656
|
* @returns {$protobuf.Writer} Writer
|
|
636
657
|
*/
|
|
637
|
-
SignatureInfo.encodeDelimited = function
|
|
638
|
-
return this.encode(message, writer).ldelim();
|
|
658
|
+
SignatureInfo.encodeDelimited = function(message, writer) {
|
|
659
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
639
660
|
};
|
|
640
661
|
|
|
641
662
|
/**
|
|
@@ -649,19 +670,19 @@ $root.SignatureInfo = (function() {
|
|
|
649
670
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
650
671
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
651
672
|
*/
|
|
652
|
-
SignatureInfo.decode = function
|
|
673
|
+
SignatureInfo.decode = function (reader, length, _end, _depth, _target) {
|
|
653
674
|
if (!(reader instanceof $Reader))
|
|
654
675
|
reader = $Reader.create(reader);
|
|
655
|
-
if (_depth === undefined)
|
|
676
|
+
if (_depth === $undefined)
|
|
656
677
|
_depth = 0;
|
|
657
678
|
if (_depth > $Reader.recursionLimit)
|
|
658
|
-
throw Error("max depth exceeded");
|
|
659
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.SignatureInfo();
|
|
679
|
+
throw $Error("max depth exceeded");
|
|
680
|
+
var end = length === $undefined ? reader.len : reader.pos + length, message = _target || new $root.SignatureInfo();
|
|
660
681
|
while (reader.pos < end) {
|
|
661
682
|
var start = reader.pos;
|
|
662
683
|
var tag = reader.tag();
|
|
663
684
|
if (tag === _end) {
|
|
664
|
-
_end = undefined;
|
|
685
|
+
_end = $undefined;
|
|
665
686
|
break;
|
|
666
687
|
}
|
|
667
688
|
var wireType = tag & 7;
|
|
@@ -686,11 +707,13 @@ $root.SignatureInfo = (function() {
|
|
|
686
707
|
}
|
|
687
708
|
}
|
|
688
709
|
reader.skipType(wireType, _depth, tag);
|
|
689
|
-
|
|
690
|
-
|
|
710
|
+
if (!reader.discardUnknown) {
|
|
711
|
+
$util.makeProp(message, "$unknowns", false);
|
|
712
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
713
|
+
}
|
|
691
714
|
}
|
|
692
|
-
if (_end !== undefined)
|
|
693
|
-
throw Error("missing end group");
|
|
715
|
+
if (_end !== $undefined)
|
|
716
|
+
throw $Error("missing end group");
|
|
694
717
|
return message;
|
|
695
718
|
};
|
|
696
719
|
|
|
@@ -704,7 +727,7 @@ $root.SignatureInfo = (function() {
|
|
|
704
727
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
705
728
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
706
729
|
*/
|
|
707
|
-
SignatureInfo.decodeDelimited = function
|
|
730
|
+
SignatureInfo.decodeDelimited = function(reader) {
|
|
708
731
|
if (!(reader instanceof $Reader))
|
|
709
732
|
reader = new $Reader(reader);
|
|
710
733
|
return this.decode(reader, reader.uint32());
|
|
@@ -718,20 +741,20 @@ $root.SignatureInfo = (function() {
|
|
|
718
741
|
* @param {Object.<string,*>} message Plain object to verify
|
|
719
742
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
720
743
|
*/
|
|
721
|
-
SignatureInfo.verify = function
|
|
744
|
+
SignatureInfo.verify = function (message, _depth) {
|
|
722
745
|
if (typeof message !== "object" || message === null)
|
|
723
746
|
return "object expected";
|
|
724
|
-
if (_depth === undefined)
|
|
747
|
+
if (_depth === $undefined)
|
|
725
748
|
_depth = 0;
|
|
726
749
|
if (_depth > $util.recursionLimit)
|
|
727
750
|
return "max depth exceeded";
|
|
728
|
-
if (message.verificationKeyVersion != null &&
|
|
751
|
+
if (message.verificationKeyVersion != null && $Object.hasOwnProperty.call(message, "verificationKeyVersion"))
|
|
729
752
|
if (!$util.isString(message.verificationKeyVersion))
|
|
730
753
|
return "verificationKeyVersion: string expected";
|
|
731
|
-
if (message.verificationKeyId != null &&
|
|
754
|
+
if (message.verificationKeyId != null && $Object.hasOwnProperty.call(message, "verificationKeyId"))
|
|
732
755
|
if (!$util.isString(message.verificationKeyId))
|
|
733
756
|
return "verificationKeyId: string expected";
|
|
734
|
-
if (message.signatureAlgorithm != null &&
|
|
757
|
+
if (message.signatureAlgorithm != null && $Object.hasOwnProperty.call(message, "signatureAlgorithm"))
|
|
735
758
|
if (!$util.isString(message.signatureAlgorithm))
|
|
736
759
|
return "signatureAlgorithm: string expected";
|
|
737
760
|
return null;
|
|
@@ -745,20 +768,22 @@ $root.SignatureInfo = (function() {
|
|
|
745
768
|
* @param {Object.<string,*>} object Plain object
|
|
746
769
|
* @returns {SignatureInfo} SignatureInfo
|
|
747
770
|
*/
|
|
748
|
-
SignatureInfo.fromObject = function
|
|
771
|
+
SignatureInfo.fromObject = function (object, _depth) {
|
|
749
772
|
if (object instanceof $root.SignatureInfo)
|
|
750
773
|
return object;
|
|
751
|
-
if (
|
|
774
|
+
if (!$util.isObject(object))
|
|
775
|
+
throw $TypeError(".SignatureInfo: object expected");
|
|
776
|
+
if (_depth === $undefined)
|
|
752
777
|
_depth = 0;
|
|
753
778
|
if (_depth > $util.recursionLimit)
|
|
754
|
-
throw Error("max depth exceeded");
|
|
779
|
+
throw $Error("max depth exceeded");
|
|
755
780
|
var message = new $root.SignatureInfo();
|
|
756
781
|
if (object.verificationKeyVersion != null)
|
|
757
|
-
message.verificationKeyVersion = String(object.verificationKeyVersion);
|
|
782
|
+
message.verificationKeyVersion = $String(object.verificationKeyVersion);
|
|
758
783
|
if (object.verificationKeyId != null)
|
|
759
|
-
message.verificationKeyId = String(object.verificationKeyId);
|
|
784
|
+
message.verificationKeyId = $String(object.verificationKeyId);
|
|
760
785
|
if (object.signatureAlgorithm != null)
|
|
761
|
-
message.signatureAlgorithm = String(object.signatureAlgorithm);
|
|
786
|
+
message.signatureAlgorithm = $String(object.signatureAlgorithm);
|
|
762
787
|
return message;
|
|
763
788
|
};
|
|
764
789
|
|
|
@@ -771,20 +796,24 @@ $root.SignatureInfo = (function() {
|
|
|
771
796
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
772
797
|
* @returns {Object.<string,*>} Plain object
|
|
773
798
|
*/
|
|
774
|
-
SignatureInfo.toObject = function
|
|
799
|
+
SignatureInfo.toObject = function (message, options, _depth) {
|
|
775
800
|
if (!options)
|
|
776
801
|
options = {};
|
|
802
|
+
if (_depth === $undefined)
|
|
803
|
+
_depth = 0;
|
|
804
|
+
if (_depth > $util.recursionLimit)
|
|
805
|
+
throw $Error("max depth exceeded");
|
|
777
806
|
var object = {};
|
|
778
807
|
if (options.defaults) {
|
|
779
808
|
object.verificationKeyVersion = "";
|
|
780
809
|
object.verificationKeyId = "";
|
|
781
810
|
object.signatureAlgorithm = "";
|
|
782
811
|
}
|
|
783
|
-
if (message.verificationKeyVersion != null &&
|
|
812
|
+
if (message.verificationKeyVersion != null && $Object.hasOwnProperty.call(message, "verificationKeyVersion"))
|
|
784
813
|
object.verificationKeyVersion = message.verificationKeyVersion;
|
|
785
|
-
if (message.verificationKeyId != null &&
|
|
814
|
+
if (message.verificationKeyId != null && $Object.hasOwnProperty.call(message, "verificationKeyId"))
|
|
786
815
|
object.verificationKeyId = message.verificationKeyId;
|
|
787
|
-
if (message.signatureAlgorithm != null &&
|
|
816
|
+
if (message.signatureAlgorithm != null && $Object.hasOwnProperty.call(message, "signatureAlgorithm"))
|
|
788
817
|
object.signatureAlgorithm = message.signatureAlgorithm;
|
|
789
818
|
return object;
|
|
790
819
|
};
|
|
@@ -796,8 +825,8 @@ $root.SignatureInfo = (function() {
|
|
|
796
825
|
* @instance
|
|
797
826
|
* @returns {Object.<string,*>} JSON object
|
|
798
827
|
*/
|
|
799
|
-
SignatureInfo.prototype.toJSON = function
|
|
800
|
-
return
|
|
828
|
+
SignatureInfo.prototype.toJSON = function() {
|
|
829
|
+
return SignatureInfo.toObject(this, $protobuf.util.toJSONOptions);
|
|
801
830
|
};
|
|
802
831
|
|
|
803
832
|
/**
|
|
@@ -808,8 +837,8 @@ $root.SignatureInfo = (function() {
|
|
|
808
837
|
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
809
838
|
* @returns {string} The type url
|
|
810
839
|
*/
|
|
811
|
-
SignatureInfo.getTypeUrl = function
|
|
812
|
-
if (prefix === undefined)
|
|
840
|
+
SignatureInfo.getTypeUrl = function(prefix) {
|
|
841
|
+
if (prefix === $undefined)
|
|
813
842
|
prefix = "type.googleapis.com";
|
|
814
843
|
return prefix + "/SignatureInfo";
|
|
815
844
|
};
|
|
@@ -852,12 +881,12 @@ $root.TemporaryExposureKey = (function() {
|
|
|
852
881
|
* @param {TemporaryExposureKey.$Properties=} [properties] Properties to set
|
|
853
882
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
854
883
|
*/
|
|
855
|
-
function
|
|
884
|
+
var TemporaryExposureKey = function (properties) {
|
|
856
885
|
if (properties)
|
|
857
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
886
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
858
887
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
859
888
|
this[keys[i]] = properties[keys[i]];
|
|
860
|
-
}
|
|
889
|
+
};
|
|
861
890
|
|
|
862
891
|
/**
|
|
863
892
|
* TemporaryExposureKey keyData.
|
|
@@ -919,7 +948,7 @@ $root.TemporaryExposureKey = (function() {
|
|
|
919
948
|
* (properties?: TemporaryExposureKey.$Properties): TemporaryExposureKey;
|
|
920
949
|
* }}
|
|
921
950
|
*/
|
|
922
|
-
TemporaryExposureKey.create = function
|
|
951
|
+
TemporaryExposureKey.create = function(properties) {
|
|
923
952
|
return new TemporaryExposureKey(properties);
|
|
924
953
|
};
|
|
925
954
|
|
|
@@ -932,22 +961,26 @@ $root.TemporaryExposureKey = (function() {
|
|
|
932
961
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
933
962
|
* @returns {$protobuf.Writer} Writer
|
|
934
963
|
*/
|
|
935
|
-
TemporaryExposureKey.encode = function
|
|
964
|
+
TemporaryExposureKey.encode = function (message, writer, _depth) {
|
|
936
965
|
if (!writer)
|
|
937
966
|
writer = $Writer.create();
|
|
938
|
-
if (
|
|
967
|
+
if (_depth === $undefined)
|
|
968
|
+
_depth = 0;
|
|
969
|
+
if (_depth > $util.recursionLimit)
|
|
970
|
+
throw $Error("max depth exceeded");
|
|
971
|
+
if (message.keyData != null && $Object.hasOwnProperty.call(message, "keyData"))
|
|
939
972
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.keyData);
|
|
940
|
-
if (message.transmissionRiskLevel != null && Object.hasOwnProperty.call(message, "transmissionRiskLevel"))
|
|
973
|
+
if (message.transmissionRiskLevel != null && $Object.hasOwnProperty.call(message, "transmissionRiskLevel"))
|
|
941
974
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.transmissionRiskLevel);
|
|
942
|
-
if (message.rollingStartIntervalNumber != null && Object.hasOwnProperty.call(message, "rollingStartIntervalNumber"))
|
|
975
|
+
if (message.rollingStartIntervalNumber != null && $Object.hasOwnProperty.call(message, "rollingStartIntervalNumber"))
|
|
943
976
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.rollingStartIntervalNumber);
|
|
944
|
-
if (message.rollingPeriod != null && Object.hasOwnProperty.call(message, "rollingPeriod"))
|
|
977
|
+
if (message.rollingPeriod != null && $Object.hasOwnProperty.call(message, "rollingPeriod"))
|
|
945
978
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.rollingPeriod);
|
|
946
|
-
if (message.reportType != null && Object.hasOwnProperty.call(message, "reportType"))
|
|
979
|
+
if (message.reportType != null && $Object.hasOwnProperty.call(message, "reportType"))
|
|
947
980
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.reportType);
|
|
948
|
-
if (message.daysSinceOnsetOfSymptoms != null && Object.hasOwnProperty.call(message, "daysSinceOnsetOfSymptoms"))
|
|
981
|
+
if (message.daysSinceOnsetOfSymptoms != null && $Object.hasOwnProperty.call(message, "daysSinceOnsetOfSymptoms"))
|
|
949
982
|
writer.uint32(/* id 6, wireType 0 =*/48).sint32(message.daysSinceOnsetOfSymptoms);
|
|
950
|
-
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
983
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
951
984
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
952
985
|
writer.raw(message.$unknowns[i]);
|
|
953
986
|
return writer;
|
|
@@ -962,8 +995,8 @@ $root.TemporaryExposureKey = (function() {
|
|
|
962
995
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
963
996
|
* @returns {$protobuf.Writer} Writer
|
|
964
997
|
*/
|
|
965
|
-
TemporaryExposureKey.encodeDelimited = function
|
|
966
|
-
return this.encode(message, writer).ldelim();
|
|
998
|
+
TemporaryExposureKey.encodeDelimited = function(message, writer) {
|
|
999
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
967
1000
|
};
|
|
968
1001
|
|
|
969
1002
|
/**
|
|
@@ -977,19 +1010,19 @@ $root.TemporaryExposureKey = (function() {
|
|
|
977
1010
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
978
1011
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
979
1012
|
*/
|
|
980
|
-
TemporaryExposureKey.decode = function
|
|
1013
|
+
TemporaryExposureKey.decode = function (reader, length, _end, _depth, _target) {
|
|
981
1014
|
if (!(reader instanceof $Reader))
|
|
982
1015
|
reader = $Reader.create(reader);
|
|
983
|
-
if (_depth === undefined)
|
|
1016
|
+
if (_depth === $undefined)
|
|
984
1017
|
_depth = 0;
|
|
985
1018
|
if (_depth > $Reader.recursionLimit)
|
|
986
|
-
throw Error("max depth exceeded");
|
|
987
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.TemporaryExposureKey();
|
|
1019
|
+
throw $Error("max depth exceeded");
|
|
1020
|
+
var end = length === $undefined ? reader.len : reader.pos + length, message = _target || new $root.TemporaryExposureKey();
|
|
988
1021
|
while (reader.pos < end) {
|
|
989
1022
|
var start = reader.pos;
|
|
990
1023
|
var tag = reader.tag();
|
|
991
1024
|
if (tag === _end) {
|
|
992
|
-
_end = undefined;
|
|
1025
|
+
_end = $undefined;
|
|
993
1026
|
break;
|
|
994
1027
|
}
|
|
995
1028
|
var wireType = tag & 7;
|
|
@@ -1032,11 +1065,13 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1032
1065
|
}
|
|
1033
1066
|
}
|
|
1034
1067
|
reader.skipType(wireType, _depth, tag);
|
|
1035
|
-
|
|
1036
|
-
|
|
1068
|
+
if (!reader.discardUnknown) {
|
|
1069
|
+
$util.makeProp(message, "$unknowns", false);
|
|
1070
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
1071
|
+
}
|
|
1037
1072
|
}
|
|
1038
|
-
if (_end !== undefined)
|
|
1039
|
-
throw Error("missing end group");
|
|
1073
|
+
if (_end !== $undefined)
|
|
1074
|
+
throw $Error("missing end group");
|
|
1040
1075
|
return message;
|
|
1041
1076
|
};
|
|
1042
1077
|
|
|
@@ -1050,7 +1085,7 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1050
1085
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1051
1086
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1052
1087
|
*/
|
|
1053
|
-
TemporaryExposureKey.decodeDelimited = function
|
|
1088
|
+
TemporaryExposureKey.decodeDelimited = function(reader) {
|
|
1054
1089
|
if (!(reader instanceof $Reader))
|
|
1055
1090
|
reader = new $Reader(reader);
|
|
1056
1091
|
return this.decode(reader, reader.uint32());
|
|
@@ -1064,26 +1099,26 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1064
1099
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1065
1100
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1066
1101
|
*/
|
|
1067
|
-
TemporaryExposureKey.verify = function
|
|
1102
|
+
TemporaryExposureKey.verify = function (message, _depth) {
|
|
1068
1103
|
if (typeof message !== "object" || message === null)
|
|
1069
1104
|
return "object expected";
|
|
1070
|
-
if (_depth === undefined)
|
|
1105
|
+
if (_depth === $undefined)
|
|
1071
1106
|
_depth = 0;
|
|
1072
1107
|
if (_depth > $util.recursionLimit)
|
|
1073
1108
|
return "max depth exceeded";
|
|
1074
|
-
if (message.keyData != null &&
|
|
1109
|
+
if (message.keyData != null && $Object.hasOwnProperty.call(message, "keyData"))
|
|
1075
1110
|
if (!(message.keyData && typeof message.keyData.length === "number" || $util.isString(message.keyData)))
|
|
1076
1111
|
return "keyData: buffer expected";
|
|
1077
|
-
if (message.transmissionRiskLevel != null &&
|
|
1112
|
+
if (message.transmissionRiskLevel != null && $Object.hasOwnProperty.call(message, "transmissionRiskLevel"))
|
|
1078
1113
|
if (!$util.isInteger(message.transmissionRiskLevel))
|
|
1079
1114
|
return "transmissionRiskLevel: integer expected";
|
|
1080
|
-
if (message.rollingStartIntervalNumber != null &&
|
|
1115
|
+
if (message.rollingStartIntervalNumber != null && $Object.hasOwnProperty.call(message, "rollingStartIntervalNumber"))
|
|
1081
1116
|
if (!$util.isInteger(message.rollingStartIntervalNumber))
|
|
1082
1117
|
return "rollingStartIntervalNumber: integer expected";
|
|
1083
|
-
if (message.rollingPeriod != null &&
|
|
1118
|
+
if (message.rollingPeriod != null && $Object.hasOwnProperty.call(message, "rollingPeriod"))
|
|
1084
1119
|
if (!$util.isInteger(message.rollingPeriod))
|
|
1085
1120
|
return "rollingPeriod: integer expected";
|
|
1086
|
-
if (message.reportType != null &&
|
|
1121
|
+
if (message.reportType != null && $Object.hasOwnProperty.call(message, "reportType"))
|
|
1087
1122
|
switch (message.reportType) {
|
|
1088
1123
|
default:
|
|
1089
1124
|
return "reportType: enum value expected";
|
|
@@ -1095,7 +1130,7 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1095
1130
|
case 5:
|
|
1096
1131
|
break;
|
|
1097
1132
|
}
|
|
1098
|
-
if (message.daysSinceOnsetOfSymptoms != null &&
|
|
1133
|
+
if (message.daysSinceOnsetOfSymptoms != null && $Object.hasOwnProperty.call(message, "daysSinceOnsetOfSymptoms"))
|
|
1099
1134
|
if (!$util.isInteger(message.daysSinceOnsetOfSymptoms))
|
|
1100
1135
|
return "daysSinceOnsetOfSymptoms: integer expected";
|
|
1101
1136
|
return null;
|
|
@@ -1109,13 +1144,15 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1109
1144
|
* @param {Object.<string,*>} object Plain object
|
|
1110
1145
|
* @returns {TemporaryExposureKey} TemporaryExposureKey
|
|
1111
1146
|
*/
|
|
1112
|
-
TemporaryExposureKey.fromObject = function
|
|
1147
|
+
TemporaryExposureKey.fromObject = function (object, _depth) {
|
|
1113
1148
|
if (object instanceof $root.TemporaryExposureKey)
|
|
1114
1149
|
return object;
|
|
1115
|
-
if (
|
|
1150
|
+
if (!$util.isObject(object))
|
|
1151
|
+
throw $TypeError(".TemporaryExposureKey: object expected");
|
|
1152
|
+
if (_depth === $undefined)
|
|
1116
1153
|
_depth = 0;
|
|
1117
1154
|
if (_depth > $util.recursionLimit)
|
|
1118
|
-
throw Error("max depth exceeded");
|
|
1155
|
+
throw $Error("max depth exceeded");
|
|
1119
1156
|
var message = new $root.TemporaryExposureKey();
|
|
1120
1157
|
if (object.keyData != null)
|
|
1121
1158
|
if (typeof object.keyData === "string")
|
|
@@ -1174,35 +1211,39 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1174
1211
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1175
1212
|
* @returns {Object.<string,*>} Plain object
|
|
1176
1213
|
*/
|
|
1177
|
-
TemporaryExposureKey.toObject = function
|
|
1214
|
+
TemporaryExposureKey.toObject = function (message, options, _depth) {
|
|
1178
1215
|
if (!options)
|
|
1179
1216
|
options = {};
|
|
1217
|
+
if (_depth === $undefined)
|
|
1218
|
+
_depth = 0;
|
|
1219
|
+
if (_depth > $util.recursionLimit)
|
|
1220
|
+
throw $Error("max depth exceeded");
|
|
1180
1221
|
var object = {};
|
|
1181
1222
|
if (options.defaults) {
|
|
1182
|
-
if (options.bytes === String)
|
|
1223
|
+
if (options.bytes === $String)
|
|
1183
1224
|
object.keyData = "";
|
|
1184
1225
|
else {
|
|
1185
1226
|
object.keyData = [];
|
|
1186
|
-
if (options.bytes !== Array)
|
|
1227
|
+
if (options.bytes !== $Array)
|
|
1187
1228
|
object.keyData = $util.newBuffer(object.keyData);
|
|
1188
1229
|
}
|
|
1189
1230
|
object.transmissionRiskLevel = 0;
|
|
1190
1231
|
object.rollingStartIntervalNumber = 0;
|
|
1191
1232
|
object.rollingPeriod = 144;
|
|
1192
|
-
object.reportType = options.enums === String ? "UNKNOWN" : 0;
|
|
1233
|
+
object.reportType = options.enums === $String ? "UNKNOWN" : 0;
|
|
1193
1234
|
object.daysSinceOnsetOfSymptoms = 0;
|
|
1194
1235
|
}
|
|
1195
|
-
if (message.keyData != null &&
|
|
1196
|
-
object.keyData = options.bytes === String ? $util.base64.encode(message.keyData, 0, message.keyData.length) : options.bytes === Array ? Array.prototype.slice.call(message.keyData) : message.keyData;
|
|
1197
|
-
if (message.transmissionRiskLevel != null &&
|
|
1236
|
+
if (message.keyData != null && $Object.hasOwnProperty.call(message, "keyData"))
|
|
1237
|
+
object.keyData = options.bytes === $String ? $util.base64.encode(message.keyData, 0, message.keyData.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.keyData) : message.keyData;
|
|
1238
|
+
if (message.transmissionRiskLevel != null && $Object.hasOwnProperty.call(message, "transmissionRiskLevel"))
|
|
1198
1239
|
object.transmissionRiskLevel = message.transmissionRiskLevel;
|
|
1199
|
-
if (message.rollingStartIntervalNumber != null &&
|
|
1240
|
+
if (message.rollingStartIntervalNumber != null && $Object.hasOwnProperty.call(message, "rollingStartIntervalNumber"))
|
|
1200
1241
|
object.rollingStartIntervalNumber = message.rollingStartIntervalNumber;
|
|
1201
|
-
if (message.rollingPeriod != null &&
|
|
1242
|
+
if (message.rollingPeriod != null && $Object.hasOwnProperty.call(message, "rollingPeriod"))
|
|
1202
1243
|
object.rollingPeriod = message.rollingPeriod;
|
|
1203
|
-
if (message.reportType != null &&
|
|
1204
|
-
object.reportType = options.enums === String ? $root.TemporaryExposureKey.ReportType[message.reportType] === undefined ? message.reportType : $root.TemporaryExposureKey.ReportType[message.reportType] : message.reportType;
|
|
1205
|
-
if (message.daysSinceOnsetOfSymptoms != null &&
|
|
1244
|
+
if (message.reportType != null && $Object.hasOwnProperty.call(message, "reportType"))
|
|
1245
|
+
object.reportType = options.enums === $String ? $root.TemporaryExposureKey.ReportType[message.reportType] === $undefined ? message.reportType : $root.TemporaryExposureKey.ReportType[message.reportType] : message.reportType;
|
|
1246
|
+
if (message.daysSinceOnsetOfSymptoms != null && $Object.hasOwnProperty.call(message, "daysSinceOnsetOfSymptoms"))
|
|
1206
1247
|
object.daysSinceOnsetOfSymptoms = message.daysSinceOnsetOfSymptoms;
|
|
1207
1248
|
return object;
|
|
1208
1249
|
};
|
|
@@ -1214,8 +1255,8 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1214
1255
|
* @instance
|
|
1215
1256
|
* @returns {Object.<string,*>} JSON object
|
|
1216
1257
|
*/
|
|
1217
|
-
TemporaryExposureKey.prototype.toJSON = function
|
|
1218
|
-
return
|
|
1258
|
+
TemporaryExposureKey.prototype.toJSON = function() {
|
|
1259
|
+
return TemporaryExposureKey.toObject(this, $protobuf.util.toJSONOptions);
|
|
1219
1260
|
};
|
|
1220
1261
|
|
|
1221
1262
|
/**
|
|
@@ -1226,8 +1267,8 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1226
1267
|
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
1227
1268
|
* @returns {string} The type url
|
|
1228
1269
|
*/
|
|
1229
|
-
TemporaryExposureKey.getTypeUrl = function
|
|
1230
|
-
if (prefix === undefined)
|
|
1270
|
+
TemporaryExposureKey.getTypeUrl = function(prefix) {
|
|
1271
|
+
if (prefix === $undefined)
|
|
1231
1272
|
prefix = "type.googleapis.com";
|
|
1232
1273
|
return prefix + "/TemporaryExposureKey";
|
|
1233
1274
|
};
|
|
@@ -1244,7 +1285,7 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1244
1285
|
* @property {number} REVOKED=5 REVOKED value
|
|
1245
1286
|
*/
|
|
1246
1287
|
TemporaryExposureKey.ReportType = (function() {
|
|
1247
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
1288
|
+
var valuesById = {}, values = $Object.create(valuesById);
|
|
1248
1289
|
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
1249
1290
|
values[valuesById[1] = "CONFIRMED_TEST"] = 1;
|
|
1250
1291
|
values[valuesById[2] = "CONFIRMED_CLINICAL_DIAGNOSIS"] = 2;
|
|
@@ -1287,13 +1328,13 @@ $root.TEKSignatureList = (function() {
|
|
|
1287
1328
|
* @param {TEKSignatureList.$Properties=} [properties] Properties to set
|
|
1288
1329
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
1289
1330
|
*/
|
|
1290
|
-
function
|
|
1331
|
+
var TEKSignatureList = function (properties) {
|
|
1291
1332
|
this.signatures = [];
|
|
1292
1333
|
if (properties)
|
|
1293
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1334
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1294
1335
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1295
1336
|
this[keys[i]] = properties[keys[i]];
|
|
1296
|
-
}
|
|
1337
|
+
};
|
|
1297
1338
|
|
|
1298
1339
|
/**
|
|
1299
1340
|
* TEKSignatureList signatures.
|
|
@@ -1315,7 +1356,7 @@ $root.TEKSignatureList = (function() {
|
|
|
1315
1356
|
* (properties?: TEKSignatureList.$Properties): TEKSignatureList;
|
|
1316
1357
|
* }}
|
|
1317
1358
|
*/
|
|
1318
|
-
TEKSignatureList.create = function
|
|
1359
|
+
TEKSignatureList.create = function(properties) {
|
|
1319
1360
|
return new TEKSignatureList(properties);
|
|
1320
1361
|
};
|
|
1321
1362
|
|
|
@@ -1328,13 +1369,17 @@ $root.TEKSignatureList = (function() {
|
|
|
1328
1369
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1329
1370
|
* @returns {$protobuf.Writer} Writer
|
|
1330
1371
|
*/
|
|
1331
|
-
TEKSignatureList.encode = function
|
|
1372
|
+
TEKSignatureList.encode = function (message, writer, _depth) {
|
|
1332
1373
|
if (!writer)
|
|
1333
1374
|
writer = $Writer.create();
|
|
1375
|
+
if (_depth === $undefined)
|
|
1376
|
+
_depth = 0;
|
|
1377
|
+
if (_depth > $util.recursionLimit)
|
|
1378
|
+
throw $Error("max depth exceeded");
|
|
1334
1379
|
if (message.signatures != null && message.signatures.length)
|
|
1335
1380
|
for (var i = 0; i < message.signatures.length; ++i)
|
|
1336
|
-
$root.TEKSignature.encode(message.signatures[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
1337
|
-
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
1381
|
+
$root.TEKSignature.encode(message.signatures[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), _depth + 1).ldelim();
|
|
1382
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
1338
1383
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
1339
1384
|
writer.raw(message.$unknowns[i]);
|
|
1340
1385
|
return writer;
|
|
@@ -1349,8 +1394,8 @@ $root.TEKSignatureList = (function() {
|
|
|
1349
1394
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1350
1395
|
* @returns {$protobuf.Writer} Writer
|
|
1351
1396
|
*/
|
|
1352
|
-
TEKSignatureList.encodeDelimited = function
|
|
1353
|
-
return this.encode(message, writer).ldelim();
|
|
1397
|
+
TEKSignatureList.encodeDelimited = function(message, writer) {
|
|
1398
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1354
1399
|
};
|
|
1355
1400
|
|
|
1356
1401
|
/**
|
|
@@ -1364,19 +1409,19 @@ $root.TEKSignatureList = (function() {
|
|
|
1364
1409
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1365
1410
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1366
1411
|
*/
|
|
1367
|
-
TEKSignatureList.decode = function
|
|
1412
|
+
TEKSignatureList.decode = function (reader, length, _end, _depth, _target) {
|
|
1368
1413
|
if (!(reader instanceof $Reader))
|
|
1369
1414
|
reader = $Reader.create(reader);
|
|
1370
|
-
if (_depth === undefined)
|
|
1415
|
+
if (_depth === $undefined)
|
|
1371
1416
|
_depth = 0;
|
|
1372
1417
|
if (_depth > $Reader.recursionLimit)
|
|
1373
|
-
throw Error("max depth exceeded");
|
|
1374
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.TEKSignatureList();
|
|
1418
|
+
throw $Error("max depth exceeded");
|
|
1419
|
+
var end = length === $undefined ? reader.len : reader.pos + length, message = _target || new $root.TEKSignatureList();
|
|
1375
1420
|
while (reader.pos < end) {
|
|
1376
1421
|
var start = reader.pos;
|
|
1377
1422
|
var tag = reader.tag();
|
|
1378
1423
|
if (tag === _end) {
|
|
1379
|
-
_end = undefined;
|
|
1424
|
+
_end = $undefined;
|
|
1380
1425
|
break;
|
|
1381
1426
|
}
|
|
1382
1427
|
var wireType = tag & 7;
|
|
@@ -1386,16 +1431,18 @@ $root.TEKSignatureList = (function() {
|
|
|
1386
1431
|
break;
|
|
1387
1432
|
if (!(message.signatures && message.signatures.length))
|
|
1388
1433
|
message.signatures = [];
|
|
1389
|
-
message.signatures.push($root.TEKSignature.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
1434
|
+
message.signatures.push($root.TEKSignature.decode(reader, reader.uint32(), $undefined, _depth + 1));
|
|
1390
1435
|
continue;
|
|
1391
1436
|
}
|
|
1392
1437
|
}
|
|
1393
1438
|
reader.skipType(wireType, _depth, tag);
|
|
1394
|
-
|
|
1395
|
-
|
|
1439
|
+
if (!reader.discardUnknown) {
|
|
1440
|
+
$util.makeProp(message, "$unknowns", false);
|
|
1441
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
1442
|
+
}
|
|
1396
1443
|
}
|
|
1397
|
-
if (_end !== undefined)
|
|
1398
|
-
throw Error("missing end group");
|
|
1444
|
+
if (_end !== $undefined)
|
|
1445
|
+
throw $Error("missing end group");
|
|
1399
1446
|
return message;
|
|
1400
1447
|
};
|
|
1401
1448
|
|
|
@@ -1409,7 +1456,7 @@ $root.TEKSignatureList = (function() {
|
|
|
1409
1456
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1410
1457
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1411
1458
|
*/
|
|
1412
|
-
TEKSignatureList.decodeDelimited = function
|
|
1459
|
+
TEKSignatureList.decodeDelimited = function(reader) {
|
|
1413
1460
|
if (!(reader instanceof $Reader))
|
|
1414
1461
|
reader = new $Reader(reader);
|
|
1415
1462
|
return this.decode(reader, reader.uint32());
|
|
@@ -1423,15 +1470,15 @@ $root.TEKSignatureList = (function() {
|
|
|
1423
1470
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1424
1471
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1425
1472
|
*/
|
|
1426
|
-
TEKSignatureList.verify = function
|
|
1473
|
+
TEKSignatureList.verify = function (message, _depth) {
|
|
1427
1474
|
if (typeof message !== "object" || message === null)
|
|
1428
1475
|
return "object expected";
|
|
1429
|
-
if (_depth === undefined)
|
|
1476
|
+
if (_depth === $undefined)
|
|
1430
1477
|
_depth = 0;
|
|
1431
1478
|
if (_depth > $util.recursionLimit)
|
|
1432
1479
|
return "max depth exceeded";
|
|
1433
|
-
if (message.signatures != null &&
|
|
1434
|
-
if (
|
|
1480
|
+
if (message.signatures != null && $Object.hasOwnProperty.call(message, "signatures")) {
|
|
1481
|
+
if (!$Array.isArray(message.signatures))
|
|
1435
1482
|
return "signatures: array expected";
|
|
1436
1483
|
for (var i = 0; i < message.signatures.length; ++i) {
|
|
1437
1484
|
var error = $root.TEKSignature.verify(message.signatures[i], _depth + 1);
|
|
@@ -1450,21 +1497,23 @@ $root.TEKSignatureList = (function() {
|
|
|
1450
1497
|
* @param {Object.<string,*>} object Plain object
|
|
1451
1498
|
* @returns {TEKSignatureList} TEKSignatureList
|
|
1452
1499
|
*/
|
|
1453
|
-
TEKSignatureList.fromObject = function
|
|
1500
|
+
TEKSignatureList.fromObject = function (object, _depth) {
|
|
1454
1501
|
if (object instanceof $root.TEKSignatureList)
|
|
1455
1502
|
return object;
|
|
1456
|
-
if (
|
|
1503
|
+
if (!$util.isObject(object))
|
|
1504
|
+
throw $TypeError(".TEKSignatureList: object expected");
|
|
1505
|
+
if (_depth === $undefined)
|
|
1457
1506
|
_depth = 0;
|
|
1458
1507
|
if (_depth > $util.recursionLimit)
|
|
1459
|
-
throw Error("max depth exceeded");
|
|
1508
|
+
throw $Error("max depth exceeded");
|
|
1460
1509
|
var message = new $root.TEKSignatureList();
|
|
1461
1510
|
if (object.signatures) {
|
|
1462
|
-
if (
|
|
1463
|
-
throw TypeError(".TEKSignatureList.signatures: array expected");
|
|
1464
|
-
message.signatures = Array(object.signatures.length);
|
|
1511
|
+
if (!$Array.isArray(object.signatures))
|
|
1512
|
+
throw $TypeError(".TEKSignatureList.signatures: array expected");
|
|
1513
|
+
message.signatures = $Array(object.signatures.length);
|
|
1465
1514
|
for (var i = 0; i < object.signatures.length; ++i) {
|
|
1466
|
-
if (
|
|
1467
|
-
throw TypeError(".TEKSignatureList.signatures: object expected");
|
|
1515
|
+
if (!$util.isObject(object.signatures[i]))
|
|
1516
|
+
throw $TypeError(".TEKSignatureList.signatures: object expected");
|
|
1468
1517
|
message.signatures[i] = $root.TEKSignature.fromObject(object.signatures[i], _depth + 1);
|
|
1469
1518
|
}
|
|
1470
1519
|
}
|
|
@@ -1480,16 +1529,20 @@ $root.TEKSignatureList = (function() {
|
|
|
1480
1529
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1481
1530
|
* @returns {Object.<string,*>} Plain object
|
|
1482
1531
|
*/
|
|
1483
|
-
TEKSignatureList.toObject = function
|
|
1532
|
+
TEKSignatureList.toObject = function (message, options, _depth) {
|
|
1484
1533
|
if (!options)
|
|
1485
1534
|
options = {};
|
|
1535
|
+
if (_depth === $undefined)
|
|
1536
|
+
_depth = 0;
|
|
1537
|
+
if (_depth > $util.recursionLimit)
|
|
1538
|
+
throw $Error("max depth exceeded");
|
|
1486
1539
|
var object = {};
|
|
1487
1540
|
if (options.arrays || options.defaults)
|
|
1488
1541
|
object.signatures = [];
|
|
1489
1542
|
if (message.signatures && message.signatures.length) {
|
|
1490
|
-
object.signatures = Array(message.signatures.length);
|
|
1543
|
+
object.signatures = $Array(message.signatures.length);
|
|
1491
1544
|
for (var j = 0; j < message.signatures.length; ++j)
|
|
1492
|
-
object.signatures[j] = $root.TEKSignature.toObject(message.signatures[j], options);
|
|
1545
|
+
object.signatures[j] = $root.TEKSignature.toObject(message.signatures[j], options, _depth + 1);
|
|
1493
1546
|
}
|
|
1494
1547
|
return object;
|
|
1495
1548
|
};
|
|
@@ -1501,8 +1554,8 @@ $root.TEKSignatureList = (function() {
|
|
|
1501
1554
|
* @instance
|
|
1502
1555
|
* @returns {Object.<string,*>} JSON object
|
|
1503
1556
|
*/
|
|
1504
|
-
TEKSignatureList.prototype.toJSON = function
|
|
1505
|
-
return
|
|
1557
|
+
TEKSignatureList.prototype.toJSON = function() {
|
|
1558
|
+
return TEKSignatureList.toObject(this, $protobuf.util.toJSONOptions);
|
|
1506
1559
|
};
|
|
1507
1560
|
|
|
1508
1561
|
/**
|
|
@@ -1513,8 +1566,8 @@ $root.TEKSignatureList = (function() {
|
|
|
1513
1566
|
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
1514
1567
|
* @returns {string} The type url
|
|
1515
1568
|
*/
|
|
1516
|
-
TEKSignatureList.getTypeUrl = function
|
|
1517
|
-
if (prefix === undefined)
|
|
1569
|
+
TEKSignatureList.getTypeUrl = function(prefix) {
|
|
1570
|
+
if (prefix === $undefined)
|
|
1518
1571
|
prefix = "type.googleapis.com";
|
|
1519
1572
|
return prefix + "/TEKSignatureList";
|
|
1520
1573
|
};
|
|
@@ -1555,12 +1608,12 @@ $root.TEKSignature = (function() {
|
|
|
1555
1608
|
* @param {TEKSignature.$Properties=} [properties] Properties to set
|
|
1556
1609
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
1557
1610
|
*/
|
|
1558
|
-
function
|
|
1611
|
+
var TEKSignature = function (properties) {
|
|
1559
1612
|
if (properties)
|
|
1560
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1613
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1561
1614
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1562
1615
|
this[keys[i]] = properties[keys[i]];
|
|
1563
|
-
}
|
|
1616
|
+
};
|
|
1564
1617
|
|
|
1565
1618
|
/**
|
|
1566
1619
|
* TEKSignature signatureInfo.
|
|
@@ -1606,7 +1659,7 @@ $root.TEKSignature = (function() {
|
|
|
1606
1659
|
* (properties?: TEKSignature.$Properties): TEKSignature;
|
|
1607
1660
|
* }}
|
|
1608
1661
|
*/
|
|
1609
|
-
TEKSignature.create = function
|
|
1662
|
+
TEKSignature.create = function(properties) {
|
|
1610
1663
|
return new TEKSignature(properties);
|
|
1611
1664
|
};
|
|
1612
1665
|
|
|
@@ -1619,18 +1672,22 @@ $root.TEKSignature = (function() {
|
|
|
1619
1672
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1620
1673
|
* @returns {$protobuf.Writer} Writer
|
|
1621
1674
|
*/
|
|
1622
|
-
TEKSignature.encode = function
|
|
1675
|
+
TEKSignature.encode = function (message, writer, _depth) {
|
|
1623
1676
|
if (!writer)
|
|
1624
1677
|
writer = $Writer.create();
|
|
1625
|
-
if (
|
|
1626
|
-
|
|
1627
|
-
if (
|
|
1678
|
+
if (_depth === $undefined)
|
|
1679
|
+
_depth = 0;
|
|
1680
|
+
if (_depth > $util.recursionLimit)
|
|
1681
|
+
throw $Error("max depth exceeded");
|
|
1682
|
+
if (message.signatureInfo != null && $Object.hasOwnProperty.call(message, "signatureInfo"))
|
|
1683
|
+
$root.SignatureInfo.encode(message.signatureInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork(), _depth + 1).ldelim();
|
|
1684
|
+
if (message.batchNum != null && $Object.hasOwnProperty.call(message, "batchNum"))
|
|
1628
1685
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.batchNum);
|
|
1629
|
-
if (message.batchSize != null && Object.hasOwnProperty.call(message, "batchSize"))
|
|
1686
|
+
if (message.batchSize != null && $Object.hasOwnProperty.call(message, "batchSize"))
|
|
1630
1687
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.batchSize);
|
|
1631
|
-
if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
|
|
1688
|
+
if (message.signature != null && $Object.hasOwnProperty.call(message, "signature"))
|
|
1632
1689
|
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signature);
|
|
1633
|
-
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
1690
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
1634
1691
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
1635
1692
|
writer.raw(message.$unknowns[i]);
|
|
1636
1693
|
return writer;
|
|
@@ -1645,8 +1702,8 @@ $root.TEKSignature = (function() {
|
|
|
1645
1702
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1646
1703
|
* @returns {$protobuf.Writer} Writer
|
|
1647
1704
|
*/
|
|
1648
|
-
TEKSignature.encodeDelimited = function
|
|
1649
|
-
return this.encode(message, writer).ldelim();
|
|
1705
|
+
TEKSignature.encodeDelimited = function(message, writer) {
|
|
1706
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
1650
1707
|
};
|
|
1651
1708
|
|
|
1652
1709
|
/**
|
|
@@ -1660,19 +1717,19 @@ $root.TEKSignature = (function() {
|
|
|
1660
1717
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1661
1718
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1662
1719
|
*/
|
|
1663
|
-
TEKSignature.decode = function
|
|
1720
|
+
TEKSignature.decode = function (reader, length, _end, _depth, _target) {
|
|
1664
1721
|
if (!(reader instanceof $Reader))
|
|
1665
1722
|
reader = $Reader.create(reader);
|
|
1666
|
-
if (_depth === undefined)
|
|
1723
|
+
if (_depth === $undefined)
|
|
1667
1724
|
_depth = 0;
|
|
1668
1725
|
if (_depth > $Reader.recursionLimit)
|
|
1669
|
-
throw Error("max depth exceeded");
|
|
1670
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.TEKSignature();
|
|
1726
|
+
throw $Error("max depth exceeded");
|
|
1727
|
+
var end = length === $undefined ? reader.len : reader.pos + length, message = _target || new $root.TEKSignature();
|
|
1671
1728
|
while (reader.pos < end) {
|
|
1672
1729
|
var start = reader.pos;
|
|
1673
1730
|
var tag = reader.tag();
|
|
1674
1731
|
if (tag === _end) {
|
|
1675
|
-
_end = undefined;
|
|
1732
|
+
_end = $undefined;
|
|
1676
1733
|
break;
|
|
1677
1734
|
}
|
|
1678
1735
|
var wireType = tag & 7;
|
|
@@ -1680,7 +1737,7 @@ $root.TEKSignature = (function() {
|
|
|
1680
1737
|
case 1: {
|
|
1681
1738
|
if (wireType !== 2)
|
|
1682
1739
|
break;
|
|
1683
|
-
message.signatureInfo = $root.SignatureInfo.decode(reader, reader.uint32(), undefined, _depth + 1, message.signatureInfo);
|
|
1740
|
+
message.signatureInfo = $root.SignatureInfo.decode(reader, reader.uint32(), $undefined, _depth + 1, message.signatureInfo);
|
|
1684
1741
|
continue;
|
|
1685
1742
|
}
|
|
1686
1743
|
case 2: {
|
|
@@ -1703,11 +1760,13 @@ $root.TEKSignature = (function() {
|
|
|
1703
1760
|
}
|
|
1704
1761
|
}
|
|
1705
1762
|
reader.skipType(wireType, _depth, tag);
|
|
1706
|
-
|
|
1707
|
-
|
|
1763
|
+
if (!reader.discardUnknown) {
|
|
1764
|
+
$util.makeProp(message, "$unknowns", false);
|
|
1765
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
1766
|
+
}
|
|
1708
1767
|
}
|
|
1709
|
-
if (_end !== undefined)
|
|
1710
|
-
throw Error("missing end group");
|
|
1768
|
+
if (_end !== $undefined)
|
|
1769
|
+
throw $Error("missing end group");
|
|
1711
1770
|
return message;
|
|
1712
1771
|
};
|
|
1713
1772
|
|
|
@@ -1721,7 +1780,7 @@ $root.TEKSignature = (function() {
|
|
|
1721
1780
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1722
1781
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1723
1782
|
*/
|
|
1724
|
-
TEKSignature.decodeDelimited = function
|
|
1783
|
+
TEKSignature.decodeDelimited = function(reader) {
|
|
1725
1784
|
if (!(reader instanceof $Reader))
|
|
1726
1785
|
reader = new $Reader(reader);
|
|
1727
1786
|
return this.decode(reader, reader.uint32());
|
|
@@ -1735,25 +1794,25 @@ $root.TEKSignature = (function() {
|
|
|
1735
1794
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1736
1795
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1737
1796
|
*/
|
|
1738
|
-
TEKSignature.verify = function
|
|
1797
|
+
TEKSignature.verify = function (message, _depth) {
|
|
1739
1798
|
if (typeof message !== "object" || message === null)
|
|
1740
1799
|
return "object expected";
|
|
1741
|
-
if (_depth === undefined)
|
|
1800
|
+
if (_depth === $undefined)
|
|
1742
1801
|
_depth = 0;
|
|
1743
1802
|
if (_depth > $util.recursionLimit)
|
|
1744
1803
|
return "max depth exceeded";
|
|
1745
|
-
if (message.signatureInfo != null &&
|
|
1804
|
+
if (message.signatureInfo != null && $Object.hasOwnProperty.call(message, "signatureInfo")) {
|
|
1746
1805
|
var error = $root.SignatureInfo.verify(message.signatureInfo, _depth + 1);
|
|
1747
1806
|
if (error)
|
|
1748
1807
|
return "signatureInfo." + error;
|
|
1749
1808
|
}
|
|
1750
|
-
if (message.batchNum != null &&
|
|
1809
|
+
if (message.batchNum != null && $Object.hasOwnProperty.call(message, "batchNum"))
|
|
1751
1810
|
if (!$util.isInteger(message.batchNum))
|
|
1752
1811
|
return "batchNum: integer expected";
|
|
1753
|
-
if (message.batchSize != null &&
|
|
1812
|
+
if (message.batchSize != null && $Object.hasOwnProperty.call(message, "batchSize"))
|
|
1754
1813
|
if (!$util.isInteger(message.batchSize))
|
|
1755
1814
|
return "batchSize: integer expected";
|
|
1756
|
-
if (message.signature != null &&
|
|
1815
|
+
if (message.signature != null && $Object.hasOwnProperty.call(message, "signature"))
|
|
1757
1816
|
if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature)))
|
|
1758
1817
|
return "signature: buffer expected";
|
|
1759
1818
|
return null;
|
|
@@ -1767,17 +1826,19 @@ $root.TEKSignature = (function() {
|
|
|
1767
1826
|
* @param {Object.<string,*>} object Plain object
|
|
1768
1827
|
* @returns {TEKSignature} TEKSignature
|
|
1769
1828
|
*/
|
|
1770
|
-
TEKSignature.fromObject = function
|
|
1829
|
+
TEKSignature.fromObject = function (object, _depth) {
|
|
1771
1830
|
if (object instanceof $root.TEKSignature)
|
|
1772
1831
|
return object;
|
|
1773
|
-
if (
|
|
1832
|
+
if (!$util.isObject(object))
|
|
1833
|
+
throw $TypeError(".TEKSignature: object expected");
|
|
1834
|
+
if (_depth === $undefined)
|
|
1774
1835
|
_depth = 0;
|
|
1775
1836
|
if (_depth > $util.recursionLimit)
|
|
1776
|
-
throw Error("max depth exceeded");
|
|
1837
|
+
throw $Error("max depth exceeded");
|
|
1777
1838
|
var message = new $root.TEKSignature();
|
|
1778
1839
|
if (object.signatureInfo != null) {
|
|
1779
|
-
if (
|
|
1780
|
-
throw TypeError(".TEKSignature.signatureInfo: object expected");
|
|
1840
|
+
if (!$util.isObject(object.signatureInfo))
|
|
1841
|
+
throw $TypeError(".TEKSignature.signatureInfo: object expected");
|
|
1781
1842
|
message.signatureInfo = $root.SignatureInfo.fromObject(object.signatureInfo, _depth + 1);
|
|
1782
1843
|
}
|
|
1783
1844
|
if (object.batchNum != null)
|
|
@@ -1801,30 +1862,34 @@ $root.TEKSignature = (function() {
|
|
|
1801
1862
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1802
1863
|
* @returns {Object.<string,*>} Plain object
|
|
1803
1864
|
*/
|
|
1804
|
-
TEKSignature.toObject = function
|
|
1865
|
+
TEKSignature.toObject = function (message, options, _depth) {
|
|
1805
1866
|
if (!options)
|
|
1806
1867
|
options = {};
|
|
1868
|
+
if (_depth === $undefined)
|
|
1869
|
+
_depth = 0;
|
|
1870
|
+
if (_depth > $util.recursionLimit)
|
|
1871
|
+
throw $Error("max depth exceeded");
|
|
1807
1872
|
var object = {};
|
|
1808
1873
|
if (options.defaults) {
|
|
1809
1874
|
object.signatureInfo = null;
|
|
1810
1875
|
object.batchNum = 0;
|
|
1811
1876
|
object.batchSize = 0;
|
|
1812
|
-
if (options.bytes === String)
|
|
1877
|
+
if (options.bytes === $String)
|
|
1813
1878
|
object.signature = "";
|
|
1814
1879
|
else {
|
|
1815
1880
|
object.signature = [];
|
|
1816
|
-
if (options.bytes !== Array)
|
|
1881
|
+
if (options.bytes !== $Array)
|
|
1817
1882
|
object.signature = $util.newBuffer(object.signature);
|
|
1818
1883
|
}
|
|
1819
1884
|
}
|
|
1820
|
-
if (message.signatureInfo != null &&
|
|
1821
|
-
object.signatureInfo = $root.SignatureInfo.toObject(message.signatureInfo, options);
|
|
1822
|
-
if (message.batchNum != null &&
|
|
1885
|
+
if (message.signatureInfo != null && $Object.hasOwnProperty.call(message, "signatureInfo"))
|
|
1886
|
+
object.signatureInfo = $root.SignatureInfo.toObject(message.signatureInfo, options, _depth + 1);
|
|
1887
|
+
if (message.batchNum != null && $Object.hasOwnProperty.call(message, "batchNum"))
|
|
1823
1888
|
object.batchNum = message.batchNum;
|
|
1824
|
-
if (message.batchSize != null &&
|
|
1889
|
+
if (message.batchSize != null && $Object.hasOwnProperty.call(message, "batchSize"))
|
|
1825
1890
|
object.batchSize = message.batchSize;
|
|
1826
|
-
if (message.signature != null &&
|
|
1827
|
-
object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature;
|
|
1891
|
+
if (message.signature != null && $Object.hasOwnProperty.call(message, "signature"))
|
|
1892
|
+
object.signature = options.bytes === $String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.signature) : message.signature;
|
|
1828
1893
|
return object;
|
|
1829
1894
|
};
|
|
1830
1895
|
|
|
@@ -1835,8 +1900,8 @@ $root.TEKSignature = (function() {
|
|
|
1835
1900
|
* @instance
|
|
1836
1901
|
* @returns {Object.<string,*>} JSON object
|
|
1837
1902
|
*/
|
|
1838
|
-
TEKSignature.prototype.toJSON = function
|
|
1839
|
-
return
|
|
1903
|
+
TEKSignature.prototype.toJSON = function() {
|
|
1904
|
+
return TEKSignature.toObject(this, $protobuf.util.toJSONOptions);
|
|
1840
1905
|
};
|
|
1841
1906
|
|
|
1842
1907
|
/**
|
|
@@ -1847,8 +1912,8 @@ $root.TEKSignature = (function() {
|
|
|
1847
1912
|
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
1848
1913
|
* @returns {string} The type url
|
|
1849
1914
|
*/
|
|
1850
|
-
TEKSignature.getTypeUrl = function
|
|
1851
|
-
if (prefix === undefined)
|
|
1915
|
+
TEKSignature.getTypeUrl = function(prefix) {
|
|
1916
|
+
if (prefix === $undefined)
|
|
1852
1917
|
prefix = "type.googleapis.com";
|
|
1853
1918
|
return prefix + "/TEKSignature";
|
|
1854
1919
|
};
|