@sniipwebmaster/user-service-client-grpcweb-ts 25.9.13359 → 25.9.13370
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.
|
@@ -4125,6 +4125,49 @@ export class SniipUserServiceServiceClient {
|
|
|
4125
4125
|
this.methodDescriptorSendSmsCustomer);
|
|
4126
4126
|
}
|
|
4127
4127
|
|
|
4128
|
+
methodDescriptorSendSmsCustomerInternal = new grpcWeb.MethodDescriptor(
|
|
4129
|
+
'/sniipuserservice.SniipUserServiceService/SendSmsCustomerInternal',
|
|
4130
|
+
grpcWeb.MethodType.UNARY,
|
|
4131
|
+
service_pb.SendSmsCustomerInternalRequest,
|
|
4132
|
+
service_pb.ResponseCode,
|
|
4133
|
+
(request: service_pb.SendSmsCustomerInternalRequest) => {
|
|
4134
|
+
return request.serializeBinary();
|
|
4135
|
+
},
|
|
4136
|
+
service_pb.ResponseCode.deserializeBinary
|
|
4137
|
+
);
|
|
4138
|
+
|
|
4139
|
+
sendSmsCustomerInternal(
|
|
4140
|
+
request: service_pb.SendSmsCustomerInternalRequest,
|
|
4141
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
|
|
4142
|
+
|
|
4143
|
+
sendSmsCustomerInternal(
|
|
4144
|
+
request: service_pb.SendSmsCustomerInternalRequest,
|
|
4145
|
+
metadata: grpcWeb.Metadata | null,
|
|
4146
|
+
callback: (err: grpcWeb.RpcError,
|
|
4147
|
+
response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
|
|
4148
|
+
|
|
4149
|
+
sendSmsCustomerInternal(
|
|
4150
|
+
request: service_pb.SendSmsCustomerInternalRequest,
|
|
4151
|
+
metadata?: grpcWeb.Metadata | null,
|
|
4152
|
+
callback?: (err: grpcWeb.RpcError,
|
|
4153
|
+
response: service_pb.ResponseCode) => void) {
|
|
4154
|
+
if (callback !== undefined) {
|
|
4155
|
+
return this.client_.rpcCall(
|
|
4156
|
+
this.hostname_ +
|
|
4157
|
+
'/sniipuserservice.SniipUserServiceService/SendSmsCustomerInternal',
|
|
4158
|
+
request,
|
|
4159
|
+
metadata || {},
|
|
4160
|
+
this.methodDescriptorSendSmsCustomerInternal,
|
|
4161
|
+
callback);
|
|
4162
|
+
}
|
|
4163
|
+
return this.client_.unaryCall(
|
|
4164
|
+
this.hostname_ +
|
|
4165
|
+
'/sniipuserservice.SniipUserServiceService/SendSmsCustomerInternal',
|
|
4166
|
+
request,
|
|
4167
|
+
metadata || {},
|
|
4168
|
+
this.methodDescriptorSendSmsCustomerInternal);
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4128
4171
|
methodDescriptorSendBulkNotification = new grpcWeb.MethodDescriptor(
|
|
4129
4172
|
'/sniipuserservice.SniipUserServiceService/SendBulkNotification',
|
|
4130
4173
|
grpcWeb.MethodType.UNARY,
|
|
@@ -4058,6 +4058,32 @@ export namespace SendCustomerSmsRequest {
|
|
|
4058
4058
|
}
|
|
4059
4059
|
}
|
|
4060
4060
|
|
|
4061
|
+
export class SendCustomerSmsInternalRequest extends jspb.Message {
|
|
4062
|
+
getUserid(): number;
|
|
4063
|
+
setUserid(value: number): SendCustomerSmsInternalRequest;
|
|
4064
|
+
|
|
4065
|
+
getPhonenumber(): string;
|
|
4066
|
+
setPhonenumber(value: string): SendCustomerSmsInternalRequest;
|
|
4067
|
+
|
|
4068
|
+
getMessage(): string;
|
|
4069
|
+
setMessage(value: string): SendCustomerSmsInternalRequest;
|
|
4070
|
+
|
|
4071
|
+
serializeBinary(): Uint8Array;
|
|
4072
|
+
toObject(includeInstance?: boolean): SendCustomerSmsInternalRequest.AsObject;
|
|
4073
|
+
static toObject(includeInstance: boolean, msg: SendCustomerSmsInternalRequest): SendCustomerSmsInternalRequest.AsObject;
|
|
4074
|
+
static serializeBinaryToWriter(message: SendCustomerSmsInternalRequest, writer: jspb.BinaryWriter): void;
|
|
4075
|
+
static deserializeBinary(bytes: Uint8Array): SendCustomerSmsInternalRequest;
|
|
4076
|
+
static deserializeBinaryFromReader(message: SendCustomerSmsInternalRequest, reader: jspb.BinaryReader): SendCustomerSmsInternalRequest;
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
export namespace SendCustomerSmsInternalRequest {
|
|
4080
|
+
export type AsObject = {
|
|
4081
|
+
userid: number,
|
|
4082
|
+
phonenumber: string,
|
|
4083
|
+
message: string,
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4061
4087
|
export class SendNotificationToCustomerRequest extends jspb.Message {
|
|
4062
4088
|
getData(): SendCustomerNotificationRequest | undefined;
|
|
4063
4089
|
setData(value?: SendCustomerNotificationRequest): SendNotificationToCustomerRequest;
|
|
@@ -4098,6 +4124,26 @@ export namespace SendSmsCustomerRequest {
|
|
|
4098
4124
|
}
|
|
4099
4125
|
}
|
|
4100
4126
|
|
|
4127
|
+
export class SendSmsCustomerInternalRequest extends jspb.Message {
|
|
4128
|
+
getData(): SendCustomerSmsInternalRequest | undefined;
|
|
4129
|
+
setData(value?: SendCustomerSmsInternalRequest): SendSmsCustomerInternalRequest;
|
|
4130
|
+
hasData(): boolean;
|
|
4131
|
+
clearData(): SendSmsCustomerInternalRequest;
|
|
4132
|
+
|
|
4133
|
+
serializeBinary(): Uint8Array;
|
|
4134
|
+
toObject(includeInstance?: boolean): SendSmsCustomerInternalRequest.AsObject;
|
|
4135
|
+
static toObject(includeInstance: boolean, msg: SendSmsCustomerInternalRequest): SendSmsCustomerInternalRequest.AsObject;
|
|
4136
|
+
static serializeBinaryToWriter(message: SendSmsCustomerInternalRequest, writer: jspb.BinaryWriter): void;
|
|
4137
|
+
static deserializeBinary(bytes: Uint8Array): SendSmsCustomerInternalRequest;
|
|
4138
|
+
static deserializeBinaryFromReader(message: SendSmsCustomerInternalRequest, reader: jspb.BinaryReader): SendSmsCustomerInternalRequest;
|
|
4139
|
+
}
|
|
4140
|
+
|
|
4141
|
+
export namespace SendSmsCustomerInternalRequest {
|
|
4142
|
+
export type AsObject = {
|
|
4143
|
+
data?: SendCustomerSmsInternalRequest.AsObject,
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
|
|
4101
4147
|
export class SetPasswordEmailRequest extends jspb.Message {
|
|
4102
4148
|
getEmail(): string;
|
|
4103
4149
|
setEmail(value: string): SetPasswordEmailRequest;
|
|
@@ -166,8 +166,10 @@ goog.exportSymbol('proto.sniipuserservice.SearchUsersV2Request.AppAccountTypeFil
|
|
|
166
166
|
goog.exportSymbol('proto.sniipuserservice.SearchUsersV2Request.SearchUsersV2RequestStatusFilter', null, global);
|
|
167
167
|
goog.exportSymbol('proto.sniipuserservice.SendAuthorisedOtpRequest', null, global);
|
|
168
168
|
goog.exportSymbol('proto.sniipuserservice.SendCustomerNotificationRequest', null, global);
|
|
169
|
+
goog.exportSymbol('proto.sniipuserservice.SendCustomerSmsInternalRequest', null, global);
|
|
169
170
|
goog.exportSymbol('proto.sniipuserservice.SendCustomerSmsRequest', null, global);
|
|
170
171
|
goog.exportSymbol('proto.sniipuserservice.SendNotificationToCustomerRequest', null, global);
|
|
172
|
+
goog.exportSymbol('proto.sniipuserservice.SendSmsCustomerInternalRequest', null, global);
|
|
171
173
|
goog.exportSymbol('proto.sniipuserservice.SendSmsCustomerRequest', null, global);
|
|
172
174
|
goog.exportSymbol('proto.sniipuserservice.SetPasswordEmailRequest', null, global);
|
|
173
175
|
goog.exportSymbol('proto.sniipuserservice.SetPasswordMobileRequest', null, global);
|
|
@@ -3044,6 +3046,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3044
3046
|
*/
|
|
3045
3047
|
proto.sniipuserservice.SendCustomerSmsRequest.displayName = 'proto.sniipuserservice.SendCustomerSmsRequest';
|
|
3046
3048
|
}
|
|
3049
|
+
/**
|
|
3050
|
+
* Generated by JsPbCodeGenerator.
|
|
3051
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3052
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3053
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3054
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3055
|
+
* valid.
|
|
3056
|
+
* @extends {jspb.Message}
|
|
3057
|
+
* @constructor
|
|
3058
|
+
*/
|
|
3059
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest = function(opt_data) {
|
|
3060
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3061
|
+
};
|
|
3062
|
+
goog.inherits(proto.sniipuserservice.SendCustomerSmsInternalRequest, jspb.Message);
|
|
3063
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3064
|
+
/**
|
|
3065
|
+
* @public
|
|
3066
|
+
* @override
|
|
3067
|
+
*/
|
|
3068
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.displayName = 'proto.sniipuserservice.SendCustomerSmsInternalRequest';
|
|
3069
|
+
}
|
|
3047
3070
|
/**
|
|
3048
3071
|
* Generated by JsPbCodeGenerator.
|
|
3049
3072
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3086,6 +3109,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3086
3109
|
*/
|
|
3087
3110
|
proto.sniipuserservice.SendSmsCustomerRequest.displayName = 'proto.sniipuserservice.SendSmsCustomerRequest';
|
|
3088
3111
|
}
|
|
3112
|
+
/**
|
|
3113
|
+
* Generated by JsPbCodeGenerator.
|
|
3114
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3115
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3116
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3117
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3118
|
+
* valid.
|
|
3119
|
+
* @extends {jspb.Message}
|
|
3120
|
+
* @constructor
|
|
3121
|
+
*/
|
|
3122
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest = function(opt_data) {
|
|
3123
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3124
|
+
};
|
|
3125
|
+
goog.inherits(proto.sniipuserservice.SendSmsCustomerInternalRequest, jspb.Message);
|
|
3126
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3127
|
+
/**
|
|
3128
|
+
* @public
|
|
3129
|
+
* @override
|
|
3130
|
+
*/
|
|
3131
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.displayName = 'proto.sniipuserservice.SendSmsCustomerInternalRequest';
|
|
3132
|
+
}
|
|
3089
3133
|
/**
|
|
3090
3134
|
* Generated by JsPbCodeGenerator.
|
|
3091
3135
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -34753,6 +34797,196 @@ proto.sniipuserservice.SendCustomerSmsRequest.prototype.setPassword = function(v
|
|
|
34753
34797
|
|
|
34754
34798
|
|
|
34755
34799
|
|
|
34800
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
34801
|
+
/**
|
|
34802
|
+
* Creates an object representation of this proto.
|
|
34803
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
34804
|
+
* Optional fields that are not set will be set to undefined.
|
|
34805
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
34806
|
+
* For the list of reserved names please see:
|
|
34807
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
34808
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
34809
|
+
* JSPB instance for transitional soy proto support:
|
|
34810
|
+
* http://goto/soy-param-migration
|
|
34811
|
+
* @return {!Object}
|
|
34812
|
+
*/
|
|
34813
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.toObject = function(opt_includeInstance) {
|
|
34814
|
+
return proto.sniipuserservice.SendCustomerSmsInternalRequest.toObject(opt_includeInstance, this);
|
|
34815
|
+
};
|
|
34816
|
+
|
|
34817
|
+
|
|
34818
|
+
/**
|
|
34819
|
+
* Static version of the {@see toObject} method.
|
|
34820
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
34821
|
+
* the JSPB instance for transitional soy proto support:
|
|
34822
|
+
* http://goto/soy-param-migration
|
|
34823
|
+
* @param {!proto.sniipuserservice.SendCustomerSmsInternalRequest} msg The msg instance to transform.
|
|
34824
|
+
* @return {!Object}
|
|
34825
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34826
|
+
*/
|
|
34827
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.toObject = function(includeInstance, msg) {
|
|
34828
|
+
var f, obj = {
|
|
34829
|
+
userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
34830
|
+
phonenumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
34831
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
34832
|
+
};
|
|
34833
|
+
|
|
34834
|
+
if (includeInstance) {
|
|
34835
|
+
obj.$jspbMessageInstance = msg;
|
|
34836
|
+
}
|
|
34837
|
+
return obj;
|
|
34838
|
+
};
|
|
34839
|
+
}
|
|
34840
|
+
|
|
34841
|
+
|
|
34842
|
+
/**
|
|
34843
|
+
* Deserializes binary data (in protobuf wire format).
|
|
34844
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
34845
|
+
* @return {!proto.sniipuserservice.SendCustomerSmsInternalRequest}
|
|
34846
|
+
*/
|
|
34847
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.deserializeBinary = function(bytes) {
|
|
34848
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
34849
|
+
var msg = new proto.sniipuserservice.SendCustomerSmsInternalRequest;
|
|
34850
|
+
return proto.sniipuserservice.SendCustomerSmsInternalRequest.deserializeBinaryFromReader(msg, reader);
|
|
34851
|
+
};
|
|
34852
|
+
|
|
34853
|
+
|
|
34854
|
+
/**
|
|
34855
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
34856
|
+
* given reader into the given message object.
|
|
34857
|
+
* @param {!proto.sniipuserservice.SendCustomerSmsInternalRequest} msg The message object to deserialize into.
|
|
34858
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
34859
|
+
* @return {!proto.sniipuserservice.SendCustomerSmsInternalRequest}
|
|
34860
|
+
*/
|
|
34861
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
34862
|
+
while (reader.nextField()) {
|
|
34863
|
+
if (reader.isEndGroup()) {
|
|
34864
|
+
break;
|
|
34865
|
+
}
|
|
34866
|
+
var field = reader.getFieldNumber();
|
|
34867
|
+
switch (field) {
|
|
34868
|
+
case 1:
|
|
34869
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
34870
|
+
msg.setUserid(value);
|
|
34871
|
+
break;
|
|
34872
|
+
case 2:
|
|
34873
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34874
|
+
msg.setPhonenumber(value);
|
|
34875
|
+
break;
|
|
34876
|
+
case 3:
|
|
34877
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34878
|
+
msg.setMessage(value);
|
|
34879
|
+
break;
|
|
34880
|
+
default:
|
|
34881
|
+
reader.skipField();
|
|
34882
|
+
break;
|
|
34883
|
+
}
|
|
34884
|
+
}
|
|
34885
|
+
return msg;
|
|
34886
|
+
};
|
|
34887
|
+
|
|
34888
|
+
|
|
34889
|
+
/**
|
|
34890
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
34891
|
+
* @return {!Uint8Array}
|
|
34892
|
+
*/
|
|
34893
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.serializeBinary = function() {
|
|
34894
|
+
var writer = new jspb.BinaryWriter();
|
|
34895
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.serializeBinaryToWriter(this, writer);
|
|
34896
|
+
return writer.getResultBuffer();
|
|
34897
|
+
};
|
|
34898
|
+
|
|
34899
|
+
|
|
34900
|
+
/**
|
|
34901
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
34902
|
+
* format), writing to the given BinaryWriter.
|
|
34903
|
+
* @param {!proto.sniipuserservice.SendCustomerSmsInternalRequest} message
|
|
34904
|
+
* @param {!jspb.BinaryWriter} writer
|
|
34905
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34906
|
+
*/
|
|
34907
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.serializeBinaryToWriter = function(message, writer) {
|
|
34908
|
+
var f = undefined;
|
|
34909
|
+
f = message.getUserid();
|
|
34910
|
+
if (f !== 0) {
|
|
34911
|
+
writer.writeInt64(
|
|
34912
|
+
1,
|
|
34913
|
+
f
|
|
34914
|
+
);
|
|
34915
|
+
}
|
|
34916
|
+
f = message.getPhonenumber();
|
|
34917
|
+
if (f.length > 0) {
|
|
34918
|
+
writer.writeString(
|
|
34919
|
+
2,
|
|
34920
|
+
f
|
|
34921
|
+
);
|
|
34922
|
+
}
|
|
34923
|
+
f = message.getMessage();
|
|
34924
|
+
if (f.length > 0) {
|
|
34925
|
+
writer.writeString(
|
|
34926
|
+
3,
|
|
34927
|
+
f
|
|
34928
|
+
);
|
|
34929
|
+
}
|
|
34930
|
+
};
|
|
34931
|
+
|
|
34932
|
+
|
|
34933
|
+
/**
|
|
34934
|
+
* optional int64 userId = 1;
|
|
34935
|
+
* @return {number}
|
|
34936
|
+
*/
|
|
34937
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.getUserid = function() {
|
|
34938
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
34939
|
+
};
|
|
34940
|
+
|
|
34941
|
+
|
|
34942
|
+
/**
|
|
34943
|
+
* @param {number} value
|
|
34944
|
+
* @return {!proto.sniipuserservice.SendCustomerSmsInternalRequest} returns this
|
|
34945
|
+
*/
|
|
34946
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.setUserid = function(value) {
|
|
34947
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
34948
|
+
};
|
|
34949
|
+
|
|
34950
|
+
|
|
34951
|
+
/**
|
|
34952
|
+
* optional string phoneNumber = 2;
|
|
34953
|
+
* @return {string}
|
|
34954
|
+
*/
|
|
34955
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.getPhonenumber = function() {
|
|
34956
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
34957
|
+
};
|
|
34958
|
+
|
|
34959
|
+
|
|
34960
|
+
/**
|
|
34961
|
+
* @param {string} value
|
|
34962
|
+
* @return {!proto.sniipuserservice.SendCustomerSmsInternalRequest} returns this
|
|
34963
|
+
*/
|
|
34964
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.setPhonenumber = function(value) {
|
|
34965
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
34966
|
+
};
|
|
34967
|
+
|
|
34968
|
+
|
|
34969
|
+
/**
|
|
34970
|
+
* optional string message = 3;
|
|
34971
|
+
* @return {string}
|
|
34972
|
+
*/
|
|
34973
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.getMessage = function() {
|
|
34974
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
34975
|
+
};
|
|
34976
|
+
|
|
34977
|
+
|
|
34978
|
+
/**
|
|
34979
|
+
* @param {string} value
|
|
34980
|
+
* @return {!proto.sniipuserservice.SendCustomerSmsInternalRequest} returns this
|
|
34981
|
+
*/
|
|
34982
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.prototype.setMessage = function(value) {
|
|
34983
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
34984
|
+
};
|
|
34985
|
+
|
|
34986
|
+
|
|
34987
|
+
|
|
34988
|
+
|
|
34989
|
+
|
|
34756
34990
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
34757
34991
|
/**
|
|
34758
34992
|
* Creates an object representation of this proto.
|
|
@@ -35055,6 +35289,157 @@ proto.sniipuserservice.SendSmsCustomerRequest.prototype.hasData = function() {
|
|
|
35055
35289
|
|
|
35056
35290
|
|
|
35057
35291
|
|
|
35292
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35293
|
+
/**
|
|
35294
|
+
* Creates an object representation of this proto.
|
|
35295
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
35296
|
+
* Optional fields that are not set will be set to undefined.
|
|
35297
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
35298
|
+
* For the list of reserved names please see:
|
|
35299
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
35300
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
35301
|
+
* JSPB instance for transitional soy proto support:
|
|
35302
|
+
* http://goto/soy-param-migration
|
|
35303
|
+
* @return {!Object}
|
|
35304
|
+
*/
|
|
35305
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.prototype.toObject = function(opt_includeInstance) {
|
|
35306
|
+
return proto.sniipuserservice.SendSmsCustomerInternalRequest.toObject(opt_includeInstance, this);
|
|
35307
|
+
};
|
|
35308
|
+
|
|
35309
|
+
|
|
35310
|
+
/**
|
|
35311
|
+
* Static version of the {@see toObject} method.
|
|
35312
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
35313
|
+
* the JSPB instance for transitional soy proto support:
|
|
35314
|
+
* http://goto/soy-param-migration
|
|
35315
|
+
* @param {!proto.sniipuserservice.SendSmsCustomerInternalRequest} msg The msg instance to transform.
|
|
35316
|
+
* @return {!Object}
|
|
35317
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35318
|
+
*/
|
|
35319
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.toObject = function(includeInstance, msg) {
|
|
35320
|
+
var f, obj = {
|
|
35321
|
+
data: (f = msg.getData()) && proto.sniipuserservice.SendCustomerSmsInternalRequest.toObject(includeInstance, f)
|
|
35322
|
+
};
|
|
35323
|
+
|
|
35324
|
+
if (includeInstance) {
|
|
35325
|
+
obj.$jspbMessageInstance = msg;
|
|
35326
|
+
}
|
|
35327
|
+
return obj;
|
|
35328
|
+
};
|
|
35329
|
+
}
|
|
35330
|
+
|
|
35331
|
+
|
|
35332
|
+
/**
|
|
35333
|
+
* Deserializes binary data (in protobuf wire format).
|
|
35334
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
35335
|
+
* @return {!proto.sniipuserservice.SendSmsCustomerInternalRequest}
|
|
35336
|
+
*/
|
|
35337
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.deserializeBinary = function(bytes) {
|
|
35338
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
35339
|
+
var msg = new proto.sniipuserservice.SendSmsCustomerInternalRequest;
|
|
35340
|
+
return proto.sniipuserservice.SendSmsCustomerInternalRequest.deserializeBinaryFromReader(msg, reader);
|
|
35341
|
+
};
|
|
35342
|
+
|
|
35343
|
+
|
|
35344
|
+
/**
|
|
35345
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
35346
|
+
* given reader into the given message object.
|
|
35347
|
+
* @param {!proto.sniipuserservice.SendSmsCustomerInternalRequest} msg The message object to deserialize into.
|
|
35348
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
35349
|
+
* @return {!proto.sniipuserservice.SendSmsCustomerInternalRequest}
|
|
35350
|
+
*/
|
|
35351
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
35352
|
+
while (reader.nextField()) {
|
|
35353
|
+
if (reader.isEndGroup()) {
|
|
35354
|
+
break;
|
|
35355
|
+
}
|
|
35356
|
+
var field = reader.getFieldNumber();
|
|
35357
|
+
switch (field) {
|
|
35358
|
+
case 1:
|
|
35359
|
+
var value = new proto.sniipuserservice.SendCustomerSmsInternalRequest;
|
|
35360
|
+
reader.readMessage(value,proto.sniipuserservice.SendCustomerSmsInternalRequest.deserializeBinaryFromReader);
|
|
35361
|
+
msg.setData(value);
|
|
35362
|
+
break;
|
|
35363
|
+
default:
|
|
35364
|
+
reader.skipField();
|
|
35365
|
+
break;
|
|
35366
|
+
}
|
|
35367
|
+
}
|
|
35368
|
+
return msg;
|
|
35369
|
+
};
|
|
35370
|
+
|
|
35371
|
+
|
|
35372
|
+
/**
|
|
35373
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
35374
|
+
* @return {!Uint8Array}
|
|
35375
|
+
*/
|
|
35376
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.prototype.serializeBinary = function() {
|
|
35377
|
+
var writer = new jspb.BinaryWriter();
|
|
35378
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.serializeBinaryToWriter(this, writer);
|
|
35379
|
+
return writer.getResultBuffer();
|
|
35380
|
+
};
|
|
35381
|
+
|
|
35382
|
+
|
|
35383
|
+
/**
|
|
35384
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
35385
|
+
* format), writing to the given BinaryWriter.
|
|
35386
|
+
* @param {!proto.sniipuserservice.SendSmsCustomerInternalRequest} message
|
|
35387
|
+
* @param {!jspb.BinaryWriter} writer
|
|
35388
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35389
|
+
*/
|
|
35390
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.serializeBinaryToWriter = function(message, writer) {
|
|
35391
|
+
var f = undefined;
|
|
35392
|
+
f = message.getData();
|
|
35393
|
+
if (f != null) {
|
|
35394
|
+
writer.writeMessage(
|
|
35395
|
+
1,
|
|
35396
|
+
f,
|
|
35397
|
+
proto.sniipuserservice.SendCustomerSmsInternalRequest.serializeBinaryToWriter
|
|
35398
|
+
);
|
|
35399
|
+
}
|
|
35400
|
+
};
|
|
35401
|
+
|
|
35402
|
+
|
|
35403
|
+
/**
|
|
35404
|
+
* optional SendCustomerSmsInternalRequest data = 1;
|
|
35405
|
+
* @return {?proto.sniipuserservice.SendCustomerSmsInternalRequest}
|
|
35406
|
+
*/
|
|
35407
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.prototype.getData = function() {
|
|
35408
|
+
return /** @type{?proto.sniipuserservice.SendCustomerSmsInternalRequest} */ (
|
|
35409
|
+
jspb.Message.getWrapperField(this, proto.sniipuserservice.SendCustomerSmsInternalRequest, 1));
|
|
35410
|
+
};
|
|
35411
|
+
|
|
35412
|
+
|
|
35413
|
+
/**
|
|
35414
|
+
* @param {?proto.sniipuserservice.SendCustomerSmsInternalRequest|undefined} value
|
|
35415
|
+
* @return {!proto.sniipuserservice.SendSmsCustomerInternalRequest} returns this
|
|
35416
|
+
*/
|
|
35417
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.prototype.setData = function(value) {
|
|
35418
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
35419
|
+
};
|
|
35420
|
+
|
|
35421
|
+
|
|
35422
|
+
/**
|
|
35423
|
+
* Clears the message field making it undefined.
|
|
35424
|
+
* @return {!proto.sniipuserservice.SendSmsCustomerInternalRequest} returns this
|
|
35425
|
+
*/
|
|
35426
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.prototype.clearData = function() {
|
|
35427
|
+
return this.setData(undefined);
|
|
35428
|
+
};
|
|
35429
|
+
|
|
35430
|
+
|
|
35431
|
+
/**
|
|
35432
|
+
* Returns whether this field is set.
|
|
35433
|
+
* @return {boolean}
|
|
35434
|
+
*/
|
|
35435
|
+
proto.sniipuserservice.SendSmsCustomerInternalRequest.prototype.hasData = function() {
|
|
35436
|
+
return jspb.Message.getField(this, 1) != null;
|
|
35437
|
+
};
|
|
35438
|
+
|
|
35439
|
+
|
|
35440
|
+
|
|
35441
|
+
|
|
35442
|
+
|
|
35058
35443
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35059
35444
|
/**
|
|
35060
35445
|
* Creates an object representation of this proto.
|