protobuf-platform 1.2.456 → 1.2.460
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/notification/notification.proto +21 -0
- package/notification/notification_grpc_pb.js +33 -0
- package/notification/notification_pb.js +940 -0
- package/package.json +1 -1
- package/user/user.proto +53 -0
- package/user/user_grpc_pb.js +66 -0
- package/user/user_pb.js +1987 -56
package/user/user_pb.js
CHANGED
|
@@ -27,6 +27,8 @@ goog.exportSymbol('proto.user.AttachKycRequirementPresetRuleRequest', null, glob
|
|
|
27
27
|
goog.exportSymbol('proto.user.BatchGetAffiliateAttributionItem', null, global);
|
|
28
28
|
goog.exportSymbol('proto.user.BatchGetAffiliateAttributionRequest', null, global);
|
|
29
29
|
goog.exportSymbol('proto.user.BatchGetAffiliateAttributionResponse', null, global);
|
|
30
|
+
goog.exportSymbol('proto.user.BeginUserTwoFaSetupRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.user.BeginUserTwoFaSetupResponse', null, global);
|
|
30
32
|
goog.exportSymbol('proto.user.CalculatedRestrictionLimit', null, global);
|
|
31
33
|
goog.exportSymbol('proto.user.CategoryItem', null, global);
|
|
32
34
|
goog.exportSymbol('proto.user.CategoryItemsResponse', null, global);
|
|
@@ -37,6 +39,8 @@ goog.exportSymbol('proto.user.CheckRegistrationFieldAvailabilityResponse', null,
|
|
|
37
39
|
goog.exportSymbol('proto.user.CheckWithdrawalEligibilityRequest', null, global);
|
|
38
40
|
goog.exportSymbol('proto.user.CheckWithdrawalEligibilityResponse', null, global);
|
|
39
41
|
goog.exportSymbol('proto.user.ConfirmTwoFaRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.user.ConfirmUserTwoFaActionRequest', null, global);
|
|
43
|
+
goog.exportSymbol('proto.user.ConfirmUserTwoFaActionResponse', null, global);
|
|
40
44
|
goog.exportSymbol('proto.user.ConfirmationStatusResponse', null, global);
|
|
41
45
|
goog.exportSymbol('proto.user.CreateKycRequirementPresetRequest', null, global);
|
|
42
46
|
goog.exportSymbol('proto.user.CreateKycRuleDefinitionRequest', null, global);
|
|
@@ -531,6 +535,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
531
535
|
*/
|
|
532
536
|
proto.user.ConfirmTwoFaRequest.displayName = 'proto.user.ConfirmTwoFaRequest';
|
|
533
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* Generated by JsPbCodeGenerator.
|
|
540
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
541
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
542
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
543
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
544
|
+
* valid.
|
|
545
|
+
* @extends {jspb.Message}
|
|
546
|
+
* @constructor
|
|
547
|
+
*/
|
|
548
|
+
proto.user.BeginUserTwoFaSetupRequest = function(opt_data) {
|
|
549
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
550
|
+
};
|
|
551
|
+
goog.inherits(proto.user.BeginUserTwoFaSetupRequest, jspb.Message);
|
|
552
|
+
if (goog.DEBUG && !COMPILED) {
|
|
553
|
+
/**
|
|
554
|
+
* @public
|
|
555
|
+
* @override
|
|
556
|
+
*/
|
|
557
|
+
proto.user.BeginUserTwoFaSetupRequest.displayName = 'proto.user.BeginUserTwoFaSetupRequest';
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Generated by JsPbCodeGenerator.
|
|
561
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
562
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
563
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
564
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
565
|
+
* valid.
|
|
566
|
+
* @extends {jspb.Message}
|
|
567
|
+
* @constructor
|
|
568
|
+
*/
|
|
569
|
+
proto.user.BeginUserTwoFaSetupResponse = function(opt_data) {
|
|
570
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
571
|
+
};
|
|
572
|
+
goog.inherits(proto.user.BeginUserTwoFaSetupResponse, jspb.Message);
|
|
573
|
+
if (goog.DEBUG && !COMPILED) {
|
|
574
|
+
/**
|
|
575
|
+
* @public
|
|
576
|
+
* @override
|
|
577
|
+
*/
|
|
578
|
+
proto.user.BeginUserTwoFaSetupResponse.displayName = 'proto.user.BeginUserTwoFaSetupResponse';
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Generated by JsPbCodeGenerator.
|
|
582
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
583
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
584
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
585
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
586
|
+
* valid.
|
|
587
|
+
* @extends {jspb.Message}
|
|
588
|
+
* @constructor
|
|
589
|
+
*/
|
|
590
|
+
proto.user.ConfirmUserTwoFaActionRequest = function(opt_data) {
|
|
591
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
592
|
+
};
|
|
593
|
+
goog.inherits(proto.user.ConfirmUserTwoFaActionRequest, jspb.Message);
|
|
594
|
+
if (goog.DEBUG && !COMPILED) {
|
|
595
|
+
/**
|
|
596
|
+
* @public
|
|
597
|
+
* @override
|
|
598
|
+
*/
|
|
599
|
+
proto.user.ConfirmUserTwoFaActionRequest.displayName = 'proto.user.ConfirmUserTwoFaActionRequest';
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Generated by JsPbCodeGenerator.
|
|
603
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
604
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
605
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
606
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
607
|
+
* valid.
|
|
608
|
+
* @extends {jspb.Message}
|
|
609
|
+
* @constructor
|
|
610
|
+
*/
|
|
611
|
+
proto.user.ConfirmUserTwoFaActionResponse = function(opt_data) {
|
|
612
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
613
|
+
};
|
|
614
|
+
goog.inherits(proto.user.ConfirmUserTwoFaActionResponse, jspb.Message);
|
|
615
|
+
if (goog.DEBUG && !COMPILED) {
|
|
616
|
+
/**
|
|
617
|
+
* @public
|
|
618
|
+
* @override
|
|
619
|
+
*/
|
|
620
|
+
proto.user.ConfirmUserTwoFaActionResponse.displayName = 'proto.user.ConfirmUserTwoFaActionResponse';
|
|
621
|
+
}
|
|
534
622
|
/**
|
|
535
623
|
* Generated by JsPbCodeGenerator.
|
|
536
624
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -13152,7 +13240,9 @@ proto.user.ConfirmTwoFaRequest.toObject = function(includeInstance, msg) {
|
|
|
13152
13240
|
userIp: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13153
13241
|
device: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13154
13242
|
country: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
13155
|
-
city: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
13243
|
+
city: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
13244
|
+
purpose: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
13245
|
+
metadata: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
13156
13246
|
};
|
|
13157
13247
|
|
|
13158
13248
|
if (includeInstance) {
|
|
@@ -13217,6 +13307,14 @@ proto.user.ConfirmTwoFaRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
13217
13307
|
var value = /** @type {string} */ (reader.readString());
|
|
13218
13308
|
msg.setCity(value);
|
|
13219
13309
|
break;
|
|
13310
|
+
case 8:
|
|
13311
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13312
|
+
msg.setPurpose(value);
|
|
13313
|
+
break;
|
|
13314
|
+
case 9:
|
|
13315
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13316
|
+
msg.setMetadata(value);
|
|
13317
|
+
break;
|
|
13220
13318
|
default:
|
|
13221
13319
|
reader.skipField();
|
|
13222
13320
|
break;
|
|
@@ -13295,6 +13393,20 @@ proto.user.ConfirmTwoFaRequest.serializeBinaryToWriter = function(message, write
|
|
|
13295
13393
|
f
|
|
13296
13394
|
);
|
|
13297
13395
|
}
|
|
13396
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
13397
|
+
if (f != null) {
|
|
13398
|
+
writer.writeString(
|
|
13399
|
+
8,
|
|
13400
|
+
f
|
|
13401
|
+
);
|
|
13402
|
+
}
|
|
13403
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
13404
|
+
if (f != null) {
|
|
13405
|
+
writer.writeString(
|
|
13406
|
+
9,
|
|
13407
|
+
f
|
|
13408
|
+
);
|
|
13409
|
+
}
|
|
13298
13410
|
};
|
|
13299
13411
|
|
|
13300
13412
|
|
|
@@ -13514,6 +13626,78 @@ proto.user.ConfirmTwoFaRequest.prototype.hasCity = function() {
|
|
|
13514
13626
|
};
|
|
13515
13627
|
|
|
13516
13628
|
|
|
13629
|
+
/**
|
|
13630
|
+
* optional string purpose = 8;
|
|
13631
|
+
* @return {string}
|
|
13632
|
+
*/
|
|
13633
|
+
proto.user.ConfirmTwoFaRequest.prototype.getPurpose = function() {
|
|
13634
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
13635
|
+
};
|
|
13636
|
+
|
|
13637
|
+
|
|
13638
|
+
/**
|
|
13639
|
+
* @param {string} value
|
|
13640
|
+
* @return {!proto.user.ConfirmTwoFaRequest} returns this
|
|
13641
|
+
*/
|
|
13642
|
+
proto.user.ConfirmTwoFaRequest.prototype.setPurpose = function(value) {
|
|
13643
|
+
return jspb.Message.setField(this, 8, value);
|
|
13644
|
+
};
|
|
13645
|
+
|
|
13646
|
+
|
|
13647
|
+
/**
|
|
13648
|
+
* Clears the field making it undefined.
|
|
13649
|
+
* @return {!proto.user.ConfirmTwoFaRequest} returns this
|
|
13650
|
+
*/
|
|
13651
|
+
proto.user.ConfirmTwoFaRequest.prototype.clearPurpose = function() {
|
|
13652
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
13653
|
+
};
|
|
13654
|
+
|
|
13655
|
+
|
|
13656
|
+
/**
|
|
13657
|
+
* Returns whether this field is set.
|
|
13658
|
+
* @return {boolean}
|
|
13659
|
+
*/
|
|
13660
|
+
proto.user.ConfirmTwoFaRequest.prototype.hasPurpose = function() {
|
|
13661
|
+
return jspb.Message.getField(this, 8) != null;
|
|
13662
|
+
};
|
|
13663
|
+
|
|
13664
|
+
|
|
13665
|
+
/**
|
|
13666
|
+
* optional string metadata = 9;
|
|
13667
|
+
* @return {string}
|
|
13668
|
+
*/
|
|
13669
|
+
proto.user.ConfirmTwoFaRequest.prototype.getMetadata = function() {
|
|
13670
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
13671
|
+
};
|
|
13672
|
+
|
|
13673
|
+
|
|
13674
|
+
/**
|
|
13675
|
+
* @param {string} value
|
|
13676
|
+
* @return {!proto.user.ConfirmTwoFaRequest} returns this
|
|
13677
|
+
*/
|
|
13678
|
+
proto.user.ConfirmTwoFaRequest.prototype.setMetadata = function(value) {
|
|
13679
|
+
return jspb.Message.setField(this, 9, value);
|
|
13680
|
+
};
|
|
13681
|
+
|
|
13682
|
+
|
|
13683
|
+
/**
|
|
13684
|
+
* Clears the field making it undefined.
|
|
13685
|
+
* @return {!proto.user.ConfirmTwoFaRequest} returns this
|
|
13686
|
+
*/
|
|
13687
|
+
proto.user.ConfirmTwoFaRequest.prototype.clearMetadata = function() {
|
|
13688
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
13689
|
+
};
|
|
13690
|
+
|
|
13691
|
+
|
|
13692
|
+
/**
|
|
13693
|
+
* Returns whether this field is set.
|
|
13694
|
+
* @return {boolean}
|
|
13695
|
+
*/
|
|
13696
|
+
proto.user.ConfirmTwoFaRequest.prototype.hasMetadata = function() {
|
|
13697
|
+
return jspb.Message.getField(this, 9) != null;
|
|
13698
|
+
};
|
|
13699
|
+
|
|
13700
|
+
|
|
13517
13701
|
|
|
13518
13702
|
|
|
13519
13703
|
|
|
@@ -13530,8 +13714,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
13530
13714
|
* http://goto/soy-param-migration
|
|
13531
13715
|
* @return {!Object}
|
|
13532
13716
|
*/
|
|
13533
|
-
proto.user.
|
|
13534
|
-
return proto.user.
|
|
13717
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.toObject = function(opt_includeInstance) {
|
|
13718
|
+
return proto.user.BeginUserTwoFaSetupRequest.toObject(opt_includeInstance, this);
|
|
13535
13719
|
};
|
|
13536
13720
|
|
|
13537
13721
|
|
|
@@ -13540,15 +13724,18 @@ proto.user.UserDataRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
13540
13724
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13541
13725
|
* the JSPB instance for transitional soy proto support:
|
|
13542
13726
|
* http://goto/soy-param-migration
|
|
13543
|
-
* @param {!proto.user.
|
|
13727
|
+
* @param {!proto.user.BeginUserTwoFaSetupRequest} msg The msg instance to transform.
|
|
13544
13728
|
* @return {!Object}
|
|
13545
13729
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13546
13730
|
*/
|
|
13547
|
-
proto.user.
|
|
13731
|
+
proto.user.BeginUserTwoFaSetupRequest.toObject = function(includeInstance, msg) {
|
|
13548
13732
|
var f, obj = {
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13733
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
13734
|
+
userPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13735
|
+
userIp: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13736
|
+
device: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13737
|
+
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13738
|
+
city: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
13552
13739
|
};
|
|
13553
13740
|
|
|
13554
13741
|
if (includeInstance) {
|
|
@@ -13562,23 +13749,23 @@ proto.user.UserDataRequest.toObject = function(includeInstance, msg) {
|
|
|
13562
13749
|
/**
|
|
13563
13750
|
* Deserializes binary data (in protobuf wire format).
|
|
13564
13751
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13565
|
-
* @return {!proto.user.
|
|
13752
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest}
|
|
13566
13753
|
*/
|
|
13567
|
-
proto.user.
|
|
13754
|
+
proto.user.BeginUserTwoFaSetupRequest.deserializeBinary = function(bytes) {
|
|
13568
13755
|
var reader = new jspb.BinaryReader(bytes);
|
|
13569
|
-
var msg = new proto.user.
|
|
13570
|
-
return proto.user.
|
|
13756
|
+
var msg = new proto.user.BeginUserTwoFaSetupRequest;
|
|
13757
|
+
return proto.user.BeginUserTwoFaSetupRequest.deserializeBinaryFromReader(msg, reader);
|
|
13571
13758
|
};
|
|
13572
13759
|
|
|
13573
13760
|
|
|
13574
13761
|
/**
|
|
13575
13762
|
* Deserializes binary data (in protobuf wire format) from the
|
|
13576
13763
|
* given reader into the given message object.
|
|
13577
|
-
* @param {!proto.user.
|
|
13764
|
+
* @param {!proto.user.BeginUserTwoFaSetupRequest} msg The message object to deserialize into.
|
|
13578
13765
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13579
|
-
* @return {!proto.user.
|
|
13766
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest}
|
|
13580
13767
|
*/
|
|
13581
|
-
proto.user.
|
|
13768
|
+
proto.user.BeginUserTwoFaSetupRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
13582
13769
|
while (reader.nextField()) {
|
|
13583
13770
|
if (reader.isEndGroup()) {
|
|
13584
13771
|
break;
|
|
@@ -13587,15 +13774,27 @@ proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
13587
13774
|
switch (field) {
|
|
13588
13775
|
case 1:
|
|
13589
13776
|
var value = /** @type {number} */ (reader.readInt32());
|
|
13590
|
-
msg.
|
|
13777
|
+
msg.setUserId(value);
|
|
13591
13778
|
break;
|
|
13592
13779
|
case 2:
|
|
13593
13780
|
var value = /** @type {string} */ (reader.readString());
|
|
13594
|
-
msg.
|
|
13781
|
+
msg.setUserPublicId(value);
|
|
13595
13782
|
break;
|
|
13596
13783
|
case 3:
|
|
13597
13784
|
var value = /** @type {string} */ (reader.readString());
|
|
13598
|
-
msg.
|
|
13785
|
+
msg.setUserIp(value);
|
|
13786
|
+
break;
|
|
13787
|
+
case 4:
|
|
13788
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13789
|
+
msg.setDevice(value);
|
|
13790
|
+
break;
|
|
13791
|
+
case 5:
|
|
13792
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13793
|
+
msg.setCountry(value);
|
|
13794
|
+
break;
|
|
13795
|
+
case 6:
|
|
13796
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13797
|
+
msg.setCity(value);
|
|
13599
13798
|
break;
|
|
13600
13799
|
default:
|
|
13601
13800
|
reader.skipField();
|
|
@@ -13610,9 +13809,9 @@ proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
13610
13809
|
* Serializes the message to binary data (in protobuf wire format).
|
|
13611
13810
|
* @return {!Uint8Array}
|
|
13612
13811
|
*/
|
|
13613
|
-
proto.user.
|
|
13812
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.serializeBinary = function() {
|
|
13614
13813
|
var writer = new jspb.BinaryWriter();
|
|
13615
|
-
proto.user.
|
|
13814
|
+
proto.user.BeginUserTwoFaSetupRequest.serializeBinaryToWriter(this, writer);
|
|
13616
13815
|
return writer.getResultBuffer();
|
|
13617
13816
|
};
|
|
13618
13817
|
|
|
@@ -13620,14 +13819,14 @@ proto.user.UserDataRequest.prototype.serializeBinary = function() {
|
|
|
13620
13819
|
/**
|
|
13621
13820
|
* Serializes the given message to binary data (in protobuf wire
|
|
13622
13821
|
* format), writing to the given BinaryWriter.
|
|
13623
|
-
* @param {!proto.user.
|
|
13822
|
+
* @param {!proto.user.BeginUserTwoFaSetupRequest} message
|
|
13624
13823
|
* @param {!jspb.BinaryWriter} writer
|
|
13625
13824
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13626
13825
|
*/
|
|
13627
|
-
proto.user.
|
|
13826
|
+
proto.user.BeginUserTwoFaSetupRequest.serializeBinaryToWriter = function(message, writer) {
|
|
13628
13827
|
var f = undefined;
|
|
13629
|
-
f =
|
|
13630
|
-
if (f
|
|
13828
|
+
f = message.getUserId();
|
|
13829
|
+
if (f !== 0) {
|
|
13631
13830
|
writer.writeInt32(
|
|
13632
13831
|
1,
|
|
13633
13832
|
f
|
|
@@ -13647,68 +13846,71 @@ proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
13647
13846
|
f
|
|
13648
13847
|
);
|
|
13649
13848
|
}
|
|
13849
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
13850
|
+
if (f != null) {
|
|
13851
|
+
writer.writeString(
|
|
13852
|
+
4,
|
|
13853
|
+
f
|
|
13854
|
+
);
|
|
13855
|
+
}
|
|
13856
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
13857
|
+
if (f != null) {
|
|
13858
|
+
writer.writeString(
|
|
13859
|
+
5,
|
|
13860
|
+
f
|
|
13861
|
+
);
|
|
13862
|
+
}
|
|
13863
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
13864
|
+
if (f != null) {
|
|
13865
|
+
writer.writeString(
|
|
13866
|
+
6,
|
|
13867
|
+
f
|
|
13868
|
+
);
|
|
13869
|
+
}
|
|
13650
13870
|
};
|
|
13651
13871
|
|
|
13652
13872
|
|
|
13653
13873
|
/**
|
|
13654
|
-
* optional int32
|
|
13874
|
+
* optional int32 user_id = 1;
|
|
13655
13875
|
* @return {number}
|
|
13656
13876
|
*/
|
|
13657
|
-
proto.user.
|
|
13877
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.getUserId = function() {
|
|
13658
13878
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
13659
13879
|
};
|
|
13660
13880
|
|
|
13661
13881
|
|
|
13662
13882
|
/**
|
|
13663
13883
|
* @param {number} value
|
|
13664
|
-
* @return {!proto.user.
|
|
13665
|
-
*/
|
|
13666
|
-
proto.user.UserDataRequest.prototype.setId = function(value) {
|
|
13667
|
-
return jspb.Message.setField(this, 1, value);
|
|
13668
|
-
};
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
/**
|
|
13672
|
-
* Clears the field making it undefined.
|
|
13673
|
-
* @return {!proto.user.UserDataRequest} returns this
|
|
13674
|
-
*/
|
|
13675
|
-
proto.user.UserDataRequest.prototype.clearId = function() {
|
|
13676
|
-
return jspb.Message.setField(this, 1, undefined);
|
|
13677
|
-
};
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
/**
|
|
13681
|
-
* Returns whether this field is set.
|
|
13682
|
-
* @return {boolean}
|
|
13884
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
13683
13885
|
*/
|
|
13684
|
-
proto.user.
|
|
13685
|
-
return jspb.Message.
|
|
13886
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.setUserId = function(value) {
|
|
13887
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
13686
13888
|
};
|
|
13687
13889
|
|
|
13688
13890
|
|
|
13689
13891
|
/**
|
|
13690
|
-
* optional string
|
|
13892
|
+
* optional string user_public_id = 2;
|
|
13691
13893
|
* @return {string}
|
|
13692
13894
|
*/
|
|
13693
|
-
proto.user.
|
|
13895
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.getUserPublicId = function() {
|
|
13694
13896
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
13695
13897
|
};
|
|
13696
13898
|
|
|
13697
13899
|
|
|
13698
13900
|
/**
|
|
13699
13901
|
* @param {string} value
|
|
13700
|
-
* @return {!proto.user.
|
|
13902
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
13701
13903
|
*/
|
|
13702
|
-
proto.user.
|
|
13904
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.setUserPublicId = function(value) {
|
|
13703
13905
|
return jspb.Message.setField(this, 2, value);
|
|
13704
13906
|
};
|
|
13705
13907
|
|
|
13706
13908
|
|
|
13707
13909
|
/**
|
|
13708
13910
|
* Clears the field making it undefined.
|
|
13709
|
-
* @return {!proto.user.
|
|
13911
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
13710
13912
|
*/
|
|
13711
|
-
proto.user.
|
|
13913
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.clearUserPublicId = function() {
|
|
13712
13914
|
return jspb.Message.setField(this, 2, undefined);
|
|
13713
13915
|
};
|
|
13714
13916
|
|
|
@@ -13717,13 +13919,1694 @@ proto.user.UserDataRequest.prototype.clearRequestedArea = function() {
|
|
|
13717
13919
|
* Returns whether this field is set.
|
|
13718
13920
|
* @return {boolean}
|
|
13719
13921
|
*/
|
|
13720
|
-
proto.user.
|
|
13922
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.hasUserPublicId = function() {
|
|
13721
13923
|
return jspb.Message.getField(this, 2) != null;
|
|
13722
13924
|
};
|
|
13723
13925
|
|
|
13724
13926
|
|
|
13725
13927
|
/**
|
|
13726
|
-
* optional string
|
|
13928
|
+
* optional string user_ip = 3;
|
|
13929
|
+
* @return {string}
|
|
13930
|
+
*/
|
|
13931
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.getUserIp = function() {
|
|
13932
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
13933
|
+
};
|
|
13934
|
+
|
|
13935
|
+
|
|
13936
|
+
/**
|
|
13937
|
+
* @param {string} value
|
|
13938
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
13939
|
+
*/
|
|
13940
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.setUserIp = function(value) {
|
|
13941
|
+
return jspb.Message.setField(this, 3, value);
|
|
13942
|
+
};
|
|
13943
|
+
|
|
13944
|
+
|
|
13945
|
+
/**
|
|
13946
|
+
* Clears the field making it undefined.
|
|
13947
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
13948
|
+
*/
|
|
13949
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.clearUserIp = function() {
|
|
13950
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
13951
|
+
};
|
|
13952
|
+
|
|
13953
|
+
|
|
13954
|
+
/**
|
|
13955
|
+
* Returns whether this field is set.
|
|
13956
|
+
* @return {boolean}
|
|
13957
|
+
*/
|
|
13958
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.hasUserIp = function() {
|
|
13959
|
+
return jspb.Message.getField(this, 3) != null;
|
|
13960
|
+
};
|
|
13961
|
+
|
|
13962
|
+
|
|
13963
|
+
/**
|
|
13964
|
+
* optional string device = 4;
|
|
13965
|
+
* @return {string}
|
|
13966
|
+
*/
|
|
13967
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.getDevice = function() {
|
|
13968
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
13969
|
+
};
|
|
13970
|
+
|
|
13971
|
+
|
|
13972
|
+
/**
|
|
13973
|
+
* @param {string} value
|
|
13974
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
13975
|
+
*/
|
|
13976
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.setDevice = function(value) {
|
|
13977
|
+
return jspb.Message.setField(this, 4, value);
|
|
13978
|
+
};
|
|
13979
|
+
|
|
13980
|
+
|
|
13981
|
+
/**
|
|
13982
|
+
* Clears the field making it undefined.
|
|
13983
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
13984
|
+
*/
|
|
13985
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.clearDevice = function() {
|
|
13986
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
13987
|
+
};
|
|
13988
|
+
|
|
13989
|
+
|
|
13990
|
+
/**
|
|
13991
|
+
* Returns whether this field is set.
|
|
13992
|
+
* @return {boolean}
|
|
13993
|
+
*/
|
|
13994
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.hasDevice = function() {
|
|
13995
|
+
return jspb.Message.getField(this, 4) != null;
|
|
13996
|
+
};
|
|
13997
|
+
|
|
13998
|
+
|
|
13999
|
+
/**
|
|
14000
|
+
* optional string country = 5;
|
|
14001
|
+
* @return {string}
|
|
14002
|
+
*/
|
|
14003
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.getCountry = function() {
|
|
14004
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
14005
|
+
};
|
|
14006
|
+
|
|
14007
|
+
|
|
14008
|
+
/**
|
|
14009
|
+
* @param {string} value
|
|
14010
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
14011
|
+
*/
|
|
14012
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.setCountry = function(value) {
|
|
14013
|
+
return jspb.Message.setField(this, 5, value);
|
|
14014
|
+
};
|
|
14015
|
+
|
|
14016
|
+
|
|
14017
|
+
/**
|
|
14018
|
+
* Clears the field making it undefined.
|
|
14019
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
14020
|
+
*/
|
|
14021
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.clearCountry = function() {
|
|
14022
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
14023
|
+
};
|
|
14024
|
+
|
|
14025
|
+
|
|
14026
|
+
/**
|
|
14027
|
+
* Returns whether this field is set.
|
|
14028
|
+
* @return {boolean}
|
|
14029
|
+
*/
|
|
14030
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.hasCountry = function() {
|
|
14031
|
+
return jspb.Message.getField(this, 5) != null;
|
|
14032
|
+
};
|
|
14033
|
+
|
|
14034
|
+
|
|
14035
|
+
/**
|
|
14036
|
+
* optional string city = 6;
|
|
14037
|
+
* @return {string}
|
|
14038
|
+
*/
|
|
14039
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.getCity = function() {
|
|
14040
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
14041
|
+
};
|
|
14042
|
+
|
|
14043
|
+
|
|
14044
|
+
/**
|
|
14045
|
+
* @param {string} value
|
|
14046
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
14047
|
+
*/
|
|
14048
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.setCity = function(value) {
|
|
14049
|
+
return jspb.Message.setField(this, 6, value);
|
|
14050
|
+
};
|
|
14051
|
+
|
|
14052
|
+
|
|
14053
|
+
/**
|
|
14054
|
+
* Clears the field making it undefined.
|
|
14055
|
+
* @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
|
|
14056
|
+
*/
|
|
14057
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.clearCity = function() {
|
|
14058
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
14059
|
+
};
|
|
14060
|
+
|
|
14061
|
+
|
|
14062
|
+
/**
|
|
14063
|
+
* Returns whether this field is set.
|
|
14064
|
+
* @return {boolean}
|
|
14065
|
+
*/
|
|
14066
|
+
proto.user.BeginUserTwoFaSetupRequest.prototype.hasCity = function() {
|
|
14067
|
+
return jspb.Message.getField(this, 6) != null;
|
|
14068
|
+
};
|
|
14069
|
+
|
|
14070
|
+
|
|
14071
|
+
|
|
14072
|
+
|
|
14073
|
+
|
|
14074
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14075
|
+
/**
|
|
14076
|
+
* Creates an object representation of this proto.
|
|
14077
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14078
|
+
* Optional fields that are not set will be set to undefined.
|
|
14079
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14080
|
+
* For the list of reserved names please see:
|
|
14081
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14082
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14083
|
+
* JSPB instance for transitional soy proto support:
|
|
14084
|
+
* http://goto/soy-param-migration
|
|
14085
|
+
* @return {!Object}
|
|
14086
|
+
*/
|
|
14087
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.toObject = function(opt_includeInstance) {
|
|
14088
|
+
return proto.user.BeginUserTwoFaSetupResponse.toObject(opt_includeInstance, this);
|
|
14089
|
+
};
|
|
14090
|
+
|
|
14091
|
+
|
|
14092
|
+
/**
|
|
14093
|
+
* Static version of the {@see toObject} method.
|
|
14094
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14095
|
+
* the JSPB instance for transitional soy proto support:
|
|
14096
|
+
* http://goto/soy-param-migration
|
|
14097
|
+
* @param {!proto.user.BeginUserTwoFaSetupResponse} msg The msg instance to transform.
|
|
14098
|
+
* @return {!Object}
|
|
14099
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14100
|
+
*/
|
|
14101
|
+
proto.user.BeginUserTwoFaSetupResponse.toObject = function(includeInstance, msg) {
|
|
14102
|
+
var f, obj = {
|
|
14103
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
14104
|
+
userPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14105
|
+
twoFaStatus: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14106
|
+
twoFaTempToken: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
14107
|
+
twoFaSecret: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
14108
|
+
twoFaQrDataUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
14109
|
+
expiresInSeconds: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
14110
|
+
};
|
|
14111
|
+
|
|
14112
|
+
if (includeInstance) {
|
|
14113
|
+
obj.$jspbMessageInstance = msg;
|
|
14114
|
+
}
|
|
14115
|
+
return obj;
|
|
14116
|
+
};
|
|
14117
|
+
}
|
|
14118
|
+
|
|
14119
|
+
|
|
14120
|
+
/**
|
|
14121
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14122
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14123
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse}
|
|
14124
|
+
*/
|
|
14125
|
+
proto.user.BeginUserTwoFaSetupResponse.deserializeBinary = function(bytes) {
|
|
14126
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14127
|
+
var msg = new proto.user.BeginUserTwoFaSetupResponse;
|
|
14128
|
+
return proto.user.BeginUserTwoFaSetupResponse.deserializeBinaryFromReader(msg, reader);
|
|
14129
|
+
};
|
|
14130
|
+
|
|
14131
|
+
|
|
14132
|
+
/**
|
|
14133
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14134
|
+
* given reader into the given message object.
|
|
14135
|
+
* @param {!proto.user.BeginUserTwoFaSetupResponse} msg The message object to deserialize into.
|
|
14136
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14137
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse}
|
|
14138
|
+
*/
|
|
14139
|
+
proto.user.BeginUserTwoFaSetupResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
14140
|
+
while (reader.nextField()) {
|
|
14141
|
+
if (reader.isEndGroup()) {
|
|
14142
|
+
break;
|
|
14143
|
+
}
|
|
14144
|
+
var field = reader.getFieldNumber();
|
|
14145
|
+
switch (field) {
|
|
14146
|
+
case 1:
|
|
14147
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14148
|
+
msg.setUserId(value);
|
|
14149
|
+
break;
|
|
14150
|
+
case 2:
|
|
14151
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14152
|
+
msg.setUserPublicId(value);
|
|
14153
|
+
break;
|
|
14154
|
+
case 3:
|
|
14155
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14156
|
+
msg.setTwoFaStatus(value);
|
|
14157
|
+
break;
|
|
14158
|
+
case 4:
|
|
14159
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14160
|
+
msg.setTwoFaTempToken(value);
|
|
14161
|
+
break;
|
|
14162
|
+
case 5:
|
|
14163
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14164
|
+
msg.setTwoFaSecret(value);
|
|
14165
|
+
break;
|
|
14166
|
+
case 6:
|
|
14167
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14168
|
+
msg.setTwoFaQrDataUrl(value);
|
|
14169
|
+
break;
|
|
14170
|
+
case 7:
|
|
14171
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14172
|
+
msg.setExpiresInSeconds(value);
|
|
14173
|
+
break;
|
|
14174
|
+
default:
|
|
14175
|
+
reader.skipField();
|
|
14176
|
+
break;
|
|
14177
|
+
}
|
|
14178
|
+
}
|
|
14179
|
+
return msg;
|
|
14180
|
+
};
|
|
14181
|
+
|
|
14182
|
+
|
|
14183
|
+
/**
|
|
14184
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14185
|
+
* @return {!Uint8Array}
|
|
14186
|
+
*/
|
|
14187
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.serializeBinary = function() {
|
|
14188
|
+
var writer = new jspb.BinaryWriter();
|
|
14189
|
+
proto.user.BeginUserTwoFaSetupResponse.serializeBinaryToWriter(this, writer);
|
|
14190
|
+
return writer.getResultBuffer();
|
|
14191
|
+
};
|
|
14192
|
+
|
|
14193
|
+
|
|
14194
|
+
/**
|
|
14195
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
14196
|
+
* format), writing to the given BinaryWriter.
|
|
14197
|
+
* @param {!proto.user.BeginUserTwoFaSetupResponse} message
|
|
14198
|
+
* @param {!jspb.BinaryWriter} writer
|
|
14199
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14200
|
+
*/
|
|
14201
|
+
proto.user.BeginUserTwoFaSetupResponse.serializeBinaryToWriter = function(message, writer) {
|
|
14202
|
+
var f = undefined;
|
|
14203
|
+
f = message.getUserId();
|
|
14204
|
+
if (f !== 0) {
|
|
14205
|
+
writer.writeInt32(
|
|
14206
|
+
1,
|
|
14207
|
+
f
|
|
14208
|
+
);
|
|
14209
|
+
}
|
|
14210
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
14211
|
+
if (f != null) {
|
|
14212
|
+
writer.writeString(
|
|
14213
|
+
2,
|
|
14214
|
+
f
|
|
14215
|
+
);
|
|
14216
|
+
}
|
|
14217
|
+
f = message.getTwoFaStatus();
|
|
14218
|
+
if (f.length > 0) {
|
|
14219
|
+
writer.writeString(
|
|
14220
|
+
3,
|
|
14221
|
+
f
|
|
14222
|
+
);
|
|
14223
|
+
}
|
|
14224
|
+
f = message.getTwoFaTempToken();
|
|
14225
|
+
if (f.length > 0) {
|
|
14226
|
+
writer.writeString(
|
|
14227
|
+
4,
|
|
14228
|
+
f
|
|
14229
|
+
);
|
|
14230
|
+
}
|
|
14231
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
14232
|
+
if (f != null) {
|
|
14233
|
+
writer.writeString(
|
|
14234
|
+
5,
|
|
14235
|
+
f
|
|
14236
|
+
);
|
|
14237
|
+
}
|
|
14238
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
14239
|
+
if (f != null) {
|
|
14240
|
+
writer.writeString(
|
|
14241
|
+
6,
|
|
14242
|
+
f
|
|
14243
|
+
);
|
|
14244
|
+
}
|
|
14245
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
14246
|
+
if (f != null) {
|
|
14247
|
+
writer.writeInt32(
|
|
14248
|
+
7,
|
|
14249
|
+
f
|
|
14250
|
+
);
|
|
14251
|
+
}
|
|
14252
|
+
};
|
|
14253
|
+
|
|
14254
|
+
|
|
14255
|
+
/**
|
|
14256
|
+
* optional int32 user_id = 1;
|
|
14257
|
+
* @return {number}
|
|
14258
|
+
*/
|
|
14259
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.getUserId = function() {
|
|
14260
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
14261
|
+
};
|
|
14262
|
+
|
|
14263
|
+
|
|
14264
|
+
/**
|
|
14265
|
+
* @param {number} value
|
|
14266
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14267
|
+
*/
|
|
14268
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.setUserId = function(value) {
|
|
14269
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
14270
|
+
};
|
|
14271
|
+
|
|
14272
|
+
|
|
14273
|
+
/**
|
|
14274
|
+
* optional string user_public_id = 2;
|
|
14275
|
+
* @return {string}
|
|
14276
|
+
*/
|
|
14277
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.getUserPublicId = function() {
|
|
14278
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
14279
|
+
};
|
|
14280
|
+
|
|
14281
|
+
|
|
14282
|
+
/**
|
|
14283
|
+
* @param {string} value
|
|
14284
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14285
|
+
*/
|
|
14286
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.setUserPublicId = function(value) {
|
|
14287
|
+
return jspb.Message.setField(this, 2, value);
|
|
14288
|
+
};
|
|
14289
|
+
|
|
14290
|
+
|
|
14291
|
+
/**
|
|
14292
|
+
* Clears the field making it undefined.
|
|
14293
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14294
|
+
*/
|
|
14295
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.clearUserPublicId = function() {
|
|
14296
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
14297
|
+
};
|
|
14298
|
+
|
|
14299
|
+
|
|
14300
|
+
/**
|
|
14301
|
+
* Returns whether this field is set.
|
|
14302
|
+
* @return {boolean}
|
|
14303
|
+
*/
|
|
14304
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.hasUserPublicId = function() {
|
|
14305
|
+
return jspb.Message.getField(this, 2) != null;
|
|
14306
|
+
};
|
|
14307
|
+
|
|
14308
|
+
|
|
14309
|
+
/**
|
|
14310
|
+
* optional string two_fa_status = 3;
|
|
14311
|
+
* @return {string}
|
|
14312
|
+
*/
|
|
14313
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.getTwoFaStatus = function() {
|
|
14314
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
14315
|
+
};
|
|
14316
|
+
|
|
14317
|
+
|
|
14318
|
+
/**
|
|
14319
|
+
* @param {string} value
|
|
14320
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14321
|
+
*/
|
|
14322
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.setTwoFaStatus = function(value) {
|
|
14323
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
14324
|
+
};
|
|
14325
|
+
|
|
14326
|
+
|
|
14327
|
+
/**
|
|
14328
|
+
* optional string two_fa_temp_token = 4;
|
|
14329
|
+
* @return {string}
|
|
14330
|
+
*/
|
|
14331
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.getTwoFaTempToken = function() {
|
|
14332
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
14333
|
+
};
|
|
14334
|
+
|
|
14335
|
+
|
|
14336
|
+
/**
|
|
14337
|
+
* @param {string} value
|
|
14338
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14339
|
+
*/
|
|
14340
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.setTwoFaTempToken = function(value) {
|
|
14341
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
14342
|
+
};
|
|
14343
|
+
|
|
14344
|
+
|
|
14345
|
+
/**
|
|
14346
|
+
* optional string two_fa_secret = 5;
|
|
14347
|
+
* @return {string}
|
|
14348
|
+
*/
|
|
14349
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.getTwoFaSecret = function() {
|
|
14350
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
14351
|
+
};
|
|
14352
|
+
|
|
14353
|
+
|
|
14354
|
+
/**
|
|
14355
|
+
* @param {string} value
|
|
14356
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14357
|
+
*/
|
|
14358
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.setTwoFaSecret = function(value) {
|
|
14359
|
+
return jspb.Message.setField(this, 5, value);
|
|
14360
|
+
};
|
|
14361
|
+
|
|
14362
|
+
|
|
14363
|
+
/**
|
|
14364
|
+
* Clears the field making it undefined.
|
|
14365
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14366
|
+
*/
|
|
14367
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.clearTwoFaSecret = function() {
|
|
14368
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
14369
|
+
};
|
|
14370
|
+
|
|
14371
|
+
|
|
14372
|
+
/**
|
|
14373
|
+
* Returns whether this field is set.
|
|
14374
|
+
* @return {boolean}
|
|
14375
|
+
*/
|
|
14376
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.hasTwoFaSecret = function() {
|
|
14377
|
+
return jspb.Message.getField(this, 5) != null;
|
|
14378
|
+
};
|
|
14379
|
+
|
|
14380
|
+
|
|
14381
|
+
/**
|
|
14382
|
+
* optional string two_fa_qr_data_url = 6;
|
|
14383
|
+
* @return {string}
|
|
14384
|
+
*/
|
|
14385
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.getTwoFaQrDataUrl = function() {
|
|
14386
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
14387
|
+
};
|
|
14388
|
+
|
|
14389
|
+
|
|
14390
|
+
/**
|
|
14391
|
+
* @param {string} value
|
|
14392
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14393
|
+
*/
|
|
14394
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.setTwoFaQrDataUrl = function(value) {
|
|
14395
|
+
return jspb.Message.setField(this, 6, value);
|
|
14396
|
+
};
|
|
14397
|
+
|
|
14398
|
+
|
|
14399
|
+
/**
|
|
14400
|
+
* Clears the field making it undefined.
|
|
14401
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14402
|
+
*/
|
|
14403
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.clearTwoFaQrDataUrl = function() {
|
|
14404
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
14405
|
+
};
|
|
14406
|
+
|
|
14407
|
+
|
|
14408
|
+
/**
|
|
14409
|
+
* Returns whether this field is set.
|
|
14410
|
+
* @return {boolean}
|
|
14411
|
+
*/
|
|
14412
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.hasTwoFaQrDataUrl = function() {
|
|
14413
|
+
return jspb.Message.getField(this, 6) != null;
|
|
14414
|
+
};
|
|
14415
|
+
|
|
14416
|
+
|
|
14417
|
+
/**
|
|
14418
|
+
* optional int32 expires_in_seconds = 7;
|
|
14419
|
+
* @return {number}
|
|
14420
|
+
*/
|
|
14421
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.getExpiresInSeconds = function() {
|
|
14422
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
14423
|
+
};
|
|
14424
|
+
|
|
14425
|
+
|
|
14426
|
+
/**
|
|
14427
|
+
* @param {number} value
|
|
14428
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14429
|
+
*/
|
|
14430
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.setExpiresInSeconds = function(value) {
|
|
14431
|
+
return jspb.Message.setField(this, 7, value);
|
|
14432
|
+
};
|
|
14433
|
+
|
|
14434
|
+
|
|
14435
|
+
/**
|
|
14436
|
+
* Clears the field making it undefined.
|
|
14437
|
+
* @return {!proto.user.BeginUserTwoFaSetupResponse} returns this
|
|
14438
|
+
*/
|
|
14439
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.clearExpiresInSeconds = function() {
|
|
14440
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
14441
|
+
};
|
|
14442
|
+
|
|
14443
|
+
|
|
14444
|
+
/**
|
|
14445
|
+
* Returns whether this field is set.
|
|
14446
|
+
* @return {boolean}
|
|
14447
|
+
*/
|
|
14448
|
+
proto.user.BeginUserTwoFaSetupResponse.prototype.hasExpiresInSeconds = function() {
|
|
14449
|
+
return jspb.Message.getField(this, 7) != null;
|
|
14450
|
+
};
|
|
14451
|
+
|
|
14452
|
+
|
|
14453
|
+
|
|
14454
|
+
|
|
14455
|
+
|
|
14456
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14457
|
+
/**
|
|
14458
|
+
* Creates an object representation of this proto.
|
|
14459
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14460
|
+
* Optional fields that are not set will be set to undefined.
|
|
14461
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14462
|
+
* For the list of reserved names please see:
|
|
14463
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14464
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14465
|
+
* JSPB instance for transitional soy proto support:
|
|
14466
|
+
* http://goto/soy-param-migration
|
|
14467
|
+
* @return {!Object}
|
|
14468
|
+
*/
|
|
14469
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
14470
|
+
return proto.user.ConfirmUserTwoFaActionRequest.toObject(opt_includeInstance, this);
|
|
14471
|
+
};
|
|
14472
|
+
|
|
14473
|
+
|
|
14474
|
+
/**
|
|
14475
|
+
* Static version of the {@see toObject} method.
|
|
14476
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14477
|
+
* the JSPB instance for transitional soy proto support:
|
|
14478
|
+
* http://goto/soy-param-migration
|
|
14479
|
+
* @param {!proto.user.ConfirmUserTwoFaActionRequest} msg The msg instance to transform.
|
|
14480
|
+
* @return {!Object}
|
|
14481
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14482
|
+
*/
|
|
14483
|
+
proto.user.ConfirmUserTwoFaActionRequest.toObject = function(includeInstance, msg) {
|
|
14484
|
+
var f, obj = {
|
|
14485
|
+
purpose: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
14486
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14487
|
+
tempToken: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14488
|
+
userId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
14489
|
+
userPublicId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
14490
|
+
metadata: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
14491
|
+
isAdmin: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
14492
|
+
userIp: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
14493
|
+
device: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
14494
|
+
country: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
14495
|
+
city: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
14496
|
+
};
|
|
14497
|
+
|
|
14498
|
+
if (includeInstance) {
|
|
14499
|
+
obj.$jspbMessageInstance = msg;
|
|
14500
|
+
}
|
|
14501
|
+
return obj;
|
|
14502
|
+
};
|
|
14503
|
+
}
|
|
14504
|
+
|
|
14505
|
+
|
|
14506
|
+
/**
|
|
14507
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14508
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14509
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest}
|
|
14510
|
+
*/
|
|
14511
|
+
proto.user.ConfirmUserTwoFaActionRequest.deserializeBinary = function(bytes) {
|
|
14512
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14513
|
+
var msg = new proto.user.ConfirmUserTwoFaActionRequest;
|
|
14514
|
+
return proto.user.ConfirmUserTwoFaActionRequest.deserializeBinaryFromReader(msg, reader);
|
|
14515
|
+
};
|
|
14516
|
+
|
|
14517
|
+
|
|
14518
|
+
/**
|
|
14519
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14520
|
+
* given reader into the given message object.
|
|
14521
|
+
* @param {!proto.user.ConfirmUserTwoFaActionRequest} msg The message object to deserialize into.
|
|
14522
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14523
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest}
|
|
14524
|
+
*/
|
|
14525
|
+
proto.user.ConfirmUserTwoFaActionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
14526
|
+
while (reader.nextField()) {
|
|
14527
|
+
if (reader.isEndGroup()) {
|
|
14528
|
+
break;
|
|
14529
|
+
}
|
|
14530
|
+
var field = reader.getFieldNumber();
|
|
14531
|
+
switch (field) {
|
|
14532
|
+
case 1:
|
|
14533
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14534
|
+
msg.setPurpose(value);
|
|
14535
|
+
break;
|
|
14536
|
+
case 2:
|
|
14537
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14538
|
+
msg.setCode(value);
|
|
14539
|
+
break;
|
|
14540
|
+
case 3:
|
|
14541
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14542
|
+
msg.setTempToken(value);
|
|
14543
|
+
break;
|
|
14544
|
+
case 4:
|
|
14545
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14546
|
+
msg.setUserId(value);
|
|
14547
|
+
break;
|
|
14548
|
+
case 5:
|
|
14549
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14550
|
+
msg.setUserPublicId(value);
|
|
14551
|
+
break;
|
|
14552
|
+
case 6:
|
|
14553
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14554
|
+
msg.setMetadata(value);
|
|
14555
|
+
break;
|
|
14556
|
+
case 7:
|
|
14557
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14558
|
+
msg.setIsAdmin(value);
|
|
14559
|
+
break;
|
|
14560
|
+
case 8:
|
|
14561
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14562
|
+
msg.setUserIp(value);
|
|
14563
|
+
break;
|
|
14564
|
+
case 9:
|
|
14565
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14566
|
+
msg.setDevice(value);
|
|
14567
|
+
break;
|
|
14568
|
+
case 10:
|
|
14569
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14570
|
+
msg.setCountry(value);
|
|
14571
|
+
break;
|
|
14572
|
+
case 11:
|
|
14573
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14574
|
+
msg.setCity(value);
|
|
14575
|
+
break;
|
|
14576
|
+
default:
|
|
14577
|
+
reader.skipField();
|
|
14578
|
+
break;
|
|
14579
|
+
}
|
|
14580
|
+
}
|
|
14581
|
+
return msg;
|
|
14582
|
+
};
|
|
14583
|
+
|
|
14584
|
+
|
|
14585
|
+
/**
|
|
14586
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14587
|
+
* @return {!Uint8Array}
|
|
14588
|
+
*/
|
|
14589
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.serializeBinary = function() {
|
|
14590
|
+
var writer = new jspb.BinaryWriter();
|
|
14591
|
+
proto.user.ConfirmUserTwoFaActionRequest.serializeBinaryToWriter(this, writer);
|
|
14592
|
+
return writer.getResultBuffer();
|
|
14593
|
+
};
|
|
14594
|
+
|
|
14595
|
+
|
|
14596
|
+
/**
|
|
14597
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
14598
|
+
* format), writing to the given BinaryWriter.
|
|
14599
|
+
* @param {!proto.user.ConfirmUserTwoFaActionRequest} message
|
|
14600
|
+
* @param {!jspb.BinaryWriter} writer
|
|
14601
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14602
|
+
*/
|
|
14603
|
+
proto.user.ConfirmUserTwoFaActionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
14604
|
+
var f = undefined;
|
|
14605
|
+
f = message.getPurpose();
|
|
14606
|
+
if (f.length > 0) {
|
|
14607
|
+
writer.writeString(
|
|
14608
|
+
1,
|
|
14609
|
+
f
|
|
14610
|
+
);
|
|
14611
|
+
}
|
|
14612
|
+
f = message.getCode();
|
|
14613
|
+
if (f.length > 0) {
|
|
14614
|
+
writer.writeString(
|
|
14615
|
+
2,
|
|
14616
|
+
f
|
|
14617
|
+
);
|
|
14618
|
+
}
|
|
14619
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
14620
|
+
if (f != null) {
|
|
14621
|
+
writer.writeString(
|
|
14622
|
+
3,
|
|
14623
|
+
f
|
|
14624
|
+
);
|
|
14625
|
+
}
|
|
14626
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
14627
|
+
if (f != null) {
|
|
14628
|
+
writer.writeInt32(
|
|
14629
|
+
4,
|
|
14630
|
+
f
|
|
14631
|
+
);
|
|
14632
|
+
}
|
|
14633
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
14634
|
+
if (f != null) {
|
|
14635
|
+
writer.writeString(
|
|
14636
|
+
5,
|
|
14637
|
+
f
|
|
14638
|
+
);
|
|
14639
|
+
}
|
|
14640
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
14641
|
+
if (f != null) {
|
|
14642
|
+
writer.writeString(
|
|
14643
|
+
6,
|
|
14644
|
+
f
|
|
14645
|
+
);
|
|
14646
|
+
}
|
|
14647
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
14648
|
+
if (f != null) {
|
|
14649
|
+
writer.writeInt32(
|
|
14650
|
+
7,
|
|
14651
|
+
f
|
|
14652
|
+
);
|
|
14653
|
+
}
|
|
14654
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
14655
|
+
if (f != null) {
|
|
14656
|
+
writer.writeString(
|
|
14657
|
+
8,
|
|
14658
|
+
f
|
|
14659
|
+
);
|
|
14660
|
+
}
|
|
14661
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
14662
|
+
if (f != null) {
|
|
14663
|
+
writer.writeString(
|
|
14664
|
+
9,
|
|
14665
|
+
f
|
|
14666
|
+
);
|
|
14667
|
+
}
|
|
14668
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
14669
|
+
if (f != null) {
|
|
14670
|
+
writer.writeString(
|
|
14671
|
+
10,
|
|
14672
|
+
f
|
|
14673
|
+
);
|
|
14674
|
+
}
|
|
14675
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
14676
|
+
if (f != null) {
|
|
14677
|
+
writer.writeString(
|
|
14678
|
+
11,
|
|
14679
|
+
f
|
|
14680
|
+
);
|
|
14681
|
+
}
|
|
14682
|
+
};
|
|
14683
|
+
|
|
14684
|
+
|
|
14685
|
+
/**
|
|
14686
|
+
* optional string purpose = 1;
|
|
14687
|
+
* @return {string}
|
|
14688
|
+
*/
|
|
14689
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getPurpose = function() {
|
|
14690
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
14691
|
+
};
|
|
14692
|
+
|
|
14693
|
+
|
|
14694
|
+
/**
|
|
14695
|
+
* @param {string} value
|
|
14696
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14697
|
+
*/
|
|
14698
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setPurpose = function(value) {
|
|
14699
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
14700
|
+
};
|
|
14701
|
+
|
|
14702
|
+
|
|
14703
|
+
/**
|
|
14704
|
+
* optional string code = 2;
|
|
14705
|
+
* @return {string}
|
|
14706
|
+
*/
|
|
14707
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getCode = function() {
|
|
14708
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
14709
|
+
};
|
|
14710
|
+
|
|
14711
|
+
|
|
14712
|
+
/**
|
|
14713
|
+
* @param {string} value
|
|
14714
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14715
|
+
*/
|
|
14716
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setCode = function(value) {
|
|
14717
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
14718
|
+
};
|
|
14719
|
+
|
|
14720
|
+
|
|
14721
|
+
/**
|
|
14722
|
+
* optional string temp_token = 3;
|
|
14723
|
+
* @return {string}
|
|
14724
|
+
*/
|
|
14725
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getTempToken = function() {
|
|
14726
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
14727
|
+
};
|
|
14728
|
+
|
|
14729
|
+
|
|
14730
|
+
/**
|
|
14731
|
+
* @param {string} value
|
|
14732
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14733
|
+
*/
|
|
14734
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setTempToken = function(value) {
|
|
14735
|
+
return jspb.Message.setField(this, 3, value);
|
|
14736
|
+
};
|
|
14737
|
+
|
|
14738
|
+
|
|
14739
|
+
/**
|
|
14740
|
+
* Clears the field making it undefined.
|
|
14741
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14742
|
+
*/
|
|
14743
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearTempToken = function() {
|
|
14744
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
14745
|
+
};
|
|
14746
|
+
|
|
14747
|
+
|
|
14748
|
+
/**
|
|
14749
|
+
* Returns whether this field is set.
|
|
14750
|
+
* @return {boolean}
|
|
14751
|
+
*/
|
|
14752
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasTempToken = function() {
|
|
14753
|
+
return jspb.Message.getField(this, 3) != null;
|
|
14754
|
+
};
|
|
14755
|
+
|
|
14756
|
+
|
|
14757
|
+
/**
|
|
14758
|
+
* optional int32 user_id = 4;
|
|
14759
|
+
* @return {number}
|
|
14760
|
+
*/
|
|
14761
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getUserId = function() {
|
|
14762
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
14763
|
+
};
|
|
14764
|
+
|
|
14765
|
+
|
|
14766
|
+
/**
|
|
14767
|
+
* @param {number} value
|
|
14768
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14769
|
+
*/
|
|
14770
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setUserId = function(value) {
|
|
14771
|
+
return jspb.Message.setField(this, 4, value);
|
|
14772
|
+
};
|
|
14773
|
+
|
|
14774
|
+
|
|
14775
|
+
/**
|
|
14776
|
+
* Clears the field making it undefined.
|
|
14777
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14778
|
+
*/
|
|
14779
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearUserId = function() {
|
|
14780
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
14781
|
+
};
|
|
14782
|
+
|
|
14783
|
+
|
|
14784
|
+
/**
|
|
14785
|
+
* Returns whether this field is set.
|
|
14786
|
+
* @return {boolean}
|
|
14787
|
+
*/
|
|
14788
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasUserId = function() {
|
|
14789
|
+
return jspb.Message.getField(this, 4) != null;
|
|
14790
|
+
};
|
|
14791
|
+
|
|
14792
|
+
|
|
14793
|
+
/**
|
|
14794
|
+
* optional string user_public_id = 5;
|
|
14795
|
+
* @return {string}
|
|
14796
|
+
*/
|
|
14797
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getUserPublicId = function() {
|
|
14798
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
14799
|
+
};
|
|
14800
|
+
|
|
14801
|
+
|
|
14802
|
+
/**
|
|
14803
|
+
* @param {string} value
|
|
14804
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14805
|
+
*/
|
|
14806
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setUserPublicId = function(value) {
|
|
14807
|
+
return jspb.Message.setField(this, 5, value);
|
|
14808
|
+
};
|
|
14809
|
+
|
|
14810
|
+
|
|
14811
|
+
/**
|
|
14812
|
+
* Clears the field making it undefined.
|
|
14813
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14814
|
+
*/
|
|
14815
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearUserPublicId = function() {
|
|
14816
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
14817
|
+
};
|
|
14818
|
+
|
|
14819
|
+
|
|
14820
|
+
/**
|
|
14821
|
+
* Returns whether this field is set.
|
|
14822
|
+
* @return {boolean}
|
|
14823
|
+
*/
|
|
14824
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasUserPublicId = function() {
|
|
14825
|
+
return jspb.Message.getField(this, 5) != null;
|
|
14826
|
+
};
|
|
14827
|
+
|
|
14828
|
+
|
|
14829
|
+
/**
|
|
14830
|
+
* optional string metadata = 6;
|
|
14831
|
+
* @return {string}
|
|
14832
|
+
*/
|
|
14833
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getMetadata = function() {
|
|
14834
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
14835
|
+
};
|
|
14836
|
+
|
|
14837
|
+
|
|
14838
|
+
/**
|
|
14839
|
+
* @param {string} value
|
|
14840
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14841
|
+
*/
|
|
14842
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setMetadata = function(value) {
|
|
14843
|
+
return jspb.Message.setField(this, 6, value);
|
|
14844
|
+
};
|
|
14845
|
+
|
|
14846
|
+
|
|
14847
|
+
/**
|
|
14848
|
+
* Clears the field making it undefined.
|
|
14849
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14850
|
+
*/
|
|
14851
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearMetadata = function() {
|
|
14852
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
14853
|
+
};
|
|
14854
|
+
|
|
14855
|
+
|
|
14856
|
+
/**
|
|
14857
|
+
* Returns whether this field is set.
|
|
14858
|
+
* @return {boolean}
|
|
14859
|
+
*/
|
|
14860
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasMetadata = function() {
|
|
14861
|
+
return jspb.Message.getField(this, 6) != null;
|
|
14862
|
+
};
|
|
14863
|
+
|
|
14864
|
+
|
|
14865
|
+
/**
|
|
14866
|
+
* optional int32 is_admin = 7;
|
|
14867
|
+
* @return {number}
|
|
14868
|
+
*/
|
|
14869
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getIsAdmin = function() {
|
|
14870
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
14871
|
+
};
|
|
14872
|
+
|
|
14873
|
+
|
|
14874
|
+
/**
|
|
14875
|
+
* @param {number} value
|
|
14876
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14877
|
+
*/
|
|
14878
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setIsAdmin = function(value) {
|
|
14879
|
+
return jspb.Message.setField(this, 7, value);
|
|
14880
|
+
};
|
|
14881
|
+
|
|
14882
|
+
|
|
14883
|
+
/**
|
|
14884
|
+
* Clears the field making it undefined.
|
|
14885
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14886
|
+
*/
|
|
14887
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearIsAdmin = function() {
|
|
14888
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
14889
|
+
};
|
|
14890
|
+
|
|
14891
|
+
|
|
14892
|
+
/**
|
|
14893
|
+
* Returns whether this field is set.
|
|
14894
|
+
* @return {boolean}
|
|
14895
|
+
*/
|
|
14896
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasIsAdmin = function() {
|
|
14897
|
+
return jspb.Message.getField(this, 7) != null;
|
|
14898
|
+
};
|
|
14899
|
+
|
|
14900
|
+
|
|
14901
|
+
/**
|
|
14902
|
+
* optional string user_ip = 8;
|
|
14903
|
+
* @return {string}
|
|
14904
|
+
*/
|
|
14905
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getUserIp = function() {
|
|
14906
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
14907
|
+
};
|
|
14908
|
+
|
|
14909
|
+
|
|
14910
|
+
/**
|
|
14911
|
+
* @param {string} value
|
|
14912
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14913
|
+
*/
|
|
14914
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setUserIp = function(value) {
|
|
14915
|
+
return jspb.Message.setField(this, 8, value);
|
|
14916
|
+
};
|
|
14917
|
+
|
|
14918
|
+
|
|
14919
|
+
/**
|
|
14920
|
+
* Clears the field making it undefined.
|
|
14921
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14922
|
+
*/
|
|
14923
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearUserIp = function() {
|
|
14924
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
14925
|
+
};
|
|
14926
|
+
|
|
14927
|
+
|
|
14928
|
+
/**
|
|
14929
|
+
* Returns whether this field is set.
|
|
14930
|
+
* @return {boolean}
|
|
14931
|
+
*/
|
|
14932
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasUserIp = function() {
|
|
14933
|
+
return jspb.Message.getField(this, 8) != null;
|
|
14934
|
+
};
|
|
14935
|
+
|
|
14936
|
+
|
|
14937
|
+
/**
|
|
14938
|
+
* optional string device = 9;
|
|
14939
|
+
* @return {string}
|
|
14940
|
+
*/
|
|
14941
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getDevice = function() {
|
|
14942
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
14943
|
+
};
|
|
14944
|
+
|
|
14945
|
+
|
|
14946
|
+
/**
|
|
14947
|
+
* @param {string} value
|
|
14948
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14949
|
+
*/
|
|
14950
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setDevice = function(value) {
|
|
14951
|
+
return jspb.Message.setField(this, 9, value);
|
|
14952
|
+
};
|
|
14953
|
+
|
|
14954
|
+
|
|
14955
|
+
/**
|
|
14956
|
+
* Clears the field making it undefined.
|
|
14957
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14958
|
+
*/
|
|
14959
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearDevice = function() {
|
|
14960
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
14961
|
+
};
|
|
14962
|
+
|
|
14963
|
+
|
|
14964
|
+
/**
|
|
14965
|
+
* Returns whether this field is set.
|
|
14966
|
+
* @return {boolean}
|
|
14967
|
+
*/
|
|
14968
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasDevice = function() {
|
|
14969
|
+
return jspb.Message.getField(this, 9) != null;
|
|
14970
|
+
};
|
|
14971
|
+
|
|
14972
|
+
|
|
14973
|
+
/**
|
|
14974
|
+
* optional string country = 10;
|
|
14975
|
+
* @return {string}
|
|
14976
|
+
*/
|
|
14977
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getCountry = function() {
|
|
14978
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
14979
|
+
};
|
|
14980
|
+
|
|
14981
|
+
|
|
14982
|
+
/**
|
|
14983
|
+
* @param {string} value
|
|
14984
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14985
|
+
*/
|
|
14986
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setCountry = function(value) {
|
|
14987
|
+
return jspb.Message.setField(this, 10, value);
|
|
14988
|
+
};
|
|
14989
|
+
|
|
14990
|
+
|
|
14991
|
+
/**
|
|
14992
|
+
* Clears the field making it undefined.
|
|
14993
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
14994
|
+
*/
|
|
14995
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearCountry = function() {
|
|
14996
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
14997
|
+
};
|
|
14998
|
+
|
|
14999
|
+
|
|
15000
|
+
/**
|
|
15001
|
+
* Returns whether this field is set.
|
|
15002
|
+
* @return {boolean}
|
|
15003
|
+
*/
|
|
15004
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasCountry = function() {
|
|
15005
|
+
return jspb.Message.getField(this, 10) != null;
|
|
15006
|
+
};
|
|
15007
|
+
|
|
15008
|
+
|
|
15009
|
+
/**
|
|
15010
|
+
* optional string city = 11;
|
|
15011
|
+
* @return {string}
|
|
15012
|
+
*/
|
|
15013
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.getCity = function() {
|
|
15014
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
15015
|
+
};
|
|
15016
|
+
|
|
15017
|
+
|
|
15018
|
+
/**
|
|
15019
|
+
* @param {string} value
|
|
15020
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
15021
|
+
*/
|
|
15022
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.setCity = function(value) {
|
|
15023
|
+
return jspb.Message.setField(this, 11, value);
|
|
15024
|
+
};
|
|
15025
|
+
|
|
15026
|
+
|
|
15027
|
+
/**
|
|
15028
|
+
* Clears the field making it undefined.
|
|
15029
|
+
* @return {!proto.user.ConfirmUserTwoFaActionRequest} returns this
|
|
15030
|
+
*/
|
|
15031
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.clearCity = function() {
|
|
15032
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
15033
|
+
};
|
|
15034
|
+
|
|
15035
|
+
|
|
15036
|
+
/**
|
|
15037
|
+
* Returns whether this field is set.
|
|
15038
|
+
* @return {boolean}
|
|
15039
|
+
*/
|
|
15040
|
+
proto.user.ConfirmUserTwoFaActionRequest.prototype.hasCity = function() {
|
|
15041
|
+
return jspb.Message.getField(this, 11) != null;
|
|
15042
|
+
};
|
|
15043
|
+
|
|
15044
|
+
|
|
15045
|
+
|
|
15046
|
+
|
|
15047
|
+
|
|
15048
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15049
|
+
/**
|
|
15050
|
+
* Creates an object representation of this proto.
|
|
15051
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15052
|
+
* Optional fields that are not set will be set to undefined.
|
|
15053
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15054
|
+
* For the list of reserved names please see:
|
|
15055
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15056
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15057
|
+
* JSPB instance for transitional soy proto support:
|
|
15058
|
+
* http://goto/soy-param-migration
|
|
15059
|
+
* @return {!Object}
|
|
15060
|
+
*/
|
|
15061
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
15062
|
+
return proto.user.ConfirmUserTwoFaActionResponse.toObject(opt_includeInstance, this);
|
|
15063
|
+
};
|
|
15064
|
+
|
|
15065
|
+
|
|
15066
|
+
/**
|
|
15067
|
+
* Static version of the {@see toObject} method.
|
|
15068
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15069
|
+
* the JSPB instance for transitional soy proto support:
|
|
15070
|
+
* http://goto/soy-param-migration
|
|
15071
|
+
* @param {!proto.user.ConfirmUserTwoFaActionResponse} msg The msg instance to transform.
|
|
15072
|
+
* @return {!Object}
|
|
15073
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15074
|
+
*/
|
|
15075
|
+
proto.user.ConfirmUserTwoFaActionResponse.toObject = function(includeInstance, msg) {
|
|
15076
|
+
var f, obj = {
|
|
15077
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
15078
|
+
purpose: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
15079
|
+
twoFaEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
15080
|
+
twoFaStatus: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15081
|
+
loggedIn: (f = msg.getLoggedIn()) && proto.user.LoggedInResponse.toObject(includeInstance, f),
|
|
15082
|
+
metadata: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
15083
|
+
};
|
|
15084
|
+
|
|
15085
|
+
if (includeInstance) {
|
|
15086
|
+
obj.$jspbMessageInstance = msg;
|
|
15087
|
+
}
|
|
15088
|
+
return obj;
|
|
15089
|
+
};
|
|
15090
|
+
}
|
|
15091
|
+
|
|
15092
|
+
|
|
15093
|
+
/**
|
|
15094
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15095
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15096
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse}
|
|
15097
|
+
*/
|
|
15098
|
+
proto.user.ConfirmUserTwoFaActionResponse.deserializeBinary = function(bytes) {
|
|
15099
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15100
|
+
var msg = new proto.user.ConfirmUserTwoFaActionResponse;
|
|
15101
|
+
return proto.user.ConfirmUserTwoFaActionResponse.deserializeBinaryFromReader(msg, reader);
|
|
15102
|
+
};
|
|
15103
|
+
|
|
15104
|
+
|
|
15105
|
+
/**
|
|
15106
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15107
|
+
* given reader into the given message object.
|
|
15108
|
+
* @param {!proto.user.ConfirmUserTwoFaActionResponse} msg The message object to deserialize into.
|
|
15109
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15110
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse}
|
|
15111
|
+
*/
|
|
15112
|
+
proto.user.ConfirmUserTwoFaActionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
15113
|
+
while (reader.nextField()) {
|
|
15114
|
+
if (reader.isEndGroup()) {
|
|
15115
|
+
break;
|
|
15116
|
+
}
|
|
15117
|
+
var field = reader.getFieldNumber();
|
|
15118
|
+
switch (field) {
|
|
15119
|
+
case 1:
|
|
15120
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15121
|
+
msg.setStatus(value);
|
|
15122
|
+
break;
|
|
15123
|
+
case 2:
|
|
15124
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15125
|
+
msg.setPurpose(value);
|
|
15126
|
+
break;
|
|
15127
|
+
case 3:
|
|
15128
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
15129
|
+
msg.setTwoFaEnabled(value);
|
|
15130
|
+
break;
|
|
15131
|
+
case 4:
|
|
15132
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15133
|
+
msg.setTwoFaStatus(value);
|
|
15134
|
+
break;
|
|
15135
|
+
case 5:
|
|
15136
|
+
var value = new proto.user.LoggedInResponse;
|
|
15137
|
+
reader.readMessage(value,proto.user.LoggedInResponse.deserializeBinaryFromReader);
|
|
15138
|
+
msg.setLoggedIn(value);
|
|
15139
|
+
break;
|
|
15140
|
+
case 6:
|
|
15141
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15142
|
+
msg.setMetadata(value);
|
|
15143
|
+
break;
|
|
15144
|
+
default:
|
|
15145
|
+
reader.skipField();
|
|
15146
|
+
break;
|
|
15147
|
+
}
|
|
15148
|
+
}
|
|
15149
|
+
return msg;
|
|
15150
|
+
};
|
|
15151
|
+
|
|
15152
|
+
|
|
15153
|
+
/**
|
|
15154
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15155
|
+
* @return {!Uint8Array}
|
|
15156
|
+
*/
|
|
15157
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.serializeBinary = function() {
|
|
15158
|
+
var writer = new jspb.BinaryWriter();
|
|
15159
|
+
proto.user.ConfirmUserTwoFaActionResponse.serializeBinaryToWriter(this, writer);
|
|
15160
|
+
return writer.getResultBuffer();
|
|
15161
|
+
};
|
|
15162
|
+
|
|
15163
|
+
|
|
15164
|
+
/**
|
|
15165
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15166
|
+
* format), writing to the given BinaryWriter.
|
|
15167
|
+
* @param {!proto.user.ConfirmUserTwoFaActionResponse} message
|
|
15168
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15169
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15170
|
+
*/
|
|
15171
|
+
proto.user.ConfirmUserTwoFaActionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
15172
|
+
var f = undefined;
|
|
15173
|
+
f = message.getStatus();
|
|
15174
|
+
if (f.length > 0) {
|
|
15175
|
+
writer.writeString(
|
|
15176
|
+
1,
|
|
15177
|
+
f
|
|
15178
|
+
);
|
|
15179
|
+
}
|
|
15180
|
+
f = message.getPurpose();
|
|
15181
|
+
if (f.length > 0) {
|
|
15182
|
+
writer.writeString(
|
|
15183
|
+
2,
|
|
15184
|
+
f
|
|
15185
|
+
);
|
|
15186
|
+
}
|
|
15187
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
|
15188
|
+
if (f != null) {
|
|
15189
|
+
writer.writeBool(
|
|
15190
|
+
3,
|
|
15191
|
+
f
|
|
15192
|
+
);
|
|
15193
|
+
}
|
|
15194
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
15195
|
+
if (f != null) {
|
|
15196
|
+
writer.writeString(
|
|
15197
|
+
4,
|
|
15198
|
+
f
|
|
15199
|
+
);
|
|
15200
|
+
}
|
|
15201
|
+
f = message.getLoggedIn();
|
|
15202
|
+
if (f != null) {
|
|
15203
|
+
writer.writeMessage(
|
|
15204
|
+
5,
|
|
15205
|
+
f,
|
|
15206
|
+
proto.user.LoggedInResponse.serializeBinaryToWriter
|
|
15207
|
+
);
|
|
15208
|
+
}
|
|
15209
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
15210
|
+
if (f != null) {
|
|
15211
|
+
writer.writeString(
|
|
15212
|
+
6,
|
|
15213
|
+
f
|
|
15214
|
+
);
|
|
15215
|
+
}
|
|
15216
|
+
};
|
|
15217
|
+
|
|
15218
|
+
|
|
15219
|
+
/**
|
|
15220
|
+
* optional string status = 1;
|
|
15221
|
+
* @return {string}
|
|
15222
|
+
*/
|
|
15223
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.getStatus = function() {
|
|
15224
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
15225
|
+
};
|
|
15226
|
+
|
|
15227
|
+
|
|
15228
|
+
/**
|
|
15229
|
+
* @param {string} value
|
|
15230
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15231
|
+
*/
|
|
15232
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.setStatus = function(value) {
|
|
15233
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
15234
|
+
};
|
|
15235
|
+
|
|
15236
|
+
|
|
15237
|
+
/**
|
|
15238
|
+
* optional string purpose = 2;
|
|
15239
|
+
* @return {string}
|
|
15240
|
+
*/
|
|
15241
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.getPurpose = function() {
|
|
15242
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15243
|
+
};
|
|
15244
|
+
|
|
15245
|
+
|
|
15246
|
+
/**
|
|
15247
|
+
* @param {string} value
|
|
15248
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15249
|
+
*/
|
|
15250
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.setPurpose = function(value) {
|
|
15251
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
15252
|
+
};
|
|
15253
|
+
|
|
15254
|
+
|
|
15255
|
+
/**
|
|
15256
|
+
* optional bool two_fa_enabled = 3;
|
|
15257
|
+
* @return {boolean}
|
|
15258
|
+
*/
|
|
15259
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.getTwoFaEnabled = function() {
|
|
15260
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
15261
|
+
};
|
|
15262
|
+
|
|
15263
|
+
|
|
15264
|
+
/**
|
|
15265
|
+
* @param {boolean} value
|
|
15266
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15267
|
+
*/
|
|
15268
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.setTwoFaEnabled = function(value) {
|
|
15269
|
+
return jspb.Message.setField(this, 3, value);
|
|
15270
|
+
};
|
|
15271
|
+
|
|
15272
|
+
|
|
15273
|
+
/**
|
|
15274
|
+
* Clears the field making it undefined.
|
|
15275
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15276
|
+
*/
|
|
15277
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.clearTwoFaEnabled = function() {
|
|
15278
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
15279
|
+
};
|
|
15280
|
+
|
|
15281
|
+
|
|
15282
|
+
/**
|
|
15283
|
+
* Returns whether this field is set.
|
|
15284
|
+
* @return {boolean}
|
|
15285
|
+
*/
|
|
15286
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.hasTwoFaEnabled = function() {
|
|
15287
|
+
return jspb.Message.getField(this, 3) != null;
|
|
15288
|
+
};
|
|
15289
|
+
|
|
15290
|
+
|
|
15291
|
+
/**
|
|
15292
|
+
* optional string two_fa_status = 4;
|
|
15293
|
+
* @return {string}
|
|
15294
|
+
*/
|
|
15295
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.getTwoFaStatus = function() {
|
|
15296
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15297
|
+
};
|
|
15298
|
+
|
|
15299
|
+
|
|
15300
|
+
/**
|
|
15301
|
+
* @param {string} value
|
|
15302
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15303
|
+
*/
|
|
15304
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.setTwoFaStatus = function(value) {
|
|
15305
|
+
return jspb.Message.setField(this, 4, value);
|
|
15306
|
+
};
|
|
15307
|
+
|
|
15308
|
+
|
|
15309
|
+
/**
|
|
15310
|
+
* Clears the field making it undefined.
|
|
15311
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15312
|
+
*/
|
|
15313
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.clearTwoFaStatus = function() {
|
|
15314
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
15315
|
+
};
|
|
15316
|
+
|
|
15317
|
+
|
|
15318
|
+
/**
|
|
15319
|
+
* Returns whether this field is set.
|
|
15320
|
+
* @return {boolean}
|
|
15321
|
+
*/
|
|
15322
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.hasTwoFaStatus = function() {
|
|
15323
|
+
return jspb.Message.getField(this, 4) != null;
|
|
15324
|
+
};
|
|
15325
|
+
|
|
15326
|
+
|
|
15327
|
+
/**
|
|
15328
|
+
* optional LoggedInResponse logged_in = 5;
|
|
15329
|
+
* @return {?proto.user.LoggedInResponse}
|
|
15330
|
+
*/
|
|
15331
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.getLoggedIn = function() {
|
|
15332
|
+
return /** @type{?proto.user.LoggedInResponse} */ (
|
|
15333
|
+
jspb.Message.getWrapperField(this, proto.user.LoggedInResponse, 5));
|
|
15334
|
+
};
|
|
15335
|
+
|
|
15336
|
+
|
|
15337
|
+
/**
|
|
15338
|
+
* @param {?proto.user.LoggedInResponse|undefined} value
|
|
15339
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15340
|
+
*/
|
|
15341
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.setLoggedIn = function(value) {
|
|
15342
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
15343
|
+
};
|
|
15344
|
+
|
|
15345
|
+
|
|
15346
|
+
/**
|
|
15347
|
+
* Clears the message field making it undefined.
|
|
15348
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15349
|
+
*/
|
|
15350
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.clearLoggedIn = function() {
|
|
15351
|
+
return this.setLoggedIn(undefined);
|
|
15352
|
+
};
|
|
15353
|
+
|
|
15354
|
+
|
|
15355
|
+
/**
|
|
15356
|
+
* Returns whether this field is set.
|
|
15357
|
+
* @return {boolean}
|
|
15358
|
+
*/
|
|
15359
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.hasLoggedIn = function() {
|
|
15360
|
+
return jspb.Message.getField(this, 5) != null;
|
|
15361
|
+
};
|
|
15362
|
+
|
|
15363
|
+
|
|
15364
|
+
/**
|
|
15365
|
+
* optional string metadata = 6;
|
|
15366
|
+
* @return {string}
|
|
15367
|
+
*/
|
|
15368
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.getMetadata = function() {
|
|
15369
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15370
|
+
};
|
|
15371
|
+
|
|
15372
|
+
|
|
15373
|
+
/**
|
|
15374
|
+
* @param {string} value
|
|
15375
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15376
|
+
*/
|
|
15377
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.setMetadata = function(value) {
|
|
15378
|
+
return jspb.Message.setField(this, 6, value);
|
|
15379
|
+
};
|
|
15380
|
+
|
|
15381
|
+
|
|
15382
|
+
/**
|
|
15383
|
+
* Clears the field making it undefined.
|
|
15384
|
+
* @return {!proto.user.ConfirmUserTwoFaActionResponse} returns this
|
|
15385
|
+
*/
|
|
15386
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.clearMetadata = function() {
|
|
15387
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
15388
|
+
};
|
|
15389
|
+
|
|
15390
|
+
|
|
15391
|
+
/**
|
|
15392
|
+
* Returns whether this field is set.
|
|
15393
|
+
* @return {boolean}
|
|
15394
|
+
*/
|
|
15395
|
+
proto.user.ConfirmUserTwoFaActionResponse.prototype.hasMetadata = function() {
|
|
15396
|
+
return jspb.Message.getField(this, 6) != null;
|
|
15397
|
+
};
|
|
15398
|
+
|
|
15399
|
+
|
|
15400
|
+
|
|
15401
|
+
|
|
15402
|
+
|
|
15403
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15404
|
+
/**
|
|
15405
|
+
* Creates an object representation of this proto.
|
|
15406
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15407
|
+
* Optional fields that are not set will be set to undefined.
|
|
15408
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15409
|
+
* For the list of reserved names please see:
|
|
15410
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15411
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15412
|
+
* JSPB instance for transitional soy proto support:
|
|
15413
|
+
* http://goto/soy-param-migration
|
|
15414
|
+
* @return {!Object}
|
|
15415
|
+
*/
|
|
15416
|
+
proto.user.UserDataRequest.prototype.toObject = function(opt_includeInstance) {
|
|
15417
|
+
return proto.user.UserDataRequest.toObject(opt_includeInstance, this);
|
|
15418
|
+
};
|
|
15419
|
+
|
|
15420
|
+
|
|
15421
|
+
/**
|
|
15422
|
+
* Static version of the {@see toObject} method.
|
|
15423
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15424
|
+
* the JSPB instance for transitional soy proto support:
|
|
15425
|
+
* http://goto/soy-param-migration
|
|
15426
|
+
* @param {!proto.user.UserDataRequest} msg The msg instance to transform.
|
|
15427
|
+
* @return {!Object}
|
|
15428
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15429
|
+
*/
|
|
15430
|
+
proto.user.UserDataRequest.toObject = function(includeInstance, msg) {
|
|
15431
|
+
var f, obj = {
|
|
15432
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
15433
|
+
requestedArea: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
15434
|
+
publicId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
15435
|
+
};
|
|
15436
|
+
|
|
15437
|
+
if (includeInstance) {
|
|
15438
|
+
obj.$jspbMessageInstance = msg;
|
|
15439
|
+
}
|
|
15440
|
+
return obj;
|
|
15441
|
+
};
|
|
15442
|
+
}
|
|
15443
|
+
|
|
15444
|
+
|
|
15445
|
+
/**
|
|
15446
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15447
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15448
|
+
* @return {!proto.user.UserDataRequest}
|
|
15449
|
+
*/
|
|
15450
|
+
proto.user.UserDataRequest.deserializeBinary = function(bytes) {
|
|
15451
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15452
|
+
var msg = new proto.user.UserDataRequest;
|
|
15453
|
+
return proto.user.UserDataRequest.deserializeBinaryFromReader(msg, reader);
|
|
15454
|
+
};
|
|
15455
|
+
|
|
15456
|
+
|
|
15457
|
+
/**
|
|
15458
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15459
|
+
* given reader into the given message object.
|
|
15460
|
+
* @param {!proto.user.UserDataRequest} msg The message object to deserialize into.
|
|
15461
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15462
|
+
* @return {!proto.user.UserDataRequest}
|
|
15463
|
+
*/
|
|
15464
|
+
proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15465
|
+
while (reader.nextField()) {
|
|
15466
|
+
if (reader.isEndGroup()) {
|
|
15467
|
+
break;
|
|
15468
|
+
}
|
|
15469
|
+
var field = reader.getFieldNumber();
|
|
15470
|
+
switch (field) {
|
|
15471
|
+
case 1:
|
|
15472
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
15473
|
+
msg.setId(value);
|
|
15474
|
+
break;
|
|
15475
|
+
case 2:
|
|
15476
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15477
|
+
msg.setRequestedArea(value);
|
|
15478
|
+
break;
|
|
15479
|
+
case 3:
|
|
15480
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15481
|
+
msg.setPublicId(value);
|
|
15482
|
+
break;
|
|
15483
|
+
default:
|
|
15484
|
+
reader.skipField();
|
|
15485
|
+
break;
|
|
15486
|
+
}
|
|
15487
|
+
}
|
|
15488
|
+
return msg;
|
|
15489
|
+
};
|
|
15490
|
+
|
|
15491
|
+
|
|
15492
|
+
/**
|
|
15493
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15494
|
+
* @return {!Uint8Array}
|
|
15495
|
+
*/
|
|
15496
|
+
proto.user.UserDataRequest.prototype.serializeBinary = function() {
|
|
15497
|
+
var writer = new jspb.BinaryWriter();
|
|
15498
|
+
proto.user.UserDataRequest.serializeBinaryToWriter(this, writer);
|
|
15499
|
+
return writer.getResultBuffer();
|
|
15500
|
+
};
|
|
15501
|
+
|
|
15502
|
+
|
|
15503
|
+
/**
|
|
15504
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15505
|
+
* format), writing to the given BinaryWriter.
|
|
15506
|
+
* @param {!proto.user.UserDataRequest} message
|
|
15507
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15508
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15509
|
+
*/
|
|
15510
|
+
proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15511
|
+
var f = undefined;
|
|
15512
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
15513
|
+
if (f != null) {
|
|
15514
|
+
writer.writeInt32(
|
|
15515
|
+
1,
|
|
15516
|
+
f
|
|
15517
|
+
);
|
|
15518
|
+
}
|
|
15519
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
15520
|
+
if (f != null) {
|
|
15521
|
+
writer.writeString(
|
|
15522
|
+
2,
|
|
15523
|
+
f
|
|
15524
|
+
);
|
|
15525
|
+
}
|
|
15526
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
15527
|
+
if (f != null) {
|
|
15528
|
+
writer.writeString(
|
|
15529
|
+
3,
|
|
15530
|
+
f
|
|
15531
|
+
);
|
|
15532
|
+
}
|
|
15533
|
+
};
|
|
15534
|
+
|
|
15535
|
+
|
|
15536
|
+
/**
|
|
15537
|
+
* optional int32 id = 1;
|
|
15538
|
+
* @return {number}
|
|
15539
|
+
*/
|
|
15540
|
+
proto.user.UserDataRequest.prototype.getId = function() {
|
|
15541
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
15542
|
+
};
|
|
15543
|
+
|
|
15544
|
+
|
|
15545
|
+
/**
|
|
15546
|
+
* @param {number} value
|
|
15547
|
+
* @return {!proto.user.UserDataRequest} returns this
|
|
15548
|
+
*/
|
|
15549
|
+
proto.user.UserDataRequest.prototype.setId = function(value) {
|
|
15550
|
+
return jspb.Message.setField(this, 1, value);
|
|
15551
|
+
};
|
|
15552
|
+
|
|
15553
|
+
|
|
15554
|
+
/**
|
|
15555
|
+
* Clears the field making it undefined.
|
|
15556
|
+
* @return {!proto.user.UserDataRequest} returns this
|
|
15557
|
+
*/
|
|
15558
|
+
proto.user.UserDataRequest.prototype.clearId = function() {
|
|
15559
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
15560
|
+
};
|
|
15561
|
+
|
|
15562
|
+
|
|
15563
|
+
/**
|
|
15564
|
+
* Returns whether this field is set.
|
|
15565
|
+
* @return {boolean}
|
|
15566
|
+
*/
|
|
15567
|
+
proto.user.UserDataRequest.prototype.hasId = function() {
|
|
15568
|
+
return jspb.Message.getField(this, 1) != null;
|
|
15569
|
+
};
|
|
15570
|
+
|
|
15571
|
+
|
|
15572
|
+
/**
|
|
15573
|
+
* optional string requested_area = 2;
|
|
15574
|
+
* @return {string}
|
|
15575
|
+
*/
|
|
15576
|
+
proto.user.UserDataRequest.prototype.getRequestedArea = function() {
|
|
15577
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15578
|
+
};
|
|
15579
|
+
|
|
15580
|
+
|
|
15581
|
+
/**
|
|
15582
|
+
* @param {string} value
|
|
15583
|
+
* @return {!proto.user.UserDataRequest} returns this
|
|
15584
|
+
*/
|
|
15585
|
+
proto.user.UserDataRequest.prototype.setRequestedArea = function(value) {
|
|
15586
|
+
return jspb.Message.setField(this, 2, value);
|
|
15587
|
+
};
|
|
15588
|
+
|
|
15589
|
+
|
|
15590
|
+
/**
|
|
15591
|
+
* Clears the field making it undefined.
|
|
15592
|
+
* @return {!proto.user.UserDataRequest} returns this
|
|
15593
|
+
*/
|
|
15594
|
+
proto.user.UserDataRequest.prototype.clearRequestedArea = function() {
|
|
15595
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
15596
|
+
};
|
|
15597
|
+
|
|
15598
|
+
|
|
15599
|
+
/**
|
|
15600
|
+
* Returns whether this field is set.
|
|
15601
|
+
* @return {boolean}
|
|
15602
|
+
*/
|
|
15603
|
+
proto.user.UserDataRequest.prototype.hasRequestedArea = function() {
|
|
15604
|
+
return jspb.Message.getField(this, 2) != null;
|
|
15605
|
+
};
|
|
15606
|
+
|
|
15607
|
+
|
|
15608
|
+
/**
|
|
15609
|
+
* optional string public_id = 3;
|
|
13727
15610
|
* @return {string}
|
|
13728
15611
|
*/
|
|
13729
15612
|
proto.user.UserDataRequest.prototype.getPublicId = function() {
|
|
@@ -18030,7 +19913,8 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
|
|
|
18030
19913
|
middleName: jspb.Message.getFieldWithDefault(msg, 48, ""),
|
|
18031
19914
|
street: jspb.Message.getFieldWithDefault(msg, 49, ""),
|
|
18032
19915
|
house: jspb.Message.getFieldWithDefault(msg, 50, ""),
|
|
18033
|
-
apartment: jspb.Message.getFieldWithDefault(msg, 51, "")
|
|
19916
|
+
apartment: jspb.Message.getFieldWithDefault(msg, 51, ""),
|
|
19917
|
+
twoFaEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 52, false)
|
|
18034
19918
|
};
|
|
18035
19919
|
|
|
18036
19920
|
if (includeInstance) {
|
|
@@ -18272,6 +20156,10 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
|
18272
20156
|
var value = /** @type {string} */ (reader.readString());
|
|
18273
20157
|
msg.setApartment(value);
|
|
18274
20158
|
break;
|
|
20159
|
+
case 52:
|
|
20160
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
20161
|
+
msg.setTwoFaEnabled(value);
|
|
20162
|
+
break;
|
|
18275
20163
|
default:
|
|
18276
20164
|
reader.skipField();
|
|
18277
20165
|
break;
|
|
@@ -18659,6 +20547,13 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
18659
20547
|
f
|
|
18660
20548
|
);
|
|
18661
20549
|
}
|
|
20550
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 52));
|
|
20551
|
+
if (f != null) {
|
|
20552
|
+
writer.writeBool(
|
|
20553
|
+
52,
|
|
20554
|
+
f
|
|
20555
|
+
);
|
|
20556
|
+
}
|
|
18662
20557
|
};
|
|
18663
20558
|
|
|
18664
20559
|
|
|
@@ -20463,6 +22358,42 @@ proto.user.UserDataResponse.prototype.hasApartment = function() {
|
|
|
20463
22358
|
};
|
|
20464
22359
|
|
|
20465
22360
|
|
|
22361
|
+
/**
|
|
22362
|
+
* optional bool two_fa_enabled = 52;
|
|
22363
|
+
* @return {boolean}
|
|
22364
|
+
*/
|
|
22365
|
+
proto.user.UserDataResponse.prototype.getTwoFaEnabled = function() {
|
|
22366
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 52, false));
|
|
22367
|
+
};
|
|
22368
|
+
|
|
22369
|
+
|
|
22370
|
+
/**
|
|
22371
|
+
* @param {boolean} value
|
|
22372
|
+
* @return {!proto.user.UserDataResponse} returns this
|
|
22373
|
+
*/
|
|
22374
|
+
proto.user.UserDataResponse.prototype.setTwoFaEnabled = function(value) {
|
|
22375
|
+
return jspb.Message.setField(this, 52, value);
|
|
22376
|
+
};
|
|
22377
|
+
|
|
22378
|
+
|
|
22379
|
+
/**
|
|
22380
|
+
* Clears the field making it undefined.
|
|
22381
|
+
* @return {!proto.user.UserDataResponse} returns this
|
|
22382
|
+
*/
|
|
22383
|
+
proto.user.UserDataResponse.prototype.clearTwoFaEnabled = function() {
|
|
22384
|
+
return jspb.Message.setField(this, 52, undefined);
|
|
22385
|
+
};
|
|
22386
|
+
|
|
22387
|
+
|
|
22388
|
+
/**
|
|
22389
|
+
* Returns whether this field is set.
|
|
22390
|
+
* @return {boolean}
|
|
22391
|
+
*/
|
|
22392
|
+
proto.user.UserDataResponse.prototype.hasTwoFaEnabled = function() {
|
|
22393
|
+
return jspb.Message.getField(this, 52) != null;
|
|
22394
|
+
};
|
|
22395
|
+
|
|
22396
|
+
|
|
20466
22397
|
|
|
20467
22398
|
|
|
20468
22399
|
|