@aceplus/smartace-api 3.7.0-alpha.3 → 3.7.0-alpha.5

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.
@@ -0,0 +1,1423 @@
1
+ // source: auth.passkey.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var auth_authn_pb = require('./auth.authn_pb.js');
27
+ goog.object.extend(proto, auth_authn_pb);
28
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
29
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
30
+ goog.exportSymbol('proto.Auth.PasskeyProto', null, global);
31
+ goog.exportSymbol('proto.Auth.PasskeyProto.AssertionOptions', null, global);
32
+ goog.exportSymbol('proto.Auth.PasskeyProto.CreateCredentialsRequest', null, global);
33
+ goog.exportSymbol('proto.Auth.PasskeyProto.CredentialCreateOptions', null, global);
34
+ goog.exportSymbol('proto.Auth.PasskeyProto.GetAssertionOptionsRequest', null, global);
35
+ goog.exportSymbol('proto.Auth.PasskeyProto.GetCredentialsRequest', null, global);
36
+ goog.exportSymbol('proto.Auth.PasskeyProto.MakeAssertionRequest', null, global);
37
+ /**
38
+ * Generated by JsPbCodeGenerator.
39
+ * @param {Array=} opt_data Optional initial data array, typically from a
40
+ * server response, or constructed directly in Javascript. The array is used
41
+ * in place and becomes part of the constructed object. It is not cloned.
42
+ * If no data is provided, the constructed object will be empty, but still
43
+ * valid.
44
+ * @extends {jspb.Message}
45
+ * @constructor
46
+ */
47
+ proto.Auth.PasskeyProto = function(opt_data) {
48
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
49
+ };
50
+ goog.inherits(proto.Auth.PasskeyProto, jspb.Message);
51
+ if (goog.DEBUG && !COMPILED) {
52
+ /**
53
+ * @public
54
+ * @override
55
+ */
56
+ proto.Auth.PasskeyProto.displayName = 'proto.Auth.PasskeyProto';
57
+ }
58
+ /**
59
+ * Generated by JsPbCodeGenerator.
60
+ * @param {Array=} opt_data Optional initial data array, typically from a
61
+ * server response, or constructed directly in Javascript. The array is used
62
+ * in place and becomes part of the constructed object. It is not cloned.
63
+ * If no data is provided, the constructed object will be empty, but still
64
+ * valid.
65
+ * @extends {jspb.Message}
66
+ * @constructor
67
+ */
68
+ proto.Auth.PasskeyProto.GetCredentialsRequest = function(opt_data) {
69
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
70
+ };
71
+ goog.inherits(proto.Auth.PasskeyProto.GetCredentialsRequest, jspb.Message);
72
+ if (goog.DEBUG && !COMPILED) {
73
+ /**
74
+ * @public
75
+ * @override
76
+ */
77
+ proto.Auth.PasskeyProto.GetCredentialsRequest.displayName = 'proto.Auth.PasskeyProto.GetCredentialsRequest';
78
+ }
79
+ /**
80
+ * Generated by JsPbCodeGenerator.
81
+ * @param {Array=} opt_data Optional initial data array, typically from a
82
+ * server response, or constructed directly in Javascript. The array is used
83
+ * in place and becomes part of the constructed object. It is not cloned.
84
+ * If no data is provided, the constructed object will be empty, but still
85
+ * valid.
86
+ * @extends {jspb.Message}
87
+ * @constructor
88
+ */
89
+ proto.Auth.PasskeyProto.CredentialCreateOptions = function(opt_data) {
90
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
91
+ };
92
+ goog.inherits(proto.Auth.PasskeyProto.CredentialCreateOptions, jspb.Message);
93
+ if (goog.DEBUG && !COMPILED) {
94
+ /**
95
+ * @public
96
+ * @override
97
+ */
98
+ proto.Auth.PasskeyProto.CredentialCreateOptions.displayName = 'proto.Auth.PasskeyProto.CredentialCreateOptions';
99
+ }
100
+ /**
101
+ * Generated by JsPbCodeGenerator.
102
+ * @param {Array=} opt_data Optional initial data array, typically from a
103
+ * server response, or constructed directly in Javascript. The array is used
104
+ * in place and becomes part of the constructed object. It is not cloned.
105
+ * If no data is provided, the constructed object will be empty, but still
106
+ * valid.
107
+ * @extends {jspb.Message}
108
+ * @constructor
109
+ */
110
+ proto.Auth.PasskeyProto.CreateCredentialsRequest = function(opt_data) {
111
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
+ };
113
+ goog.inherits(proto.Auth.PasskeyProto.CreateCredentialsRequest, jspb.Message);
114
+ if (goog.DEBUG && !COMPILED) {
115
+ /**
116
+ * @public
117
+ * @override
118
+ */
119
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.displayName = 'proto.Auth.PasskeyProto.CreateCredentialsRequest';
120
+ }
121
+ /**
122
+ * Generated by JsPbCodeGenerator.
123
+ * @param {Array=} opt_data Optional initial data array, typically from a
124
+ * server response, or constructed directly in Javascript. The array is used
125
+ * in place and becomes part of the constructed object. It is not cloned.
126
+ * If no data is provided, the constructed object will be empty, but still
127
+ * valid.
128
+ * @extends {jspb.Message}
129
+ * @constructor
130
+ */
131
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest = function(opt_data) {
132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
+ };
134
+ goog.inherits(proto.Auth.PasskeyProto.GetAssertionOptionsRequest, jspb.Message);
135
+ if (goog.DEBUG && !COMPILED) {
136
+ /**
137
+ * @public
138
+ * @override
139
+ */
140
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.displayName = 'proto.Auth.PasskeyProto.GetAssertionOptionsRequest';
141
+ }
142
+ /**
143
+ * Generated by JsPbCodeGenerator.
144
+ * @param {Array=} opt_data Optional initial data array, typically from a
145
+ * server response, or constructed directly in Javascript. The array is used
146
+ * in place and becomes part of the constructed object. It is not cloned.
147
+ * If no data is provided, the constructed object will be empty, but still
148
+ * valid.
149
+ * @extends {jspb.Message}
150
+ * @constructor
151
+ */
152
+ proto.Auth.PasskeyProto.AssertionOptions = function(opt_data) {
153
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
154
+ };
155
+ goog.inherits(proto.Auth.PasskeyProto.AssertionOptions, jspb.Message);
156
+ if (goog.DEBUG && !COMPILED) {
157
+ /**
158
+ * @public
159
+ * @override
160
+ */
161
+ proto.Auth.PasskeyProto.AssertionOptions.displayName = 'proto.Auth.PasskeyProto.AssertionOptions';
162
+ }
163
+ /**
164
+ * Generated by JsPbCodeGenerator.
165
+ * @param {Array=} opt_data Optional initial data array, typically from a
166
+ * server response, or constructed directly in Javascript. The array is used
167
+ * in place and becomes part of the constructed object. It is not cloned.
168
+ * If no data is provided, the constructed object will be empty, but still
169
+ * valid.
170
+ * @extends {jspb.Message}
171
+ * @constructor
172
+ */
173
+ proto.Auth.PasskeyProto.MakeAssertionRequest = function(opt_data) {
174
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
175
+ };
176
+ goog.inherits(proto.Auth.PasskeyProto.MakeAssertionRequest, jspb.Message);
177
+ if (goog.DEBUG && !COMPILED) {
178
+ /**
179
+ * @public
180
+ * @override
181
+ */
182
+ proto.Auth.PasskeyProto.MakeAssertionRequest.displayName = 'proto.Auth.PasskeyProto.MakeAssertionRequest';
183
+ }
184
+
185
+
186
+
187
+ if (jspb.Message.GENERATE_TO_OBJECT) {
188
+ /**
189
+ * Creates an object representation of this proto.
190
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
191
+ * Optional fields that are not set will be set to undefined.
192
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
193
+ * For the list of reserved names please see:
194
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
195
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
196
+ * JSPB instance for transitional soy proto support:
197
+ * http://goto/soy-param-migration
198
+ * @return {!Object}
199
+ */
200
+ proto.Auth.PasskeyProto.prototype.toObject = function(opt_includeInstance) {
201
+ return proto.Auth.PasskeyProto.toObject(opt_includeInstance, this);
202
+ };
203
+
204
+
205
+ /**
206
+ * Static version of the {@see toObject} method.
207
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
208
+ * the JSPB instance for transitional soy proto support:
209
+ * http://goto/soy-param-migration
210
+ * @param {!proto.Auth.PasskeyProto} msg The msg instance to transform.
211
+ * @return {!Object}
212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
213
+ */
214
+ proto.Auth.PasskeyProto.toObject = function(includeInstance, msg) {
215
+ var f, obj = {
216
+ id: msg.getId_asB64(),
217
+ userHandle: msg.getUserHandle_asB64(),
218
+ signCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
219
+ attestationFormat: jspb.Message.getFieldWithDefault(msg, 5, ""),
220
+ regDate: (f = msg.getRegDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
221
+ aaGuid: jspb.Message.getFieldWithDefault(msg, 7, ""),
222
+ isBackupEligible: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
223
+ isBackedUp: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
224
+ attestationObject: msg.getAttestationObject_asB64(),
225
+ attestationClientDataJson: msg.getAttestationClientDataJson_asB64()
226
+ };
227
+
228
+ if (includeInstance) {
229
+ obj.$jspbMessageInstance = msg;
230
+ }
231
+ return obj;
232
+ };
233
+ }
234
+
235
+
236
+ /**
237
+ * Deserializes binary data (in protobuf wire format).
238
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
239
+ * @return {!proto.Auth.PasskeyProto}
240
+ */
241
+ proto.Auth.PasskeyProto.deserializeBinary = function(bytes) {
242
+ var reader = new jspb.BinaryReader(bytes);
243
+ var msg = new proto.Auth.PasskeyProto;
244
+ return proto.Auth.PasskeyProto.deserializeBinaryFromReader(msg, reader);
245
+ };
246
+
247
+
248
+ /**
249
+ * Deserializes binary data (in protobuf wire format) from the
250
+ * given reader into the given message object.
251
+ * @param {!proto.Auth.PasskeyProto} msg The message object to deserialize into.
252
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
253
+ * @return {!proto.Auth.PasskeyProto}
254
+ */
255
+ proto.Auth.PasskeyProto.deserializeBinaryFromReader = function(msg, reader) {
256
+ while (reader.nextField()) {
257
+ if (reader.isEndGroup()) {
258
+ break;
259
+ }
260
+ var field = reader.getFieldNumber();
261
+ switch (field) {
262
+ case 1:
263
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
264
+ msg.setId(value);
265
+ break;
266
+ case 3:
267
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
268
+ msg.setUserHandle(value);
269
+ break;
270
+ case 4:
271
+ var value = /** @type {number} */ (reader.readUint32());
272
+ msg.setSignCount(value);
273
+ break;
274
+ case 5:
275
+ var value = /** @type {string} */ (reader.readString());
276
+ msg.setAttestationFormat(value);
277
+ break;
278
+ case 6:
279
+ var value = new google_protobuf_timestamp_pb.Timestamp;
280
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
281
+ msg.setRegDate(value);
282
+ break;
283
+ case 7:
284
+ var value = /** @type {string} */ (reader.readString());
285
+ msg.setAaGuid(value);
286
+ break;
287
+ case 9:
288
+ var value = /** @type {boolean} */ (reader.readBool());
289
+ msg.setIsBackupEligible(value);
290
+ break;
291
+ case 10:
292
+ var value = /** @type {boolean} */ (reader.readBool());
293
+ msg.setIsBackedUp(value);
294
+ break;
295
+ case 11:
296
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
297
+ msg.setAttestationObject(value);
298
+ break;
299
+ case 12:
300
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
301
+ msg.setAttestationClientDataJson(value);
302
+ break;
303
+ default:
304
+ reader.skipField();
305
+ break;
306
+ }
307
+ }
308
+ return msg;
309
+ };
310
+
311
+
312
+ /**
313
+ * Serializes the message to binary data (in protobuf wire format).
314
+ * @return {!Uint8Array}
315
+ */
316
+ proto.Auth.PasskeyProto.prototype.serializeBinary = function() {
317
+ var writer = new jspb.BinaryWriter();
318
+ proto.Auth.PasskeyProto.serializeBinaryToWriter(this, writer);
319
+ return writer.getResultBuffer();
320
+ };
321
+
322
+
323
+ /**
324
+ * Serializes the given message to binary data (in protobuf wire
325
+ * format), writing to the given BinaryWriter.
326
+ * @param {!proto.Auth.PasskeyProto} message
327
+ * @param {!jspb.BinaryWriter} writer
328
+ * @suppress {unusedLocalVariables} f is only used for nested messages
329
+ */
330
+ proto.Auth.PasskeyProto.serializeBinaryToWriter = function(message, writer) {
331
+ var f = undefined;
332
+ f = message.getId_asU8();
333
+ if (f.length > 0) {
334
+ writer.writeBytes(
335
+ 1,
336
+ f
337
+ );
338
+ }
339
+ f = message.getUserHandle_asU8();
340
+ if (f.length > 0) {
341
+ writer.writeBytes(
342
+ 3,
343
+ f
344
+ );
345
+ }
346
+ f = message.getSignCount();
347
+ if (f !== 0) {
348
+ writer.writeUint32(
349
+ 4,
350
+ f
351
+ );
352
+ }
353
+ f = message.getAttestationFormat();
354
+ if (f.length > 0) {
355
+ writer.writeString(
356
+ 5,
357
+ f
358
+ );
359
+ }
360
+ f = message.getRegDate();
361
+ if (f != null) {
362
+ writer.writeMessage(
363
+ 6,
364
+ f,
365
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
366
+ );
367
+ }
368
+ f = message.getAaGuid();
369
+ if (f.length > 0) {
370
+ writer.writeString(
371
+ 7,
372
+ f
373
+ );
374
+ }
375
+ f = message.getIsBackupEligible();
376
+ if (f) {
377
+ writer.writeBool(
378
+ 9,
379
+ f
380
+ );
381
+ }
382
+ f = message.getIsBackedUp();
383
+ if (f) {
384
+ writer.writeBool(
385
+ 10,
386
+ f
387
+ );
388
+ }
389
+ f = message.getAttestationObject_asU8();
390
+ if (f.length > 0) {
391
+ writer.writeBytes(
392
+ 11,
393
+ f
394
+ );
395
+ }
396
+ f = message.getAttestationClientDataJson_asU8();
397
+ if (f.length > 0) {
398
+ writer.writeBytes(
399
+ 12,
400
+ f
401
+ );
402
+ }
403
+ };
404
+
405
+
406
+
407
+
408
+
409
+ if (jspb.Message.GENERATE_TO_OBJECT) {
410
+ /**
411
+ * Creates an object representation of this proto.
412
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
413
+ * Optional fields that are not set will be set to undefined.
414
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
415
+ * For the list of reserved names please see:
416
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
417
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
418
+ * JSPB instance for transitional soy proto support:
419
+ * http://goto/soy-param-migration
420
+ * @return {!Object}
421
+ */
422
+ proto.Auth.PasskeyProto.GetCredentialsRequest.prototype.toObject = function(opt_includeInstance) {
423
+ return proto.Auth.PasskeyProto.GetCredentialsRequest.toObject(opt_includeInstance, this);
424
+ };
425
+
426
+
427
+ /**
428
+ * Static version of the {@see toObject} method.
429
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
430
+ * the JSPB instance for transitional soy proto support:
431
+ * http://goto/soy-param-migration
432
+ * @param {!proto.Auth.PasskeyProto.GetCredentialsRequest} msg The msg instance to transform.
433
+ * @return {!Object}
434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
435
+ */
436
+ proto.Auth.PasskeyProto.GetCredentialsRequest.toObject = function(includeInstance, msg) {
437
+ var f, obj = {
438
+
439
+ };
440
+
441
+ if (includeInstance) {
442
+ obj.$jspbMessageInstance = msg;
443
+ }
444
+ return obj;
445
+ };
446
+ }
447
+
448
+
449
+ /**
450
+ * Deserializes binary data (in protobuf wire format).
451
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
452
+ * @return {!proto.Auth.PasskeyProto.GetCredentialsRequest}
453
+ */
454
+ proto.Auth.PasskeyProto.GetCredentialsRequest.deserializeBinary = function(bytes) {
455
+ var reader = new jspb.BinaryReader(bytes);
456
+ var msg = new proto.Auth.PasskeyProto.GetCredentialsRequest;
457
+ return proto.Auth.PasskeyProto.GetCredentialsRequest.deserializeBinaryFromReader(msg, reader);
458
+ };
459
+
460
+
461
+ /**
462
+ * Deserializes binary data (in protobuf wire format) from the
463
+ * given reader into the given message object.
464
+ * @param {!proto.Auth.PasskeyProto.GetCredentialsRequest} msg The message object to deserialize into.
465
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
466
+ * @return {!proto.Auth.PasskeyProto.GetCredentialsRequest}
467
+ */
468
+ proto.Auth.PasskeyProto.GetCredentialsRequest.deserializeBinaryFromReader = function(msg, reader) {
469
+ while (reader.nextField()) {
470
+ if (reader.isEndGroup()) {
471
+ break;
472
+ }
473
+ var field = reader.getFieldNumber();
474
+ switch (field) {
475
+ default:
476
+ reader.skipField();
477
+ break;
478
+ }
479
+ }
480
+ return msg;
481
+ };
482
+
483
+
484
+ /**
485
+ * Serializes the message to binary data (in protobuf wire format).
486
+ * @return {!Uint8Array}
487
+ */
488
+ proto.Auth.PasskeyProto.GetCredentialsRequest.prototype.serializeBinary = function() {
489
+ var writer = new jspb.BinaryWriter();
490
+ proto.Auth.PasskeyProto.GetCredentialsRequest.serializeBinaryToWriter(this, writer);
491
+ return writer.getResultBuffer();
492
+ };
493
+
494
+
495
+ /**
496
+ * Serializes the given message to binary data (in protobuf wire
497
+ * format), writing to the given BinaryWriter.
498
+ * @param {!proto.Auth.PasskeyProto.GetCredentialsRequest} message
499
+ * @param {!jspb.BinaryWriter} writer
500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
501
+ */
502
+ proto.Auth.PasskeyProto.GetCredentialsRequest.serializeBinaryToWriter = function(message, writer) {
503
+ var f = undefined;
504
+ };
505
+
506
+
507
+
508
+
509
+
510
+ if (jspb.Message.GENERATE_TO_OBJECT) {
511
+ /**
512
+ * Creates an object representation of this proto.
513
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
514
+ * Optional fields that are not set will be set to undefined.
515
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
516
+ * For the list of reserved names please see:
517
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
518
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
519
+ * JSPB instance for transitional soy proto support:
520
+ * http://goto/soy-param-migration
521
+ * @return {!Object}
522
+ */
523
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.toObject = function(opt_includeInstance) {
524
+ return proto.Auth.PasskeyProto.CredentialCreateOptions.toObject(opt_includeInstance, this);
525
+ };
526
+
527
+
528
+ /**
529
+ * Static version of the {@see toObject} method.
530
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
531
+ * the JSPB instance for transitional soy proto support:
532
+ * http://goto/soy-param-migration
533
+ * @param {!proto.Auth.PasskeyProto.CredentialCreateOptions} msg The msg instance to transform.
534
+ * @return {!Object}
535
+ * @suppress {unusedLocalVariables} f is only used for nested messages
536
+ */
537
+ proto.Auth.PasskeyProto.CredentialCreateOptions.toObject = function(includeInstance, msg) {
538
+ var f, obj = {
539
+ options: jspb.Message.getFieldWithDefault(msg, 1, "")
540
+ };
541
+
542
+ if (includeInstance) {
543
+ obj.$jspbMessageInstance = msg;
544
+ }
545
+ return obj;
546
+ };
547
+ }
548
+
549
+
550
+ /**
551
+ * Deserializes binary data (in protobuf wire format).
552
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
553
+ * @return {!proto.Auth.PasskeyProto.CredentialCreateOptions}
554
+ */
555
+ proto.Auth.PasskeyProto.CredentialCreateOptions.deserializeBinary = function(bytes) {
556
+ var reader = new jspb.BinaryReader(bytes);
557
+ var msg = new proto.Auth.PasskeyProto.CredentialCreateOptions;
558
+ return proto.Auth.PasskeyProto.CredentialCreateOptions.deserializeBinaryFromReader(msg, reader);
559
+ };
560
+
561
+
562
+ /**
563
+ * Deserializes binary data (in protobuf wire format) from the
564
+ * given reader into the given message object.
565
+ * @param {!proto.Auth.PasskeyProto.CredentialCreateOptions} msg The message object to deserialize into.
566
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
567
+ * @return {!proto.Auth.PasskeyProto.CredentialCreateOptions}
568
+ */
569
+ proto.Auth.PasskeyProto.CredentialCreateOptions.deserializeBinaryFromReader = function(msg, reader) {
570
+ while (reader.nextField()) {
571
+ if (reader.isEndGroup()) {
572
+ break;
573
+ }
574
+ var field = reader.getFieldNumber();
575
+ switch (field) {
576
+ case 1:
577
+ var value = /** @type {string} */ (reader.readString());
578
+ msg.setOptions(value);
579
+ break;
580
+ default:
581
+ reader.skipField();
582
+ break;
583
+ }
584
+ }
585
+ return msg;
586
+ };
587
+
588
+
589
+ /**
590
+ * Serializes the message to binary data (in protobuf wire format).
591
+ * @return {!Uint8Array}
592
+ */
593
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.serializeBinary = function() {
594
+ var writer = new jspb.BinaryWriter();
595
+ proto.Auth.PasskeyProto.CredentialCreateOptions.serializeBinaryToWriter(this, writer);
596
+ return writer.getResultBuffer();
597
+ };
598
+
599
+
600
+ /**
601
+ * Serializes the given message to binary data (in protobuf wire
602
+ * format), writing to the given BinaryWriter.
603
+ * @param {!proto.Auth.PasskeyProto.CredentialCreateOptions} message
604
+ * @param {!jspb.BinaryWriter} writer
605
+ * @suppress {unusedLocalVariables} f is only used for nested messages
606
+ */
607
+ proto.Auth.PasskeyProto.CredentialCreateOptions.serializeBinaryToWriter = function(message, writer) {
608
+ var f = undefined;
609
+ f = message.getOptions();
610
+ if (f.length > 0) {
611
+ writer.writeString(
612
+ 1,
613
+ f
614
+ );
615
+ }
616
+ };
617
+
618
+
619
+ /**
620
+ * optional string options = 1;
621
+ * @return {string}
622
+ */
623
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.getOptions = function() {
624
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
625
+ };
626
+
627
+
628
+ /**
629
+ * @param {string} value
630
+ * @return {!proto.Auth.PasskeyProto.CredentialCreateOptions} returns this
631
+ */
632
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.setOptions = function(value) {
633
+ return jspb.Message.setProto3StringField(this, 1, value);
634
+ };
635
+
636
+
637
+
638
+
639
+
640
+ if (jspb.Message.GENERATE_TO_OBJECT) {
641
+ /**
642
+ * Creates an object representation of this proto.
643
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
644
+ * Optional fields that are not set will be set to undefined.
645
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
646
+ * For the list of reserved names please see:
647
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
648
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
649
+ * JSPB instance for transitional soy proto support:
650
+ * http://goto/soy-param-migration
651
+ * @return {!Object}
652
+ */
653
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.toObject = function(opt_includeInstance) {
654
+ return proto.Auth.PasskeyProto.CreateCredentialsRequest.toObject(opt_includeInstance, this);
655
+ };
656
+
657
+
658
+ /**
659
+ * Static version of the {@see toObject} method.
660
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
661
+ * the JSPB instance for transitional soy proto support:
662
+ * http://goto/soy-param-migration
663
+ * @param {!proto.Auth.PasskeyProto.CreateCredentialsRequest} msg The msg instance to transform.
664
+ * @return {!Object}
665
+ * @suppress {unusedLocalVariables} f is only used for nested messages
666
+ */
667
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.toObject = function(includeInstance, msg) {
668
+ var f, obj = {
669
+ authenticatorAttestationRawResponse: jspb.Message.getFieldWithDefault(msg, 1, "")
670
+ };
671
+
672
+ if (includeInstance) {
673
+ obj.$jspbMessageInstance = msg;
674
+ }
675
+ return obj;
676
+ };
677
+ }
678
+
679
+
680
+ /**
681
+ * Deserializes binary data (in protobuf wire format).
682
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
683
+ * @return {!proto.Auth.PasskeyProto.CreateCredentialsRequest}
684
+ */
685
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.deserializeBinary = function(bytes) {
686
+ var reader = new jspb.BinaryReader(bytes);
687
+ var msg = new proto.Auth.PasskeyProto.CreateCredentialsRequest;
688
+ return proto.Auth.PasskeyProto.CreateCredentialsRequest.deserializeBinaryFromReader(msg, reader);
689
+ };
690
+
691
+
692
+ /**
693
+ * Deserializes binary data (in protobuf wire format) from the
694
+ * given reader into the given message object.
695
+ * @param {!proto.Auth.PasskeyProto.CreateCredentialsRequest} msg The message object to deserialize into.
696
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
697
+ * @return {!proto.Auth.PasskeyProto.CreateCredentialsRequest}
698
+ */
699
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.deserializeBinaryFromReader = function(msg, reader) {
700
+ while (reader.nextField()) {
701
+ if (reader.isEndGroup()) {
702
+ break;
703
+ }
704
+ var field = reader.getFieldNumber();
705
+ switch (field) {
706
+ case 1:
707
+ var value = /** @type {string} */ (reader.readString());
708
+ msg.setAuthenticatorAttestationRawResponse(value);
709
+ break;
710
+ default:
711
+ reader.skipField();
712
+ break;
713
+ }
714
+ }
715
+ return msg;
716
+ };
717
+
718
+
719
+ /**
720
+ * Serializes the message to binary data (in protobuf wire format).
721
+ * @return {!Uint8Array}
722
+ */
723
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.serializeBinary = function() {
724
+ var writer = new jspb.BinaryWriter();
725
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.serializeBinaryToWriter(this, writer);
726
+ return writer.getResultBuffer();
727
+ };
728
+
729
+
730
+ /**
731
+ * Serializes the given message to binary data (in protobuf wire
732
+ * format), writing to the given BinaryWriter.
733
+ * @param {!proto.Auth.PasskeyProto.CreateCredentialsRequest} message
734
+ * @param {!jspb.BinaryWriter} writer
735
+ * @suppress {unusedLocalVariables} f is only used for nested messages
736
+ */
737
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.serializeBinaryToWriter = function(message, writer) {
738
+ var f = undefined;
739
+ f = message.getAuthenticatorAttestationRawResponse();
740
+ if (f.length > 0) {
741
+ writer.writeString(
742
+ 1,
743
+ f
744
+ );
745
+ }
746
+ };
747
+
748
+
749
+ /**
750
+ * optional string authenticator_attestation_raw_response = 1;
751
+ * @return {string}
752
+ */
753
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.getAuthenticatorAttestationRawResponse = function() {
754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
755
+ };
756
+
757
+
758
+ /**
759
+ * @param {string} value
760
+ * @return {!proto.Auth.PasskeyProto.CreateCredentialsRequest} returns this
761
+ */
762
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.setAuthenticatorAttestationRawResponse = function(value) {
763
+ return jspb.Message.setProto3StringField(this, 1, value);
764
+ };
765
+
766
+
767
+
768
+
769
+
770
+ if (jspb.Message.GENERATE_TO_OBJECT) {
771
+ /**
772
+ * Creates an object representation of this proto.
773
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
774
+ * Optional fields that are not set will be set to undefined.
775
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
776
+ * For the list of reserved names please see:
777
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
778
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
779
+ * JSPB instance for transitional soy proto support:
780
+ * http://goto/soy-param-migration
781
+ * @return {!Object}
782
+ */
783
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.toObject = function(opt_includeInstance) {
784
+ return proto.Auth.PasskeyProto.GetAssertionOptionsRequest.toObject(opt_includeInstance, this);
785
+ };
786
+
787
+
788
+ /**
789
+ * Static version of the {@see toObject} method.
790
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
791
+ * the JSPB instance for transitional soy proto support:
792
+ * http://goto/soy-param-migration
793
+ * @param {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} msg The msg instance to transform.
794
+ * @return {!Object}
795
+ * @suppress {unusedLocalVariables} f is only used for nested messages
796
+ */
797
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.toObject = function(includeInstance, msg) {
798
+ var f, obj = {
799
+
800
+ };
801
+
802
+ if (includeInstance) {
803
+ obj.$jspbMessageInstance = msg;
804
+ }
805
+ return obj;
806
+ };
807
+ }
808
+
809
+
810
+ /**
811
+ * Deserializes binary data (in protobuf wire format).
812
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
813
+ * @return {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest}
814
+ */
815
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.deserializeBinary = function(bytes) {
816
+ var reader = new jspb.BinaryReader(bytes);
817
+ var msg = new proto.Auth.PasskeyProto.GetAssertionOptionsRequest;
818
+ return proto.Auth.PasskeyProto.GetAssertionOptionsRequest.deserializeBinaryFromReader(msg, reader);
819
+ };
820
+
821
+
822
+ /**
823
+ * Deserializes binary data (in protobuf wire format) from the
824
+ * given reader into the given message object.
825
+ * @param {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} msg The message object to deserialize into.
826
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
827
+ * @return {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest}
828
+ */
829
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.deserializeBinaryFromReader = function(msg, reader) {
830
+ while (reader.nextField()) {
831
+ if (reader.isEndGroup()) {
832
+ break;
833
+ }
834
+ var field = reader.getFieldNumber();
835
+ switch (field) {
836
+ default:
837
+ reader.skipField();
838
+ break;
839
+ }
840
+ }
841
+ return msg;
842
+ };
843
+
844
+
845
+ /**
846
+ * Serializes the message to binary data (in protobuf wire format).
847
+ * @return {!Uint8Array}
848
+ */
849
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.serializeBinary = function() {
850
+ var writer = new jspb.BinaryWriter();
851
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.serializeBinaryToWriter(this, writer);
852
+ return writer.getResultBuffer();
853
+ };
854
+
855
+
856
+ /**
857
+ * Serializes the given message to binary data (in protobuf wire
858
+ * format), writing to the given BinaryWriter.
859
+ * @param {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} message
860
+ * @param {!jspb.BinaryWriter} writer
861
+ * @suppress {unusedLocalVariables} f is only used for nested messages
862
+ */
863
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.serializeBinaryToWriter = function(message, writer) {
864
+ var f = undefined;
865
+ };
866
+
867
+
868
+
869
+
870
+
871
+ if (jspb.Message.GENERATE_TO_OBJECT) {
872
+ /**
873
+ * Creates an object representation of this proto.
874
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
875
+ * Optional fields that are not set will be set to undefined.
876
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
877
+ * For the list of reserved names please see:
878
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
879
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
880
+ * JSPB instance for transitional soy proto support:
881
+ * http://goto/soy-param-migration
882
+ * @return {!Object}
883
+ */
884
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.toObject = function(opt_includeInstance) {
885
+ return proto.Auth.PasskeyProto.AssertionOptions.toObject(opt_includeInstance, this);
886
+ };
887
+
888
+
889
+ /**
890
+ * Static version of the {@see toObject} method.
891
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
892
+ * the JSPB instance for transitional soy proto support:
893
+ * http://goto/soy-param-migration
894
+ * @param {!proto.Auth.PasskeyProto.AssertionOptions} msg The msg instance to transform.
895
+ * @return {!Object}
896
+ * @suppress {unusedLocalVariables} f is only used for nested messages
897
+ */
898
+ proto.Auth.PasskeyProto.AssertionOptions.toObject = function(includeInstance, msg) {
899
+ var f, obj = {
900
+ options: jspb.Message.getFieldWithDefault(msg, 1, "")
901
+ };
902
+
903
+ if (includeInstance) {
904
+ obj.$jspbMessageInstance = msg;
905
+ }
906
+ return obj;
907
+ };
908
+ }
909
+
910
+
911
+ /**
912
+ * Deserializes binary data (in protobuf wire format).
913
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
914
+ * @return {!proto.Auth.PasskeyProto.AssertionOptions}
915
+ */
916
+ proto.Auth.PasskeyProto.AssertionOptions.deserializeBinary = function(bytes) {
917
+ var reader = new jspb.BinaryReader(bytes);
918
+ var msg = new proto.Auth.PasskeyProto.AssertionOptions;
919
+ return proto.Auth.PasskeyProto.AssertionOptions.deserializeBinaryFromReader(msg, reader);
920
+ };
921
+
922
+
923
+ /**
924
+ * Deserializes binary data (in protobuf wire format) from the
925
+ * given reader into the given message object.
926
+ * @param {!proto.Auth.PasskeyProto.AssertionOptions} msg The message object to deserialize into.
927
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
928
+ * @return {!proto.Auth.PasskeyProto.AssertionOptions}
929
+ */
930
+ proto.Auth.PasskeyProto.AssertionOptions.deserializeBinaryFromReader = function(msg, reader) {
931
+ while (reader.nextField()) {
932
+ if (reader.isEndGroup()) {
933
+ break;
934
+ }
935
+ var field = reader.getFieldNumber();
936
+ switch (field) {
937
+ case 1:
938
+ var value = /** @type {string} */ (reader.readString());
939
+ msg.setOptions(value);
940
+ break;
941
+ default:
942
+ reader.skipField();
943
+ break;
944
+ }
945
+ }
946
+ return msg;
947
+ };
948
+
949
+
950
+ /**
951
+ * Serializes the message to binary data (in protobuf wire format).
952
+ * @return {!Uint8Array}
953
+ */
954
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.serializeBinary = function() {
955
+ var writer = new jspb.BinaryWriter();
956
+ proto.Auth.PasskeyProto.AssertionOptions.serializeBinaryToWriter(this, writer);
957
+ return writer.getResultBuffer();
958
+ };
959
+
960
+
961
+ /**
962
+ * Serializes the given message to binary data (in protobuf wire
963
+ * format), writing to the given BinaryWriter.
964
+ * @param {!proto.Auth.PasskeyProto.AssertionOptions} message
965
+ * @param {!jspb.BinaryWriter} writer
966
+ * @suppress {unusedLocalVariables} f is only used for nested messages
967
+ */
968
+ proto.Auth.PasskeyProto.AssertionOptions.serializeBinaryToWriter = function(message, writer) {
969
+ var f = undefined;
970
+ f = message.getOptions();
971
+ if (f.length > 0) {
972
+ writer.writeString(
973
+ 1,
974
+ f
975
+ );
976
+ }
977
+ };
978
+
979
+
980
+ /**
981
+ * optional string options = 1;
982
+ * @return {string}
983
+ */
984
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.getOptions = function() {
985
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
986
+ };
987
+
988
+
989
+ /**
990
+ * @param {string} value
991
+ * @return {!proto.Auth.PasskeyProto.AssertionOptions} returns this
992
+ */
993
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.setOptions = function(value) {
994
+ return jspb.Message.setProto3StringField(this, 1, value);
995
+ };
996
+
997
+
998
+
999
+
1000
+
1001
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1002
+ /**
1003
+ * Creates an object representation of this proto.
1004
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1005
+ * Optional fields that are not set will be set to undefined.
1006
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1007
+ * For the list of reserved names please see:
1008
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1009
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1010
+ * JSPB instance for transitional soy proto support:
1011
+ * http://goto/soy-param-migration
1012
+ * @return {!Object}
1013
+ */
1014
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.toObject = function(opt_includeInstance) {
1015
+ return proto.Auth.PasskeyProto.MakeAssertionRequest.toObject(opt_includeInstance, this);
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * Static version of the {@see toObject} method.
1021
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1022
+ * the JSPB instance for transitional soy proto support:
1023
+ * http://goto/soy-param-migration
1024
+ * @param {!proto.Auth.PasskeyProto.MakeAssertionRequest} msg The msg instance to transform.
1025
+ * @return {!Object}
1026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1027
+ */
1028
+ proto.Auth.PasskeyProto.MakeAssertionRequest.toObject = function(includeInstance, msg) {
1029
+ var f, obj = {
1030
+ authenticatorAssertionRawResponse: jspb.Message.getFieldWithDefault(msg, 1, "")
1031
+ };
1032
+
1033
+ if (includeInstance) {
1034
+ obj.$jspbMessageInstance = msg;
1035
+ }
1036
+ return obj;
1037
+ };
1038
+ }
1039
+
1040
+
1041
+ /**
1042
+ * Deserializes binary data (in protobuf wire format).
1043
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1044
+ * @return {!proto.Auth.PasskeyProto.MakeAssertionRequest}
1045
+ */
1046
+ proto.Auth.PasskeyProto.MakeAssertionRequest.deserializeBinary = function(bytes) {
1047
+ var reader = new jspb.BinaryReader(bytes);
1048
+ var msg = new proto.Auth.PasskeyProto.MakeAssertionRequest;
1049
+ return proto.Auth.PasskeyProto.MakeAssertionRequest.deserializeBinaryFromReader(msg, reader);
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * Deserializes binary data (in protobuf wire format) from the
1055
+ * given reader into the given message object.
1056
+ * @param {!proto.Auth.PasskeyProto.MakeAssertionRequest} msg The message object to deserialize into.
1057
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1058
+ * @return {!proto.Auth.PasskeyProto.MakeAssertionRequest}
1059
+ */
1060
+ proto.Auth.PasskeyProto.MakeAssertionRequest.deserializeBinaryFromReader = function(msg, reader) {
1061
+ while (reader.nextField()) {
1062
+ if (reader.isEndGroup()) {
1063
+ break;
1064
+ }
1065
+ var field = reader.getFieldNumber();
1066
+ switch (field) {
1067
+ case 1:
1068
+ var value = /** @type {string} */ (reader.readString());
1069
+ msg.setAuthenticatorAssertionRawResponse(value);
1070
+ break;
1071
+ default:
1072
+ reader.skipField();
1073
+ break;
1074
+ }
1075
+ }
1076
+ return msg;
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * Serializes the message to binary data (in protobuf wire format).
1082
+ * @return {!Uint8Array}
1083
+ */
1084
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.serializeBinary = function() {
1085
+ var writer = new jspb.BinaryWriter();
1086
+ proto.Auth.PasskeyProto.MakeAssertionRequest.serializeBinaryToWriter(this, writer);
1087
+ return writer.getResultBuffer();
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * Serializes the given message to binary data (in protobuf wire
1093
+ * format), writing to the given BinaryWriter.
1094
+ * @param {!proto.Auth.PasskeyProto.MakeAssertionRequest} message
1095
+ * @param {!jspb.BinaryWriter} writer
1096
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1097
+ */
1098
+ proto.Auth.PasskeyProto.MakeAssertionRequest.serializeBinaryToWriter = function(message, writer) {
1099
+ var f = undefined;
1100
+ f = message.getAuthenticatorAssertionRawResponse();
1101
+ if (f.length > 0) {
1102
+ writer.writeString(
1103
+ 1,
1104
+ f
1105
+ );
1106
+ }
1107
+ };
1108
+
1109
+
1110
+ /**
1111
+ * optional string authenticator_assertion_raw_response = 1;
1112
+ * @return {string}
1113
+ */
1114
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.getAuthenticatorAssertionRawResponse = function() {
1115
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1116
+ };
1117
+
1118
+
1119
+ /**
1120
+ * @param {string} value
1121
+ * @return {!proto.Auth.PasskeyProto.MakeAssertionRequest} returns this
1122
+ */
1123
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.setAuthenticatorAssertionRawResponse = function(value) {
1124
+ return jspb.Message.setProto3StringField(this, 1, value);
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * optional bytes id = 1;
1130
+ * @return {!(string|Uint8Array)}
1131
+ */
1132
+ proto.Auth.PasskeyProto.prototype.getId = function() {
1133
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1134
+ };
1135
+
1136
+
1137
+ /**
1138
+ * optional bytes id = 1;
1139
+ * This is a type-conversion wrapper around `getId()`
1140
+ * @return {string}
1141
+ */
1142
+ proto.Auth.PasskeyProto.prototype.getId_asB64 = function() {
1143
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1144
+ this.getId()));
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * optional bytes id = 1;
1150
+ * Note that Uint8Array is not supported on all browsers.
1151
+ * @see http://caniuse.com/Uint8Array
1152
+ * This is a type-conversion wrapper around `getId()`
1153
+ * @return {!Uint8Array}
1154
+ */
1155
+ proto.Auth.PasskeyProto.prototype.getId_asU8 = function() {
1156
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1157
+ this.getId()));
1158
+ };
1159
+
1160
+
1161
+ /**
1162
+ * @param {!(string|Uint8Array)} value
1163
+ * @return {!proto.Auth.PasskeyProto} returns this
1164
+ */
1165
+ proto.Auth.PasskeyProto.prototype.setId = function(value) {
1166
+ return jspb.Message.setProto3BytesField(this, 1, value);
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * optional bytes user_handle = 3;
1172
+ * @return {!(string|Uint8Array)}
1173
+ */
1174
+ proto.Auth.PasskeyProto.prototype.getUserHandle = function() {
1175
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * optional bytes user_handle = 3;
1181
+ * This is a type-conversion wrapper around `getUserHandle()`
1182
+ * @return {string}
1183
+ */
1184
+ proto.Auth.PasskeyProto.prototype.getUserHandle_asB64 = function() {
1185
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1186
+ this.getUserHandle()));
1187
+ };
1188
+
1189
+
1190
+ /**
1191
+ * optional bytes user_handle = 3;
1192
+ * Note that Uint8Array is not supported on all browsers.
1193
+ * @see http://caniuse.com/Uint8Array
1194
+ * This is a type-conversion wrapper around `getUserHandle()`
1195
+ * @return {!Uint8Array}
1196
+ */
1197
+ proto.Auth.PasskeyProto.prototype.getUserHandle_asU8 = function() {
1198
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1199
+ this.getUserHandle()));
1200
+ };
1201
+
1202
+
1203
+ /**
1204
+ * @param {!(string|Uint8Array)} value
1205
+ * @return {!proto.Auth.PasskeyProto} returns this
1206
+ */
1207
+ proto.Auth.PasskeyProto.prototype.setUserHandle = function(value) {
1208
+ return jspb.Message.setProto3BytesField(this, 3, value);
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * optional uint32 sign_count = 4;
1214
+ * @return {number}
1215
+ */
1216
+ proto.Auth.PasskeyProto.prototype.getSignCount = function() {
1217
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * @param {number} value
1223
+ * @return {!proto.Auth.PasskeyProto} returns this
1224
+ */
1225
+ proto.Auth.PasskeyProto.prototype.setSignCount = function(value) {
1226
+ return jspb.Message.setProto3IntField(this, 4, value);
1227
+ };
1228
+
1229
+
1230
+ /**
1231
+ * optional string attestation_format = 5;
1232
+ * @return {string}
1233
+ */
1234
+ proto.Auth.PasskeyProto.prototype.getAttestationFormat = function() {
1235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * @param {string} value
1241
+ * @return {!proto.Auth.PasskeyProto} returns this
1242
+ */
1243
+ proto.Auth.PasskeyProto.prototype.setAttestationFormat = function(value) {
1244
+ return jspb.Message.setProto3StringField(this, 5, value);
1245
+ };
1246
+
1247
+
1248
+ /**
1249
+ * optional google.protobuf.Timestamp reg_date = 6;
1250
+ * @return {?proto.google.protobuf.Timestamp}
1251
+ */
1252
+ proto.Auth.PasskeyProto.prototype.getRegDate = function() {
1253
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1254
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1260
+ * @return {!proto.Auth.PasskeyProto} returns this
1261
+ */
1262
+ proto.Auth.PasskeyProto.prototype.setRegDate = function(value) {
1263
+ return jspb.Message.setWrapperField(this, 6, value);
1264
+ };
1265
+
1266
+
1267
+ /**
1268
+ * Clears the message field making it undefined.
1269
+ * @return {!proto.Auth.PasskeyProto} returns this
1270
+ */
1271
+ proto.Auth.PasskeyProto.prototype.clearRegDate = function() {
1272
+ return this.setRegDate(undefined);
1273
+ };
1274
+
1275
+
1276
+ /**
1277
+ * Returns whether this field is set.
1278
+ * @return {boolean}
1279
+ */
1280
+ proto.Auth.PasskeyProto.prototype.hasRegDate = function() {
1281
+ return jspb.Message.getField(this, 6) != null;
1282
+ };
1283
+
1284
+
1285
+ /**
1286
+ * optional string aa_guid = 7;
1287
+ * @return {string}
1288
+ */
1289
+ proto.Auth.PasskeyProto.prototype.getAaGuid = function() {
1290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1291
+ };
1292
+
1293
+
1294
+ /**
1295
+ * @param {string} value
1296
+ * @return {!proto.Auth.PasskeyProto} returns this
1297
+ */
1298
+ proto.Auth.PasskeyProto.prototype.setAaGuid = function(value) {
1299
+ return jspb.Message.setProto3StringField(this, 7, value);
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * optional bool is_backup_eligible = 9;
1305
+ * @return {boolean}
1306
+ */
1307
+ proto.Auth.PasskeyProto.prototype.getIsBackupEligible = function() {
1308
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * @param {boolean} value
1314
+ * @return {!proto.Auth.PasskeyProto} returns this
1315
+ */
1316
+ proto.Auth.PasskeyProto.prototype.setIsBackupEligible = function(value) {
1317
+ return jspb.Message.setProto3BooleanField(this, 9, value);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * optional bool is_backed_up = 10;
1323
+ * @return {boolean}
1324
+ */
1325
+ proto.Auth.PasskeyProto.prototype.getIsBackedUp = function() {
1326
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * @param {boolean} value
1332
+ * @return {!proto.Auth.PasskeyProto} returns this
1333
+ */
1334
+ proto.Auth.PasskeyProto.prototype.setIsBackedUp = function(value) {
1335
+ return jspb.Message.setProto3BooleanField(this, 10, value);
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * optional bytes attestation_object = 11;
1341
+ * @return {!(string|Uint8Array)}
1342
+ */
1343
+ proto.Auth.PasskeyProto.prototype.getAttestationObject = function() {
1344
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * optional bytes attestation_object = 11;
1350
+ * This is a type-conversion wrapper around `getAttestationObject()`
1351
+ * @return {string}
1352
+ */
1353
+ proto.Auth.PasskeyProto.prototype.getAttestationObject_asB64 = function() {
1354
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1355
+ this.getAttestationObject()));
1356
+ };
1357
+
1358
+
1359
+ /**
1360
+ * optional bytes attestation_object = 11;
1361
+ * Note that Uint8Array is not supported on all browsers.
1362
+ * @see http://caniuse.com/Uint8Array
1363
+ * This is a type-conversion wrapper around `getAttestationObject()`
1364
+ * @return {!Uint8Array}
1365
+ */
1366
+ proto.Auth.PasskeyProto.prototype.getAttestationObject_asU8 = function() {
1367
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1368
+ this.getAttestationObject()));
1369
+ };
1370
+
1371
+
1372
+ /**
1373
+ * @param {!(string|Uint8Array)} value
1374
+ * @return {!proto.Auth.PasskeyProto} returns this
1375
+ */
1376
+ proto.Auth.PasskeyProto.prototype.setAttestationObject = function(value) {
1377
+ return jspb.Message.setProto3BytesField(this, 11, value);
1378
+ };
1379
+
1380
+
1381
+ /**
1382
+ * optional bytes attestation_client_data_json = 12;
1383
+ * @return {!(string|Uint8Array)}
1384
+ */
1385
+ proto.Auth.PasskeyProto.prototype.getAttestationClientDataJson = function() {
1386
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * optional bytes attestation_client_data_json = 12;
1392
+ * This is a type-conversion wrapper around `getAttestationClientDataJson()`
1393
+ * @return {string}
1394
+ */
1395
+ proto.Auth.PasskeyProto.prototype.getAttestationClientDataJson_asB64 = function() {
1396
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1397
+ this.getAttestationClientDataJson()));
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * optional bytes attestation_client_data_json = 12;
1403
+ * Note that Uint8Array is not supported on all browsers.
1404
+ * @see http://caniuse.com/Uint8Array
1405
+ * This is a type-conversion wrapper around `getAttestationClientDataJson()`
1406
+ * @return {!Uint8Array}
1407
+ */
1408
+ proto.Auth.PasskeyProto.prototype.getAttestationClientDataJson_asU8 = function() {
1409
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1410
+ this.getAttestationClientDataJson()));
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * @param {!(string|Uint8Array)} value
1416
+ * @return {!proto.Auth.PasskeyProto} returns this
1417
+ */
1418
+ proto.Auth.PasskeyProto.prototype.setAttestationClientDataJson = function(value) {
1419
+ return jspb.Message.setProto3BytesField(this, 12, value);
1420
+ };
1421
+
1422
+
1423
+ goog.object.extend(exports, proto.Auth);