@sniipwebmaster/agent-billing-client-grpcweb-ts 23.12.786 → 23.12.797

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.
@@ -39,6 +39,92 @@ export class AgentBillingServiceAPIServiceClient {
39
39
  this.options_ = options;
40
40
  }
41
41
 
42
+ methodDescriptorArchiveAgentBillsByAgentBillIds = new grpcWeb.MethodDescriptor(
43
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ArchiveAgentBillsByAgentBillIds',
44
+ grpcWeb.MethodType.UNARY,
45
+ service_pb.ArchiveAgentBillsByAgentBillIdsRequest,
46
+ service_pb.ArchiveAgentBillsResponse,
47
+ (request: service_pb.ArchiveAgentBillsByAgentBillIdsRequest) => {
48
+ return request.serializeBinary();
49
+ },
50
+ service_pb.ArchiveAgentBillsResponse.deserializeBinary
51
+ );
52
+
53
+ archiveAgentBillsByAgentBillIds(
54
+ request: service_pb.ArchiveAgentBillsByAgentBillIdsRequest,
55
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ArchiveAgentBillsResponse>;
56
+
57
+ archiveAgentBillsByAgentBillIds(
58
+ request: service_pb.ArchiveAgentBillsByAgentBillIdsRequest,
59
+ metadata: grpcWeb.Metadata | null,
60
+ callback: (err: grpcWeb.RpcError,
61
+ response: service_pb.ArchiveAgentBillsResponse) => void): grpcWeb.ClientReadableStream<service_pb.ArchiveAgentBillsResponse>;
62
+
63
+ archiveAgentBillsByAgentBillIds(
64
+ request: service_pb.ArchiveAgentBillsByAgentBillIdsRequest,
65
+ metadata: grpcWeb.Metadata | null,
66
+ callback?: (err: grpcWeb.RpcError,
67
+ response: service_pb.ArchiveAgentBillsResponse) => void) {
68
+ if (callback !== undefined) {
69
+ return this.client_.rpcCall(
70
+ this.hostname_ +
71
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ArchiveAgentBillsByAgentBillIds',
72
+ request,
73
+ metadata || {},
74
+ this.methodDescriptorArchiveAgentBillsByAgentBillIds,
75
+ callback);
76
+ }
77
+ return this.client_.unaryCall(
78
+ this.hostname_ +
79
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ArchiveAgentBillsByAgentBillIds',
80
+ request,
81
+ metadata || {},
82
+ this.methodDescriptorArchiveAgentBillsByAgentBillIds);
83
+ }
84
+
85
+ methodDescriptorArchiveAgentBillsByDeliveryBatchId = new grpcWeb.MethodDescriptor(
86
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ArchiveAgentBillsByDeliveryBatchId',
87
+ grpcWeb.MethodType.UNARY,
88
+ service_pb.ArchiveAgentBillsByDeliveryBatchIdRequest,
89
+ service_pb.ArchiveAgentBillsResponse,
90
+ (request: service_pb.ArchiveAgentBillsByDeliveryBatchIdRequest) => {
91
+ return request.serializeBinary();
92
+ },
93
+ service_pb.ArchiveAgentBillsResponse.deserializeBinary
94
+ );
95
+
96
+ archiveAgentBillsByDeliveryBatchId(
97
+ request: service_pb.ArchiveAgentBillsByDeliveryBatchIdRequest,
98
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ArchiveAgentBillsResponse>;
99
+
100
+ archiveAgentBillsByDeliveryBatchId(
101
+ request: service_pb.ArchiveAgentBillsByDeliveryBatchIdRequest,
102
+ metadata: grpcWeb.Metadata | null,
103
+ callback: (err: grpcWeb.RpcError,
104
+ response: service_pb.ArchiveAgentBillsResponse) => void): grpcWeb.ClientReadableStream<service_pb.ArchiveAgentBillsResponse>;
105
+
106
+ archiveAgentBillsByDeliveryBatchId(
107
+ request: service_pb.ArchiveAgentBillsByDeliveryBatchIdRequest,
108
+ metadata: grpcWeb.Metadata | null,
109
+ callback?: (err: grpcWeb.RpcError,
110
+ response: service_pb.ArchiveAgentBillsResponse) => void) {
111
+ if (callback !== undefined) {
112
+ return this.client_.rpcCall(
113
+ this.hostname_ +
114
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ArchiveAgentBillsByDeliveryBatchId',
115
+ request,
116
+ metadata || {},
117
+ this.methodDescriptorArchiveAgentBillsByDeliveryBatchId,
118
+ callback);
119
+ }
120
+ return this.client_.unaryCall(
121
+ this.hostname_ +
122
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/ArchiveAgentBillsByDeliveryBatchId',
123
+ request,
124
+ metadata || {},
125
+ this.methodDescriptorArchiveAgentBillsByDeliveryBatchId);
126
+ }
127
+
42
128
  methodDescriptorCancelAgentInvite = new grpcWeb.MethodDescriptor(
43
129
  '/agentbillingserviceapi.AgentBillingServiceAPIService/CancelAgentInvite',
44
130
  grpcWeb.MethodType.UNARY,
@@ -109,6 +109,108 @@ export namespace AgentBill {
109
109
  }
110
110
  }
111
111
 
112
+ export class ArchiveAgentBillResult extends jspb.Message {
113
+ getAgentbillid(): number;
114
+ setAgentbillid(value: number): ArchiveAgentBillResult;
115
+
116
+ getBillid(): number;
117
+ setBillid(value: number): ArchiveAgentBillResult;
118
+
119
+ getWassuccessfullyarchived(): boolean;
120
+ setWassuccessfullyarchived(value: boolean): ArchiveAgentBillResult;
121
+
122
+ getMessage(): string;
123
+ setMessage(value: string): ArchiveAgentBillResult;
124
+
125
+ serializeBinary(): Uint8Array;
126
+ toObject(includeInstance?: boolean): ArchiveAgentBillResult.AsObject;
127
+ static toObject(includeInstance: boolean, msg: ArchiveAgentBillResult): ArchiveAgentBillResult.AsObject;
128
+ static serializeBinaryToWriter(message: ArchiveAgentBillResult, writer: jspb.BinaryWriter): void;
129
+ static deserializeBinary(bytes: Uint8Array): ArchiveAgentBillResult;
130
+ static deserializeBinaryFromReader(message: ArchiveAgentBillResult, reader: jspb.BinaryReader): ArchiveAgentBillResult;
131
+ }
132
+
133
+ export namespace ArchiveAgentBillResult {
134
+ export type AsObject = {
135
+ agentbillid: number,
136
+ billid: number,
137
+ wassuccessfullyarchived: boolean,
138
+ message: string,
139
+ }
140
+ }
141
+
142
+ export class ArchiveAgentBillsByAgentBillIdsRequest extends jspb.Message {
143
+ getAgentbillidsList(): Array<number>;
144
+ setAgentbillidsList(value: Array<number>): ArchiveAgentBillsByAgentBillIdsRequest;
145
+ clearAgentbillidsList(): ArchiveAgentBillsByAgentBillIdsRequest;
146
+ addAgentbillids(value: number, index?: number): ArchiveAgentBillsByAgentBillIdsRequest;
147
+
148
+ serializeBinary(): Uint8Array;
149
+ toObject(includeInstance?: boolean): ArchiveAgentBillsByAgentBillIdsRequest.AsObject;
150
+ static toObject(includeInstance: boolean, msg: ArchiveAgentBillsByAgentBillIdsRequest): ArchiveAgentBillsByAgentBillIdsRequest.AsObject;
151
+ static serializeBinaryToWriter(message: ArchiveAgentBillsByAgentBillIdsRequest, writer: jspb.BinaryWriter): void;
152
+ static deserializeBinary(bytes: Uint8Array): ArchiveAgentBillsByAgentBillIdsRequest;
153
+ static deserializeBinaryFromReader(message: ArchiveAgentBillsByAgentBillIdsRequest, reader: jspb.BinaryReader): ArchiveAgentBillsByAgentBillIdsRequest;
154
+ }
155
+
156
+ export namespace ArchiveAgentBillsByAgentBillIdsRequest {
157
+ export type AsObject = {
158
+ agentbillidsList: Array<number>,
159
+ }
160
+ }
161
+
162
+ export class ArchiveAgentBillsByDeliveryBatchIdRequest extends jspb.Message {
163
+ getDeliverybatchid(): number;
164
+ setDeliverybatchid(value: number): ArchiveAgentBillsByDeliveryBatchIdRequest;
165
+
166
+ serializeBinary(): Uint8Array;
167
+ toObject(includeInstance?: boolean): ArchiveAgentBillsByDeliveryBatchIdRequest.AsObject;
168
+ static toObject(includeInstance: boolean, msg: ArchiveAgentBillsByDeliveryBatchIdRequest): ArchiveAgentBillsByDeliveryBatchIdRequest.AsObject;
169
+ static serializeBinaryToWriter(message: ArchiveAgentBillsByDeliveryBatchIdRequest, writer: jspb.BinaryWriter): void;
170
+ static deserializeBinary(bytes: Uint8Array): ArchiveAgentBillsByDeliveryBatchIdRequest;
171
+ static deserializeBinaryFromReader(message: ArchiveAgentBillsByDeliveryBatchIdRequest, reader: jspb.BinaryReader): ArchiveAgentBillsByDeliveryBatchIdRequest;
172
+ }
173
+
174
+ export namespace ArchiveAgentBillsByDeliveryBatchIdRequest {
175
+ export type AsObject = {
176
+ deliverybatchid: number,
177
+ }
178
+ }
179
+
180
+ export class ArchiveAgentBillsResponse extends jspb.Message {
181
+ getResponsecode(): ResponseCode | undefined;
182
+ setResponsecode(value?: ResponseCode): ArchiveAgentBillsResponse;
183
+ hasResponsecode(): boolean;
184
+ clearResponsecode(): ArchiveAgentBillsResponse;
185
+
186
+ getArchivedcount(): number;
187
+ setArchivedcount(value: number): ArchiveAgentBillsResponse;
188
+
189
+ getNotarchivedcount(): number;
190
+ setNotarchivedcount(value: number): ArchiveAgentBillsResponse;
191
+
192
+ getArchiveagentbillsresultsList(): Array<ArchiveAgentBillResult>;
193
+ setArchiveagentbillsresultsList(value: Array<ArchiveAgentBillResult>): ArchiveAgentBillsResponse;
194
+ clearArchiveagentbillsresultsList(): ArchiveAgentBillsResponse;
195
+ addArchiveagentbillsresults(value?: ArchiveAgentBillResult, index?: number): ArchiveAgentBillResult;
196
+
197
+ serializeBinary(): Uint8Array;
198
+ toObject(includeInstance?: boolean): ArchiveAgentBillsResponse.AsObject;
199
+ static toObject(includeInstance: boolean, msg: ArchiveAgentBillsResponse): ArchiveAgentBillsResponse.AsObject;
200
+ static serializeBinaryToWriter(message: ArchiveAgentBillsResponse, writer: jspb.BinaryWriter): void;
201
+ static deserializeBinary(bytes: Uint8Array): ArchiveAgentBillsResponse;
202
+ static deserializeBinaryFromReader(message: ArchiveAgentBillsResponse, reader: jspb.BinaryReader): ArchiveAgentBillsResponse;
203
+ }
204
+
205
+ export namespace ArchiveAgentBillsResponse {
206
+ export type AsObject = {
207
+ responsecode?: ResponseCode.AsObject,
208
+ archivedcount: number,
209
+ notarchivedcount: number,
210
+ archiveagentbillsresultsList: Array<ArchiveAgentBillResult.AsObject>,
211
+ }
212
+ }
213
+
112
214
  export class CancelAgentInviteRequest extends jspb.Message {
113
215
  getAgentemail(): string;
114
216
  setAgentemail(value: string): CancelAgentInviteRequest;
@@ -16,6 +16,10 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
16
16
  goog.object.extend(proto, google_api_annotations_pb);
17
17
  goog.exportSymbol('proto.agentbillingserviceapi.Agent', null, global);
18
18
  goog.exportSymbol('proto.agentbillingserviceapi.AgentBill', null, global);
19
+ goog.exportSymbol('proto.agentbillingserviceapi.ArchiveAgentBillResult', null, global);
20
+ goog.exportSymbol('proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest', null, global);
21
+ goog.exportSymbol('proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest', null, global);
22
+ goog.exportSymbol('proto.agentbillingserviceapi.ArchiveAgentBillsResponse', null, global);
19
23
  goog.exportSymbol('proto.agentbillingserviceapi.CancelAgentInviteRequest', null, global);
20
24
  goog.exportSymbol('proto.agentbillingserviceapi.Client', null, global);
21
25
  goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, global);
@@ -103,6 +107,90 @@ if (goog.DEBUG && !COMPILED) {
103
107
  */
104
108
  proto.agentbillingserviceapi.AgentBill.displayName = 'proto.agentbillingserviceapi.AgentBill';
105
109
  }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.agentbillingserviceapi.ArchiveAgentBillResult = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.agentbillingserviceapi.ArchiveAgentBillResult, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.displayName = 'proto.agentbillingserviceapi.ArchiveAgentBillResult';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.repeatedFields_, null);
143
+ };
144
+ goog.inherits(proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.displayName = 'proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.displayName = 'proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.ArchiveAgentBillsResponse.repeatedFields_, null);
185
+ };
186
+ goog.inherits(proto.agentbillingserviceapi.ArchiveAgentBillsResponse, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.displayName = 'proto.agentbillingserviceapi.ArchiveAgentBillsResponse';
193
+ }
106
194
  /**
107
195
  * Generated by JsPbCodeGenerator.
108
196
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1847,6 +1935,783 @@ proto.agentbillingserviceapi.AgentBill.prototype.setInvoicenumber = function(val
1847
1935
 
1848
1936
 
1849
1937
 
1938
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1939
+ /**
1940
+ * Creates an object representation of this proto.
1941
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1942
+ * Optional fields that are not set will be set to undefined.
1943
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1944
+ * For the list of reserved names please see:
1945
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1946
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1947
+ * JSPB instance for transitional soy proto support:
1948
+ * http://goto/soy-param-migration
1949
+ * @return {!Object}
1950
+ */
1951
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.toObject = function(opt_includeInstance) {
1952
+ return proto.agentbillingserviceapi.ArchiveAgentBillResult.toObject(opt_includeInstance, this);
1953
+ };
1954
+
1955
+
1956
+ /**
1957
+ * Static version of the {@see toObject} method.
1958
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1959
+ * the JSPB instance for transitional soy proto support:
1960
+ * http://goto/soy-param-migration
1961
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillResult} msg The msg instance to transform.
1962
+ * @return {!Object}
1963
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1964
+ */
1965
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.toObject = function(includeInstance, msg) {
1966
+ var f, obj = {
1967
+ agentbillid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1968
+ billid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1969
+ wassuccessfullyarchived: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1970
+ message: jspb.Message.getFieldWithDefault(msg, 4, "")
1971
+ };
1972
+
1973
+ if (includeInstance) {
1974
+ obj.$jspbMessageInstance = msg;
1975
+ }
1976
+ return obj;
1977
+ };
1978
+ }
1979
+
1980
+
1981
+ /**
1982
+ * Deserializes binary data (in protobuf wire format).
1983
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1984
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillResult}
1985
+ */
1986
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.deserializeBinary = function(bytes) {
1987
+ var reader = new jspb.BinaryReader(bytes);
1988
+ var msg = new proto.agentbillingserviceapi.ArchiveAgentBillResult;
1989
+ return proto.agentbillingserviceapi.ArchiveAgentBillResult.deserializeBinaryFromReader(msg, reader);
1990
+ };
1991
+
1992
+
1993
+ /**
1994
+ * Deserializes binary data (in protobuf wire format) from the
1995
+ * given reader into the given message object.
1996
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillResult} msg The message object to deserialize into.
1997
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1998
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillResult}
1999
+ */
2000
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.deserializeBinaryFromReader = function(msg, reader) {
2001
+ while (reader.nextField()) {
2002
+ if (reader.isEndGroup()) {
2003
+ break;
2004
+ }
2005
+ var field = reader.getFieldNumber();
2006
+ switch (field) {
2007
+ case 1:
2008
+ var value = /** @type {number} */ (reader.readInt64());
2009
+ msg.setAgentbillid(value);
2010
+ break;
2011
+ case 2:
2012
+ var value = /** @type {number} */ (reader.readInt64());
2013
+ msg.setBillid(value);
2014
+ break;
2015
+ case 3:
2016
+ var value = /** @type {boolean} */ (reader.readBool());
2017
+ msg.setWassuccessfullyarchived(value);
2018
+ break;
2019
+ case 4:
2020
+ var value = /** @type {string} */ (reader.readString());
2021
+ msg.setMessage(value);
2022
+ break;
2023
+ default:
2024
+ reader.skipField();
2025
+ break;
2026
+ }
2027
+ }
2028
+ return msg;
2029
+ };
2030
+
2031
+
2032
+ /**
2033
+ * Serializes the message to binary data (in protobuf wire format).
2034
+ * @return {!Uint8Array}
2035
+ */
2036
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.serializeBinary = function() {
2037
+ var writer = new jspb.BinaryWriter();
2038
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.serializeBinaryToWriter(this, writer);
2039
+ return writer.getResultBuffer();
2040
+ };
2041
+
2042
+
2043
+ /**
2044
+ * Serializes the given message to binary data (in protobuf wire
2045
+ * format), writing to the given BinaryWriter.
2046
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillResult} message
2047
+ * @param {!jspb.BinaryWriter} writer
2048
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2049
+ */
2050
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.serializeBinaryToWriter = function(message, writer) {
2051
+ var f = undefined;
2052
+ f = message.getAgentbillid();
2053
+ if (f !== 0) {
2054
+ writer.writeInt64(
2055
+ 1,
2056
+ f
2057
+ );
2058
+ }
2059
+ f = message.getBillid();
2060
+ if (f !== 0) {
2061
+ writer.writeInt64(
2062
+ 2,
2063
+ f
2064
+ );
2065
+ }
2066
+ f = message.getWassuccessfullyarchived();
2067
+ if (f) {
2068
+ writer.writeBool(
2069
+ 3,
2070
+ f
2071
+ );
2072
+ }
2073
+ f = message.getMessage();
2074
+ if (f.length > 0) {
2075
+ writer.writeString(
2076
+ 4,
2077
+ f
2078
+ );
2079
+ }
2080
+ };
2081
+
2082
+
2083
+ /**
2084
+ * optional int64 agentBillId = 1;
2085
+ * @return {number}
2086
+ */
2087
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.getAgentbillid = function() {
2088
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2089
+ };
2090
+
2091
+
2092
+ /**
2093
+ * @param {number} value
2094
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillResult} returns this
2095
+ */
2096
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.setAgentbillid = function(value) {
2097
+ return jspb.Message.setProto3IntField(this, 1, value);
2098
+ };
2099
+
2100
+
2101
+ /**
2102
+ * optional int64 billId = 2;
2103
+ * @return {number}
2104
+ */
2105
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.getBillid = function() {
2106
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2107
+ };
2108
+
2109
+
2110
+ /**
2111
+ * @param {number} value
2112
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillResult} returns this
2113
+ */
2114
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.setBillid = function(value) {
2115
+ return jspb.Message.setProto3IntField(this, 2, value);
2116
+ };
2117
+
2118
+
2119
+ /**
2120
+ * optional bool wasSuccessfullyArchived = 3;
2121
+ * @return {boolean}
2122
+ */
2123
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.getWassuccessfullyarchived = function() {
2124
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2125
+ };
2126
+
2127
+
2128
+ /**
2129
+ * @param {boolean} value
2130
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillResult} returns this
2131
+ */
2132
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.setWassuccessfullyarchived = function(value) {
2133
+ return jspb.Message.setProto3BooleanField(this, 3, value);
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * optional string message = 4;
2139
+ * @return {string}
2140
+ */
2141
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.getMessage = function() {
2142
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * @param {string} value
2148
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillResult} returns this
2149
+ */
2150
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.prototype.setMessage = function(value) {
2151
+ return jspb.Message.setProto3StringField(this, 4, value);
2152
+ };
2153
+
2154
+
2155
+
2156
+ /**
2157
+ * List of repeated fields within this message type.
2158
+ * @private {!Array<number>}
2159
+ * @const
2160
+ */
2161
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.repeatedFields_ = [1];
2162
+
2163
+
2164
+
2165
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2166
+ /**
2167
+ * Creates an object representation of this proto.
2168
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2169
+ * Optional fields that are not set will be set to undefined.
2170
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2171
+ * For the list of reserved names please see:
2172
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2173
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2174
+ * JSPB instance for transitional soy proto support:
2175
+ * http://goto/soy-param-migration
2176
+ * @return {!Object}
2177
+ */
2178
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.prototype.toObject = function(opt_includeInstance) {
2179
+ return proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.toObject(opt_includeInstance, this);
2180
+ };
2181
+
2182
+
2183
+ /**
2184
+ * Static version of the {@see toObject} method.
2185
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2186
+ * the JSPB instance for transitional soy proto support:
2187
+ * http://goto/soy-param-migration
2188
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest} msg The msg instance to transform.
2189
+ * @return {!Object}
2190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2191
+ */
2192
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.toObject = function(includeInstance, msg) {
2193
+ var f, obj = {
2194
+ agentbillidsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2195
+ };
2196
+
2197
+ if (includeInstance) {
2198
+ obj.$jspbMessageInstance = msg;
2199
+ }
2200
+ return obj;
2201
+ };
2202
+ }
2203
+
2204
+
2205
+ /**
2206
+ * Deserializes binary data (in protobuf wire format).
2207
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2208
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest}
2209
+ */
2210
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.deserializeBinary = function(bytes) {
2211
+ var reader = new jspb.BinaryReader(bytes);
2212
+ var msg = new proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest;
2213
+ return proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.deserializeBinaryFromReader(msg, reader);
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * Deserializes binary data (in protobuf wire format) from the
2219
+ * given reader into the given message object.
2220
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest} msg The message object to deserialize into.
2221
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2222
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest}
2223
+ */
2224
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
2225
+ while (reader.nextField()) {
2226
+ if (reader.isEndGroup()) {
2227
+ break;
2228
+ }
2229
+ var field = reader.getFieldNumber();
2230
+ switch (field) {
2231
+ case 1:
2232
+ var value = /** @type {!Array<number>} */ (reader.readPackedInt64());
2233
+ msg.setAgentbillidsList(value);
2234
+ break;
2235
+ default:
2236
+ reader.skipField();
2237
+ break;
2238
+ }
2239
+ }
2240
+ return msg;
2241
+ };
2242
+
2243
+
2244
+ /**
2245
+ * Serializes the message to binary data (in protobuf wire format).
2246
+ * @return {!Uint8Array}
2247
+ */
2248
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.prototype.serializeBinary = function() {
2249
+ var writer = new jspb.BinaryWriter();
2250
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.serializeBinaryToWriter(this, writer);
2251
+ return writer.getResultBuffer();
2252
+ };
2253
+
2254
+
2255
+ /**
2256
+ * Serializes the given message to binary data (in protobuf wire
2257
+ * format), writing to the given BinaryWriter.
2258
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest} message
2259
+ * @param {!jspb.BinaryWriter} writer
2260
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2261
+ */
2262
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.serializeBinaryToWriter = function(message, writer) {
2263
+ var f = undefined;
2264
+ f = message.getAgentbillidsList();
2265
+ if (f.length > 0) {
2266
+ writer.writePackedInt64(
2267
+ 1,
2268
+ f
2269
+ );
2270
+ }
2271
+ };
2272
+
2273
+
2274
+ /**
2275
+ * repeated int64 agentBillIds = 1;
2276
+ * @return {!Array<number>}
2277
+ */
2278
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.prototype.getAgentbillidsList = function() {
2279
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
2280
+ };
2281
+
2282
+
2283
+ /**
2284
+ * @param {!Array<number>} value
2285
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest} returns this
2286
+ */
2287
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.prototype.setAgentbillidsList = function(value) {
2288
+ return jspb.Message.setField(this, 1, value || []);
2289
+ };
2290
+
2291
+
2292
+ /**
2293
+ * @param {number} value
2294
+ * @param {number=} opt_index
2295
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest} returns this
2296
+ */
2297
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.prototype.addAgentbillids = function(value, opt_index) {
2298
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2299
+ };
2300
+
2301
+
2302
+ /**
2303
+ * Clears the list making it empty but non-null.
2304
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest} returns this
2305
+ */
2306
+ proto.agentbillingserviceapi.ArchiveAgentBillsByAgentBillIdsRequest.prototype.clearAgentbillidsList = function() {
2307
+ return this.setAgentbillidsList([]);
2308
+ };
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2315
+ /**
2316
+ * Creates an object representation of this proto.
2317
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2318
+ * Optional fields that are not set will be set to undefined.
2319
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2320
+ * For the list of reserved names please see:
2321
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2322
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2323
+ * JSPB instance for transitional soy proto support:
2324
+ * http://goto/soy-param-migration
2325
+ * @return {!Object}
2326
+ */
2327
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.prototype.toObject = function(opt_includeInstance) {
2328
+ return proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.toObject(opt_includeInstance, this);
2329
+ };
2330
+
2331
+
2332
+ /**
2333
+ * Static version of the {@see toObject} method.
2334
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2335
+ * the JSPB instance for transitional soy proto support:
2336
+ * http://goto/soy-param-migration
2337
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest} msg The msg instance to transform.
2338
+ * @return {!Object}
2339
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2340
+ */
2341
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.toObject = function(includeInstance, msg) {
2342
+ var f, obj = {
2343
+ deliverybatchid: jspb.Message.getFieldWithDefault(msg, 1, 0)
2344
+ };
2345
+
2346
+ if (includeInstance) {
2347
+ obj.$jspbMessageInstance = msg;
2348
+ }
2349
+ return obj;
2350
+ };
2351
+ }
2352
+
2353
+
2354
+ /**
2355
+ * Deserializes binary data (in protobuf wire format).
2356
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2357
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest}
2358
+ */
2359
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.deserializeBinary = function(bytes) {
2360
+ var reader = new jspb.BinaryReader(bytes);
2361
+ var msg = new proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest;
2362
+ return proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.deserializeBinaryFromReader(msg, reader);
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * Deserializes binary data (in protobuf wire format) from the
2368
+ * given reader into the given message object.
2369
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest} msg The message object to deserialize into.
2370
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2371
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest}
2372
+ */
2373
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2374
+ while (reader.nextField()) {
2375
+ if (reader.isEndGroup()) {
2376
+ break;
2377
+ }
2378
+ var field = reader.getFieldNumber();
2379
+ switch (field) {
2380
+ case 1:
2381
+ var value = /** @type {number} */ (reader.readInt64());
2382
+ msg.setDeliverybatchid(value);
2383
+ break;
2384
+ default:
2385
+ reader.skipField();
2386
+ break;
2387
+ }
2388
+ }
2389
+ return msg;
2390
+ };
2391
+
2392
+
2393
+ /**
2394
+ * Serializes the message to binary data (in protobuf wire format).
2395
+ * @return {!Uint8Array}
2396
+ */
2397
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.prototype.serializeBinary = function() {
2398
+ var writer = new jspb.BinaryWriter();
2399
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.serializeBinaryToWriter(this, writer);
2400
+ return writer.getResultBuffer();
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * Serializes the given message to binary data (in protobuf wire
2406
+ * format), writing to the given BinaryWriter.
2407
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest} message
2408
+ * @param {!jspb.BinaryWriter} writer
2409
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2410
+ */
2411
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.serializeBinaryToWriter = function(message, writer) {
2412
+ var f = undefined;
2413
+ f = message.getDeliverybatchid();
2414
+ if (f !== 0) {
2415
+ writer.writeInt64(
2416
+ 1,
2417
+ f
2418
+ );
2419
+ }
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * optional int64 deliveryBatchId = 1;
2425
+ * @return {number}
2426
+ */
2427
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.prototype.getDeliverybatchid = function() {
2428
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2429
+ };
2430
+
2431
+
2432
+ /**
2433
+ * @param {number} value
2434
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest} returns this
2435
+ */
2436
+ proto.agentbillingserviceapi.ArchiveAgentBillsByDeliveryBatchIdRequest.prototype.setDeliverybatchid = function(value) {
2437
+ return jspb.Message.setProto3IntField(this, 1, value);
2438
+ };
2439
+
2440
+
2441
+
2442
+ /**
2443
+ * List of repeated fields within this message type.
2444
+ * @private {!Array<number>}
2445
+ * @const
2446
+ */
2447
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.repeatedFields_ = [4];
2448
+
2449
+
2450
+
2451
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2452
+ /**
2453
+ * Creates an object representation of this proto.
2454
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2455
+ * Optional fields that are not set will be set to undefined.
2456
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2457
+ * For the list of reserved names please see:
2458
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2459
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2460
+ * JSPB instance for transitional soy proto support:
2461
+ * http://goto/soy-param-migration
2462
+ * @return {!Object}
2463
+ */
2464
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.toObject = function(opt_includeInstance) {
2465
+ return proto.agentbillingserviceapi.ArchiveAgentBillsResponse.toObject(opt_includeInstance, this);
2466
+ };
2467
+
2468
+
2469
+ /**
2470
+ * Static version of the {@see toObject} method.
2471
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2472
+ * the JSPB instance for transitional soy proto support:
2473
+ * http://goto/soy-param-migration
2474
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} msg The msg instance to transform.
2475
+ * @return {!Object}
2476
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2477
+ */
2478
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.toObject = function(includeInstance, msg) {
2479
+ var f, obj = {
2480
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2481
+ archivedcount: jspb.Message.getFieldWithDefault(msg, 2, 0),
2482
+ notarchivedcount: jspb.Message.getFieldWithDefault(msg, 3, 0),
2483
+ archiveagentbillsresultsList: jspb.Message.toObjectList(msg.getArchiveagentbillsresultsList(),
2484
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.toObject, includeInstance)
2485
+ };
2486
+
2487
+ if (includeInstance) {
2488
+ obj.$jspbMessageInstance = msg;
2489
+ }
2490
+ return obj;
2491
+ };
2492
+ }
2493
+
2494
+
2495
+ /**
2496
+ * Deserializes binary data (in protobuf wire format).
2497
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2498
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse}
2499
+ */
2500
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.deserializeBinary = function(bytes) {
2501
+ var reader = new jspb.BinaryReader(bytes);
2502
+ var msg = new proto.agentbillingserviceapi.ArchiveAgentBillsResponse;
2503
+ return proto.agentbillingserviceapi.ArchiveAgentBillsResponse.deserializeBinaryFromReader(msg, reader);
2504
+ };
2505
+
2506
+
2507
+ /**
2508
+ * Deserializes binary data (in protobuf wire format) from the
2509
+ * given reader into the given message object.
2510
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} msg The message object to deserialize into.
2511
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2512
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse}
2513
+ */
2514
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.deserializeBinaryFromReader = function(msg, reader) {
2515
+ while (reader.nextField()) {
2516
+ if (reader.isEndGroup()) {
2517
+ break;
2518
+ }
2519
+ var field = reader.getFieldNumber();
2520
+ switch (field) {
2521
+ case 1:
2522
+ var value = new proto.agentbillingserviceapi.ResponseCode;
2523
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
2524
+ msg.setResponsecode(value);
2525
+ break;
2526
+ case 2:
2527
+ var value = /** @type {number} */ (reader.readInt32());
2528
+ msg.setArchivedcount(value);
2529
+ break;
2530
+ case 3:
2531
+ var value = /** @type {number} */ (reader.readInt32());
2532
+ msg.setNotarchivedcount(value);
2533
+ break;
2534
+ case 4:
2535
+ var value = new proto.agentbillingserviceapi.ArchiveAgentBillResult;
2536
+ reader.readMessage(value,proto.agentbillingserviceapi.ArchiveAgentBillResult.deserializeBinaryFromReader);
2537
+ msg.addArchiveagentbillsresults(value);
2538
+ break;
2539
+ default:
2540
+ reader.skipField();
2541
+ break;
2542
+ }
2543
+ }
2544
+ return msg;
2545
+ };
2546
+
2547
+
2548
+ /**
2549
+ * Serializes the message to binary data (in protobuf wire format).
2550
+ * @return {!Uint8Array}
2551
+ */
2552
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.serializeBinary = function() {
2553
+ var writer = new jspb.BinaryWriter();
2554
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.serializeBinaryToWriter(this, writer);
2555
+ return writer.getResultBuffer();
2556
+ };
2557
+
2558
+
2559
+ /**
2560
+ * Serializes the given message to binary data (in protobuf wire
2561
+ * format), writing to the given BinaryWriter.
2562
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} message
2563
+ * @param {!jspb.BinaryWriter} writer
2564
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2565
+ */
2566
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.serializeBinaryToWriter = function(message, writer) {
2567
+ var f = undefined;
2568
+ f = message.getResponsecode();
2569
+ if (f != null) {
2570
+ writer.writeMessage(
2571
+ 1,
2572
+ f,
2573
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
2574
+ );
2575
+ }
2576
+ f = message.getArchivedcount();
2577
+ if (f !== 0) {
2578
+ writer.writeInt32(
2579
+ 2,
2580
+ f
2581
+ );
2582
+ }
2583
+ f = message.getNotarchivedcount();
2584
+ if (f !== 0) {
2585
+ writer.writeInt32(
2586
+ 3,
2587
+ f
2588
+ );
2589
+ }
2590
+ f = message.getArchiveagentbillsresultsList();
2591
+ if (f.length > 0) {
2592
+ writer.writeRepeatedMessage(
2593
+ 4,
2594
+ f,
2595
+ proto.agentbillingserviceapi.ArchiveAgentBillResult.serializeBinaryToWriter
2596
+ );
2597
+ }
2598
+ };
2599
+
2600
+
2601
+ /**
2602
+ * optional ResponseCode responseCode = 1;
2603
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
2604
+ */
2605
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.getResponsecode = function() {
2606
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
2607
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
2608
+ };
2609
+
2610
+
2611
+ /**
2612
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
2613
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} returns this
2614
+ */
2615
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.setResponsecode = function(value) {
2616
+ return jspb.Message.setWrapperField(this, 1, value);
2617
+ };
2618
+
2619
+
2620
+ /**
2621
+ * Clears the message field making it undefined.
2622
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} returns this
2623
+ */
2624
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.clearResponsecode = function() {
2625
+ return this.setResponsecode(undefined);
2626
+ };
2627
+
2628
+
2629
+ /**
2630
+ * Returns whether this field is set.
2631
+ * @return {boolean}
2632
+ */
2633
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.hasResponsecode = function() {
2634
+ return jspb.Message.getField(this, 1) != null;
2635
+ };
2636
+
2637
+
2638
+ /**
2639
+ * optional int32 archivedCount = 2;
2640
+ * @return {number}
2641
+ */
2642
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.getArchivedcount = function() {
2643
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2644
+ };
2645
+
2646
+
2647
+ /**
2648
+ * @param {number} value
2649
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} returns this
2650
+ */
2651
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.setArchivedcount = function(value) {
2652
+ return jspb.Message.setProto3IntField(this, 2, value);
2653
+ };
2654
+
2655
+
2656
+ /**
2657
+ * optional int32 notArchivedCount = 3;
2658
+ * @return {number}
2659
+ */
2660
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.getNotarchivedcount = function() {
2661
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2662
+ };
2663
+
2664
+
2665
+ /**
2666
+ * @param {number} value
2667
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} returns this
2668
+ */
2669
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.setNotarchivedcount = function(value) {
2670
+ return jspb.Message.setProto3IntField(this, 3, value);
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * repeated ArchiveAgentBillResult archiveAgentBillsResults = 4;
2676
+ * @return {!Array<!proto.agentbillingserviceapi.ArchiveAgentBillResult>}
2677
+ */
2678
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.getArchiveagentbillsresultsList = function() {
2679
+ return /** @type{!Array<!proto.agentbillingserviceapi.ArchiveAgentBillResult>} */ (
2680
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.ArchiveAgentBillResult, 4));
2681
+ };
2682
+
2683
+
2684
+ /**
2685
+ * @param {!Array<!proto.agentbillingserviceapi.ArchiveAgentBillResult>} value
2686
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} returns this
2687
+ */
2688
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.setArchiveagentbillsresultsList = function(value) {
2689
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
2690
+ };
2691
+
2692
+
2693
+ /**
2694
+ * @param {!proto.agentbillingserviceapi.ArchiveAgentBillResult=} opt_value
2695
+ * @param {number=} opt_index
2696
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillResult}
2697
+ */
2698
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.addArchiveagentbillsresults = function(opt_value, opt_index) {
2699
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.agentbillingserviceapi.ArchiveAgentBillResult, opt_index);
2700
+ };
2701
+
2702
+
2703
+ /**
2704
+ * Clears the list making it empty but non-null.
2705
+ * @return {!proto.agentbillingserviceapi.ArchiveAgentBillsResponse} returns this
2706
+ */
2707
+ proto.agentbillingserviceapi.ArchiveAgentBillsResponse.prototype.clearArchiveagentbillsresultsList = function() {
2708
+ return this.setArchiveagentbillsresultsList([]);
2709
+ };
2710
+
2711
+
2712
+
2713
+
2714
+
1850
2715
  if (jspb.Message.GENERATE_TO_OBJECT) {
1851
2716
  /**
1852
2717
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/agent-billing-client-grpcweb-ts",
3
- "version": "23.12.786",
3
+ "version": "23.12.797",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",