@aceplus/smartace-api 3.7.0-alpha.4 → 3.7.0-alpha.6

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,1842 @@
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
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
31
+ goog.object.extend(proto, google_protobuf_empty_pb);
32
+ goog.exportSymbol('proto.Auth.PasskeyProto', null, global);
33
+ goog.exportSymbol('proto.Auth.PasskeyProto.AssertionOptions', null, global);
34
+ goog.exportSymbol('proto.Auth.PasskeyProto.CreateCredentialsRequest', null, global);
35
+ goog.exportSymbol('proto.Auth.PasskeyProto.CredentialCreateOptions', null, global);
36
+ goog.exportSymbol('proto.Auth.PasskeyProto.DeleteCredentialRequest', null, global);
37
+ goog.exportSymbol('proto.Auth.PasskeyProto.GetAssertionOptionsRequest', null, global);
38
+ goog.exportSymbol('proto.Auth.PasskeyProto.GetCredentialsRequest', null, global);
39
+ goog.exportSymbol('proto.Auth.PasskeyProto.ListCredentialsReply', null, global);
40
+ goog.exportSymbol('proto.Auth.PasskeyProto.MakeAssertionRequest', null, global);
41
+ /**
42
+ * Generated by JsPbCodeGenerator.
43
+ * @param {Array=} opt_data Optional initial data array, typically from a
44
+ * server response, or constructed directly in Javascript. The array is used
45
+ * in place and becomes part of the constructed object. It is not cloned.
46
+ * If no data is provided, the constructed object will be empty, but still
47
+ * valid.
48
+ * @extends {jspb.Message}
49
+ * @constructor
50
+ */
51
+ proto.Auth.PasskeyProto = function(opt_data) {
52
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
+ };
54
+ goog.inherits(proto.Auth.PasskeyProto, jspb.Message);
55
+ if (goog.DEBUG && !COMPILED) {
56
+ /**
57
+ * @public
58
+ * @override
59
+ */
60
+ proto.Auth.PasskeyProto.displayName = 'proto.Auth.PasskeyProto';
61
+ }
62
+ /**
63
+ * Generated by JsPbCodeGenerator.
64
+ * @param {Array=} opt_data Optional initial data array, typically from a
65
+ * server response, or constructed directly in Javascript. The array is used
66
+ * in place and becomes part of the constructed object. It is not cloned.
67
+ * If no data is provided, the constructed object will be empty, but still
68
+ * valid.
69
+ * @extends {jspb.Message}
70
+ * @constructor
71
+ */
72
+ proto.Auth.PasskeyProto.GetCredentialsRequest = function(opt_data) {
73
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
74
+ };
75
+ goog.inherits(proto.Auth.PasskeyProto.GetCredentialsRequest, jspb.Message);
76
+ if (goog.DEBUG && !COMPILED) {
77
+ /**
78
+ * @public
79
+ * @override
80
+ */
81
+ proto.Auth.PasskeyProto.GetCredentialsRequest.displayName = 'proto.Auth.PasskeyProto.GetCredentialsRequest';
82
+ }
83
+ /**
84
+ * Generated by JsPbCodeGenerator.
85
+ * @param {Array=} opt_data Optional initial data array, typically from a
86
+ * server response, or constructed directly in Javascript. The array is used
87
+ * in place and becomes part of the constructed object. It is not cloned.
88
+ * If no data is provided, the constructed object will be empty, but still
89
+ * valid.
90
+ * @extends {jspb.Message}
91
+ * @constructor
92
+ */
93
+ proto.Auth.PasskeyProto.CredentialCreateOptions = function(opt_data) {
94
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
95
+ };
96
+ goog.inherits(proto.Auth.PasskeyProto.CredentialCreateOptions, jspb.Message);
97
+ if (goog.DEBUG && !COMPILED) {
98
+ /**
99
+ * @public
100
+ * @override
101
+ */
102
+ proto.Auth.PasskeyProto.CredentialCreateOptions.displayName = 'proto.Auth.PasskeyProto.CredentialCreateOptions';
103
+ }
104
+ /**
105
+ * Generated by JsPbCodeGenerator.
106
+ * @param {Array=} opt_data Optional initial data array, typically from a
107
+ * server response, or constructed directly in Javascript. The array is used
108
+ * in place and becomes part of the constructed object. It is not cloned.
109
+ * If no data is provided, the constructed object will be empty, but still
110
+ * valid.
111
+ * @extends {jspb.Message}
112
+ * @constructor
113
+ */
114
+ proto.Auth.PasskeyProto.CreateCredentialsRequest = function(opt_data) {
115
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
116
+ };
117
+ goog.inherits(proto.Auth.PasskeyProto.CreateCredentialsRequest, jspb.Message);
118
+ if (goog.DEBUG && !COMPILED) {
119
+ /**
120
+ * @public
121
+ * @override
122
+ */
123
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.displayName = 'proto.Auth.PasskeyProto.CreateCredentialsRequest';
124
+ }
125
+ /**
126
+ * Generated by JsPbCodeGenerator.
127
+ * @param {Array=} opt_data Optional initial data array, typically from a
128
+ * server response, or constructed directly in Javascript. The array is used
129
+ * in place and becomes part of the constructed object. It is not cloned.
130
+ * If no data is provided, the constructed object will be empty, but still
131
+ * valid.
132
+ * @extends {jspb.Message}
133
+ * @constructor
134
+ */
135
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest = function(opt_data) {
136
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
137
+ };
138
+ goog.inherits(proto.Auth.PasskeyProto.GetAssertionOptionsRequest, jspb.Message);
139
+ if (goog.DEBUG && !COMPILED) {
140
+ /**
141
+ * @public
142
+ * @override
143
+ */
144
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.displayName = 'proto.Auth.PasskeyProto.GetAssertionOptionsRequest';
145
+ }
146
+ /**
147
+ * Generated by JsPbCodeGenerator.
148
+ * @param {Array=} opt_data Optional initial data array, typically from a
149
+ * server response, or constructed directly in Javascript. The array is used
150
+ * in place and becomes part of the constructed object. It is not cloned.
151
+ * If no data is provided, the constructed object will be empty, but still
152
+ * valid.
153
+ * @extends {jspb.Message}
154
+ * @constructor
155
+ */
156
+ proto.Auth.PasskeyProto.AssertionOptions = function(opt_data) {
157
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
158
+ };
159
+ goog.inherits(proto.Auth.PasskeyProto.AssertionOptions, jspb.Message);
160
+ if (goog.DEBUG && !COMPILED) {
161
+ /**
162
+ * @public
163
+ * @override
164
+ */
165
+ proto.Auth.PasskeyProto.AssertionOptions.displayName = 'proto.Auth.PasskeyProto.AssertionOptions';
166
+ }
167
+ /**
168
+ * Generated by JsPbCodeGenerator.
169
+ * @param {Array=} opt_data Optional initial data array, typically from a
170
+ * server response, or constructed directly in Javascript. The array is used
171
+ * in place and becomes part of the constructed object. It is not cloned.
172
+ * If no data is provided, the constructed object will be empty, but still
173
+ * valid.
174
+ * @extends {jspb.Message}
175
+ * @constructor
176
+ */
177
+ proto.Auth.PasskeyProto.MakeAssertionRequest = function(opt_data) {
178
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
179
+ };
180
+ goog.inherits(proto.Auth.PasskeyProto.MakeAssertionRequest, jspb.Message);
181
+ if (goog.DEBUG && !COMPILED) {
182
+ /**
183
+ * @public
184
+ * @override
185
+ */
186
+ proto.Auth.PasskeyProto.MakeAssertionRequest.displayName = 'proto.Auth.PasskeyProto.MakeAssertionRequest';
187
+ }
188
+ /**
189
+ * Generated by JsPbCodeGenerator.
190
+ * @param {Array=} opt_data Optional initial data array, typically from a
191
+ * server response, or constructed directly in Javascript. The array is used
192
+ * in place and becomes part of the constructed object. It is not cloned.
193
+ * If no data is provided, the constructed object will be empty, but still
194
+ * valid.
195
+ * @extends {jspb.Message}
196
+ * @constructor
197
+ */
198
+ proto.Auth.PasskeyProto.ListCredentialsReply = function(opt_data) {
199
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.PasskeyProto.ListCredentialsReply.repeatedFields_, null);
200
+ };
201
+ goog.inherits(proto.Auth.PasskeyProto.ListCredentialsReply, jspb.Message);
202
+ if (goog.DEBUG && !COMPILED) {
203
+ /**
204
+ * @public
205
+ * @override
206
+ */
207
+ proto.Auth.PasskeyProto.ListCredentialsReply.displayName = 'proto.Auth.PasskeyProto.ListCredentialsReply';
208
+ }
209
+ /**
210
+ * Generated by JsPbCodeGenerator.
211
+ * @param {Array=} opt_data Optional initial data array, typically from a
212
+ * server response, or constructed directly in Javascript. The array is used
213
+ * in place and becomes part of the constructed object. It is not cloned.
214
+ * If no data is provided, the constructed object will be empty, but still
215
+ * valid.
216
+ * @extends {jspb.Message}
217
+ * @constructor
218
+ */
219
+ proto.Auth.PasskeyProto.DeleteCredentialRequest = function(opt_data) {
220
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
221
+ };
222
+ goog.inherits(proto.Auth.PasskeyProto.DeleteCredentialRequest, jspb.Message);
223
+ if (goog.DEBUG && !COMPILED) {
224
+ /**
225
+ * @public
226
+ * @override
227
+ */
228
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.displayName = 'proto.Auth.PasskeyProto.DeleteCredentialRequest';
229
+ }
230
+
231
+
232
+
233
+ if (jspb.Message.GENERATE_TO_OBJECT) {
234
+ /**
235
+ * Creates an object representation of this proto.
236
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
237
+ * Optional fields that are not set will be set to undefined.
238
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
239
+ * For the list of reserved names please see:
240
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
241
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
242
+ * JSPB instance for transitional soy proto support:
243
+ * http://goto/soy-param-migration
244
+ * @return {!Object}
245
+ */
246
+ proto.Auth.PasskeyProto.prototype.toObject = function(opt_includeInstance) {
247
+ return proto.Auth.PasskeyProto.toObject(opt_includeInstance, this);
248
+ };
249
+
250
+
251
+ /**
252
+ * Static version of the {@see toObject} method.
253
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
254
+ * the JSPB instance for transitional soy proto support:
255
+ * http://goto/soy-param-migration
256
+ * @param {!proto.Auth.PasskeyProto} msg The msg instance to transform.
257
+ * @return {!Object}
258
+ * @suppress {unusedLocalVariables} f is only used for nested messages
259
+ */
260
+ proto.Auth.PasskeyProto.toObject = function(includeInstance, msg) {
261
+ var f, obj = {
262
+ id: msg.getId_asB64(),
263
+ userHandle: msg.getUserHandle_asB64(),
264
+ signCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
265
+ attestationFormat: jspb.Message.getFieldWithDefault(msg, 5, ""),
266
+ regDate: (f = msg.getRegDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
267
+ aaGuid: jspb.Message.getFieldWithDefault(msg, 7, ""),
268
+ isBackupEligible: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
269
+ isBackedUp: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
270
+ attestationObject: msg.getAttestationObject_asB64(),
271
+ attestationClientDataJson: msg.getAttestationClientDataJson_asB64()
272
+ };
273
+
274
+ if (includeInstance) {
275
+ obj.$jspbMessageInstance = msg;
276
+ }
277
+ return obj;
278
+ };
279
+ }
280
+
281
+
282
+ /**
283
+ * Deserializes binary data (in protobuf wire format).
284
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
285
+ * @return {!proto.Auth.PasskeyProto}
286
+ */
287
+ proto.Auth.PasskeyProto.deserializeBinary = function(bytes) {
288
+ var reader = new jspb.BinaryReader(bytes);
289
+ var msg = new proto.Auth.PasskeyProto;
290
+ return proto.Auth.PasskeyProto.deserializeBinaryFromReader(msg, reader);
291
+ };
292
+
293
+
294
+ /**
295
+ * Deserializes binary data (in protobuf wire format) from the
296
+ * given reader into the given message object.
297
+ * @param {!proto.Auth.PasskeyProto} msg The message object to deserialize into.
298
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
299
+ * @return {!proto.Auth.PasskeyProto}
300
+ */
301
+ proto.Auth.PasskeyProto.deserializeBinaryFromReader = function(msg, reader) {
302
+ while (reader.nextField()) {
303
+ if (reader.isEndGroup()) {
304
+ break;
305
+ }
306
+ var field = reader.getFieldNumber();
307
+ switch (field) {
308
+ case 1:
309
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
310
+ msg.setId(value);
311
+ break;
312
+ case 3:
313
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
314
+ msg.setUserHandle(value);
315
+ break;
316
+ case 4:
317
+ var value = /** @type {number} */ (reader.readUint32());
318
+ msg.setSignCount(value);
319
+ break;
320
+ case 5:
321
+ var value = /** @type {string} */ (reader.readString());
322
+ msg.setAttestationFormat(value);
323
+ break;
324
+ case 6:
325
+ var value = new google_protobuf_timestamp_pb.Timestamp;
326
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
327
+ msg.setRegDate(value);
328
+ break;
329
+ case 7:
330
+ var value = /** @type {string} */ (reader.readString());
331
+ msg.setAaGuid(value);
332
+ break;
333
+ case 9:
334
+ var value = /** @type {boolean} */ (reader.readBool());
335
+ msg.setIsBackupEligible(value);
336
+ break;
337
+ case 10:
338
+ var value = /** @type {boolean} */ (reader.readBool());
339
+ msg.setIsBackedUp(value);
340
+ break;
341
+ case 11:
342
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
343
+ msg.setAttestationObject(value);
344
+ break;
345
+ case 12:
346
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
347
+ msg.setAttestationClientDataJson(value);
348
+ break;
349
+ default:
350
+ reader.skipField();
351
+ break;
352
+ }
353
+ }
354
+ return msg;
355
+ };
356
+
357
+
358
+ /**
359
+ * Serializes the message to binary data (in protobuf wire format).
360
+ * @return {!Uint8Array}
361
+ */
362
+ proto.Auth.PasskeyProto.prototype.serializeBinary = function() {
363
+ var writer = new jspb.BinaryWriter();
364
+ proto.Auth.PasskeyProto.serializeBinaryToWriter(this, writer);
365
+ return writer.getResultBuffer();
366
+ };
367
+
368
+
369
+ /**
370
+ * Serializes the given message to binary data (in protobuf wire
371
+ * format), writing to the given BinaryWriter.
372
+ * @param {!proto.Auth.PasskeyProto} message
373
+ * @param {!jspb.BinaryWriter} writer
374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
375
+ */
376
+ proto.Auth.PasskeyProto.serializeBinaryToWriter = function(message, writer) {
377
+ var f = undefined;
378
+ f = message.getId_asU8();
379
+ if (f.length > 0) {
380
+ writer.writeBytes(
381
+ 1,
382
+ f
383
+ );
384
+ }
385
+ f = message.getUserHandle_asU8();
386
+ if (f.length > 0) {
387
+ writer.writeBytes(
388
+ 3,
389
+ f
390
+ );
391
+ }
392
+ f = message.getSignCount();
393
+ if (f !== 0) {
394
+ writer.writeUint32(
395
+ 4,
396
+ f
397
+ );
398
+ }
399
+ f = message.getAttestationFormat();
400
+ if (f.length > 0) {
401
+ writer.writeString(
402
+ 5,
403
+ f
404
+ );
405
+ }
406
+ f = message.getRegDate();
407
+ if (f != null) {
408
+ writer.writeMessage(
409
+ 6,
410
+ f,
411
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
412
+ );
413
+ }
414
+ f = message.getAaGuid();
415
+ if (f.length > 0) {
416
+ writer.writeString(
417
+ 7,
418
+ f
419
+ );
420
+ }
421
+ f = message.getIsBackupEligible();
422
+ if (f) {
423
+ writer.writeBool(
424
+ 9,
425
+ f
426
+ );
427
+ }
428
+ f = message.getIsBackedUp();
429
+ if (f) {
430
+ writer.writeBool(
431
+ 10,
432
+ f
433
+ );
434
+ }
435
+ f = message.getAttestationObject_asU8();
436
+ if (f.length > 0) {
437
+ writer.writeBytes(
438
+ 11,
439
+ f
440
+ );
441
+ }
442
+ f = message.getAttestationClientDataJson_asU8();
443
+ if (f.length > 0) {
444
+ writer.writeBytes(
445
+ 12,
446
+ f
447
+ );
448
+ }
449
+ };
450
+
451
+
452
+
453
+
454
+
455
+ if (jspb.Message.GENERATE_TO_OBJECT) {
456
+ /**
457
+ * Creates an object representation of this proto.
458
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
459
+ * Optional fields that are not set will be set to undefined.
460
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
461
+ * For the list of reserved names please see:
462
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
463
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
464
+ * JSPB instance for transitional soy proto support:
465
+ * http://goto/soy-param-migration
466
+ * @return {!Object}
467
+ */
468
+ proto.Auth.PasskeyProto.GetCredentialsRequest.prototype.toObject = function(opt_includeInstance) {
469
+ return proto.Auth.PasskeyProto.GetCredentialsRequest.toObject(opt_includeInstance, this);
470
+ };
471
+
472
+
473
+ /**
474
+ * Static version of the {@see toObject} method.
475
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
476
+ * the JSPB instance for transitional soy proto support:
477
+ * http://goto/soy-param-migration
478
+ * @param {!proto.Auth.PasskeyProto.GetCredentialsRequest} msg The msg instance to transform.
479
+ * @return {!Object}
480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
481
+ */
482
+ proto.Auth.PasskeyProto.GetCredentialsRequest.toObject = function(includeInstance, msg) {
483
+ var f, obj = {
484
+
485
+ };
486
+
487
+ if (includeInstance) {
488
+ obj.$jspbMessageInstance = msg;
489
+ }
490
+ return obj;
491
+ };
492
+ }
493
+
494
+
495
+ /**
496
+ * Deserializes binary data (in protobuf wire format).
497
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
498
+ * @return {!proto.Auth.PasskeyProto.GetCredentialsRequest}
499
+ */
500
+ proto.Auth.PasskeyProto.GetCredentialsRequest.deserializeBinary = function(bytes) {
501
+ var reader = new jspb.BinaryReader(bytes);
502
+ var msg = new proto.Auth.PasskeyProto.GetCredentialsRequest;
503
+ return proto.Auth.PasskeyProto.GetCredentialsRequest.deserializeBinaryFromReader(msg, reader);
504
+ };
505
+
506
+
507
+ /**
508
+ * Deserializes binary data (in protobuf wire format) from the
509
+ * given reader into the given message object.
510
+ * @param {!proto.Auth.PasskeyProto.GetCredentialsRequest} msg The message object to deserialize into.
511
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
512
+ * @return {!proto.Auth.PasskeyProto.GetCredentialsRequest}
513
+ */
514
+ proto.Auth.PasskeyProto.GetCredentialsRequest.deserializeBinaryFromReader = function(msg, reader) {
515
+ while (reader.nextField()) {
516
+ if (reader.isEndGroup()) {
517
+ break;
518
+ }
519
+ var field = reader.getFieldNumber();
520
+ switch (field) {
521
+ default:
522
+ reader.skipField();
523
+ break;
524
+ }
525
+ }
526
+ return msg;
527
+ };
528
+
529
+
530
+ /**
531
+ * Serializes the message to binary data (in protobuf wire format).
532
+ * @return {!Uint8Array}
533
+ */
534
+ proto.Auth.PasskeyProto.GetCredentialsRequest.prototype.serializeBinary = function() {
535
+ var writer = new jspb.BinaryWriter();
536
+ proto.Auth.PasskeyProto.GetCredentialsRequest.serializeBinaryToWriter(this, writer);
537
+ return writer.getResultBuffer();
538
+ };
539
+
540
+
541
+ /**
542
+ * Serializes the given message to binary data (in protobuf wire
543
+ * format), writing to the given BinaryWriter.
544
+ * @param {!proto.Auth.PasskeyProto.GetCredentialsRequest} message
545
+ * @param {!jspb.BinaryWriter} writer
546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
547
+ */
548
+ proto.Auth.PasskeyProto.GetCredentialsRequest.serializeBinaryToWriter = function(message, writer) {
549
+ var f = undefined;
550
+ };
551
+
552
+
553
+
554
+
555
+
556
+ if (jspb.Message.GENERATE_TO_OBJECT) {
557
+ /**
558
+ * Creates an object representation of this proto.
559
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
560
+ * Optional fields that are not set will be set to undefined.
561
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
562
+ * For the list of reserved names please see:
563
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
564
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
565
+ * JSPB instance for transitional soy proto support:
566
+ * http://goto/soy-param-migration
567
+ * @return {!Object}
568
+ */
569
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.toObject = function(opt_includeInstance) {
570
+ return proto.Auth.PasskeyProto.CredentialCreateOptions.toObject(opt_includeInstance, this);
571
+ };
572
+
573
+
574
+ /**
575
+ * Static version of the {@see toObject} method.
576
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
577
+ * the JSPB instance for transitional soy proto support:
578
+ * http://goto/soy-param-migration
579
+ * @param {!proto.Auth.PasskeyProto.CredentialCreateOptions} msg The msg instance to transform.
580
+ * @return {!Object}
581
+ * @suppress {unusedLocalVariables} f is only used for nested messages
582
+ */
583
+ proto.Auth.PasskeyProto.CredentialCreateOptions.toObject = function(includeInstance, msg) {
584
+ var f, obj = {
585
+ options: jspb.Message.getFieldWithDefault(msg, 1, "")
586
+ };
587
+
588
+ if (includeInstance) {
589
+ obj.$jspbMessageInstance = msg;
590
+ }
591
+ return obj;
592
+ };
593
+ }
594
+
595
+
596
+ /**
597
+ * Deserializes binary data (in protobuf wire format).
598
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
599
+ * @return {!proto.Auth.PasskeyProto.CredentialCreateOptions}
600
+ */
601
+ proto.Auth.PasskeyProto.CredentialCreateOptions.deserializeBinary = function(bytes) {
602
+ var reader = new jspb.BinaryReader(bytes);
603
+ var msg = new proto.Auth.PasskeyProto.CredentialCreateOptions;
604
+ return proto.Auth.PasskeyProto.CredentialCreateOptions.deserializeBinaryFromReader(msg, reader);
605
+ };
606
+
607
+
608
+ /**
609
+ * Deserializes binary data (in protobuf wire format) from the
610
+ * given reader into the given message object.
611
+ * @param {!proto.Auth.PasskeyProto.CredentialCreateOptions} msg The message object to deserialize into.
612
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
613
+ * @return {!proto.Auth.PasskeyProto.CredentialCreateOptions}
614
+ */
615
+ proto.Auth.PasskeyProto.CredentialCreateOptions.deserializeBinaryFromReader = function(msg, reader) {
616
+ while (reader.nextField()) {
617
+ if (reader.isEndGroup()) {
618
+ break;
619
+ }
620
+ var field = reader.getFieldNumber();
621
+ switch (field) {
622
+ case 1:
623
+ var value = /** @type {string} */ (reader.readString());
624
+ msg.setOptions(value);
625
+ break;
626
+ default:
627
+ reader.skipField();
628
+ break;
629
+ }
630
+ }
631
+ return msg;
632
+ };
633
+
634
+
635
+ /**
636
+ * Serializes the message to binary data (in protobuf wire format).
637
+ * @return {!Uint8Array}
638
+ */
639
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.serializeBinary = function() {
640
+ var writer = new jspb.BinaryWriter();
641
+ proto.Auth.PasskeyProto.CredentialCreateOptions.serializeBinaryToWriter(this, writer);
642
+ return writer.getResultBuffer();
643
+ };
644
+
645
+
646
+ /**
647
+ * Serializes the given message to binary data (in protobuf wire
648
+ * format), writing to the given BinaryWriter.
649
+ * @param {!proto.Auth.PasskeyProto.CredentialCreateOptions} message
650
+ * @param {!jspb.BinaryWriter} writer
651
+ * @suppress {unusedLocalVariables} f is only used for nested messages
652
+ */
653
+ proto.Auth.PasskeyProto.CredentialCreateOptions.serializeBinaryToWriter = function(message, writer) {
654
+ var f = undefined;
655
+ f = message.getOptions();
656
+ if (f.length > 0) {
657
+ writer.writeString(
658
+ 1,
659
+ f
660
+ );
661
+ }
662
+ };
663
+
664
+
665
+ /**
666
+ * optional string options = 1;
667
+ * @return {string}
668
+ */
669
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.getOptions = function() {
670
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
671
+ };
672
+
673
+
674
+ /**
675
+ * @param {string} value
676
+ * @return {!proto.Auth.PasskeyProto.CredentialCreateOptions} returns this
677
+ */
678
+ proto.Auth.PasskeyProto.CredentialCreateOptions.prototype.setOptions = function(value) {
679
+ return jspb.Message.setProto3StringField(this, 1, value);
680
+ };
681
+
682
+
683
+
684
+
685
+
686
+ if (jspb.Message.GENERATE_TO_OBJECT) {
687
+ /**
688
+ * Creates an object representation of this proto.
689
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
690
+ * Optional fields that are not set will be set to undefined.
691
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
692
+ * For the list of reserved names please see:
693
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
694
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
695
+ * JSPB instance for transitional soy proto support:
696
+ * http://goto/soy-param-migration
697
+ * @return {!Object}
698
+ */
699
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.toObject = function(opt_includeInstance) {
700
+ return proto.Auth.PasskeyProto.CreateCredentialsRequest.toObject(opt_includeInstance, this);
701
+ };
702
+
703
+
704
+ /**
705
+ * Static version of the {@see toObject} method.
706
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
707
+ * the JSPB instance for transitional soy proto support:
708
+ * http://goto/soy-param-migration
709
+ * @param {!proto.Auth.PasskeyProto.CreateCredentialsRequest} msg The msg instance to transform.
710
+ * @return {!Object}
711
+ * @suppress {unusedLocalVariables} f is only used for nested messages
712
+ */
713
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.toObject = function(includeInstance, msg) {
714
+ var f, obj = {
715
+ authenticatorAttestationRawResponse: jspb.Message.getFieldWithDefault(msg, 1, "")
716
+ };
717
+
718
+ if (includeInstance) {
719
+ obj.$jspbMessageInstance = msg;
720
+ }
721
+ return obj;
722
+ };
723
+ }
724
+
725
+
726
+ /**
727
+ * Deserializes binary data (in protobuf wire format).
728
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
729
+ * @return {!proto.Auth.PasskeyProto.CreateCredentialsRequest}
730
+ */
731
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.deserializeBinary = function(bytes) {
732
+ var reader = new jspb.BinaryReader(bytes);
733
+ var msg = new proto.Auth.PasskeyProto.CreateCredentialsRequest;
734
+ return proto.Auth.PasskeyProto.CreateCredentialsRequest.deserializeBinaryFromReader(msg, reader);
735
+ };
736
+
737
+
738
+ /**
739
+ * Deserializes binary data (in protobuf wire format) from the
740
+ * given reader into the given message object.
741
+ * @param {!proto.Auth.PasskeyProto.CreateCredentialsRequest} msg The message object to deserialize into.
742
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
743
+ * @return {!proto.Auth.PasskeyProto.CreateCredentialsRequest}
744
+ */
745
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.deserializeBinaryFromReader = function(msg, reader) {
746
+ while (reader.nextField()) {
747
+ if (reader.isEndGroup()) {
748
+ break;
749
+ }
750
+ var field = reader.getFieldNumber();
751
+ switch (field) {
752
+ case 1:
753
+ var value = /** @type {string} */ (reader.readString());
754
+ msg.setAuthenticatorAttestationRawResponse(value);
755
+ break;
756
+ default:
757
+ reader.skipField();
758
+ break;
759
+ }
760
+ }
761
+ return msg;
762
+ };
763
+
764
+
765
+ /**
766
+ * Serializes the message to binary data (in protobuf wire format).
767
+ * @return {!Uint8Array}
768
+ */
769
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.serializeBinary = function() {
770
+ var writer = new jspb.BinaryWriter();
771
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.serializeBinaryToWriter(this, writer);
772
+ return writer.getResultBuffer();
773
+ };
774
+
775
+
776
+ /**
777
+ * Serializes the given message to binary data (in protobuf wire
778
+ * format), writing to the given BinaryWriter.
779
+ * @param {!proto.Auth.PasskeyProto.CreateCredentialsRequest} message
780
+ * @param {!jspb.BinaryWriter} writer
781
+ * @suppress {unusedLocalVariables} f is only used for nested messages
782
+ */
783
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.serializeBinaryToWriter = function(message, writer) {
784
+ var f = undefined;
785
+ f = message.getAuthenticatorAttestationRawResponse();
786
+ if (f.length > 0) {
787
+ writer.writeString(
788
+ 1,
789
+ f
790
+ );
791
+ }
792
+ };
793
+
794
+
795
+ /**
796
+ * optional string authenticator_attestation_raw_response = 1;
797
+ * @return {string}
798
+ */
799
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.getAuthenticatorAttestationRawResponse = function() {
800
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
801
+ };
802
+
803
+
804
+ /**
805
+ * @param {string} value
806
+ * @return {!proto.Auth.PasskeyProto.CreateCredentialsRequest} returns this
807
+ */
808
+ proto.Auth.PasskeyProto.CreateCredentialsRequest.prototype.setAuthenticatorAttestationRawResponse = function(value) {
809
+ return jspb.Message.setProto3StringField(this, 1, value);
810
+ };
811
+
812
+
813
+
814
+
815
+
816
+ if (jspb.Message.GENERATE_TO_OBJECT) {
817
+ /**
818
+ * Creates an object representation of this proto.
819
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
820
+ * Optional fields that are not set will be set to undefined.
821
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
822
+ * For the list of reserved names please see:
823
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
824
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
825
+ * JSPB instance for transitional soy proto support:
826
+ * http://goto/soy-param-migration
827
+ * @return {!Object}
828
+ */
829
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.toObject = function(opt_includeInstance) {
830
+ return proto.Auth.PasskeyProto.GetAssertionOptionsRequest.toObject(opt_includeInstance, this);
831
+ };
832
+
833
+
834
+ /**
835
+ * Static version of the {@see toObject} method.
836
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
837
+ * the JSPB instance for transitional soy proto support:
838
+ * http://goto/soy-param-migration
839
+ * @param {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} msg The msg instance to transform.
840
+ * @return {!Object}
841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
842
+ */
843
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.toObject = function(includeInstance, msg) {
844
+ var f, obj = {
845
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
846
+ phone: jspb.Message.getFieldWithDefault(msg, 2, "")
847
+ };
848
+
849
+ if (includeInstance) {
850
+ obj.$jspbMessageInstance = msg;
851
+ }
852
+ return obj;
853
+ };
854
+ }
855
+
856
+
857
+ /**
858
+ * Deserializes binary data (in protobuf wire format).
859
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
860
+ * @return {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest}
861
+ */
862
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.deserializeBinary = function(bytes) {
863
+ var reader = new jspb.BinaryReader(bytes);
864
+ var msg = new proto.Auth.PasskeyProto.GetAssertionOptionsRequest;
865
+ return proto.Auth.PasskeyProto.GetAssertionOptionsRequest.deserializeBinaryFromReader(msg, reader);
866
+ };
867
+
868
+
869
+ /**
870
+ * Deserializes binary data (in protobuf wire format) from the
871
+ * given reader into the given message object.
872
+ * @param {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} msg The message object to deserialize into.
873
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
874
+ * @return {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest}
875
+ */
876
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.deserializeBinaryFromReader = function(msg, reader) {
877
+ while (reader.nextField()) {
878
+ if (reader.isEndGroup()) {
879
+ break;
880
+ }
881
+ var field = reader.getFieldNumber();
882
+ switch (field) {
883
+ case 1:
884
+ var value = /** @type {string} */ (reader.readString());
885
+ msg.setEmail(value);
886
+ break;
887
+ case 2:
888
+ var value = /** @type {string} */ (reader.readString());
889
+ msg.setPhone(value);
890
+ break;
891
+ default:
892
+ reader.skipField();
893
+ break;
894
+ }
895
+ }
896
+ return msg;
897
+ };
898
+
899
+
900
+ /**
901
+ * Serializes the message to binary data (in protobuf wire format).
902
+ * @return {!Uint8Array}
903
+ */
904
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.serializeBinary = function() {
905
+ var writer = new jspb.BinaryWriter();
906
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.serializeBinaryToWriter(this, writer);
907
+ return writer.getResultBuffer();
908
+ };
909
+
910
+
911
+ /**
912
+ * Serializes the given message to binary data (in protobuf wire
913
+ * format), writing to the given BinaryWriter.
914
+ * @param {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} message
915
+ * @param {!jspb.BinaryWriter} writer
916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
917
+ */
918
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.serializeBinaryToWriter = function(message, writer) {
919
+ var f = undefined;
920
+ f = message.getEmail();
921
+ if (f.length > 0) {
922
+ writer.writeString(
923
+ 1,
924
+ f
925
+ );
926
+ }
927
+ f = message.getPhone();
928
+ if (f.length > 0) {
929
+ writer.writeString(
930
+ 2,
931
+ f
932
+ );
933
+ }
934
+ };
935
+
936
+
937
+ /**
938
+ * optional string email = 1;
939
+ * @return {string}
940
+ */
941
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.getEmail = function() {
942
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
943
+ };
944
+
945
+
946
+ /**
947
+ * @param {string} value
948
+ * @return {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} returns this
949
+ */
950
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.setEmail = function(value) {
951
+ return jspb.Message.setProto3StringField(this, 1, value);
952
+ };
953
+
954
+
955
+ /**
956
+ * optional string phone = 2;
957
+ * @return {string}
958
+ */
959
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.getPhone = function() {
960
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
961
+ };
962
+
963
+
964
+ /**
965
+ * @param {string} value
966
+ * @return {!proto.Auth.PasskeyProto.GetAssertionOptionsRequest} returns this
967
+ */
968
+ proto.Auth.PasskeyProto.GetAssertionOptionsRequest.prototype.setPhone = function(value) {
969
+ return jspb.Message.setProto3StringField(this, 2, value);
970
+ };
971
+
972
+
973
+
974
+
975
+
976
+ if (jspb.Message.GENERATE_TO_OBJECT) {
977
+ /**
978
+ * Creates an object representation of this proto.
979
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
980
+ * Optional fields that are not set will be set to undefined.
981
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
982
+ * For the list of reserved names please see:
983
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
984
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
985
+ * JSPB instance for transitional soy proto support:
986
+ * http://goto/soy-param-migration
987
+ * @return {!Object}
988
+ */
989
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.toObject = function(opt_includeInstance) {
990
+ return proto.Auth.PasskeyProto.AssertionOptions.toObject(opt_includeInstance, this);
991
+ };
992
+
993
+
994
+ /**
995
+ * Static version of the {@see toObject} method.
996
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
997
+ * the JSPB instance for transitional soy proto support:
998
+ * http://goto/soy-param-migration
999
+ * @param {!proto.Auth.PasskeyProto.AssertionOptions} msg The msg instance to transform.
1000
+ * @return {!Object}
1001
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1002
+ */
1003
+ proto.Auth.PasskeyProto.AssertionOptions.toObject = function(includeInstance, msg) {
1004
+ var f, obj = {
1005
+ options: jspb.Message.getFieldWithDefault(msg, 1, "")
1006
+ };
1007
+
1008
+ if (includeInstance) {
1009
+ obj.$jspbMessageInstance = msg;
1010
+ }
1011
+ return obj;
1012
+ };
1013
+ }
1014
+
1015
+
1016
+ /**
1017
+ * Deserializes binary data (in protobuf wire format).
1018
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1019
+ * @return {!proto.Auth.PasskeyProto.AssertionOptions}
1020
+ */
1021
+ proto.Auth.PasskeyProto.AssertionOptions.deserializeBinary = function(bytes) {
1022
+ var reader = new jspb.BinaryReader(bytes);
1023
+ var msg = new proto.Auth.PasskeyProto.AssertionOptions;
1024
+ return proto.Auth.PasskeyProto.AssertionOptions.deserializeBinaryFromReader(msg, reader);
1025
+ };
1026
+
1027
+
1028
+ /**
1029
+ * Deserializes binary data (in protobuf wire format) from the
1030
+ * given reader into the given message object.
1031
+ * @param {!proto.Auth.PasskeyProto.AssertionOptions} msg The message object to deserialize into.
1032
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1033
+ * @return {!proto.Auth.PasskeyProto.AssertionOptions}
1034
+ */
1035
+ proto.Auth.PasskeyProto.AssertionOptions.deserializeBinaryFromReader = function(msg, reader) {
1036
+ while (reader.nextField()) {
1037
+ if (reader.isEndGroup()) {
1038
+ break;
1039
+ }
1040
+ var field = reader.getFieldNumber();
1041
+ switch (field) {
1042
+ case 1:
1043
+ var value = /** @type {string} */ (reader.readString());
1044
+ msg.setOptions(value);
1045
+ break;
1046
+ default:
1047
+ reader.skipField();
1048
+ break;
1049
+ }
1050
+ }
1051
+ return msg;
1052
+ };
1053
+
1054
+
1055
+ /**
1056
+ * Serializes the message to binary data (in protobuf wire format).
1057
+ * @return {!Uint8Array}
1058
+ */
1059
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.serializeBinary = function() {
1060
+ var writer = new jspb.BinaryWriter();
1061
+ proto.Auth.PasskeyProto.AssertionOptions.serializeBinaryToWriter(this, writer);
1062
+ return writer.getResultBuffer();
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * Serializes the given message to binary data (in protobuf wire
1068
+ * format), writing to the given BinaryWriter.
1069
+ * @param {!proto.Auth.PasskeyProto.AssertionOptions} message
1070
+ * @param {!jspb.BinaryWriter} writer
1071
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1072
+ */
1073
+ proto.Auth.PasskeyProto.AssertionOptions.serializeBinaryToWriter = function(message, writer) {
1074
+ var f = undefined;
1075
+ f = message.getOptions();
1076
+ if (f.length > 0) {
1077
+ writer.writeString(
1078
+ 1,
1079
+ f
1080
+ );
1081
+ }
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * optional string options = 1;
1087
+ * @return {string}
1088
+ */
1089
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.getOptions = function() {
1090
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * @param {string} value
1096
+ * @return {!proto.Auth.PasskeyProto.AssertionOptions} returns this
1097
+ */
1098
+ proto.Auth.PasskeyProto.AssertionOptions.prototype.setOptions = function(value) {
1099
+ return jspb.Message.setProto3StringField(this, 1, value);
1100
+ };
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1107
+ /**
1108
+ * Creates an object representation of this proto.
1109
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1110
+ * Optional fields that are not set will be set to undefined.
1111
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1112
+ * For the list of reserved names please see:
1113
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1114
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1115
+ * JSPB instance for transitional soy proto support:
1116
+ * http://goto/soy-param-migration
1117
+ * @return {!Object}
1118
+ */
1119
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.toObject = function(opt_includeInstance) {
1120
+ return proto.Auth.PasskeyProto.MakeAssertionRequest.toObject(opt_includeInstance, this);
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * Static version of the {@see toObject} method.
1126
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1127
+ * the JSPB instance for transitional soy proto support:
1128
+ * http://goto/soy-param-migration
1129
+ * @param {!proto.Auth.PasskeyProto.MakeAssertionRequest} msg The msg instance to transform.
1130
+ * @return {!Object}
1131
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1132
+ */
1133
+ proto.Auth.PasskeyProto.MakeAssertionRequest.toObject = function(includeInstance, msg) {
1134
+ var f, obj = {
1135
+ authenticatorAssertionRawResponse: jspb.Message.getFieldWithDefault(msg, 1, "")
1136
+ };
1137
+
1138
+ if (includeInstance) {
1139
+ obj.$jspbMessageInstance = msg;
1140
+ }
1141
+ return obj;
1142
+ };
1143
+ }
1144
+
1145
+
1146
+ /**
1147
+ * Deserializes binary data (in protobuf wire format).
1148
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1149
+ * @return {!proto.Auth.PasskeyProto.MakeAssertionRequest}
1150
+ */
1151
+ proto.Auth.PasskeyProto.MakeAssertionRequest.deserializeBinary = function(bytes) {
1152
+ var reader = new jspb.BinaryReader(bytes);
1153
+ var msg = new proto.Auth.PasskeyProto.MakeAssertionRequest;
1154
+ return proto.Auth.PasskeyProto.MakeAssertionRequest.deserializeBinaryFromReader(msg, reader);
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * Deserializes binary data (in protobuf wire format) from the
1160
+ * given reader into the given message object.
1161
+ * @param {!proto.Auth.PasskeyProto.MakeAssertionRequest} msg The message object to deserialize into.
1162
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1163
+ * @return {!proto.Auth.PasskeyProto.MakeAssertionRequest}
1164
+ */
1165
+ proto.Auth.PasskeyProto.MakeAssertionRequest.deserializeBinaryFromReader = function(msg, reader) {
1166
+ while (reader.nextField()) {
1167
+ if (reader.isEndGroup()) {
1168
+ break;
1169
+ }
1170
+ var field = reader.getFieldNumber();
1171
+ switch (field) {
1172
+ case 1:
1173
+ var value = /** @type {string} */ (reader.readString());
1174
+ msg.setAuthenticatorAssertionRawResponse(value);
1175
+ break;
1176
+ default:
1177
+ reader.skipField();
1178
+ break;
1179
+ }
1180
+ }
1181
+ return msg;
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * Serializes the message to binary data (in protobuf wire format).
1187
+ * @return {!Uint8Array}
1188
+ */
1189
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.serializeBinary = function() {
1190
+ var writer = new jspb.BinaryWriter();
1191
+ proto.Auth.PasskeyProto.MakeAssertionRequest.serializeBinaryToWriter(this, writer);
1192
+ return writer.getResultBuffer();
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * Serializes the given message to binary data (in protobuf wire
1198
+ * format), writing to the given BinaryWriter.
1199
+ * @param {!proto.Auth.PasskeyProto.MakeAssertionRequest} message
1200
+ * @param {!jspb.BinaryWriter} writer
1201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1202
+ */
1203
+ proto.Auth.PasskeyProto.MakeAssertionRequest.serializeBinaryToWriter = function(message, writer) {
1204
+ var f = undefined;
1205
+ f = message.getAuthenticatorAssertionRawResponse();
1206
+ if (f.length > 0) {
1207
+ writer.writeString(
1208
+ 1,
1209
+ f
1210
+ );
1211
+ }
1212
+ };
1213
+
1214
+
1215
+ /**
1216
+ * optional string authenticator_assertion_raw_response = 1;
1217
+ * @return {string}
1218
+ */
1219
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.getAuthenticatorAssertionRawResponse = function() {
1220
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1221
+ };
1222
+
1223
+
1224
+ /**
1225
+ * @param {string} value
1226
+ * @return {!proto.Auth.PasskeyProto.MakeAssertionRequest} returns this
1227
+ */
1228
+ proto.Auth.PasskeyProto.MakeAssertionRequest.prototype.setAuthenticatorAssertionRawResponse = function(value) {
1229
+ return jspb.Message.setProto3StringField(this, 1, value);
1230
+ };
1231
+
1232
+
1233
+
1234
+ /**
1235
+ * List of repeated fields within this message type.
1236
+ * @private {!Array<number>}
1237
+ * @const
1238
+ */
1239
+ proto.Auth.PasskeyProto.ListCredentialsReply.repeatedFields_ = [1];
1240
+
1241
+
1242
+
1243
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1244
+ /**
1245
+ * Creates an object representation of this proto.
1246
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1247
+ * Optional fields that are not set will be set to undefined.
1248
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1249
+ * For the list of reserved names please see:
1250
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1251
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1252
+ * JSPB instance for transitional soy proto support:
1253
+ * http://goto/soy-param-migration
1254
+ * @return {!Object}
1255
+ */
1256
+ proto.Auth.PasskeyProto.ListCredentialsReply.prototype.toObject = function(opt_includeInstance) {
1257
+ return proto.Auth.PasskeyProto.ListCredentialsReply.toObject(opt_includeInstance, this);
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * Static version of the {@see toObject} method.
1263
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1264
+ * the JSPB instance for transitional soy proto support:
1265
+ * http://goto/soy-param-migration
1266
+ * @param {!proto.Auth.PasskeyProto.ListCredentialsReply} msg The msg instance to transform.
1267
+ * @return {!Object}
1268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1269
+ */
1270
+ proto.Auth.PasskeyProto.ListCredentialsReply.toObject = function(includeInstance, msg) {
1271
+ var f, obj = {
1272
+ passkeysList: jspb.Message.toObjectList(msg.getPasskeysList(),
1273
+ proto.Auth.PasskeyProto.toObject, includeInstance)
1274
+ };
1275
+
1276
+ if (includeInstance) {
1277
+ obj.$jspbMessageInstance = msg;
1278
+ }
1279
+ return obj;
1280
+ };
1281
+ }
1282
+
1283
+
1284
+ /**
1285
+ * Deserializes binary data (in protobuf wire format).
1286
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1287
+ * @return {!proto.Auth.PasskeyProto.ListCredentialsReply}
1288
+ */
1289
+ proto.Auth.PasskeyProto.ListCredentialsReply.deserializeBinary = function(bytes) {
1290
+ var reader = new jspb.BinaryReader(bytes);
1291
+ var msg = new proto.Auth.PasskeyProto.ListCredentialsReply;
1292
+ return proto.Auth.PasskeyProto.ListCredentialsReply.deserializeBinaryFromReader(msg, reader);
1293
+ };
1294
+
1295
+
1296
+ /**
1297
+ * Deserializes binary data (in protobuf wire format) from the
1298
+ * given reader into the given message object.
1299
+ * @param {!proto.Auth.PasskeyProto.ListCredentialsReply} msg The message object to deserialize into.
1300
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1301
+ * @return {!proto.Auth.PasskeyProto.ListCredentialsReply}
1302
+ */
1303
+ proto.Auth.PasskeyProto.ListCredentialsReply.deserializeBinaryFromReader = function(msg, reader) {
1304
+ while (reader.nextField()) {
1305
+ if (reader.isEndGroup()) {
1306
+ break;
1307
+ }
1308
+ var field = reader.getFieldNumber();
1309
+ switch (field) {
1310
+ case 1:
1311
+ var value = new proto.Auth.PasskeyProto;
1312
+ reader.readMessage(value,proto.Auth.PasskeyProto.deserializeBinaryFromReader);
1313
+ msg.addPasskeys(value);
1314
+ break;
1315
+ default:
1316
+ reader.skipField();
1317
+ break;
1318
+ }
1319
+ }
1320
+ return msg;
1321
+ };
1322
+
1323
+
1324
+ /**
1325
+ * Serializes the message to binary data (in protobuf wire format).
1326
+ * @return {!Uint8Array}
1327
+ */
1328
+ proto.Auth.PasskeyProto.ListCredentialsReply.prototype.serializeBinary = function() {
1329
+ var writer = new jspb.BinaryWriter();
1330
+ proto.Auth.PasskeyProto.ListCredentialsReply.serializeBinaryToWriter(this, writer);
1331
+ return writer.getResultBuffer();
1332
+ };
1333
+
1334
+
1335
+ /**
1336
+ * Serializes the given message to binary data (in protobuf wire
1337
+ * format), writing to the given BinaryWriter.
1338
+ * @param {!proto.Auth.PasskeyProto.ListCredentialsReply} message
1339
+ * @param {!jspb.BinaryWriter} writer
1340
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1341
+ */
1342
+ proto.Auth.PasskeyProto.ListCredentialsReply.serializeBinaryToWriter = function(message, writer) {
1343
+ var f = undefined;
1344
+ f = message.getPasskeysList();
1345
+ if (f.length > 0) {
1346
+ writer.writeRepeatedMessage(
1347
+ 1,
1348
+ f,
1349
+ proto.Auth.PasskeyProto.serializeBinaryToWriter
1350
+ );
1351
+ }
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * repeated PasskeyProto passkeys = 1;
1357
+ * @return {!Array<!proto.Auth.PasskeyProto>}
1358
+ */
1359
+ proto.Auth.PasskeyProto.ListCredentialsReply.prototype.getPasskeysList = function() {
1360
+ return /** @type{!Array<!proto.Auth.PasskeyProto>} */ (
1361
+ jspb.Message.getRepeatedWrapperField(this, proto.Auth.PasskeyProto, 1));
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * @param {!Array<!proto.Auth.PasskeyProto>} value
1367
+ * @return {!proto.Auth.PasskeyProto.ListCredentialsReply} returns this
1368
+ */
1369
+ proto.Auth.PasskeyProto.ListCredentialsReply.prototype.setPasskeysList = function(value) {
1370
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * @param {!proto.Auth.PasskeyProto=} opt_value
1376
+ * @param {number=} opt_index
1377
+ * @return {!proto.Auth.PasskeyProto}
1378
+ */
1379
+ proto.Auth.PasskeyProto.ListCredentialsReply.prototype.addPasskeys = function(opt_value, opt_index) {
1380
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Auth.PasskeyProto, opt_index);
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * Clears the list making it empty but non-null.
1386
+ * @return {!proto.Auth.PasskeyProto.ListCredentialsReply} returns this
1387
+ */
1388
+ proto.Auth.PasskeyProto.ListCredentialsReply.prototype.clearPasskeysList = function() {
1389
+ return this.setPasskeysList([]);
1390
+ };
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1397
+ /**
1398
+ * Creates an object representation of this proto.
1399
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1400
+ * Optional fields that are not set will be set to undefined.
1401
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1402
+ * For the list of reserved names please see:
1403
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1404
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1405
+ * JSPB instance for transitional soy proto support:
1406
+ * http://goto/soy-param-migration
1407
+ * @return {!Object}
1408
+ */
1409
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.prototype.toObject = function(opt_includeInstance) {
1410
+ return proto.Auth.PasskeyProto.DeleteCredentialRequest.toObject(opt_includeInstance, this);
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * Static version of the {@see toObject} method.
1416
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1417
+ * the JSPB instance for transitional soy proto support:
1418
+ * http://goto/soy-param-migration
1419
+ * @param {!proto.Auth.PasskeyProto.DeleteCredentialRequest} msg The msg instance to transform.
1420
+ * @return {!Object}
1421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1422
+ */
1423
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.toObject = function(includeInstance, msg) {
1424
+ var f, obj = {
1425
+ id: msg.getId_asB64()
1426
+ };
1427
+
1428
+ if (includeInstance) {
1429
+ obj.$jspbMessageInstance = msg;
1430
+ }
1431
+ return obj;
1432
+ };
1433
+ }
1434
+
1435
+
1436
+ /**
1437
+ * Deserializes binary data (in protobuf wire format).
1438
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1439
+ * @return {!proto.Auth.PasskeyProto.DeleteCredentialRequest}
1440
+ */
1441
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.deserializeBinary = function(bytes) {
1442
+ var reader = new jspb.BinaryReader(bytes);
1443
+ var msg = new proto.Auth.PasskeyProto.DeleteCredentialRequest;
1444
+ return proto.Auth.PasskeyProto.DeleteCredentialRequest.deserializeBinaryFromReader(msg, reader);
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * Deserializes binary data (in protobuf wire format) from the
1450
+ * given reader into the given message object.
1451
+ * @param {!proto.Auth.PasskeyProto.DeleteCredentialRequest} msg The message object to deserialize into.
1452
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1453
+ * @return {!proto.Auth.PasskeyProto.DeleteCredentialRequest}
1454
+ */
1455
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.deserializeBinaryFromReader = function(msg, reader) {
1456
+ while (reader.nextField()) {
1457
+ if (reader.isEndGroup()) {
1458
+ break;
1459
+ }
1460
+ var field = reader.getFieldNumber();
1461
+ switch (field) {
1462
+ case 1:
1463
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1464
+ msg.setId(value);
1465
+ break;
1466
+ default:
1467
+ reader.skipField();
1468
+ break;
1469
+ }
1470
+ }
1471
+ return msg;
1472
+ };
1473
+
1474
+
1475
+ /**
1476
+ * Serializes the message to binary data (in protobuf wire format).
1477
+ * @return {!Uint8Array}
1478
+ */
1479
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.prototype.serializeBinary = function() {
1480
+ var writer = new jspb.BinaryWriter();
1481
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.serializeBinaryToWriter(this, writer);
1482
+ return writer.getResultBuffer();
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * Serializes the given message to binary data (in protobuf wire
1488
+ * format), writing to the given BinaryWriter.
1489
+ * @param {!proto.Auth.PasskeyProto.DeleteCredentialRequest} message
1490
+ * @param {!jspb.BinaryWriter} writer
1491
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1492
+ */
1493
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.serializeBinaryToWriter = function(message, writer) {
1494
+ var f = undefined;
1495
+ f = message.getId_asU8();
1496
+ if (f.length > 0) {
1497
+ writer.writeBytes(
1498
+ 1,
1499
+ f
1500
+ );
1501
+ }
1502
+ };
1503
+
1504
+
1505
+ /**
1506
+ * optional bytes id = 1;
1507
+ * @return {!(string|Uint8Array)}
1508
+ */
1509
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.prototype.getId = function() {
1510
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1511
+ };
1512
+
1513
+
1514
+ /**
1515
+ * optional bytes id = 1;
1516
+ * This is a type-conversion wrapper around `getId()`
1517
+ * @return {string}
1518
+ */
1519
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.prototype.getId_asB64 = function() {
1520
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1521
+ this.getId()));
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * optional bytes id = 1;
1527
+ * Note that Uint8Array is not supported on all browsers.
1528
+ * @see http://caniuse.com/Uint8Array
1529
+ * This is a type-conversion wrapper around `getId()`
1530
+ * @return {!Uint8Array}
1531
+ */
1532
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.prototype.getId_asU8 = function() {
1533
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1534
+ this.getId()));
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * @param {!(string|Uint8Array)} value
1540
+ * @return {!proto.Auth.PasskeyProto.DeleteCredentialRequest} returns this
1541
+ */
1542
+ proto.Auth.PasskeyProto.DeleteCredentialRequest.prototype.setId = function(value) {
1543
+ return jspb.Message.setProto3BytesField(this, 1, value);
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * optional bytes id = 1;
1549
+ * @return {!(string|Uint8Array)}
1550
+ */
1551
+ proto.Auth.PasskeyProto.prototype.getId = function() {
1552
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1553
+ };
1554
+
1555
+
1556
+ /**
1557
+ * optional bytes id = 1;
1558
+ * This is a type-conversion wrapper around `getId()`
1559
+ * @return {string}
1560
+ */
1561
+ proto.Auth.PasskeyProto.prototype.getId_asB64 = function() {
1562
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1563
+ this.getId()));
1564
+ };
1565
+
1566
+
1567
+ /**
1568
+ * optional bytes id = 1;
1569
+ * Note that Uint8Array is not supported on all browsers.
1570
+ * @see http://caniuse.com/Uint8Array
1571
+ * This is a type-conversion wrapper around `getId()`
1572
+ * @return {!Uint8Array}
1573
+ */
1574
+ proto.Auth.PasskeyProto.prototype.getId_asU8 = function() {
1575
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1576
+ this.getId()));
1577
+ };
1578
+
1579
+
1580
+ /**
1581
+ * @param {!(string|Uint8Array)} value
1582
+ * @return {!proto.Auth.PasskeyProto} returns this
1583
+ */
1584
+ proto.Auth.PasskeyProto.prototype.setId = function(value) {
1585
+ return jspb.Message.setProto3BytesField(this, 1, value);
1586
+ };
1587
+
1588
+
1589
+ /**
1590
+ * optional bytes user_handle = 3;
1591
+ * @return {!(string|Uint8Array)}
1592
+ */
1593
+ proto.Auth.PasskeyProto.prototype.getUserHandle = function() {
1594
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * optional bytes user_handle = 3;
1600
+ * This is a type-conversion wrapper around `getUserHandle()`
1601
+ * @return {string}
1602
+ */
1603
+ proto.Auth.PasskeyProto.prototype.getUserHandle_asB64 = function() {
1604
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1605
+ this.getUserHandle()));
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * optional bytes user_handle = 3;
1611
+ * Note that Uint8Array is not supported on all browsers.
1612
+ * @see http://caniuse.com/Uint8Array
1613
+ * This is a type-conversion wrapper around `getUserHandle()`
1614
+ * @return {!Uint8Array}
1615
+ */
1616
+ proto.Auth.PasskeyProto.prototype.getUserHandle_asU8 = function() {
1617
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1618
+ this.getUserHandle()));
1619
+ };
1620
+
1621
+
1622
+ /**
1623
+ * @param {!(string|Uint8Array)} value
1624
+ * @return {!proto.Auth.PasskeyProto} returns this
1625
+ */
1626
+ proto.Auth.PasskeyProto.prototype.setUserHandle = function(value) {
1627
+ return jspb.Message.setProto3BytesField(this, 3, value);
1628
+ };
1629
+
1630
+
1631
+ /**
1632
+ * optional uint32 sign_count = 4;
1633
+ * @return {number}
1634
+ */
1635
+ proto.Auth.PasskeyProto.prototype.getSignCount = function() {
1636
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1637
+ };
1638
+
1639
+
1640
+ /**
1641
+ * @param {number} value
1642
+ * @return {!proto.Auth.PasskeyProto} returns this
1643
+ */
1644
+ proto.Auth.PasskeyProto.prototype.setSignCount = function(value) {
1645
+ return jspb.Message.setProto3IntField(this, 4, value);
1646
+ };
1647
+
1648
+
1649
+ /**
1650
+ * optional string attestation_format = 5;
1651
+ * @return {string}
1652
+ */
1653
+ proto.Auth.PasskeyProto.prototype.getAttestationFormat = function() {
1654
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * @param {string} value
1660
+ * @return {!proto.Auth.PasskeyProto} returns this
1661
+ */
1662
+ proto.Auth.PasskeyProto.prototype.setAttestationFormat = function(value) {
1663
+ return jspb.Message.setProto3StringField(this, 5, value);
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * optional google.protobuf.Timestamp reg_date = 6;
1669
+ * @return {?proto.google.protobuf.Timestamp}
1670
+ */
1671
+ proto.Auth.PasskeyProto.prototype.getRegDate = function() {
1672
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1673
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
1674
+ };
1675
+
1676
+
1677
+ /**
1678
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1679
+ * @return {!proto.Auth.PasskeyProto} returns this
1680
+ */
1681
+ proto.Auth.PasskeyProto.prototype.setRegDate = function(value) {
1682
+ return jspb.Message.setWrapperField(this, 6, value);
1683
+ };
1684
+
1685
+
1686
+ /**
1687
+ * Clears the message field making it undefined.
1688
+ * @return {!proto.Auth.PasskeyProto} returns this
1689
+ */
1690
+ proto.Auth.PasskeyProto.prototype.clearRegDate = function() {
1691
+ return this.setRegDate(undefined);
1692
+ };
1693
+
1694
+
1695
+ /**
1696
+ * Returns whether this field is set.
1697
+ * @return {boolean}
1698
+ */
1699
+ proto.Auth.PasskeyProto.prototype.hasRegDate = function() {
1700
+ return jspb.Message.getField(this, 6) != null;
1701
+ };
1702
+
1703
+
1704
+ /**
1705
+ * optional string aa_guid = 7;
1706
+ * @return {string}
1707
+ */
1708
+ proto.Auth.PasskeyProto.prototype.getAaGuid = function() {
1709
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1710
+ };
1711
+
1712
+
1713
+ /**
1714
+ * @param {string} value
1715
+ * @return {!proto.Auth.PasskeyProto} returns this
1716
+ */
1717
+ proto.Auth.PasskeyProto.prototype.setAaGuid = function(value) {
1718
+ return jspb.Message.setProto3StringField(this, 7, value);
1719
+ };
1720
+
1721
+
1722
+ /**
1723
+ * optional bool is_backup_eligible = 9;
1724
+ * @return {boolean}
1725
+ */
1726
+ proto.Auth.PasskeyProto.prototype.getIsBackupEligible = function() {
1727
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
1728
+ };
1729
+
1730
+
1731
+ /**
1732
+ * @param {boolean} value
1733
+ * @return {!proto.Auth.PasskeyProto} returns this
1734
+ */
1735
+ proto.Auth.PasskeyProto.prototype.setIsBackupEligible = function(value) {
1736
+ return jspb.Message.setProto3BooleanField(this, 9, value);
1737
+ };
1738
+
1739
+
1740
+ /**
1741
+ * optional bool is_backed_up = 10;
1742
+ * @return {boolean}
1743
+ */
1744
+ proto.Auth.PasskeyProto.prototype.getIsBackedUp = function() {
1745
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
1746
+ };
1747
+
1748
+
1749
+ /**
1750
+ * @param {boolean} value
1751
+ * @return {!proto.Auth.PasskeyProto} returns this
1752
+ */
1753
+ proto.Auth.PasskeyProto.prototype.setIsBackedUp = function(value) {
1754
+ return jspb.Message.setProto3BooleanField(this, 10, value);
1755
+ };
1756
+
1757
+
1758
+ /**
1759
+ * optional bytes attestation_object = 11;
1760
+ * @return {!(string|Uint8Array)}
1761
+ */
1762
+ proto.Auth.PasskeyProto.prototype.getAttestationObject = function() {
1763
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1764
+ };
1765
+
1766
+
1767
+ /**
1768
+ * optional bytes attestation_object = 11;
1769
+ * This is a type-conversion wrapper around `getAttestationObject()`
1770
+ * @return {string}
1771
+ */
1772
+ proto.Auth.PasskeyProto.prototype.getAttestationObject_asB64 = function() {
1773
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1774
+ this.getAttestationObject()));
1775
+ };
1776
+
1777
+
1778
+ /**
1779
+ * optional bytes attestation_object = 11;
1780
+ * Note that Uint8Array is not supported on all browsers.
1781
+ * @see http://caniuse.com/Uint8Array
1782
+ * This is a type-conversion wrapper around `getAttestationObject()`
1783
+ * @return {!Uint8Array}
1784
+ */
1785
+ proto.Auth.PasskeyProto.prototype.getAttestationObject_asU8 = function() {
1786
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1787
+ this.getAttestationObject()));
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * @param {!(string|Uint8Array)} value
1793
+ * @return {!proto.Auth.PasskeyProto} returns this
1794
+ */
1795
+ proto.Auth.PasskeyProto.prototype.setAttestationObject = function(value) {
1796
+ return jspb.Message.setProto3BytesField(this, 11, value);
1797
+ };
1798
+
1799
+
1800
+ /**
1801
+ * optional bytes attestation_client_data_json = 12;
1802
+ * @return {!(string|Uint8Array)}
1803
+ */
1804
+ proto.Auth.PasskeyProto.prototype.getAttestationClientDataJson = function() {
1805
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * optional bytes attestation_client_data_json = 12;
1811
+ * This is a type-conversion wrapper around `getAttestationClientDataJson()`
1812
+ * @return {string}
1813
+ */
1814
+ proto.Auth.PasskeyProto.prototype.getAttestationClientDataJson_asB64 = function() {
1815
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1816
+ this.getAttestationClientDataJson()));
1817
+ };
1818
+
1819
+
1820
+ /**
1821
+ * optional bytes attestation_client_data_json = 12;
1822
+ * Note that Uint8Array is not supported on all browsers.
1823
+ * @see http://caniuse.com/Uint8Array
1824
+ * This is a type-conversion wrapper around `getAttestationClientDataJson()`
1825
+ * @return {!Uint8Array}
1826
+ */
1827
+ proto.Auth.PasskeyProto.prototype.getAttestationClientDataJson_asU8 = function() {
1828
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1829
+ this.getAttestationClientDataJson()));
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * @param {!(string|Uint8Array)} value
1835
+ * @return {!proto.Auth.PasskeyProto} returns this
1836
+ */
1837
+ proto.Auth.PasskeyProto.prototype.setAttestationClientDataJson = function(value) {
1838
+ return jspb.Message.setProto3BytesField(this, 12, value);
1839
+ };
1840
+
1841
+
1842
+ goog.object.extend(exports, proto.Auth);