@sniipwebmaster/agent-billing-client-grpcweb-ts 24.4.1725 → 24.4.1821

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.
@@ -1416,6 +1416,49 @@ export class AgentBillingServiceAPIServiceClient {
1416
1416
  this.methodDescriptorGetUploadBatchContentsInDraft);
1417
1417
  }
1418
1418
 
1419
+ methodDescriptorGetImportedBatchesInfo = new grpcWeb.MethodDescriptor(
1420
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetImportedBatchesInfo',
1421
+ grpcWeb.MethodType.UNARY,
1422
+ service_pb.GetImportedBatchesInfoRequest,
1423
+ service_pb.GetImportedBatchesInfoResponse,
1424
+ (request: service_pb.GetImportedBatchesInfoRequest) => {
1425
+ return request.serializeBinary();
1426
+ },
1427
+ service_pb.GetImportedBatchesInfoResponse.deserializeBinary
1428
+ );
1429
+
1430
+ getImportedBatchesInfo(
1431
+ request: service_pb.GetImportedBatchesInfoRequest,
1432
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.GetImportedBatchesInfoResponse>;
1433
+
1434
+ getImportedBatchesInfo(
1435
+ request: service_pb.GetImportedBatchesInfoRequest,
1436
+ metadata: grpcWeb.Metadata | null,
1437
+ callback: (err: grpcWeb.RpcError,
1438
+ response: service_pb.GetImportedBatchesInfoResponse) => void): grpcWeb.ClientReadableStream<service_pb.GetImportedBatchesInfoResponse>;
1439
+
1440
+ getImportedBatchesInfo(
1441
+ request: service_pb.GetImportedBatchesInfoRequest,
1442
+ metadata: grpcWeb.Metadata | null,
1443
+ callback?: (err: grpcWeb.RpcError,
1444
+ response: service_pb.GetImportedBatchesInfoResponse) => void) {
1445
+ if (callback !== undefined) {
1446
+ return this.client_.rpcCall(
1447
+ this.hostname_ +
1448
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetImportedBatchesInfo',
1449
+ request,
1450
+ metadata || {},
1451
+ this.methodDescriptorGetImportedBatchesInfo,
1452
+ callback);
1453
+ }
1454
+ return this.client_.unaryCall(
1455
+ this.hostname_ +
1456
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetImportedBatchesInfo',
1457
+ request,
1458
+ metadata || {},
1459
+ this.methodDescriptorGetImportedBatchesInfo);
1460
+ }
1461
+
1419
1462
  methodDescriptorGetUploadBatchesInDraft = new grpcWeb.MethodDescriptor(
1420
1463
  '/agentbillingserviceapi.AgentBillingServiceAPIService/GetUploadBatchesInDraft',
1421
1464
  grpcWeb.MethodType.UNARY,
@@ -783,9 +783,6 @@ export namespace CheckConnectionRequest {
783
783
  }
784
784
 
785
785
  export class GetAgentAttachmentsRequest extends jspb.Message {
786
- getClientid(): number;
787
- setClientid(value: number): GetAgentAttachmentsRequest;
788
-
789
786
  getUploadbatchid(): number;
790
787
  setUploadbatchid(value: number): GetAgentAttachmentsRequest;
791
788
 
@@ -804,7 +801,6 @@ export class GetAgentAttachmentsRequest extends jspb.Message {
804
801
 
805
802
  export namespace GetAgentAttachmentsRequest {
806
803
  export type AsObject = {
807
- clientid: number,
808
804
  uploadbatchid: number,
809
805
  statusesList: Array<AttachmentStatus>,
810
806
  }
@@ -836,6 +832,84 @@ export namespace AgentAttachmentsResponse {
836
832
  }
837
833
  }
838
834
 
835
+ export class GetImportedBatchesInfoRequest extends jspb.Message {
836
+ getClientid(): number;
837
+ setClientid(value: number): GetImportedBatchesInfoRequest;
838
+
839
+ serializeBinary(): Uint8Array;
840
+ toObject(includeInstance?: boolean): GetImportedBatchesInfoRequest.AsObject;
841
+ static toObject(includeInstance: boolean, msg: GetImportedBatchesInfoRequest): GetImportedBatchesInfoRequest.AsObject;
842
+ static serializeBinaryToWriter(message: GetImportedBatchesInfoRequest, writer: jspb.BinaryWriter): void;
843
+ static deserializeBinary(bytes: Uint8Array): GetImportedBatchesInfoRequest;
844
+ static deserializeBinaryFromReader(message: GetImportedBatchesInfoRequest, reader: jspb.BinaryReader): GetImportedBatchesInfoRequest;
845
+ }
846
+
847
+ export namespace GetImportedBatchesInfoRequest {
848
+ export type AsObject = {
849
+ clientid: number,
850
+ }
851
+ }
852
+
853
+ export class GetImportedBatchesInfoResponse extends jspb.Message {
854
+ getResponsecode(): ResponseCode | undefined;
855
+ setResponsecode(value?: ResponseCode): GetImportedBatchesInfoResponse;
856
+ hasResponsecode(): boolean;
857
+ clearResponsecode(): GetImportedBatchesInfoResponse;
858
+
859
+ getBatchesList(): Array<ImportedBatchInfo>;
860
+ setBatchesList(value: Array<ImportedBatchInfo>): GetImportedBatchesInfoResponse;
861
+ clearBatchesList(): GetImportedBatchesInfoResponse;
862
+ addBatches(value?: ImportedBatchInfo, index?: number): ImportedBatchInfo;
863
+
864
+ serializeBinary(): Uint8Array;
865
+ toObject(includeInstance?: boolean): GetImportedBatchesInfoResponse.AsObject;
866
+ static toObject(includeInstance: boolean, msg: GetImportedBatchesInfoResponse): GetImportedBatchesInfoResponse.AsObject;
867
+ static serializeBinaryToWriter(message: GetImportedBatchesInfoResponse, writer: jspb.BinaryWriter): void;
868
+ static deserializeBinary(bytes: Uint8Array): GetImportedBatchesInfoResponse;
869
+ static deserializeBinaryFromReader(message: GetImportedBatchesInfoResponse, reader: jspb.BinaryReader): GetImportedBatchesInfoResponse;
870
+ }
871
+
872
+ export namespace GetImportedBatchesInfoResponse {
873
+ export type AsObject = {
874
+ responsecode?: ResponseCode.AsObject,
875
+ batchesList: Array<ImportedBatchInfo.AsObject>,
876
+ }
877
+ }
878
+
879
+ export class ImportedBatchInfo extends jspb.Message {
880
+ getUploadbatchid(): number;
881
+ setUploadbatchid(value: number): ImportedBatchInfo;
882
+
883
+ getName(): string;
884
+ setName(value: string): ImportedBatchInfo;
885
+
886
+ getType(): UploadBatchType;
887
+ setType(value: UploadBatchType): ImportedBatchInfo;
888
+
889
+ getStatus(): UploadBatchStatus;
890
+ setStatus(value: UploadBatchStatus): ImportedBatchInfo;
891
+
892
+ getCreationtime(): string;
893
+ setCreationtime(value: string): ImportedBatchInfo;
894
+
895
+ serializeBinary(): Uint8Array;
896
+ toObject(includeInstance?: boolean): ImportedBatchInfo.AsObject;
897
+ static toObject(includeInstance: boolean, msg: ImportedBatchInfo): ImportedBatchInfo.AsObject;
898
+ static serializeBinaryToWriter(message: ImportedBatchInfo, writer: jspb.BinaryWriter): void;
899
+ static deserializeBinary(bytes: Uint8Array): ImportedBatchInfo;
900
+ static deserializeBinaryFromReader(message: ImportedBatchInfo, reader: jspb.BinaryReader): ImportedBatchInfo;
901
+ }
902
+
903
+ export namespace ImportedBatchInfo {
904
+ export type AsObject = {
905
+ uploadbatchid: number,
906
+ name: string,
907
+ type: UploadBatchType,
908
+ status: UploadBatchStatus,
909
+ creationtime: string,
910
+ }
911
+ }
912
+
839
913
  export class AgentAttachmentInfo extends jspb.Message {
840
914
  getAgentid(): number;
841
915
  setAgentid(value: number): AgentAttachmentInfo;
@@ -858,6 +932,9 @@ export class AgentAttachmentInfo extends jspb.Message {
858
932
  getUpdatedat(): string;
859
933
  setUpdatedat(value: string): AgentAttachmentInfo;
860
934
 
935
+ getErrormessage(): string;
936
+ setErrormessage(value: string): AgentAttachmentInfo;
937
+
861
938
  serializeBinary(): Uint8Array;
862
939
  toObject(includeInstance?: boolean): AgentAttachmentInfo.AsObject;
863
940
  static toObject(includeInstance: boolean, msg: AgentAttachmentInfo): AgentAttachmentInfo.AsObject;
@@ -875,6 +952,7 @@ export namespace AgentAttachmentInfo {
875
952
  uploadbatchid: number,
876
953
  status: AttachmentStatus,
877
954
  updatedat: string,
955
+ errormessage: string,
878
956
  }
879
957
  }
880
958
 
@@ -2719,4 +2797,5 @@ export enum UploadBatchStatus {
2719
2797
  PENDING = 0,
2720
2798
  REVIEW = 1,
2721
2799
  COMPLETED = 2,
2800
+ UPLOAD_FAILED = 3,
2722
2801
  }
@@ -78,6 +78,8 @@ goog.exportSymbol('proto.agentbillingserviceapi.GetDeliveryBatchesToPayCountResp
78
78
  goog.exportSymbol('proto.agentbillingserviceapi.GetDeliveryBatchesToPayOfClientRequest', null, global);
79
79
  goog.exportSymbol('proto.agentbillingserviceapi.GetDeliveryBatchesToPayRequest', null, global);
80
80
  goog.exportSymbol('proto.agentbillingserviceapi.GetDisconnectedClientsRequest', null, global);
81
+ goog.exportSymbol('proto.agentbillingserviceapi.GetImportedBatchesInfoRequest', null, global);
82
+ goog.exportSymbol('proto.agentbillingserviceapi.GetImportedBatchesInfoResponse', null, global);
81
83
  goog.exportSymbol('proto.agentbillingserviceapi.GetPaidAgentBillTransactionsForClientRequest', null, global);
82
84
  goog.exportSymbol('proto.agentbillingserviceapi.GetPendingClientsRequest', null, global);
83
85
  goog.exportSymbol('proto.agentbillingserviceapi.GetUploadBatchContentsInDraftRequest', null, global);
@@ -86,6 +88,7 @@ goog.exportSymbol('proto.agentbillingserviceapi.GetUploadBatchesResponse', null,
86
88
  goog.exportSymbol('proto.agentbillingserviceapi.ImportAgentBillRequest', null, global);
87
89
  goog.exportSymbol('proto.agentbillingserviceapi.ImportCsvAsUploadBatchRequest', null, global);
88
90
  goog.exportSymbol('proto.agentbillingserviceapi.ImportCsvAsUploadBatchResponse', null, global);
91
+ goog.exportSymbol('proto.agentbillingserviceapi.ImportedBatchInfo', null, global);
89
92
  goog.exportSymbol('proto.agentbillingserviceapi.InviteAgentRequest', null, global);
90
93
  goog.exportSymbol('proto.agentbillingserviceapi.ProcessAgentBillResult', null, global);
91
94
  goog.exportSymbol('proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest', null, global);
@@ -541,6 +544,69 @@ if (goog.DEBUG && !COMPILED) {
541
544
  */
542
545
  proto.agentbillingserviceapi.AgentAttachmentsResponse.displayName = 'proto.agentbillingserviceapi.AgentAttachmentsResponse';
543
546
  }
547
+ /**
548
+ * Generated by JsPbCodeGenerator.
549
+ * @param {Array=} opt_data Optional initial data array, typically from a
550
+ * server response, or constructed directly in Javascript. The array is used
551
+ * in place and becomes part of the constructed object. It is not cloned.
552
+ * If no data is provided, the constructed object will be empty, but still
553
+ * valid.
554
+ * @extends {jspb.Message}
555
+ * @constructor
556
+ */
557
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest = function(opt_data) {
558
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
559
+ };
560
+ goog.inherits(proto.agentbillingserviceapi.GetImportedBatchesInfoRequest, jspb.Message);
561
+ if (goog.DEBUG && !COMPILED) {
562
+ /**
563
+ * @public
564
+ * @override
565
+ */
566
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.displayName = 'proto.agentbillingserviceapi.GetImportedBatchesInfoRequest';
567
+ }
568
+ /**
569
+ * Generated by JsPbCodeGenerator.
570
+ * @param {Array=} opt_data Optional initial data array, typically from a
571
+ * server response, or constructed directly in Javascript. The array is used
572
+ * in place and becomes part of the constructed object. It is not cloned.
573
+ * If no data is provided, the constructed object will be empty, but still
574
+ * valid.
575
+ * @extends {jspb.Message}
576
+ * @constructor
577
+ */
578
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse = function(opt_data) {
579
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.repeatedFields_, null);
580
+ };
581
+ goog.inherits(proto.agentbillingserviceapi.GetImportedBatchesInfoResponse, jspb.Message);
582
+ if (goog.DEBUG && !COMPILED) {
583
+ /**
584
+ * @public
585
+ * @override
586
+ */
587
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.displayName = 'proto.agentbillingserviceapi.GetImportedBatchesInfoResponse';
588
+ }
589
+ /**
590
+ * Generated by JsPbCodeGenerator.
591
+ * @param {Array=} opt_data Optional initial data array, typically from a
592
+ * server response, or constructed directly in Javascript. The array is used
593
+ * in place and becomes part of the constructed object. It is not cloned.
594
+ * If no data is provided, the constructed object will be empty, but still
595
+ * valid.
596
+ * @extends {jspb.Message}
597
+ * @constructor
598
+ */
599
+ proto.agentbillingserviceapi.ImportedBatchInfo = function(opt_data) {
600
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
601
+ };
602
+ goog.inherits(proto.agentbillingserviceapi.ImportedBatchInfo, jspb.Message);
603
+ if (goog.DEBUG && !COMPILED) {
604
+ /**
605
+ * @public
606
+ * @override
607
+ */
608
+ proto.agentbillingserviceapi.ImportedBatchInfo.displayName = 'proto.agentbillingserviceapi.ImportedBatchInfo';
609
+ }
544
610
  /**
545
611
  * Generated by JsPbCodeGenerator.
546
612
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7663,7 +7729,6 @@ proto.agentbillingserviceapi.GetAgentAttachmentsRequest.prototype.toObject = fun
7663
7729
  */
7664
7730
  proto.agentbillingserviceapi.GetAgentAttachmentsRequest.toObject = function(includeInstance, msg) {
7665
7731
  var f, obj = {
7666
- clientid: jspb.Message.getFieldWithDefault(msg, 1, 0),
7667
7732
  uploadbatchid: jspb.Message.getFieldWithDefault(msg, 2, 0),
7668
7733
  statusesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
7669
7734
  };
@@ -7702,10 +7767,6 @@ proto.agentbillingserviceapi.GetAgentAttachmentsRequest.deserializeBinaryFromRea
7702
7767
  }
7703
7768
  var field = reader.getFieldNumber();
7704
7769
  switch (field) {
7705
- case 1:
7706
- var value = /** @type {number} */ (reader.readInt64());
7707
- msg.setClientid(value);
7708
- break;
7709
7770
  case 2:
7710
7771
  var value = /** @type {number} */ (reader.readInt64());
7711
7772
  msg.setUploadbatchid(value);
@@ -7743,13 +7804,6 @@ proto.agentbillingserviceapi.GetAgentAttachmentsRequest.prototype.serializeBinar
7743
7804
  */
7744
7805
  proto.agentbillingserviceapi.GetAgentAttachmentsRequest.serializeBinaryToWriter = function(message, writer) {
7745
7806
  var f = undefined;
7746
- f = message.getClientid();
7747
- if (f !== 0) {
7748
- writer.writeInt64(
7749
- 1,
7750
- f
7751
- );
7752
- }
7753
7807
  f = message.getUploadbatchid();
7754
7808
  if (f !== 0) {
7755
7809
  writer.writeInt64(
@@ -7767,24 +7821,6 @@ proto.agentbillingserviceapi.GetAgentAttachmentsRequest.serializeBinaryToWriter
7767
7821
  };
7768
7822
 
7769
7823
 
7770
- /**
7771
- * optional int64 clientId = 1;
7772
- * @return {number}
7773
- */
7774
- proto.agentbillingserviceapi.GetAgentAttachmentsRequest.prototype.getClientid = function() {
7775
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7776
- };
7777
-
7778
-
7779
- /**
7780
- * @param {number} value
7781
- * @return {!proto.agentbillingserviceapi.GetAgentAttachmentsRequest} returns this
7782
- */
7783
- proto.agentbillingserviceapi.GetAgentAttachmentsRequest.prototype.setClientid = function(value) {
7784
- return jspb.Message.setProto3IntField(this, 1, value);
7785
- };
7786
-
7787
-
7788
7824
  /**
7789
7825
  * optional int64 uploadBatchId = 2;
7790
7826
  * @return {number}
@@ -8067,8 +8103,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
8067
8103
  * http://goto/soy-param-migration
8068
8104
  * @return {!Object}
8069
8105
  */
8070
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.toObject = function(opt_includeInstance) {
8071
- return proto.agentbillingserviceapi.AgentAttachmentInfo.toObject(opt_includeInstance, this);
8106
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.prototype.toObject = function(opt_includeInstance) {
8107
+ return proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.toObject(opt_includeInstance, this);
8072
8108
  };
8073
8109
 
8074
8110
 
@@ -8077,19 +8113,13 @@ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.toObject = function(o
8077
8113
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8078
8114
  * the JSPB instance for transitional soy proto support:
8079
8115
  * http://goto/soy-param-migration
8080
- * @param {!proto.agentbillingserviceapi.AgentAttachmentInfo} msg The msg instance to transform.
8116
+ * @param {!proto.agentbillingserviceapi.GetImportedBatchesInfoRequest} msg The msg instance to transform.
8081
8117
  * @return {!Object}
8082
8118
  * @suppress {unusedLocalVariables} f is only used for nested messages
8083
8119
  */
8084
- proto.agentbillingserviceapi.AgentAttachmentInfo.toObject = function(includeInstance, msg) {
8120
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.toObject = function(includeInstance, msg) {
8085
8121
  var f, obj = {
8086
- agentid: jspb.Message.getFieldWithDefault(msg, 1, 0),
8087
- clientid: jspb.Message.getFieldWithDefault(msg, 2, 0),
8088
- attachmentid: jspb.Message.getFieldWithDefault(msg, 3, 0),
8089
- agentbillid: jspb.Message.getFieldWithDefault(msg, 4, 0),
8090
- uploadbatchid: jspb.Message.getFieldWithDefault(msg, 5, 0),
8091
- status: jspb.Message.getFieldWithDefault(msg, 6, 0),
8092
- updatedat: jspb.Message.getFieldWithDefault(msg, 7, "")
8122
+ clientid: jspb.Message.getFieldWithDefault(msg, 1, 0)
8093
8123
  };
8094
8124
 
8095
8125
  if (includeInstance) {
@@ -8103,23 +8133,23 @@ proto.agentbillingserviceapi.AgentAttachmentInfo.toObject = function(includeInst
8103
8133
  /**
8104
8134
  * Deserializes binary data (in protobuf wire format).
8105
8135
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
8106
- * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo}
8136
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoRequest}
8107
8137
  */
8108
- proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinary = function(bytes) {
8138
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.deserializeBinary = function(bytes) {
8109
8139
  var reader = new jspb.BinaryReader(bytes);
8110
- var msg = new proto.agentbillingserviceapi.AgentAttachmentInfo;
8111
- return proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinaryFromReader(msg, reader);
8140
+ var msg = new proto.agentbillingserviceapi.GetImportedBatchesInfoRequest;
8141
+ return proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.deserializeBinaryFromReader(msg, reader);
8112
8142
  };
8113
8143
 
8114
8144
 
8115
8145
  /**
8116
8146
  * Deserializes binary data (in protobuf wire format) from the
8117
8147
  * given reader into the given message object.
8118
- * @param {!proto.agentbillingserviceapi.AgentAttachmentInfo} msg The message object to deserialize into.
8148
+ * @param {!proto.agentbillingserviceapi.GetImportedBatchesInfoRequest} msg The message object to deserialize into.
8119
8149
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8120
- * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo}
8150
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoRequest}
8121
8151
  */
8122
- proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinaryFromReader = function(msg, reader) {
8152
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.deserializeBinaryFromReader = function(msg, reader) {
8123
8153
  while (reader.nextField()) {
8124
8154
  if (reader.isEndGroup()) {
8125
8155
  break;
@@ -8127,33 +8157,9 @@ proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinaryFromReader = f
8127
8157
  var field = reader.getFieldNumber();
8128
8158
  switch (field) {
8129
8159
  case 1:
8130
- var value = /** @type {number} */ (reader.readInt64());
8131
- msg.setAgentid(value);
8132
- break;
8133
- case 2:
8134
8160
  var value = /** @type {number} */ (reader.readInt64());
8135
8161
  msg.setClientid(value);
8136
8162
  break;
8137
- case 3:
8138
- var value = /** @type {number} */ (reader.readInt64());
8139
- msg.setAttachmentid(value);
8140
- break;
8141
- case 4:
8142
- var value = /** @type {number} */ (reader.readInt64());
8143
- msg.setAgentbillid(value);
8144
- break;
8145
- case 5:
8146
- var value = /** @type {number} */ (reader.readInt64());
8147
- msg.setUploadbatchid(value);
8148
- break;
8149
- case 6:
8150
- var value = /** @type {!proto.agentbillingserviceapi.AttachmentStatus} */ (reader.readEnum());
8151
- msg.setStatus(value);
8152
- break;
8153
- case 7:
8154
- var value = /** @type {string} */ (reader.readString());
8155
- msg.setUpdatedat(value);
8156
- break;
8157
8163
  default:
8158
8164
  reader.skipField();
8159
8165
  break;
@@ -8167,9 +8173,9 @@ proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinaryFromReader = f
8167
8173
  * Serializes the message to binary data (in protobuf wire format).
8168
8174
  * @return {!Uint8Array}
8169
8175
  */
8170
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.serializeBinary = function() {
8176
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.prototype.serializeBinary = function() {
8171
8177
  var writer = new jspb.BinaryWriter();
8172
- proto.agentbillingserviceapi.AgentAttachmentInfo.serializeBinaryToWriter(this, writer);
8178
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.serializeBinaryToWriter(this, writer);
8173
8179
  return writer.getResultBuffer();
8174
8180
  };
8175
8181
 
@@ -8177,58 +8183,16 @@ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.serializeBinary = fun
8177
8183
  /**
8178
8184
  * Serializes the given message to binary data (in protobuf wire
8179
8185
  * format), writing to the given BinaryWriter.
8180
- * @param {!proto.agentbillingserviceapi.AgentAttachmentInfo} message
8186
+ * @param {!proto.agentbillingserviceapi.GetImportedBatchesInfoRequest} message
8181
8187
  * @param {!jspb.BinaryWriter} writer
8182
8188
  * @suppress {unusedLocalVariables} f is only used for nested messages
8183
8189
  */
8184
- proto.agentbillingserviceapi.AgentAttachmentInfo.serializeBinaryToWriter = function(message, writer) {
8190
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.serializeBinaryToWriter = function(message, writer) {
8185
8191
  var f = undefined;
8186
- f = message.getAgentid();
8187
- if (f !== 0) {
8188
- writer.writeInt64(
8189
- 1,
8190
- f
8191
- );
8192
- }
8193
8192
  f = message.getClientid();
8194
8193
  if (f !== 0) {
8195
8194
  writer.writeInt64(
8196
- 2,
8197
- f
8198
- );
8199
- }
8200
- f = message.getAttachmentid();
8201
- if (f !== 0) {
8202
- writer.writeInt64(
8203
- 3,
8204
- f
8205
- );
8206
- }
8207
- f = message.getAgentbillid();
8208
- if (f !== 0) {
8209
- writer.writeInt64(
8210
- 4,
8211
- f
8212
- );
8213
- }
8214
- f = message.getUploadbatchid();
8215
- if (f !== 0) {
8216
- writer.writeInt64(
8217
- 5,
8218
- f
8219
- );
8220
- }
8221
- f = message.getStatus();
8222
- if (f !== 0.0) {
8223
- writer.writeEnum(
8224
- 6,
8225
- f
8226
- );
8227
- }
8228
- f = message.getUpdatedat();
8229
- if (f.length > 0) {
8230
- writer.writeString(
8231
- 7,
8195
+ 1,
8232
8196
  f
8233
8197
  );
8234
8198
  }
@@ -8236,73 +8200,748 @@ proto.agentbillingserviceapi.AgentAttachmentInfo.serializeBinaryToWriter = funct
8236
8200
 
8237
8201
 
8238
8202
  /**
8239
- * optional int64 agentId = 1;
8203
+ * optional int64 clientId = 1;
8240
8204
  * @return {number}
8241
8205
  */
8242
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getAgentid = function() {
8206
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.prototype.getClientid = function() {
8243
8207
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8244
8208
  };
8245
8209
 
8246
8210
 
8247
8211
  /**
8248
8212
  * @param {number} value
8249
- * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8213
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoRequest} returns this
8250
8214
  */
8251
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setAgentid = function(value) {
8215
+ proto.agentbillingserviceapi.GetImportedBatchesInfoRequest.prototype.setClientid = function(value) {
8252
8216
  return jspb.Message.setProto3IntField(this, 1, value);
8253
8217
  };
8254
8218
 
8255
8219
 
8220
+
8256
8221
  /**
8257
- * optional int64 clientId = 2;
8258
- * @return {number}
8222
+ * List of repeated fields within this message type.
8223
+ * @private {!Array<number>}
8224
+ * @const
8259
8225
  */
8260
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getClientid = function() {
8261
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8262
- };
8226
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.repeatedFields_ = [2];
8227
+
8263
8228
 
8264
8229
 
8230
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8265
8231
  /**
8266
- * @param {number} value
8267
- * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8232
+ * Creates an object representation of this proto.
8233
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8234
+ * Optional fields that are not set will be set to undefined.
8235
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8236
+ * For the list of reserved names please see:
8237
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8238
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8239
+ * JSPB instance for transitional soy proto support:
8240
+ * http://goto/soy-param-migration
8241
+ * @return {!Object}
8268
8242
  */
8269
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setClientid = function(value) {
8270
- return jspb.Message.setProto3IntField(this, 2, value);
8243
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.toObject = function(opt_includeInstance) {
8244
+ return proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.toObject(opt_includeInstance, this);
8271
8245
  };
8272
8246
 
8273
8247
 
8274
8248
  /**
8275
- * optional int64 attachmentId = 3;
8276
- * @return {number}
8249
+ * Static version of the {@see toObject} method.
8250
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8251
+ * the JSPB instance for transitional soy proto support:
8252
+ * http://goto/soy-param-migration
8253
+ * @param {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse} msg The msg instance to transform.
8254
+ * @return {!Object}
8255
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8277
8256
  */
8278
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getAttachmentid = function() {
8279
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8257
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.toObject = function(includeInstance, msg) {
8258
+ var f, obj = {
8259
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
8260
+ batchesList: jspb.Message.toObjectList(msg.getBatchesList(),
8261
+ proto.agentbillingserviceapi.ImportedBatchInfo.toObject, includeInstance)
8262
+ };
8263
+
8264
+ if (includeInstance) {
8265
+ obj.$jspbMessageInstance = msg;
8266
+ }
8267
+ return obj;
8280
8268
  };
8269
+ }
8281
8270
 
8282
8271
 
8283
8272
  /**
8284
- * @param {number} value
8285
- * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8273
+ * Deserializes binary data (in protobuf wire format).
8274
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8275
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse}
8286
8276
  */
8287
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setAttachmentid = function(value) {
8288
- return jspb.Message.setProto3IntField(this, 3, value);
8277
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.deserializeBinary = function(bytes) {
8278
+ var reader = new jspb.BinaryReader(bytes);
8279
+ var msg = new proto.agentbillingserviceapi.GetImportedBatchesInfoResponse;
8280
+ return proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.deserializeBinaryFromReader(msg, reader);
8289
8281
  };
8290
8282
 
8291
8283
 
8292
8284
  /**
8293
- * optional int64 agentBillId = 4;
8294
- * @return {number}
8285
+ * Deserializes binary data (in protobuf wire format) from the
8286
+ * given reader into the given message object.
8287
+ * @param {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse} msg The message object to deserialize into.
8288
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8289
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse}
8295
8290
  */
8296
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getAgentbillid = function() {
8297
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
8291
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.deserializeBinaryFromReader = function(msg, reader) {
8292
+ while (reader.nextField()) {
8293
+ if (reader.isEndGroup()) {
8294
+ break;
8295
+ }
8296
+ var field = reader.getFieldNumber();
8297
+ switch (field) {
8298
+ case 1:
8299
+ var value = new proto.agentbillingserviceapi.ResponseCode;
8300
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
8301
+ msg.setResponsecode(value);
8302
+ break;
8303
+ case 2:
8304
+ var value = new proto.agentbillingserviceapi.ImportedBatchInfo;
8305
+ reader.readMessage(value,proto.agentbillingserviceapi.ImportedBatchInfo.deserializeBinaryFromReader);
8306
+ msg.addBatches(value);
8307
+ break;
8308
+ default:
8309
+ reader.skipField();
8310
+ break;
8311
+ }
8312
+ }
8313
+ return msg;
8298
8314
  };
8299
8315
 
8300
8316
 
8301
8317
  /**
8302
- * @param {number} value
8303
- * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8318
+ * Serializes the message to binary data (in protobuf wire format).
8319
+ * @return {!Uint8Array}
8304
8320
  */
8305
- proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setAgentbillid = function(value) {
8321
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.serializeBinary = function() {
8322
+ var writer = new jspb.BinaryWriter();
8323
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.serializeBinaryToWriter(this, writer);
8324
+ return writer.getResultBuffer();
8325
+ };
8326
+
8327
+
8328
+ /**
8329
+ * Serializes the given message to binary data (in protobuf wire
8330
+ * format), writing to the given BinaryWriter.
8331
+ * @param {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse} message
8332
+ * @param {!jspb.BinaryWriter} writer
8333
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8334
+ */
8335
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.serializeBinaryToWriter = function(message, writer) {
8336
+ var f = undefined;
8337
+ f = message.getResponsecode();
8338
+ if (f != null) {
8339
+ writer.writeMessage(
8340
+ 1,
8341
+ f,
8342
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
8343
+ );
8344
+ }
8345
+ f = message.getBatchesList();
8346
+ if (f.length > 0) {
8347
+ writer.writeRepeatedMessage(
8348
+ 2,
8349
+ f,
8350
+ proto.agentbillingserviceapi.ImportedBatchInfo.serializeBinaryToWriter
8351
+ );
8352
+ }
8353
+ };
8354
+
8355
+
8356
+ /**
8357
+ * optional ResponseCode responseCode = 1;
8358
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
8359
+ */
8360
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.getResponsecode = function() {
8361
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
8362
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
8363
+ };
8364
+
8365
+
8366
+ /**
8367
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
8368
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse} returns this
8369
+ */
8370
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.setResponsecode = function(value) {
8371
+ return jspb.Message.setWrapperField(this, 1, value);
8372
+ };
8373
+
8374
+
8375
+ /**
8376
+ * Clears the message field making it undefined.
8377
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse} returns this
8378
+ */
8379
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.clearResponsecode = function() {
8380
+ return this.setResponsecode(undefined);
8381
+ };
8382
+
8383
+
8384
+ /**
8385
+ * Returns whether this field is set.
8386
+ * @return {boolean}
8387
+ */
8388
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.hasResponsecode = function() {
8389
+ return jspb.Message.getField(this, 1) != null;
8390
+ };
8391
+
8392
+
8393
+ /**
8394
+ * repeated ImportedBatchInfo batches = 2;
8395
+ * @return {!Array<!proto.agentbillingserviceapi.ImportedBatchInfo>}
8396
+ */
8397
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.getBatchesList = function() {
8398
+ return /** @type{!Array<!proto.agentbillingserviceapi.ImportedBatchInfo>} */ (
8399
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.ImportedBatchInfo, 2));
8400
+ };
8401
+
8402
+
8403
+ /**
8404
+ * @param {!Array<!proto.agentbillingserviceapi.ImportedBatchInfo>} value
8405
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse} returns this
8406
+ */
8407
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.setBatchesList = function(value) {
8408
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
8409
+ };
8410
+
8411
+
8412
+ /**
8413
+ * @param {!proto.agentbillingserviceapi.ImportedBatchInfo=} opt_value
8414
+ * @param {number=} opt_index
8415
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo}
8416
+ */
8417
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.addBatches = function(opt_value, opt_index) {
8418
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.agentbillingserviceapi.ImportedBatchInfo, opt_index);
8419
+ };
8420
+
8421
+
8422
+ /**
8423
+ * Clears the list making it empty but non-null.
8424
+ * @return {!proto.agentbillingserviceapi.GetImportedBatchesInfoResponse} returns this
8425
+ */
8426
+ proto.agentbillingserviceapi.GetImportedBatchesInfoResponse.prototype.clearBatchesList = function() {
8427
+ return this.setBatchesList([]);
8428
+ };
8429
+
8430
+
8431
+
8432
+
8433
+
8434
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8435
+ /**
8436
+ * Creates an object representation of this proto.
8437
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8438
+ * Optional fields that are not set will be set to undefined.
8439
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8440
+ * For the list of reserved names please see:
8441
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8442
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8443
+ * JSPB instance for transitional soy proto support:
8444
+ * http://goto/soy-param-migration
8445
+ * @return {!Object}
8446
+ */
8447
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.toObject = function(opt_includeInstance) {
8448
+ return proto.agentbillingserviceapi.ImportedBatchInfo.toObject(opt_includeInstance, this);
8449
+ };
8450
+
8451
+
8452
+ /**
8453
+ * Static version of the {@see toObject} method.
8454
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8455
+ * the JSPB instance for transitional soy proto support:
8456
+ * http://goto/soy-param-migration
8457
+ * @param {!proto.agentbillingserviceapi.ImportedBatchInfo} msg The msg instance to transform.
8458
+ * @return {!Object}
8459
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8460
+ */
8461
+ proto.agentbillingserviceapi.ImportedBatchInfo.toObject = function(includeInstance, msg) {
8462
+ var f, obj = {
8463
+ uploadbatchid: jspb.Message.getFieldWithDefault(msg, 1, 0),
8464
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
8465
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
8466
+ status: jspb.Message.getFieldWithDefault(msg, 4, 0),
8467
+ creationtime: jspb.Message.getFieldWithDefault(msg, 5, "")
8468
+ };
8469
+
8470
+ if (includeInstance) {
8471
+ obj.$jspbMessageInstance = msg;
8472
+ }
8473
+ return obj;
8474
+ };
8475
+ }
8476
+
8477
+
8478
+ /**
8479
+ * Deserializes binary data (in protobuf wire format).
8480
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8481
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo}
8482
+ */
8483
+ proto.agentbillingserviceapi.ImportedBatchInfo.deserializeBinary = function(bytes) {
8484
+ var reader = new jspb.BinaryReader(bytes);
8485
+ var msg = new proto.agentbillingserviceapi.ImportedBatchInfo;
8486
+ return proto.agentbillingserviceapi.ImportedBatchInfo.deserializeBinaryFromReader(msg, reader);
8487
+ };
8488
+
8489
+
8490
+ /**
8491
+ * Deserializes binary data (in protobuf wire format) from the
8492
+ * given reader into the given message object.
8493
+ * @param {!proto.agentbillingserviceapi.ImportedBatchInfo} msg The message object to deserialize into.
8494
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8495
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo}
8496
+ */
8497
+ proto.agentbillingserviceapi.ImportedBatchInfo.deserializeBinaryFromReader = function(msg, reader) {
8498
+ while (reader.nextField()) {
8499
+ if (reader.isEndGroup()) {
8500
+ break;
8501
+ }
8502
+ var field = reader.getFieldNumber();
8503
+ switch (field) {
8504
+ case 1:
8505
+ var value = /** @type {number} */ (reader.readInt64());
8506
+ msg.setUploadbatchid(value);
8507
+ break;
8508
+ case 2:
8509
+ var value = /** @type {string} */ (reader.readString());
8510
+ msg.setName(value);
8511
+ break;
8512
+ case 3:
8513
+ var value = /** @type {!proto.agentbillingserviceapi.UploadBatchType} */ (reader.readEnum());
8514
+ msg.setType(value);
8515
+ break;
8516
+ case 4:
8517
+ var value = /** @type {!proto.agentbillingserviceapi.UploadBatchStatus} */ (reader.readEnum());
8518
+ msg.setStatus(value);
8519
+ break;
8520
+ case 5:
8521
+ var value = /** @type {string} */ (reader.readString());
8522
+ msg.setCreationtime(value);
8523
+ break;
8524
+ default:
8525
+ reader.skipField();
8526
+ break;
8527
+ }
8528
+ }
8529
+ return msg;
8530
+ };
8531
+
8532
+
8533
+ /**
8534
+ * Serializes the message to binary data (in protobuf wire format).
8535
+ * @return {!Uint8Array}
8536
+ */
8537
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.serializeBinary = function() {
8538
+ var writer = new jspb.BinaryWriter();
8539
+ proto.agentbillingserviceapi.ImportedBatchInfo.serializeBinaryToWriter(this, writer);
8540
+ return writer.getResultBuffer();
8541
+ };
8542
+
8543
+
8544
+ /**
8545
+ * Serializes the given message to binary data (in protobuf wire
8546
+ * format), writing to the given BinaryWriter.
8547
+ * @param {!proto.agentbillingserviceapi.ImportedBatchInfo} message
8548
+ * @param {!jspb.BinaryWriter} writer
8549
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8550
+ */
8551
+ proto.agentbillingserviceapi.ImportedBatchInfo.serializeBinaryToWriter = function(message, writer) {
8552
+ var f = undefined;
8553
+ f = message.getUploadbatchid();
8554
+ if (f !== 0) {
8555
+ writer.writeInt64(
8556
+ 1,
8557
+ f
8558
+ );
8559
+ }
8560
+ f = message.getName();
8561
+ if (f.length > 0) {
8562
+ writer.writeString(
8563
+ 2,
8564
+ f
8565
+ );
8566
+ }
8567
+ f = message.getType();
8568
+ if (f !== 0.0) {
8569
+ writer.writeEnum(
8570
+ 3,
8571
+ f
8572
+ );
8573
+ }
8574
+ f = message.getStatus();
8575
+ if (f !== 0.0) {
8576
+ writer.writeEnum(
8577
+ 4,
8578
+ f
8579
+ );
8580
+ }
8581
+ f = message.getCreationtime();
8582
+ if (f.length > 0) {
8583
+ writer.writeString(
8584
+ 5,
8585
+ f
8586
+ );
8587
+ }
8588
+ };
8589
+
8590
+
8591
+ /**
8592
+ * optional int64 uploadBatchId = 1;
8593
+ * @return {number}
8594
+ */
8595
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.getUploadbatchid = function() {
8596
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8597
+ };
8598
+
8599
+
8600
+ /**
8601
+ * @param {number} value
8602
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo} returns this
8603
+ */
8604
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.setUploadbatchid = function(value) {
8605
+ return jspb.Message.setProto3IntField(this, 1, value);
8606
+ };
8607
+
8608
+
8609
+ /**
8610
+ * optional string name = 2;
8611
+ * @return {string}
8612
+ */
8613
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.getName = function() {
8614
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8615
+ };
8616
+
8617
+
8618
+ /**
8619
+ * @param {string} value
8620
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo} returns this
8621
+ */
8622
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.setName = function(value) {
8623
+ return jspb.Message.setProto3StringField(this, 2, value);
8624
+ };
8625
+
8626
+
8627
+ /**
8628
+ * optional UploadBatchType type = 3;
8629
+ * @return {!proto.agentbillingserviceapi.UploadBatchType}
8630
+ */
8631
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.getType = function() {
8632
+ return /** @type {!proto.agentbillingserviceapi.UploadBatchType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8633
+ };
8634
+
8635
+
8636
+ /**
8637
+ * @param {!proto.agentbillingserviceapi.UploadBatchType} value
8638
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo} returns this
8639
+ */
8640
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.setType = function(value) {
8641
+ return jspb.Message.setProto3EnumField(this, 3, value);
8642
+ };
8643
+
8644
+
8645
+ /**
8646
+ * optional UploadBatchStatus status = 4;
8647
+ * @return {!proto.agentbillingserviceapi.UploadBatchStatus}
8648
+ */
8649
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.getStatus = function() {
8650
+ return /** @type {!proto.agentbillingserviceapi.UploadBatchStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
8651
+ };
8652
+
8653
+
8654
+ /**
8655
+ * @param {!proto.agentbillingserviceapi.UploadBatchStatus} value
8656
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo} returns this
8657
+ */
8658
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.setStatus = function(value) {
8659
+ return jspb.Message.setProto3EnumField(this, 4, value);
8660
+ };
8661
+
8662
+
8663
+ /**
8664
+ * optional string creationTime = 5;
8665
+ * @return {string}
8666
+ */
8667
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.getCreationtime = function() {
8668
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
8669
+ };
8670
+
8671
+
8672
+ /**
8673
+ * @param {string} value
8674
+ * @return {!proto.agentbillingserviceapi.ImportedBatchInfo} returns this
8675
+ */
8676
+ proto.agentbillingserviceapi.ImportedBatchInfo.prototype.setCreationtime = function(value) {
8677
+ return jspb.Message.setProto3StringField(this, 5, value);
8678
+ };
8679
+
8680
+
8681
+
8682
+
8683
+
8684
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8685
+ /**
8686
+ * Creates an object representation of this proto.
8687
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8688
+ * Optional fields that are not set will be set to undefined.
8689
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8690
+ * For the list of reserved names please see:
8691
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8692
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8693
+ * JSPB instance for transitional soy proto support:
8694
+ * http://goto/soy-param-migration
8695
+ * @return {!Object}
8696
+ */
8697
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.toObject = function(opt_includeInstance) {
8698
+ return proto.agentbillingserviceapi.AgentAttachmentInfo.toObject(opt_includeInstance, this);
8699
+ };
8700
+
8701
+
8702
+ /**
8703
+ * Static version of the {@see toObject} method.
8704
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8705
+ * the JSPB instance for transitional soy proto support:
8706
+ * http://goto/soy-param-migration
8707
+ * @param {!proto.agentbillingserviceapi.AgentAttachmentInfo} msg The msg instance to transform.
8708
+ * @return {!Object}
8709
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8710
+ */
8711
+ proto.agentbillingserviceapi.AgentAttachmentInfo.toObject = function(includeInstance, msg) {
8712
+ var f, obj = {
8713
+ agentid: jspb.Message.getFieldWithDefault(msg, 1, 0),
8714
+ clientid: jspb.Message.getFieldWithDefault(msg, 2, 0),
8715
+ attachmentid: jspb.Message.getFieldWithDefault(msg, 3, 0),
8716
+ agentbillid: jspb.Message.getFieldWithDefault(msg, 4, 0),
8717
+ uploadbatchid: jspb.Message.getFieldWithDefault(msg, 5, 0),
8718
+ status: jspb.Message.getFieldWithDefault(msg, 6, 0),
8719
+ updatedat: jspb.Message.getFieldWithDefault(msg, 7, ""),
8720
+ errormessage: jspb.Message.getFieldWithDefault(msg, 8, "")
8721
+ };
8722
+
8723
+ if (includeInstance) {
8724
+ obj.$jspbMessageInstance = msg;
8725
+ }
8726
+ return obj;
8727
+ };
8728
+ }
8729
+
8730
+
8731
+ /**
8732
+ * Deserializes binary data (in protobuf wire format).
8733
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8734
+ * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo}
8735
+ */
8736
+ proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinary = function(bytes) {
8737
+ var reader = new jspb.BinaryReader(bytes);
8738
+ var msg = new proto.agentbillingserviceapi.AgentAttachmentInfo;
8739
+ return proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinaryFromReader(msg, reader);
8740
+ };
8741
+
8742
+
8743
+ /**
8744
+ * Deserializes binary data (in protobuf wire format) from the
8745
+ * given reader into the given message object.
8746
+ * @param {!proto.agentbillingserviceapi.AgentAttachmentInfo} msg The message object to deserialize into.
8747
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8748
+ * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo}
8749
+ */
8750
+ proto.agentbillingserviceapi.AgentAttachmentInfo.deserializeBinaryFromReader = function(msg, reader) {
8751
+ while (reader.nextField()) {
8752
+ if (reader.isEndGroup()) {
8753
+ break;
8754
+ }
8755
+ var field = reader.getFieldNumber();
8756
+ switch (field) {
8757
+ case 1:
8758
+ var value = /** @type {number} */ (reader.readInt64());
8759
+ msg.setAgentid(value);
8760
+ break;
8761
+ case 2:
8762
+ var value = /** @type {number} */ (reader.readInt64());
8763
+ msg.setClientid(value);
8764
+ break;
8765
+ case 3:
8766
+ var value = /** @type {number} */ (reader.readInt64());
8767
+ msg.setAttachmentid(value);
8768
+ break;
8769
+ case 4:
8770
+ var value = /** @type {number} */ (reader.readInt64());
8771
+ msg.setAgentbillid(value);
8772
+ break;
8773
+ case 5:
8774
+ var value = /** @type {number} */ (reader.readInt64());
8775
+ msg.setUploadbatchid(value);
8776
+ break;
8777
+ case 6:
8778
+ var value = /** @type {!proto.agentbillingserviceapi.AttachmentStatus} */ (reader.readEnum());
8779
+ msg.setStatus(value);
8780
+ break;
8781
+ case 7:
8782
+ var value = /** @type {string} */ (reader.readString());
8783
+ msg.setUpdatedat(value);
8784
+ break;
8785
+ case 8:
8786
+ var value = /** @type {string} */ (reader.readString());
8787
+ msg.setErrormessage(value);
8788
+ break;
8789
+ default:
8790
+ reader.skipField();
8791
+ break;
8792
+ }
8793
+ }
8794
+ return msg;
8795
+ };
8796
+
8797
+
8798
+ /**
8799
+ * Serializes the message to binary data (in protobuf wire format).
8800
+ * @return {!Uint8Array}
8801
+ */
8802
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.serializeBinary = function() {
8803
+ var writer = new jspb.BinaryWriter();
8804
+ proto.agentbillingserviceapi.AgentAttachmentInfo.serializeBinaryToWriter(this, writer);
8805
+ return writer.getResultBuffer();
8806
+ };
8807
+
8808
+
8809
+ /**
8810
+ * Serializes the given message to binary data (in protobuf wire
8811
+ * format), writing to the given BinaryWriter.
8812
+ * @param {!proto.agentbillingserviceapi.AgentAttachmentInfo} message
8813
+ * @param {!jspb.BinaryWriter} writer
8814
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8815
+ */
8816
+ proto.agentbillingserviceapi.AgentAttachmentInfo.serializeBinaryToWriter = function(message, writer) {
8817
+ var f = undefined;
8818
+ f = message.getAgentid();
8819
+ if (f !== 0) {
8820
+ writer.writeInt64(
8821
+ 1,
8822
+ f
8823
+ );
8824
+ }
8825
+ f = message.getClientid();
8826
+ if (f !== 0) {
8827
+ writer.writeInt64(
8828
+ 2,
8829
+ f
8830
+ );
8831
+ }
8832
+ f = message.getAttachmentid();
8833
+ if (f !== 0) {
8834
+ writer.writeInt64(
8835
+ 3,
8836
+ f
8837
+ );
8838
+ }
8839
+ f = message.getAgentbillid();
8840
+ if (f !== 0) {
8841
+ writer.writeInt64(
8842
+ 4,
8843
+ f
8844
+ );
8845
+ }
8846
+ f = message.getUploadbatchid();
8847
+ if (f !== 0) {
8848
+ writer.writeInt64(
8849
+ 5,
8850
+ f
8851
+ );
8852
+ }
8853
+ f = message.getStatus();
8854
+ if (f !== 0.0) {
8855
+ writer.writeEnum(
8856
+ 6,
8857
+ f
8858
+ );
8859
+ }
8860
+ f = message.getUpdatedat();
8861
+ if (f.length > 0) {
8862
+ writer.writeString(
8863
+ 7,
8864
+ f
8865
+ );
8866
+ }
8867
+ f = message.getErrormessage();
8868
+ if (f.length > 0) {
8869
+ writer.writeString(
8870
+ 8,
8871
+ f
8872
+ );
8873
+ }
8874
+ };
8875
+
8876
+
8877
+ /**
8878
+ * optional int64 agentId = 1;
8879
+ * @return {number}
8880
+ */
8881
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getAgentid = function() {
8882
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8883
+ };
8884
+
8885
+
8886
+ /**
8887
+ * @param {number} value
8888
+ * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8889
+ */
8890
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setAgentid = function(value) {
8891
+ return jspb.Message.setProto3IntField(this, 1, value);
8892
+ };
8893
+
8894
+
8895
+ /**
8896
+ * optional int64 clientId = 2;
8897
+ * @return {number}
8898
+ */
8899
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getClientid = function() {
8900
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8901
+ };
8902
+
8903
+
8904
+ /**
8905
+ * @param {number} value
8906
+ * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8907
+ */
8908
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setClientid = function(value) {
8909
+ return jspb.Message.setProto3IntField(this, 2, value);
8910
+ };
8911
+
8912
+
8913
+ /**
8914
+ * optional int64 attachmentId = 3;
8915
+ * @return {number}
8916
+ */
8917
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getAttachmentid = function() {
8918
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8919
+ };
8920
+
8921
+
8922
+ /**
8923
+ * @param {number} value
8924
+ * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8925
+ */
8926
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setAttachmentid = function(value) {
8927
+ return jspb.Message.setProto3IntField(this, 3, value);
8928
+ };
8929
+
8930
+
8931
+ /**
8932
+ * optional int64 agentBillId = 4;
8933
+ * @return {number}
8934
+ */
8935
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getAgentbillid = function() {
8936
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
8937
+ };
8938
+
8939
+
8940
+ /**
8941
+ * @param {number} value
8942
+ * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
8943
+ */
8944
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setAgentbillid = function(value) {
8306
8945
  return jspb.Message.setProto3IntField(this, 4, value);
8307
8946
  };
8308
8947
 
@@ -8361,6 +9000,24 @@ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setUpdatedat = functi
8361
9000
  };
8362
9001
 
8363
9002
 
9003
+ /**
9004
+ * optional string errorMessage = 8;
9005
+ * @return {string}
9006
+ */
9007
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.getErrormessage = function() {
9008
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
9009
+ };
9010
+
9011
+
9012
+ /**
9013
+ * @param {string} value
9014
+ * @return {!proto.agentbillingserviceapi.AgentAttachmentInfo} returns this
9015
+ */
9016
+ proto.agentbillingserviceapi.AgentAttachmentInfo.prototype.setErrormessage = function(value) {
9017
+ return jspb.Message.setProto3StringField(this, 8, value);
9018
+ };
9019
+
9020
+
8364
9021
 
8365
9022
 
8366
9023
 
@@ -22044,7 +22701,8 @@ proto.agentbillingserviceapi.UploadBatchType = {
22044
22701
  proto.agentbillingserviceapi.UploadBatchStatus = {
22045
22702
  PENDING: 0,
22046
22703
  REVIEW: 1,
22047
- COMPLETED: 2
22704
+ COMPLETED: 2,
22705
+ UPLOAD_FAILED: 3
22048
22706
  };
22049
22707
 
22050
22708
  goog.object.extend(exports, proto.agentbillingserviceapi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/agent-billing-client-grpcweb-ts",
3
- "version": "24.4.1725",
3
+ "version": "24.4.1821",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",