protobuf-platform 1.2.729 → 1.2.730

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.729",
3
+ "version": "1.2.730",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -705,6 +705,12 @@ message AttemptWithdrawalRequest {
705
705
  optional string user_agent = 41;
706
706
  // Card security code for the withdrawal attempt. Consumers must keep it transient.
707
707
  optional string cvv = 42;
708
+ // Player withdrawal 2FA correlation token. Absent on the first attempt.
709
+ optional string two_fa_temp_token = 43;
710
+ // Player withdrawal TOTP code. Absent until the player confirms the challenge.
711
+ optional string two_fa_code = 44;
712
+ // Authenticated session that must match the withdrawal challenge.
713
+ optional string user_session_id = 45;
708
714
  }
709
715
  message GetWithdrawalRequest {
710
716
  int32 id = 1;
@@ -27518,7 +27518,10 @@ proto.payment.AttemptWithdrawalRequest.toObject = function(includeInstance, msg)
27518
27518
  requestCurrency: jspb.Message.getFieldWithDefault(msg, 39, ""),
27519
27519
  antifraudSession: jspb.Message.getFieldWithDefault(msg, 40, ""),
27520
27520
  userAgent: jspb.Message.getFieldWithDefault(msg, 41, ""),
27521
- cvv: jspb.Message.getFieldWithDefault(msg, 42, "")
27521
+ cvv: jspb.Message.getFieldWithDefault(msg, 42, ""),
27522
+ twoFaTempToken: jspb.Message.getFieldWithDefault(msg, 43, ""),
27523
+ twoFaCode: jspb.Message.getFieldWithDefault(msg, 44, ""),
27524
+ userSessionId: jspb.Message.getFieldWithDefault(msg, 45, "")
27522
27525
  };
27523
27526
 
27524
27527
  if (includeInstance) {
@@ -27723,6 +27726,18 @@ proto.payment.AttemptWithdrawalRequest.deserializeBinaryFromReader = function(ms
27723
27726
  var value = /** @type {string} */ (reader.readString());
27724
27727
  msg.setCvv(value);
27725
27728
  break;
27729
+ case 43:
27730
+ var value = /** @type {string} */ (reader.readString());
27731
+ msg.setTwoFaTempToken(value);
27732
+ break;
27733
+ case 44:
27734
+ var value = /** @type {string} */ (reader.readString());
27735
+ msg.setTwoFaCode(value);
27736
+ break;
27737
+ case 45:
27738
+ var value = /** @type {string} */ (reader.readString());
27739
+ msg.setUserSessionId(value);
27740
+ break;
27726
27741
  default:
27727
27742
  reader.skipField();
27728
27743
  break;
@@ -28046,6 +28061,27 @@ proto.payment.AttemptWithdrawalRequest.serializeBinaryToWriter = function(messag
28046
28061
  f
28047
28062
  );
28048
28063
  }
28064
+ f = /** @type {string} */ (jspb.Message.getField(message, 43));
28065
+ if (f != null) {
28066
+ writer.writeString(
28067
+ 43,
28068
+ f
28069
+ );
28070
+ }
28071
+ f = /** @type {string} */ (jspb.Message.getField(message, 44));
28072
+ if (f != null) {
28073
+ writer.writeString(
28074
+ 44,
28075
+ f
28076
+ );
28077
+ }
28078
+ f = /** @type {string} */ (jspb.Message.getField(message, 45));
28079
+ if (f != null) {
28080
+ writer.writeString(
28081
+ 45,
28082
+ f
28083
+ );
28084
+ }
28049
28085
  };
28050
28086
 
28051
28087
 
@@ -29507,6 +29543,114 @@ proto.payment.AttemptWithdrawalRequest.prototype.hasCvv = function() {
29507
29543
  };
29508
29544
 
29509
29545
 
29546
+ /**
29547
+ * optional string two_fa_temp_token = 43;
29548
+ * @return {string}
29549
+ */
29550
+ proto.payment.AttemptWithdrawalRequest.prototype.getTwoFaTempToken = function() {
29551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 43, ""));
29552
+ };
29553
+
29554
+
29555
+ /**
29556
+ * @param {string} value
29557
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29558
+ */
29559
+ proto.payment.AttemptWithdrawalRequest.prototype.setTwoFaTempToken = function(value) {
29560
+ return jspb.Message.setField(this, 43, value);
29561
+ };
29562
+
29563
+
29564
+ /**
29565
+ * Clears the field making it undefined.
29566
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29567
+ */
29568
+ proto.payment.AttemptWithdrawalRequest.prototype.clearTwoFaTempToken = function() {
29569
+ return jspb.Message.setField(this, 43, undefined);
29570
+ };
29571
+
29572
+
29573
+ /**
29574
+ * Returns whether this field is set.
29575
+ * @return {boolean}
29576
+ */
29577
+ proto.payment.AttemptWithdrawalRequest.prototype.hasTwoFaTempToken = function() {
29578
+ return jspb.Message.getField(this, 43) != null;
29579
+ };
29580
+
29581
+
29582
+ /**
29583
+ * optional string two_fa_code = 44;
29584
+ * @return {string}
29585
+ */
29586
+ proto.payment.AttemptWithdrawalRequest.prototype.getTwoFaCode = function() {
29587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 44, ""));
29588
+ };
29589
+
29590
+
29591
+ /**
29592
+ * @param {string} value
29593
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29594
+ */
29595
+ proto.payment.AttemptWithdrawalRequest.prototype.setTwoFaCode = function(value) {
29596
+ return jspb.Message.setField(this, 44, value);
29597
+ };
29598
+
29599
+
29600
+ /**
29601
+ * Clears the field making it undefined.
29602
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29603
+ */
29604
+ proto.payment.AttemptWithdrawalRequest.prototype.clearTwoFaCode = function() {
29605
+ return jspb.Message.setField(this, 44, undefined);
29606
+ };
29607
+
29608
+
29609
+ /**
29610
+ * Returns whether this field is set.
29611
+ * @return {boolean}
29612
+ */
29613
+ proto.payment.AttemptWithdrawalRequest.prototype.hasTwoFaCode = function() {
29614
+ return jspb.Message.getField(this, 44) != null;
29615
+ };
29616
+
29617
+
29618
+ /**
29619
+ * optional string user_session_id = 45;
29620
+ * @return {string}
29621
+ */
29622
+ proto.payment.AttemptWithdrawalRequest.prototype.getUserSessionId = function() {
29623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 45, ""));
29624
+ };
29625
+
29626
+
29627
+ /**
29628
+ * @param {string} value
29629
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29630
+ */
29631
+ proto.payment.AttemptWithdrawalRequest.prototype.setUserSessionId = function(value) {
29632
+ return jspb.Message.setField(this, 45, value);
29633
+ };
29634
+
29635
+
29636
+ /**
29637
+ * Clears the field making it undefined.
29638
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
29639
+ */
29640
+ proto.payment.AttemptWithdrawalRequest.prototype.clearUserSessionId = function() {
29641
+ return jspb.Message.setField(this, 45, undefined);
29642
+ };
29643
+
29644
+
29645
+ /**
29646
+ * Returns whether this field is set.
29647
+ * @return {boolean}
29648
+ */
29649
+ proto.payment.AttemptWithdrawalRequest.prototype.hasUserSessionId = function() {
29650
+ return jspb.Message.getField(this, 45) != null;
29651
+ };
29652
+
29653
+
29510
29654
 
29511
29655
 
29512
29656
 
package/user/user.proto CHANGED
@@ -23,6 +23,9 @@ service User {
23
23
  rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
24
24
  rpc beginUserTwoFaSetup(BeginUserTwoFaSetupRequest) returns (BeginUserTwoFaSetupResponse);
25
25
  rpc confirmUserTwoFaAction(ConfirmUserTwoFaActionRequest) returns (ConfirmUserTwoFaActionResponse);
26
+ // Player withdrawal step-up. Does not create a session or a payment.
27
+ rpc beginWithdrawalTwoFaAuthorization(BeginWithdrawalTwoFaAuthorizationRequest) returns (BeginWithdrawalTwoFaAuthorizationResponse);
28
+ rpc verifyWithdrawalTwoFaAuthorization(VerifyWithdrawalTwoFaAuthorizationRequest) returns (VerifyWithdrawalTwoFaAuthorizationResponse);
26
29
  rpc getUserData(UserDataRequest) returns (UserDataResponse);
27
30
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
28
31
  rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
@@ -558,6 +561,30 @@ message ConfirmUserTwoFaActionResponse {
558
561
  // Optional JSON metadata for future purpose-specific results.
559
562
  optional string metadata = 6;
560
563
  }
564
+ // Starts a withdrawal TOTP challenge. Never enables 2FA and never returns a secret.
565
+ message BeginWithdrawalTwoFaAuthorizationRequest {
566
+ int32 user_id = 1;
567
+ string user_session_id = 2;
568
+ string intent_hash = 3;
569
+ }
570
+ message BeginWithdrawalTwoFaAuthorizationResponse {
571
+ // challenge_required or setup_required.
572
+ string status = 1;
573
+ optional string temp_token = 2;
574
+ optional int32 expires_in_seconds = 3;
575
+ }
576
+ // Checks a withdrawal TOTP code without consuming the financial authorization.
577
+ message VerifyWithdrawalTwoFaAuthorizationRequest {
578
+ int32 user_id = 1;
579
+ string user_session_id = 2;
580
+ string intent_hash = 3;
581
+ string temp_token = 4;
582
+ string code = 5;
583
+ }
584
+ message VerifyWithdrawalTwoFaAuthorizationResponse {
585
+ // valid, invalid_otp, or expired.
586
+ string status = 1;
587
+ }
561
588
  message UserDataRequest {
562
589
  optional int32 id = 1;
563
590
  optional string requested_area = 2;
@@ -147,6 +147,28 @@ function deserialize_user_BeginUserTwoFaSetupResponse(buffer_arg) {
147
147
  return user_pb.BeginUserTwoFaSetupResponse.deserializeBinary(new Uint8Array(buffer_arg));
148
148
  }
149
149
 
150
+ function serialize_user_BeginWithdrawalTwoFaAuthorizationRequest(arg) {
151
+ if (!(arg instanceof user_pb.BeginWithdrawalTwoFaAuthorizationRequest)) {
152
+ throw new Error('Expected argument of type user.BeginWithdrawalTwoFaAuthorizationRequest');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_user_BeginWithdrawalTwoFaAuthorizationRequest(buffer_arg) {
158
+ return user_pb.BeginWithdrawalTwoFaAuthorizationRequest.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
161
+ function serialize_user_BeginWithdrawalTwoFaAuthorizationResponse(arg) {
162
+ if (!(arg instanceof user_pb.BeginWithdrawalTwoFaAuthorizationResponse)) {
163
+ throw new Error('Expected argument of type user.BeginWithdrawalTwoFaAuthorizationResponse');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_user_BeginWithdrawalTwoFaAuthorizationResponse(buffer_arg) {
169
+ return user_pb.BeginWithdrawalTwoFaAuthorizationResponse.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
150
172
  function serialize_user_CategoryItemsResponse(arg) {
151
173
  if (!(arg instanceof user_pb.CategoryItemsResponse)) {
152
174
  throw new Error('Expected argument of type user.CategoryItemsResponse');
@@ -2578,6 +2600,28 @@ function deserialize_user_VerifySmsResetPasswordCodeResponse(buffer_arg) {
2578
2600
  return user_pb.VerifySmsResetPasswordCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
2579
2601
  }
2580
2602
 
2603
+ function serialize_user_VerifyWithdrawalTwoFaAuthorizationRequest(arg) {
2604
+ if (!(arg instanceof user_pb.VerifyWithdrawalTwoFaAuthorizationRequest)) {
2605
+ throw new Error('Expected argument of type user.VerifyWithdrawalTwoFaAuthorizationRequest');
2606
+ }
2607
+ return Buffer.from(arg.serializeBinary());
2608
+ }
2609
+
2610
+ function deserialize_user_VerifyWithdrawalTwoFaAuthorizationRequest(buffer_arg) {
2611
+ return user_pb.VerifyWithdrawalTwoFaAuthorizationRequest.deserializeBinary(new Uint8Array(buffer_arg));
2612
+ }
2613
+
2614
+ function serialize_user_VerifyWithdrawalTwoFaAuthorizationResponse(arg) {
2615
+ if (!(arg instanceof user_pb.VerifyWithdrawalTwoFaAuthorizationResponse)) {
2616
+ throw new Error('Expected argument of type user.VerifyWithdrawalTwoFaAuthorizationResponse');
2617
+ }
2618
+ return Buffer.from(arg.serializeBinary());
2619
+ }
2620
+
2621
+ function deserialize_user_VerifyWithdrawalTwoFaAuthorizationResponse(buffer_arg) {
2622
+ return user_pb.VerifyWithdrawalTwoFaAuthorizationResponse.deserializeBinary(new Uint8Array(buffer_arg));
2623
+ }
2624
+
2581
2625
  function serialize_user_VkCommonIdLoginRequest(arg) {
2582
2626
  if (!(arg instanceof user_pb.VkCommonIdLoginRequest)) {
2583
2627
  throw new Error('Expected argument of type user.VkCommonIdLoginRequest');
@@ -2804,6 +2848,29 @@ inspectPlayerInvitation: {
2804
2848
  responseSerialize: serialize_user_ConfirmUserTwoFaActionResponse,
2805
2849
  responseDeserialize: deserialize_user_ConfirmUserTwoFaActionResponse,
2806
2850
  },
2851
+ // Player withdrawal step-up. Does not create a session or a payment.
2852
+ beginWithdrawalTwoFaAuthorization: {
2853
+ path: '/user.User/beginWithdrawalTwoFaAuthorization',
2854
+ requestStream: false,
2855
+ responseStream: false,
2856
+ requestType: user_pb.BeginWithdrawalTwoFaAuthorizationRequest,
2857
+ responseType: user_pb.BeginWithdrawalTwoFaAuthorizationResponse,
2858
+ requestSerialize: serialize_user_BeginWithdrawalTwoFaAuthorizationRequest,
2859
+ requestDeserialize: deserialize_user_BeginWithdrawalTwoFaAuthorizationRequest,
2860
+ responseSerialize: serialize_user_BeginWithdrawalTwoFaAuthorizationResponse,
2861
+ responseDeserialize: deserialize_user_BeginWithdrawalTwoFaAuthorizationResponse,
2862
+ },
2863
+ verifyWithdrawalTwoFaAuthorization: {
2864
+ path: '/user.User/verifyWithdrawalTwoFaAuthorization',
2865
+ requestStream: false,
2866
+ responseStream: false,
2867
+ requestType: user_pb.VerifyWithdrawalTwoFaAuthorizationRequest,
2868
+ responseType: user_pb.VerifyWithdrawalTwoFaAuthorizationResponse,
2869
+ requestSerialize: serialize_user_VerifyWithdrawalTwoFaAuthorizationRequest,
2870
+ requestDeserialize: deserialize_user_VerifyWithdrawalTwoFaAuthorizationRequest,
2871
+ responseSerialize: serialize_user_VerifyWithdrawalTwoFaAuthorizationResponse,
2872
+ responseDeserialize: deserialize_user_VerifyWithdrawalTwoFaAuthorizationResponse,
2873
+ },
2807
2874
  getUserData: {
2808
2875
  path: '/user.User/getUserData',
2809
2876
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -37,6 +37,8 @@ goog.exportSymbol('proto.user.BatchGetAffiliateAttributionRequest', null, global
37
37
  goog.exportSymbol('proto.user.BatchGetAffiliateAttributionResponse', null, global);
38
38
  goog.exportSymbol('proto.user.BeginUserTwoFaSetupRequest', null, global);
39
39
  goog.exportSymbol('proto.user.BeginUserTwoFaSetupResponse', null, global);
40
+ goog.exportSymbol('proto.user.BeginWithdrawalTwoFaAuthorizationRequest', null, global);
41
+ goog.exportSymbol('proto.user.BeginWithdrawalTwoFaAuthorizationResponse', null, global);
40
42
  goog.exportSymbol('proto.user.CalculatedRestrictionLimit', null, global);
41
43
  goog.exportSymbol('proto.user.CategoryItem', null, global);
42
44
  goog.exportSymbol('proto.user.CategoryItemsResponse', null, global);
@@ -342,6 +344,8 @@ goog.exportSymbol('proto.user.VerificationStatus', null, global);
342
344
  goog.exportSymbol('proto.user.VerificationStatusItemsResponse', null, global);
343
345
  goog.exportSymbol('proto.user.VerifySmsResetPasswordCodeRequest', null, global);
344
346
  goog.exportSymbol('proto.user.VerifySmsResetPasswordCodeResponse', null, global);
347
+ goog.exportSymbol('proto.user.VerifyWithdrawalTwoFaAuthorizationRequest', null, global);
348
+ goog.exportSymbol('proto.user.VerifyWithdrawalTwoFaAuthorizationResponse', null, global);
345
349
  goog.exportSymbol('proto.user.VkCommonIdLoginRequest', null, global);
346
350
  goog.exportSymbol('proto.user.WalletPreferenceResponse', null, global);
347
351
  goog.exportSymbol('proto.user.XLoginRequest', null, global);
@@ -850,6 +854,90 @@ if (goog.DEBUG && !COMPILED) {
850
854
  */
851
855
  proto.user.ConfirmUserTwoFaActionResponse.displayName = 'proto.user.ConfirmUserTwoFaActionResponse';
852
856
  }
857
+ /**
858
+ * Generated by JsPbCodeGenerator.
859
+ * @param {Array=} opt_data Optional initial data array, typically from a
860
+ * server response, or constructed directly in Javascript. The array is used
861
+ * in place and becomes part of the constructed object. It is not cloned.
862
+ * If no data is provided, the constructed object will be empty, but still
863
+ * valid.
864
+ * @extends {jspb.Message}
865
+ * @constructor
866
+ */
867
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest = function(opt_data) {
868
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
869
+ };
870
+ goog.inherits(proto.user.BeginWithdrawalTwoFaAuthorizationRequest, jspb.Message);
871
+ if (goog.DEBUG && !COMPILED) {
872
+ /**
873
+ * @public
874
+ * @override
875
+ */
876
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.displayName = 'proto.user.BeginWithdrawalTwoFaAuthorizationRequest';
877
+ }
878
+ /**
879
+ * Generated by JsPbCodeGenerator.
880
+ * @param {Array=} opt_data Optional initial data array, typically from a
881
+ * server response, or constructed directly in Javascript. The array is used
882
+ * in place and becomes part of the constructed object. It is not cloned.
883
+ * If no data is provided, the constructed object will be empty, but still
884
+ * valid.
885
+ * @extends {jspb.Message}
886
+ * @constructor
887
+ */
888
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse = function(opt_data) {
889
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
890
+ };
891
+ goog.inherits(proto.user.BeginWithdrawalTwoFaAuthorizationResponse, jspb.Message);
892
+ if (goog.DEBUG && !COMPILED) {
893
+ /**
894
+ * @public
895
+ * @override
896
+ */
897
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.displayName = 'proto.user.BeginWithdrawalTwoFaAuthorizationResponse';
898
+ }
899
+ /**
900
+ * Generated by JsPbCodeGenerator.
901
+ * @param {Array=} opt_data Optional initial data array, typically from a
902
+ * server response, or constructed directly in Javascript. The array is used
903
+ * in place and becomes part of the constructed object. It is not cloned.
904
+ * If no data is provided, the constructed object will be empty, but still
905
+ * valid.
906
+ * @extends {jspb.Message}
907
+ * @constructor
908
+ */
909
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest = function(opt_data) {
910
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
911
+ };
912
+ goog.inherits(proto.user.VerifyWithdrawalTwoFaAuthorizationRequest, jspb.Message);
913
+ if (goog.DEBUG && !COMPILED) {
914
+ /**
915
+ * @public
916
+ * @override
917
+ */
918
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.displayName = 'proto.user.VerifyWithdrawalTwoFaAuthorizationRequest';
919
+ }
920
+ /**
921
+ * Generated by JsPbCodeGenerator.
922
+ * @param {Array=} opt_data Optional initial data array, typically from a
923
+ * server response, or constructed directly in Javascript. The array is used
924
+ * in place and becomes part of the constructed object. It is not cloned.
925
+ * If no data is provided, the constructed object will be empty, but still
926
+ * valid.
927
+ * @extends {jspb.Message}
928
+ * @constructor
929
+ */
930
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse = function(opt_data) {
931
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
932
+ };
933
+ goog.inherits(proto.user.VerifyWithdrawalTwoFaAuthorizationResponse, jspb.Message);
934
+ if (goog.DEBUG && !COMPILED) {
935
+ /**
936
+ * @public
937
+ * @override
938
+ */
939
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.displayName = 'proto.user.VerifyWithdrawalTwoFaAuthorizationResponse';
940
+ }
853
941
  /**
854
942
  * Generated by JsPbCodeGenerator.
855
943
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -21708,6 +21796,802 @@ proto.user.ConfirmUserTwoFaActionResponse.prototype.hasMetadata = function() {
21708
21796
 
21709
21797
 
21710
21798
 
21799
+ if (jspb.Message.GENERATE_TO_OBJECT) {
21800
+ /**
21801
+ * Creates an object representation of this proto.
21802
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
21803
+ * Optional fields that are not set will be set to undefined.
21804
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
21805
+ * For the list of reserved names please see:
21806
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
21807
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
21808
+ * JSPB instance for transitional soy proto support:
21809
+ * http://goto/soy-param-migration
21810
+ * @return {!Object}
21811
+ */
21812
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.toObject = function(opt_includeInstance) {
21813
+ return proto.user.BeginWithdrawalTwoFaAuthorizationRequest.toObject(opt_includeInstance, this);
21814
+ };
21815
+
21816
+
21817
+ /**
21818
+ * Static version of the {@see toObject} method.
21819
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
21820
+ * the JSPB instance for transitional soy proto support:
21821
+ * http://goto/soy-param-migration
21822
+ * @param {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest} msg The msg instance to transform.
21823
+ * @return {!Object}
21824
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21825
+ */
21826
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.toObject = function(includeInstance, msg) {
21827
+ var f, obj = {
21828
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
21829
+ userSessionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
21830
+ intentHash: jspb.Message.getFieldWithDefault(msg, 3, "")
21831
+ };
21832
+
21833
+ if (includeInstance) {
21834
+ obj.$jspbMessageInstance = msg;
21835
+ }
21836
+ return obj;
21837
+ };
21838
+ }
21839
+
21840
+
21841
+ /**
21842
+ * Deserializes binary data (in protobuf wire format).
21843
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
21844
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest}
21845
+ */
21846
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.deserializeBinary = function(bytes) {
21847
+ var reader = new jspb.BinaryReader(bytes);
21848
+ var msg = new proto.user.BeginWithdrawalTwoFaAuthorizationRequest;
21849
+ return proto.user.BeginWithdrawalTwoFaAuthorizationRequest.deserializeBinaryFromReader(msg, reader);
21850
+ };
21851
+
21852
+
21853
+ /**
21854
+ * Deserializes binary data (in protobuf wire format) from the
21855
+ * given reader into the given message object.
21856
+ * @param {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest} msg The message object to deserialize into.
21857
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
21858
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest}
21859
+ */
21860
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.deserializeBinaryFromReader = function(msg, reader) {
21861
+ while (reader.nextField()) {
21862
+ if (reader.isEndGroup()) {
21863
+ break;
21864
+ }
21865
+ var field = reader.getFieldNumber();
21866
+ switch (field) {
21867
+ case 1:
21868
+ var value = /** @type {number} */ (reader.readInt32());
21869
+ msg.setUserId(value);
21870
+ break;
21871
+ case 2:
21872
+ var value = /** @type {string} */ (reader.readString());
21873
+ msg.setUserSessionId(value);
21874
+ break;
21875
+ case 3:
21876
+ var value = /** @type {string} */ (reader.readString());
21877
+ msg.setIntentHash(value);
21878
+ break;
21879
+ default:
21880
+ reader.skipField();
21881
+ break;
21882
+ }
21883
+ }
21884
+ return msg;
21885
+ };
21886
+
21887
+
21888
+ /**
21889
+ * Serializes the message to binary data (in protobuf wire format).
21890
+ * @return {!Uint8Array}
21891
+ */
21892
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.serializeBinary = function() {
21893
+ var writer = new jspb.BinaryWriter();
21894
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.serializeBinaryToWriter(this, writer);
21895
+ return writer.getResultBuffer();
21896
+ };
21897
+
21898
+
21899
+ /**
21900
+ * Serializes the given message to binary data (in protobuf wire
21901
+ * format), writing to the given BinaryWriter.
21902
+ * @param {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest} message
21903
+ * @param {!jspb.BinaryWriter} writer
21904
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21905
+ */
21906
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.serializeBinaryToWriter = function(message, writer) {
21907
+ var f = undefined;
21908
+ f = message.getUserId();
21909
+ if (f !== 0) {
21910
+ writer.writeInt32(
21911
+ 1,
21912
+ f
21913
+ );
21914
+ }
21915
+ f = message.getUserSessionId();
21916
+ if (f.length > 0) {
21917
+ writer.writeString(
21918
+ 2,
21919
+ f
21920
+ );
21921
+ }
21922
+ f = message.getIntentHash();
21923
+ if (f.length > 0) {
21924
+ writer.writeString(
21925
+ 3,
21926
+ f
21927
+ );
21928
+ }
21929
+ };
21930
+
21931
+
21932
+ /**
21933
+ * optional int32 user_id = 1;
21934
+ * @return {number}
21935
+ */
21936
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.getUserId = function() {
21937
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
21938
+ };
21939
+
21940
+
21941
+ /**
21942
+ * @param {number} value
21943
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest} returns this
21944
+ */
21945
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.setUserId = function(value) {
21946
+ return jspb.Message.setProto3IntField(this, 1, value);
21947
+ };
21948
+
21949
+
21950
+ /**
21951
+ * optional string user_session_id = 2;
21952
+ * @return {string}
21953
+ */
21954
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.getUserSessionId = function() {
21955
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
21956
+ };
21957
+
21958
+
21959
+ /**
21960
+ * @param {string} value
21961
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest} returns this
21962
+ */
21963
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.setUserSessionId = function(value) {
21964
+ return jspb.Message.setProto3StringField(this, 2, value);
21965
+ };
21966
+
21967
+
21968
+ /**
21969
+ * optional string intent_hash = 3;
21970
+ * @return {string}
21971
+ */
21972
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.getIntentHash = function() {
21973
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
21974
+ };
21975
+
21976
+
21977
+ /**
21978
+ * @param {string} value
21979
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationRequest} returns this
21980
+ */
21981
+ proto.user.BeginWithdrawalTwoFaAuthorizationRequest.prototype.setIntentHash = function(value) {
21982
+ return jspb.Message.setProto3StringField(this, 3, value);
21983
+ };
21984
+
21985
+
21986
+
21987
+
21988
+
21989
+ if (jspb.Message.GENERATE_TO_OBJECT) {
21990
+ /**
21991
+ * Creates an object representation of this proto.
21992
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
21993
+ * Optional fields that are not set will be set to undefined.
21994
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
21995
+ * For the list of reserved names please see:
21996
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
21997
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
21998
+ * JSPB instance for transitional soy proto support:
21999
+ * http://goto/soy-param-migration
22000
+ * @return {!Object}
22001
+ */
22002
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.toObject = function(opt_includeInstance) {
22003
+ return proto.user.BeginWithdrawalTwoFaAuthorizationResponse.toObject(opt_includeInstance, this);
22004
+ };
22005
+
22006
+
22007
+ /**
22008
+ * Static version of the {@see toObject} method.
22009
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22010
+ * the JSPB instance for transitional soy proto support:
22011
+ * http://goto/soy-param-migration
22012
+ * @param {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} msg The msg instance to transform.
22013
+ * @return {!Object}
22014
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22015
+ */
22016
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.toObject = function(includeInstance, msg) {
22017
+ var f, obj = {
22018
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
22019
+ tempToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
22020
+ expiresInSeconds: jspb.Message.getFieldWithDefault(msg, 3, 0)
22021
+ };
22022
+
22023
+ if (includeInstance) {
22024
+ obj.$jspbMessageInstance = msg;
22025
+ }
22026
+ return obj;
22027
+ };
22028
+ }
22029
+
22030
+
22031
+ /**
22032
+ * Deserializes binary data (in protobuf wire format).
22033
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22034
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse}
22035
+ */
22036
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.deserializeBinary = function(bytes) {
22037
+ var reader = new jspb.BinaryReader(bytes);
22038
+ var msg = new proto.user.BeginWithdrawalTwoFaAuthorizationResponse;
22039
+ return proto.user.BeginWithdrawalTwoFaAuthorizationResponse.deserializeBinaryFromReader(msg, reader);
22040
+ };
22041
+
22042
+
22043
+ /**
22044
+ * Deserializes binary data (in protobuf wire format) from the
22045
+ * given reader into the given message object.
22046
+ * @param {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} msg The message object to deserialize into.
22047
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22048
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse}
22049
+ */
22050
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.deserializeBinaryFromReader = function(msg, reader) {
22051
+ while (reader.nextField()) {
22052
+ if (reader.isEndGroup()) {
22053
+ break;
22054
+ }
22055
+ var field = reader.getFieldNumber();
22056
+ switch (field) {
22057
+ case 1:
22058
+ var value = /** @type {string} */ (reader.readString());
22059
+ msg.setStatus(value);
22060
+ break;
22061
+ case 2:
22062
+ var value = /** @type {string} */ (reader.readString());
22063
+ msg.setTempToken(value);
22064
+ break;
22065
+ case 3:
22066
+ var value = /** @type {number} */ (reader.readInt32());
22067
+ msg.setExpiresInSeconds(value);
22068
+ break;
22069
+ default:
22070
+ reader.skipField();
22071
+ break;
22072
+ }
22073
+ }
22074
+ return msg;
22075
+ };
22076
+
22077
+
22078
+ /**
22079
+ * Serializes the message to binary data (in protobuf wire format).
22080
+ * @return {!Uint8Array}
22081
+ */
22082
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.serializeBinary = function() {
22083
+ var writer = new jspb.BinaryWriter();
22084
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.serializeBinaryToWriter(this, writer);
22085
+ return writer.getResultBuffer();
22086
+ };
22087
+
22088
+
22089
+ /**
22090
+ * Serializes the given message to binary data (in protobuf wire
22091
+ * format), writing to the given BinaryWriter.
22092
+ * @param {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} message
22093
+ * @param {!jspb.BinaryWriter} writer
22094
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22095
+ */
22096
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.serializeBinaryToWriter = function(message, writer) {
22097
+ var f = undefined;
22098
+ f = message.getStatus();
22099
+ if (f.length > 0) {
22100
+ writer.writeString(
22101
+ 1,
22102
+ f
22103
+ );
22104
+ }
22105
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
22106
+ if (f != null) {
22107
+ writer.writeString(
22108
+ 2,
22109
+ f
22110
+ );
22111
+ }
22112
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
22113
+ if (f != null) {
22114
+ writer.writeInt32(
22115
+ 3,
22116
+ f
22117
+ );
22118
+ }
22119
+ };
22120
+
22121
+
22122
+ /**
22123
+ * optional string status = 1;
22124
+ * @return {string}
22125
+ */
22126
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.getStatus = function() {
22127
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
22128
+ };
22129
+
22130
+
22131
+ /**
22132
+ * @param {string} value
22133
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} returns this
22134
+ */
22135
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.setStatus = function(value) {
22136
+ return jspb.Message.setProto3StringField(this, 1, value);
22137
+ };
22138
+
22139
+
22140
+ /**
22141
+ * optional string temp_token = 2;
22142
+ * @return {string}
22143
+ */
22144
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.getTempToken = function() {
22145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
22146
+ };
22147
+
22148
+
22149
+ /**
22150
+ * @param {string} value
22151
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} returns this
22152
+ */
22153
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.setTempToken = function(value) {
22154
+ return jspb.Message.setField(this, 2, value);
22155
+ };
22156
+
22157
+
22158
+ /**
22159
+ * Clears the field making it undefined.
22160
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} returns this
22161
+ */
22162
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.clearTempToken = function() {
22163
+ return jspb.Message.setField(this, 2, undefined);
22164
+ };
22165
+
22166
+
22167
+ /**
22168
+ * Returns whether this field is set.
22169
+ * @return {boolean}
22170
+ */
22171
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.hasTempToken = function() {
22172
+ return jspb.Message.getField(this, 2) != null;
22173
+ };
22174
+
22175
+
22176
+ /**
22177
+ * optional int32 expires_in_seconds = 3;
22178
+ * @return {number}
22179
+ */
22180
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.getExpiresInSeconds = function() {
22181
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
22182
+ };
22183
+
22184
+
22185
+ /**
22186
+ * @param {number} value
22187
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} returns this
22188
+ */
22189
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.setExpiresInSeconds = function(value) {
22190
+ return jspb.Message.setField(this, 3, value);
22191
+ };
22192
+
22193
+
22194
+ /**
22195
+ * Clears the field making it undefined.
22196
+ * @return {!proto.user.BeginWithdrawalTwoFaAuthorizationResponse} returns this
22197
+ */
22198
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.clearExpiresInSeconds = function() {
22199
+ return jspb.Message.setField(this, 3, undefined);
22200
+ };
22201
+
22202
+
22203
+ /**
22204
+ * Returns whether this field is set.
22205
+ * @return {boolean}
22206
+ */
22207
+ proto.user.BeginWithdrawalTwoFaAuthorizationResponse.prototype.hasExpiresInSeconds = function() {
22208
+ return jspb.Message.getField(this, 3) != null;
22209
+ };
22210
+
22211
+
22212
+
22213
+
22214
+
22215
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22216
+ /**
22217
+ * Creates an object representation of this proto.
22218
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22219
+ * Optional fields that are not set will be set to undefined.
22220
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22221
+ * For the list of reserved names please see:
22222
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22223
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22224
+ * JSPB instance for transitional soy proto support:
22225
+ * http://goto/soy-param-migration
22226
+ * @return {!Object}
22227
+ */
22228
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.toObject = function(opt_includeInstance) {
22229
+ return proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.toObject(opt_includeInstance, this);
22230
+ };
22231
+
22232
+
22233
+ /**
22234
+ * Static version of the {@see toObject} method.
22235
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22236
+ * the JSPB instance for transitional soy proto support:
22237
+ * http://goto/soy-param-migration
22238
+ * @param {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} msg The msg instance to transform.
22239
+ * @return {!Object}
22240
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22241
+ */
22242
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.toObject = function(includeInstance, msg) {
22243
+ var f, obj = {
22244
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
22245
+ userSessionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
22246
+ intentHash: jspb.Message.getFieldWithDefault(msg, 3, ""),
22247
+ tempToken: jspb.Message.getFieldWithDefault(msg, 4, ""),
22248
+ code: jspb.Message.getFieldWithDefault(msg, 5, "")
22249
+ };
22250
+
22251
+ if (includeInstance) {
22252
+ obj.$jspbMessageInstance = msg;
22253
+ }
22254
+ return obj;
22255
+ };
22256
+ }
22257
+
22258
+
22259
+ /**
22260
+ * Deserializes binary data (in protobuf wire format).
22261
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22262
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest}
22263
+ */
22264
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.deserializeBinary = function(bytes) {
22265
+ var reader = new jspb.BinaryReader(bytes);
22266
+ var msg = new proto.user.VerifyWithdrawalTwoFaAuthorizationRequest;
22267
+ return proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.deserializeBinaryFromReader(msg, reader);
22268
+ };
22269
+
22270
+
22271
+ /**
22272
+ * Deserializes binary data (in protobuf wire format) from the
22273
+ * given reader into the given message object.
22274
+ * @param {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} msg The message object to deserialize into.
22275
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22276
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest}
22277
+ */
22278
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.deserializeBinaryFromReader = function(msg, reader) {
22279
+ while (reader.nextField()) {
22280
+ if (reader.isEndGroup()) {
22281
+ break;
22282
+ }
22283
+ var field = reader.getFieldNumber();
22284
+ switch (field) {
22285
+ case 1:
22286
+ var value = /** @type {number} */ (reader.readInt32());
22287
+ msg.setUserId(value);
22288
+ break;
22289
+ case 2:
22290
+ var value = /** @type {string} */ (reader.readString());
22291
+ msg.setUserSessionId(value);
22292
+ break;
22293
+ case 3:
22294
+ var value = /** @type {string} */ (reader.readString());
22295
+ msg.setIntentHash(value);
22296
+ break;
22297
+ case 4:
22298
+ var value = /** @type {string} */ (reader.readString());
22299
+ msg.setTempToken(value);
22300
+ break;
22301
+ case 5:
22302
+ var value = /** @type {string} */ (reader.readString());
22303
+ msg.setCode(value);
22304
+ break;
22305
+ default:
22306
+ reader.skipField();
22307
+ break;
22308
+ }
22309
+ }
22310
+ return msg;
22311
+ };
22312
+
22313
+
22314
+ /**
22315
+ * Serializes the message to binary data (in protobuf wire format).
22316
+ * @return {!Uint8Array}
22317
+ */
22318
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.serializeBinary = function() {
22319
+ var writer = new jspb.BinaryWriter();
22320
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.serializeBinaryToWriter(this, writer);
22321
+ return writer.getResultBuffer();
22322
+ };
22323
+
22324
+
22325
+ /**
22326
+ * Serializes the given message to binary data (in protobuf wire
22327
+ * format), writing to the given BinaryWriter.
22328
+ * @param {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} message
22329
+ * @param {!jspb.BinaryWriter} writer
22330
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22331
+ */
22332
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.serializeBinaryToWriter = function(message, writer) {
22333
+ var f = undefined;
22334
+ f = message.getUserId();
22335
+ if (f !== 0) {
22336
+ writer.writeInt32(
22337
+ 1,
22338
+ f
22339
+ );
22340
+ }
22341
+ f = message.getUserSessionId();
22342
+ if (f.length > 0) {
22343
+ writer.writeString(
22344
+ 2,
22345
+ f
22346
+ );
22347
+ }
22348
+ f = message.getIntentHash();
22349
+ if (f.length > 0) {
22350
+ writer.writeString(
22351
+ 3,
22352
+ f
22353
+ );
22354
+ }
22355
+ f = message.getTempToken();
22356
+ if (f.length > 0) {
22357
+ writer.writeString(
22358
+ 4,
22359
+ f
22360
+ );
22361
+ }
22362
+ f = message.getCode();
22363
+ if (f.length > 0) {
22364
+ writer.writeString(
22365
+ 5,
22366
+ f
22367
+ );
22368
+ }
22369
+ };
22370
+
22371
+
22372
+ /**
22373
+ * optional int32 user_id = 1;
22374
+ * @return {number}
22375
+ */
22376
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.getUserId = function() {
22377
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
22378
+ };
22379
+
22380
+
22381
+ /**
22382
+ * @param {number} value
22383
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} returns this
22384
+ */
22385
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.setUserId = function(value) {
22386
+ return jspb.Message.setProto3IntField(this, 1, value);
22387
+ };
22388
+
22389
+
22390
+ /**
22391
+ * optional string user_session_id = 2;
22392
+ * @return {string}
22393
+ */
22394
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.getUserSessionId = function() {
22395
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
22396
+ };
22397
+
22398
+
22399
+ /**
22400
+ * @param {string} value
22401
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} returns this
22402
+ */
22403
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.setUserSessionId = function(value) {
22404
+ return jspb.Message.setProto3StringField(this, 2, value);
22405
+ };
22406
+
22407
+
22408
+ /**
22409
+ * optional string intent_hash = 3;
22410
+ * @return {string}
22411
+ */
22412
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.getIntentHash = function() {
22413
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
22414
+ };
22415
+
22416
+
22417
+ /**
22418
+ * @param {string} value
22419
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} returns this
22420
+ */
22421
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.setIntentHash = function(value) {
22422
+ return jspb.Message.setProto3StringField(this, 3, value);
22423
+ };
22424
+
22425
+
22426
+ /**
22427
+ * optional string temp_token = 4;
22428
+ * @return {string}
22429
+ */
22430
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.getTempToken = function() {
22431
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
22432
+ };
22433
+
22434
+
22435
+ /**
22436
+ * @param {string} value
22437
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} returns this
22438
+ */
22439
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.setTempToken = function(value) {
22440
+ return jspb.Message.setProto3StringField(this, 4, value);
22441
+ };
22442
+
22443
+
22444
+ /**
22445
+ * optional string code = 5;
22446
+ * @return {string}
22447
+ */
22448
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.getCode = function() {
22449
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
22450
+ };
22451
+
22452
+
22453
+ /**
22454
+ * @param {string} value
22455
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationRequest} returns this
22456
+ */
22457
+ proto.user.VerifyWithdrawalTwoFaAuthorizationRequest.prototype.setCode = function(value) {
22458
+ return jspb.Message.setProto3StringField(this, 5, value);
22459
+ };
22460
+
22461
+
22462
+
22463
+
22464
+
22465
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22466
+ /**
22467
+ * Creates an object representation of this proto.
22468
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22469
+ * Optional fields that are not set will be set to undefined.
22470
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22471
+ * For the list of reserved names please see:
22472
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22473
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22474
+ * JSPB instance for transitional soy proto support:
22475
+ * http://goto/soy-param-migration
22476
+ * @return {!Object}
22477
+ */
22478
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.prototype.toObject = function(opt_includeInstance) {
22479
+ return proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.toObject(opt_includeInstance, this);
22480
+ };
22481
+
22482
+
22483
+ /**
22484
+ * Static version of the {@see toObject} method.
22485
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22486
+ * the JSPB instance for transitional soy proto support:
22487
+ * http://goto/soy-param-migration
22488
+ * @param {!proto.user.VerifyWithdrawalTwoFaAuthorizationResponse} msg The msg instance to transform.
22489
+ * @return {!Object}
22490
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22491
+ */
22492
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.toObject = function(includeInstance, msg) {
22493
+ var f, obj = {
22494
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
22495
+ };
22496
+
22497
+ if (includeInstance) {
22498
+ obj.$jspbMessageInstance = msg;
22499
+ }
22500
+ return obj;
22501
+ };
22502
+ }
22503
+
22504
+
22505
+ /**
22506
+ * Deserializes binary data (in protobuf wire format).
22507
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22508
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationResponse}
22509
+ */
22510
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.deserializeBinary = function(bytes) {
22511
+ var reader = new jspb.BinaryReader(bytes);
22512
+ var msg = new proto.user.VerifyWithdrawalTwoFaAuthorizationResponse;
22513
+ return proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.deserializeBinaryFromReader(msg, reader);
22514
+ };
22515
+
22516
+
22517
+ /**
22518
+ * Deserializes binary data (in protobuf wire format) from the
22519
+ * given reader into the given message object.
22520
+ * @param {!proto.user.VerifyWithdrawalTwoFaAuthorizationResponse} msg The message object to deserialize into.
22521
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22522
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationResponse}
22523
+ */
22524
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.deserializeBinaryFromReader = function(msg, reader) {
22525
+ while (reader.nextField()) {
22526
+ if (reader.isEndGroup()) {
22527
+ break;
22528
+ }
22529
+ var field = reader.getFieldNumber();
22530
+ switch (field) {
22531
+ case 1:
22532
+ var value = /** @type {string} */ (reader.readString());
22533
+ msg.setStatus(value);
22534
+ break;
22535
+ default:
22536
+ reader.skipField();
22537
+ break;
22538
+ }
22539
+ }
22540
+ return msg;
22541
+ };
22542
+
22543
+
22544
+ /**
22545
+ * Serializes the message to binary data (in protobuf wire format).
22546
+ * @return {!Uint8Array}
22547
+ */
22548
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.prototype.serializeBinary = function() {
22549
+ var writer = new jspb.BinaryWriter();
22550
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.serializeBinaryToWriter(this, writer);
22551
+ return writer.getResultBuffer();
22552
+ };
22553
+
22554
+
22555
+ /**
22556
+ * Serializes the given message to binary data (in protobuf wire
22557
+ * format), writing to the given BinaryWriter.
22558
+ * @param {!proto.user.VerifyWithdrawalTwoFaAuthorizationResponse} message
22559
+ * @param {!jspb.BinaryWriter} writer
22560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22561
+ */
22562
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.serializeBinaryToWriter = function(message, writer) {
22563
+ var f = undefined;
22564
+ f = message.getStatus();
22565
+ if (f.length > 0) {
22566
+ writer.writeString(
22567
+ 1,
22568
+ f
22569
+ );
22570
+ }
22571
+ };
22572
+
22573
+
22574
+ /**
22575
+ * optional string status = 1;
22576
+ * @return {string}
22577
+ */
22578
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.prototype.getStatus = function() {
22579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
22580
+ };
22581
+
22582
+
22583
+ /**
22584
+ * @param {string} value
22585
+ * @return {!proto.user.VerifyWithdrawalTwoFaAuthorizationResponse} returns this
22586
+ */
22587
+ proto.user.VerifyWithdrawalTwoFaAuthorizationResponse.prototype.setStatus = function(value) {
22588
+ return jspb.Message.setProto3StringField(this, 1, value);
22589
+ };
22590
+
22591
+
22592
+
22593
+
22594
+
21711
22595
  if (jspb.Message.GENERATE_TO_OBJECT) {
21712
22596
  /**
21713
22597
  * Creates an object representation of this proto.