@sniipwebmaster/user-service-client-grpcweb-ts 24.1.11005 → 24.1.11014
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.
|
@@ -5200,6 +5200,49 @@ export class SniipUserServiceServiceClient {
|
|
|
5200
5200
|
this.methodDescriptorValidatePassword);
|
|
5201
5201
|
}
|
|
5202
5202
|
|
|
5203
|
+
methodDescriptorInternalValidatePassword = new grpcWeb.MethodDescriptor(
|
|
5204
|
+
'/sniipuserservice.SniipUserServiceService/InternalValidatePassword',
|
|
5205
|
+
grpcWeb.MethodType.UNARY,
|
|
5206
|
+
service_pb.InternalValidatePasswordRequest,
|
|
5207
|
+
service_pb.ResponseCode,
|
|
5208
|
+
(request: service_pb.InternalValidatePasswordRequest) => {
|
|
5209
|
+
return request.serializeBinary();
|
|
5210
|
+
},
|
|
5211
|
+
service_pb.ResponseCode.deserializeBinary
|
|
5212
|
+
);
|
|
5213
|
+
|
|
5214
|
+
internalValidatePassword(
|
|
5215
|
+
request: service_pb.InternalValidatePasswordRequest,
|
|
5216
|
+
metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
|
|
5217
|
+
|
|
5218
|
+
internalValidatePassword(
|
|
5219
|
+
request: service_pb.InternalValidatePasswordRequest,
|
|
5220
|
+
metadata: grpcWeb.Metadata | null,
|
|
5221
|
+
callback: (err: grpcWeb.RpcError,
|
|
5222
|
+
response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
|
|
5223
|
+
|
|
5224
|
+
internalValidatePassword(
|
|
5225
|
+
request: service_pb.InternalValidatePasswordRequest,
|
|
5226
|
+
metadata: grpcWeb.Metadata | null,
|
|
5227
|
+
callback?: (err: grpcWeb.RpcError,
|
|
5228
|
+
response: service_pb.ResponseCode) => void) {
|
|
5229
|
+
if (callback !== undefined) {
|
|
5230
|
+
return this.client_.rpcCall(
|
|
5231
|
+
this.hostname_ +
|
|
5232
|
+
'/sniipuserservice.SniipUserServiceService/InternalValidatePassword',
|
|
5233
|
+
request,
|
|
5234
|
+
metadata || {},
|
|
5235
|
+
this.methodDescriptorInternalValidatePassword,
|
|
5236
|
+
callback);
|
|
5237
|
+
}
|
|
5238
|
+
return this.client_.unaryCall(
|
|
5239
|
+
this.hostname_ +
|
|
5240
|
+
'/sniipuserservice.SniipUserServiceService/InternalValidatePassword',
|
|
5241
|
+
request,
|
|
5242
|
+
metadata || {},
|
|
5243
|
+
this.methodDescriptorInternalValidatePassword);
|
|
5244
|
+
}
|
|
5245
|
+
|
|
5203
5246
|
methodDescriptorValidatePin = new grpcWeb.MethodDescriptor(
|
|
5204
5247
|
'/sniipuserservice.SniipUserServiceService/ValidatePin',
|
|
5205
5248
|
grpcWeb.MethodType.UNARY,
|
|
@@ -5243,6 +5286,49 @@ export class SniipUserServiceServiceClient {
|
|
|
5243
5286
|
this.methodDescriptorValidatePin);
|
|
5244
5287
|
}
|
|
5245
5288
|
|
|
5289
|
+
methodDescriptorInternalValidatePin = new grpcWeb.MethodDescriptor(
|
|
5290
|
+
'/sniipuserservice.SniipUserServiceService/InternalValidatePin',
|
|
5291
|
+
grpcWeb.MethodType.UNARY,
|
|
5292
|
+
service_pb.InternalValidatePinRequest,
|
|
5293
|
+
service_pb.PinResponse,
|
|
5294
|
+
(request: service_pb.InternalValidatePinRequest) => {
|
|
5295
|
+
return request.serializeBinary();
|
|
5296
|
+
},
|
|
5297
|
+
service_pb.PinResponse.deserializeBinary
|
|
5298
|
+
);
|
|
5299
|
+
|
|
5300
|
+
internalValidatePin(
|
|
5301
|
+
request: service_pb.InternalValidatePinRequest,
|
|
5302
|
+
metadata: grpcWeb.Metadata | null): Promise<service_pb.PinResponse>;
|
|
5303
|
+
|
|
5304
|
+
internalValidatePin(
|
|
5305
|
+
request: service_pb.InternalValidatePinRequest,
|
|
5306
|
+
metadata: grpcWeb.Metadata | null,
|
|
5307
|
+
callback: (err: grpcWeb.RpcError,
|
|
5308
|
+
response: service_pb.PinResponse) => void): grpcWeb.ClientReadableStream<service_pb.PinResponse>;
|
|
5309
|
+
|
|
5310
|
+
internalValidatePin(
|
|
5311
|
+
request: service_pb.InternalValidatePinRequest,
|
|
5312
|
+
metadata: grpcWeb.Metadata | null,
|
|
5313
|
+
callback?: (err: grpcWeb.RpcError,
|
|
5314
|
+
response: service_pb.PinResponse) => void) {
|
|
5315
|
+
if (callback !== undefined) {
|
|
5316
|
+
return this.client_.rpcCall(
|
|
5317
|
+
this.hostname_ +
|
|
5318
|
+
'/sniipuserservice.SniipUserServiceService/InternalValidatePin',
|
|
5319
|
+
request,
|
|
5320
|
+
metadata || {},
|
|
5321
|
+
this.methodDescriptorInternalValidatePin,
|
|
5322
|
+
callback);
|
|
5323
|
+
}
|
|
5324
|
+
return this.client_.unaryCall(
|
|
5325
|
+
this.hostname_ +
|
|
5326
|
+
'/sniipuserservice.SniipUserServiceService/InternalValidatePin',
|
|
5327
|
+
request,
|
|
5328
|
+
metadata || {},
|
|
5329
|
+
this.methodDescriptorInternalValidatePin);
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5246
5332
|
methodDescriptorValidateVerificationCodeEmail = new grpcWeb.MethodDescriptor(
|
|
5247
5333
|
'/sniipuserservice.SniipUserServiceService/ValidateVerificationCodeEmail',
|
|
5248
5334
|
grpcWeb.MethodType.UNARY,
|
|
@@ -5178,6 +5178,28 @@ export namespace ValidatePasswordRequest {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
}
|
|
5180
5180
|
|
|
5181
|
+
export class InternalValidatePasswordRequest extends jspb.Message {
|
|
5182
|
+
getPassword(): string;
|
|
5183
|
+
setPassword(value: string): InternalValidatePasswordRequest;
|
|
5184
|
+
|
|
5185
|
+
getUserid(): number;
|
|
5186
|
+
setUserid(value: number): InternalValidatePasswordRequest;
|
|
5187
|
+
|
|
5188
|
+
serializeBinary(): Uint8Array;
|
|
5189
|
+
toObject(includeInstance?: boolean): InternalValidatePasswordRequest.AsObject;
|
|
5190
|
+
static toObject(includeInstance: boolean, msg: InternalValidatePasswordRequest): InternalValidatePasswordRequest.AsObject;
|
|
5191
|
+
static serializeBinaryToWriter(message: InternalValidatePasswordRequest, writer: jspb.BinaryWriter): void;
|
|
5192
|
+
static deserializeBinary(bytes: Uint8Array): InternalValidatePasswordRequest;
|
|
5193
|
+
static deserializeBinaryFromReader(message: InternalValidatePasswordRequest, reader: jspb.BinaryReader): InternalValidatePasswordRequest;
|
|
5194
|
+
}
|
|
5195
|
+
|
|
5196
|
+
export namespace InternalValidatePasswordRequest {
|
|
5197
|
+
export type AsObject = {
|
|
5198
|
+
password: string,
|
|
5199
|
+
userid: number,
|
|
5200
|
+
}
|
|
5201
|
+
}
|
|
5202
|
+
|
|
5181
5203
|
export class ValidatePinRequest extends jspb.Message {
|
|
5182
5204
|
getPin(): string;
|
|
5183
5205
|
setPin(value: string): ValidatePinRequest;
|
|
@@ -5200,6 +5222,32 @@ export namespace ValidatePinRequest {
|
|
|
5200
5222
|
}
|
|
5201
5223
|
}
|
|
5202
5224
|
|
|
5225
|
+
export class InternalValidatePinRequest extends jspb.Message {
|
|
5226
|
+
getPin(): string;
|
|
5227
|
+
setPin(value: string): InternalValidatePinRequest;
|
|
5228
|
+
|
|
5229
|
+
getShouldgetpin(): boolean;
|
|
5230
|
+
setShouldgetpin(value: boolean): InternalValidatePinRequest;
|
|
5231
|
+
|
|
5232
|
+
getUserid(): number;
|
|
5233
|
+
setUserid(value: number): InternalValidatePinRequest;
|
|
5234
|
+
|
|
5235
|
+
serializeBinary(): Uint8Array;
|
|
5236
|
+
toObject(includeInstance?: boolean): InternalValidatePinRequest.AsObject;
|
|
5237
|
+
static toObject(includeInstance: boolean, msg: InternalValidatePinRequest): InternalValidatePinRequest.AsObject;
|
|
5238
|
+
static serializeBinaryToWriter(message: InternalValidatePinRequest, writer: jspb.BinaryWriter): void;
|
|
5239
|
+
static deserializeBinary(bytes: Uint8Array): InternalValidatePinRequest;
|
|
5240
|
+
static deserializeBinaryFromReader(message: InternalValidatePinRequest, reader: jspb.BinaryReader): InternalValidatePinRequest;
|
|
5241
|
+
}
|
|
5242
|
+
|
|
5243
|
+
export namespace InternalValidatePinRequest {
|
|
5244
|
+
export type AsObject = {
|
|
5245
|
+
pin: string,
|
|
5246
|
+
shouldgetpin: boolean,
|
|
5247
|
+
userid: number,
|
|
5248
|
+
}
|
|
5249
|
+
}
|
|
5250
|
+
|
|
5203
5251
|
export class ValidateVerificationCodeEmailRequest extends jspb.Message {
|
|
5204
5252
|
getEmail(): string;
|
|
5205
5253
|
setEmail(value: string): ValidateVerificationCodeEmailRequest;
|
|
@@ -89,6 +89,8 @@ goog.exportSymbol('proto.sniipuserservice.GetUserDevicesHistoryResponse', null,
|
|
|
89
89
|
goog.exportSymbol('proto.sniipuserservice.GetUserStatusRequest', null, global);
|
|
90
90
|
goog.exportSymbol('proto.sniipuserservice.GetUserStatusResponse', null, global);
|
|
91
91
|
goog.exportSymbol('proto.sniipuserservice.GiveFeedbackRequest', null, global);
|
|
92
|
+
goog.exportSymbol('proto.sniipuserservice.InternalValidatePasswordRequest', null, global);
|
|
93
|
+
goog.exportSymbol('proto.sniipuserservice.InternalValidatePinRequest', null, global);
|
|
92
94
|
goog.exportSymbol('proto.sniipuserservice.IsEmailVerifiedRequest', null, global);
|
|
93
95
|
goog.exportSymbol('proto.sniipuserservice.IsEmailVerifiedResponse', null, global);
|
|
94
96
|
goog.exportSymbol('proto.sniipuserservice.IsPhoneValidRequest', null, global);
|
|
@@ -3946,6 +3948,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3946
3948
|
*/
|
|
3947
3949
|
proto.sniipuserservice.ValidatePasswordRequest.displayName = 'proto.sniipuserservice.ValidatePasswordRequest';
|
|
3948
3950
|
}
|
|
3951
|
+
/**
|
|
3952
|
+
* Generated by JsPbCodeGenerator.
|
|
3953
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3954
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3955
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3956
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3957
|
+
* valid.
|
|
3958
|
+
* @extends {jspb.Message}
|
|
3959
|
+
* @constructor
|
|
3960
|
+
*/
|
|
3961
|
+
proto.sniipuserservice.InternalValidatePasswordRequest = function(opt_data) {
|
|
3962
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3963
|
+
};
|
|
3964
|
+
goog.inherits(proto.sniipuserservice.InternalValidatePasswordRequest, jspb.Message);
|
|
3965
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3966
|
+
/**
|
|
3967
|
+
* @public
|
|
3968
|
+
* @override
|
|
3969
|
+
*/
|
|
3970
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.displayName = 'proto.sniipuserservice.InternalValidatePasswordRequest';
|
|
3971
|
+
}
|
|
3949
3972
|
/**
|
|
3950
3973
|
* Generated by JsPbCodeGenerator.
|
|
3951
3974
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3967,6 +3990,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3967
3990
|
*/
|
|
3968
3991
|
proto.sniipuserservice.ValidatePinRequest.displayName = 'proto.sniipuserservice.ValidatePinRequest';
|
|
3969
3992
|
}
|
|
3993
|
+
/**
|
|
3994
|
+
* Generated by JsPbCodeGenerator.
|
|
3995
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3996
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3997
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3998
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3999
|
+
* valid.
|
|
4000
|
+
* @extends {jspb.Message}
|
|
4001
|
+
* @constructor
|
|
4002
|
+
*/
|
|
4003
|
+
proto.sniipuserservice.InternalValidatePinRequest = function(opt_data) {
|
|
4004
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4005
|
+
};
|
|
4006
|
+
goog.inherits(proto.sniipuserservice.InternalValidatePinRequest, jspb.Message);
|
|
4007
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4008
|
+
/**
|
|
4009
|
+
* @public
|
|
4010
|
+
* @override
|
|
4011
|
+
*/
|
|
4012
|
+
proto.sniipuserservice.InternalValidatePinRequest.displayName = 'proto.sniipuserservice.InternalValidatePinRequest';
|
|
4013
|
+
}
|
|
3970
4014
|
/**
|
|
3971
4015
|
* Generated by JsPbCodeGenerator.
|
|
3972
4016
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -42961,6 +43005,166 @@ proto.sniipuserservice.ValidatePasswordRequest.prototype.setPassword = function(
|
|
|
42961
43005
|
|
|
42962
43006
|
|
|
42963
43007
|
|
|
43008
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43009
|
+
/**
|
|
43010
|
+
* Creates an object representation of this proto.
|
|
43011
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43012
|
+
* Optional fields that are not set will be set to undefined.
|
|
43013
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43014
|
+
* For the list of reserved names please see:
|
|
43015
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43016
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43017
|
+
* JSPB instance for transitional soy proto support:
|
|
43018
|
+
* http://goto/soy-param-migration
|
|
43019
|
+
* @return {!Object}
|
|
43020
|
+
*/
|
|
43021
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.prototype.toObject = function(opt_includeInstance) {
|
|
43022
|
+
return proto.sniipuserservice.InternalValidatePasswordRequest.toObject(opt_includeInstance, this);
|
|
43023
|
+
};
|
|
43024
|
+
|
|
43025
|
+
|
|
43026
|
+
/**
|
|
43027
|
+
* Static version of the {@see toObject} method.
|
|
43028
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43029
|
+
* the JSPB instance for transitional soy proto support:
|
|
43030
|
+
* http://goto/soy-param-migration
|
|
43031
|
+
* @param {!proto.sniipuserservice.InternalValidatePasswordRequest} msg The msg instance to transform.
|
|
43032
|
+
* @return {!Object}
|
|
43033
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43034
|
+
*/
|
|
43035
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.toObject = function(includeInstance, msg) {
|
|
43036
|
+
var f, obj = {
|
|
43037
|
+
password: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
43038
|
+
userid: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
43039
|
+
};
|
|
43040
|
+
|
|
43041
|
+
if (includeInstance) {
|
|
43042
|
+
obj.$jspbMessageInstance = msg;
|
|
43043
|
+
}
|
|
43044
|
+
return obj;
|
|
43045
|
+
};
|
|
43046
|
+
}
|
|
43047
|
+
|
|
43048
|
+
|
|
43049
|
+
/**
|
|
43050
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43051
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43052
|
+
* @return {!proto.sniipuserservice.InternalValidatePasswordRequest}
|
|
43053
|
+
*/
|
|
43054
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.deserializeBinary = function(bytes) {
|
|
43055
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43056
|
+
var msg = new proto.sniipuserservice.InternalValidatePasswordRequest;
|
|
43057
|
+
return proto.sniipuserservice.InternalValidatePasswordRequest.deserializeBinaryFromReader(msg, reader);
|
|
43058
|
+
};
|
|
43059
|
+
|
|
43060
|
+
|
|
43061
|
+
/**
|
|
43062
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43063
|
+
* given reader into the given message object.
|
|
43064
|
+
* @param {!proto.sniipuserservice.InternalValidatePasswordRequest} msg The message object to deserialize into.
|
|
43065
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43066
|
+
* @return {!proto.sniipuserservice.InternalValidatePasswordRequest}
|
|
43067
|
+
*/
|
|
43068
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
43069
|
+
while (reader.nextField()) {
|
|
43070
|
+
if (reader.isEndGroup()) {
|
|
43071
|
+
break;
|
|
43072
|
+
}
|
|
43073
|
+
var field = reader.getFieldNumber();
|
|
43074
|
+
switch (field) {
|
|
43075
|
+
case 1:
|
|
43076
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43077
|
+
msg.setPassword(value);
|
|
43078
|
+
break;
|
|
43079
|
+
case 2:
|
|
43080
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
43081
|
+
msg.setUserid(value);
|
|
43082
|
+
break;
|
|
43083
|
+
default:
|
|
43084
|
+
reader.skipField();
|
|
43085
|
+
break;
|
|
43086
|
+
}
|
|
43087
|
+
}
|
|
43088
|
+
return msg;
|
|
43089
|
+
};
|
|
43090
|
+
|
|
43091
|
+
|
|
43092
|
+
/**
|
|
43093
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43094
|
+
* @return {!Uint8Array}
|
|
43095
|
+
*/
|
|
43096
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.prototype.serializeBinary = function() {
|
|
43097
|
+
var writer = new jspb.BinaryWriter();
|
|
43098
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.serializeBinaryToWriter(this, writer);
|
|
43099
|
+
return writer.getResultBuffer();
|
|
43100
|
+
};
|
|
43101
|
+
|
|
43102
|
+
|
|
43103
|
+
/**
|
|
43104
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43105
|
+
* format), writing to the given BinaryWriter.
|
|
43106
|
+
* @param {!proto.sniipuserservice.InternalValidatePasswordRequest} message
|
|
43107
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43108
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43109
|
+
*/
|
|
43110
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.serializeBinaryToWriter = function(message, writer) {
|
|
43111
|
+
var f = undefined;
|
|
43112
|
+
f = message.getPassword();
|
|
43113
|
+
if (f.length > 0) {
|
|
43114
|
+
writer.writeString(
|
|
43115
|
+
1,
|
|
43116
|
+
f
|
|
43117
|
+
);
|
|
43118
|
+
}
|
|
43119
|
+
f = message.getUserid();
|
|
43120
|
+
if (f !== 0) {
|
|
43121
|
+
writer.writeInt64(
|
|
43122
|
+
2,
|
|
43123
|
+
f
|
|
43124
|
+
);
|
|
43125
|
+
}
|
|
43126
|
+
};
|
|
43127
|
+
|
|
43128
|
+
|
|
43129
|
+
/**
|
|
43130
|
+
* optional string password = 1;
|
|
43131
|
+
* @return {string}
|
|
43132
|
+
*/
|
|
43133
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.prototype.getPassword = function() {
|
|
43134
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
43135
|
+
};
|
|
43136
|
+
|
|
43137
|
+
|
|
43138
|
+
/**
|
|
43139
|
+
* @param {string} value
|
|
43140
|
+
* @return {!proto.sniipuserservice.InternalValidatePasswordRequest} returns this
|
|
43141
|
+
*/
|
|
43142
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.prototype.setPassword = function(value) {
|
|
43143
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
43144
|
+
};
|
|
43145
|
+
|
|
43146
|
+
|
|
43147
|
+
/**
|
|
43148
|
+
* optional int64 userId = 2;
|
|
43149
|
+
* @return {number}
|
|
43150
|
+
*/
|
|
43151
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.prototype.getUserid = function() {
|
|
43152
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
43153
|
+
};
|
|
43154
|
+
|
|
43155
|
+
|
|
43156
|
+
/**
|
|
43157
|
+
* @param {number} value
|
|
43158
|
+
* @return {!proto.sniipuserservice.InternalValidatePasswordRequest} returns this
|
|
43159
|
+
*/
|
|
43160
|
+
proto.sniipuserservice.InternalValidatePasswordRequest.prototype.setUserid = function(value) {
|
|
43161
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
43162
|
+
};
|
|
43163
|
+
|
|
43164
|
+
|
|
43165
|
+
|
|
43166
|
+
|
|
43167
|
+
|
|
42964
43168
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42965
43169
|
/**
|
|
42966
43170
|
* Creates an object representation of this proto.
|
|
@@ -43121,6 +43325,196 @@ proto.sniipuserservice.ValidatePinRequest.prototype.setShouldgetpin = function(v
|
|
|
43121
43325
|
|
|
43122
43326
|
|
|
43123
43327
|
|
|
43328
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43329
|
+
/**
|
|
43330
|
+
* Creates an object representation of this proto.
|
|
43331
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43332
|
+
* Optional fields that are not set will be set to undefined.
|
|
43333
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43334
|
+
* For the list of reserved names please see:
|
|
43335
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43336
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43337
|
+
* JSPB instance for transitional soy proto support:
|
|
43338
|
+
* http://goto/soy-param-migration
|
|
43339
|
+
* @return {!Object}
|
|
43340
|
+
*/
|
|
43341
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.toObject = function(opt_includeInstance) {
|
|
43342
|
+
return proto.sniipuserservice.InternalValidatePinRequest.toObject(opt_includeInstance, this);
|
|
43343
|
+
};
|
|
43344
|
+
|
|
43345
|
+
|
|
43346
|
+
/**
|
|
43347
|
+
* Static version of the {@see toObject} method.
|
|
43348
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43349
|
+
* the JSPB instance for transitional soy proto support:
|
|
43350
|
+
* http://goto/soy-param-migration
|
|
43351
|
+
* @param {!proto.sniipuserservice.InternalValidatePinRequest} msg The msg instance to transform.
|
|
43352
|
+
* @return {!Object}
|
|
43353
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43354
|
+
*/
|
|
43355
|
+
proto.sniipuserservice.InternalValidatePinRequest.toObject = function(includeInstance, msg) {
|
|
43356
|
+
var f, obj = {
|
|
43357
|
+
pin: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
43358
|
+
shouldgetpin: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
43359
|
+
userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
43360
|
+
};
|
|
43361
|
+
|
|
43362
|
+
if (includeInstance) {
|
|
43363
|
+
obj.$jspbMessageInstance = msg;
|
|
43364
|
+
}
|
|
43365
|
+
return obj;
|
|
43366
|
+
};
|
|
43367
|
+
}
|
|
43368
|
+
|
|
43369
|
+
|
|
43370
|
+
/**
|
|
43371
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43372
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43373
|
+
* @return {!proto.sniipuserservice.InternalValidatePinRequest}
|
|
43374
|
+
*/
|
|
43375
|
+
proto.sniipuserservice.InternalValidatePinRequest.deserializeBinary = function(bytes) {
|
|
43376
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43377
|
+
var msg = new proto.sniipuserservice.InternalValidatePinRequest;
|
|
43378
|
+
return proto.sniipuserservice.InternalValidatePinRequest.deserializeBinaryFromReader(msg, reader);
|
|
43379
|
+
};
|
|
43380
|
+
|
|
43381
|
+
|
|
43382
|
+
/**
|
|
43383
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43384
|
+
* given reader into the given message object.
|
|
43385
|
+
* @param {!proto.sniipuserservice.InternalValidatePinRequest} msg The message object to deserialize into.
|
|
43386
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43387
|
+
* @return {!proto.sniipuserservice.InternalValidatePinRequest}
|
|
43388
|
+
*/
|
|
43389
|
+
proto.sniipuserservice.InternalValidatePinRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
43390
|
+
while (reader.nextField()) {
|
|
43391
|
+
if (reader.isEndGroup()) {
|
|
43392
|
+
break;
|
|
43393
|
+
}
|
|
43394
|
+
var field = reader.getFieldNumber();
|
|
43395
|
+
switch (field) {
|
|
43396
|
+
case 1:
|
|
43397
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43398
|
+
msg.setPin(value);
|
|
43399
|
+
break;
|
|
43400
|
+
case 2:
|
|
43401
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
43402
|
+
msg.setShouldgetpin(value);
|
|
43403
|
+
break;
|
|
43404
|
+
case 3:
|
|
43405
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
43406
|
+
msg.setUserid(value);
|
|
43407
|
+
break;
|
|
43408
|
+
default:
|
|
43409
|
+
reader.skipField();
|
|
43410
|
+
break;
|
|
43411
|
+
}
|
|
43412
|
+
}
|
|
43413
|
+
return msg;
|
|
43414
|
+
};
|
|
43415
|
+
|
|
43416
|
+
|
|
43417
|
+
/**
|
|
43418
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43419
|
+
* @return {!Uint8Array}
|
|
43420
|
+
*/
|
|
43421
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.serializeBinary = function() {
|
|
43422
|
+
var writer = new jspb.BinaryWriter();
|
|
43423
|
+
proto.sniipuserservice.InternalValidatePinRequest.serializeBinaryToWriter(this, writer);
|
|
43424
|
+
return writer.getResultBuffer();
|
|
43425
|
+
};
|
|
43426
|
+
|
|
43427
|
+
|
|
43428
|
+
/**
|
|
43429
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43430
|
+
* format), writing to the given BinaryWriter.
|
|
43431
|
+
* @param {!proto.sniipuserservice.InternalValidatePinRequest} message
|
|
43432
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43433
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43434
|
+
*/
|
|
43435
|
+
proto.sniipuserservice.InternalValidatePinRequest.serializeBinaryToWriter = function(message, writer) {
|
|
43436
|
+
var f = undefined;
|
|
43437
|
+
f = message.getPin();
|
|
43438
|
+
if (f.length > 0) {
|
|
43439
|
+
writer.writeString(
|
|
43440
|
+
1,
|
|
43441
|
+
f
|
|
43442
|
+
);
|
|
43443
|
+
}
|
|
43444
|
+
f = message.getShouldgetpin();
|
|
43445
|
+
if (f) {
|
|
43446
|
+
writer.writeBool(
|
|
43447
|
+
2,
|
|
43448
|
+
f
|
|
43449
|
+
);
|
|
43450
|
+
}
|
|
43451
|
+
f = message.getUserid();
|
|
43452
|
+
if (f !== 0) {
|
|
43453
|
+
writer.writeInt64(
|
|
43454
|
+
3,
|
|
43455
|
+
f
|
|
43456
|
+
);
|
|
43457
|
+
}
|
|
43458
|
+
};
|
|
43459
|
+
|
|
43460
|
+
|
|
43461
|
+
/**
|
|
43462
|
+
* optional string pin = 1;
|
|
43463
|
+
* @return {string}
|
|
43464
|
+
*/
|
|
43465
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.getPin = function() {
|
|
43466
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
43467
|
+
};
|
|
43468
|
+
|
|
43469
|
+
|
|
43470
|
+
/**
|
|
43471
|
+
* @param {string} value
|
|
43472
|
+
* @return {!proto.sniipuserservice.InternalValidatePinRequest} returns this
|
|
43473
|
+
*/
|
|
43474
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.setPin = function(value) {
|
|
43475
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
43476
|
+
};
|
|
43477
|
+
|
|
43478
|
+
|
|
43479
|
+
/**
|
|
43480
|
+
* optional bool shouldGetPin = 2;
|
|
43481
|
+
* @return {boolean}
|
|
43482
|
+
*/
|
|
43483
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.getShouldgetpin = function() {
|
|
43484
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
43485
|
+
};
|
|
43486
|
+
|
|
43487
|
+
|
|
43488
|
+
/**
|
|
43489
|
+
* @param {boolean} value
|
|
43490
|
+
* @return {!proto.sniipuserservice.InternalValidatePinRequest} returns this
|
|
43491
|
+
*/
|
|
43492
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.setShouldgetpin = function(value) {
|
|
43493
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
43494
|
+
};
|
|
43495
|
+
|
|
43496
|
+
|
|
43497
|
+
/**
|
|
43498
|
+
* optional int64 userId = 3;
|
|
43499
|
+
* @return {number}
|
|
43500
|
+
*/
|
|
43501
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.getUserid = function() {
|
|
43502
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
43503
|
+
};
|
|
43504
|
+
|
|
43505
|
+
|
|
43506
|
+
/**
|
|
43507
|
+
* @param {number} value
|
|
43508
|
+
* @return {!proto.sniipuserservice.InternalValidatePinRequest} returns this
|
|
43509
|
+
*/
|
|
43510
|
+
proto.sniipuserservice.InternalValidatePinRequest.prototype.setUserid = function(value) {
|
|
43511
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
43512
|
+
};
|
|
43513
|
+
|
|
43514
|
+
|
|
43515
|
+
|
|
43516
|
+
|
|
43517
|
+
|
|
43124
43518
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43125
43519
|
/**
|
|
43126
43520
|
* Creates an object representation of this proto.
|