protobuf-platform 1.2.485 → 1.2.490

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.485",
3
+ "version": "1.2.490",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -840,6 +840,7 @@ message ManualDepositRequest {
840
840
  string wager_multiplier = 4;
841
841
  string reason = 5;
842
842
  string idempotency_id = 6;
843
+ string amount = 7;
843
844
  }
844
845
  message CompensationRequest {
845
846
  int32 user_id = 1;
@@ -851,6 +852,7 @@ message CompensationRequest {
851
852
  string compensation_type = 7;
852
853
  string transaction_code = 8;
853
854
  string internal_comment = 9;
855
+ string amount = 10;
854
856
  }
855
857
  message ConfiscationRequest {
856
858
  int32 user_id = 1;
@@ -860,6 +862,7 @@ message ConfiscationRequest {
860
862
  string idempotency_id = 5;
861
863
  string transaction_code = 6;
862
864
  string internal_comment = 7;
865
+ string amount = 8;
863
866
  }
864
867
  message FinancialOperationResponse {
865
868
  int32 operation_id = 1;
@@ -36012,7 +36012,8 @@ proto.payment.ManualDepositRequest.toObject = function(includeInstance, msg) {
36012
36012
  currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
36013
36013
  wagerMultiplier: jspb.Message.getFieldWithDefault(msg, 4, ""),
36014
36014
  reason: jspb.Message.getFieldWithDefault(msg, 5, ""),
36015
- idempotencyId: jspb.Message.getFieldWithDefault(msg, 6, "")
36015
+ idempotencyId: jspb.Message.getFieldWithDefault(msg, 6, ""),
36016
+ amount: jspb.Message.getFieldWithDefault(msg, 7, "")
36016
36017
  };
36017
36018
 
36018
36019
  if (includeInstance) {
@@ -36073,6 +36074,10 @@ proto.payment.ManualDepositRequest.deserializeBinaryFromReader = function(msg, r
36073
36074
  var value = /** @type {string} */ (reader.readString());
36074
36075
  msg.setIdempotencyId(value);
36075
36076
  break;
36077
+ case 7:
36078
+ var value = /** @type {string} */ (reader.readString());
36079
+ msg.setAmount(value);
36080
+ break;
36076
36081
  default:
36077
36082
  reader.skipField();
36078
36083
  break;
@@ -36144,6 +36149,13 @@ proto.payment.ManualDepositRequest.serializeBinaryToWriter = function(message, w
36144
36149
  f
36145
36150
  );
36146
36151
  }
36152
+ f = message.getAmount();
36153
+ if (f.length > 0) {
36154
+ writer.writeString(
36155
+ 7,
36156
+ f
36157
+ );
36158
+ }
36147
36159
  };
36148
36160
 
36149
36161
 
@@ -36255,6 +36267,24 @@ proto.payment.ManualDepositRequest.prototype.setIdempotencyId = function(value)
36255
36267
  };
36256
36268
 
36257
36269
 
36270
+ /**
36271
+ * optional string amount = 7;
36272
+ * @return {string}
36273
+ */
36274
+ proto.payment.ManualDepositRequest.prototype.getAmount = function() {
36275
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
36276
+ };
36277
+
36278
+
36279
+ /**
36280
+ * @param {string} value
36281
+ * @return {!proto.payment.ManualDepositRequest} returns this
36282
+ */
36283
+ proto.payment.ManualDepositRequest.prototype.setAmount = function(value) {
36284
+ return jspb.Message.setProto3StringField(this, 7, value);
36285
+ };
36286
+
36287
+
36258
36288
 
36259
36289
 
36260
36290
 
@@ -36295,7 +36325,8 @@ proto.payment.CompensationRequest.toObject = function(includeInstance, msg) {
36295
36325
  idempotencyId: jspb.Message.getFieldWithDefault(msg, 6, ""),
36296
36326
  compensationType: jspb.Message.getFieldWithDefault(msg, 7, ""),
36297
36327
  transactionCode: jspb.Message.getFieldWithDefault(msg, 8, ""),
36298
- internalComment: jspb.Message.getFieldWithDefault(msg, 9, "")
36328
+ internalComment: jspb.Message.getFieldWithDefault(msg, 9, ""),
36329
+ amount: jspb.Message.getFieldWithDefault(msg, 10, "")
36299
36330
  };
36300
36331
 
36301
36332
  if (includeInstance) {
@@ -36368,6 +36399,10 @@ proto.payment.CompensationRequest.deserializeBinaryFromReader = function(msg, re
36368
36399
  var value = /** @type {string} */ (reader.readString());
36369
36400
  msg.setInternalComment(value);
36370
36401
  break;
36402
+ case 10:
36403
+ var value = /** @type {string} */ (reader.readString());
36404
+ msg.setAmount(value);
36405
+ break;
36371
36406
  default:
36372
36407
  reader.skipField();
36373
36408
  break;
@@ -36460,6 +36495,13 @@ proto.payment.CompensationRequest.serializeBinaryToWriter = function(message, wr
36460
36495
  f
36461
36496
  );
36462
36497
  }
36498
+ f = message.getAmount();
36499
+ if (f.length > 0) {
36500
+ writer.writeString(
36501
+ 10,
36502
+ f
36503
+ );
36504
+ }
36463
36505
  };
36464
36506
 
36465
36507
 
@@ -36625,6 +36667,24 @@ proto.payment.CompensationRequest.prototype.setInternalComment = function(value)
36625
36667
  };
36626
36668
 
36627
36669
 
36670
+ /**
36671
+ * optional string amount = 10;
36672
+ * @return {string}
36673
+ */
36674
+ proto.payment.CompensationRequest.prototype.getAmount = function() {
36675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
36676
+ };
36677
+
36678
+
36679
+ /**
36680
+ * @param {string} value
36681
+ * @return {!proto.payment.CompensationRequest} returns this
36682
+ */
36683
+ proto.payment.CompensationRequest.prototype.setAmount = function(value) {
36684
+ return jspb.Message.setProto3StringField(this, 10, value);
36685
+ };
36686
+
36687
+
36628
36688
 
36629
36689
 
36630
36690
 
@@ -36663,7 +36723,8 @@ proto.payment.ConfiscationRequest.toObject = function(includeInstance, msg) {
36663
36723
  reason: jspb.Message.getFieldWithDefault(msg, 4, ""),
36664
36724
  idempotencyId: jspb.Message.getFieldWithDefault(msg, 5, ""),
36665
36725
  transactionCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
36666
- internalComment: jspb.Message.getFieldWithDefault(msg, 7, "")
36726
+ internalComment: jspb.Message.getFieldWithDefault(msg, 7, ""),
36727
+ amount: jspb.Message.getFieldWithDefault(msg, 8, "")
36667
36728
  };
36668
36729
 
36669
36730
  if (includeInstance) {
@@ -36728,6 +36789,10 @@ proto.payment.ConfiscationRequest.deserializeBinaryFromReader = function(msg, re
36728
36789
  var value = /** @type {string} */ (reader.readString());
36729
36790
  msg.setInternalComment(value);
36730
36791
  break;
36792
+ case 8:
36793
+ var value = /** @type {string} */ (reader.readString());
36794
+ msg.setAmount(value);
36795
+ break;
36731
36796
  default:
36732
36797
  reader.skipField();
36733
36798
  break;
@@ -36806,6 +36871,13 @@ proto.payment.ConfiscationRequest.serializeBinaryToWriter = function(message, wr
36806
36871
  f
36807
36872
  );
36808
36873
  }
36874
+ f = message.getAmount();
36875
+ if (f.length > 0) {
36876
+ writer.writeString(
36877
+ 8,
36878
+ f
36879
+ );
36880
+ }
36809
36881
  };
36810
36882
 
36811
36883
 
@@ -36935,6 +37007,24 @@ proto.payment.ConfiscationRequest.prototype.setInternalComment = function(value)
36935
37007
  };
36936
37008
 
36937
37009
 
37010
+ /**
37011
+ * optional string amount = 8;
37012
+ * @return {string}
37013
+ */
37014
+ proto.payment.ConfiscationRequest.prototype.getAmount = function() {
37015
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
37016
+ };
37017
+
37018
+
37019
+ /**
37020
+ * @param {string} value
37021
+ * @return {!proto.payment.ConfiscationRequest} returns this
37022
+ */
37023
+ proto.payment.ConfiscationRequest.prototype.setAmount = function(value) {
37024
+ return jspb.Message.setProto3StringField(this, 8, value);
37025
+ };
37026
+
37027
+
36938
37028
 
36939
37029
 
36940
37030
 
package/user/user.proto CHANGED
@@ -150,6 +150,9 @@ service User {
150
150
  rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
151
151
  rpc attemptResetPasswordConfirmation(ResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
152
152
  rpc setNewPassword(SetNewPasswordConfirmedRequest) returns (ConfirmationStatusResponse);
153
+ rpc attemptSmsResetPasswordConfirmation(SmsResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
154
+ rpc verifySmsResetPasswordCode(VerifySmsResetPasswordCodeRequest) returns (VerifySmsResetPasswordCodeResponse);
155
+ rpc setNewPasswordFromSmsReset(SetNewPasswordFromSmsResetRequest) returns (ConfirmationStatusResponse);
153
156
  rpc setUserCookies(UserCookiesRequest) returns (ConfirmationStatusResponse);
154
157
  // Games
155
158
  rpc toggleUserFavouriteGame(UserGameRequest) returns (UserToggleGameStatusResponse);
@@ -1664,6 +1667,20 @@ message EmailConfirmationRequest {
1664
1667
  message ResetPasswordConfirmationRequest {
1665
1668
  string user_email = 1;
1666
1669
  }
1670
+ message SmsResetPasswordConfirmationRequest {
1671
+ string phone = 1;
1672
+ }
1673
+ message VerifySmsResetPasswordCodeRequest {
1674
+ string phone = 1;
1675
+ string code = 2;
1676
+ }
1677
+ message VerifySmsResetPasswordCodeResponse {
1678
+ string password_reset_token = 1;
1679
+ }
1680
+ message SetNewPasswordFromSmsResetRequest {
1681
+ string password_reset_token = 1;
1682
+ string new_password = 2;
1683
+ }
1667
1684
  message ConfirmationStatusResponse {
1668
1685
  string status = 1;
1669
1686
  }
@@ -1203,6 +1203,28 @@ function deserialize_user_SetNewPasswordConfirmedRequest(buffer_arg) {
1203
1203
  return user_pb.SetNewPasswordConfirmedRequest.deserializeBinary(new Uint8Array(buffer_arg));
1204
1204
  }
1205
1205
 
1206
+ function serialize_user_SetNewPasswordFromSmsResetRequest(arg) {
1207
+ if (!(arg instanceof user_pb.SetNewPasswordFromSmsResetRequest)) {
1208
+ throw new Error('Expected argument of type user.SetNewPasswordFromSmsResetRequest');
1209
+ }
1210
+ return Buffer.from(arg.serializeBinary());
1211
+ }
1212
+
1213
+ function deserialize_user_SetNewPasswordFromSmsResetRequest(buffer_arg) {
1214
+ return user_pb.SetNewPasswordFromSmsResetRequest.deserializeBinary(new Uint8Array(buffer_arg));
1215
+ }
1216
+
1217
+ function serialize_user_SmsResetPasswordConfirmationRequest(arg) {
1218
+ if (!(arg instanceof user_pb.SmsResetPasswordConfirmationRequest)) {
1219
+ throw new Error('Expected argument of type user.SmsResetPasswordConfirmationRequest');
1220
+ }
1221
+ return Buffer.from(arg.serializeBinary());
1222
+ }
1223
+
1224
+ function deserialize_user_SmsResetPasswordConfirmationRequest(buffer_arg) {
1225
+ return user_pb.SmsResetPasswordConfirmationRequest.deserializeBinary(new Uint8Array(buffer_arg));
1226
+ }
1227
+
1206
1228
  function serialize_user_StartUserKycVerificationRequest(arg) {
1207
1229
  if (!(arg instanceof user_pb.StartUserKycVerificationRequest)) {
1208
1230
  throw new Error('Expected argument of type user.StartUserKycVerificationRequest');
@@ -1808,6 +1830,28 @@ function deserialize_user_VerificationStatusItemsResponse(buffer_arg) {
1808
1830
  return user_pb.VerificationStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
1809
1831
  }
1810
1832
 
1833
+ function serialize_user_VerifySmsResetPasswordCodeRequest(arg) {
1834
+ if (!(arg instanceof user_pb.VerifySmsResetPasswordCodeRequest)) {
1835
+ throw new Error('Expected argument of type user.VerifySmsResetPasswordCodeRequest');
1836
+ }
1837
+ return Buffer.from(arg.serializeBinary());
1838
+ }
1839
+
1840
+ function deserialize_user_VerifySmsResetPasswordCodeRequest(buffer_arg) {
1841
+ return user_pb.VerifySmsResetPasswordCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
1842
+ }
1843
+
1844
+ function serialize_user_VerifySmsResetPasswordCodeResponse(arg) {
1845
+ if (!(arg instanceof user_pb.VerifySmsResetPasswordCodeResponse)) {
1846
+ throw new Error('Expected argument of type user.VerifySmsResetPasswordCodeResponse');
1847
+ }
1848
+ return Buffer.from(arg.serializeBinary());
1849
+ }
1850
+
1851
+ function deserialize_user_VerifySmsResetPasswordCodeResponse(buffer_arg) {
1852
+ return user_pb.VerifySmsResetPasswordCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
1853
+ }
1854
+
1811
1855
  function serialize_user_XLoginRequest(arg) {
1812
1856
  if (!(arg instanceof user_pb.XLoginRequest)) {
1813
1857
  throw new Error('Expected argument of type user.XLoginRequest');
@@ -3098,6 +3142,39 @@ attemptEmailConfirmation: {
3098
3142
  responseSerialize: serialize_user_ConfirmationStatusResponse,
3099
3143
  responseDeserialize: deserialize_user_ConfirmationStatusResponse,
3100
3144
  },
3145
+ attemptSmsResetPasswordConfirmation: {
3146
+ path: '/user.User/attemptSmsResetPasswordConfirmation',
3147
+ requestStream: false,
3148
+ responseStream: false,
3149
+ requestType: user_pb.SmsResetPasswordConfirmationRequest,
3150
+ responseType: user_pb.ConfirmationStatusResponse,
3151
+ requestSerialize: serialize_user_SmsResetPasswordConfirmationRequest,
3152
+ requestDeserialize: deserialize_user_SmsResetPasswordConfirmationRequest,
3153
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
3154
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
3155
+ },
3156
+ verifySmsResetPasswordCode: {
3157
+ path: '/user.User/verifySmsResetPasswordCode',
3158
+ requestStream: false,
3159
+ responseStream: false,
3160
+ requestType: user_pb.VerifySmsResetPasswordCodeRequest,
3161
+ responseType: user_pb.VerifySmsResetPasswordCodeResponse,
3162
+ requestSerialize: serialize_user_VerifySmsResetPasswordCodeRequest,
3163
+ requestDeserialize: deserialize_user_VerifySmsResetPasswordCodeRequest,
3164
+ responseSerialize: serialize_user_VerifySmsResetPasswordCodeResponse,
3165
+ responseDeserialize: deserialize_user_VerifySmsResetPasswordCodeResponse,
3166
+ },
3167
+ setNewPasswordFromSmsReset: {
3168
+ path: '/user.User/setNewPasswordFromSmsReset',
3169
+ requestStream: false,
3170
+ responseStream: false,
3171
+ requestType: user_pb.SetNewPasswordFromSmsResetRequest,
3172
+ responseType: user_pb.ConfirmationStatusResponse,
3173
+ requestSerialize: serialize_user_SetNewPasswordFromSmsResetRequest,
3174
+ requestDeserialize: deserialize_user_SetNewPasswordFromSmsResetRequest,
3175
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
3176
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
3177
+ },
3101
3178
  setUserCookies: {
3102
3179
  path: '/user.User/setUserCookies',
3103
3180
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -154,6 +154,8 @@ goog.exportSymbol('proto.user.SegmentSessionRuleItem', null, global);
154
154
  goog.exportSymbol('proto.user.SegmentSessionRuleRequest', null, global);
155
155
  goog.exportSymbol('proto.user.SegmentStatusResponse', null, global);
156
156
  goog.exportSymbol('proto.user.SetNewPasswordConfirmedRequest', null, global);
157
+ goog.exportSymbol('proto.user.SetNewPasswordFromSmsResetRequest', null, global);
158
+ goog.exportSymbol('proto.user.SmsResetPasswordConfirmationRequest', null, global);
157
159
  goog.exportSymbol('proto.user.StartUserKycVerificationRequest', null, global);
158
160
  goog.exportSymbol('proto.user.StartUserKycVerificationResponse', null, global);
159
161
  goog.exportSymbol('proto.user.SumSubApplicantRequest', null, global);
@@ -220,6 +222,8 @@ goog.exportSymbol('proto.user.UserWalletBalancesResponse', null, global);
220
222
  goog.exportSymbol('proto.user.UsersResponse', null, global);
221
223
  goog.exportSymbol('proto.user.VerificationStatus', null, global);
222
224
  goog.exportSymbol('proto.user.VerificationStatusItemsResponse', null, global);
225
+ goog.exportSymbol('proto.user.VerifySmsResetPasswordCodeRequest', null, global);
226
+ goog.exportSymbol('proto.user.VerifySmsResetPasswordCodeResponse', null, global);
223
227
  goog.exportSymbol('proto.user.XLoginRequest', null, global);
224
228
  /**
225
229
  * Generated by JsPbCodeGenerator.
@@ -4211,6 +4215,90 @@ if (goog.DEBUG && !COMPILED) {
4211
4215
  */
4212
4216
  proto.user.ResetPasswordConfirmationRequest.displayName = 'proto.user.ResetPasswordConfirmationRequest';
4213
4217
  }
4218
+ /**
4219
+ * Generated by JsPbCodeGenerator.
4220
+ * @param {Array=} opt_data Optional initial data array, typically from a
4221
+ * server response, or constructed directly in Javascript. The array is used
4222
+ * in place and becomes part of the constructed object. It is not cloned.
4223
+ * If no data is provided, the constructed object will be empty, but still
4224
+ * valid.
4225
+ * @extends {jspb.Message}
4226
+ * @constructor
4227
+ */
4228
+ proto.user.SmsResetPasswordConfirmationRequest = function(opt_data) {
4229
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4230
+ };
4231
+ goog.inherits(proto.user.SmsResetPasswordConfirmationRequest, jspb.Message);
4232
+ if (goog.DEBUG && !COMPILED) {
4233
+ /**
4234
+ * @public
4235
+ * @override
4236
+ */
4237
+ proto.user.SmsResetPasswordConfirmationRequest.displayName = 'proto.user.SmsResetPasswordConfirmationRequest';
4238
+ }
4239
+ /**
4240
+ * Generated by JsPbCodeGenerator.
4241
+ * @param {Array=} opt_data Optional initial data array, typically from a
4242
+ * server response, or constructed directly in Javascript. The array is used
4243
+ * in place and becomes part of the constructed object. It is not cloned.
4244
+ * If no data is provided, the constructed object will be empty, but still
4245
+ * valid.
4246
+ * @extends {jspb.Message}
4247
+ * @constructor
4248
+ */
4249
+ proto.user.VerifySmsResetPasswordCodeRequest = function(opt_data) {
4250
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4251
+ };
4252
+ goog.inherits(proto.user.VerifySmsResetPasswordCodeRequest, jspb.Message);
4253
+ if (goog.DEBUG && !COMPILED) {
4254
+ /**
4255
+ * @public
4256
+ * @override
4257
+ */
4258
+ proto.user.VerifySmsResetPasswordCodeRequest.displayName = 'proto.user.VerifySmsResetPasswordCodeRequest';
4259
+ }
4260
+ /**
4261
+ * Generated by JsPbCodeGenerator.
4262
+ * @param {Array=} opt_data Optional initial data array, typically from a
4263
+ * server response, or constructed directly in Javascript. The array is used
4264
+ * in place and becomes part of the constructed object. It is not cloned.
4265
+ * If no data is provided, the constructed object will be empty, but still
4266
+ * valid.
4267
+ * @extends {jspb.Message}
4268
+ * @constructor
4269
+ */
4270
+ proto.user.VerifySmsResetPasswordCodeResponse = function(opt_data) {
4271
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4272
+ };
4273
+ goog.inherits(proto.user.VerifySmsResetPasswordCodeResponse, jspb.Message);
4274
+ if (goog.DEBUG && !COMPILED) {
4275
+ /**
4276
+ * @public
4277
+ * @override
4278
+ */
4279
+ proto.user.VerifySmsResetPasswordCodeResponse.displayName = 'proto.user.VerifySmsResetPasswordCodeResponse';
4280
+ }
4281
+ /**
4282
+ * Generated by JsPbCodeGenerator.
4283
+ * @param {Array=} opt_data Optional initial data array, typically from a
4284
+ * server response, or constructed directly in Javascript. The array is used
4285
+ * in place and becomes part of the constructed object. It is not cloned.
4286
+ * If no data is provided, the constructed object will be empty, but still
4287
+ * valid.
4288
+ * @extends {jspb.Message}
4289
+ * @constructor
4290
+ */
4291
+ proto.user.SetNewPasswordFromSmsResetRequest = function(opt_data) {
4292
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4293
+ };
4294
+ goog.inherits(proto.user.SetNewPasswordFromSmsResetRequest, jspb.Message);
4295
+ if (goog.DEBUG && !COMPILED) {
4296
+ /**
4297
+ * @public
4298
+ * @override
4299
+ */
4300
+ proto.user.SetNewPasswordFromSmsResetRequest.displayName = 'proto.user.SetNewPasswordFromSmsResetRequest';
4301
+ }
4214
4302
  /**
4215
4303
  * Generated by JsPbCodeGenerator.
4216
4304
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -70858,6 +70946,586 @@ proto.user.ResetPasswordConfirmationRequest.prototype.setUserEmail = function(va
70858
70946
 
70859
70947
 
70860
70948
 
70949
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70950
+ /**
70951
+ * Creates an object representation of this proto.
70952
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70953
+ * Optional fields that are not set will be set to undefined.
70954
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70955
+ * For the list of reserved names please see:
70956
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70957
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70958
+ * JSPB instance for transitional soy proto support:
70959
+ * http://goto/soy-param-migration
70960
+ * @return {!Object}
70961
+ */
70962
+ proto.user.SmsResetPasswordConfirmationRequest.prototype.toObject = function(opt_includeInstance) {
70963
+ return proto.user.SmsResetPasswordConfirmationRequest.toObject(opt_includeInstance, this);
70964
+ };
70965
+
70966
+
70967
+ /**
70968
+ * Static version of the {@see toObject} method.
70969
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70970
+ * the JSPB instance for transitional soy proto support:
70971
+ * http://goto/soy-param-migration
70972
+ * @param {!proto.user.SmsResetPasswordConfirmationRequest} msg The msg instance to transform.
70973
+ * @return {!Object}
70974
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70975
+ */
70976
+ proto.user.SmsResetPasswordConfirmationRequest.toObject = function(includeInstance, msg) {
70977
+ var f, obj = {
70978
+ phone: jspb.Message.getFieldWithDefault(msg, 1, "")
70979
+ };
70980
+
70981
+ if (includeInstance) {
70982
+ obj.$jspbMessageInstance = msg;
70983
+ }
70984
+ return obj;
70985
+ };
70986
+ }
70987
+
70988
+
70989
+ /**
70990
+ * Deserializes binary data (in protobuf wire format).
70991
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
70992
+ * @return {!proto.user.SmsResetPasswordConfirmationRequest}
70993
+ */
70994
+ proto.user.SmsResetPasswordConfirmationRequest.deserializeBinary = function(bytes) {
70995
+ var reader = new jspb.BinaryReader(bytes);
70996
+ var msg = new proto.user.SmsResetPasswordConfirmationRequest;
70997
+ return proto.user.SmsResetPasswordConfirmationRequest.deserializeBinaryFromReader(msg, reader);
70998
+ };
70999
+
71000
+
71001
+ /**
71002
+ * Deserializes binary data (in protobuf wire format) from the
71003
+ * given reader into the given message object.
71004
+ * @param {!proto.user.SmsResetPasswordConfirmationRequest} msg The message object to deserialize into.
71005
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71006
+ * @return {!proto.user.SmsResetPasswordConfirmationRequest}
71007
+ */
71008
+ proto.user.SmsResetPasswordConfirmationRequest.deserializeBinaryFromReader = function(msg, reader) {
71009
+ while (reader.nextField()) {
71010
+ if (reader.isEndGroup()) {
71011
+ break;
71012
+ }
71013
+ var field = reader.getFieldNumber();
71014
+ switch (field) {
71015
+ case 1:
71016
+ var value = /** @type {string} */ (reader.readString());
71017
+ msg.setPhone(value);
71018
+ break;
71019
+ default:
71020
+ reader.skipField();
71021
+ break;
71022
+ }
71023
+ }
71024
+ return msg;
71025
+ };
71026
+
71027
+
71028
+ /**
71029
+ * Serializes the message to binary data (in protobuf wire format).
71030
+ * @return {!Uint8Array}
71031
+ */
71032
+ proto.user.SmsResetPasswordConfirmationRequest.prototype.serializeBinary = function() {
71033
+ var writer = new jspb.BinaryWriter();
71034
+ proto.user.SmsResetPasswordConfirmationRequest.serializeBinaryToWriter(this, writer);
71035
+ return writer.getResultBuffer();
71036
+ };
71037
+
71038
+
71039
+ /**
71040
+ * Serializes the given message to binary data (in protobuf wire
71041
+ * format), writing to the given BinaryWriter.
71042
+ * @param {!proto.user.SmsResetPasswordConfirmationRequest} message
71043
+ * @param {!jspb.BinaryWriter} writer
71044
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71045
+ */
71046
+ proto.user.SmsResetPasswordConfirmationRequest.serializeBinaryToWriter = function(message, writer) {
71047
+ var f = undefined;
71048
+ f = message.getPhone();
71049
+ if (f.length > 0) {
71050
+ writer.writeString(
71051
+ 1,
71052
+ f
71053
+ );
71054
+ }
71055
+ };
71056
+
71057
+
71058
+ /**
71059
+ * optional string phone = 1;
71060
+ * @return {string}
71061
+ */
71062
+ proto.user.SmsResetPasswordConfirmationRequest.prototype.getPhone = function() {
71063
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71064
+ };
71065
+
71066
+
71067
+ /**
71068
+ * @param {string} value
71069
+ * @return {!proto.user.SmsResetPasswordConfirmationRequest} returns this
71070
+ */
71071
+ proto.user.SmsResetPasswordConfirmationRequest.prototype.setPhone = function(value) {
71072
+ return jspb.Message.setProto3StringField(this, 1, value);
71073
+ };
71074
+
71075
+
71076
+
71077
+
71078
+
71079
+ if (jspb.Message.GENERATE_TO_OBJECT) {
71080
+ /**
71081
+ * Creates an object representation of this proto.
71082
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
71083
+ * Optional fields that are not set will be set to undefined.
71084
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71085
+ * For the list of reserved names please see:
71086
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71087
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71088
+ * JSPB instance for transitional soy proto support:
71089
+ * http://goto/soy-param-migration
71090
+ * @return {!Object}
71091
+ */
71092
+ proto.user.VerifySmsResetPasswordCodeRequest.prototype.toObject = function(opt_includeInstance) {
71093
+ return proto.user.VerifySmsResetPasswordCodeRequest.toObject(opt_includeInstance, this);
71094
+ };
71095
+
71096
+
71097
+ /**
71098
+ * Static version of the {@see toObject} method.
71099
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71100
+ * the JSPB instance for transitional soy proto support:
71101
+ * http://goto/soy-param-migration
71102
+ * @param {!proto.user.VerifySmsResetPasswordCodeRequest} msg The msg instance to transform.
71103
+ * @return {!Object}
71104
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71105
+ */
71106
+ proto.user.VerifySmsResetPasswordCodeRequest.toObject = function(includeInstance, msg) {
71107
+ var f, obj = {
71108
+ phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
71109
+ code: jspb.Message.getFieldWithDefault(msg, 2, "")
71110
+ };
71111
+
71112
+ if (includeInstance) {
71113
+ obj.$jspbMessageInstance = msg;
71114
+ }
71115
+ return obj;
71116
+ };
71117
+ }
71118
+
71119
+
71120
+ /**
71121
+ * Deserializes binary data (in protobuf wire format).
71122
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71123
+ * @return {!proto.user.VerifySmsResetPasswordCodeRequest}
71124
+ */
71125
+ proto.user.VerifySmsResetPasswordCodeRequest.deserializeBinary = function(bytes) {
71126
+ var reader = new jspb.BinaryReader(bytes);
71127
+ var msg = new proto.user.VerifySmsResetPasswordCodeRequest;
71128
+ return proto.user.VerifySmsResetPasswordCodeRequest.deserializeBinaryFromReader(msg, reader);
71129
+ };
71130
+
71131
+
71132
+ /**
71133
+ * Deserializes binary data (in protobuf wire format) from the
71134
+ * given reader into the given message object.
71135
+ * @param {!proto.user.VerifySmsResetPasswordCodeRequest} msg The message object to deserialize into.
71136
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71137
+ * @return {!proto.user.VerifySmsResetPasswordCodeRequest}
71138
+ */
71139
+ proto.user.VerifySmsResetPasswordCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
71140
+ while (reader.nextField()) {
71141
+ if (reader.isEndGroup()) {
71142
+ break;
71143
+ }
71144
+ var field = reader.getFieldNumber();
71145
+ switch (field) {
71146
+ case 1:
71147
+ var value = /** @type {string} */ (reader.readString());
71148
+ msg.setPhone(value);
71149
+ break;
71150
+ case 2:
71151
+ var value = /** @type {string} */ (reader.readString());
71152
+ msg.setCode(value);
71153
+ break;
71154
+ default:
71155
+ reader.skipField();
71156
+ break;
71157
+ }
71158
+ }
71159
+ return msg;
71160
+ };
71161
+
71162
+
71163
+ /**
71164
+ * Serializes the message to binary data (in protobuf wire format).
71165
+ * @return {!Uint8Array}
71166
+ */
71167
+ proto.user.VerifySmsResetPasswordCodeRequest.prototype.serializeBinary = function() {
71168
+ var writer = new jspb.BinaryWriter();
71169
+ proto.user.VerifySmsResetPasswordCodeRequest.serializeBinaryToWriter(this, writer);
71170
+ return writer.getResultBuffer();
71171
+ };
71172
+
71173
+
71174
+ /**
71175
+ * Serializes the given message to binary data (in protobuf wire
71176
+ * format), writing to the given BinaryWriter.
71177
+ * @param {!proto.user.VerifySmsResetPasswordCodeRequest} message
71178
+ * @param {!jspb.BinaryWriter} writer
71179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71180
+ */
71181
+ proto.user.VerifySmsResetPasswordCodeRequest.serializeBinaryToWriter = function(message, writer) {
71182
+ var f = undefined;
71183
+ f = message.getPhone();
71184
+ if (f.length > 0) {
71185
+ writer.writeString(
71186
+ 1,
71187
+ f
71188
+ );
71189
+ }
71190
+ f = message.getCode();
71191
+ if (f.length > 0) {
71192
+ writer.writeString(
71193
+ 2,
71194
+ f
71195
+ );
71196
+ }
71197
+ };
71198
+
71199
+
71200
+ /**
71201
+ * optional string phone = 1;
71202
+ * @return {string}
71203
+ */
71204
+ proto.user.VerifySmsResetPasswordCodeRequest.prototype.getPhone = function() {
71205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71206
+ };
71207
+
71208
+
71209
+ /**
71210
+ * @param {string} value
71211
+ * @return {!proto.user.VerifySmsResetPasswordCodeRequest} returns this
71212
+ */
71213
+ proto.user.VerifySmsResetPasswordCodeRequest.prototype.setPhone = function(value) {
71214
+ return jspb.Message.setProto3StringField(this, 1, value);
71215
+ };
71216
+
71217
+
71218
+ /**
71219
+ * optional string code = 2;
71220
+ * @return {string}
71221
+ */
71222
+ proto.user.VerifySmsResetPasswordCodeRequest.prototype.getCode = function() {
71223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71224
+ };
71225
+
71226
+
71227
+ /**
71228
+ * @param {string} value
71229
+ * @return {!proto.user.VerifySmsResetPasswordCodeRequest} returns this
71230
+ */
71231
+ proto.user.VerifySmsResetPasswordCodeRequest.prototype.setCode = function(value) {
71232
+ return jspb.Message.setProto3StringField(this, 2, value);
71233
+ };
71234
+
71235
+
71236
+
71237
+
71238
+
71239
+ if (jspb.Message.GENERATE_TO_OBJECT) {
71240
+ /**
71241
+ * Creates an object representation of this proto.
71242
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
71243
+ * Optional fields that are not set will be set to undefined.
71244
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71245
+ * For the list of reserved names please see:
71246
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71247
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71248
+ * JSPB instance for transitional soy proto support:
71249
+ * http://goto/soy-param-migration
71250
+ * @return {!Object}
71251
+ */
71252
+ proto.user.VerifySmsResetPasswordCodeResponse.prototype.toObject = function(opt_includeInstance) {
71253
+ return proto.user.VerifySmsResetPasswordCodeResponse.toObject(opt_includeInstance, this);
71254
+ };
71255
+
71256
+
71257
+ /**
71258
+ * Static version of the {@see toObject} method.
71259
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71260
+ * the JSPB instance for transitional soy proto support:
71261
+ * http://goto/soy-param-migration
71262
+ * @param {!proto.user.VerifySmsResetPasswordCodeResponse} msg The msg instance to transform.
71263
+ * @return {!Object}
71264
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71265
+ */
71266
+ proto.user.VerifySmsResetPasswordCodeResponse.toObject = function(includeInstance, msg) {
71267
+ var f, obj = {
71268
+ passwordResetToken: jspb.Message.getFieldWithDefault(msg, 1, "")
71269
+ };
71270
+
71271
+ if (includeInstance) {
71272
+ obj.$jspbMessageInstance = msg;
71273
+ }
71274
+ return obj;
71275
+ };
71276
+ }
71277
+
71278
+
71279
+ /**
71280
+ * Deserializes binary data (in protobuf wire format).
71281
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71282
+ * @return {!proto.user.VerifySmsResetPasswordCodeResponse}
71283
+ */
71284
+ proto.user.VerifySmsResetPasswordCodeResponse.deserializeBinary = function(bytes) {
71285
+ var reader = new jspb.BinaryReader(bytes);
71286
+ var msg = new proto.user.VerifySmsResetPasswordCodeResponse;
71287
+ return proto.user.VerifySmsResetPasswordCodeResponse.deserializeBinaryFromReader(msg, reader);
71288
+ };
71289
+
71290
+
71291
+ /**
71292
+ * Deserializes binary data (in protobuf wire format) from the
71293
+ * given reader into the given message object.
71294
+ * @param {!proto.user.VerifySmsResetPasswordCodeResponse} msg The message object to deserialize into.
71295
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71296
+ * @return {!proto.user.VerifySmsResetPasswordCodeResponse}
71297
+ */
71298
+ proto.user.VerifySmsResetPasswordCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
71299
+ while (reader.nextField()) {
71300
+ if (reader.isEndGroup()) {
71301
+ break;
71302
+ }
71303
+ var field = reader.getFieldNumber();
71304
+ switch (field) {
71305
+ case 1:
71306
+ var value = /** @type {string} */ (reader.readString());
71307
+ msg.setPasswordResetToken(value);
71308
+ break;
71309
+ default:
71310
+ reader.skipField();
71311
+ break;
71312
+ }
71313
+ }
71314
+ return msg;
71315
+ };
71316
+
71317
+
71318
+ /**
71319
+ * Serializes the message to binary data (in protobuf wire format).
71320
+ * @return {!Uint8Array}
71321
+ */
71322
+ proto.user.VerifySmsResetPasswordCodeResponse.prototype.serializeBinary = function() {
71323
+ var writer = new jspb.BinaryWriter();
71324
+ proto.user.VerifySmsResetPasswordCodeResponse.serializeBinaryToWriter(this, writer);
71325
+ return writer.getResultBuffer();
71326
+ };
71327
+
71328
+
71329
+ /**
71330
+ * Serializes the given message to binary data (in protobuf wire
71331
+ * format), writing to the given BinaryWriter.
71332
+ * @param {!proto.user.VerifySmsResetPasswordCodeResponse} message
71333
+ * @param {!jspb.BinaryWriter} writer
71334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71335
+ */
71336
+ proto.user.VerifySmsResetPasswordCodeResponse.serializeBinaryToWriter = function(message, writer) {
71337
+ var f = undefined;
71338
+ f = message.getPasswordResetToken();
71339
+ if (f.length > 0) {
71340
+ writer.writeString(
71341
+ 1,
71342
+ f
71343
+ );
71344
+ }
71345
+ };
71346
+
71347
+
71348
+ /**
71349
+ * optional string password_reset_token = 1;
71350
+ * @return {string}
71351
+ */
71352
+ proto.user.VerifySmsResetPasswordCodeResponse.prototype.getPasswordResetToken = function() {
71353
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71354
+ };
71355
+
71356
+
71357
+ /**
71358
+ * @param {string} value
71359
+ * @return {!proto.user.VerifySmsResetPasswordCodeResponse} returns this
71360
+ */
71361
+ proto.user.VerifySmsResetPasswordCodeResponse.prototype.setPasswordResetToken = function(value) {
71362
+ return jspb.Message.setProto3StringField(this, 1, value);
71363
+ };
71364
+
71365
+
71366
+
71367
+
71368
+
71369
+ if (jspb.Message.GENERATE_TO_OBJECT) {
71370
+ /**
71371
+ * Creates an object representation of this proto.
71372
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
71373
+ * Optional fields that are not set will be set to undefined.
71374
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71375
+ * For the list of reserved names please see:
71376
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71377
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71378
+ * JSPB instance for transitional soy proto support:
71379
+ * http://goto/soy-param-migration
71380
+ * @return {!Object}
71381
+ */
71382
+ proto.user.SetNewPasswordFromSmsResetRequest.prototype.toObject = function(opt_includeInstance) {
71383
+ return proto.user.SetNewPasswordFromSmsResetRequest.toObject(opt_includeInstance, this);
71384
+ };
71385
+
71386
+
71387
+ /**
71388
+ * Static version of the {@see toObject} method.
71389
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71390
+ * the JSPB instance for transitional soy proto support:
71391
+ * http://goto/soy-param-migration
71392
+ * @param {!proto.user.SetNewPasswordFromSmsResetRequest} msg The msg instance to transform.
71393
+ * @return {!Object}
71394
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71395
+ */
71396
+ proto.user.SetNewPasswordFromSmsResetRequest.toObject = function(includeInstance, msg) {
71397
+ var f, obj = {
71398
+ passwordResetToken: jspb.Message.getFieldWithDefault(msg, 1, ""),
71399
+ newPassword: jspb.Message.getFieldWithDefault(msg, 2, "")
71400
+ };
71401
+
71402
+ if (includeInstance) {
71403
+ obj.$jspbMessageInstance = msg;
71404
+ }
71405
+ return obj;
71406
+ };
71407
+ }
71408
+
71409
+
71410
+ /**
71411
+ * Deserializes binary data (in protobuf wire format).
71412
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71413
+ * @return {!proto.user.SetNewPasswordFromSmsResetRequest}
71414
+ */
71415
+ proto.user.SetNewPasswordFromSmsResetRequest.deserializeBinary = function(bytes) {
71416
+ var reader = new jspb.BinaryReader(bytes);
71417
+ var msg = new proto.user.SetNewPasswordFromSmsResetRequest;
71418
+ return proto.user.SetNewPasswordFromSmsResetRequest.deserializeBinaryFromReader(msg, reader);
71419
+ };
71420
+
71421
+
71422
+ /**
71423
+ * Deserializes binary data (in protobuf wire format) from the
71424
+ * given reader into the given message object.
71425
+ * @param {!proto.user.SetNewPasswordFromSmsResetRequest} msg The message object to deserialize into.
71426
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71427
+ * @return {!proto.user.SetNewPasswordFromSmsResetRequest}
71428
+ */
71429
+ proto.user.SetNewPasswordFromSmsResetRequest.deserializeBinaryFromReader = function(msg, reader) {
71430
+ while (reader.nextField()) {
71431
+ if (reader.isEndGroup()) {
71432
+ break;
71433
+ }
71434
+ var field = reader.getFieldNumber();
71435
+ switch (field) {
71436
+ case 1:
71437
+ var value = /** @type {string} */ (reader.readString());
71438
+ msg.setPasswordResetToken(value);
71439
+ break;
71440
+ case 2:
71441
+ var value = /** @type {string} */ (reader.readString());
71442
+ msg.setNewPassword(value);
71443
+ break;
71444
+ default:
71445
+ reader.skipField();
71446
+ break;
71447
+ }
71448
+ }
71449
+ return msg;
71450
+ };
71451
+
71452
+
71453
+ /**
71454
+ * Serializes the message to binary data (in protobuf wire format).
71455
+ * @return {!Uint8Array}
71456
+ */
71457
+ proto.user.SetNewPasswordFromSmsResetRequest.prototype.serializeBinary = function() {
71458
+ var writer = new jspb.BinaryWriter();
71459
+ proto.user.SetNewPasswordFromSmsResetRequest.serializeBinaryToWriter(this, writer);
71460
+ return writer.getResultBuffer();
71461
+ };
71462
+
71463
+
71464
+ /**
71465
+ * Serializes the given message to binary data (in protobuf wire
71466
+ * format), writing to the given BinaryWriter.
71467
+ * @param {!proto.user.SetNewPasswordFromSmsResetRequest} message
71468
+ * @param {!jspb.BinaryWriter} writer
71469
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71470
+ */
71471
+ proto.user.SetNewPasswordFromSmsResetRequest.serializeBinaryToWriter = function(message, writer) {
71472
+ var f = undefined;
71473
+ f = message.getPasswordResetToken();
71474
+ if (f.length > 0) {
71475
+ writer.writeString(
71476
+ 1,
71477
+ f
71478
+ );
71479
+ }
71480
+ f = message.getNewPassword();
71481
+ if (f.length > 0) {
71482
+ writer.writeString(
71483
+ 2,
71484
+ f
71485
+ );
71486
+ }
71487
+ };
71488
+
71489
+
71490
+ /**
71491
+ * optional string password_reset_token = 1;
71492
+ * @return {string}
71493
+ */
71494
+ proto.user.SetNewPasswordFromSmsResetRequest.prototype.getPasswordResetToken = function() {
71495
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71496
+ };
71497
+
71498
+
71499
+ /**
71500
+ * @param {string} value
71501
+ * @return {!proto.user.SetNewPasswordFromSmsResetRequest} returns this
71502
+ */
71503
+ proto.user.SetNewPasswordFromSmsResetRequest.prototype.setPasswordResetToken = function(value) {
71504
+ return jspb.Message.setProto3StringField(this, 1, value);
71505
+ };
71506
+
71507
+
71508
+ /**
71509
+ * optional string new_password = 2;
71510
+ * @return {string}
71511
+ */
71512
+ proto.user.SetNewPasswordFromSmsResetRequest.prototype.getNewPassword = function() {
71513
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71514
+ };
71515
+
71516
+
71517
+ /**
71518
+ * @param {string} value
71519
+ * @return {!proto.user.SetNewPasswordFromSmsResetRequest} returns this
71520
+ */
71521
+ proto.user.SetNewPasswordFromSmsResetRequest.prototype.setNewPassword = function(value) {
71522
+ return jspb.Message.setProto3StringField(this, 2, value);
71523
+ };
71524
+
71525
+
71526
+
71527
+
71528
+
70861
71529
  if (jspb.Message.GENERATE_TO_OBJECT) {
70862
71530
  /**
70863
71531
  * Creates an object representation of this proto.