protobuf-platform 1.1.96 → 1.1.98

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.1.96",
3
+ "version": "1.1.98",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -16,6 +16,7 @@ service User {
16
16
  rpc readListUsers(PaginationRequest) returns (UsersResponse);
17
17
  rpc updateSingleUser(UserRequest) returns (UserDataResponse);
18
18
  rpc updateUserPassword(UserPasswordRequest) returns (UserStatusResponse);
19
+ rpc setUserSelfExclusion(UserRequest) returns (UserStatusResponse);
19
20
  //Segments
20
21
  rpc createSingleSegment(SegmentRequest) returns (SegmentResponse);
21
22
  rpc readSingleSegment(GetSegmentRequest) returns (SegmentResponse);
@@ -54,6 +55,8 @@ service User {
54
55
  //Confirmations
55
56
  rpc attemptEmailConfirmation(EmailConfirmationRequest) returns (ConfirmationStatusResponse);
56
57
  rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
58
+ rpc attemptResetPasswordConfirmation(ResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
59
+ rpc setNewPassword(SetNewPasswordConfirmedRequest) returns (ConfirmationStatusResponse);
57
60
  }
58
61
  //Technical
59
62
  message PingRequest { string ping = 1; }
@@ -168,6 +171,7 @@ message UserRequest {
168
171
  optional int32 block_user = 19;
169
172
  optional int32 block_deposit = 20;
170
173
  optional int32 block_bet = 21;
174
+ optional string self_exclusion_date = 22;
171
175
  }
172
176
  message UserDataResponse {
173
177
  int32 id = 1;
@@ -570,9 +574,16 @@ message TournamentRulesInfoResponse {
570
574
  message EmailConfirmationRequest {
571
575
  int32 user_id = 1;
572
576
  }
577
+ message ResetPasswordConfirmationRequest {
578
+ int32 user_id = 1;
579
+ }
573
580
  message ConfirmationStatusResponse {
574
581
  string status = 1;
575
582
  }
576
583
  message EmailConfirmedRequest {
577
584
  string token = 1;
578
- }
585
+ }
586
+ message SetNewPasswordConfirmedRequest {
587
+ string token = 1;
588
+ string new_password = 2;
589
+ }
@@ -257,6 +257,17 @@ function deserialize_user_RegistrationRequest(buffer_arg) {
257
257
  return user_pb.RegistrationRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
258
  }
259
259
 
260
+ function serialize_user_ResetPasswordConfirmationRequest(arg) {
261
+ if (!(arg instanceof user_pb.ResetPasswordConfirmationRequest)) {
262
+ throw new Error('Expected argument of type user.ResetPasswordConfirmationRequest');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_user_ResetPasswordConfirmationRequest(buffer_arg) {
268
+ return user_pb.ResetPasswordConfirmationRequest.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
260
271
  function serialize_user_RiskStatusItemsResponse(arg) {
261
272
  if (!(arg instanceof user_pb.RiskStatusItemsResponse)) {
262
273
  throw new Error('Expected argument of type user.RiskStatusItemsResponse');
@@ -378,6 +389,17 @@ function deserialize_user_SegmentStatusResponse(buffer_arg) {
378
389
  return user_pb.SegmentStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
379
390
  }
380
391
 
392
+ function serialize_user_SetNewPasswordConfirmedRequest(arg) {
393
+ if (!(arg instanceof user_pb.SetNewPasswordConfirmedRequest)) {
394
+ throw new Error('Expected argument of type user.SetNewPasswordConfirmedRequest');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_user_SetNewPasswordConfirmedRequest(buffer_arg) {
400
+ return user_pb.SetNewPasswordConfirmedRequest.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
381
403
  function serialize_user_SumSubApplicantRequest(arg) {
382
404
  if (!(arg instanceof user_pb.SumSubApplicantRequest)) {
383
405
  throw new Error('Expected argument of type user.SumSubApplicantRequest');
@@ -636,6 +658,17 @@ readListUsers: {
636
658
  responseSerialize: serialize_user_UserStatusResponse,
637
659
  responseDeserialize: deserialize_user_UserStatusResponse,
638
660
  },
661
+ setUserSelfExclusion: {
662
+ path: '/user.User/setUserSelfExclusion',
663
+ requestStream: false,
664
+ responseStream: false,
665
+ requestType: user_pb.UserRequest,
666
+ responseType: user_pb.UserStatusResponse,
667
+ requestSerialize: serialize_user_UserRequest,
668
+ requestDeserialize: deserialize_user_UserRequest,
669
+ responseSerialize: serialize_user_UserStatusResponse,
670
+ responseDeserialize: deserialize_user_UserStatusResponse,
671
+ },
639
672
  // Segments
640
673
  createSingleSegment: {
641
674
  path: '/user.User/createSingleSegment',
@@ -954,6 +987,28 @@ attemptEmailConfirmation: {
954
987
  responseSerialize: serialize_user_ConfirmationStatusResponse,
955
988
  responseDeserialize: deserialize_user_ConfirmationStatusResponse,
956
989
  },
990
+ attemptResetPasswordConfirmation: {
991
+ path: '/user.User/attemptResetPasswordConfirmation',
992
+ requestStream: false,
993
+ responseStream: false,
994
+ requestType: user_pb.ResetPasswordConfirmationRequest,
995
+ responseType: user_pb.ConfirmationStatusResponse,
996
+ requestSerialize: serialize_user_ResetPasswordConfirmationRequest,
997
+ requestDeserialize: deserialize_user_ResetPasswordConfirmationRequest,
998
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
999
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
1000
+ },
1001
+ setNewPassword: {
1002
+ path: '/user.User/setNewPassword',
1003
+ requestStream: false,
1004
+ responseStream: false,
1005
+ requestType: user_pb.SetNewPasswordConfirmedRequest,
1006
+ responseType: user_pb.ConfirmationStatusResponse,
1007
+ requestSerialize: serialize_user_SetNewPasswordConfirmedRequest,
1008
+ requestDeserialize: deserialize_user_SetNewPasswordConfirmedRequest,
1009
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
1010
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
1011
+ },
957
1012
  };
958
1013
 
959
1014
  exports.UserClient = grpc.makeGenericClientConstructor(UserService);
package/user/user_pb.js CHANGED
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.user.PaginationRequest', null, global);
47
47
  goog.exportSymbol('proto.user.PingRequest', null, global);
48
48
  goog.exportSymbol('proto.user.PongResponse', null, global);
49
49
  goog.exportSymbol('proto.user.RegistrationRequest', null, global);
50
+ goog.exportSymbol('proto.user.ResetPasswordConfirmationRequest', null, global);
50
51
  goog.exportSymbol('proto.user.RiskStatus', null, global);
51
52
  goog.exportSymbol('proto.user.RiskStatusItemsResponse', null, global);
52
53
  goog.exportSymbol('proto.user.Role', null, global);
@@ -70,6 +71,7 @@ goog.exportSymbol('proto.user.SegmentSearchParams', null, global);
70
71
  goog.exportSymbol('proto.user.SegmentSessionRuleItem', null, global);
71
72
  goog.exportSymbol('proto.user.SegmentSessionRuleRequest', null, global);
72
73
  goog.exportSymbol('proto.user.SegmentStatusResponse', null, global);
74
+ goog.exportSymbol('proto.user.SetNewPasswordConfirmedRequest', null, global);
73
75
  goog.exportSymbol('proto.user.SumSubApplicantRequest', null, global);
74
76
  goog.exportSymbol('proto.user.SumSubDocumentItemRequest', null, global);
75
77
  goog.exportSymbol('proto.user.SumSubDocumentRequest', null, global);
@@ -1432,6 +1434,27 @@ if (goog.DEBUG && !COMPILED) {
1432
1434
  */
1433
1435
  proto.user.EmailConfirmationRequest.displayName = 'proto.user.EmailConfirmationRequest';
1434
1436
  }
1437
+ /**
1438
+ * Generated by JsPbCodeGenerator.
1439
+ * @param {Array=} opt_data Optional initial data array, typically from a
1440
+ * server response, or constructed directly in Javascript. The array is used
1441
+ * in place and becomes part of the constructed object. It is not cloned.
1442
+ * If no data is provided, the constructed object will be empty, but still
1443
+ * valid.
1444
+ * @extends {jspb.Message}
1445
+ * @constructor
1446
+ */
1447
+ proto.user.ResetPasswordConfirmationRequest = function(opt_data) {
1448
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1449
+ };
1450
+ goog.inherits(proto.user.ResetPasswordConfirmationRequest, jspb.Message);
1451
+ if (goog.DEBUG && !COMPILED) {
1452
+ /**
1453
+ * @public
1454
+ * @override
1455
+ */
1456
+ proto.user.ResetPasswordConfirmationRequest.displayName = 'proto.user.ResetPasswordConfirmationRequest';
1457
+ }
1435
1458
  /**
1436
1459
  * Generated by JsPbCodeGenerator.
1437
1460
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1474,6 +1497,27 @@ if (goog.DEBUG && !COMPILED) {
1474
1497
  */
1475
1498
  proto.user.EmailConfirmedRequest.displayName = 'proto.user.EmailConfirmedRequest';
1476
1499
  }
1500
+ /**
1501
+ * Generated by JsPbCodeGenerator.
1502
+ * @param {Array=} opt_data Optional initial data array, typically from a
1503
+ * server response, or constructed directly in Javascript. The array is used
1504
+ * in place and becomes part of the constructed object. It is not cloned.
1505
+ * If no data is provided, the constructed object will be empty, but still
1506
+ * valid.
1507
+ * @extends {jspb.Message}
1508
+ * @constructor
1509
+ */
1510
+ proto.user.SetNewPasswordConfirmedRequest = function(opt_data) {
1511
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1512
+ };
1513
+ goog.inherits(proto.user.SetNewPasswordConfirmedRequest, jspb.Message);
1514
+ if (goog.DEBUG && !COMPILED) {
1515
+ /**
1516
+ * @public
1517
+ * @override
1518
+ */
1519
+ proto.user.SetNewPasswordConfirmedRequest.displayName = 'proto.user.SetNewPasswordConfirmedRequest';
1520
+ }
1477
1521
 
1478
1522
 
1479
1523
 
@@ -5763,7 +5807,8 @@ proto.user.UserRequest.toObject = function(includeInstance, msg) {
5763
5807
  categoryId: jspb.Message.getFieldWithDefault(msg, 18, 0),
5764
5808
  blockUser: jspb.Message.getFieldWithDefault(msg, 19, 0),
5765
5809
  blockDeposit: jspb.Message.getFieldWithDefault(msg, 20, 0),
5766
- blockBet: jspb.Message.getFieldWithDefault(msg, 21, 0)
5810
+ blockBet: jspb.Message.getFieldWithDefault(msg, 21, 0),
5811
+ selfExclusionDate: jspb.Message.getFieldWithDefault(msg, 22, "")
5767
5812
  };
5768
5813
 
5769
5814
  if (includeInstance) {
@@ -5884,6 +5929,10 @@ proto.user.UserRequest.deserializeBinaryFromReader = function(msg, reader) {
5884
5929
  var value = /** @type {number} */ (reader.readInt32());
5885
5930
  msg.setBlockBet(value);
5886
5931
  break;
5932
+ case 22:
5933
+ var value = /** @type {string} */ (reader.readString());
5934
+ msg.setSelfExclusionDate(value);
5935
+ break;
5887
5936
  default:
5888
5937
  reader.skipField();
5889
5938
  break;
@@ -6060,6 +6109,13 @@ proto.user.UserRequest.serializeBinaryToWriter = function(message, writer) {
6060
6109
  f
6061
6110
  );
6062
6111
  }
6112
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
6113
+ if (f != null) {
6114
+ writer.writeString(
6115
+ 22,
6116
+ f
6117
+ );
6118
+ }
6063
6119
  };
6064
6120
 
6065
6121
 
@@ -6801,6 +6857,42 @@ proto.user.UserRequest.prototype.hasBlockBet = function() {
6801
6857
  };
6802
6858
 
6803
6859
 
6860
+ /**
6861
+ * optional string self_exclusion_date = 22;
6862
+ * @return {string}
6863
+ */
6864
+ proto.user.UserRequest.prototype.getSelfExclusionDate = function() {
6865
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
6866
+ };
6867
+
6868
+
6869
+ /**
6870
+ * @param {string} value
6871
+ * @return {!proto.user.UserRequest} returns this
6872
+ */
6873
+ proto.user.UserRequest.prototype.setSelfExclusionDate = function(value) {
6874
+ return jspb.Message.setField(this, 22, value);
6875
+ };
6876
+
6877
+
6878
+ /**
6879
+ * Clears the field making it undefined.
6880
+ * @return {!proto.user.UserRequest} returns this
6881
+ */
6882
+ proto.user.UserRequest.prototype.clearSelfExclusionDate = function() {
6883
+ return jspb.Message.setField(this, 22, undefined);
6884
+ };
6885
+
6886
+
6887
+ /**
6888
+ * Returns whether this field is set.
6889
+ * @return {boolean}
6890
+ */
6891
+ proto.user.UserRequest.prototype.hasSelfExclusionDate = function() {
6892
+ return jspb.Message.getField(this, 22) != null;
6893
+ };
6894
+
6895
+
6804
6896
 
6805
6897
 
6806
6898
 
@@ -25264,6 +25356,136 @@ proto.user.EmailConfirmationRequest.prototype.setUserId = function(value) {
25264
25356
 
25265
25357
 
25266
25358
 
25359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25360
+ /**
25361
+ * Creates an object representation of this proto.
25362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25363
+ * Optional fields that are not set will be set to undefined.
25364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25365
+ * For the list of reserved names please see:
25366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25368
+ * JSPB instance for transitional soy proto support:
25369
+ * http://goto/soy-param-migration
25370
+ * @return {!Object}
25371
+ */
25372
+ proto.user.ResetPasswordConfirmationRequest.prototype.toObject = function(opt_includeInstance) {
25373
+ return proto.user.ResetPasswordConfirmationRequest.toObject(opt_includeInstance, this);
25374
+ };
25375
+
25376
+
25377
+ /**
25378
+ * Static version of the {@see toObject} method.
25379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25380
+ * the JSPB instance for transitional soy proto support:
25381
+ * http://goto/soy-param-migration
25382
+ * @param {!proto.user.ResetPasswordConfirmationRequest} msg The msg instance to transform.
25383
+ * @return {!Object}
25384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25385
+ */
25386
+ proto.user.ResetPasswordConfirmationRequest.toObject = function(includeInstance, msg) {
25387
+ var f, obj = {
25388
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
25389
+ };
25390
+
25391
+ if (includeInstance) {
25392
+ obj.$jspbMessageInstance = msg;
25393
+ }
25394
+ return obj;
25395
+ };
25396
+ }
25397
+
25398
+
25399
+ /**
25400
+ * Deserializes binary data (in protobuf wire format).
25401
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25402
+ * @return {!proto.user.ResetPasswordConfirmationRequest}
25403
+ */
25404
+ proto.user.ResetPasswordConfirmationRequest.deserializeBinary = function(bytes) {
25405
+ var reader = new jspb.BinaryReader(bytes);
25406
+ var msg = new proto.user.ResetPasswordConfirmationRequest;
25407
+ return proto.user.ResetPasswordConfirmationRequest.deserializeBinaryFromReader(msg, reader);
25408
+ };
25409
+
25410
+
25411
+ /**
25412
+ * Deserializes binary data (in protobuf wire format) from the
25413
+ * given reader into the given message object.
25414
+ * @param {!proto.user.ResetPasswordConfirmationRequest} msg The message object to deserialize into.
25415
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25416
+ * @return {!proto.user.ResetPasswordConfirmationRequest}
25417
+ */
25418
+ proto.user.ResetPasswordConfirmationRequest.deserializeBinaryFromReader = function(msg, reader) {
25419
+ while (reader.nextField()) {
25420
+ if (reader.isEndGroup()) {
25421
+ break;
25422
+ }
25423
+ var field = reader.getFieldNumber();
25424
+ switch (field) {
25425
+ case 1:
25426
+ var value = /** @type {number} */ (reader.readInt32());
25427
+ msg.setUserId(value);
25428
+ break;
25429
+ default:
25430
+ reader.skipField();
25431
+ break;
25432
+ }
25433
+ }
25434
+ return msg;
25435
+ };
25436
+
25437
+
25438
+ /**
25439
+ * Serializes the message to binary data (in protobuf wire format).
25440
+ * @return {!Uint8Array}
25441
+ */
25442
+ proto.user.ResetPasswordConfirmationRequest.prototype.serializeBinary = function() {
25443
+ var writer = new jspb.BinaryWriter();
25444
+ proto.user.ResetPasswordConfirmationRequest.serializeBinaryToWriter(this, writer);
25445
+ return writer.getResultBuffer();
25446
+ };
25447
+
25448
+
25449
+ /**
25450
+ * Serializes the given message to binary data (in protobuf wire
25451
+ * format), writing to the given BinaryWriter.
25452
+ * @param {!proto.user.ResetPasswordConfirmationRequest} message
25453
+ * @param {!jspb.BinaryWriter} writer
25454
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25455
+ */
25456
+ proto.user.ResetPasswordConfirmationRequest.serializeBinaryToWriter = function(message, writer) {
25457
+ var f = undefined;
25458
+ f = message.getUserId();
25459
+ if (f !== 0) {
25460
+ writer.writeInt32(
25461
+ 1,
25462
+ f
25463
+ );
25464
+ }
25465
+ };
25466
+
25467
+
25468
+ /**
25469
+ * optional int32 user_id = 1;
25470
+ * @return {number}
25471
+ */
25472
+ proto.user.ResetPasswordConfirmationRequest.prototype.getUserId = function() {
25473
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
25474
+ };
25475
+
25476
+
25477
+ /**
25478
+ * @param {number} value
25479
+ * @return {!proto.user.ResetPasswordConfirmationRequest} returns this
25480
+ */
25481
+ proto.user.ResetPasswordConfirmationRequest.prototype.setUserId = function(value) {
25482
+ return jspb.Message.setProto3IntField(this, 1, value);
25483
+ };
25484
+
25485
+
25486
+
25487
+
25488
+
25267
25489
  if (jspb.Message.GENERATE_TO_OBJECT) {
25268
25490
  /**
25269
25491
  * Creates an object representation of this proto.
@@ -25521,4 +25743,164 @@ proto.user.EmailConfirmedRequest.prototype.setToken = function(value) {
25521
25743
  };
25522
25744
 
25523
25745
 
25746
+
25747
+
25748
+
25749
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25750
+ /**
25751
+ * Creates an object representation of this proto.
25752
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25753
+ * Optional fields that are not set will be set to undefined.
25754
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25755
+ * For the list of reserved names please see:
25756
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25757
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25758
+ * JSPB instance for transitional soy proto support:
25759
+ * http://goto/soy-param-migration
25760
+ * @return {!Object}
25761
+ */
25762
+ proto.user.SetNewPasswordConfirmedRequest.prototype.toObject = function(opt_includeInstance) {
25763
+ return proto.user.SetNewPasswordConfirmedRequest.toObject(opt_includeInstance, this);
25764
+ };
25765
+
25766
+
25767
+ /**
25768
+ * Static version of the {@see toObject} method.
25769
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25770
+ * the JSPB instance for transitional soy proto support:
25771
+ * http://goto/soy-param-migration
25772
+ * @param {!proto.user.SetNewPasswordConfirmedRequest} msg The msg instance to transform.
25773
+ * @return {!Object}
25774
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25775
+ */
25776
+ proto.user.SetNewPasswordConfirmedRequest.toObject = function(includeInstance, msg) {
25777
+ var f, obj = {
25778
+ token: jspb.Message.getFieldWithDefault(msg, 1, ""),
25779
+ newPassword: jspb.Message.getFieldWithDefault(msg, 2, "")
25780
+ };
25781
+
25782
+ if (includeInstance) {
25783
+ obj.$jspbMessageInstance = msg;
25784
+ }
25785
+ return obj;
25786
+ };
25787
+ }
25788
+
25789
+
25790
+ /**
25791
+ * Deserializes binary data (in protobuf wire format).
25792
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25793
+ * @return {!proto.user.SetNewPasswordConfirmedRequest}
25794
+ */
25795
+ proto.user.SetNewPasswordConfirmedRequest.deserializeBinary = function(bytes) {
25796
+ var reader = new jspb.BinaryReader(bytes);
25797
+ var msg = new proto.user.SetNewPasswordConfirmedRequest;
25798
+ return proto.user.SetNewPasswordConfirmedRequest.deserializeBinaryFromReader(msg, reader);
25799
+ };
25800
+
25801
+
25802
+ /**
25803
+ * Deserializes binary data (in protobuf wire format) from the
25804
+ * given reader into the given message object.
25805
+ * @param {!proto.user.SetNewPasswordConfirmedRequest} msg The message object to deserialize into.
25806
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25807
+ * @return {!proto.user.SetNewPasswordConfirmedRequest}
25808
+ */
25809
+ proto.user.SetNewPasswordConfirmedRequest.deserializeBinaryFromReader = function(msg, reader) {
25810
+ while (reader.nextField()) {
25811
+ if (reader.isEndGroup()) {
25812
+ break;
25813
+ }
25814
+ var field = reader.getFieldNumber();
25815
+ switch (field) {
25816
+ case 1:
25817
+ var value = /** @type {string} */ (reader.readString());
25818
+ msg.setToken(value);
25819
+ break;
25820
+ case 2:
25821
+ var value = /** @type {string} */ (reader.readString());
25822
+ msg.setNewPassword(value);
25823
+ break;
25824
+ default:
25825
+ reader.skipField();
25826
+ break;
25827
+ }
25828
+ }
25829
+ return msg;
25830
+ };
25831
+
25832
+
25833
+ /**
25834
+ * Serializes the message to binary data (in protobuf wire format).
25835
+ * @return {!Uint8Array}
25836
+ */
25837
+ proto.user.SetNewPasswordConfirmedRequest.prototype.serializeBinary = function() {
25838
+ var writer = new jspb.BinaryWriter();
25839
+ proto.user.SetNewPasswordConfirmedRequest.serializeBinaryToWriter(this, writer);
25840
+ return writer.getResultBuffer();
25841
+ };
25842
+
25843
+
25844
+ /**
25845
+ * Serializes the given message to binary data (in protobuf wire
25846
+ * format), writing to the given BinaryWriter.
25847
+ * @param {!proto.user.SetNewPasswordConfirmedRequest} message
25848
+ * @param {!jspb.BinaryWriter} writer
25849
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25850
+ */
25851
+ proto.user.SetNewPasswordConfirmedRequest.serializeBinaryToWriter = function(message, writer) {
25852
+ var f = undefined;
25853
+ f = message.getToken();
25854
+ if (f.length > 0) {
25855
+ writer.writeString(
25856
+ 1,
25857
+ f
25858
+ );
25859
+ }
25860
+ f = message.getNewPassword();
25861
+ if (f.length > 0) {
25862
+ writer.writeString(
25863
+ 2,
25864
+ f
25865
+ );
25866
+ }
25867
+ };
25868
+
25869
+
25870
+ /**
25871
+ * optional string token = 1;
25872
+ * @return {string}
25873
+ */
25874
+ proto.user.SetNewPasswordConfirmedRequest.prototype.getToken = function() {
25875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
25876
+ };
25877
+
25878
+
25879
+ /**
25880
+ * @param {string} value
25881
+ * @return {!proto.user.SetNewPasswordConfirmedRequest} returns this
25882
+ */
25883
+ proto.user.SetNewPasswordConfirmedRequest.prototype.setToken = function(value) {
25884
+ return jspb.Message.setProto3StringField(this, 1, value);
25885
+ };
25886
+
25887
+
25888
+ /**
25889
+ * optional string new_password = 2;
25890
+ * @return {string}
25891
+ */
25892
+ proto.user.SetNewPasswordConfirmedRequest.prototype.getNewPassword = function() {
25893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25894
+ };
25895
+
25896
+
25897
+ /**
25898
+ * @param {string} value
25899
+ * @return {!proto.user.SetNewPasswordConfirmedRequest} returns this
25900
+ */
25901
+ proto.user.SetNewPasswordConfirmedRequest.prototype.setNewPassword = function(value) {
25902
+ return jspb.Message.setProto3StringField(this, 2, value);
25903
+ };
25904
+
25905
+
25524
25906
  goog.object.extend(exports, proto.user);