@sniipwebmaster/agent-billing-client-grpcweb-ts 23.17.1364 → 24.1.1396
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.
|
@@ -1717,5 +1717,48 @@ export class AgentBillingServiceAPIServiceClient {
|
|
|
1717
1717
|
this.methodDescriptorGetPaidAgentBillTransactionsForClient);
|
|
1718
1718
|
}
|
|
1719
1719
|
|
|
1720
|
+
methodDescriptorCreateUploadBatch = new grpcWeb.MethodDescriptor(
|
|
1721
|
+
'/agentbillingserviceapi.AgentBillingServiceAPIService/CreateUploadBatch',
|
|
1722
|
+
grpcWeb.MethodType.UNARY,
|
|
1723
|
+
service_pb.CreateUploadBatchRequest,
|
|
1724
|
+
service_pb.CreateUploadBatchResponse,
|
|
1725
|
+
(request: service_pb.CreateUploadBatchRequest) => {
|
|
1726
|
+
return request.serializeBinary();
|
|
1727
|
+
},
|
|
1728
|
+
service_pb.CreateUploadBatchResponse.deserializeBinary
|
|
1729
|
+
);
|
|
1730
|
+
|
|
1731
|
+
createUploadBatch(
|
|
1732
|
+
request: service_pb.CreateUploadBatchRequest,
|
|
1733
|
+
metadata: grpcWeb.Metadata | null): Promise<service_pb.CreateUploadBatchResponse>;
|
|
1734
|
+
|
|
1735
|
+
createUploadBatch(
|
|
1736
|
+
request: service_pb.CreateUploadBatchRequest,
|
|
1737
|
+
metadata: grpcWeb.Metadata | null,
|
|
1738
|
+
callback: (err: grpcWeb.RpcError,
|
|
1739
|
+
response: service_pb.CreateUploadBatchResponse) => void): grpcWeb.ClientReadableStream<service_pb.CreateUploadBatchResponse>;
|
|
1740
|
+
|
|
1741
|
+
createUploadBatch(
|
|
1742
|
+
request: service_pb.CreateUploadBatchRequest,
|
|
1743
|
+
metadata: grpcWeb.Metadata | null,
|
|
1744
|
+
callback?: (err: grpcWeb.RpcError,
|
|
1745
|
+
response: service_pb.CreateUploadBatchResponse) => void) {
|
|
1746
|
+
if (callback !== undefined) {
|
|
1747
|
+
return this.client_.rpcCall(
|
|
1748
|
+
this.hostname_ +
|
|
1749
|
+
'/agentbillingserviceapi.AgentBillingServiceAPIService/CreateUploadBatch',
|
|
1750
|
+
request,
|
|
1751
|
+
metadata || {},
|
|
1752
|
+
this.methodDescriptorCreateUploadBatch,
|
|
1753
|
+
callback);
|
|
1754
|
+
}
|
|
1755
|
+
return this.client_.unaryCall(
|
|
1756
|
+
this.hostname_ +
|
|
1757
|
+
'/agentbillingserviceapi.AgentBillingServiceAPIService/CreateUploadBatch',
|
|
1758
|
+
request,
|
|
1759
|
+
metadata || {},
|
|
1760
|
+
this.methodDescriptorCreateUploadBatch);
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1720
1763
|
}
|
|
1721
1764
|
|
|
@@ -292,6 +292,52 @@ export namespace CancelAgentInviteRequest {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
export class CreateUploadBatchRequest extends jspb.Message {
|
|
296
|
+
getName(): string;
|
|
297
|
+
setName(value: string): CreateUploadBatchRequest;
|
|
298
|
+
|
|
299
|
+
getBatchtype(): UploadBatchType;
|
|
300
|
+
setBatchtype(value: UploadBatchType): CreateUploadBatchRequest;
|
|
301
|
+
|
|
302
|
+
serializeBinary(): Uint8Array;
|
|
303
|
+
toObject(includeInstance?: boolean): CreateUploadBatchRequest.AsObject;
|
|
304
|
+
static toObject(includeInstance: boolean, msg: CreateUploadBatchRequest): CreateUploadBatchRequest.AsObject;
|
|
305
|
+
static serializeBinaryToWriter(message: CreateUploadBatchRequest, writer: jspb.BinaryWriter): void;
|
|
306
|
+
static deserializeBinary(bytes: Uint8Array): CreateUploadBatchRequest;
|
|
307
|
+
static deserializeBinaryFromReader(message: CreateUploadBatchRequest, reader: jspb.BinaryReader): CreateUploadBatchRequest;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export namespace CreateUploadBatchRequest {
|
|
311
|
+
export type AsObject = {
|
|
312
|
+
name: string,
|
|
313
|
+
batchtype: UploadBatchType,
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export class CreateUploadBatchResponse extends jspb.Message {
|
|
318
|
+
getResponsecode(): ResponseCode | undefined;
|
|
319
|
+
setResponsecode(value?: ResponseCode): CreateUploadBatchResponse;
|
|
320
|
+
hasResponsecode(): boolean;
|
|
321
|
+
clearResponsecode(): CreateUploadBatchResponse;
|
|
322
|
+
|
|
323
|
+
getUploadbatchid(): number;
|
|
324
|
+
setUploadbatchid(value: number): CreateUploadBatchResponse;
|
|
325
|
+
|
|
326
|
+
serializeBinary(): Uint8Array;
|
|
327
|
+
toObject(includeInstance?: boolean): CreateUploadBatchResponse.AsObject;
|
|
328
|
+
static toObject(includeInstance: boolean, msg: CreateUploadBatchResponse): CreateUploadBatchResponse.AsObject;
|
|
329
|
+
static serializeBinaryToWriter(message: CreateUploadBatchResponse, writer: jspb.BinaryWriter): void;
|
|
330
|
+
static deserializeBinary(bytes: Uint8Array): CreateUploadBatchResponse;
|
|
331
|
+
static deserializeBinaryFromReader(message: CreateUploadBatchResponse, reader: jspb.BinaryReader): CreateUploadBatchResponse;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export namespace CreateUploadBatchResponse {
|
|
335
|
+
export type AsObject = {
|
|
336
|
+
responsecode?: ResponseCode.AsObject,
|
|
337
|
+
uploadbatchid: number,
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
295
341
|
export class Client extends jspb.Message {
|
|
296
342
|
getUserid(): number;
|
|
297
343
|
setUserid(value: number): Client;
|
|
@@ -2200,3 +2246,9 @@ export namespace GetAgentBillTransactionsResponse {
|
|
|
2200
2246
|
}
|
|
2201
2247
|
}
|
|
2202
2248
|
|
|
2249
|
+
export enum UploadBatchType {
|
|
2250
|
+
UNKNOWN = 0,
|
|
2251
|
+
MANUALLY_ADDED = 1,
|
|
2252
|
+
FILE_IMPORT = 2,
|
|
2253
|
+
CSV_IMPORT = 3,
|
|
2254
|
+
}
|
|
@@ -30,6 +30,8 @@ goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, glob
|
|
|
30
30
|
goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentBillsResponse', null, global);
|
|
31
31
|
goog.exportSymbol('proto.agentbillingserviceapi.CreateAndSendDeliveryBatchRequest', null, global);
|
|
32
32
|
goog.exportSymbol('proto.agentbillingserviceapi.CreateManuallyAddedAgentBillRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.agentbillingserviceapi.CreateUploadBatchRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.agentbillingserviceapi.CreateUploadBatchResponse', null, global);
|
|
33
35
|
goog.exportSymbol('proto.agentbillingserviceapi.DeclineAgentInvitationRequest', null, global);
|
|
34
36
|
goog.exportSymbol('proto.agentbillingserviceapi.DeleteAgentBillResult', null, global);
|
|
35
37
|
goog.exportSymbol('proto.agentbillingserviceapi.DeleteAgentBillsByAgentBillIdsRequest', null, global);
|
|
@@ -84,6 +86,7 @@ goog.exportSymbol('proto.agentbillingserviceapi.ResponseCode', null, global);
|
|
|
84
86
|
goog.exportSymbol('proto.agentbillingserviceapi.ReviewAgentBillRequest', null, global);
|
|
85
87
|
goog.exportSymbol('proto.agentbillingserviceapi.SendDeliveryBatchReminderRequest', null, global);
|
|
86
88
|
goog.exportSymbol('proto.agentbillingserviceapi.UploadBatch', null, global);
|
|
89
|
+
goog.exportSymbol('proto.agentbillingserviceapi.UploadBatchType', null, global);
|
|
87
90
|
goog.exportSymbol('proto.agentbillingserviceapi.UploadCsvResponse', null, global);
|
|
88
91
|
/**
|
|
89
92
|
* Generated by JsPbCodeGenerator.
|
|
@@ -253,6 +256,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
253
256
|
*/
|
|
254
257
|
proto.agentbillingserviceapi.CancelAgentInviteRequest.displayName = 'proto.agentbillingserviceapi.CancelAgentInviteRequest';
|
|
255
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* Generated by JsPbCodeGenerator.
|
|
261
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
262
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
263
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
264
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
265
|
+
* valid.
|
|
266
|
+
* @extends {jspb.Message}
|
|
267
|
+
* @constructor
|
|
268
|
+
*/
|
|
269
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest = function(opt_data) {
|
|
270
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
271
|
+
};
|
|
272
|
+
goog.inherits(proto.agentbillingserviceapi.CreateUploadBatchRequest, jspb.Message);
|
|
273
|
+
if (goog.DEBUG && !COMPILED) {
|
|
274
|
+
/**
|
|
275
|
+
* @public
|
|
276
|
+
* @override
|
|
277
|
+
*/
|
|
278
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.displayName = 'proto.agentbillingserviceapi.CreateUploadBatchRequest';
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Generated by JsPbCodeGenerator.
|
|
282
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
283
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
284
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
285
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
286
|
+
* valid.
|
|
287
|
+
* @extends {jspb.Message}
|
|
288
|
+
* @constructor
|
|
289
|
+
*/
|
|
290
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse = function(opt_data) {
|
|
291
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
292
|
+
};
|
|
293
|
+
goog.inherits(proto.agentbillingserviceapi.CreateUploadBatchResponse, jspb.Message);
|
|
294
|
+
if (goog.DEBUG && !COMPILED) {
|
|
295
|
+
/**
|
|
296
|
+
* @public
|
|
297
|
+
* @override
|
|
298
|
+
*/
|
|
299
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.displayName = 'proto.agentbillingserviceapi.CreateUploadBatchResponse';
|
|
300
|
+
}
|
|
256
301
|
/**
|
|
257
302
|
* Generated by JsPbCodeGenerator.
|
|
258
303
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3700,6 +3745,347 @@ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.setAgentemail =
|
|
|
3700
3745
|
|
|
3701
3746
|
|
|
3702
3747
|
|
|
3748
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3749
|
+
/**
|
|
3750
|
+
* Creates an object representation of this proto.
|
|
3751
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3752
|
+
* Optional fields that are not set will be set to undefined.
|
|
3753
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3754
|
+
* For the list of reserved names please see:
|
|
3755
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3756
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3757
|
+
* JSPB instance for transitional soy proto support:
|
|
3758
|
+
* http://goto/soy-param-migration
|
|
3759
|
+
* @return {!Object}
|
|
3760
|
+
*/
|
|
3761
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3762
|
+
return proto.agentbillingserviceapi.CreateUploadBatchRequest.toObject(opt_includeInstance, this);
|
|
3763
|
+
};
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
/**
|
|
3767
|
+
* Static version of the {@see toObject} method.
|
|
3768
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3769
|
+
* the JSPB instance for transitional soy proto support:
|
|
3770
|
+
* http://goto/soy-param-migration
|
|
3771
|
+
* @param {!proto.agentbillingserviceapi.CreateUploadBatchRequest} msg The msg instance to transform.
|
|
3772
|
+
* @return {!Object}
|
|
3773
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3774
|
+
*/
|
|
3775
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.toObject = function(includeInstance, msg) {
|
|
3776
|
+
var f, obj = {
|
|
3777
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3778
|
+
batchtype: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
3779
|
+
};
|
|
3780
|
+
|
|
3781
|
+
if (includeInstance) {
|
|
3782
|
+
obj.$jspbMessageInstance = msg;
|
|
3783
|
+
}
|
|
3784
|
+
return obj;
|
|
3785
|
+
};
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
|
|
3789
|
+
/**
|
|
3790
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3791
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3792
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchRequest}
|
|
3793
|
+
*/
|
|
3794
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.deserializeBinary = function(bytes) {
|
|
3795
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3796
|
+
var msg = new proto.agentbillingserviceapi.CreateUploadBatchRequest;
|
|
3797
|
+
return proto.agentbillingserviceapi.CreateUploadBatchRequest.deserializeBinaryFromReader(msg, reader);
|
|
3798
|
+
};
|
|
3799
|
+
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3803
|
+
* given reader into the given message object.
|
|
3804
|
+
* @param {!proto.agentbillingserviceapi.CreateUploadBatchRequest} msg The message object to deserialize into.
|
|
3805
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3806
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchRequest}
|
|
3807
|
+
*/
|
|
3808
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3809
|
+
while (reader.nextField()) {
|
|
3810
|
+
if (reader.isEndGroup()) {
|
|
3811
|
+
break;
|
|
3812
|
+
}
|
|
3813
|
+
var field = reader.getFieldNumber();
|
|
3814
|
+
switch (field) {
|
|
3815
|
+
case 2:
|
|
3816
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3817
|
+
msg.setName(value);
|
|
3818
|
+
break;
|
|
3819
|
+
case 3:
|
|
3820
|
+
var value = /** @type {!proto.agentbillingserviceapi.UploadBatchType} */ (reader.readEnum());
|
|
3821
|
+
msg.setBatchtype(value);
|
|
3822
|
+
break;
|
|
3823
|
+
default:
|
|
3824
|
+
reader.skipField();
|
|
3825
|
+
break;
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
return msg;
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
/**
|
|
3833
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3834
|
+
* @return {!Uint8Array}
|
|
3835
|
+
*/
|
|
3836
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.prototype.serializeBinary = function() {
|
|
3837
|
+
var writer = new jspb.BinaryWriter();
|
|
3838
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.serializeBinaryToWriter(this, writer);
|
|
3839
|
+
return writer.getResultBuffer();
|
|
3840
|
+
};
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
/**
|
|
3844
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3845
|
+
* format), writing to the given BinaryWriter.
|
|
3846
|
+
* @param {!proto.agentbillingserviceapi.CreateUploadBatchRequest} message
|
|
3847
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3848
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3849
|
+
*/
|
|
3850
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3851
|
+
var f = undefined;
|
|
3852
|
+
f = message.getName();
|
|
3853
|
+
if (f.length > 0) {
|
|
3854
|
+
writer.writeString(
|
|
3855
|
+
2,
|
|
3856
|
+
f
|
|
3857
|
+
);
|
|
3858
|
+
}
|
|
3859
|
+
f = message.getBatchtype();
|
|
3860
|
+
if (f !== 0.0) {
|
|
3861
|
+
writer.writeEnum(
|
|
3862
|
+
3,
|
|
3863
|
+
f
|
|
3864
|
+
);
|
|
3865
|
+
}
|
|
3866
|
+
};
|
|
3867
|
+
|
|
3868
|
+
|
|
3869
|
+
/**
|
|
3870
|
+
* optional string name = 2;
|
|
3871
|
+
* @return {string}
|
|
3872
|
+
*/
|
|
3873
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.prototype.getName = function() {
|
|
3874
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3875
|
+
};
|
|
3876
|
+
|
|
3877
|
+
|
|
3878
|
+
/**
|
|
3879
|
+
* @param {string} value
|
|
3880
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchRequest} returns this
|
|
3881
|
+
*/
|
|
3882
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.prototype.setName = function(value) {
|
|
3883
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3884
|
+
};
|
|
3885
|
+
|
|
3886
|
+
|
|
3887
|
+
/**
|
|
3888
|
+
* optional UploadBatchType batchType = 3;
|
|
3889
|
+
* @return {!proto.agentbillingserviceapi.UploadBatchType}
|
|
3890
|
+
*/
|
|
3891
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.prototype.getBatchtype = function() {
|
|
3892
|
+
return /** @type {!proto.agentbillingserviceapi.UploadBatchType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3893
|
+
};
|
|
3894
|
+
|
|
3895
|
+
|
|
3896
|
+
/**
|
|
3897
|
+
* @param {!proto.agentbillingserviceapi.UploadBatchType} value
|
|
3898
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchRequest} returns this
|
|
3899
|
+
*/
|
|
3900
|
+
proto.agentbillingserviceapi.CreateUploadBatchRequest.prototype.setBatchtype = function(value) {
|
|
3901
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
3902
|
+
};
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3909
|
+
/**
|
|
3910
|
+
* Creates an object representation of this proto.
|
|
3911
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3912
|
+
* Optional fields that are not set will be set to undefined.
|
|
3913
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3914
|
+
* For the list of reserved names please see:
|
|
3915
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3916
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3917
|
+
* JSPB instance for transitional soy proto support:
|
|
3918
|
+
* http://goto/soy-param-migration
|
|
3919
|
+
* @return {!Object}
|
|
3920
|
+
*/
|
|
3921
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3922
|
+
return proto.agentbillingserviceapi.CreateUploadBatchResponse.toObject(opt_includeInstance, this);
|
|
3923
|
+
};
|
|
3924
|
+
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* Static version of the {@see toObject} method.
|
|
3928
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3929
|
+
* the JSPB instance for transitional soy proto support:
|
|
3930
|
+
* http://goto/soy-param-migration
|
|
3931
|
+
* @param {!proto.agentbillingserviceapi.CreateUploadBatchResponse} msg The msg instance to transform.
|
|
3932
|
+
* @return {!Object}
|
|
3933
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3934
|
+
*/
|
|
3935
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.toObject = function(includeInstance, msg) {
|
|
3936
|
+
var f, obj = {
|
|
3937
|
+
responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
3938
|
+
uploadbatchid: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
3939
|
+
};
|
|
3940
|
+
|
|
3941
|
+
if (includeInstance) {
|
|
3942
|
+
obj.$jspbMessageInstance = msg;
|
|
3943
|
+
}
|
|
3944
|
+
return obj;
|
|
3945
|
+
};
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3951
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3952
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchResponse}
|
|
3953
|
+
*/
|
|
3954
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.deserializeBinary = function(bytes) {
|
|
3955
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3956
|
+
var msg = new proto.agentbillingserviceapi.CreateUploadBatchResponse;
|
|
3957
|
+
return proto.agentbillingserviceapi.CreateUploadBatchResponse.deserializeBinaryFromReader(msg, reader);
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3963
|
+
* given reader into the given message object.
|
|
3964
|
+
* @param {!proto.agentbillingserviceapi.CreateUploadBatchResponse} msg The message object to deserialize into.
|
|
3965
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3966
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchResponse}
|
|
3967
|
+
*/
|
|
3968
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3969
|
+
while (reader.nextField()) {
|
|
3970
|
+
if (reader.isEndGroup()) {
|
|
3971
|
+
break;
|
|
3972
|
+
}
|
|
3973
|
+
var field = reader.getFieldNumber();
|
|
3974
|
+
switch (field) {
|
|
3975
|
+
case 1:
|
|
3976
|
+
var value = new proto.agentbillingserviceapi.ResponseCode;
|
|
3977
|
+
reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
3978
|
+
msg.setResponsecode(value);
|
|
3979
|
+
break;
|
|
3980
|
+
case 2:
|
|
3981
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3982
|
+
msg.setUploadbatchid(value);
|
|
3983
|
+
break;
|
|
3984
|
+
default:
|
|
3985
|
+
reader.skipField();
|
|
3986
|
+
break;
|
|
3987
|
+
}
|
|
3988
|
+
}
|
|
3989
|
+
return msg;
|
|
3990
|
+
};
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3995
|
+
* @return {!Uint8Array}
|
|
3996
|
+
*/
|
|
3997
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.serializeBinary = function() {
|
|
3998
|
+
var writer = new jspb.BinaryWriter();
|
|
3999
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.serializeBinaryToWriter(this, writer);
|
|
4000
|
+
return writer.getResultBuffer();
|
|
4001
|
+
};
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
/**
|
|
4005
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4006
|
+
* format), writing to the given BinaryWriter.
|
|
4007
|
+
* @param {!proto.agentbillingserviceapi.CreateUploadBatchResponse} message
|
|
4008
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4009
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4010
|
+
*/
|
|
4011
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4012
|
+
var f = undefined;
|
|
4013
|
+
f = message.getResponsecode();
|
|
4014
|
+
if (f != null) {
|
|
4015
|
+
writer.writeMessage(
|
|
4016
|
+
1,
|
|
4017
|
+
f,
|
|
4018
|
+
proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
|
|
4019
|
+
);
|
|
4020
|
+
}
|
|
4021
|
+
f = message.getUploadbatchid();
|
|
4022
|
+
if (f !== 0) {
|
|
4023
|
+
writer.writeInt64(
|
|
4024
|
+
2,
|
|
4025
|
+
f
|
|
4026
|
+
);
|
|
4027
|
+
}
|
|
4028
|
+
};
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
/**
|
|
4032
|
+
* optional ResponseCode responseCode = 1;
|
|
4033
|
+
* @return {?proto.agentbillingserviceapi.ResponseCode}
|
|
4034
|
+
*/
|
|
4035
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.getResponsecode = function() {
|
|
4036
|
+
return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
|
|
4037
|
+
jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
|
|
4038
|
+
};
|
|
4039
|
+
|
|
4040
|
+
|
|
4041
|
+
/**
|
|
4042
|
+
* @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
|
|
4043
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchResponse} returns this
|
|
4044
|
+
*/
|
|
4045
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.setResponsecode = function(value) {
|
|
4046
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4047
|
+
};
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
/**
|
|
4051
|
+
* Clears the message field making it undefined.
|
|
4052
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchResponse} returns this
|
|
4053
|
+
*/
|
|
4054
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.clearResponsecode = function() {
|
|
4055
|
+
return this.setResponsecode(undefined);
|
|
4056
|
+
};
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
/**
|
|
4060
|
+
* Returns whether this field is set.
|
|
4061
|
+
* @return {boolean}
|
|
4062
|
+
*/
|
|
4063
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.hasResponsecode = function() {
|
|
4064
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4065
|
+
};
|
|
4066
|
+
|
|
4067
|
+
|
|
4068
|
+
/**
|
|
4069
|
+
* optional int64 uploadBatchId = 2;
|
|
4070
|
+
* @return {number}
|
|
4071
|
+
*/
|
|
4072
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.getUploadbatchid = function() {
|
|
4073
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4074
|
+
};
|
|
4075
|
+
|
|
4076
|
+
|
|
4077
|
+
/**
|
|
4078
|
+
* @param {number} value
|
|
4079
|
+
* @return {!proto.agentbillingserviceapi.CreateUploadBatchResponse} returns this
|
|
4080
|
+
*/
|
|
4081
|
+
proto.agentbillingserviceapi.CreateUploadBatchResponse.prototype.setUploadbatchid = function(value) {
|
|
4082
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
4083
|
+
};
|
|
4084
|
+
|
|
4085
|
+
|
|
4086
|
+
|
|
4087
|
+
|
|
4088
|
+
|
|
3703
4089
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3704
4090
|
/**
|
|
3705
4091
|
* Creates an object representation of this proto.
|
|
@@ -17996,4 +18382,14 @@ proto.agentbillingserviceapi.GetAgentBillTransactionsResponse.prototype.setTotal
|
|
|
17996
18382
|
};
|
|
17997
18383
|
|
|
17998
18384
|
|
|
18385
|
+
/**
|
|
18386
|
+
* @enum {number}
|
|
18387
|
+
*/
|
|
18388
|
+
proto.agentbillingserviceapi.UploadBatchType = {
|
|
18389
|
+
UNKNOWN: 0,
|
|
18390
|
+
MANUALLY_ADDED: 1,
|
|
18391
|
+
FILE_IMPORT: 2,
|
|
18392
|
+
CSV_IMPORT: 3
|
|
18393
|
+
};
|
|
18394
|
+
|
|
17999
18395
|
goog.object.extend(exports, proto.agentbillingserviceapi);
|