exposure-keys 1.18.0 → 1.18.2
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 +11 -8
- package/proto/export.d.ts +152 -109
- package/proto/export.js +423 -194
package/proto/export.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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*/
|
|
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*/
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var $protobuf = require("protobufjs/minimal");
|
|
@@ -13,25 +13,38 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Properties of a TemporaryExposureKeyExport.
|
|
16
|
-
* @
|
|
17
|
-
* @interface ITemporaryExposureKeyExport
|
|
16
|
+
* @typedef {Object} TemporaryExposureKeyExport.$Properties
|
|
18
17
|
* @property {number|Long|null} [startTimestamp] TemporaryExposureKeyExport startTimestamp
|
|
19
18
|
* @property {number|Long|null} [endTimestamp] TemporaryExposureKeyExport endTimestamp
|
|
20
19
|
* @property {string|null} [region] TemporaryExposureKeyExport region
|
|
21
20
|
* @property {number|null} [batchNum] TemporaryExposureKeyExport batchNum
|
|
22
21
|
* @property {number|null} [batchSize] TemporaryExposureKeyExport batchSize
|
|
23
|
-
* @property {Array.<
|
|
24
|
-
* @property {Array.<
|
|
25
|
-
* @property {Array.<
|
|
22
|
+
* @property {Array.<SignatureInfo.$Properties>|null} [signatureInfos] TemporaryExposureKeyExport signatureInfos
|
|
23
|
+
* @property {Array.<TemporaryExposureKey.$Properties>|null} [keys] TemporaryExposureKeyExport keys
|
|
24
|
+
* @property {Array.<TemporaryExposureKey.$Properties>|null} [revisedKeys] TemporaryExposureKeyExport revisedKeys
|
|
25
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Properties of a TemporaryExposureKeyExport.
|
|
30
|
+
* @exports ITemporaryExposureKeyExport
|
|
31
|
+
* @interface ITemporaryExposureKeyExport
|
|
32
|
+
* @augments TemporaryExposureKeyExport.$Properties
|
|
33
|
+
* @deprecated Use TemporaryExposureKeyExport.$Properties instead.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Shape of a TemporaryExposureKeyExport.
|
|
38
|
+
* @typedef {TemporaryExposureKeyExport.$Properties} TemporaryExposureKeyExport.$Shape
|
|
26
39
|
*/
|
|
27
40
|
|
|
28
41
|
/**
|
|
29
42
|
* Constructs a new TemporaryExposureKeyExport.
|
|
30
43
|
* @exports TemporaryExposureKeyExport
|
|
31
44
|
* @classdesc Represents a TemporaryExposureKeyExport.
|
|
32
|
-
* @implements ITemporaryExposureKeyExport
|
|
33
45
|
* @constructor
|
|
34
|
-
* @param {
|
|
46
|
+
* @param {TemporaryExposureKeyExport.$Properties=} [properties] Properties to set
|
|
47
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
35
48
|
*/
|
|
36
49
|
function TemporaryExposureKeyExport(properties) {
|
|
37
50
|
this.signatureInfos = [];
|
|
@@ -39,7 +52,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
39
52
|
this.revisedKeys = [];
|
|
40
53
|
if (properties)
|
|
41
54
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42
|
-
if (properties[keys[i]] != null)
|
|
55
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
43
56
|
this[keys[i]] = properties[keys[i]];
|
|
44
57
|
}
|
|
45
58
|
|
|
@@ -85,7 +98,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
85
98
|
|
|
86
99
|
/**
|
|
87
100
|
* TemporaryExposureKeyExport signatureInfos.
|
|
88
|
-
* @member {Array.<
|
|
101
|
+
* @member {Array.<SignatureInfo.$Properties>} signatureInfos
|
|
89
102
|
* @memberof TemporaryExposureKeyExport
|
|
90
103
|
* @instance
|
|
91
104
|
*/
|
|
@@ -93,7 +106,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
93
106
|
|
|
94
107
|
/**
|
|
95
108
|
* TemporaryExposureKeyExport keys.
|
|
96
|
-
* @member {Array.<
|
|
109
|
+
* @member {Array.<TemporaryExposureKey.$Properties>} keys
|
|
97
110
|
* @memberof TemporaryExposureKeyExport
|
|
98
111
|
* @instance
|
|
99
112
|
*/
|
|
@@ -101,7 +114,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
101
114
|
|
|
102
115
|
/**
|
|
103
116
|
* TemporaryExposureKeyExport revisedKeys.
|
|
104
|
-
* @member {Array.<
|
|
117
|
+
* @member {Array.<TemporaryExposureKey.$Properties>} revisedKeys
|
|
105
118
|
* @memberof TemporaryExposureKeyExport
|
|
106
119
|
* @instance
|
|
107
120
|
*/
|
|
@@ -112,8 +125,12 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
112
125
|
* @function create
|
|
113
126
|
* @memberof TemporaryExposureKeyExport
|
|
114
127
|
* @static
|
|
115
|
-
* @param {
|
|
128
|
+
* @param {TemporaryExposureKeyExport.$Properties=} [properties] Properties to set
|
|
116
129
|
* @returns {TemporaryExposureKeyExport} TemporaryExposureKeyExport instance
|
|
130
|
+
* @type {{
|
|
131
|
+
* (properties: TemporaryExposureKeyExport.$Shape): TemporaryExposureKeyExport & TemporaryExposureKeyExport.$Shape;
|
|
132
|
+
* (properties?: TemporaryExposureKeyExport.$Properties): TemporaryExposureKeyExport;
|
|
133
|
+
* }}
|
|
117
134
|
*/
|
|
118
135
|
TemporaryExposureKeyExport.create = function create(properties) {
|
|
119
136
|
return new TemporaryExposureKeyExport(properties);
|
|
@@ -124,7 +141,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
124
141
|
* @function encode
|
|
125
142
|
* @memberof TemporaryExposureKeyExport
|
|
126
143
|
* @static
|
|
127
|
-
* @param {
|
|
144
|
+
* @param {TemporaryExposureKeyExport.$Properties} message TemporaryExposureKeyExport message or plain object to encode
|
|
128
145
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129
146
|
* @returns {$protobuf.Writer} Writer
|
|
130
147
|
*/
|
|
@@ -150,6 +167,9 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
150
167
|
if (message.revisedKeys != null && message.revisedKeys.length)
|
|
151
168
|
for (var i = 0; i < message.revisedKeys.length; ++i)
|
|
152
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"))
|
|
171
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
172
|
+
writer.raw(message.$unknowns[i]);
|
|
153
173
|
return writer;
|
|
154
174
|
};
|
|
155
175
|
|
|
@@ -158,7 +178,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
158
178
|
* @function encodeDelimited
|
|
159
179
|
* @memberof TemporaryExposureKeyExport
|
|
160
180
|
* @static
|
|
161
|
-
* @param {
|
|
181
|
+
* @param {TemporaryExposureKeyExport.$Properties} message TemporaryExposureKeyExport message or plain object to encode
|
|
162
182
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
163
183
|
* @returns {$protobuf.Writer} Writer
|
|
164
184
|
*/
|
|
@@ -173,62 +193,88 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
173
193
|
* @static
|
|
174
194
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
175
195
|
* @param {number} [length] Message length if known beforehand
|
|
176
|
-
* @returns {TemporaryExposureKeyExport} TemporaryExposureKeyExport
|
|
196
|
+
* @returns {TemporaryExposureKeyExport & TemporaryExposureKeyExport.$Shape} TemporaryExposureKeyExport
|
|
177
197
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
178
198
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
179
199
|
*/
|
|
180
|
-
TemporaryExposureKeyExport.decode = function decode(reader, length,
|
|
200
|
+
TemporaryExposureKeyExport.decode = function decode(reader, length, _end, _depth, _target) {
|
|
181
201
|
if (!(reader instanceof $Reader))
|
|
182
202
|
reader = $Reader.create(reader);
|
|
183
|
-
|
|
203
|
+
if (_depth === undefined)
|
|
204
|
+
_depth = 0;
|
|
205
|
+
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();
|
|
184
208
|
while (reader.pos < end) {
|
|
185
|
-
var
|
|
186
|
-
|
|
209
|
+
var start = reader.pos;
|
|
210
|
+
var tag = reader.tag();
|
|
211
|
+
if (tag === _end) {
|
|
212
|
+
_end = undefined;
|
|
187
213
|
break;
|
|
188
|
-
|
|
214
|
+
}
|
|
215
|
+
var wireType = tag & 7;
|
|
216
|
+
switch (tag >>>= 3) {
|
|
189
217
|
case 1: {
|
|
218
|
+
if (wireType !== 1)
|
|
219
|
+
break;
|
|
190
220
|
message.startTimestamp = reader.fixed64();
|
|
191
|
-
|
|
221
|
+
continue;
|
|
192
222
|
}
|
|
193
223
|
case 2: {
|
|
224
|
+
if (wireType !== 1)
|
|
225
|
+
break;
|
|
194
226
|
message.endTimestamp = reader.fixed64();
|
|
195
|
-
|
|
227
|
+
continue;
|
|
196
228
|
}
|
|
197
229
|
case 3: {
|
|
230
|
+
if (wireType !== 2)
|
|
231
|
+
break;
|
|
198
232
|
message.region = reader.string();
|
|
199
|
-
|
|
233
|
+
continue;
|
|
200
234
|
}
|
|
201
235
|
case 4: {
|
|
236
|
+
if (wireType !== 0)
|
|
237
|
+
break;
|
|
202
238
|
message.batchNum = reader.int32();
|
|
203
|
-
|
|
239
|
+
continue;
|
|
204
240
|
}
|
|
205
241
|
case 5: {
|
|
242
|
+
if (wireType !== 0)
|
|
243
|
+
break;
|
|
206
244
|
message.batchSize = reader.int32();
|
|
207
|
-
|
|
245
|
+
continue;
|
|
208
246
|
}
|
|
209
247
|
case 6: {
|
|
248
|
+
if (wireType !== 2)
|
|
249
|
+
break;
|
|
210
250
|
if (!(message.signatureInfos && message.signatureInfos.length))
|
|
211
251
|
message.signatureInfos = [];
|
|
212
|
-
message.signatureInfos.push($root.SignatureInfo.decode(reader, reader.uint32()));
|
|
213
|
-
|
|
252
|
+
message.signatureInfos.push($root.SignatureInfo.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
253
|
+
continue;
|
|
214
254
|
}
|
|
215
255
|
case 7: {
|
|
256
|
+
if (wireType !== 2)
|
|
257
|
+
break;
|
|
216
258
|
if (!(message.keys && message.keys.length))
|
|
217
259
|
message.keys = [];
|
|
218
|
-
message.keys.push($root.TemporaryExposureKey.decode(reader, reader.uint32()));
|
|
219
|
-
|
|
260
|
+
message.keys.push($root.TemporaryExposureKey.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
261
|
+
continue;
|
|
220
262
|
}
|
|
221
263
|
case 8: {
|
|
264
|
+
if (wireType !== 2)
|
|
265
|
+
break;
|
|
222
266
|
if (!(message.revisedKeys && message.revisedKeys.length))
|
|
223
267
|
message.revisedKeys = [];
|
|
224
|
-
message.revisedKeys.push($root.TemporaryExposureKey.decode(reader, reader.uint32()));
|
|
225
|
-
|
|
268
|
+
message.revisedKeys.push($root.TemporaryExposureKey.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
269
|
+
continue;
|
|
226
270
|
}
|
|
227
|
-
default:
|
|
228
|
-
reader.skipType(tag & 7);
|
|
229
|
-
break;
|
|
230
271
|
}
|
|
272
|
+
reader.skipType(wireType, _depth, tag);
|
|
273
|
+
$util.makeProp(message, "$unknowns", false);
|
|
274
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
231
275
|
}
|
|
276
|
+
if (_end !== undefined)
|
|
277
|
+
throw Error("missing end group");
|
|
232
278
|
return message;
|
|
233
279
|
};
|
|
234
280
|
|
|
@@ -238,7 +284,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
238
284
|
* @memberof TemporaryExposureKeyExport
|
|
239
285
|
* @static
|
|
240
286
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
241
|
-
* @returns {TemporaryExposureKeyExport} TemporaryExposureKeyExport
|
|
287
|
+
* @returns {TemporaryExposureKeyExport & TemporaryExposureKeyExport.$Shape} TemporaryExposureKeyExport
|
|
242
288
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
243
289
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
244
290
|
*/
|
|
@@ -256,9 +302,13 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
256
302
|
* @param {Object.<string,*>} message Plain object to verify
|
|
257
303
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
258
304
|
*/
|
|
259
|
-
TemporaryExposureKeyExport.verify = function verify(message) {
|
|
305
|
+
TemporaryExposureKeyExport.verify = function verify(message, _depth) {
|
|
260
306
|
if (typeof message !== "object" || message === null)
|
|
261
307
|
return "object expected";
|
|
308
|
+
if (_depth === undefined)
|
|
309
|
+
_depth = 0;
|
|
310
|
+
if (_depth > $util.recursionLimit)
|
|
311
|
+
return "max depth exceeded";
|
|
262
312
|
if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp"))
|
|
263
313
|
if (!$util.isInteger(message.startTimestamp) && !(message.startTimestamp && $util.isInteger(message.startTimestamp.low) && $util.isInteger(message.startTimestamp.high)))
|
|
264
314
|
return "startTimestamp: integer|Long expected";
|
|
@@ -278,7 +328,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
278
328
|
if (!Array.isArray(message.signatureInfos))
|
|
279
329
|
return "signatureInfos: array expected";
|
|
280
330
|
for (var i = 0; i < message.signatureInfos.length; ++i) {
|
|
281
|
-
var error = $root.SignatureInfo.verify(message.signatureInfos[i]);
|
|
331
|
+
var error = $root.SignatureInfo.verify(message.signatureInfos[i], _depth + 1);
|
|
282
332
|
if (error)
|
|
283
333
|
return "signatureInfos." + error;
|
|
284
334
|
}
|
|
@@ -287,7 +337,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
287
337
|
if (!Array.isArray(message.keys))
|
|
288
338
|
return "keys: array expected";
|
|
289
339
|
for (var i = 0; i < message.keys.length; ++i) {
|
|
290
|
-
var error = $root.TemporaryExposureKey.verify(message.keys[i]);
|
|
340
|
+
var error = $root.TemporaryExposureKey.verify(message.keys[i], _depth + 1);
|
|
291
341
|
if (error)
|
|
292
342
|
return "keys." + error;
|
|
293
343
|
}
|
|
@@ -296,7 +346,7 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
296
346
|
if (!Array.isArray(message.revisedKeys))
|
|
297
347
|
return "revisedKeys: array expected";
|
|
298
348
|
for (var i = 0; i < message.revisedKeys.length; ++i) {
|
|
299
|
-
var error = $root.TemporaryExposureKey.verify(message.revisedKeys[i]);
|
|
349
|
+
var error = $root.TemporaryExposureKey.verify(message.revisedKeys[i], _depth + 1);
|
|
300
350
|
if (error)
|
|
301
351
|
return "revisedKeys." + error;
|
|
302
352
|
}
|
|
@@ -312,9 +362,13 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
312
362
|
* @param {Object.<string,*>} object Plain object
|
|
313
363
|
* @returns {TemporaryExposureKeyExport} TemporaryExposureKeyExport
|
|
314
364
|
*/
|
|
315
|
-
TemporaryExposureKeyExport.fromObject = function fromObject(object) {
|
|
365
|
+
TemporaryExposureKeyExport.fromObject = function fromObject(object, _depth) {
|
|
316
366
|
if (object instanceof $root.TemporaryExposureKeyExport)
|
|
317
367
|
return object;
|
|
368
|
+
if (_depth === undefined)
|
|
369
|
+
_depth = 0;
|
|
370
|
+
if (_depth > $util.recursionLimit)
|
|
371
|
+
throw Error("max depth exceeded");
|
|
318
372
|
var message = new $root.TemporaryExposureKeyExport();
|
|
319
373
|
if (object.startTimestamp != null)
|
|
320
374
|
if ($util.Long)
|
|
@@ -343,31 +397,31 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
343
397
|
if (object.signatureInfos) {
|
|
344
398
|
if (!Array.isArray(object.signatureInfos))
|
|
345
399
|
throw TypeError(".TemporaryExposureKeyExport.signatureInfos: array expected");
|
|
346
|
-
message.signatureInfos =
|
|
400
|
+
message.signatureInfos = Array(object.signatureInfos.length);
|
|
347
401
|
for (var i = 0; i < object.signatureInfos.length; ++i) {
|
|
348
402
|
if (typeof object.signatureInfos[i] !== "object")
|
|
349
403
|
throw TypeError(".TemporaryExposureKeyExport.signatureInfos: object expected");
|
|
350
|
-
message.signatureInfos[i] = $root.SignatureInfo.fromObject(object.signatureInfos[i]);
|
|
404
|
+
message.signatureInfos[i] = $root.SignatureInfo.fromObject(object.signatureInfos[i], _depth + 1);
|
|
351
405
|
}
|
|
352
406
|
}
|
|
353
407
|
if (object.keys) {
|
|
354
408
|
if (!Array.isArray(object.keys))
|
|
355
409
|
throw TypeError(".TemporaryExposureKeyExport.keys: array expected");
|
|
356
|
-
message.keys =
|
|
410
|
+
message.keys = Array(object.keys.length);
|
|
357
411
|
for (var i = 0; i < object.keys.length; ++i) {
|
|
358
412
|
if (typeof object.keys[i] !== "object")
|
|
359
413
|
throw TypeError(".TemporaryExposureKeyExport.keys: object expected");
|
|
360
|
-
message.keys[i] = $root.TemporaryExposureKey.fromObject(object.keys[i]);
|
|
414
|
+
message.keys[i] = $root.TemporaryExposureKey.fromObject(object.keys[i], _depth + 1);
|
|
361
415
|
}
|
|
362
416
|
}
|
|
363
417
|
if (object.revisedKeys) {
|
|
364
418
|
if (!Array.isArray(object.revisedKeys))
|
|
365
419
|
throw TypeError(".TemporaryExposureKeyExport.revisedKeys: array expected");
|
|
366
|
-
message.revisedKeys =
|
|
420
|
+
message.revisedKeys = Array(object.revisedKeys.length);
|
|
367
421
|
for (var i = 0; i < object.revisedKeys.length; ++i) {
|
|
368
422
|
if (typeof object.revisedKeys[i] !== "object")
|
|
369
423
|
throw TypeError(".TemporaryExposureKeyExport.revisedKeys: object expected");
|
|
370
|
-
message.revisedKeys[i] = $root.TemporaryExposureKey.fromObject(object.revisedKeys[i]);
|
|
424
|
+
message.revisedKeys[i] = $root.TemporaryExposureKey.fromObject(object.revisedKeys[i], _depth + 1);
|
|
371
425
|
}
|
|
372
426
|
}
|
|
373
427
|
return message;
|
|
@@ -423,17 +477,17 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
423
477
|
if (message.batchSize != null && message.hasOwnProperty("batchSize"))
|
|
424
478
|
object.batchSize = message.batchSize;
|
|
425
479
|
if (message.signatureInfos && message.signatureInfos.length) {
|
|
426
|
-
object.signatureInfos =
|
|
480
|
+
object.signatureInfos = Array(message.signatureInfos.length);
|
|
427
481
|
for (var j = 0; j < message.signatureInfos.length; ++j)
|
|
428
482
|
object.signatureInfos[j] = $root.SignatureInfo.toObject(message.signatureInfos[j], options);
|
|
429
483
|
}
|
|
430
484
|
if (message.keys && message.keys.length) {
|
|
431
|
-
object.keys =
|
|
485
|
+
object.keys = Array(message.keys.length);
|
|
432
486
|
for (var j = 0; j < message.keys.length; ++j)
|
|
433
487
|
object.keys[j] = $root.TemporaryExposureKey.toObject(message.keys[j], options);
|
|
434
488
|
}
|
|
435
489
|
if (message.revisedKeys && message.revisedKeys.length) {
|
|
436
|
-
object.revisedKeys =
|
|
490
|
+
object.revisedKeys = Array(message.revisedKeys.length);
|
|
437
491
|
for (var j = 0; j < message.revisedKeys.length; ++j)
|
|
438
492
|
object.revisedKeys[j] = $root.TemporaryExposureKey.toObject(message.revisedKeys[j], options);
|
|
439
493
|
}
|
|
@@ -452,18 +506,17 @@ $root.TemporaryExposureKeyExport = (function() {
|
|
|
452
506
|
};
|
|
453
507
|
|
|
454
508
|
/**
|
|
455
|
-
* Gets the
|
|
509
|
+
* Gets the type url for TemporaryExposureKeyExport
|
|
456
510
|
* @function getTypeUrl
|
|
457
511
|
* @memberof TemporaryExposureKeyExport
|
|
458
512
|
* @static
|
|
459
|
-
* @param {string} [
|
|
460
|
-
* @returns {string} The
|
|
513
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
514
|
+
* @returns {string} The type url
|
|
461
515
|
*/
|
|
462
|
-
TemporaryExposureKeyExport.getTypeUrl = function getTypeUrl(
|
|
463
|
-
if (
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
return typeUrlPrefix + "/TemporaryExposureKeyExport";
|
|
516
|
+
TemporaryExposureKeyExport.getTypeUrl = function getTypeUrl(prefix) {
|
|
517
|
+
if (prefix === undefined)
|
|
518
|
+
prefix = "type.googleapis.com";
|
|
519
|
+
return prefix + "/TemporaryExposureKeyExport";
|
|
467
520
|
};
|
|
468
521
|
|
|
469
522
|
return TemporaryExposureKeyExport;
|
|
@@ -473,25 +526,38 @@ $root.SignatureInfo = (function() {
|
|
|
473
526
|
|
|
474
527
|
/**
|
|
475
528
|
* Properties of a SignatureInfo.
|
|
476
|
-
* @
|
|
477
|
-
* @interface ISignatureInfo
|
|
529
|
+
* @typedef {Object} SignatureInfo.$Properties
|
|
478
530
|
* @property {string|null} [verificationKeyVersion] SignatureInfo verificationKeyVersion
|
|
479
531
|
* @property {string|null} [verificationKeyId] SignatureInfo verificationKeyId
|
|
480
532
|
* @property {string|null} [signatureAlgorithm] SignatureInfo signatureAlgorithm
|
|
533
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
534
|
+
*/
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Properties of a SignatureInfo.
|
|
538
|
+
* @exports ISignatureInfo
|
|
539
|
+
* @interface ISignatureInfo
|
|
540
|
+
* @augments SignatureInfo.$Properties
|
|
541
|
+
* @deprecated Use SignatureInfo.$Properties instead.
|
|
542
|
+
*/
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Shape of a SignatureInfo.
|
|
546
|
+
* @typedef {SignatureInfo.$Properties} SignatureInfo.$Shape
|
|
481
547
|
*/
|
|
482
548
|
|
|
483
549
|
/**
|
|
484
550
|
* Constructs a new SignatureInfo.
|
|
485
551
|
* @exports SignatureInfo
|
|
486
552
|
* @classdesc Represents a SignatureInfo.
|
|
487
|
-
* @implements ISignatureInfo
|
|
488
553
|
* @constructor
|
|
489
|
-
* @param {
|
|
554
|
+
* @param {SignatureInfo.$Properties=} [properties] Properties to set
|
|
555
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
490
556
|
*/
|
|
491
557
|
function SignatureInfo(properties) {
|
|
492
558
|
if (properties)
|
|
493
559
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
494
|
-
if (properties[keys[i]] != null)
|
|
560
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
495
561
|
this[keys[i]] = properties[keys[i]];
|
|
496
562
|
}
|
|
497
563
|
|
|
@@ -524,8 +590,12 @@ $root.SignatureInfo = (function() {
|
|
|
524
590
|
* @function create
|
|
525
591
|
* @memberof SignatureInfo
|
|
526
592
|
* @static
|
|
527
|
-
* @param {
|
|
593
|
+
* @param {SignatureInfo.$Properties=} [properties] Properties to set
|
|
528
594
|
* @returns {SignatureInfo} SignatureInfo instance
|
|
595
|
+
* @type {{
|
|
596
|
+
* (properties: SignatureInfo.$Shape): SignatureInfo & SignatureInfo.$Shape;
|
|
597
|
+
* (properties?: SignatureInfo.$Properties): SignatureInfo;
|
|
598
|
+
* }}
|
|
529
599
|
*/
|
|
530
600
|
SignatureInfo.create = function create(properties) {
|
|
531
601
|
return new SignatureInfo(properties);
|
|
@@ -536,7 +606,7 @@ $root.SignatureInfo = (function() {
|
|
|
536
606
|
* @function encode
|
|
537
607
|
* @memberof SignatureInfo
|
|
538
608
|
* @static
|
|
539
|
-
* @param {
|
|
609
|
+
* @param {SignatureInfo.$Properties} message SignatureInfo message or plain object to encode
|
|
540
610
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
541
611
|
* @returns {$protobuf.Writer} Writer
|
|
542
612
|
*/
|
|
@@ -549,6 +619,9 @@ $root.SignatureInfo = (function() {
|
|
|
549
619
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.verificationKeyId);
|
|
550
620
|
if (message.signatureAlgorithm != null && Object.hasOwnProperty.call(message, "signatureAlgorithm"))
|
|
551
621
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.signatureAlgorithm);
|
|
622
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
623
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
624
|
+
writer.raw(message.$unknowns[i]);
|
|
552
625
|
return writer;
|
|
553
626
|
};
|
|
554
627
|
|
|
@@ -557,7 +630,7 @@ $root.SignatureInfo = (function() {
|
|
|
557
630
|
* @function encodeDelimited
|
|
558
631
|
* @memberof SignatureInfo
|
|
559
632
|
* @static
|
|
560
|
-
* @param {
|
|
633
|
+
* @param {SignatureInfo.$Properties} message SignatureInfo message or plain object to encode
|
|
561
634
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
562
635
|
* @returns {$protobuf.Writer} Writer
|
|
563
636
|
*/
|
|
@@ -572,36 +645,52 @@ $root.SignatureInfo = (function() {
|
|
|
572
645
|
* @static
|
|
573
646
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
574
647
|
* @param {number} [length] Message length if known beforehand
|
|
575
|
-
* @returns {SignatureInfo} SignatureInfo
|
|
648
|
+
* @returns {SignatureInfo & SignatureInfo.$Shape} SignatureInfo
|
|
576
649
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
577
650
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
578
651
|
*/
|
|
579
|
-
SignatureInfo.decode = function decode(reader, length,
|
|
652
|
+
SignatureInfo.decode = function decode(reader, length, _end, _depth, _target) {
|
|
580
653
|
if (!(reader instanceof $Reader))
|
|
581
654
|
reader = $Reader.create(reader);
|
|
582
|
-
|
|
655
|
+
if (_depth === undefined)
|
|
656
|
+
_depth = 0;
|
|
657
|
+
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();
|
|
583
660
|
while (reader.pos < end) {
|
|
584
|
-
var
|
|
585
|
-
|
|
661
|
+
var start = reader.pos;
|
|
662
|
+
var tag = reader.tag();
|
|
663
|
+
if (tag === _end) {
|
|
664
|
+
_end = undefined;
|
|
586
665
|
break;
|
|
587
|
-
|
|
666
|
+
}
|
|
667
|
+
var wireType = tag & 7;
|
|
668
|
+
switch (tag >>>= 3) {
|
|
588
669
|
case 3: {
|
|
670
|
+
if (wireType !== 2)
|
|
671
|
+
break;
|
|
589
672
|
message.verificationKeyVersion = reader.string();
|
|
590
|
-
|
|
673
|
+
continue;
|
|
591
674
|
}
|
|
592
675
|
case 4: {
|
|
676
|
+
if (wireType !== 2)
|
|
677
|
+
break;
|
|
593
678
|
message.verificationKeyId = reader.string();
|
|
594
|
-
|
|
679
|
+
continue;
|
|
595
680
|
}
|
|
596
681
|
case 5: {
|
|
682
|
+
if (wireType !== 2)
|
|
683
|
+
break;
|
|
597
684
|
message.signatureAlgorithm = reader.string();
|
|
598
|
-
|
|
685
|
+
continue;
|
|
599
686
|
}
|
|
600
|
-
default:
|
|
601
|
-
reader.skipType(tag & 7);
|
|
602
|
-
break;
|
|
603
687
|
}
|
|
688
|
+
reader.skipType(wireType, _depth, tag);
|
|
689
|
+
$util.makeProp(message, "$unknowns", false);
|
|
690
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
604
691
|
}
|
|
692
|
+
if (_end !== undefined)
|
|
693
|
+
throw Error("missing end group");
|
|
605
694
|
return message;
|
|
606
695
|
};
|
|
607
696
|
|
|
@@ -611,7 +700,7 @@ $root.SignatureInfo = (function() {
|
|
|
611
700
|
* @memberof SignatureInfo
|
|
612
701
|
* @static
|
|
613
702
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
614
|
-
* @returns {SignatureInfo} SignatureInfo
|
|
703
|
+
* @returns {SignatureInfo & SignatureInfo.$Shape} SignatureInfo
|
|
615
704
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
616
705
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
617
706
|
*/
|
|
@@ -629,9 +718,13 @@ $root.SignatureInfo = (function() {
|
|
|
629
718
|
* @param {Object.<string,*>} message Plain object to verify
|
|
630
719
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
631
720
|
*/
|
|
632
|
-
SignatureInfo.verify = function verify(message) {
|
|
721
|
+
SignatureInfo.verify = function verify(message, _depth) {
|
|
633
722
|
if (typeof message !== "object" || message === null)
|
|
634
723
|
return "object expected";
|
|
724
|
+
if (_depth === undefined)
|
|
725
|
+
_depth = 0;
|
|
726
|
+
if (_depth > $util.recursionLimit)
|
|
727
|
+
return "max depth exceeded";
|
|
635
728
|
if (message.verificationKeyVersion != null && message.hasOwnProperty("verificationKeyVersion"))
|
|
636
729
|
if (!$util.isString(message.verificationKeyVersion))
|
|
637
730
|
return "verificationKeyVersion: string expected";
|
|
@@ -652,9 +745,13 @@ $root.SignatureInfo = (function() {
|
|
|
652
745
|
* @param {Object.<string,*>} object Plain object
|
|
653
746
|
* @returns {SignatureInfo} SignatureInfo
|
|
654
747
|
*/
|
|
655
|
-
SignatureInfo.fromObject = function fromObject(object) {
|
|
748
|
+
SignatureInfo.fromObject = function fromObject(object, _depth) {
|
|
656
749
|
if (object instanceof $root.SignatureInfo)
|
|
657
750
|
return object;
|
|
751
|
+
if (_depth === undefined)
|
|
752
|
+
_depth = 0;
|
|
753
|
+
if (_depth > $util.recursionLimit)
|
|
754
|
+
throw Error("max depth exceeded");
|
|
658
755
|
var message = new $root.SignatureInfo();
|
|
659
756
|
if (object.verificationKeyVersion != null)
|
|
660
757
|
message.verificationKeyVersion = String(object.verificationKeyVersion);
|
|
@@ -704,18 +801,17 @@ $root.SignatureInfo = (function() {
|
|
|
704
801
|
};
|
|
705
802
|
|
|
706
803
|
/**
|
|
707
|
-
* Gets the
|
|
804
|
+
* Gets the type url for SignatureInfo
|
|
708
805
|
* @function getTypeUrl
|
|
709
806
|
* @memberof SignatureInfo
|
|
710
807
|
* @static
|
|
711
|
-
* @param {string} [
|
|
712
|
-
* @returns {string} The
|
|
808
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
809
|
+
* @returns {string} The type url
|
|
713
810
|
*/
|
|
714
|
-
SignatureInfo.getTypeUrl = function getTypeUrl(
|
|
715
|
-
if (
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
return typeUrlPrefix + "/SignatureInfo";
|
|
811
|
+
SignatureInfo.getTypeUrl = function getTypeUrl(prefix) {
|
|
812
|
+
if (prefix === undefined)
|
|
813
|
+
prefix = "type.googleapis.com";
|
|
814
|
+
return prefix + "/SignatureInfo";
|
|
719
815
|
};
|
|
720
816
|
|
|
721
817
|
return SignatureInfo;
|
|
@@ -725,28 +821,41 @@ $root.TemporaryExposureKey = (function() {
|
|
|
725
821
|
|
|
726
822
|
/**
|
|
727
823
|
* Properties of a TemporaryExposureKey.
|
|
728
|
-
* @
|
|
729
|
-
* @interface ITemporaryExposureKey
|
|
824
|
+
* @typedef {Object} TemporaryExposureKey.$Properties
|
|
730
825
|
* @property {Uint8Array|null} [keyData] TemporaryExposureKey keyData
|
|
731
826
|
* @property {number|null} [transmissionRiskLevel] TemporaryExposureKey transmissionRiskLevel
|
|
732
827
|
* @property {number|null} [rollingStartIntervalNumber] TemporaryExposureKey rollingStartIntervalNumber
|
|
733
828
|
* @property {number|null} [rollingPeriod] TemporaryExposureKey rollingPeriod
|
|
734
829
|
* @property {TemporaryExposureKey.ReportType|null} [reportType] TemporaryExposureKey reportType
|
|
735
830
|
* @property {number|null} [daysSinceOnsetOfSymptoms] TemporaryExposureKey daysSinceOnsetOfSymptoms
|
|
831
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
832
|
+
*/
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Properties of a TemporaryExposureKey.
|
|
836
|
+
* @exports ITemporaryExposureKey
|
|
837
|
+
* @interface ITemporaryExposureKey
|
|
838
|
+
* @augments TemporaryExposureKey.$Properties
|
|
839
|
+
* @deprecated Use TemporaryExposureKey.$Properties instead.
|
|
840
|
+
*/
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Shape of a TemporaryExposureKey.
|
|
844
|
+
* @typedef {TemporaryExposureKey.$Properties} TemporaryExposureKey.$Shape
|
|
736
845
|
*/
|
|
737
846
|
|
|
738
847
|
/**
|
|
739
848
|
* Constructs a new TemporaryExposureKey.
|
|
740
849
|
* @exports TemporaryExposureKey
|
|
741
850
|
* @classdesc Represents a TemporaryExposureKey.
|
|
742
|
-
* @implements ITemporaryExposureKey
|
|
743
851
|
* @constructor
|
|
744
|
-
* @param {
|
|
852
|
+
* @param {TemporaryExposureKey.$Properties=} [properties] Properties to set
|
|
853
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
745
854
|
*/
|
|
746
855
|
function TemporaryExposureKey(properties) {
|
|
747
856
|
if (properties)
|
|
748
857
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
749
|
-
if (properties[keys[i]] != null)
|
|
858
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
750
859
|
this[keys[i]] = properties[keys[i]];
|
|
751
860
|
}
|
|
752
861
|
|
|
@@ -803,8 +912,12 @@ $root.TemporaryExposureKey = (function() {
|
|
|
803
912
|
* @function create
|
|
804
913
|
* @memberof TemporaryExposureKey
|
|
805
914
|
* @static
|
|
806
|
-
* @param {
|
|
915
|
+
* @param {TemporaryExposureKey.$Properties=} [properties] Properties to set
|
|
807
916
|
* @returns {TemporaryExposureKey} TemporaryExposureKey instance
|
|
917
|
+
* @type {{
|
|
918
|
+
* (properties: TemporaryExposureKey.$Shape): TemporaryExposureKey & TemporaryExposureKey.$Shape;
|
|
919
|
+
* (properties?: TemporaryExposureKey.$Properties): TemporaryExposureKey;
|
|
920
|
+
* }}
|
|
808
921
|
*/
|
|
809
922
|
TemporaryExposureKey.create = function create(properties) {
|
|
810
923
|
return new TemporaryExposureKey(properties);
|
|
@@ -815,7 +928,7 @@ $root.TemporaryExposureKey = (function() {
|
|
|
815
928
|
* @function encode
|
|
816
929
|
* @memberof TemporaryExposureKey
|
|
817
930
|
* @static
|
|
818
|
-
* @param {
|
|
931
|
+
* @param {TemporaryExposureKey.$Properties} message TemporaryExposureKey message or plain object to encode
|
|
819
932
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
820
933
|
* @returns {$protobuf.Writer} Writer
|
|
821
934
|
*/
|
|
@@ -834,6 +947,9 @@ $root.TemporaryExposureKey = (function() {
|
|
|
834
947
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.reportType);
|
|
835
948
|
if (message.daysSinceOnsetOfSymptoms != null && Object.hasOwnProperty.call(message, "daysSinceOnsetOfSymptoms"))
|
|
836
949
|
writer.uint32(/* id 6, wireType 0 =*/48).sint32(message.daysSinceOnsetOfSymptoms);
|
|
950
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
951
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
952
|
+
writer.raw(message.$unknowns[i]);
|
|
837
953
|
return writer;
|
|
838
954
|
};
|
|
839
955
|
|
|
@@ -842,7 +958,7 @@ $root.TemporaryExposureKey = (function() {
|
|
|
842
958
|
* @function encodeDelimited
|
|
843
959
|
* @memberof TemporaryExposureKey
|
|
844
960
|
* @static
|
|
845
|
-
* @param {
|
|
961
|
+
* @param {TemporaryExposureKey.$Properties} message TemporaryExposureKey message or plain object to encode
|
|
846
962
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
847
963
|
* @returns {$protobuf.Writer} Writer
|
|
848
964
|
*/
|
|
@@ -857,48 +973,70 @@ $root.TemporaryExposureKey = (function() {
|
|
|
857
973
|
* @static
|
|
858
974
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
859
975
|
* @param {number} [length] Message length if known beforehand
|
|
860
|
-
* @returns {TemporaryExposureKey} TemporaryExposureKey
|
|
976
|
+
* @returns {TemporaryExposureKey & TemporaryExposureKey.$Shape} TemporaryExposureKey
|
|
861
977
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
862
978
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
863
979
|
*/
|
|
864
|
-
TemporaryExposureKey.decode = function decode(reader, length,
|
|
980
|
+
TemporaryExposureKey.decode = function decode(reader, length, _end, _depth, _target) {
|
|
865
981
|
if (!(reader instanceof $Reader))
|
|
866
982
|
reader = $Reader.create(reader);
|
|
867
|
-
|
|
983
|
+
if (_depth === undefined)
|
|
984
|
+
_depth = 0;
|
|
985
|
+
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();
|
|
868
988
|
while (reader.pos < end) {
|
|
869
|
-
var
|
|
870
|
-
|
|
989
|
+
var start = reader.pos;
|
|
990
|
+
var tag = reader.tag();
|
|
991
|
+
if (tag === _end) {
|
|
992
|
+
_end = undefined;
|
|
871
993
|
break;
|
|
872
|
-
|
|
994
|
+
}
|
|
995
|
+
var wireType = tag & 7;
|
|
996
|
+
switch (tag >>>= 3) {
|
|
873
997
|
case 1: {
|
|
998
|
+
if (wireType !== 2)
|
|
999
|
+
break;
|
|
874
1000
|
message.keyData = reader.bytes();
|
|
875
|
-
|
|
1001
|
+
continue;
|
|
876
1002
|
}
|
|
877
1003
|
case 2: {
|
|
1004
|
+
if (wireType !== 0)
|
|
1005
|
+
break;
|
|
878
1006
|
message.transmissionRiskLevel = reader.int32();
|
|
879
|
-
|
|
1007
|
+
continue;
|
|
880
1008
|
}
|
|
881
1009
|
case 3: {
|
|
1010
|
+
if (wireType !== 0)
|
|
1011
|
+
break;
|
|
882
1012
|
message.rollingStartIntervalNumber = reader.int32();
|
|
883
|
-
|
|
1013
|
+
continue;
|
|
884
1014
|
}
|
|
885
1015
|
case 4: {
|
|
1016
|
+
if (wireType !== 0)
|
|
1017
|
+
break;
|
|
886
1018
|
message.rollingPeriod = reader.int32();
|
|
887
|
-
|
|
1019
|
+
continue;
|
|
888
1020
|
}
|
|
889
1021
|
case 5: {
|
|
1022
|
+
if (wireType !== 0)
|
|
1023
|
+
break;
|
|
890
1024
|
message.reportType = reader.int32();
|
|
891
|
-
|
|
1025
|
+
continue;
|
|
892
1026
|
}
|
|
893
1027
|
case 6: {
|
|
1028
|
+
if (wireType !== 0)
|
|
1029
|
+
break;
|
|
894
1030
|
message.daysSinceOnsetOfSymptoms = reader.sint32();
|
|
895
|
-
|
|
1031
|
+
continue;
|
|
896
1032
|
}
|
|
897
|
-
default:
|
|
898
|
-
reader.skipType(tag & 7);
|
|
899
|
-
break;
|
|
900
1033
|
}
|
|
1034
|
+
reader.skipType(wireType, _depth, tag);
|
|
1035
|
+
$util.makeProp(message, "$unknowns", false);
|
|
1036
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
901
1037
|
}
|
|
1038
|
+
if (_end !== undefined)
|
|
1039
|
+
throw Error("missing end group");
|
|
902
1040
|
return message;
|
|
903
1041
|
};
|
|
904
1042
|
|
|
@@ -908,7 +1046,7 @@ $root.TemporaryExposureKey = (function() {
|
|
|
908
1046
|
* @memberof TemporaryExposureKey
|
|
909
1047
|
* @static
|
|
910
1048
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
911
|
-
* @returns {TemporaryExposureKey} TemporaryExposureKey
|
|
1049
|
+
* @returns {TemporaryExposureKey & TemporaryExposureKey.$Shape} TemporaryExposureKey
|
|
912
1050
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
913
1051
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
914
1052
|
*/
|
|
@@ -926,9 +1064,13 @@ $root.TemporaryExposureKey = (function() {
|
|
|
926
1064
|
* @param {Object.<string,*>} message Plain object to verify
|
|
927
1065
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
928
1066
|
*/
|
|
929
|
-
TemporaryExposureKey.verify = function verify(message) {
|
|
1067
|
+
TemporaryExposureKey.verify = function verify(message, _depth) {
|
|
930
1068
|
if (typeof message !== "object" || message === null)
|
|
931
1069
|
return "object expected";
|
|
1070
|
+
if (_depth === undefined)
|
|
1071
|
+
_depth = 0;
|
|
1072
|
+
if (_depth > $util.recursionLimit)
|
|
1073
|
+
return "max depth exceeded";
|
|
932
1074
|
if (message.keyData != null && message.hasOwnProperty("keyData"))
|
|
933
1075
|
if (!(message.keyData && typeof message.keyData.length === "number" || $util.isString(message.keyData)))
|
|
934
1076
|
return "keyData: buffer expected";
|
|
@@ -967,9 +1109,13 @@ $root.TemporaryExposureKey = (function() {
|
|
|
967
1109
|
* @param {Object.<string,*>} object Plain object
|
|
968
1110
|
* @returns {TemporaryExposureKey} TemporaryExposureKey
|
|
969
1111
|
*/
|
|
970
|
-
TemporaryExposureKey.fromObject = function fromObject(object) {
|
|
1112
|
+
TemporaryExposureKey.fromObject = function fromObject(object, _depth) {
|
|
971
1113
|
if (object instanceof $root.TemporaryExposureKey)
|
|
972
1114
|
return object;
|
|
1115
|
+
if (_depth === undefined)
|
|
1116
|
+
_depth = 0;
|
|
1117
|
+
if (_depth > $util.recursionLimit)
|
|
1118
|
+
throw Error("max depth exceeded");
|
|
973
1119
|
var message = new $root.TemporaryExposureKey();
|
|
974
1120
|
if (object.keyData != null)
|
|
975
1121
|
if (typeof object.keyData === "string")
|
|
@@ -1073,18 +1219,17 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1073
1219
|
};
|
|
1074
1220
|
|
|
1075
1221
|
/**
|
|
1076
|
-
* Gets the
|
|
1222
|
+
* Gets the type url for TemporaryExposureKey
|
|
1077
1223
|
* @function getTypeUrl
|
|
1078
1224
|
* @memberof TemporaryExposureKey
|
|
1079
1225
|
* @static
|
|
1080
|
-
* @param {string} [
|
|
1081
|
-
* @returns {string} The
|
|
1226
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
1227
|
+
* @returns {string} The type url
|
|
1082
1228
|
*/
|
|
1083
|
-
TemporaryExposureKey.getTypeUrl = function getTypeUrl(
|
|
1084
|
-
if (
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
return typeUrlPrefix + "/TemporaryExposureKey";
|
|
1229
|
+
TemporaryExposureKey.getTypeUrl = function getTypeUrl(prefix) {
|
|
1230
|
+
if (prefix === undefined)
|
|
1231
|
+
prefix = "type.googleapis.com";
|
|
1232
|
+
return prefix + "/TemporaryExposureKey";
|
|
1088
1233
|
};
|
|
1089
1234
|
|
|
1090
1235
|
/**
|
|
@@ -1114,32 +1259,45 @@ $root.TemporaryExposureKey = (function() {
|
|
|
1114
1259
|
|
|
1115
1260
|
$root.TEKSignatureList = (function() {
|
|
1116
1261
|
|
|
1262
|
+
/**
|
|
1263
|
+
* Properties of a TEKSignatureList.
|
|
1264
|
+
* @typedef {Object} TEKSignatureList.$Properties
|
|
1265
|
+
* @property {Array.<TEKSignature.$Properties>|null} [signatures] TEKSignatureList signatures
|
|
1266
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
1267
|
+
*/
|
|
1268
|
+
|
|
1117
1269
|
/**
|
|
1118
1270
|
* Properties of a TEKSignatureList.
|
|
1119
1271
|
* @exports ITEKSignatureList
|
|
1120
1272
|
* @interface ITEKSignatureList
|
|
1121
|
-
* @
|
|
1273
|
+
* @augments TEKSignatureList.$Properties
|
|
1274
|
+
* @deprecated Use TEKSignatureList.$Properties instead.
|
|
1275
|
+
*/
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Shape of a TEKSignatureList.
|
|
1279
|
+
* @typedef {TEKSignatureList.$Properties} TEKSignatureList.$Shape
|
|
1122
1280
|
*/
|
|
1123
1281
|
|
|
1124
1282
|
/**
|
|
1125
1283
|
* Constructs a new TEKSignatureList.
|
|
1126
1284
|
* @exports TEKSignatureList
|
|
1127
1285
|
* @classdesc Represents a TEKSignatureList.
|
|
1128
|
-
* @implements ITEKSignatureList
|
|
1129
1286
|
* @constructor
|
|
1130
|
-
* @param {
|
|
1287
|
+
* @param {TEKSignatureList.$Properties=} [properties] Properties to set
|
|
1288
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
1131
1289
|
*/
|
|
1132
1290
|
function TEKSignatureList(properties) {
|
|
1133
1291
|
this.signatures = [];
|
|
1134
1292
|
if (properties)
|
|
1135
1293
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1136
|
-
if (properties[keys[i]] != null)
|
|
1294
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1137
1295
|
this[keys[i]] = properties[keys[i]];
|
|
1138
1296
|
}
|
|
1139
1297
|
|
|
1140
1298
|
/**
|
|
1141
1299
|
* TEKSignatureList signatures.
|
|
1142
|
-
* @member {Array.<
|
|
1300
|
+
* @member {Array.<TEKSignature.$Properties>} signatures
|
|
1143
1301
|
* @memberof TEKSignatureList
|
|
1144
1302
|
* @instance
|
|
1145
1303
|
*/
|
|
@@ -1150,8 +1308,12 @@ $root.TEKSignatureList = (function() {
|
|
|
1150
1308
|
* @function create
|
|
1151
1309
|
* @memberof TEKSignatureList
|
|
1152
1310
|
* @static
|
|
1153
|
-
* @param {
|
|
1311
|
+
* @param {TEKSignatureList.$Properties=} [properties] Properties to set
|
|
1154
1312
|
* @returns {TEKSignatureList} TEKSignatureList instance
|
|
1313
|
+
* @type {{
|
|
1314
|
+
* (properties: TEKSignatureList.$Shape): TEKSignatureList & TEKSignatureList.$Shape;
|
|
1315
|
+
* (properties?: TEKSignatureList.$Properties): TEKSignatureList;
|
|
1316
|
+
* }}
|
|
1155
1317
|
*/
|
|
1156
1318
|
TEKSignatureList.create = function create(properties) {
|
|
1157
1319
|
return new TEKSignatureList(properties);
|
|
@@ -1162,7 +1324,7 @@ $root.TEKSignatureList = (function() {
|
|
|
1162
1324
|
* @function encode
|
|
1163
1325
|
* @memberof TEKSignatureList
|
|
1164
1326
|
* @static
|
|
1165
|
-
* @param {
|
|
1327
|
+
* @param {TEKSignatureList.$Properties} message TEKSignatureList message or plain object to encode
|
|
1166
1328
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1167
1329
|
* @returns {$protobuf.Writer} Writer
|
|
1168
1330
|
*/
|
|
@@ -1172,6 +1334,9 @@ $root.TEKSignatureList = (function() {
|
|
|
1172
1334
|
if (message.signatures != null && message.signatures.length)
|
|
1173
1335
|
for (var i = 0; i < message.signatures.length; ++i)
|
|
1174
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"))
|
|
1338
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
1339
|
+
writer.raw(message.$unknowns[i]);
|
|
1175
1340
|
return writer;
|
|
1176
1341
|
};
|
|
1177
1342
|
|
|
@@ -1180,7 +1345,7 @@ $root.TEKSignatureList = (function() {
|
|
|
1180
1345
|
* @function encodeDelimited
|
|
1181
1346
|
* @memberof TEKSignatureList
|
|
1182
1347
|
* @static
|
|
1183
|
-
* @param {
|
|
1348
|
+
* @param {TEKSignatureList.$Properties} message TEKSignatureList message or plain object to encode
|
|
1184
1349
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1185
1350
|
* @returns {$protobuf.Writer} Writer
|
|
1186
1351
|
*/
|
|
@@ -1195,30 +1360,42 @@ $root.TEKSignatureList = (function() {
|
|
|
1195
1360
|
* @static
|
|
1196
1361
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1197
1362
|
* @param {number} [length] Message length if known beforehand
|
|
1198
|
-
* @returns {TEKSignatureList} TEKSignatureList
|
|
1363
|
+
* @returns {TEKSignatureList & TEKSignatureList.$Shape} TEKSignatureList
|
|
1199
1364
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1200
1365
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1201
1366
|
*/
|
|
1202
|
-
TEKSignatureList.decode = function decode(reader, length,
|
|
1367
|
+
TEKSignatureList.decode = function decode(reader, length, _end, _depth, _target) {
|
|
1203
1368
|
if (!(reader instanceof $Reader))
|
|
1204
1369
|
reader = $Reader.create(reader);
|
|
1205
|
-
|
|
1370
|
+
if (_depth === undefined)
|
|
1371
|
+
_depth = 0;
|
|
1372
|
+
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();
|
|
1206
1375
|
while (reader.pos < end) {
|
|
1207
|
-
var
|
|
1208
|
-
|
|
1376
|
+
var start = reader.pos;
|
|
1377
|
+
var tag = reader.tag();
|
|
1378
|
+
if (tag === _end) {
|
|
1379
|
+
_end = undefined;
|
|
1209
1380
|
break;
|
|
1210
|
-
|
|
1381
|
+
}
|
|
1382
|
+
var wireType = tag & 7;
|
|
1383
|
+
switch (tag >>>= 3) {
|
|
1211
1384
|
case 1: {
|
|
1385
|
+
if (wireType !== 2)
|
|
1386
|
+
break;
|
|
1212
1387
|
if (!(message.signatures && message.signatures.length))
|
|
1213
1388
|
message.signatures = [];
|
|
1214
|
-
message.signatures.push($root.TEKSignature.decode(reader, reader.uint32()));
|
|
1215
|
-
|
|
1389
|
+
message.signatures.push($root.TEKSignature.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
1390
|
+
continue;
|
|
1216
1391
|
}
|
|
1217
|
-
default:
|
|
1218
|
-
reader.skipType(tag & 7);
|
|
1219
|
-
break;
|
|
1220
1392
|
}
|
|
1393
|
+
reader.skipType(wireType, _depth, tag);
|
|
1394
|
+
$util.makeProp(message, "$unknowns", false);
|
|
1395
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
1221
1396
|
}
|
|
1397
|
+
if (_end !== undefined)
|
|
1398
|
+
throw Error("missing end group");
|
|
1222
1399
|
return message;
|
|
1223
1400
|
};
|
|
1224
1401
|
|
|
@@ -1228,7 +1405,7 @@ $root.TEKSignatureList = (function() {
|
|
|
1228
1405
|
* @memberof TEKSignatureList
|
|
1229
1406
|
* @static
|
|
1230
1407
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1231
|
-
* @returns {TEKSignatureList} TEKSignatureList
|
|
1408
|
+
* @returns {TEKSignatureList & TEKSignatureList.$Shape} TEKSignatureList
|
|
1232
1409
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1233
1410
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1234
1411
|
*/
|
|
@@ -1246,14 +1423,18 @@ $root.TEKSignatureList = (function() {
|
|
|
1246
1423
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1247
1424
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1248
1425
|
*/
|
|
1249
|
-
TEKSignatureList.verify = function verify(message) {
|
|
1426
|
+
TEKSignatureList.verify = function verify(message, _depth) {
|
|
1250
1427
|
if (typeof message !== "object" || message === null)
|
|
1251
1428
|
return "object expected";
|
|
1429
|
+
if (_depth === undefined)
|
|
1430
|
+
_depth = 0;
|
|
1431
|
+
if (_depth > $util.recursionLimit)
|
|
1432
|
+
return "max depth exceeded";
|
|
1252
1433
|
if (message.signatures != null && message.hasOwnProperty("signatures")) {
|
|
1253
1434
|
if (!Array.isArray(message.signatures))
|
|
1254
1435
|
return "signatures: array expected";
|
|
1255
1436
|
for (var i = 0; i < message.signatures.length; ++i) {
|
|
1256
|
-
var error = $root.TEKSignature.verify(message.signatures[i]);
|
|
1437
|
+
var error = $root.TEKSignature.verify(message.signatures[i], _depth + 1);
|
|
1257
1438
|
if (error)
|
|
1258
1439
|
return "signatures." + error;
|
|
1259
1440
|
}
|
|
@@ -1269,18 +1450,22 @@ $root.TEKSignatureList = (function() {
|
|
|
1269
1450
|
* @param {Object.<string,*>} object Plain object
|
|
1270
1451
|
* @returns {TEKSignatureList} TEKSignatureList
|
|
1271
1452
|
*/
|
|
1272
|
-
TEKSignatureList.fromObject = function fromObject(object) {
|
|
1453
|
+
TEKSignatureList.fromObject = function fromObject(object, _depth) {
|
|
1273
1454
|
if (object instanceof $root.TEKSignatureList)
|
|
1274
1455
|
return object;
|
|
1456
|
+
if (_depth === undefined)
|
|
1457
|
+
_depth = 0;
|
|
1458
|
+
if (_depth > $util.recursionLimit)
|
|
1459
|
+
throw Error("max depth exceeded");
|
|
1275
1460
|
var message = new $root.TEKSignatureList();
|
|
1276
1461
|
if (object.signatures) {
|
|
1277
1462
|
if (!Array.isArray(object.signatures))
|
|
1278
1463
|
throw TypeError(".TEKSignatureList.signatures: array expected");
|
|
1279
|
-
message.signatures =
|
|
1464
|
+
message.signatures = Array(object.signatures.length);
|
|
1280
1465
|
for (var i = 0; i < object.signatures.length; ++i) {
|
|
1281
1466
|
if (typeof object.signatures[i] !== "object")
|
|
1282
1467
|
throw TypeError(".TEKSignatureList.signatures: object expected");
|
|
1283
|
-
message.signatures[i] = $root.TEKSignature.fromObject(object.signatures[i]);
|
|
1468
|
+
message.signatures[i] = $root.TEKSignature.fromObject(object.signatures[i], _depth + 1);
|
|
1284
1469
|
}
|
|
1285
1470
|
}
|
|
1286
1471
|
return message;
|
|
@@ -1302,7 +1487,7 @@ $root.TEKSignatureList = (function() {
|
|
|
1302
1487
|
if (options.arrays || options.defaults)
|
|
1303
1488
|
object.signatures = [];
|
|
1304
1489
|
if (message.signatures && message.signatures.length) {
|
|
1305
|
-
object.signatures =
|
|
1490
|
+
object.signatures = Array(message.signatures.length);
|
|
1306
1491
|
for (var j = 0; j < message.signatures.length; ++j)
|
|
1307
1492
|
object.signatures[j] = $root.TEKSignature.toObject(message.signatures[j], options);
|
|
1308
1493
|
}
|
|
@@ -1321,18 +1506,17 @@ $root.TEKSignatureList = (function() {
|
|
|
1321
1506
|
};
|
|
1322
1507
|
|
|
1323
1508
|
/**
|
|
1324
|
-
* Gets the
|
|
1509
|
+
* Gets the type url for TEKSignatureList
|
|
1325
1510
|
* @function getTypeUrl
|
|
1326
1511
|
* @memberof TEKSignatureList
|
|
1327
1512
|
* @static
|
|
1328
|
-
* @param {string} [
|
|
1329
|
-
* @returns {string} The
|
|
1513
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
1514
|
+
* @returns {string} The type url
|
|
1330
1515
|
*/
|
|
1331
|
-
TEKSignatureList.getTypeUrl = function getTypeUrl(
|
|
1332
|
-
if (
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
return typeUrlPrefix + "/TEKSignatureList";
|
|
1516
|
+
TEKSignatureList.getTypeUrl = function getTypeUrl(prefix) {
|
|
1517
|
+
if (prefix === undefined)
|
|
1518
|
+
prefix = "type.googleapis.com";
|
|
1519
|
+
return prefix + "/TEKSignatureList";
|
|
1336
1520
|
};
|
|
1337
1521
|
|
|
1338
1522
|
return TEKSignatureList;
|
|
@@ -1342,32 +1526,45 @@ $root.TEKSignature = (function() {
|
|
|
1342
1526
|
|
|
1343
1527
|
/**
|
|
1344
1528
|
* Properties of a TEKSignature.
|
|
1345
|
-
* @
|
|
1346
|
-
* @
|
|
1347
|
-
* @property {ISignatureInfo|null} [signatureInfo] TEKSignature signatureInfo
|
|
1529
|
+
* @typedef {Object} TEKSignature.$Properties
|
|
1530
|
+
* @property {SignatureInfo.$Properties|null} [signatureInfo] TEKSignature signatureInfo
|
|
1348
1531
|
* @property {number|null} [batchNum] TEKSignature batchNum
|
|
1349
1532
|
* @property {number|null} [batchSize] TEKSignature batchSize
|
|
1350
1533
|
* @property {Uint8Array|null} [signature] TEKSignature signature
|
|
1534
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
1535
|
+
*/
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Properties of a TEKSignature.
|
|
1539
|
+
* @exports ITEKSignature
|
|
1540
|
+
* @interface ITEKSignature
|
|
1541
|
+
* @augments TEKSignature.$Properties
|
|
1542
|
+
* @deprecated Use TEKSignature.$Properties instead.
|
|
1543
|
+
*/
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Shape of a TEKSignature.
|
|
1547
|
+
* @typedef {TEKSignature.$Properties} TEKSignature.$Shape
|
|
1351
1548
|
*/
|
|
1352
1549
|
|
|
1353
1550
|
/**
|
|
1354
1551
|
* Constructs a new TEKSignature.
|
|
1355
1552
|
* @exports TEKSignature
|
|
1356
1553
|
* @classdesc Represents a TEKSignature.
|
|
1357
|
-
* @implements ITEKSignature
|
|
1358
1554
|
* @constructor
|
|
1359
|
-
* @param {
|
|
1555
|
+
* @param {TEKSignature.$Properties=} [properties] Properties to set
|
|
1556
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
1360
1557
|
*/
|
|
1361
1558
|
function TEKSignature(properties) {
|
|
1362
1559
|
if (properties)
|
|
1363
1560
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1364
|
-
if (properties[keys[i]] != null)
|
|
1561
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
1365
1562
|
this[keys[i]] = properties[keys[i]];
|
|
1366
1563
|
}
|
|
1367
1564
|
|
|
1368
1565
|
/**
|
|
1369
1566
|
* TEKSignature signatureInfo.
|
|
1370
|
-
* @member {
|
|
1567
|
+
* @member {SignatureInfo.$Properties|null|undefined} signatureInfo
|
|
1371
1568
|
* @memberof TEKSignature
|
|
1372
1569
|
* @instance
|
|
1373
1570
|
*/
|
|
@@ -1402,8 +1599,12 @@ $root.TEKSignature = (function() {
|
|
|
1402
1599
|
* @function create
|
|
1403
1600
|
* @memberof TEKSignature
|
|
1404
1601
|
* @static
|
|
1405
|
-
* @param {
|
|
1602
|
+
* @param {TEKSignature.$Properties=} [properties] Properties to set
|
|
1406
1603
|
* @returns {TEKSignature} TEKSignature instance
|
|
1604
|
+
* @type {{
|
|
1605
|
+
* (properties: TEKSignature.$Shape): TEKSignature & TEKSignature.$Shape;
|
|
1606
|
+
* (properties?: TEKSignature.$Properties): TEKSignature;
|
|
1607
|
+
* }}
|
|
1407
1608
|
*/
|
|
1408
1609
|
TEKSignature.create = function create(properties) {
|
|
1409
1610
|
return new TEKSignature(properties);
|
|
@@ -1414,7 +1615,7 @@ $root.TEKSignature = (function() {
|
|
|
1414
1615
|
* @function encode
|
|
1415
1616
|
* @memberof TEKSignature
|
|
1416
1617
|
* @static
|
|
1417
|
-
* @param {
|
|
1618
|
+
* @param {TEKSignature.$Properties} message TEKSignature message or plain object to encode
|
|
1418
1619
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1419
1620
|
* @returns {$protobuf.Writer} Writer
|
|
1420
1621
|
*/
|
|
@@ -1429,6 +1630,9 @@ $root.TEKSignature = (function() {
|
|
|
1429
1630
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.batchSize);
|
|
1430
1631
|
if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
|
|
1431
1632
|
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signature);
|
|
1633
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
1634
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
1635
|
+
writer.raw(message.$unknowns[i]);
|
|
1432
1636
|
return writer;
|
|
1433
1637
|
};
|
|
1434
1638
|
|
|
@@ -1437,7 +1641,7 @@ $root.TEKSignature = (function() {
|
|
|
1437
1641
|
* @function encodeDelimited
|
|
1438
1642
|
* @memberof TEKSignature
|
|
1439
1643
|
* @static
|
|
1440
|
-
* @param {
|
|
1644
|
+
* @param {TEKSignature.$Properties} message TEKSignature message or plain object to encode
|
|
1441
1645
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1442
1646
|
* @returns {$protobuf.Writer} Writer
|
|
1443
1647
|
*/
|
|
@@ -1452,40 +1656,58 @@ $root.TEKSignature = (function() {
|
|
|
1452
1656
|
* @static
|
|
1453
1657
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1454
1658
|
* @param {number} [length] Message length if known beforehand
|
|
1455
|
-
* @returns {TEKSignature} TEKSignature
|
|
1659
|
+
* @returns {TEKSignature & TEKSignature.$Shape} TEKSignature
|
|
1456
1660
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1457
1661
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1458
1662
|
*/
|
|
1459
|
-
TEKSignature.decode = function decode(reader, length,
|
|
1663
|
+
TEKSignature.decode = function decode(reader, length, _end, _depth, _target) {
|
|
1460
1664
|
if (!(reader instanceof $Reader))
|
|
1461
1665
|
reader = $Reader.create(reader);
|
|
1462
|
-
|
|
1666
|
+
if (_depth === undefined)
|
|
1667
|
+
_depth = 0;
|
|
1668
|
+
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();
|
|
1463
1671
|
while (reader.pos < end) {
|
|
1464
|
-
var
|
|
1465
|
-
|
|
1672
|
+
var start = reader.pos;
|
|
1673
|
+
var tag = reader.tag();
|
|
1674
|
+
if (tag === _end) {
|
|
1675
|
+
_end = undefined;
|
|
1466
1676
|
break;
|
|
1467
|
-
|
|
1677
|
+
}
|
|
1678
|
+
var wireType = tag & 7;
|
|
1679
|
+
switch (tag >>>= 3) {
|
|
1468
1680
|
case 1: {
|
|
1469
|
-
|
|
1470
|
-
|
|
1681
|
+
if (wireType !== 2)
|
|
1682
|
+
break;
|
|
1683
|
+
message.signatureInfo = $root.SignatureInfo.decode(reader, reader.uint32(), undefined, _depth + 1, message.signatureInfo);
|
|
1684
|
+
continue;
|
|
1471
1685
|
}
|
|
1472
1686
|
case 2: {
|
|
1687
|
+
if (wireType !== 0)
|
|
1688
|
+
break;
|
|
1473
1689
|
message.batchNum = reader.int32();
|
|
1474
|
-
|
|
1690
|
+
continue;
|
|
1475
1691
|
}
|
|
1476
1692
|
case 3: {
|
|
1693
|
+
if (wireType !== 0)
|
|
1694
|
+
break;
|
|
1477
1695
|
message.batchSize = reader.int32();
|
|
1478
|
-
|
|
1696
|
+
continue;
|
|
1479
1697
|
}
|
|
1480
1698
|
case 4: {
|
|
1699
|
+
if (wireType !== 2)
|
|
1700
|
+
break;
|
|
1481
1701
|
message.signature = reader.bytes();
|
|
1482
|
-
|
|
1702
|
+
continue;
|
|
1483
1703
|
}
|
|
1484
|
-
default:
|
|
1485
|
-
reader.skipType(tag & 7);
|
|
1486
|
-
break;
|
|
1487
1704
|
}
|
|
1705
|
+
reader.skipType(wireType, _depth, tag);
|
|
1706
|
+
$util.makeProp(message, "$unknowns", false);
|
|
1707
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
1488
1708
|
}
|
|
1709
|
+
if (_end !== undefined)
|
|
1710
|
+
throw Error("missing end group");
|
|
1489
1711
|
return message;
|
|
1490
1712
|
};
|
|
1491
1713
|
|
|
@@ -1495,7 +1717,7 @@ $root.TEKSignature = (function() {
|
|
|
1495
1717
|
* @memberof TEKSignature
|
|
1496
1718
|
* @static
|
|
1497
1719
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1498
|
-
* @returns {TEKSignature} TEKSignature
|
|
1720
|
+
* @returns {TEKSignature & TEKSignature.$Shape} TEKSignature
|
|
1499
1721
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1500
1722
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1501
1723
|
*/
|
|
@@ -1513,11 +1735,15 @@ $root.TEKSignature = (function() {
|
|
|
1513
1735
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1514
1736
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1515
1737
|
*/
|
|
1516
|
-
TEKSignature.verify = function verify(message) {
|
|
1738
|
+
TEKSignature.verify = function verify(message, _depth) {
|
|
1517
1739
|
if (typeof message !== "object" || message === null)
|
|
1518
1740
|
return "object expected";
|
|
1741
|
+
if (_depth === undefined)
|
|
1742
|
+
_depth = 0;
|
|
1743
|
+
if (_depth > $util.recursionLimit)
|
|
1744
|
+
return "max depth exceeded";
|
|
1519
1745
|
if (message.signatureInfo != null && message.hasOwnProperty("signatureInfo")) {
|
|
1520
|
-
var error = $root.SignatureInfo.verify(message.signatureInfo);
|
|
1746
|
+
var error = $root.SignatureInfo.verify(message.signatureInfo, _depth + 1);
|
|
1521
1747
|
if (error)
|
|
1522
1748
|
return "signatureInfo." + error;
|
|
1523
1749
|
}
|
|
@@ -1541,14 +1767,18 @@ $root.TEKSignature = (function() {
|
|
|
1541
1767
|
* @param {Object.<string,*>} object Plain object
|
|
1542
1768
|
* @returns {TEKSignature} TEKSignature
|
|
1543
1769
|
*/
|
|
1544
|
-
TEKSignature.fromObject = function fromObject(object) {
|
|
1770
|
+
TEKSignature.fromObject = function fromObject(object, _depth) {
|
|
1545
1771
|
if (object instanceof $root.TEKSignature)
|
|
1546
1772
|
return object;
|
|
1773
|
+
if (_depth === undefined)
|
|
1774
|
+
_depth = 0;
|
|
1775
|
+
if (_depth > $util.recursionLimit)
|
|
1776
|
+
throw Error("max depth exceeded");
|
|
1547
1777
|
var message = new $root.TEKSignature();
|
|
1548
1778
|
if (object.signatureInfo != null) {
|
|
1549
1779
|
if (typeof object.signatureInfo !== "object")
|
|
1550
1780
|
throw TypeError(".TEKSignature.signatureInfo: object expected");
|
|
1551
|
-
message.signatureInfo = $root.SignatureInfo.fromObject(object.signatureInfo);
|
|
1781
|
+
message.signatureInfo = $root.SignatureInfo.fromObject(object.signatureInfo, _depth + 1);
|
|
1552
1782
|
}
|
|
1553
1783
|
if (object.batchNum != null)
|
|
1554
1784
|
message.batchNum = object.batchNum | 0;
|
|
@@ -1610,18 +1840,17 @@ $root.TEKSignature = (function() {
|
|
|
1610
1840
|
};
|
|
1611
1841
|
|
|
1612
1842
|
/**
|
|
1613
|
-
* Gets the
|
|
1843
|
+
* Gets the type url for TEKSignature
|
|
1614
1844
|
* @function getTypeUrl
|
|
1615
1845
|
* @memberof TEKSignature
|
|
1616
1846
|
* @static
|
|
1617
|
-
* @param {string} [
|
|
1618
|
-
* @returns {string} The
|
|
1847
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
1848
|
+
* @returns {string} The type url
|
|
1619
1849
|
*/
|
|
1620
|
-
TEKSignature.getTypeUrl = function getTypeUrl(
|
|
1621
|
-
if (
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
return typeUrlPrefix + "/TEKSignature";
|
|
1850
|
+
TEKSignature.getTypeUrl = function getTypeUrl(prefix) {
|
|
1851
|
+
if (prefix === undefined)
|
|
1852
|
+
prefix = "type.googleapis.com";
|
|
1853
|
+
return prefix + "/TEKSignature";
|
|
1625
1854
|
};
|
|
1626
1855
|
|
|
1627
1856
|
return TEKSignature;
|