protobuf-platform 1.2.488 → 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 +1 -1
- package/user/user.proto +17 -0
- package/user/user_grpc_pb.js +77 -0
- package/user/user_pb.js +668 -0
package/package.json
CHANGED
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
|
}
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -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.
|