protobuf-platform 1.2.488 → 1.2.491
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/bonus/bonus.proto +14 -0
- package/bonus/bonus_grpc_pb.js +33 -0
- package/bonus/bonus_pb.js +642 -0
- package/package.json +1 -1
- package/user/user.proto +18 -0
- package/user/user_grpc_pb.js +77 -0
- package/user/user_pb.js +717 -1
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
|
|
@@ -6577,7 +6665,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
|
|
|
6577
6665
|
presetCode: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
6578
6666
|
antifraudSession: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
|
6579
6667
|
fraudneticToken: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
6580
|
-
ipCountry: jspb.Message.getFieldWithDefault(msg, 28, "")
|
|
6668
|
+
ipCountry: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
6669
|
+
bonusId: jspb.Message.getFieldWithDefault(msg, 29, 0)
|
|
6581
6670
|
};
|
|
6582
6671
|
|
|
6583
6672
|
if (includeInstance) {
|
|
@@ -6726,6 +6815,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
6726
6815
|
var value = /** @type {string} */ (reader.readString());
|
|
6727
6816
|
msg.setIpCountry(value);
|
|
6728
6817
|
break;
|
|
6818
|
+
case 29:
|
|
6819
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6820
|
+
msg.setBonusId(value);
|
|
6821
|
+
break;
|
|
6729
6822
|
default:
|
|
6730
6823
|
reader.skipField();
|
|
6731
6824
|
break;
|
|
@@ -6951,6 +7044,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
|
|
|
6951
7044
|
f
|
|
6952
7045
|
);
|
|
6953
7046
|
}
|
|
7047
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 29));
|
|
7048
|
+
if (f != null) {
|
|
7049
|
+
writer.writeInt32(
|
|
7050
|
+
29,
|
|
7051
|
+
f
|
|
7052
|
+
);
|
|
7053
|
+
}
|
|
6954
7054
|
};
|
|
6955
7055
|
|
|
6956
7056
|
|
|
@@ -7908,6 +8008,42 @@ proto.user.RegistrationRequest.prototype.hasIpCountry = function() {
|
|
|
7908
8008
|
};
|
|
7909
8009
|
|
|
7910
8010
|
|
|
8011
|
+
/**
|
|
8012
|
+
* optional int32 bonus_id = 29;
|
|
8013
|
+
* @return {number}
|
|
8014
|
+
*/
|
|
8015
|
+
proto.user.RegistrationRequest.prototype.getBonusId = function() {
|
|
8016
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 29, 0));
|
|
8017
|
+
};
|
|
8018
|
+
|
|
8019
|
+
|
|
8020
|
+
/**
|
|
8021
|
+
* @param {number} value
|
|
8022
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
|
8023
|
+
*/
|
|
8024
|
+
proto.user.RegistrationRequest.prototype.setBonusId = function(value) {
|
|
8025
|
+
return jspb.Message.setField(this, 29, value);
|
|
8026
|
+
};
|
|
8027
|
+
|
|
8028
|
+
|
|
8029
|
+
/**
|
|
8030
|
+
* Clears the field making it undefined.
|
|
8031
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
|
8032
|
+
*/
|
|
8033
|
+
proto.user.RegistrationRequest.prototype.clearBonusId = function() {
|
|
8034
|
+
return jspb.Message.setField(this, 29, undefined);
|
|
8035
|
+
};
|
|
8036
|
+
|
|
8037
|
+
|
|
8038
|
+
/**
|
|
8039
|
+
* Returns whether this field is set.
|
|
8040
|
+
* @return {boolean}
|
|
8041
|
+
*/
|
|
8042
|
+
proto.user.RegistrationRequest.prototype.hasBonusId = function() {
|
|
8043
|
+
return jspb.Message.getField(this, 29) != null;
|
|
8044
|
+
};
|
|
8045
|
+
|
|
8046
|
+
|
|
7911
8047
|
|
|
7912
8048
|
|
|
7913
8049
|
|
|
@@ -70858,6 +70994,586 @@ proto.user.ResetPasswordConfirmationRequest.prototype.setUserEmail = function(va
|
|
|
70858
70994
|
|
|
70859
70995
|
|
|
70860
70996
|
|
|
70997
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
70998
|
+
/**
|
|
70999
|
+
* Creates an object representation of this proto.
|
|
71000
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71001
|
+
* Optional fields that are not set will be set to undefined.
|
|
71002
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71003
|
+
* For the list of reserved names please see:
|
|
71004
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71005
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71006
|
+
* JSPB instance for transitional soy proto support:
|
|
71007
|
+
* http://goto/soy-param-migration
|
|
71008
|
+
* @return {!Object}
|
|
71009
|
+
*/
|
|
71010
|
+
proto.user.SmsResetPasswordConfirmationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71011
|
+
return proto.user.SmsResetPasswordConfirmationRequest.toObject(opt_includeInstance, this);
|
|
71012
|
+
};
|
|
71013
|
+
|
|
71014
|
+
|
|
71015
|
+
/**
|
|
71016
|
+
* Static version of the {@see toObject} method.
|
|
71017
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71018
|
+
* the JSPB instance for transitional soy proto support:
|
|
71019
|
+
* http://goto/soy-param-migration
|
|
71020
|
+
* @param {!proto.user.SmsResetPasswordConfirmationRequest} msg The msg instance to transform.
|
|
71021
|
+
* @return {!Object}
|
|
71022
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71023
|
+
*/
|
|
71024
|
+
proto.user.SmsResetPasswordConfirmationRequest.toObject = function(includeInstance, msg) {
|
|
71025
|
+
var f, obj = {
|
|
71026
|
+
phone: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
71027
|
+
};
|
|
71028
|
+
|
|
71029
|
+
if (includeInstance) {
|
|
71030
|
+
obj.$jspbMessageInstance = msg;
|
|
71031
|
+
}
|
|
71032
|
+
return obj;
|
|
71033
|
+
};
|
|
71034
|
+
}
|
|
71035
|
+
|
|
71036
|
+
|
|
71037
|
+
/**
|
|
71038
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71039
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71040
|
+
* @return {!proto.user.SmsResetPasswordConfirmationRequest}
|
|
71041
|
+
*/
|
|
71042
|
+
proto.user.SmsResetPasswordConfirmationRequest.deserializeBinary = function(bytes) {
|
|
71043
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71044
|
+
var msg = new proto.user.SmsResetPasswordConfirmationRequest;
|
|
71045
|
+
return proto.user.SmsResetPasswordConfirmationRequest.deserializeBinaryFromReader(msg, reader);
|
|
71046
|
+
};
|
|
71047
|
+
|
|
71048
|
+
|
|
71049
|
+
/**
|
|
71050
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71051
|
+
* given reader into the given message object.
|
|
71052
|
+
* @param {!proto.user.SmsResetPasswordConfirmationRequest} msg The message object to deserialize into.
|
|
71053
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71054
|
+
* @return {!proto.user.SmsResetPasswordConfirmationRequest}
|
|
71055
|
+
*/
|
|
71056
|
+
proto.user.SmsResetPasswordConfirmationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
71057
|
+
while (reader.nextField()) {
|
|
71058
|
+
if (reader.isEndGroup()) {
|
|
71059
|
+
break;
|
|
71060
|
+
}
|
|
71061
|
+
var field = reader.getFieldNumber();
|
|
71062
|
+
switch (field) {
|
|
71063
|
+
case 1:
|
|
71064
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71065
|
+
msg.setPhone(value);
|
|
71066
|
+
break;
|
|
71067
|
+
default:
|
|
71068
|
+
reader.skipField();
|
|
71069
|
+
break;
|
|
71070
|
+
}
|
|
71071
|
+
}
|
|
71072
|
+
return msg;
|
|
71073
|
+
};
|
|
71074
|
+
|
|
71075
|
+
|
|
71076
|
+
/**
|
|
71077
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71078
|
+
* @return {!Uint8Array}
|
|
71079
|
+
*/
|
|
71080
|
+
proto.user.SmsResetPasswordConfirmationRequest.prototype.serializeBinary = function() {
|
|
71081
|
+
var writer = new jspb.BinaryWriter();
|
|
71082
|
+
proto.user.SmsResetPasswordConfirmationRequest.serializeBinaryToWriter(this, writer);
|
|
71083
|
+
return writer.getResultBuffer();
|
|
71084
|
+
};
|
|
71085
|
+
|
|
71086
|
+
|
|
71087
|
+
/**
|
|
71088
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71089
|
+
* format), writing to the given BinaryWriter.
|
|
71090
|
+
* @param {!proto.user.SmsResetPasswordConfirmationRequest} message
|
|
71091
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71092
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71093
|
+
*/
|
|
71094
|
+
proto.user.SmsResetPasswordConfirmationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
71095
|
+
var f = undefined;
|
|
71096
|
+
f = message.getPhone();
|
|
71097
|
+
if (f.length > 0) {
|
|
71098
|
+
writer.writeString(
|
|
71099
|
+
1,
|
|
71100
|
+
f
|
|
71101
|
+
);
|
|
71102
|
+
}
|
|
71103
|
+
};
|
|
71104
|
+
|
|
71105
|
+
|
|
71106
|
+
/**
|
|
71107
|
+
* optional string phone = 1;
|
|
71108
|
+
* @return {string}
|
|
71109
|
+
*/
|
|
71110
|
+
proto.user.SmsResetPasswordConfirmationRequest.prototype.getPhone = function() {
|
|
71111
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
71112
|
+
};
|
|
71113
|
+
|
|
71114
|
+
|
|
71115
|
+
/**
|
|
71116
|
+
* @param {string} value
|
|
71117
|
+
* @return {!proto.user.SmsResetPasswordConfirmationRequest} returns this
|
|
71118
|
+
*/
|
|
71119
|
+
proto.user.SmsResetPasswordConfirmationRequest.prototype.setPhone = function(value) {
|
|
71120
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
71121
|
+
};
|
|
71122
|
+
|
|
71123
|
+
|
|
71124
|
+
|
|
71125
|
+
|
|
71126
|
+
|
|
71127
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71128
|
+
/**
|
|
71129
|
+
* Creates an object representation of this proto.
|
|
71130
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71131
|
+
* Optional fields that are not set will be set to undefined.
|
|
71132
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71133
|
+
* For the list of reserved names please see:
|
|
71134
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71135
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71136
|
+
* JSPB instance for transitional soy proto support:
|
|
71137
|
+
* http://goto/soy-param-migration
|
|
71138
|
+
* @return {!Object}
|
|
71139
|
+
*/
|
|
71140
|
+
proto.user.VerifySmsResetPasswordCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71141
|
+
return proto.user.VerifySmsResetPasswordCodeRequest.toObject(opt_includeInstance, this);
|
|
71142
|
+
};
|
|
71143
|
+
|
|
71144
|
+
|
|
71145
|
+
/**
|
|
71146
|
+
* Static version of the {@see toObject} method.
|
|
71147
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71148
|
+
* the JSPB instance for transitional soy proto support:
|
|
71149
|
+
* http://goto/soy-param-migration
|
|
71150
|
+
* @param {!proto.user.VerifySmsResetPasswordCodeRequest} msg The msg instance to transform.
|
|
71151
|
+
* @return {!Object}
|
|
71152
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71153
|
+
*/
|
|
71154
|
+
proto.user.VerifySmsResetPasswordCodeRequest.toObject = function(includeInstance, msg) {
|
|
71155
|
+
var f, obj = {
|
|
71156
|
+
phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
71157
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
71158
|
+
};
|
|
71159
|
+
|
|
71160
|
+
if (includeInstance) {
|
|
71161
|
+
obj.$jspbMessageInstance = msg;
|
|
71162
|
+
}
|
|
71163
|
+
return obj;
|
|
71164
|
+
};
|
|
71165
|
+
}
|
|
71166
|
+
|
|
71167
|
+
|
|
71168
|
+
/**
|
|
71169
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71170
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71171
|
+
* @return {!proto.user.VerifySmsResetPasswordCodeRequest}
|
|
71172
|
+
*/
|
|
71173
|
+
proto.user.VerifySmsResetPasswordCodeRequest.deserializeBinary = function(bytes) {
|
|
71174
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71175
|
+
var msg = new proto.user.VerifySmsResetPasswordCodeRequest;
|
|
71176
|
+
return proto.user.VerifySmsResetPasswordCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
71177
|
+
};
|
|
71178
|
+
|
|
71179
|
+
|
|
71180
|
+
/**
|
|
71181
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71182
|
+
* given reader into the given message object.
|
|
71183
|
+
* @param {!proto.user.VerifySmsResetPasswordCodeRequest} msg The message object to deserialize into.
|
|
71184
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71185
|
+
* @return {!proto.user.VerifySmsResetPasswordCodeRequest}
|
|
71186
|
+
*/
|
|
71187
|
+
proto.user.VerifySmsResetPasswordCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
71188
|
+
while (reader.nextField()) {
|
|
71189
|
+
if (reader.isEndGroup()) {
|
|
71190
|
+
break;
|
|
71191
|
+
}
|
|
71192
|
+
var field = reader.getFieldNumber();
|
|
71193
|
+
switch (field) {
|
|
71194
|
+
case 1:
|
|
71195
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71196
|
+
msg.setPhone(value);
|
|
71197
|
+
break;
|
|
71198
|
+
case 2:
|
|
71199
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71200
|
+
msg.setCode(value);
|
|
71201
|
+
break;
|
|
71202
|
+
default:
|
|
71203
|
+
reader.skipField();
|
|
71204
|
+
break;
|
|
71205
|
+
}
|
|
71206
|
+
}
|
|
71207
|
+
return msg;
|
|
71208
|
+
};
|
|
71209
|
+
|
|
71210
|
+
|
|
71211
|
+
/**
|
|
71212
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71213
|
+
* @return {!Uint8Array}
|
|
71214
|
+
*/
|
|
71215
|
+
proto.user.VerifySmsResetPasswordCodeRequest.prototype.serializeBinary = function() {
|
|
71216
|
+
var writer = new jspb.BinaryWriter();
|
|
71217
|
+
proto.user.VerifySmsResetPasswordCodeRequest.serializeBinaryToWriter(this, writer);
|
|
71218
|
+
return writer.getResultBuffer();
|
|
71219
|
+
};
|
|
71220
|
+
|
|
71221
|
+
|
|
71222
|
+
/**
|
|
71223
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71224
|
+
* format), writing to the given BinaryWriter.
|
|
71225
|
+
* @param {!proto.user.VerifySmsResetPasswordCodeRequest} message
|
|
71226
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71227
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71228
|
+
*/
|
|
71229
|
+
proto.user.VerifySmsResetPasswordCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
71230
|
+
var f = undefined;
|
|
71231
|
+
f = message.getPhone();
|
|
71232
|
+
if (f.length > 0) {
|
|
71233
|
+
writer.writeString(
|
|
71234
|
+
1,
|
|
71235
|
+
f
|
|
71236
|
+
);
|
|
71237
|
+
}
|
|
71238
|
+
f = message.getCode();
|
|
71239
|
+
if (f.length > 0) {
|
|
71240
|
+
writer.writeString(
|
|
71241
|
+
2,
|
|
71242
|
+
f
|
|
71243
|
+
);
|
|
71244
|
+
}
|
|
71245
|
+
};
|
|
71246
|
+
|
|
71247
|
+
|
|
71248
|
+
/**
|
|
71249
|
+
* optional string phone = 1;
|
|
71250
|
+
* @return {string}
|
|
71251
|
+
*/
|
|
71252
|
+
proto.user.VerifySmsResetPasswordCodeRequest.prototype.getPhone = function() {
|
|
71253
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
71254
|
+
};
|
|
71255
|
+
|
|
71256
|
+
|
|
71257
|
+
/**
|
|
71258
|
+
* @param {string} value
|
|
71259
|
+
* @return {!proto.user.VerifySmsResetPasswordCodeRequest} returns this
|
|
71260
|
+
*/
|
|
71261
|
+
proto.user.VerifySmsResetPasswordCodeRequest.prototype.setPhone = function(value) {
|
|
71262
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
71263
|
+
};
|
|
71264
|
+
|
|
71265
|
+
|
|
71266
|
+
/**
|
|
71267
|
+
* optional string code = 2;
|
|
71268
|
+
* @return {string}
|
|
71269
|
+
*/
|
|
71270
|
+
proto.user.VerifySmsResetPasswordCodeRequest.prototype.getCode = function() {
|
|
71271
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
71272
|
+
};
|
|
71273
|
+
|
|
71274
|
+
|
|
71275
|
+
/**
|
|
71276
|
+
* @param {string} value
|
|
71277
|
+
* @return {!proto.user.VerifySmsResetPasswordCodeRequest} returns this
|
|
71278
|
+
*/
|
|
71279
|
+
proto.user.VerifySmsResetPasswordCodeRequest.prototype.setCode = function(value) {
|
|
71280
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
71281
|
+
};
|
|
71282
|
+
|
|
71283
|
+
|
|
71284
|
+
|
|
71285
|
+
|
|
71286
|
+
|
|
71287
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71288
|
+
/**
|
|
71289
|
+
* Creates an object representation of this proto.
|
|
71290
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71291
|
+
* Optional fields that are not set will be set to undefined.
|
|
71292
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71293
|
+
* For the list of reserved names please see:
|
|
71294
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71295
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71296
|
+
* JSPB instance for transitional soy proto support:
|
|
71297
|
+
* http://goto/soy-param-migration
|
|
71298
|
+
* @return {!Object}
|
|
71299
|
+
*/
|
|
71300
|
+
proto.user.VerifySmsResetPasswordCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
71301
|
+
return proto.user.VerifySmsResetPasswordCodeResponse.toObject(opt_includeInstance, this);
|
|
71302
|
+
};
|
|
71303
|
+
|
|
71304
|
+
|
|
71305
|
+
/**
|
|
71306
|
+
* Static version of the {@see toObject} method.
|
|
71307
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71308
|
+
* the JSPB instance for transitional soy proto support:
|
|
71309
|
+
* http://goto/soy-param-migration
|
|
71310
|
+
* @param {!proto.user.VerifySmsResetPasswordCodeResponse} msg The msg instance to transform.
|
|
71311
|
+
* @return {!Object}
|
|
71312
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71313
|
+
*/
|
|
71314
|
+
proto.user.VerifySmsResetPasswordCodeResponse.toObject = function(includeInstance, msg) {
|
|
71315
|
+
var f, obj = {
|
|
71316
|
+
passwordResetToken: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
71317
|
+
};
|
|
71318
|
+
|
|
71319
|
+
if (includeInstance) {
|
|
71320
|
+
obj.$jspbMessageInstance = msg;
|
|
71321
|
+
}
|
|
71322
|
+
return obj;
|
|
71323
|
+
};
|
|
71324
|
+
}
|
|
71325
|
+
|
|
71326
|
+
|
|
71327
|
+
/**
|
|
71328
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71329
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71330
|
+
* @return {!proto.user.VerifySmsResetPasswordCodeResponse}
|
|
71331
|
+
*/
|
|
71332
|
+
proto.user.VerifySmsResetPasswordCodeResponse.deserializeBinary = function(bytes) {
|
|
71333
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71334
|
+
var msg = new proto.user.VerifySmsResetPasswordCodeResponse;
|
|
71335
|
+
return proto.user.VerifySmsResetPasswordCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
71336
|
+
};
|
|
71337
|
+
|
|
71338
|
+
|
|
71339
|
+
/**
|
|
71340
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71341
|
+
* given reader into the given message object.
|
|
71342
|
+
* @param {!proto.user.VerifySmsResetPasswordCodeResponse} msg The message object to deserialize into.
|
|
71343
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71344
|
+
* @return {!proto.user.VerifySmsResetPasswordCodeResponse}
|
|
71345
|
+
*/
|
|
71346
|
+
proto.user.VerifySmsResetPasswordCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
71347
|
+
while (reader.nextField()) {
|
|
71348
|
+
if (reader.isEndGroup()) {
|
|
71349
|
+
break;
|
|
71350
|
+
}
|
|
71351
|
+
var field = reader.getFieldNumber();
|
|
71352
|
+
switch (field) {
|
|
71353
|
+
case 1:
|
|
71354
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71355
|
+
msg.setPasswordResetToken(value);
|
|
71356
|
+
break;
|
|
71357
|
+
default:
|
|
71358
|
+
reader.skipField();
|
|
71359
|
+
break;
|
|
71360
|
+
}
|
|
71361
|
+
}
|
|
71362
|
+
return msg;
|
|
71363
|
+
};
|
|
71364
|
+
|
|
71365
|
+
|
|
71366
|
+
/**
|
|
71367
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71368
|
+
* @return {!Uint8Array}
|
|
71369
|
+
*/
|
|
71370
|
+
proto.user.VerifySmsResetPasswordCodeResponse.prototype.serializeBinary = function() {
|
|
71371
|
+
var writer = new jspb.BinaryWriter();
|
|
71372
|
+
proto.user.VerifySmsResetPasswordCodeResponse.serializeBinaryToWriter(this, writer);
|
|
71373
|
+
return writer.getResultBuffer();
|
|
71374
|
+
};
|
|
71375
|
+
|
|
71376
|
+
|
|
71377
|
+
/**
|
|
71378
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71379
|
+
* format), writing to the given BinaryWriter.
|
|
71380
|
+
* @param {!proto.user.VerifySmsResetPasswordCodeResponse} message
|
|
71381
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71382
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71383
|
+
*/
|
|
71384
|
+
proto.user.VerifySmsResetPasswordCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
71385
|
+
var f = undefined;
|
|
71386
|
+
f = message.getPasswordResetToken();
|
|
71387
|
+
if (f.length > 0) {
|
|
71388
|
+
writer.writeString(
|
|
71389
|
+
1,
|
|
71390
|
+
f
|
|
71391
|
+
);
|
|
71392
|
+
}
|
|
71393
|
+
};
|
|
71394
|
+
|
|
71395
|
+
|
|
71396
|
+
/**
|
|
71397
|
+
* optional string password_reset_token = 1;
|
|
71398
|
+
* @return {string}
|
|
71399
|
+
*/
|
|
71400
|
+
proto.user.VerifySmsResetPasswordCodeResponse.prototype.getPasswordResetToken = function() {
|
|
71401
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
71402
|
+
};
|
|
71403
|
+
|
|
71404
|
+
|
|
71405
|
+
/**
|
|
71406
|
+
* @param {string} value
|
|
71407
|
+
* @return {!proto.user.VerifySmsResetPasswordCodeResponse} returns this
|
|
71408
|
+
*/
|
|
71409
|
+
proto.user.VerifySmsResetPasswordCodeResponse.prototype.setPasswordResetToken = function(value) {
|
|
71410
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
71411
|
+
};
|
|
71412
|
+
|
|
71413
|
+
|
|
71414
|
+
|
|
71415
|
+
|
|
71416
|
+
|
|
71417
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71418
|
+
/**
|
|
71419
|
+
* Creates an object representation of this proto.
|
|
71420
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71421
|
+
* Optional fields that are not set will be set to undefined.
|
|
71422
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71423
|
+
* For the list of reserved names please see:
|
|
71424
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71425
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71426
|
+
* JSPB instance for transitional soy proto support:
|
|
71427
|
+
* http://goto/soy-param-migration
|
|
71428
|
+
* @return {!Object}
|
|
71429
|
+
*/
|
|
71430
|
+
proto.user.SetNewPasswordFromSmsResetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71431
|
+
return proto.user.SetNewPasswordFromSmsResetRequest.toObject(opt_includeInstance, this);
|
|
71432
|
+
};
|
|
71433
|
+
|
|
71434
|
+
|
|
71435
|
+
/**
|
|
71436
|
+
* Static version of the {@see toObject} method.
|
|
71437
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71438
|
+
* the JSPB instance for transitional soy proto support:
|
|
71439
|
+
* http://goto/soy-param-migration
|
|
71440
|
+
* @param {!proto.user.SetNewPasswordFromSmsResetRequest} msg The msg instance to transform.
|
|
71441
|
+
* @return {!Object}
|
|
71442
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71443
|
+
*/
|
|
71444
|
+
proto.user.SetNewPasswordFromSmsResetRequest.toObject = function(includeInstance, msg) {
|
|
71445
|
+
var f, obj = {
|
|
71446
|
+
passwordResetToken: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
71447
|
+
newPassword: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
71448
|
+
};
|
|
71449
|
+
|
|
71450
|
+
if (includeInstance) {
|
|
71451
|
+
obj.$jspbMessageInstance = msg;
|
|
71452
|
+
}
|
|
71453
|
+
return obj;
|
|
71454
|
+
};
|
|
71455
|
+
}
|
|
71456
|
+
|
|
71457
|
+
|
|
71458
|
+
/**
|
|
71459
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71460
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71461
|
+
* @return {!proto.user.SetNewPasswordFromSmsResetRequest}
|
|
71462
|
+
*/
|
|
71463
|
+
proto.user.SetNewPasswordFromSmsResetRequest.deserializeBinary = function(bytes) {
|
|
71464
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71465
|
+
var msg = new proto.user.SetNewPasswordFromSmsResetRequest;
|
|
71466
|
+
return proto.user.SetNewPasswordFromSmsResetRequest.deserializeBinaryFromReader(msg, reader);
|
|
71467
|
+
};
|
|
71468
|
+
|
|
71469
|
+
|
|
71470
|
+
/**
|
|
71471
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71472
|
+
* given reader into the given message object.
|
|
71473
|
+
* @param {!proto.user.SetNewPasswordFromSmsResetRequest} msg The message object to deserialize into.
|
|
71474
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71475
|
+
* @return {!proto.user.SetNewPasswordFromSmsResetRequest}
|
|
71476
|
+
*/
|
|
71477
|
+
proto.user.SetNewPasswordFromSmsResetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
71478
|
+
while (reader.nextField()) {
|
|
71479
|
+
if (reader.isEndGroup()) {
|
|
71480
|
+
break;
|
|
71481
|
+
}
|
|
71482
|
+
var field = reader.getFieldNumber();
|
|
71483
|
+
switch (field) {
|
|
71484
|
+
case 1:
|
|
71485
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71486
|
+
msg.setPasswordResetToken(value);
|
|
71487
|
+
break;
|
|
71488
|
+
case 2:
|
|
71489
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71490
|
+
msg.setNewPassword(value);
|
|
71491
|
+
break;
|
|
71492
|
+
default:
|
|
71493
|
+
reader.skipField();
|
|
71494
|
+
break;
|
|
71495
|
+
}
|
|
71496
|
+
}
|
|
71497
|
+
return msg;
|
|
71498
|
+
};
|
|
71499
|
+
|
|
71500
|
+
|
|
71501
|
+
/**
|
|
71502
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71503
|
+
* @return {!Uint8Array}
|
|
71504
|
+
*/
|
|
71505
|
+
proto.user.SetNewPasswordFromSmsResetRequest.prototype.serializeBinary = function() {
|
|
71506
|
+
var writer = new jspb.BinaryWriter();
|
|
71507
|
+
proto.user.SetNewPasswordFromSmsResetRequest.serializeBinaryToWriter(this, writer);
|
|
71508
|
+
return writer.getResultBuffer();
|
|
71509
|
+
};
|
|
71510
|
+
|
|
71511
|
+
|
|
71512
|
+
/**
|
|
71513
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71514
|
+
* format), writing to the given BinaryWriter.
|
|
71515
|
+
* @param {!proto.user.SetNewPasswordFromSmsResetRequest} message
|
|
71516
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71517
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71518
|
+
*/
|
|
71519
|
+
proto.user.SetNewPasswordFromSmsResetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
71520
|
+
var f = undefined;
|
|
71521
|
+
f = message.getPasswordResetToken();
|
|
71522
|
+
if (f.length > 0) {
|
|
71523
|
+
writer.writeString(
|
|
71524
|
+
1,
|
|
71525
|
+
f
|
|
71526
|
+
);
|
|
71527
|
+
}
|
|
71528
|
+
f = message.getNewPassword();
|
|
71529
|
+
if (f.length > 0) {
|
|
71530
|
+
writer.writeString(
|
|
71531
|
+
2,
|
|
71532
|
+
f
|
|
71533
|
+
);
|
|
71534
|
+
}
|
|
71535
|
+
};
|
|
71536
|
+
|
|
71537
|
+
|
|
71538
|
+
/**
|
|
71539
|
+
* optional string password_reset_token = 1;
|
|
71540
|
+
* @return {string}
|
|
71541
|
+
*/
|
|
71542
|
+
proto.user.SetNewPasswordFromSmsResetRequest.prototype.getPasswordResetToken = function() {
|
|
71543
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
71544
|
+
};
|
|
71545
|
+
|
|
71546
|
+
|
|
71547
|
+
/**
|
|
71548
|
+
* @param {string} value
|
|
71549
|
+
* @return {!proto.user.SetNewPasswordFromSmsResetRequest} returns this
|
|
71550
|
+
*/
|
|
71551
|
+
proto.user.SetNewPasswordFromSmsResetRequest.prototype.setPasswordResetToken = function(value) {
|
|
71552
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
71553
|
+
};
|
|
71554
|
+
|
|
71555
|
+
|
|
71556
|
+
/**
|
|
71557
|
+
* optional string new_password = 2;
|
|
71558
|
+
* @return {string}
|
|
71559
|
+
*/
|
|
71560
|
+
proto.user.SetNewPasswordFromSmsResetRequest.prototype.getNewPassword = function() {
|
|
71561
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
71562
|
+
};
|
|
71563
|
+
|
|
71564
|
+
|
|
71565
|
+
/**
|
|
71566
|
+
* @param {string} value
|
|
71567
|
+
* @return {!proto.user.SetNewPasswordFromSmsResetRequest} returns this
|
|
71568
|
+
*/
|
|
71569
|
+
proto.user.SetNewPasswordFromSmsResetRequest.prototype.setNewPassword = function(value) {
|
|
71570
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
71571
|
+
};
|
|
71572
|
+
|
|
71573
|
+
|
|
71574
|
+
|
|
71575
|
+
|
|
71576
|
+
|
|
70861
71577
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
70862
71578
|
/**
|
|
70863
71579
|
* Creates an object representation of this proto.
|