protobuf-platform 1.2.455 → 1.2.457

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/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.UserDataRequest.prototype.toObject = function(opt_includeInstance) {
13534
- return proto.user.UserDataRequest.toObject(opt_includeInstance, this);
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.UserDataRequest} msg The msg instance to transform.
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.UserDataRequest.toObject = function(includeInstance, msg) {
13731
+ proto.user.BeginUserTwoFaSetupRequest.toObject = function(includeInstance, msg) {
13548
13732
  var f, obj = {
13549
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
13550
- requestedArea: jspb.Message.getFieldWithDefault(msg, 2, ""),
13551
- publicId: jspb.Message.getFieldWithDefault(msg, 3, "")
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.UserDataRequest}
13752
+ * @return {!proto.user.BeginUserTwoFaSetupRequest}
13566
13753
  */
13567
- proto.user.UserDataRequest.deserializeBinary = function(bytes) {
13754
+ proto.user.BeginUserTwoFaSetupRequest.deserializeBinary = function(bytes) {
13568
13755
  var reader = new jspb.BinaryReader(bytes);
13569
- var msg = new proto.user.UserDataRequest;
13570
- return proto.user.UserDataRequest.deserializeBinaryFromReader(msg, reader);
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.UserDataRequest} msg The message object to deserialize into.
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.UserDataRequest}
13766
+ * @return {!proto.user.BeginUserTwoFaSetupRequest}
13580
13767
  */
13581
- proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
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.setId(value);
13777
+ msg.setUserId(value);
13591
13778
  break;
13592
13779
  case 2:
13593
13780
  var value = /** @type {string} */ (reader.readString());
13594
- msg.setRequestedArea(value);
13781
+ msg.setUserPublicId(value);
13595
13782
  break;
13596
13783
  case 3:
13597
13784
  var value = /** @type {string} */ (reader.readString());
13598
- msg.setPublicId(value);
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.UserDataRequest.prototype.serializeBinary = function() {
13812
+ proto.user.BeginUserTwoFaSetupRequest.prototype.serializeBinary = function() {
13614
13813
  var writer = new jspb.BinaryWriter();
13615
- proto.user.UserDataRequest.serializeBinaryToWriter(this, writer);
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.UserDataRequest} message
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.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
13826
+ proto.user.BeginUserTwoFaSetupRequest.serializeBinaryToWriter = function(message, writer) {
13628
13827
  var f = undefined;
13629
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
13630
- if (f != null) {
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 id = 1;
13874
+ * optional int32 user_id = 1;
13655
13875
  * @return {number}
13656
13876
  */
13657
- proto.user.UserDataRequest.prototype.getId = function() {
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.UserDataRequest} returns this
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.UserDataRequest.prototype.hasId = function() {
13685
- return jspb.Message.getField(this, 1) != null;
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 requested_area = 2;
13892
+ * optional string user_public_id = 2;
13691
13893
  * @return {string}
13692
13894
  */
13693
- proto.user.UserDataRequest.prototype.getRequestedArea = function() {
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.UserDataRequest} returns this
13902
+ * @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
13701
13903
  */
13702
- proto.user.UserDataRequest.prototype.setRequestedArea = function(value) {
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.UserDataRequest} returns this
13911
+ * @return {!proto.user.BeginUserTwoFaSetupRequest} returns this
13710
13912
  */
13711
- proto.user.UserDataRequest.prototype.clearRequestedArea = function() {
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.UserDataRequest.prototype.hasRequestedArea = function() {
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 public_id = 3;
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() {
@@ -16435,7 +18318,12 @@ proto.user.UserRequest.toObject = function(includeInstance, msg) {
16435
18318
  postalCode: jspb.Message.getFieldWithDefault(msg, 23, ""),
16436
18319
  gender: jspb.Message.getFieldWithDefault(msg, 24, ""),
16437
18320
  nickname: jspb.Message.getFieldWithDefault(msg, 25, ""),
16438
- address: jspb.Message.getFieldWithDefault(msg, 26, "")
18321
+ address: jspb.Message.getFieldWithDefault(msg, 26, ""),
18322
+ state: jspb.Message.getFieldWithDefault(msg, 27, ""),
18323
+ middleName: jspb.Message.getFieldWithDefault(msg, 28, ""),
18324
+ street: jspb.Message.getFieldWithDefault(msg, 29, ""),
18325
+ house: jspb.Message.getFieldWithDefault(msg, 30, ""),
18326
+ apartment: jspb.Message.getFieldWithDefault(msg, 31, "")
16439
18327
  };
16440
18328
 
16441
18329
  if (includeInstance) {
@@ -16576,6 +18464,26 @@ proto.user.UserRequest.deserializeBinaryFromReader = function(msg, reader) {
16576
18464
  var value = /** @type {string} */ (reader.readString());
16577
18465
  msg.setAddress(value);
16578
18466
  break;
18467
+ case 27:
18468
+ var value = /** @type {string} */ (reader.readString());
18469
+ msg.setState(value);
18470
+ break;
18471
+ case 28:
18472
+ var value = /** @type {string} */ (reader.readString());
18473
+ msg.setMiddleName(value);
18474
+ break;
18475
+ case 29:
18476
+ var value = /** @type {string} */ (reader.readString());
18477
+ msg.setStreet(value);
18478
+ break;
18479
+ case 30:
18480
+ var value = /** @type {string} */ (reader.readString());
18481
+ msg.setHouse(value);
18482
+ break;
18483
+ case 31:
18484
+ var value = /** @type {string} */ (reader.readString());
18485
+ msg.setApartment(value);
18486
+ break;
16579
18487
  default:
16580
18488
  reader.skipField();
16581
18489
  break;
@@ -16787,6 +18695,41 @@ proto.user.UserRequest.serializeBinaryToWriter = function(message, writer) {
16787
18695
  f
16788
18696
  );
16789
18697
  }
18698
+ f = /** @type {string} */ (jspb.Message.getField(message, 27));
18699
+ if (f != null) {
18700
+ writer.writeString(
18701
+ 27,
18702
+ f
18703
+ );
18704
+ }
18705
+ f = /** @type {string} */ (jspb.Message.getField(message, 28));
18706
+ if (f != null) {
18707
+ writer.writeString(
18708
+ 28,
18709
+ f
18710
+ );
18711
+ }
18712
+ f = /** @type {string} */ (jspb.Message.getField(message, 29));
18713
+ if (f != null) {
18714
+ writer.writeString(
18715
+ 29,
18716
+ f
18717
+ );
18718
+ }
18719
+ f = /** @type {string} */ (jspb.Message.getField(message, 30));
18720
+ if (f != null) {
18721
+ writer.writeString(
18722
+ 30,
18723
+ f
18724
+ );
18725
+ }
18726
+ f = /** @type {string} */ (jspb.Message.getField(message, 31));
18727
+ if (f != null) {
18728
+ writer.writeString(
18729
+ 31,
18730
+ f
18731
+ );
18732
+ }
16790
18733
  };
16791
18734
 
16792
18735
 
@@ -17565,11 +19508,191 @@ proto.user.UserRequest.prototype.hasSelfExclusionDate = function() {
17565
19508
 
17566
19509
 
17567
19510
  /**
17568
- * optional string postal_code = 23;
19511
+ * optional string postal_code = 23;
19512
+ * @return {string}
19513
+ */
19514
+ proto.user.UserRequest.prototype.getPostalCode = function() {
19515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
19516
+ };
19517
+
19518
+
19519
+ /**
19520
+ * @param {string} value
19521
+ * @return {!proto.user.UserRequest} returns this
19522
+ */
19523
+ proto.user.UserRequest.prototype.setPostalCode = function(value) {
19524
+ return jspb.Message.setField(this, 23, value);
19525
+ };
19526
+
19527
+
19528
+ /**
19529
+ * Clears the field making it undefined.
19530
+ * @return {!proto.user.UserRequest} returns this
19531
+ */
19532
+ proto.user.UserRequest.prototype.clearPostalCode = function() {
19533
+ return jspb.Message.setField(this, 23, undefined);
19534
+ };
19535
+
19536
+
19537
+ /**
19538
+ * Returns whether this field is set.
19539
+ * @return {boolean}
19540
+ */
19541
+ proto.user.UserRequest.prototype.hasPostalCode = function() {
19542
+ return jspb.Message.getField(this, 23) != null;
19543
+ };
19544
+
19545
+
19546
+ /**
19547
+ * optional string gender = 24;
19548
+ * @return {string}
19549
+ */
19550
+ proto.user.UserRequest.prototype.getGender = function() {
19551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
19552
+ };
19553
+
19554
+
19555
+ /**
19556
+ * @param {string} value
19557
+ * @return {!proto.user.UserRequest} returns this
19558
+ */
19559
+ proto.user.UserRequest.prototype.setGender = function(value) {
19560
+ return jspb.Message.setField(this, 24, value);
19561
+ };
19562
+
19563
+
19564
+ /**
19565
+ * Clears the field making it undefined.
19566
+ * @return {!proto.user.UserRequest} returns this
19567
+ */
19568
+ proto.user.UserRequest.prototype.clearGender = function() {
19569
+ return jspb.Message.setField(this, 24, undefined);
19570
+ };
19571
+
19572
+
19573
+ /**
19574
+ * Returns whether this field is set.
19575
+ * @return {boolean}
19576
+ */
19577
+ proto.user.UserRequest.prototype.hasGender = function() {
19578
+ return jspb.Message.getField(this, 24) != null;
19579
+ };
19580
+
19581
+
19582
+ /**
19583
+ * optional string nickname = 25;
19584
+ * @return {string}
19585
+ */
19586
+ proto.user.UserRequest.prototype.getNickname = function() {
19587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
19588
+ };
19589
+
19590
+
19591
+ /**
19592
+ * @param {string} value
19593
+ * @return {!proto.user.UserRequest} returns this
19594
+ */
19595
+ proto.user.UserRequest.prototype.setNickname = function(value) {
19596
+ return jspb.Message.setField(this, 25, value);
19597
+ };
19598
+
19599
+
19600
+ /**
19601
+ * Clears the field making it undefined.
19602
+ * @return {!proto.user.UserRequest} returns this
19603
+ */
19604
+ proto.user.UserRequest.prototype.clearNickname = function() {
19605
+ return jspb.Message.setField(this, 25, undefined);
19606
+ };
19607
+
19608
+
19609
+ /**
19610
+ * Returns whether this field is set.
19611
+ * @return {boolean}
19612
+ */
19613
+ proto.user.UserRequest.prototype.hasNickname = function() {
19614
+ return jspb.Message.getField(this, 25) != null;
19615
+ };
19616
+
19617
+
19618
+ /**
19619
+ * optional string address = 26;
19620
+ * @return {string}
19621
+ */
19622
+ proto.user.UserRequest.prototype.getAddress = function() {
19623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, ""));
19624
+ };
19625
+
19626
+
19627
+ /**
19628
+ * @param {string} value
19629
+ * @return {!proto.user.UserRequest} returns this
19630
+ */
19631
+ proto.user.UserRequest.prototype.setAddress = function(value) {
19632
+ return jspb.Message.setField(this, 26, value);
19633
+ };
19634
+
19635
+
19636
+ /**
19637
+ * Clears the field making it undefined.
19638
+ * @return {!proto.user.UserRequest} returns this
19639
+ */
19640
+ proto.user.UserRequest.prototype.clearAddress = function() {
19641
+ return jspb.Message.setField(this, 26, undefined);
19642
+ };
19643
+
19644
+
19645
+ /**
19646
+ * Returns whether this field is set.
19647
+ * @return {boolean}
19648
+ */
19649
+ proto.user.UserRequest.prototype.hasAddress = function() {
19650
+ return jspb.Message.getField(this, 26) != null;
19651
+ };
19652
+
19653
+
19654
+ /**
19655
+ * optional string state = 27;
19656
+ * @return {string}
19657
+ */
19658
+ proto.user.UserRequest.prototype.getState = function() {
19659
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
19660
+ };
19661
+
19662
+
19663
+ /**
19664
+ * @param {string} value
19665
+ * @return {!proto.user.UserRequest} returns this
19666
+ */
19667
+ proto.user.UserRequest.prototype.setState = function(value) {
19668
+ return jspb.Message.setField(this, 27, value);
19669
+ };
19670
+
19671
+
19672
+ /**
19673
+ * Clears the field making it undefined.
19674
+ * @return {!proto.user.UserRequest} returns this
19675
+ */
19676
+ proto.user.UserRequest.prototype.clearState = function() {
19677
+ return jspb.Message.setField(this, 27, undefined);
19678
+ };
19679
+
19680
+
19681
+ /**
19682
+ * Returns whether this field is set.
19683
+ * @return {boolean}
19684
+ */
19685
+ proto.user.UserRequest.prototype.hasState = function() {
19686
+ return jspb.Message.getField(this, 27) != null;
19687
+ };
19688
+
19689
+
19690
+ /**
19691
+ * optional string middle_name = 28;
17569
19692
  * @return {string}
17570
19693
  */
17571
- proto.user.UserRequest.prototype.getPostalCode = function() {
17572
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
19694
+ proto.user.UserRequest.prototype.getMiddleName = function() {
19695
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
17573
19696
  };
17574
19697
 
17575
19698
 
@@ -17577,8 +19700,8 @@ proto.user.UserRequest.prototype.getPostalCode = function() {
17577
19700
  * @param {string} value
17578
19701
  * @return {!proto.user.UserRequest} returns this
17579
19702
  */
17580
- proto.user.UserRequest.prototype.setPostalCode = function(value) {
17581
- return jspb.Message.setField(this, 23, value);
19703
+ proto.user.UserRequest.prototype.setMiddleName = function(value) {
19704
+ return jspb.Message.setField(this, 28, value);
17582
19705
  };
17583
19706
 
17584
19707
 
@@ -17586,8 +19709,8 @@ proto.user.UserRequest.prototype.setPostalCode = function(value) {
17586
19709
  * Clears the field making it undefined.
17587
19710
  * @return {!proto.user.UserRequest} returns this
17588
19711
  */
17589
- proto.user.UserRequest.prototype.clearPostalCode = function() {
17590
- return jspb.Message.setField(this, 23, undefined);
19712
+ proto.user.UserRequest.prototype.clearMiddleName = function() {
19713
+ return jspb.Message.setField(this, 28, undefined);
17591
19714
  };
17592
19715
 
17593
19716
 
@@ -17595,17 +19718,17 @@ proto.user.UserRequest.prototype.clearPostalCode = function() {
17595
19718
  * Returns whether this field is set.
17596
19719
  * @return {boolean}
17597
19720
  */
17598
- proto.user.UserRequest.prototype.hasPostalCode = function() {
17599
- return jspb.Message.getField(this, 23) != null;
19721
+ proto.user.UserRequest.prototype.hasMiddleName = function() {
19722
+ return jspb.Message.getField(this, 28) != null;
17600
19723
  };
17601
19724
 
17602
19725
 
17603
19726
  /**
17604
- * optional string gender = 24;
19727
+ * optional string street = 29;
17605
19728
  * @return {string}
17606
19729
  */
17607
- proto.user.UserRequest.prototype.getGender = function() {
17608
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
19730
+ proto.user.UserRequest.prototype.getStreet = function() {
19731
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
17609
19732
  };
17610
19733
 
17611
19734
 
@@ -17613,8 +19736,8 @@ proto.user.UserRequest.prototype.getGender = function() {
17613
19736
  * @param {string} value
17614
19737
  * @return {!proto.user.UserRequest} returns this
17615
19738
  */
17616
- proto.user.UserRequest.prototype.setGender = function(value) {
17617
- return jspb.Message.setField(this, 24, value);
19739
+ proto.user.UserRequest.prototype.setStreet = function(value) {
19740
+ return jspb.Message.setField(this, 29, value);
17618
19741
  };
17619
19742
 
17620
19743
 
@@ -17622,8 +19745,8 @@ proto.user.UserRequest.prototype.setGender = function(value) {
17622
19745
  * Clears the field making it undefined.
17623
19746
  * @return {!proto.user.UserRequest} returns this
17624
19747
  */
17625
- proto.user.UserRequest.prototype.clearGender = function() {
17626
- return jspb.Message.setField(this, 24, undefined);
19748
+ proto.user.UserRequest.prototype.clearStreet = function() {
19749
+ return jspb.Message.setField(this, 29, undefined);
17627
19750
  };
17628
19751
 
17629
19752
 
@@ -17631,17 +19754,17 @@ proto.user.UserRequest.prototype.clearGender = function() {
17631
19754
  * Returns whether this field is set.
17632
19755
  * @return {boolean}
17633
19756
  */
17634
- proto.user.UserRequest.prototype.hasGender = function() {
17635
- return jspb.Message.getField(this, 24) != null;
19757
+ proto.user.UserRequest.prototype.hasStreet = function() {
19758
+ return jspb.Message.getField(this, 29) != null;
17636
19759
  };
17637
19760
 
17638
19761
 
17639
19762
  /**
17640
- * optional string nickname = 25;
19763
+ * optional string house = 30;
17641
19764
  * @return {string}
17642
19765
  */
17643
- proto.user.UserRequest.prototype.getNickname = function() {
17644
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
19766
+ proto.user.UserRequest.prototype.getHouse = function() {
19767
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, ""));
17645
19768
  };
17646
19769
 
17647
19770
 
@@ -17649,8 +19772,8 @@ proto.user.UserRequest.prototype.getNickname = function() {
17649
19772
  * @param {string} value
17650
19773
  * @return {!proto.user.UserRequest} returns this
17651
19774
  */
17652
- proto.user.UserRequest.prototype.setNickname = function(value) {
17653
- return jspb.Message.setField(this, 25, value);
19775
+ proto.user.UserRequest.prototype.setHouse = function(value) {
19776
+ return jspb.Message.setField(this, 30, value);
17654
19777
  };
17655
19778
 
17656
19779
 
@@ -17658,8 +19781,8 @@ proto.user.UserRequest.prototype.setNickname = function(value) {
17658
19781
  * Clears the field making it undefined.
17659
19782
  * @return {!proto.user.UserRequest} returns this
17660
19783
  */
17661
- proto.user.UserRequest.prototype.clearNickname = function() {
17662
- return jspb.Message.setField(this, 25, undefined);
19784
+ proto.user.UserRequest.prototype.clearHouse = function() {
19785
+ return jspb.Message.setField(this, 30, undefined);
17663
19786
  };
17664
19787
 
17665
19788
 
@@ -17667,17 +19790,17 @@ proto.user.UserRequest.prototype.clearNickname = function() {
17667
19790
  * Returns whether this field is set.
17668
19791
  * @return {boolean}
17669
19792
  */
17670
- proto.user.UserRequest.prototype.hasNickname = function() {
17671
- return jspb.Message.getField(this, 25) != null;
19793
+ proto.user.UserRequest.prototype.hasHouse = function() {
19794
+ return jspb.Message.getField(this, 30) != null;
17672
19795
  };
17673
19796
 
17674
19797
 
17675
19798
  /**
17676
- * optional string address = 26;
19799
+ * optional string apartment = 31;
17677
19800
  * @return {string}
17678
19801
  */
17679
- proto.user.UserRequest.prototype.getAddress = function() {
17680
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, ""));
19802
+ proto.user.UserRequest.prototype.getApartment = function() {
19803
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 31, ""));
17681
19804
  };
17682
19805
 
17683
19806
 
@@ -17685,8 +19808,8 @@ proto.user.UserRequest.prototype.getAddress = function() {
17685
19808
  * @param {string} value
17686
19809
  * @return {!proto.user.UserRequest} returns this
17687
19810
  */
17688
- proto.user.UserRequest.prototype.setAddress = function(value) {
17689
- return jspb.Message.setField(this, 26, value);
19811
+ proto.user.UserRequest.prototype.setApartment = function(value) {
19812
+ return jspb.Message.setField(this, 31, value);
17690
19813
  };
17691
19814
 
17692
19815
 
@@ -17694,8 +19817,8 @@ proto.user.UserRequest.prototype.setAddress = function(value) {
17694
19817
  * Clears the field making it undefined.
17695
19818
  * @return {!proto.user.UserRequest} returns this
17696
19819
  */
17697
- proto.user.UserRequest.prototype.clearAddress = function() {
17698
- return jspb.Message.setField(this, 26, undefined);
19820
+ proto.user.UserRequest.prototype.clearApartment = function() {
19821
+ return jspb.Message.setField(this, 31, undefined);
17699
19822
  };
17700
19823
 
17701
19824
 
@@ -17703,8 +19826,8 @@ proto.user.UserRequest.prototype.clearAddress = function() {
17703
19826
  * Returns whether this field is set.
17704
19827
  * @return {boolean}
17705
19828
  */
17706
- proto.user.UserRequest.prototype.hasAddress = function() {
17707
- return jspb.Message.getField(this, 26) != null;
19829
+ proto.user.UserRequest.prototype.hasApartment = function() {
19830
+ return jspb.Message.getField(this, 31) != null;
17708
19831
  };
17709
19832
 
17710
19833
 
@@ -17785,7 +19908,13 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
17785
19908
  antifraudScore: jspb.Message.getFieldWithDefault(msg, 43, 0),
17786
19909
  antifraudStatus: jspb.Message.getFieldWithDefault(msg, 44, ""),
17787
19910
  antifraudReason: jspb.Message.getFieldWithDefault(msg, 45, ""),
17788
- riskScoreType: jspb.Message.getFieldWithDefault(msg, 46, "")
19911
+ riskScoreType: jspb.Message.getFieldWithDefault(msg, 46, ""),
19912
+ state: jspb.Message.getFieldWithDefault(msg, 47, ""),
19913
+ middleName: jspb.Message.getFieldWithDefault(msg, 48, ""),
19914
+ street: jspb.Message.getFieldWithDefault(msg, 49, ""),
19915
+ house: jspb.Message.getFieldWithDefault(msg, 50, ""),
19916
+ apartment: jspb.Message.getFieldWithDefault(msg, 51, ""),
19917
+ twoFaEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 52, false)
17789
19918
  };
17790
19919
 
17791
19920
  if (includeInstance) {
@@ -18007,6 +20136,30 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
18007
20136
  var value = /** @type {string} */ (reader.readString());
18008
20137
  msg.setRiskScoreType(value);
18009
20138
  break;
20139
+ case 47:
20140
+ var value = /** @type {string} */ (reader.readString());
20141
+ msg.setState(value);
20142
+ break;
20143
+ case 48:
20144
+ var value = /** @type {string} */ (reader.readString());
20145
+ msg.setMiddleName(value);
20146
+ break;
20147
+ case 49:
20148
+ var value = /** @type {string} */ (reader.readString());
20149
+ msg.setStreet(value);
20150
+ break;
20151
+ case 50:
20152
+ var value = /** @type {string} */ (reader.readString());
20153
+ msg.setHouse(value);
20154
+ break;
20155
+ case 51:
20156
+ var value = /** @type {string} */ (reader.readString());
20157
+ msg.setApartment(value);
20158
+ break;
20159
+ case 52:
20160
+ var value = /** @type {boolean} */ (reader.readBool());
20161
+ msg.setTwoFaEnabled(value);
20162
+ break;
18010
20163
  default:
18011
20164
  reader.skipField();
18012
20165
  break;
@@ -18359,6 +20512,48 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
18359
20512
  f
18360
20513
  );
18361
20514
  }
20515
+ f = /** @type {string} */ (jspb.Message.getField(message, 47));
20516
+ if (f != null) {
20517
+ writer.writeString(
20518
+ 47,
20519
+ f
20520
+ );
20521
+ }
20522
+ f = /** @type {string} */ (jspb.Message.getField(message, 48));
20523
+ if (f != null) {
20524
+ writer.writeString(
20525
+ 48,
20526
+ f
20527
+ );
20528
+ }
20529
+ f = /** @type {string} */ (jspb.Message.getField(message, 49));
20530
+ if (f != null) {
20531
+ writer.writeString(
20532
+ 49,
20533
+ f
20534
+ );
20535
+ }
20536
+ f = /** @type {string} */ (jspb.Message.getField(message, 50));
20537
+ if (f != null) {
20538
+ writer.writeString(
20539
+ 50,
20540
+ f
20541
+ );
20542
+ }
20543
+ f = /** @type {string} */ (jspb.Message.getField(message, 51));
20544
+ if (f != null) {
20545
+ writer.writeString(
20546
+ 51,
20547
+ f
20548
+ );
20549
+ }
20550
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 52));
20551
+ if (f != null) {
20552
+ writer.writeBool(
20553
+ 52,
20554
+ f
20555
+ );
20556
+ }
18362
20557
  };
18363
20558
 
18364
20559
 
@@ -19983,6 +22178,222 @@ proto.user.UserDataResponse.prototype.hasRiskScoreType = function() {
19983
22178
  };
19984
22179
 
19985
22180
 
22181
+ /**
22182
+ * optional string state = 47;
22183
+ * @return {string}
22184
+ */
22185
+ proto.user.UserDataResponse.prototype.getState = function() {
22186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 47, ""));
22187
+ };
22188
+
22189
+
22190
+ /**
22191
+ * @param {string} value
22192
+ * @return {!proto.user.UserDataResponse} returns this
22193
+ */
22194
+ proto.user.UserDataResponse.prototype.setState = function(value) {
22195
+ return jspb.Message.setField(this, 47, value);
22196
+ };
22197
+
22198
+
22199
+ /**
22200
+ * Clears the field making it undefined.
22201
+ * @return {!proto.user.UserDataResponse} returns this
22202
+ */
22203
+ proto.user.UserDataResponse.prototype.clearState = function() {
22204
+ return jspb.Message.setField(this, 47, undefined);
22205
+ };
22206
+
22207
+
22208
+ /**
22209
+ * Returns whether this field is set.
22210
+ * @return {boolean}
22211
+ */
22212
+ proto.user.UserDataResponse.prototype.hasState = function() {
22213
+ return jspb.Message.getField(this, 47) != null;
22214
+ };
22215
+
22216
+
22217
+ /**
22218
+ * optional string middle_name = 48;
22219
+ * @return {string}
22220
+ */
22221
+ proto.user.UserDataResponse.prototype.getMiddleName = function() {
22222
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 48, ""));
22223
+ };
22224
+
22225
+
22226
+ /**
22227
+ * @param {string} value
22228
+ * @return {!proto.user.UserDataResponse} returns this
22229
+ */
22230
+ proto.user.UserDataResponse.prototype.setMiddleName = function(value) {
22231
+ return jspb.Message.setField(this, 48, value);
22232
+ };
22233
+
22234
+
22235
+ /**
22236
+ * Clears the field making it undefined.
22237
+ * @return {!proto.user.UserDataResponse} returns this
22238
+ */
22239
+ proto.user.UserDataResponse.prototype.clearMiddleName = function() {
22240
+ return jspb.Message.setField(this, 48, undefined);
22241
+ };
22242
+
22243
+
22244
+ /**
22245
+ * Returns whether this field is set.
22246
+ * @return {boolean}
22247
+ */
22248
+ proto.user.UserDataResponse.prototype.hasMiddleName = function() {
22249
+ return jspb.Message.getField(this, 48) != null;
22250
+ };
22251
+
22252
+
22253
+ /**
22254
+ * optional string street = 49;
22255
+ * @return {string}
22256
+ */
22257
+ proto.user.UserDataResponse.prototype.getStreet = function() {
22258
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 49, ""));
22259
+ };
22260
+
22261
+
22262
+ /**
22263
+ * @param {string} value
22264
+ * @return {!proto.user.UserDataResponse} returns this
22265
+ */
22266
+ proto.user.UserDataResponse.prototype.setStreet = function(value) {
22267
+ return jspb.Message.setField(this, 49, value);
22268
+ };
22269
+
22270
+
22271
+ /**
22272
+ * Clears the field making it undefined.
22273
+ * @return {!proto.user.UserDataResponse} returns this
22274
+ */
22275
+ proto.user.UserDataResponse.prototype.clearStreet = function() {
22276
+ return jspb.Message.setField(this, 49, undefined);
22277
+ };
22278
+
22279
+
22280
+ /**
22281
+ * Returns whether this field is set.
22282
+ * @return {boolean}
22283
+ */
22284
+ proto.user.UserDataResponse.prototype.hasStreet = function() {
22285
+ return jspb.Message.getField(this, 49) != null;
22286
+ };
22287
+
22288
+
22289
+ /**
22290
+ * optional string house = 50;
22291
+ * @return {string}
22292
+ */
22293
+ proto.user.UserDataResponse.prototype.getHouse = function() {
22294
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 50, ""));
22295
+ };
22296
+
22297
+
22298
+ /**
22299
+ * @param {string} value
22300
+ * @return {!proto.user.UserDataResponse} returns this
22301
+ */
22302
+ proto.user.UserDataResponse.prototype.setHouse = function(value) {
22303
+ return jspb.Message.setField(this, 50, value);
22304
+ };
22305
+
22306
+
22307
+ /**
22308
+ * Clears the field making it undefined.
22309
+ * @return {!proto.user.UserDataResponse} returns this
22310
+ */
22311
+ proto.user.UserDataResponse.prototype.clearHouse = function() {
22312
+ return jspb.Message.setField(this, 50, undefined);
22313
+ };
22314
+
22315
+
22316
+ /**
22317
+ * Returns whether this field is set.
22318
+ * @return {boolean}
22319
+ */
22320
+ proto.user.UserDataResponse.prototype.hasHouse = function() {
22321
+ return jspb.Message.getField(this, 50) != null;
22322
+ };
22323
+
22324
+
22325
+ /**
22326
+ * optional string apartment = 51;
22327
+ * @return {string}
22328
+ */
22329
+ proto.user.UserDataResponse.prototype.getApartment = function() {
22330
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 51, ""));
22331
+ };
22332
+
22333
+
22334
+ /**
22335
+ * @param {string} value
22336
+ * @return {!proto.user.UserDataResponse} returns this
22337
+ */
22338
+ proto.user.UserDataResponse.prototype.setApartment = function(value) {
22339
+ return jspb.Message.setField(this, 51, value);
22340
+ };
22341
+
22342
+
22343
+ /**
22344
+ * Clears the field making it undefined.
22345
+ * @return {!proto.user.UserDataResponse} returns this
22346
+ */
22347
+ proto.user.UserDataResponse.prototype.clearApartment = function() {
22348
+ return jspb.Message.setField(this, 51, undefined);
22349
+ };
22350
+
22351
+
22352
+ /**
22353
+ * Returns whether this field is set.
22354
+ * @return {boolean}
22355
+ */
22356
+ proto.user.UserDataResponse.prototype.hasApartment = function() {
22357
+ return jspb.Message.getField(this, 51) != null;
22358
+ };
22359
+
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
+
19986
22397
 
19987
22398
 
19988
22399