@sniipwebmaster/agent-billing-client-grpcweb-ts 23.6.274

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.
@@ -0,0 +1,4079 @@
1
+ // source: service.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
+ * field starts with 'MSG_' and isn't a translatable message.
7
+ * @public
8
+ */
9
+ // GENERATED CODE -- DO NOT EDIT!
10
+
11
+ var jspb = require('google-protobuf');
12
+ var goog = jspb;
13
+ var global = Function('return this')();
14
+
15
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
16
+ goog.object.extend(proto, google_api_annotations_pb);
17
+ goog.exportSymbol('proto.agentbillingserviceapi.Agent', null, global);
18
+ goog.exportSymbol('proto.agentbillingserviceapi.CancelAgentInviteRequest', null, global);
19
+ goog.exportSymbol('proto.agentbillingserviceapi.Client', null, global);
20
+ goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, global);
21
+ goog.exportSymbol('proto.agentbillingserviceapi.DeclineAgentInvitationRequest', null, global);
22
+ goog.exportSymbol('proto.agentbillingserviceapi.DisconnectAgentRequest', null, global);
23
+ goog.exportSymbol('proto.agentbillingserviceapi.DisconnectClientRequest', null, global);
24
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentRequest', null, global);
25
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentResponse', null, global);
26
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentsRequest', null, global);
27
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentsResponse', null, global);
28
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientRequest', null, global);
29
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientResponse', null, global);
30
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientsRequest', null, global);
31
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientsResponse', null, global);
32
+ goog.exportSymbol('proto.agentbillingserviceapi.InviteAgentRequest', null, global);
33
+ goog.exportSymbol('proto.agentbillingserviceapi.ResendAgentInvitationRequest', null, global);
34
+ goog.exportSymbol('proto.agentbillingserviceapi.ResponseCode', null, global);
35
+ /**
36
+ * Generated by JsPbCodeGenerator.
37
+ * @param {Array=} opt_data Optional initial data array, typically from a
38
+ * server response, or constructed directly in Javascript. The array is used
39
+ * in place and becomes part of the constructed object. It is not cloned.
40
+ * If no data is provided, the constructed object will be empty, but still
41
+ * valid.
42
+ * @extends {jspb.Message}
43
+ * @constructor
44
+ */
45
+ proto.agentbillingserviceapi.Agent = function(opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
+ };
48
+ goog.inherits(proto.agentbillingserviceapi.Agent, jspb.Message);
49
+ if (goog.DEBUG && !COMPILED) {
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.agentbillingserviceapi.Agent.displayName = 'proto.agentbillingserviceapi.Agent';
55
+ }
56
+ /**
57
+ * Generated by JsPbCodeGenerator.
58
+ * @param {Array=} opt_data Optional initial data array, typically from a
59
+ * server response, or constructed directly in Javascript. The array is used
60
+ * in place and becomes part of the constructed object. It is not cloned.
61
+ * If no data is provided, the constructed object will be empty, but still
62
+ * valid.
63
+ * @extends {jspb.Message}
64
+ * @constructor
65
+ */
66
+ proto.agentbillingserviceapi.CancelAgentInviteRequest = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
+ };
69
+ goog.inherits(proto.agentbillingserviceapi.CancelAgentInviteRequest, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.displayName = 'proto.agentbillingserviceapi.CancelAgentInviteRequest';
76
+ }
77
+ /**
78
+ * Generated by JsPbCodeGenerator.
79
+ * @param {Array=} opt_data Optional initial data array, typically from a
80
+ * server response, or constructed directly in Javascript. The array is used
81
+ * in place and becomes part of the constructed object. It is not cloned.
82
+ * If no data is provided, the constructed object will be empty, but still
83
+ * valid.
84
+ * @extends {jspb.Message}
85
+ * @constructor
86
+ */
87
+ proto.agentbillingserviceapi.Client = function(opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
+ };
90
+ goog.inherits(proto.agentbillingserviceapi.Client, jspb.Message);
91
+ if (goog.DEBUG && !COMPILED) {
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.agentbillingserviceapi.Client.displayName = 'proto.agentbillingserviceapi.Client';
97
+ }
98
+ /**
99
+ * Generated by JsPbCodeGenerator.
100
+ * @param {Array=} opt_data Optional initial data array, typically from a
101
+ * server response, or constructed directly in Javascript. The array is used
102
+ * in place and becomes part of the constructed object. It is not cloned.
103
+ * If no data is provided, the constructed object will be empty, but still
104
+ * valid.
105
+ * @extends {jspb.Message}
106
+ * @constructor
107
+ */
108
+ proto.agentbillingserviceapi.ConnectAgentRequest = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
+ };
111
+ goog.inherits(proto.agentbillingserviceapi.ConnectAgentRequest, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.agentbillingserviceapi.ConnectAgentRequest.displayName = 'proto.agentbillingserviceapi.ConnectAgentRequest';
118
+ }
119
+ /**
120
+ * Generated by JsPbCodeGenerator.
121
+ * @param {Array=} opt_data Optional initial data array, typically from a
122
+ * server response, or constructed directly in Javascript. The array is used
123
+ * in place and becomes part of the constructed object. It is not cloned.
124
+ * If no data is provided, the constructed object will be empty, but still
125
+ * valid.
126
+ * @extends {jspb.Message}
127
+ * @constructor
128
+ */
129
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest = function(opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
+ };
132
+ goog.inherits(proto.agentbillingserviceapi.DeclineAgentInvitationRequest, jspb.Message);
133
+ if (goog.DEBUG && !COMPILED) {
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.displayName = 'proto.agentbillingserviceapi.DeclineAgentInvitationRequest';
139
+ }
140
+ /**
141
+ * Generated by JsPbCodeGenerator.
142
+ * @param {Array=} opt_data Optional initial data array, typically from a
143
+ * server response, or constructed directly in Javascript. The array is used
144
+ * in place and becomes part of the constructed object. It is not cloned.
145
+ * If no data is provided, the constructed object will be empty, but still
146
+ * valid.
147
+ * @extends {jspb.Message}
148
+ * @constructor
149
+ */
150
+ proto.agentbillingserviceapi.DisconnectAgentRequest = function(opt_data) {
151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
+ };
153
+ goog.inherits(proto.agentbillingserviceapi.DisconnectAgentRequest, jspb.Message);
154
+ if (goog.DEBUG && !COMPILED) {
155
+ /**
156
+ * @public
157
+ * @override
158
+ */
159
+ proto.agentbillingserviceapi.DisconnectAgentRequest.displayName = 'proto.agentbillingserviceapi.DisconnectAgentRequest';
160
+ }
161
+ /**
162
+ * Generated by JsPbCodeGenerator.
163
+ * @param {Array=} opt_data Optional initial data array, typically from a
164
+ * server response, or constructed directly in Javascript. The array is used
165
+ * in place and becomes part of the constructed object. It is not cloned.
166
+ * If no data is provided, the constructed object will be empty, but still
167
+ * valid.
168
+ * @extends {jspb.Message}
169
+ * @constructor
170
+ */
171
+ proto.agentbillingserviceapi.DisconnectClientRequest = function(opt_data) {
172
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
+ };
174
+ goog.inherits(proto.agentbillingserviceapi.DisconnectClientRequest, jspb.Message);
175
+ if (goog.DEBUG && !COMPILED) {
176
+ /**
177
+ * @public
178
+ * @override
179
+ */
180
+ proto.agentbillingserviceapi.DisconnectClientRequest.displayName = 'proto.agentbillingserviceapi.DisconnectClientRequest';
181
+ }
182
+ /**
183
+ * Generated by JsPbCodeGenerator.
184
+ * @param {Array=} opt_data Optional initial data array, typically from a
185
+ * server response, or constructed directly in Javascript. The array is used
186
+ * in place and becomes part of the constructed object. It is not cloned.
187
+ * If no data is provided, the constructed object will be empty, but still
188
+ * valid.
189
+ * @extends {jspb.Message}
190
+ * @constructor
191
+ */
192
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest = function(opt_data) {
193
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
194
+ };
195
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentRequest, jspb.Message);
196
+ if (goog.DEBUG && !COMPILED) {
197
+ /**
198
+ * @public
199
+ * @override
200
+ */
201
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentRequest';
202
+ }
203
+ /**
204
+ * Generated by JsPbCodeGenerator.
205
+ * @param {Array=} opt_data Optional initial data array, typically from a
206
+ * server response, or constructed directly in Javascript. The array is used
207
+ * in place and becomes part of the constructed object. It is not cloned.
208
+ * If no data is provided, the constructed object will be empty, but still
209
+ * valid.
210
+ * @extends {jspb.Message}
211
+ * @constructor
212
+ */
213
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse = function(opt_data) {
214
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
215
+ };
216
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentResponse, jspb.Message);
217
+ if (goog.DEBUG && !COMPILED) {
218
+ /**
219
+ * @public
220
+ * @override
221
+ */
222
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentResponse';
223
+ }
224
+ /**
225
+ * Generated by JsPbCodeGenerator.
226
+ * @param {Array=} opt_data Optional initial data array, typically from a
227
+ * server response, or constructed directly in Javascript. The array is used
228
+ * in place and becomes part of the constructed object. It is not cloned.
229
+ * If no data is provided, the constructed object will be empty, but still
230
+ * valid.
231
+ * @extends {jspb.Message}
232
+ * @constructor
233
+ */
234
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest = function(opt_data) {
235
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
236
+ };
237
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentsRequest, jspb.Message);
238
+ if (goog.DEBUG && !COMPILED) {
239
+ /**
240
+ * @public
241
+ * @override
242
+ */
243
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentsRequest';
244
+ }
245
+ /**
246
+ * Generated by JsPbCodeGenerator.
247
+ * @param {Array=} opt_data Optional initial data array, typically from a
248
+ * server response, or constructed directly in Javascript. The array is used
249
+ * in place and becomes part of the constructed object. It is not cloned.
250
+ * If no data is provided, the constructed object will be empty, but still
251
+ * valid.
252
+ * @extends {jspb.Message}
253
+ * @constructor
254
+ */
255
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse = function(opt_data) {
256
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.GetAssociatedAgentsResponse.repeatedFields_, null);
257
+ };
258
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentsResponse, jspb.Message);
259
+ if (goog.DEBUG && !COMPILED) {
260
+ /**
261
+ * @public
262
+ * @override
263
+ */
264
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentsResponse';
265
+ }
266
+ /**
267
+ * Generated by JsPbCodeGenerator.
268
+ * @param {Array=} opt_data Optional initial data array, typically from a
269
+ * server response, or constructed directly in Javascript. The array is used
270
+ * in place and becomes part of the constructed object. It is not cloned.
271
+ * If no data is provided, the constructed object will be empty, but still
272
+ * valid.
273
+ * @extends {jspb.Message}
274
+ * @constructor
275
+ */
276
+ proto.agentbillingserviceapi.GetAssociatedClientRequest = function(opt_data) {
277
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
278
+ };
279
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedClientRequest, jspb.Message);
280
+ if (goog.DEBUG && !COMPILED) {
281
+ /**
282
+ * @public
283
+ * @override
284
+ */
285
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.displayName = 'proto.agentbillingserviceapi.GetAssociatedClientRequest';
286
+ }
287
+ /**
288
+ * Generated by JsPbCodeGenerator.
289
+ * @param {Array=} opt_data Optional initial data array, typically from a
290
+ * server response, or constructed directly in Javascript. The array is used
291
+ * in place and becomes part of the constructed object. It is not cloned.
292
+ * If no data is provided, the constructed object will be empty, but still
293
+ * valid.
294
+ * @extends {jspb.Message}
295
+ * @constructor
296
+ */
297
+ proto.agentbillingserviceapi.GetAssociatedClientResponse = function(opt_data) {
298
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
299
+ };
300
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedClientResponse, jspb.Message);
301
+ if (goog.DEBUG && !COMPILED) {
302
+ /**
303
+ * @public
304
+ * @override
305
+ */
306
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedClientResponse';
307
+ }
308
+ /**
309
+ * Generated by JsPbCodeGenerator.
310
+ * @param {Array=} opt_data Optional initial data array, typically from a
311
+ * server response, or constructed directly in Javascript. The array is used
312
+ * in place and becomes part of the constructed object. It is not cloned.
313
+ * If no data is provided, the constructed object will be empty, but still
314
+ * valid.
315
+ * @extends {jspb.Message}
316
+ * @constructor
317
+ */
318
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest = function(opt_data) {
319
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
320
+ };
321
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedClientsRequest, jspb.Message);
322
+ if (goog.DEBUG && !COMPILED) {
323
+ /**
324
+ * @public
325
+ * @override
326
+ */
327
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.displayName = 'proto.agentbillingserviceapi.GetAssociatedClientsRequest';
328
+ }
329
+ /**
330
+ * Generated by JsPbCodeGenerator.
331
+ * @param {Array=} opt_data Optional initial data array, typically from a
332
+ * server response, or constructed directly in Javascript. The array is used
333
+ * in place and becomes part of the constructed object. It is not cloned.
334
+ * If no data is provided, the constructed object will be empty, but still
335
+ * valid.
336
+ * @extends {jspb.Message}
337
+ * @constructor
338
+ */
339
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse = function(opt_data) {
340
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.GetAssociatedClientsResponse.repeatedFields_, null);
341
+ };
342
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedClientsResponse, jspb.Message);
343
+ if (goog.DEBUG && !COMPILED) {
344
+ /**
345
+ * @public
346
+ * @override
347
+ */
348
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedClientsResponse';
349
+ }
350
+ /**
351
+ * Generated by JsPbCodeGenerator.
352
+ * @param {Array=} opt_data Optional initial data array, typically from a
353
+ * server response, or constructed directly in Javascript. The array is used
354
+ * in place and becomes part of the constructed object. It is not cloned.
355
+ * If no data is provided, the constructed object will be empty, but still
356
+ * valid.
357
+ * @extends {jspb.Message}
358
+ * @constructor
359
+ */
360
+ proto.agentbillingserviceapi.InviteAgentRequest = function(opt_data) {
361
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
362
+ };
363
+ goog.inherits(proto.agentbillingserviceapi.InviteAgentRequest, jspb.Message);
364
+ if (goog.DEBUG && !COMPILED) {
365
+ /**
366
+ * @public
367
+ * @override
368
+ */
369
+ proto.agentbillingserviceapi.InviteAgentRequest.displayName = 'proto.agentbillingserviceapi.InviteAgentRequest';
370
+ }
371
+ /**
372
+ * Generated by JsPbCodeGenerator.
373
+ * @param {Array=} opt_data Optional initial data array, typically from a
374
+ * server response, or constructed directly in Javascript. The array is used
375
+ * in place and becomes part of the constructed object. It is not cloned.
376
+ * If no data is provided, the constructed object will be empty, but still
377
+ * valid.
378
+ * @extends {jspb.Message}
379
+ * @constructor
380
+ */
381
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest = function(opt_data) {
382
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
383
+ };
384
+ goog.inherits(proto.agentbillingserviceapi.ResendAgentInvitationRequest, jspb.Message);
385
+ if (goog.DEBUG && !COMPILED) {
386
+ /**
387
+ * @public
388
+ * @override
389
+ */
390
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.displayName = 'proto.agentbillingserviceapi.ResendAgentInvitationRequest';
391
+ }
392
+ /**
393
+ * Generated by JsPbCodeGenerator.
394
+ * @param {Array=} opt_data Optional initial data array, typically from a
395
+ * server response, or constructed directly in Javascript. The array is used
396
+ * in place and becomes part of the constructed object. It is not cloned.
397
+ * If no data is provided, the constructed object will be empty, but still
398
+ * valid.
399
+ * @extends {jspb.Message}
400
+ * @constructor
401
+ */
402
+ proto.agentbillingserviceapi.ResponseCode = function(opt_data) {
403
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
404
+ };
405
+ goog.inherits(proto.agentbillingserviceapi.ResponseCode, jspb.Message);
406
+ if (goog.DEBUG && !COMPILED) {
407
+ /**
408
+ * @public
409
+ * @override
410
+ */
411
+ proto.agentbillingserviceapi.ResponseCode.displayName = 'proto.agentbillingserviceapi.ResponseCode';
412
+ }
413
+
414
+
415
+
416
+ if (jspb.Message.GENERATE_TO_OBJECT) {
417
+ /**
418
+ * Creates an object representation of this proto.
419
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
420
+ * Optional fields that are not set will be set to undefined.
421
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
422
+ * For the list of reserved names please see:
423
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
424
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
425
+ * JSPB instance for transitional soy proto support:
426
+ * http://goto/soy-param-migration
427
+ * @return {!Object}
428
+ */
429
+ proto.agentbillingserviceapi.Agent.prototype.toObject = function(opt_includeInstance) {
430
+ return proto.agentbillingserviceapi.Agent.toObject(opt_includeInstance, this);
431
+ };
432
+
433
+
434
+ /**
435
+ * Static version of the {@see toObject} method.
436
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
437
+ * the JSPB instance for transitional soy proto support:
438
+ * http://goto/soy-param-migration
439
+ * @param {!proto.agentbillingserviceapi.Agent} msg The msg instance to transform.
440
+ * @return {!Object}
441
+ * @suppress {unusedLocalVariables} f is only used for nested messages
442
+ */
443
+ proto.agentbillingserviceapi.Agent.toObject = function(includeInstance, msg) {
444
+ var f, obj = {
445
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
446
+ connectionstatus: jspb.Message.getFieldWithDefault(msg, 2, ""),
447
+ email: jspb.Message.getFieldWithDefault(msg, 3, ""),
448
+ phone: jspb.Message.getFieldWithDefault(msg, 4, ""),
449
+ firstname: jspb.Message.getFieldWithDefault(msg, 5, ""),
450
+ lastname: jspb.Message.getFieldWithDefault(msg, 6, ""),
451
+ imageurl: jspb.Message.getFieldWithDefault(msg, 7, ""),
452
+ iscustomimage: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
453
+ };
454
+
455
+ if (includeInstance) {
456
+ obj.$jspbMessageInstance = msg;
457
+ }
458
+ return obj;
459
+ };
460
+ }
461
+
462
+
463
+ /**
464
+ * Deserializes binary data (in protobuf wire format).
465
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
466
+ * @return {!proto.agentbillingserviceapi.Agent}
467
+ */
468
+ proto.agentbillingserviceapi.Agent.deserializeBinary = function(bytes) {
469
+ var reader = new jspb.BinaryReader(bytes);
470
+ var msg = new proto.agentbillingserviceapi.Agent;
471
+ return proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader(msg, reader);
472
+ };
473
+
474
+
475
+ /**
476
+ * Deserializes binary data (in protobuf wire format) from the
477
+ * given reader into the given message object.
478
+ * @param {!proto.agentbillingserviceapi.Agent} msg The message object to deserialize into.
479
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
480
+ * @return {!proto.agentbillingserviceapi.Agent}
481
+ */
482
+ proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader = function(msg, reader) {
483
+ while (reader.nextField()) {
484
+ if (reader.isEndGroup()) {
485
+ break;
486
+ }
487
+ var field = reader.getFieldNumber();
488
+ switch (field) {
489
+ case 1:
490
+ var value = /** @type {number} */ (reader.readInt64());
491
+ msg.setUserid(value);
492
+ break;
493
+ case 2:
494
+ var value = /** @type {string} */ (reader.readString());
495
+ msg.setConnectionstatus(value);
496
+ break;
497
+ case 3:
498
+ var value = /** @type {string} */ (reader.readString());
499
+ msg.setEmail(value);
500
+ break;
501
+ case 4:
502
+ var value = /** @type {string} */ (reader.readString());
503
+ msg.setPhone(value);
504
+ break;
505
+ case 5:
506
+ var value = /** @type {string} */ (reader.readString());
507
+ msg.setFirstname(value);
508
+ break;
509
+ case 6:
510
+ var value = /** @type {string} */ (reader.readString());
511
+ msg.setLastname(value);
512
+ break;
513
+ case 7:
514
+ var value = /** @type {string} */ (reader.readString());
515
+ msg.setImageurl(value);
516
+ break;
517
+ case 8:
518
+ var value = /** @type {boolean} */ (reader.readBool());
519
+ msg.setIscustomimage(value);
520
+ break;
521
+ default:
522
+ reader.skipField();
523
+ break;
524
+ }
525
+ }
526
+ return msg;
527
+ };
528
+
529
+
530
+ /**
531
+ * Serializes the message to binary data (in protobuf wire format).
532
+ * @return {!Uint8Array}
533
+ */
534
+ proto.agentbillingserviceapi.Agent.prototype.serializeBinary = function() {
535
+ var writer = new jspb.BinaryWriter();
536
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter(this, writer);
537
+ return writer.getResultBuffer();
538
+ };
539
+
540
+
541
+ /**
542
+ * Serializes the given message to binary data (in protobuf wire
543
+ * format), writing to the given BinaryWriter.
544
+ * @param {!proto.agentbillingserviceapi.Agent} message
545
+ * @param {!jspb.BinaryWriter} writer
546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
547
+ */
548
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter = function(message, writer) {
549
+ var f = undefined;
550
+ f = message.getUserid();
551
+ if (f !== 0) {
552
+ writer.writeInt64(
553
+ 1,
554
+ f
555
+ );
556
+ }
557
+ f = message.getConnectionstatus();
558
+ if (f.length > 0) {
559
+ writer.writeString(
560
+ 2,
561
+ f
562
+ );
563
+ }
564
+ f = message.getEmail();
565
+ if (f.length > 0) {
566
+ writer.writeString(
567
+ 3,
568
+ f
569
+ );
570
+ }
571
+ f = message.getPhone();
572
+ if (f.length > 0) {
573
+ writer.writeString(
574
+ 4,
575
+ f
576
+ );
577
+ }
578
+ f = message.getFirstname();
579
+ if (f.length > 0) {
580
+ writer.writeString(
581
+ 5,
582
+ f
583
+ );
584
+ }
585
+ f = message.getLastname();
586
+ if (f.length > 0) {
587
+ writer.writeString(
588
+ 6,
589
+ f
590
+ );
591
+ }
592
+ f = message.getImageurl();
593
+ if (f.length > 0) {
594
+ writer.writeString(
595
+ 7,
596
+ f
597
+ );
598
+ }
599
+ f = message.getIscustomimage();
600
+ if (f) {
601
+ writer.writeBool(
602
+ 8,
603
+ f
604
+ );
605
+ }
606
+ };
607
+
608
+
609
+ /**
610
+ * optional int64 userId = 1;
611
+ * @return {number}
612
+ */
613
+ proto.agentbillingserviceapi.Agent.prototype.getUserid = function() {
614
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
615
+ };
616
+
617
+
618
+ /**
619
+ * @param {number} value
620
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
621
+ */
622
+ proto.agentbillingserviceapi.Agent.prototype.setUserid = function(value) {
623
+ return jspb.Message.setProto3IntField(this, 1, value);
624
+ };
625
+
626
+
627
+ /**
628
+ * optional string connectionStatus = 2;
629
+ * @return {string}
630
+ */
631
+ proto.agentbillingserviceapi.Agent.prototype.getConnectionstatus = function() {
632
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
633
+ };
634
+
635
+
636
+ /**
637
+ * @param {string} value
638
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
639
+ */
640
+ proto.agentbillingserviceapi.Agent.prototype.setConnectionstatus = function(value) {
641
+ return jspb.Message.setProto3StringField(this, 2, value);
642
+ };
643
+
644
+
645
+ /**
646
+ * optional string email = 3;
647
+ * @return {string}
648
+ */
649
+ proto.agentbillingserviceapi.Agent.prototype.getEmail = function() {
650
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
651
+ };
652
+
653
+
654
+ /**
655
+ * @param {string} value
656
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
657
+ */
658
+ proto.agentbillingserviceapi.Agent.prototype.setEmail = function(value) {
659
+ return jspb.Message.setProto3StringField(this, 3, value);
660
+ };
661
+
662
+
663
+ /**
664
+ * optional string phone = 4;
665
+ * @return {string}
666
+ */
667
+ proto.agentbillingserviceapi.Agent.prototype.getPhone = function() {
668
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
669
+ };
670
+
671
+
672
+ /**
673
+ * @param {string} value
674
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
675
+ */
676
+ proto.agentbillingserviceapi.Agent.prototype.setPhone = function(value) {
677
+ return jspb.Message.setProto3StringField(this, 4, value);
678
+ };
679
+
680
+
681
+ /**
682
+ * optional string firstName = 5;
683
+ * @return {string}
684
+ */
685
+ proto.agentbillingserviceapi.Agent.prototype.getFirstname = function() {
686
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
687
+ };
688
+
689
+
690
+ /**
691
+ * @param {string} value
692
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
693
+ */
694
+ proto.agentbillingserviceapi.Agent.prototype.setFirstname = function(value) {
695
+ return jspb.Message.setProto3StringField(this, 5, value);
696
+ };
697
+
698
+
699
+ /**
700
+ * optional string lastName = 6;
701
+ * @return {string}
702
+ */
703
+ proto.agentbillingserviceapi.Agent.prototype.getLastname = function() {
704
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
705
+ };
706
+
707
+
708
+ /**
709
+ * @param {string} value
710
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
711
+ */
712
+ proto.agentbillingserviceapi.Agent.prototype.setLastname = function(value) {
713
+ return jspb.Message.setProto3StringField(this, 6, value);
714
+ };
715
+
716
+
717
+ /**
718
+ * optional string imageUrl = 7;
719
+ * @return {string}
720
+ */
721
+ proto.agentbillingserviceapi.Agent.prototype.getImageurl = function() {
722
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
723
+ };
724
+
725
+
726
+ /**
727
+ * @param {string} value
728
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
729
+ */
730
+ proto.agentbillingserviceapi.Agent.prototype.setImageurl = function(value) {
731
+ return jspb.Message.setProto3StringField(this, 7, value);
732
+ };
733
+
734
+
735
+ /**
736
+ * optional bool isCustomImage = 8;
737
+ * @return {boolean}
738
+ */
739
+ proto.agentbillingserviceapi.Agent.prototype.getIscustomimage = function() {
740
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
741
+ };
742
+
743
+
744
+ /**
745
+ * @param {boolean} value
746
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
747
+ */
748
+ proto.agentbillingserviceapi.Agent.prototype.setIscustomimage = function(value) {
749
+ return jspb.Message.setProto3BooleanField(this, 8, value);
750
+ };
751
+
752
+
753
+
754
+
755
+
756
+ if (jspb.Message.GENERATE_TO_OBJECT) {
757
+ /**
758
+ * Creates an object representation of this proto.
759
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
760
+ * Optional fields that are not set will be set to undefined.
761
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
762
+ * For the list of reserved names please see:
763
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
764
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
765
+ * JSPB instance for transitional soy proto support:
766
+ * http://goto/soy-param-migration
767
+ * @return {!Object}
768
+ */
769
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.toObject = function(opt_includeInstance) {
770
+ return proto.agentbillingserviceapi.CancelAgentInviteRequest.toObject(opt_includeInstance, this);
771
+ };
772
+
773
+
774
+ /**
775
+ * Static version of the {@see toObject} method.
776
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
777
+ * the JSPB instance for transitional soy proto support:
778
+ * http://goto/soy-param-migration
779
+ * @param {!proto.agentbillingserviceapi.CancelAgentInviteRequest} msg The msg instance to transform.
780
+ * @return {!Object}
781
+ * @suppress {unusedLocalVariables} f is only used for nested messages
782
+ */
783
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.toObject = function(includeInstance, msg) {
784
+ var f, obj = {
785
+ agentemail: jspb.Message.getFieldWithDefault(msg, 1, "")
786
+ };
787
+
788
+ if (includeInstance) {
789
+ obj.$jspbMessageInstance = msg;
790
+ }
791
+ return obj;
792
+ };
793
+ }
794
+
795
+
796
+ /**
797
+ * Deserializes binary data (in protobuf wire format).
798
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
799
+ * @return {!proto.agentbillingserviceapi.CancelAgentInviteRequest}
800
+ */
801
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.deserializeBinary = function(bytes) {
802
+ var reader = new jspb.BinaryReader(bytes);
803
+ var msg = new proto.agentbillingserviceapi.CancelAgentInviteRequest;
804
+ return proto.agentbillingserviceapi.CancelAgentInviteRequest.deserializeBinaryFromReader(msg, reader);
805
+ };
806
+
807
+
808
+ /**
809
+ * Deserializes binary data (in protobuf wire format) from the
810
+ * given reader into the given message object.
811
+ * @param {!proto.agentbillingserviceapi.CancelAgentInviteRequest} msg The message object to deserialize into.
812
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
813
+ * @return {!proto.agentbillingserviceapi.CancelAgentInviteRequest}
814
+ */
815
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.deserializeBinaryFromReader = function(msg, reader) {
816
+ while (reader.nextField()) {
817
+ if (reader.isEndGroup()) {
818
+ break;
819
+ }
820
+ var field = reader.getFieldNumber();
821
+ switch (field) {
822
+ case 1:
823
+ var value = /** @type {string} */ (reader.readString());
824
+ msg.setAgentemail(value);
825
+ break;
826
+ default:
827
+ reader.skipField();
828
+ break;
829
+ }
830
+ }
831
+ return msg;
832
+ };
833
+
834
+
835
+ /**
836
+ * Serializes the message to binary data (in protobuf wire format).
837
+ * @return {!Uint8Array}
838
+ */
839
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.serializeBinary = function() {
840
+ var writer = new jspb.BinaryWriter();
841
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.serializeBinaryToWriter(this, writer);
842
+ return writer.getResultBuffer();
843
+ };
844
+
845
+
846
+ /**
847
+ * Serializes the given message to binary data (in protobuf wire
848
+ * format), writing to the given BinaryWriter.
849
+ * @param {!proto.agentbillingserviceapi.CancelAgentInviteRequest} message
850
+ * @param {!jspb.BinaryWriter} writer
851
+ * @suppress {unusedLocalVariables} f is only used for nested messages
852
+ */
853
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.serializeBinaryToWriter = function(message, writer) {
854
+ var f = undefined;
855
+ f = message.getAgentemail();
856
+ if (f.length > 0) {
857
+ writer.writeString(
858
+ 1,
859
+ f
860
+ );
861
+ }
862
+ };
863
+
864
+
865
+ /**
866
+ * optional string agentEmail = 1;
867
+ * @return {string}
868
+ */
869
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.getAgentemail = function() {
870
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
871
+ };
872
+
873
+
874
+ /**
875
+ * @param {string} value
876
+ * @return {!proto.agentbillingserviceapi.CancelAgentInviteRequest} returns this
877
+ */
878
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.setAgentemail = function(value) {
879
+ return jspb.Message.setProto3StringField(this, 1, value);
880
+ };
881
+
882
+
883
+
884
+
885
+
886
+ if (jspb.Message.GENERATE_TO_OBJECT) {
887
+ /**
888
+ * Creates an object representation of this proto.
889
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
890
+ * Optional fields that are not set will be set to undefined.
891
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
892
+ * For the list of reserved names please see:
893
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
894
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
895
+ * JSPB instance for transitional soy proto support:
896
+ * http://goto/soy-param-migration
897
+ * @return {!Object}
898
+ */
899
+ proto.agentbillingserviceapi.Client.prototype.toObject = function(opt_includeInstance) {
900
+ return proto.agentbillingserviceapi.Client.toObject(opt_includeInstance, this);
901
+ };
902
+
903
+
904
+ /**
905
+ * Static version of the {@see toObject} method.
906
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
907
+ * the JSPB instance for transitional soy proto support:
908
+ * http://goto/soy-param-migration
909
+ * @param {!proto.agentbillingserviceapi.Client} msg The msg instance to transform.
910
+ * @return {!Object}
911
+ * @suppress {unusedLocalVariables} f is only used for nested messages
912
+ */
913
+ proto.agentbillingserviceapi.Client.toObject = function(includeInstance, msg) {
914
+ var f, obj = {
915
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
916
+ connectionstatus: jspb.Message.getFieldWithDefault(msg, 2, ""),
917
+ email: jspb.Message.getFieldWithDefault(msg, 3, ""),
918
+ phone: jspb.Message.getFieldWithDefault(msg, 4, ""),
919
+ firstname: jspb.Message.getFieldWithDefault(msg, 5, ""),
920
+ lastname: jspb.Message.getFieldWithDefault(msg, 6, ""),
921
+ imageurl: jspb.Message.getFieldWithDefault(msg, 7, ""),
922
+ iscustomimage: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
923
+ abn: jspb.Message.getFieldWithDefault(msg, 9, ""),
924
+ abnentitiyname: jspb.Message.getFieldWithDefault(msg, 10, ""),
925
+ billscount: jspb.Message.getFieldWithDefault(msg, 11, 0),
926
+ billstotalamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0)
927
+ };
928
+
929
+ if (includeInstance) {
930
+ obj.$jspbMessageInstance = msg;
931
+ }
932
+ return obj;
933
+ };
934
+ }
935
+
936
+
937
+ /**
938
+ * Deserializes binary data (in protobuf wire format).
939
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
940
+ * @return {!proto.agentbillingserviceapi.Client}
941
+ */
942
+ proto.agentbillingserviceapi.Client.deserializeBinary = function(bytes) {
943
+ var reader = new jspb.BinaryReader(bytes);
944
+ var msg = new proto.agentbillingserviceapi.Client;
945
+ return proto.agentbillingserviceapi.Client.deserializeBinaryFromReader(msg, reader);
946
+ };
947
+
948
+
949
+ /**
950
+ * Deserializes binary data (in protobuf wire format) from the
951
+ * given reader into the given message object.
952
+ * @param {!proto.agentbillingserviceapi.Client} msg The message object to deserialize into.
953
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
954
+ * @return {!proto.agentbillingserviceapi.Client}
955
+ */
956
+ proto.agentbillingserviceapi.Client.deserializeBinaryFromReader = function(msg, reader) {
957
+ while (reader.nextField()) {
958
+ if (reader.isEndGroup()) {
959
+ break;
960
+ }
961
+ var field = reader.getFieldNumber();
962
+ switch (field) {
963
+ case 1:
964
+ var value = /** @type {number} */ (reader.readInt64());
965
+ msg.setUserid(value);
966
+ break;
967
+ case 2:
968
+ var value = /** @type {string} */ (reader.readString());
969
+ msg.setConnectionstatus(value);
970
+ break;
971
+ case 3:
972
+ var value = /** @type {string} */ (reader.readString());
973
+ msg.setEmail(value);
974
+ break;
975
+ case 4:
976
+ var value = /** @type {string} */ (reader.readString());
977
+ msg.setPhone(value);
978
+ break;
979
+ case 5:
980
+ var value = /** @type {string} */ (reader.readString());
981
+ msg.setFirstname(value);
982
+ break;
983
+ case 6:
984
+ var value = /** @type {string} */ (reader.readString());
985
+ msg.setLastname(value);
986
+ break;
987
+ case 7:
988
+ var value = /** @type {string} */ (reader.readString());
989
+ msg.setImageurl(value);
990
+ break;
991
+ case 8:
992
+ var value = /** @type {boolean} */ (reader.readBool());
993
+ msg.setIscustomimage(value);
994
+ break;
995
+ case 9:
996
+ var value = /** @type {string} */ (reader.readString());
997
+ msg.setAbn(value);
998
+ break;
999
+ case 10:
1000
+ var value = /** @type {string} */ (reader.readString());
1001
+ msg.setAbnentitiyname(value);
1002
+ break;
1003
+ case 11:
1004
+ var value = /** @type {number} */ (reader.readInt32());
1005
+ msg.setBillscount(value);
1006
+ break;
1007
+ case 12:
1008
+ var value = /** @type {number} */ (reader.readDouble());
1009
+ msg.setBillstotalamount(value);
1010
+ break;
1011
+ default:
1012
+ reader.skipField();
1013
+ break;
1014
+ }
1015
+ }
1016
+ return msg;
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * Serializes the message to binary data (in protobuf wire format).
1022
+ * @return {!Uint8Array}
1023
+ */
1024
+ proto.agentbillingserviceapi.Client.prototype.serializeBinary = function() {
1025
+ var writer = new jspb.BinaryWriter();
1026
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter(this, writer);
1027
+ return writer.getResultBuffer();
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * Serializes the given message to binary data (in protobuf wire
1033
+ * format), writing to the given BinaryWriter.
1034
+ * @param {!proto.agentbillingserviceapi.Client} message
1035
+ * @param {!jspb.BinaryWriter} writer
1036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1037
+ */
1038
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter = function(message, writer) {
1039
+ var f = undefined;
1040
+ f = message.getUserid();
1041
+ if (f !== 0) {
1042
+ writer.writeInt64(
1043
+ 1,
1044
+ f
1045
+ );
1046
+ }
1047
+ f = message.getConnectionstatus();
1048
+ if (f.length > 0) {
1049
+ writer.writeString(
1050
+ 2,
1051
+ f
1052
+ );
1053
+ }
1054
+ f = message.getEmail();
1055
+ if (f.length > 0) {
1056
+ writer.writeString(
1057
+ 3,
1058
+ f
1059
+ );
1060
+ }
1061
+ f = message.getPhone();
1062
+ if (f.length > 0) {
1063
+ writer.writeString(
1064
+ 4,
1065
+ f
1066
+ );
1067
+ }
1068
+ f = message.getFirstname();
1069
+ if (f.length > 0) {
1070
+ writer.writeString(
1071
+ 5,
1072
+ f
1073
+ );
1074
+ }
1075
+ f = message.getLastname();
1076
+ if (f.length > 0) {
1077
+ writer.writeString(
1078
+ 6,
1079
+ f
1080
+ );
1081
+ }
1082
+ f = message.getImageurl();
1083
+ if (f.length > 0) {
1084
+ writer.writeString(
1085
+ 7,
1086
+ f
1087
+ );
1088
+ }
1089
+ f = message.getIscustomimage();
1090
+ if (f) {
1091
+ writer.writeBool(
1092
+ 8,
1093
+ f
1094
+ );
1095
+ }
1096
+ f = message.getAbn();
1097
+ if (f.length > 0) {
1098
+ writer.writeString(
1099
+ 9,
1100
+ f
1101
+ );
1102
+ }
1103
+ f = message.getAbnentitiyname();
1104
+ if (f.length > 0) {
1105
+ writer.writeString(
1106
+ 10,
1107
+ f
1108
+ );
1109
+ }
1110
+ f = message.getBillscount();
1111
+ if (f !== 0) {
1112
+ writer.writeInt32(
1113
+ 11,
1114
+ f
1115
+ );
1116
+ }
1117
+ f = message.getBillstotalamount();
1118
+ if (f !== 0.0) {
1119
+ writer.writeDouble(
1120
+ 12,
1121
+ f
1122
+ );
1123
+ }
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * optional int64 userId = 1;
1129
+ * @return {number}
1130
+ */
1131
+ proto.agentbillingserviceapi.Client.prototype.getUserid = function() {
1132
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * @param {number} value
1138
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1139
+ */
1140
+ proto.agentbillingserviceapi.Client.prototype.setUserid = function(value) {
1141
+ return jspb.Message.setProto3IntField(this, 1, value);
1142
+ };
1143
+
1144
+
1145
+ /**
1146
+ * optional string connectionStatus = 2;
1147
+ * @return {string}
1148
+ */
1149
+ proto.agentbillingserviceapi.Client.prototype.getConnectionstatus = function() {
1150
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * @param {string} value
1156
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1157
+ */
1158
+ proto.agentbillingserviceapi.Client.prototype.setConnectionstatus = function(value) {
1159
+ return jspb.Message.setProto3StringField(this, 2, value);
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * optional string email = 3;
1165
+ * @return {string}
1166
+ */
1167
+ proto.agentbillingserviceapi.Client.prototype.getEmail = function() {
1168
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * @param {string} value
1174
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1175
+ */
1176
+ proto.agentbillingserviceapi.Client.prototype.setEmail = function(value) {
1177
+ return jspb.Message.setProto3StringField(this, 3, value);
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * optional string phone = 4;
1183
+ * @return {string}
1184
+ */
1185
+ proto.agentbillingserviceapi.Client.prototype.getPhone = function() {
1186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1187
+ };
1188
+
1189
+
1190
+ /**
1191
+ * @param {string} value
1192
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1193
+ */
1194
+ proto.agentbillingserviceapi.Client.prototype.setPhone = function(value) {
1195
+ return jspb.Message.setProto3StringField(this, 4, value);
1196
+ };
1197
+
1198
+
1199
+ /**
1200
+ * optional string firstName = 5;
1201
+ * @return {string}
1202
+ */
1203
+ proto.agentbillingserviceapi.Client.prototype.getFirstname = function() {
1204
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1205
+ };
1206
+
1207
+
1208
+ /**
1209
+ * @param {string} value
1210
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1211
+ */
1212
+ proto.agentbillingserviceapi.Client.prototype.setFirstname = function(value) {
1213
+ return jspb.Message.setProto3StringField(this, 5, value);
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * optional string lastName = 6;
1219
+ * @return {string}
1220
+ */
1221
+ proto.agentbillingserviceapi.Client.prototype.getLastname = function() {
1222
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * @param {string} value
1228
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1229
+ */
1230
+ proto.agentbillingserviceapi.Client.prototype.setLastname = function(value) {
1231
+ return jspb.Message.setProto3StringField(this, 6, value);
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * optional string imageUrl = 7;
1237
+ * @return {string}
1238
+ */
1239
+ proto.agentbillingserviceapi.Client.prototype.getImageurl = function() {
1240
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * @param {string} value
1246
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1247
+ */
1248
+ proto.agentbillingserviceapi.Client.prototype.setImageurl = function(value) {
1249
+ return jspb.Message.setProto3StringField(this, 7, value);
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * optional bool isCustomImage = 8;
1255
+ * @return {boolean}
1256
+ */
1257
+ proto.agentbillingserviceapi.Client.prototype.getIscustomimage = function() {
1258
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * @param {boolean} value
1264
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1265
+ */
1266
+ proto.agentbillingserviceapi.Client.prototype.setIscustomimage = function(value) {
1267
+ return jspb.Message.setProto3BooleanField(this, 8, value);
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * optional string abn = 9;
1273
+ * @return {string}
1274
+ */
1275
+ proto.agentbillingserviceapi.Client.prototype.getAbn = function() {
1276
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * @param {string} value
1282
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1283
+ */
1284
+ proto.agentbillingserviceapi.Client.prototype.setAbn = function(value) {
1285
+ return jspb.Message.setProto3StringField(this, 9, value);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * optional string abnEntitiyName = 10;
1291
+ * @return {string}
1292
+ */
1293
+ proto.agentbillingserviceapi.Client.prototype.getAbnentitiyname = function() {
1294
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * @param {string} value
1300
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1301
+ */
1302
+ proto.agentbillingserviceapi.Client.prototype.setAbnentitiyname = function(value) {
1303
+ return jspb.Message.setProto3StringField(this, 10, value);
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * optional int32 billsCount = 11;
1309
+ * @return {number}
1310
+ */
1311
+ proto.agentbillingserviceapi.Client.prototype.getBillscount = function() {
1312
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * @param {number} value
1318
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1319
+ */
1320
+ proto.agentbillingserviceapi.Client.prototype.setBillscount = function(value) {
1321
+ return jspb.Message.setProto3IntField(this, 11, value);
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * optional double billsTotalAmount = 12;
1327
+ * @return {number}
1328
+ */
1329
+ proto.agentbillingserviceapi.Client.prototype.getBillstotalamount = function() {
1330
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * @param {number} value
1336
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1337
+ */
1338
+ proto.agentbillingserviceapi.Client.prototype.setBillstotalamount = function(value) {
1339
+ return jspb.Message.setProto3FloatField(this, 12, value);
1340
+ };
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1347
+ /**
1348
+ * Creates an object representation of this proto.
1349
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1350
+ * Optional fields that are not set will be set to undefined.
1351
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1352
+ * For the list of reserved names please see:
1353
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1354
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1355
+ * JSPB instance for transitional soy proto support:
1356
+ * http://goto/soy-param-migration
1357
+ * @return {!Object}
1358
+ */
1359
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.toObject = function(opt_includeInstance) {
1360
+ return proto.agentbillingserviceapi.ConnectAgentRequest.toObject(opt_includeInstance, this);
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * Static version of the {@see toObject} method.
1366
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1367
+ * the JSPB instance for transitional soy proto support:
1368
+ * http://goto/soy-param-migration
1369
+ * @param {!proto.agentbillingserviceapi.ConnectAgentRequest} msg The msg instance to transform.
1370
+ * @return {!Object}
1371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1372
+ */
1373
+ proto.agentbillingserviceapi.ConnectAgentRequest.toObject = function(includeInstance, msg) {
1374
+ var f, obj = {
1375
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 1, 0)
1376
+ };
1377
+
1378
+ if (includeInstance) {
1379
+ obj.$jspbMessageInstance = msg;
1380
+ }
1381
+ return obj;
1382
+ };
1383
+ }
1384
+
1385
+
1386
+ /**
1387
+ * Deserializes binary data (in protobuf wire format).
1388
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1389
+ * @return {!proto.agentbillingserviceapi.ConnectAgentRequest}
1390
+ */
1391
+ proto.agentbillingserviceapi.ConnectAgentRequest.deserializeBinary = function(bytes) {
1392
+ var reader = new jspb.BinaryReader(bytes);
1393
+ var msg = new proto.agentbillingserviceapi.ConnectAgentRequest;
1394
+ return proto.agentbillingserviceapi.ConnectAgentRequest.deserializeBinaryFromReader(msg, reader);
1395
+ };
1396
+
1397
+
1398
+ /**
1399
+ * Deserializes binary data (in protobuf wire format) from the
1400
+ * given reader into the given message object.
1401
+ * @param {!proto.agentbillingserviceapi.ConnectAgentRequest} msg The message object to deserialize into.
1402
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1403
+ * @return {!proto.agentbillingserviceapi.ConnectAgentRequest}
1404
+ */
1405
+ proto.agentbillingserviceapi.ConnectAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
1406
+ while (reader.nextField()) {
1407
+ if (reader.isEndGroup()) {
1408
+ break;
1409
+ }
1410
+ var field = reader.getFieldNumber();
1411
+ switch (field) {
1412
+ case 1:
1413
+ var value = /** @type {number} */ (reader.readInt64());
1414
+ msg.setClientuserid(value);
1415
+ break;
1416
+ default:
1417
+ reader.skipField();
1418
+ break;
1419
+ }
1420
+ }
1421
+ return msg;
1422
+ };
1423
+
1424
+
1425
+ /**
1426
+ * Serializes the message to binary data (in protobuf wire format).
1427
+ * @return {!Uint8Array}
1428
+ */
1429
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.serializeBinary = function() {
1430
+ var writer = new jspb.BinaryWriter();
1431
+ proto.agentbillingserviceapi.ConnectAgentRequest.serializeBinaryToWriter(this, writer);
1432
+ return writer.getResultBuffer();
1433
+ };
1434
+
1435
+
1436
+ /**
1437
+ * Serializes the given message to binary data (in protobuf wire
1438
+ * format), writing to the given BinaryWriter.
1439
+ * @param {!proto.agentbillingserviceapi.ConnectAgentRequest} message
1440
+ * @param {!jspb.BinaryWriter} writer
1441
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1442
+ */
1443
+ proto.agentbillingserviceapi.ConnectAgentRequest.serializeBinaryToWriter = function(message, writer) {
1444
+ var f = undefined;
1445
+ f = message.getClientuserid();
1446
+ if (f !== 0) {
1447
+ writer.writeInt64(
1448
+ 1,
1449
+ f
1450
+ );
1451
+ }
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * optional int64 clientUserId = 1;
1457
+ * @return {number}
1458
+ */
1459
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.getClientuserid = function() {
1460
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * @param {number} value
1466
+ * @return {!proto.agentbillingserviceapi.ConnectAgentRequest} returns this
1467
+ */
1468
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.setClientuserid = function(value) {
1469
+ return jspb.Message.setProto3IntField(this, 1, value);
1470
+ };
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1477
+ /**
1478
+ * Creates an object representation of this proto.
1479
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1480
+ * Optional fields that are not set will be set to undefined.
1481
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1482
+ * For the list of reserved names please see:
1483
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1484
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1485
+ * JSPB instance for transitional soy proto support:
1486
+ * http://goto/soy-param-migration
1487
+ * @return {!Object}
1488
+ */
1489
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.toObject = function(opt_includeInstance) {
1490
+ return proto.agentbillingserviceapi.DeclineAgentInvitationRequest.toObject(opt_includeInstance, this);
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * Static version of the {@see toObject} method.
1496
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1497
+ * the JSPB instance for transitional soy proto support:
1498
+ * http://goto/soy-param-migration
1499
+ * @param {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} msg The msg instance to transform.
1500
+ * @return {!Object}
1501
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1502
+ */
1503
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.toObject = function(includeInstance, msg) {
1504
+ var f, obj = {
1505
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 1, 0)
1506
+ };
1507
+
1508
+ if (includeInstance) {
1509
+ obj.$jspbMessageInstance = msg;
1510
+ }
1511
+ return obj;
1512
+ };
1513
+ }
1514
+
1515
+
1516
+ /**
1517
+ * Deserializes binary data (in protobuf wire format).
1518
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1519
+ * @return {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest}
1520
+ */
1521
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.deserializeBinary = function(bytes) {
1522
+ var reader = new jspb.BinaryReader(bytes);
1523
+ var msg = new proto.agentbillingserviceapi.DeclineAgentInvitationRequest;
1524
+ return proto.agentbillingserviceapi.DeclineAgentInvitationRequest.deserializeBinaryFromReader(msg, reader);
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Deserializes binary data (in protobuf wire format) from the
1530
+ * given reader into the given message object.
1531
+ * @param {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} msg The message object to deserialize into.
1532
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1533
+ * @return {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest}
1534
+ */
1535
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.deserializeBinaryFromReader = function(msg, reader) {
1536
+ while (reader.nextField()) {
1537
+ if (reader.isEndGroup()) {
1538
+ break;
1539
+ }
1540
+ var field = reader.getFieldNumber();
1541
+ switch (field) {
1542
+ case 1:
1543
+ var value = /** @type {number} */ (reader.readInt64());
1544
+ msg.setClientuserid(value);
1545
+ break;
1546
+ default:
1547
+ reader.skipField();
1548
+ break;
1549
+ }
1550
+ }
1551
+ return msg;
1552
+ };
1553
+
1554
+
1555
+ /**
1556
+ * Serializes the message to binary data (in protobuf wire format).
1557
+ * @return {!Uint8Array}
1558
+ */
1559
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.serializeBinary = function() {
1560
+ var writer = new jspb.BinaryWriter();
1561
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.serializeBinaryToWriter(this, writer);
1562
+ return writer.getResultBuffer();
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * Serializes the given message to binary data (in protobuf wire
1568
+ * format), writing to the given BinaryWriter.
1569
+ * @param {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} message
1570
+ * @param {!jspb.BinaryWriter} writer
1571
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1572
+ */
1573
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.serializeBinaryToWriter = function(message, writer) {
1574
+ var f = undefined;
1575
+ f = message.getClientuserid();
1576
+ if (f !== 0) {
1577
+ writer.writeInt64(
1578
+ 1,
1579
+ f
1580
+ );
1581
+ }
1582
+ };
1583
+
1584
+
1585
+ /**
1586
+ * optional int64 clientUserId = 1;
1587
+ * @return {number}
1588
+ */
1589
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.getClientuserid = function() {
1590
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1591
+ };
1592
+
1593
+
1594
+ /**
1595
+ * @param {number} value
1596
+ * @return {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} returns this
1597
+ */
1598
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.setClientuserid = function(value) {
1599
+ return jspb.Message.setProto3IntField(this, 1, value);
1600
+ };
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1607
+ /**
1608
+ * Creates an object representation of this proto.
1609
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1610
+ * Optional fields that are not set will be set to undefined.
1611
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1612
+ * For the list of reserved names please see:
1613
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1614
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1615
+ * JSPB instance for transitional soy proto support:
1616
+ * http://goto/soy-param-migration
1617
+ * @return {!Object}
1618
+ */
1619
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.toObject = function(opt_includeInstance) {
1620
+ return proto.agentbillingserviceapi.DisconnectAgentRequest.toObject(opt_includeInstance, this);
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * Static version of the {@see toObject} method.
1626
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1627
+ * the JSPB instance for transitional soy proto support:
1628
+ * http://goto/soy-param-migration
1629
+ * @param {!proto.agentbillingserviceapi.DisconnectAgentRequest} msg The msg instance to transform.
1630
+ * @return {!Object}
1631
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1632
+ */
1633
+ proto.agentbillingserviceapi.DisconnectAgentRequest.toObject = function(includeInstance, msg) {
1634
+ var f, obj = {
1635
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 1, 0)
1636
+ };
1637
+
1638
+ if (includeInstance) {
1639
+ obj.$jspbMessageInstance = msg;
1640
+ }
1641
+ return obj;
1642
+ };
1643
+ }
1644
+
1645
+
1646
+ /**
1647
+ * Deserializes binary data (in protobuf wire format).
1648
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1649
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest}
1650
+ */
1651
+ proto.agentbillingserviceapi.DisconnectAgentRequest.deserializeBinary = function(bytes) {
1652
+ var reader = new jspb.BinaryReader(bytes);
1653
+ var msg = new proto.agentbillingserviceapi.DisconnectAgentRequest;
1654
+ return proto.agentbillingserviceapi.DisconnectAgentRequest.deserializeBinaryFromReader(msg, reader);
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * Deserializes binary data (in protobuf wire format) from the
1660
+ * given reader into the given message object.
1661
+ * @param {!proto.agentbillingserviceapi.DisconnectAgentRequest} msg The message object to deserialize into.
1662
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1663
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest}
1664
+ */
1665
+ proto.agentbillingserviceapi.DisconnectAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
1666
+ while (reader.nextField()) {
1667
+ if (reader.isEndGroup()) {
1668
+ break;
1669
+ }
1670
+ var field = reader.getFieldNumber();
1671
+ switch (field) {
1672
+ case 1:
1673
+ var value = /** @type {number} */ (reader.readInt64());
1674
+ msg.setAgentuserid(value);
1675
+ break;
1676
+ default:
1677
+ reader.skipField();
1678
+ break;
1679
+ }
1680
+ }
1681
+ return msg;
1682
+ };
1683
+
1684
+
1685
+ /**
1686
+ * Serializes the message to binary data (in protobuf wire format).
1687
+ * @return {!Uint8Array}
1688
+ */
1689
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.serializeBinary = function() {
1690
+ var writer = new jspb.BinaryWriter();
1691
+ proto.agentbillingserviceapi.DisconnectAgentRequest.serializeBinaryToWriter(this, writer);
1692
+ return writer.getResultBuffer();
1693
+ };
1694
+
1695
+
1696
+ /**
1697
+ * Serializes the given message to binary data (in protobuf wire
1698
+ * format), writing to the given BinaryWriter.
1699
+ * @param {!proto.agentbillingserviceapi.DisconnectAgentRequest} message
1700
+ * @param {!jspb.BinaryWriter} writer
1701
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1702
+ */
1703
+ proto.agentbillingserviceapi.DisconnectAgentRequest.serializeBinaryToWriter = function(message, writer) {
1704
+ var f = undefined;
1705
+ f = message.getAgentuserid();
1706
+ if (f !== 0) {
1707
+ writer.writeInt64(
1708
+ 1,
1709
+ f
1710
+ );
1711
+ }
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * optional int64 agentUserId = 1;
1717
+ * @return {number}
1718
+ */
1719
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.getAgentuserid = function() {
1720
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1721
+ };
1722
+
1723
+
1724
+ /**
1725
+ * @param {number} value
1726
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest} returns this
1727
+ */
1728
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.setAgentuserid = function(value) {
1729
+ return jspb.Message.setProto3IntField(this, 1, value);
1730
+ };
1731
+
1732
+
1733
+
1734
+
1735
+
1736
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1737
+ /**
1738
+ * Creates an object representation of this proto.
1739
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1740
+ * Optional fields that are not set will be set to undefined.
1741
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1742
+ * For the list of reserved names please see:
1743
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1744
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1745
+ * JSPB instance for transitional soy proto support:
1746
+ * http://goto/soy-param-migration
1747
+ * @return {!Object}
1748
+ */
1749
+ proto.agentbillingserviceapi.DisconnectClientRequest.prototype.toObject = function(opt_includeInstance) {
1750
+ return proto.agentbillingserviceapi.DisconnectClientRequest.toObject(opt_includeInstance, this);
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * Static version of the {@see toObject} method.
1756
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1757
+ * the JSPB instance for transitional soy proto support:
1758
+ * http://goto/soy-param-migration
1759
+ * @param {!proto.agentbillingserviceapi.DisconnectClientRequest} msg The msg instance to transform.
1760
+ * @return {!Object}
1761
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1762
+ */
1763
+ proto.agentbillingserviceapi.DisconnectClientRequest.toObject = function(includeInstance, msg) {
1764
+ var f, obj = {
1765
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 1, 0)
1766
+ };
1767
+
1768
+ if (includeInstance) {
1769
+ obj.$jspbMessageInstance = msg;
1770
+ }
1771
+ return obj;
1772
+ };
1773
+ }
1774
+
1775
+
1776
+ /**
1777
+ * Deserializes binary data (in protobuf wire format).
1778
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1779
+ * @return {!proto.agentbillingserviceapi.DisconnectClientRequest}
1780
+ */
1781
+ proto.agentbillingserviceapi.DisconnectClientRequest.deserializeBinary = function(bytes) {
1782
+ var reader = new jspb.BinaryReader(bytes);
1783
+ var msg = new proto.agentbillingserviceapi.DisconnectClientRequest;
1784
+ return proto.agentbillingserviceapi.DisconnectClientRequest.deserializeBinaryFromReader(msg, reader);
1785
+ };
1786
+
1787
+
1788
+ /**
1789
+ * Deserializes binary data (in protobuf wire format) from the
1790
+ * given reader into the given message object.
1791
+ * @param {!proto.agentbillingserviceapi.DisconnectClientRequest} msg The message object to deserialize into.
1792
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1793
+ * @return {!proto.agentbillingserviceapi.DisconnectClientRequest}
1794
+ */
1795
+ proto.agentbillingserviceapi.DisconnectClientRequest.deserializeBinaryFromReader = function(msg, reader) {
1796
+ while (reader.nextField()) {
1797
+ if (reader.isEndGroup()) {
1798
+ break;
1799
+ }
1800
+ var field = reader.getFieldNumber();
1801
+ switch (field) {
1802
+ case 1:
1803
+ var value = /** @type {number} */ (reader.readInt64());
1804
+ msg.setClientuserid(value);
1805
+ break;
1806
+ default:
1807
+ reader.skipField();
1808
+ break;
1809
+ }
1810
+ }
1811
+ return msg;
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * Serializes the message to binary data (in protobuf wire format).
1817
+ * @return {!Uint8Array}
1818
+ */
1819
+ proto.agentbillingserviceapi.DisconnectClientRequest.prototype.serializeBinary = function() {
1820
+ var writer = new jspb.BinaryWriter();
1821
+ proto.agentbillingserviceapi.DisconnectClientRequest.serializeBinaryToWriter(this, writer);
1822
+ return writer.getResultBuffer();
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * Serializes the given message to binary data (in protobuf wire
1828
+ * format), writing to the given BinaryWriter.
1829
+ * @param {!proto.agentbillingserviceapi.DisconnectClientRequest} message
1830
+ * @param {!jspb.BinaryWriter} writer
1831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1832
+ */
1833
+ proto.agentbillingserviceapi.DisconnectClientRequest.serializeBinaryToWriter = function(message, writer) {
1834
+ var f = undefined;
1835
+ f = message.getClientuserid();
1836
+ if (f !== 0) {
1837
+ writer.writeInt64(
1838
+ 1,
1839
+ f
1840
+ );
1841
+ }
1842
+ };
1843
+
1844
+
1845
+ /**
1846
+ * optional int64 clientUserId = 1;
1847
+ * @return {number}
1848
+ */
1849
+ proto.agentbillingserviceapi.DisconnectClientRequest.prototype.getClientuserid = function() {
1850
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1851
+ };
1852
+
1853
+
1854
+ /**
1855
+ * @param {number} value
1856
+ * @return {!proto.agentbillingserviceapi.DisconnectClientRequest} returns this
1857
+ */
1858
+ proto.agentbillingserviceapi.DisconnectClientRequest.prototype.setClientuserid = function(value) {
1859
+ return jspb.Message.setProto3IntField(this, 1, value);
1860
+ };
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1867
+ /**
1868
+ * Creates an object representation of this proto.
1869
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1870
+ * Optional fields that are not set will be set to undefined.
1871
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1872
+ * For the list of reserved names please see:
1873
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1874
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1875
+ * JSPB instance for transitional soy proto support:
1876
+ * http://goto/soy-param-migration
1877
+ * @return {!Object}
1878
+ */
1879
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.toObject = function(opt_includeInstance) {
1880
+ return proto.agentbillingserviceapi.GetAssociatedAgentRequest.toObject(opt_includeInstance, this);
1881
+ };
1882
+
1883
+
1884
+ /**
1885
+ * Static version of the {@see toObject} method.
1886
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1887
+ * the JSPB instance for transitional soy proto support:
1888
+ * http://goto/soy-param-migration
1889
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} msg The msg instance to transform.
1890
+ * @return {!Object}
1891
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1892
+ */
1893
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.toObject = function(includeInstance, msg) {
1894
+ var f, obj = {
1895
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1896
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1897
+ invitedagentemail: jspb.Message.getFieldWithDefault(msg, 3, "")
1898
+ };
1899
+
1900
+ if (includeInstance) {
1901
+ obj.$jspbMessageInstance = msg;
1902
+ }
1903
+ return obj;
1904
+ };
1905
+ }
1906
+
1907
+
1908
+ /**
1909
+ * Deserializes binary data (in protobuf wire format).
1910
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1911
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest}
1912
+ */
1913
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.deserializeBinary = function(bytes) {
1914
+ var reader = new jspb.BinaryReader(bytes);
1915
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentRequest;
1916
+ return proto.agentbillingserviceapi.GetAssociatedAgentRequest.deserializeBinaryFromReader(msg, reader);
1917
+ };
1918
+
1919
+
1920
+ /**
1921
+ * Deserializes binary data (in protobuf wire format) from the
1922
+ * given reader into the given message object.
1923
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} msg The message object to deserialize into.
1924
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1925
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest}
1926
+ */
1927
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
1928
+ while (reader.nextField()) {
1929
+ if (reader.isEndGroup()) {
1930
+ break;
1931
+ }
1932
+ var field = reader.getFieldNumber();
1933
+ switch (field) {
1934
+ case 1:
1935
+ var value = /** @type {number} */ (reader.readInt64());
1936
+ msg.setAgentuserid(value);
1937
+ break;
1938
+ case 2:
1939
+ var value = /** @type {number} */ (reader.readInt64());
1940
+ msg.setClientuserid(value);
1941
+ break;
1942
+ case 3:
1943
+ var value = /** @type {string} */ (reader.readString());
1944
+ msg.setInvitedagentemail(value);
1945
+ break;
1946
+ default:
1947
+ reader.skipField();
1948
+ break;
1949
+ }
1950
+ }
1951
+ return msg;
1952
+ };
1953
+
1954
+
1955
+ /**
1956
+ * Serializes the message to binary data (in protobuf wire format).
1957
+ * @return {!Uint8Array}
1958
+ */
1959
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.serializeBinary = function() {
1960
+ var writer = new jspb.BinaryWriter();
1961
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.serializeBinaryToWriter(this, writer);
1962
+ return writer.getResultBuffer();
1963
+ };
1964
+
1965
+
1966
+ /**
1967
+ * Serializes the given message to binary data (in protobuf wire
1968
+ * format), writing to the given BinaryWriter.
1969
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} message
1970
+ * @param {!jspb.BinaryWriter} writer
1971
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1972
+ */
1973
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.serializeBinaryToWriter = function(message, writer) {
1974
+ var f = undefined;
1975
+ f = message.getAgentuserid();
1976
+ if (f !== 0) {
1977
+ writer.writeInt64(
1978
+ 1,
1979
+ f
1980
+ );
1981
+ }
1982
+ f = message.getClientuserid();
1983
+ if (f !== 0) {
1984
+ writer.writeInt64(
1985
+ 2,
1986
+ f
1987
+ );
1988
+ }
1989
+ f = message.getInvitedagentemail();
1990
+ if (f.length > 0) {
1991
+ writer.writeString(
1992
+ 3,
1993
+ f
1994
+ );
1995
+ }
1996
+ };
1997
+
1998
+
1999
+ /**
2000
+ * optional int64 agentUserId = 1;
2001
+ * @return {number}
2002
+ */
2003
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.getAgentuserid = function() {
2004
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2005
+ };
2006
+
2007
+
2008
+ /**
2009
+ * @param {number} value
2010
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} returns this
2011
+ */
2012
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.setAgentuserid = function(value) {
2013
+ return jspb.Message.setProto3IntField(this, 1, value);
2014
+ };
2015
+
2016
+
2017
+ /**
2018
+ * optional int64 clientUserId = 2;
2019
+ * @return {number}
2020
+ */
2021
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.getClientuserid = function() {
2022
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2023
+ };
2024
+
2025
+
2026
+ /**
2027
+ * @param {number} value
2028
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} returns this
2029
+ */
2030
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.setClientuserid = function(value) {
2031
+ return jspb.Message.setProto3IntField(this, 2, value);
2032
+ };
2033
+
2034
+
2035
+ /**
2036
+ * optional string invitedAgentEmail = 3;
2037
+ * @return {string}
2038
+ */
2039
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.getInvitedagentemail = function() {
2040
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2041
+ };
2042
+
2043
+
2044
+ /**
2045
+ * @param {string} value
2046
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} returns this
2047
+ */
2048
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.setInvitedagentemail = function(value) {
2049
+ return jspb.Message.setProto3StringField(this, 3, value);
2050
+ };
2051
+
2052
+
2053
+
2054
+
2055
+
2056
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2057
+ /**
2058
+ * Creates an object representation of this proto.
2059
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2060
+ * Optional fields that are not set will be set to undefined.
2061
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2062
+ * For the list of reserved names please see:
2063
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2064
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2065
+ * JSPB instance for transitional soy proto support:
2066
+ * http://goto/soy-param-migration
2067
+ * @return {!Object}
2068
+ */
2069
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.toObject = function(opt_includeInstance) {
2070
+ return proto.agentbillingserviceapi.GetAssociatedAgentResponse.toObject(opt_includeInstance, this);
2071
+ };
2072
+
2073
+
2074
+ /**
2075
+ * Static version of the {@see toObject} method.
2076
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2077
+ * the JSPB instance for transitional soy proto support:
2078
+ * http://goto/soy-param-migration
2079
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} msg The msg instance to transform.
2080
+ * @return {!Object}
2081
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2082
+ */
2083
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.toObject = function(includeInstance, msg) {
2084
+ var f, obj = {
2085
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2086
+ associatedagent: (f = msg.getAssociatedagent()) && proto.agentbillingserviceapi.Agent.toObject(includeInstance, f)
2087
+ };
2088
+
2089
+ if (includeInstance) {
2090
+ obj.$jspbMessageInstance = msg;
2091
+ }
2092
+ return obj;
2093
+ };
2094
+ }
2095
+
2096
+
2097
+ /**
2098
+ * Deserializes binary data (in protobuf wire format).
2099
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2100
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse}
2101
+ */
2102
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.deserializeBinary = function(bytes) {
2103
+ var reader = new jspb.BinaryReader(bytes);
2104
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentResponse;
2105
+ return proto.agentbillingserviceapi.GetAssociatedAgentResponse.deserializeBinaryFromReader(msg, reader);
2106
+ };
2107
+
2108
+
2109
+ /**
2110
+ * Deserializes binary data (in protobuf wire format) from the
2111
+ * given reader into the given message object.
2112
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} msg The message object to deserialize into.
2113
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2114
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse}
2115
+ */
2116
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.deserializeBinaryFromReader = function(msg, reader) {
2117
+ while (reader.nextField()) {
2118
+ if (reader.isEndGroup()) {
2119
+ break;
2120
+ }
2121
+ var field = reader.getFieldNumber();
2122
+ switch (field) {
2123
+ case 1:
2124
+ var value = new proto.agentbillingserviceapi.ResponseCode;
2125
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
2126
+ msg.setResponsecode(value);
2127
+ break;
2128
+ case 2:
2129
+ var value = new proto.agentbillingserviceapi.Agent;
2130
+ reader.readMessage(value,proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader);
2131
+ msg.setAssociatedagent(value);
2132
+ break;
2133
+ default:
2134
+ reader.skipField();
2135
+ break;
2136
+ }
2137
+ }
2138
+ return msg;
2139
+ };
2140
+
2141
+
2142
+ /**
2143
+ * Serializes the message to binary data (in protobuf wire format).
2144
+ * @return {!Uint8Array}
2145
+ */
2146
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.serializeBinary = function() {
2147
+ var writer = new jspb.BinaryWriter();
2148
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.serializeBinaryToWriter(this, writer);
2149
+ return writer.getResultBuffer();
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * Serializes the given message to binary data (in protobuf wire
2155
+ * format), writing to the given BinaryWriter.
2156
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} message
2157
+ * @param {!jspb.BinaryWriter} writer
2158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2159
+ */
2160
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.serializeBinaryToWriter = function(message, writer) {
2161
+ var f = undefined;
2162
+ f = message.getResponsecode();
2163
+ if (f != null) {
2164
+ writer.writeMessage(
2165
+ 1,
2166
+ f,
2167
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
2168
+ );
2169
+ }
2170
+ f = message.getAssociatedagent();
2171
+ if (f != null) {
2172
+ writer.writeMessage(
2173
+ 2,
2174
+ f,
2175
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter
2176
+ );
2177
+ }
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * optional ResponseCode responseCode = 1;
2183
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
2184
+ */
2185
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.getResponsecode = function() {
2186
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
2187
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
2188
+ };
2189
+
2190
+
2191
+ /**
2192
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
2193
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2194
+ */
2195
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.setResponsecode = function(value) {
2196
+ return jspb.Message.setWrapperField(this, 1, value);
2197
+ };
2198
+
2199
+
2200
+ /**
2201
+ * Clears the message field making it undefined.
2202
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2203
+ */
2204
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.clearResponsecode = function() {
2205
+ return this.setResponsecode(undefined);
2206
+ };
2207
+
2208
+
2209
+ /**
2210
+ * Returns whether this field is set.
2211
+ * @return {boolean}
2212
+ */
2213
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.hasResponsecode = function() {
2214
+ return jspb.Message.getField(this, 1) != null;
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * optional Agent associatedAgent = 2;
2220
+ * @return {?proto.agentbillingserviceapi.Agent}
2221
+ */
2222
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.getAssociatedagent = function() {
2223
+ return /** @type{?proto.agentbillingserviceapi.Agent} */ (
2224
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.Agent, 2));
2225
+ };
2226
+
2227
+
2228
+ /**
2229
+ * @param {?proto.agentbillingserviceapi.Agent|undefined} value
2230
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2231
+ */
2232
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.setAssociatedagent = function(value) {
2233
+ return jspb.Message.setWrapperField(this, 2, value);
2234
+ };
2235
+
2236
+
2237
+ /**
2238
+ * Clears the message field making it undefined.
2239
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2240
+ */
2241
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.clearAssociatedagent = function() {
2242
+ return this.setAssociatedagent(undefined);
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Returns whether this field is set.
2248
+ * @return {boolean}
2249
+ */
2250
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.hasAssociatedagent = function() {
2251
+ return jspb.Message.getField(this, 2) != null;
2252
+ };
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2259
+ /**
2260
+ * Creates an object representation of this proto.
2261
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2262
+ * Optional fields that are not set will be set to undefined.
2263
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2264
+ * For the list of reserved names please see:
2265
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2266
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2267
+ * JSPB instance for transitional soy proto support:
2268
+ * http://goto/soy-param-migration
2269
+ * @return {!Object}
2270
+ */
2271
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.toObject = function(opt_includeInstance) {
2272
+ return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject(opt_includeInstance, this);
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * Static version of the {@see toObject} method.
2278
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2279
+ * the JSPB instance for transitional soy proto support:
2280
+ * http://goto/soy-param-migration
2281
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The msg instance to transform.
2282
+ * @return {!Object}
2283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2284
+ */
2285
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject = function(includeInstance, msg) {
2286
+ var f, obj = {
2287
+ page: jspb.Message.getFieldWithDefault(msg, 1, 0),
2288
+ size: jspb.Message.getFieldWithDefault(msg, 2, 0),
2289
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
2290
+ };
2291
+
2292
+ if (includeInstance) {
2293
+ obj.$jspbMessageInstance = msg;
2294
+ }
2295
+ return obj;
2296
+ };
2297
+ }
2298
+
2299
+
2300
+ /**
2301
+ * Deserializes binary data (in protobuf wire format).
2302
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2303
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
2304
+ */
2305
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinary = function(bytes) {
2306
+ var reader = new jspb.BinaryReader(bytes);
2307
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsRequest;
2308
+ return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader(msg, reader);
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * Deserializes binary data (in protobuf wire format) from the
2314
+ * given reader into the given message object.
2315
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The message object to deserialize into.
2316
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2317
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
2318
+ */
2319
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader = function(msg, reader) {
2320
+ while (reader.nextField()) {
2321
+ if (reader.isEndGroup()) {
2322
+ break;
2323
+ }
2324
+ var field = reader.getFieldNumber();
2325
+ switch (field) {
2326
+ case 1:
2327
+ var value = /** @type {number} */ (reader.readInt32());
2328
+ msg.setPage(value);
2329
+ break;
2330
+ case 2:
2331
+ var value = /** @type {number} */ (reader.readInt32());
2332
+ msg.setSize(value);
2333
+ break;
2334
+ case 3:
2335
+ var value = /** @type {number} */ (reader.readInt64());
2336
+ msg.setUserid(value);
2337
+ break;
2338
+ default:
2339
+ reader.skipField();
2340
+ break;
2341
+ }
2342
+ }
2343
+ return msg;
2344
+ };
2345
+
2346
+
2347
+ /**
2348
+ * Serializes the message to binary data (in protobuf wire format).
2349
+ * @return {!Uint8Array}
2350
+ */
2351
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.serializeBinary = function() {
2352
+ var writer = new jspb.BinaryWriter();
2353
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter(this, writer);
2354
+ return writer.getResultBuffer();
2355
+ };
2356
+
2357
+
2358
+ /**
2359
+ * Serializes the given message to binary data (in protobuf wire
2360
+ * format), writing to the given BinaryWriter.
2361
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} message
2362
+ * @param {!jspb.BinaryWriter} writer
2363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2364
+ */
2365
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter = function(message, writer) {
2366
+ var f = undefined;
2367
+ f = message.getPage();
2368
+ if (f !== 0) {
2369
+ writer.writeInt32(
2370
+ 1,
2371
+ f
2372
+ );
2373
+ }
2374
+ f = message.getSize();
2375
+ if (f !== 0) {
2376
+ writer.writeInt32(
2377
+ 2,
2378
+ f
2379
+ );
2380
+ }
2381
+ f = message.getUserid();
2382
+ if (f !== 0) {
2383
+ writer.writeInt64(
2384
+ 3,
2385
+ f
2386
+ );
2387
+ }
2388
+ };
2389
+
2390
+
2391
+ /**
2392
+ * optional int32 page = 1;
2393
+ * @return {number}
2394
+ */
2395
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getPage = function() {
2396
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2397
+ };
2398
+
2399
+
2400
+ /**
2401
+ * @param {number} value
2402
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2403
+ */
2404
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setPage = function(value) {
2405
+ return jspb.Message.setProto3IntField(this, 1, value);
2406
+ };
2407
+
2408
+
2409
+ /**
2410
+ * optional int32 size = 2;
2411
+ * @return {number}
2412
+ */
2413
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getSize = function() {
2414
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2415
+ };
2416
+
2417
+
2418
+ /**
2419
+ * @param {number} value
2420
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2421
+ */
2422
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setSize = function(value) {
2423
+ return jspb.Message.setProto3IntField(this, 2, value);
2424
+ };
2425
+
2426
+
2427
+ /**
2428
+ * optional int64 userId = 3;
2429
+ * @return {number}
2430
+ */
2431
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getUserid = function() {
2432
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * @param {number} value
2438
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2439
+ */
2440
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setUserid = function(value) {
2441
+ return jspb.Message.setProto3IntField(this, 3, value);
2442
+ };
2443
+
2444
+
2445
+
2446
+ /**
2447
+ * List of repeated fields within this message type.
2448
+ * @private {!Array<number>}
2449
+ * @const
2450
+ */
2451
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.repeatedFields_ = [2];
2452
+
2453
+
2454
+
2455
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2456
+ /**
2457
+ * Creates an object representation of this proto.
2458
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2459
+ * Optional fields that are not set will be set to undefined.
2460
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2461
+ * For the list of reserved names please see:
2462
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2463
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2464
+ * JSPB instance for transitional soy proto support:
2465
+ * http://goto/soy-param-migration
2466
+ * @return {!Object}
2467
+ */
2468
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.toObject = function(opt_includeInstance) {
2469
+ return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject(opt_includeInstance, this);
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Static version of the {@see toObject} method.
2475
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2476
+ * the JSPB instance for transitional soy proto support:
2477
+ * http://goto/soy-param-migration
2478
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The msg instance to transform.
2479
+ * @return {!Object}
2480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2481
+ */
2482
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject = function(includeInstance, msg) {
2483
+ var f, obj = {
2484
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2485
+ associatedagentsList: jspb.Message.toObjectList(msg.getAssociatedagentsList(),
2486
+ proto.agentbillingserviceapi.Agent.toObject, includeInstance),
2487
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
2488
+ size: jspb.Message.getFieldWithDefault(msg, 4, 0),
2489
+ totalpages: jspb.Message.getFieldWithDefault(msg, 5, 0),
2490
+ totalsize: jspb.Message.getFieldWithDefault(msg, 6, 0)
2491
+ };
2492
+
2493
+ if (includeInstance) {
2494
+ obj.$jspbMessageInstance = msg;
2495
+ }
2496
+ return obj;
2497
+ };
2498
+ }
2499
+
2500
+
2501
+ /**
2502
+ * Deserializes binary data (in protobuf wire format).
2503
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2504
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
2505
+ */
2506
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinary = function(bytes) {
2507
+ var reader = new jspb.BinaryReader(bytes);
2508
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsResponse;
2509
+ return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader(msg, reader);
2510
+ };
2511
+
2512
+
2513
+ /**
2514
+ * Deserializes binary data (in protobuf wire format) from the
2515
+ * given reader into the given message object.
2516
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The message object to deserialize into.
2517
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2518
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
2519
+ */
2520
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader = function(msg, reader) {
2521
+ while (reader.nextField()) {
2522
+ if (reader.isEndGroup()) {
2523
+ break;
2524
+ }
2525
+ var field = reader.getFieldNumber();
2526
+ switch (field) {
2527
+ case 1:
2528
+ var value = new proto.agentbillingserviceapi.ResponseCode;
2529
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
2530
+ msg.setResponsecode(value);
2531
+ break;
2532
+ case 2:
2533
+ var value = new proto.agentbillingserviceapi.Agent;
2534
+ reader.readMessage(value,proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader);
2535
+ msg.addAssociatedagents(value);
2536
+ break;
2537
+ case 3:
2538
+ var value = /** @type {number} */ (reader.readInt32());
2539
+ msg.setPage(value);
2540
+ break;
2541
+ case 4:
2542
+ var value = /** @type {number} */ (reader.readInt32());
2543
+ msg.setSize(value);
2544
+ break;
2545
+ case 5:
2546
+ var value = /** @type {number} */ (reader.readInt32());
2547
+ msg.setTotalpages(value);
2548
+ break;
2549
+ case 6:
2550
+ var value = /** @type {number} */ (reader.readInt64());
2551
+ msg.setTotalsize(value);
2552
+ break;
2553
+ default:
2554
+ reader.skipField();
2555
+ break;
2556
+ }
2557
+ }
2558
+ return msg;
2559
+ };
2560
+
2561
+
2562
+ /**
2563
+ * Serializes the message to binary data (in protobuf wire format).
2564
+ * @return {!Uint8Array}
2565
+ */
2566
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.serializeBinary = function() {
2567
+ var writer = new jspb.BinaryWriter();
2568
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter(this, writer);
2569
+ return writer.getResultBuffer();
2570
+ };
2571
+
2572
+
2573
+ /**
2574
+ * Serializes the given message to binary data (in protobuf wire
2575
+ * format), writing to the given BinaryWriter.
2576
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} message
2577
+ * @param {!jspb.BinaryWriter} writer
2578
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2579
+ */
2580
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter = function(message, writer) {
2581
+ var f = undefined;
2582
+ f = message.getResponsecode();
2583
+ if (f != null) {
2584
+ writer.writeMessage(
2585
+ 1,
2586
+ f,
2587
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
2588
+ );
2589
+ }
2590
+ f = message.getAssociatedagentsList();
2591
+ if (f.length > 0) {
2592
+ writer.writeRepeatedMessage(
2593
+ 2,
2594
+ f,
2595
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter
2596
+ );
2597
+ }
2598
+ f = message.getPage();
2599
+ if (f !== 0) {
2600
+ writer.writeInt32(
2601
+ 3,
2602
+ f
2603
+ );
2604
+ }
2605
+ f = message.getSize();
2606
+ if (f !== 0) {
2607
+ writer.writeInt32(
2608
+ 4,
2609
+ f
2610
+ );
2611
+ }
2612
+ f = message.getTotalpages();
2613
+ if (f !== 0) {
2614
+ writer.writeInt32(
2615
+ 5,
2616
+ f
2617
+ );
2618
+ }
2619
+ f = message.getTotalsize();
2620
+ if (f !== 0) {
2621
+ writer.writeInt64(
2622
+ 6,
2623
+ f
2624
+ );
2625
+ }
2626
+ };
2627
+
2628
+
2629
+ /**
2630
+ * optional ResponseCode responseCode = 1;
2631
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
2632
+ */
2633
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getResponsecode = function() {
2634
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
2635
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
2636
+ };
2637
+
2638
+
2639
+ /**
2640
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
2641
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2642
+ */
2643
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setResponsecode = function(value) {
2644
+ return jspb.Message.setWrapperField(this, 1, value);
2645
+ };
2646
+
2647
+
2648
+ /**
2649
+ * Clears the message field making it undefined.
2650
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2651
+ */
2652
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearResponsecode = function() {
2653
+ return this.setResponsecode(undefined);
2654
+ };
2655
+
2656
+
2657
+ /**
2658
+ * Returns whether this field is set.
2659
+ * @return {boolean}
2660
+ */
2661
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.hasResponsecode = function() {
2662
+ return jspb.Message.getField(this, 1) != null;
2663
+ };
2664
+
2665
+
2666
+ /**
2667
+ * repeated Agent associatedAgents = 2;
2668
+ * @return {!Array<!proto.agentbillingserviceapi.Agent>}
2669
+ */
2670
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getAssociatedagentsList = function() {
2671
+ return /** @type{!Array<!proto.agentbillingserviceapi.Agent>} */ (
2672
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.Agent, 2));
2673
+ };
2674
+
2675
+
2676
+ /**
2677
+ * @param {!Array<!proto.agentbillingserviceapi.Agent>} value
2678
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2679
+ */
2680
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setAssociatedagentsList = function(value) {
2681
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2682
+ };
2683
+
2684
+
2685
+ /**
2686
+ * @param {!proto.agentbillingserviceapi.Agent=} opt_value
2687
+ * @param {number=} opt_index
2688
+ * @return {!proto.agentbillingserviceapi.Agent}
2689
+ */
2690
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.addAssociatedagents = function(opt_value, opt_index) {
2691
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.agentbillingserviceapi.Agent, opt_index);
2692
+ };
2693
+
2694
+
2695
+ /**
2696
+ * Clears the list making it empty but non-null.
2697
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2698
+ */
2699
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearAssociatedagentsList = function() {
2700
+ return this.setAssociatedagentsList([]);
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * optional int32 page = 3;
2706
+ * @return {number}
2707
+ */
2708
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getPage = function() {
2709
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2710
+ };
2711
+
2712
+
2713
+ /**
2714
+ * @param {number} value
2715
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2716
+ */
2717
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setPage = function(value) {
2718
+ return jspb.Message.setProto3IntField(this, 3, value);
2719
+ };
2720
+
2721
+
2722
+ /**
2723
+ * optional int32 size = 4;
2724
+ * @return {number}
2725
+ */
2726
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getSize = function() {
2727
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2728
+ };
2729
+
2730
+
2731
+ /**
2732
+ * @param {number} value
2733
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2734
+ */
2735
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setSize = function(value) {
2736
+ return jspb.Message.setProto3IntField(this, 4, value);
2737
+ };
2738
+
2739
+
2740
+ /**
2741
+ * optional int32 totalPages = 5;
2742
+ * @return {number}
2743
+ */
2744
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalpages = function() {
2745
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * @param {number} value
2751
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2752
+ */
2753
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalpages = function(value) {
2754
+ return jspb.Message.setProto3IntField(this, 5, value);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * optional int64 totalSize = 6;
2760
+ * @return {number}
2761
+ */
2762
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalsize = function() {
2763
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2764
+ };
2765
+
2766
+
2767
+ /**
2768
+ * @param {number} value
2769
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2770
+ */
2771
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalsize = function(value) {
2772
+ return jspb.Message.setProto3IntField(this, 6, value);
2773
+ };
2774
+
2775
+
2776
+
2777
+
2778
+
2779
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2780
+ /**
2781
+ * Creates an object representation of this proto.
2782
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2783
+ * Optional fields that are not set will be set to undefined.
2784
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2785
+ * For the list of reserved names please see:
2786
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2787
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2788
+ * JSPB instance for transitional soy proto support:
2789
+ * http://goto/soy-param-migration
2790
+ * @return {!Object}
2791
+ */
2792
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.toObject = function(opt_includeInstance) {
2793
+ return proto.agentbillingserviceapi.GetAssociatedClientRequest.toObject(opt_includeInstance, this);
2794
+ };
2795
+
2796
+
2797
+ /**
2798
+ * Static version of the {@see toObject} method.
2799
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2800
+ * the JSPB instance for transitional soy proto support:
2801
+ * http://goto/soy-param-migration
2802
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientRequest} msg The msg instance to transform.
2803
+ * @return {!Object}
2804
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2805
+ */
2806
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.toObject = function(includeInstance, msg) {
2807
+ var f, obj = {
2808
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
2809
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0)
2810
+ };
2811
+
2812
+ if (includeInstance) {
2813
+ obj.$jspbMessageInstance = msg;
2814
+ }
2815
+ return obj;
2816
+ };
2817
+ }
2818
+
2819
+
2820
+ /**
2821
+ * Deserializes binary data (in protobuf wire format).
2822
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2823
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest}
2824
+ */
2825
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.deserializeBinary = function(bytes) {
2826
+ var reader = new jspb.BinaryReader(bytes);
2827
+ var msg = new proto.agentbillingserviceapi.GetAssociatedClientRequest;
2828
+ return proto.agentbillingserviceapi.GetAssociatedClientRequest.deserializeBinaryFromReader(msg, reader);
2829
+ };
2830
+
2831
+
2832
+ /**
2833
+ * Deserializes binary data (in protobuf wire format) from the
2834
+ * given reader into the given message object.
2835
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientRequest} msg The message object to deserialize into.
2836
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2837
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest}
2838
+ */
2839
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.deserializeBinaryFromReader = function(msg, reader) {
2840
+ while (reader.nextField()) {
2841
+ if (reader.isEndGroup()) {
2842
+ break;
2843
+ }
2844
+ var field = reader.getFieldNumber();
2845
+ switch (field) {
2846
+ case 1:
2847
+ var value = /** @type {number} */ (reader.readInt64());
2848
+ msg.setAgentuserid(value);
2849
+ break;
2850
+ case 2:
2851
+ var value = /** @type {number} */ (reader.readInt64());
2852
+ msg.setClientuserid(value);
2853
+ break;
2854
+ default:
2855
+ reader.skipField();
2856
+ break;
2857
+ }
2858
+ }
2859
+ return msg;
2860
+ };
2861
+
2862
+
2863
+ /**
2864
+ * Serializes the message to binary data (in protobuf wire format).
2865
+ * @return {!Uint8Array}
2866
+ */
2867
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.serializeBinary = function() {
2868
+ var writer = new jspb.BinaryWriter();
2869
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.serializeBinaryToWriter(this, writer);
2870
+ return writer.getResultBuffer();
2871
+ };
2872
+
2873
+
2874
+ /**
2875
+ * Serializes the given message to binary data (in protobuf wire
2876
+ * format), writing to the given BinaryWriter.
2877
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientRequest} message
2878
+ * @param {!jspb.BinaryWriter} writer
2879
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2880
+ */
2881
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.serializeBinaryToWriter = function(message, writer) {
2882
+ var f = undefined;
2883
+ f = message.getAgentuserid();
2884
+ if (f !== 0) {
2885
+ writer.writeInt64(
2886
+ 1,
2887
+ f
2888
+ );
2889
+ }
2890
+ f = message.getClientuserid();
2891
+ if (f !== 0) {
2892
+ writer.writeInt64(
2893
+ 2,
2894
+ f
2895
+ );
2896
+ }
2897
+ };
2898
+
2899
+
2900
+ /**
2901
+ * optional int64 agentUserId = 1;
2902
+ * @return {number}
2903
+ */
2904
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.getAgentuserid = function() {
2905
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * @param {number} value
2911
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest} returns this
2912
+ */
2913
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.setAgentuserid = function(value) {
2914
+ return jspb.Message.setProto3IntField(this, 1, value);
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * optional int64 clientUserId = 2;
2920
+ * @return {number}
2921
+ */
2922
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.getClientuserid = function() {
2923
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * @param {number} value
2929
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest} returns this
2930
+ */
2931
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.setClientuserid = function(value) {
2932
+ return jspb.Message.setProto3IntField(this, 2, value);
2933
+ };
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2940
+ /**
2941
+ * Creates an object representation of this proto.
2942
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2943
+ * Optional fields that are not set will be set to undefined.
2944
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2945
+ * For the list of reserved names please see:
2946
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2947
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2948
+ * JSPB instance for transitional soy proto support:
2949
+ * http://goto/soy-param-migration
2950
+ * @return {!Object}
2951
+ */
2952
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.toObject = function(opt_includeInstance) {
2953
+ return proto.agentbillingserviceapi.GetAssociatedClientResponse.toObject(opt_includeInstance, this);
2954
+ };
2955
+
2956
+
2957
+ /**
2958
+ * Static version of the {@see toObject} method.
2959
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2960
+ * the JSPB instance for transitional soy proto support:
2961
+ * http://goto/soy-param-migration
2962
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientResponse} msg The msg instance to transform.
2963
+ * @return {!Object}
2964
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2965
+ */
2966
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.toObject = function(includeInstance, msg) {
2967
+ var f, obj = {
2968
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2969
+ associatedclient: (f = msg.getAssociatedclient()) && proto.agentbillingserviceapi.Client.toObject(includeInstance, f)
2970
+ };
2971
+
2972
+ if (includeInstance) {
2973
+ obj.$jspbMessageInstance = msg;
2974
+ }
2975
+ return obj;
2976
+ };
2977
+ }
2978
+
2979
+
2980
+ /**
2981
+ * Deserializes binary data (in protobuf wire format).
2982
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2983
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse}
2984
+ */
2985
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.deserializeBinary = function(bytes) {
2986
+ var reader = new jspb.BinaryReader(bytes);
2987
+ var msg = new proto.agentbillingserviceapi.GetAssociatedClientResponse;
2988
+ return proto.agentbillingserviceapi.GetAssociatedClientResponse.deserializeBinaryFromReader(msg, reader);
2989
+ };
2990
+
2991
+
2992
+ /**
2993
+ * Deserializes binary data (in protobuf wire format) from the
2994
+ * given reader into the given message object.
2995
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientResponse} msg The message object to deserialize into.
2996
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2997
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse}
2998
+ */
2999
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.deserializeBinaryFromReader = function(msg, reader) {
3000
+ while (reader.nextField()) {
3001
+ if (reader.isEndGroup()) {
3002
+ break;
3003
+ }
3004
+ var field = reader.getFieldNumber();
3005
+ switch (field) {
3006
+ case 1:
3007
+ var value = new proto.agentbillingserviceapi.ResponseCode;
3008
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
3009
+ msg.setResponsecode(value);
3010
+ break;
3011
+ case 2:
3012
+ var value = new proto.agentbillingserviceapi.Client;
3013
+ reader.readMessage(value,proto.agentbillingserviceapi.Client.deserializeBinaryFromReader);
3014
+ msg.setAssociatedclient(value);
3015
+ break;
3016
+ default:
3017
+ reader.skipField();
3018
+ break;
3019
+ }
3020
+ }
3021
+ return msg;
3022
+ };
3023
+
3024
+
3025
+ /**
3026
+ * Serializes the message to binary data (in protobuf wire format).
3027
+ * @return {!Uint8Array}
3028
+ */
3029
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.serializeBinary = function() {
3030
+ var writer = new jspb.BinaryWriter();
3031
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.serializeBinaryToWriter(this, writer);
3032
+ return writer.getResultBuffer();
3033
+ };
3034
+
3035
+
3036
+ /**
3037
+ * Serializes the given message to binary data (in protobuf wire
3038
+ * format), writing to the given BinaryWriter.
3039
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientResponse} message
3040
+ * @param {!jspb.BinaryWriter} writer
3041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3042
+ */
3043
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.serializeBinaryToWriter = function(message, writer) {
3044
+ var f = undefined;
3045
+ f = message.getResponsecode();
3046
+ if (f != null) {
3047
+ writer.writeMessage(
3048
+ 1,
3049
+ f,
3050
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
3051
+ );
3052
+ }
3053
+ f = message.getAssociatedclient();
3054
+ if (f != null) {
3055
+ writer.writeMessage(
3056
+ 2,
3057
+ f,
3058
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter
3059
+ );
3060
+ }
3061
+ };
3062
+
3063
+
3064
+ /**
3065
+ * optional ResponseCode responseCode = 1;
3066
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
3067
+ */
3068
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.getResponsecode = function() {
3069
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
3070
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
3071
+ };
3072
+
3073
+
3074
+ /**
3075
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
3076
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3077
+ */
3078
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.setResponsecode = function(value) {
3079
+ return jspb.Message.setWrapperField(this, 1, value);
3080
+ };
3081
+
3082
+
3083
+ /**
3084
+ * Clears the message field making it undefined.
3085
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3086
+ */
3087
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.clearResponsecode = function() {
3088
+ return this.setResponsecode(undefined);
3089
+ };
3090
+
3091
+
3092
+ /**
3093
+ * Returns whether this field is set.
3094
+ * @return {boolean}
3095
+ */
3096
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.hasResponsecode = function() {
3097
+ return jspb.Message.getField(this, 1) != null;
3098
+ };
3099
+
3100
+
3101
+ /**
3102
+ * optional Client associatedClient = 2;
3103
+ * @return {?proto.agentbillingserviceapi.Client}
3104
+ */
3105
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.getAssociatedclient = function() {
3106
+ return /** @type{?proto.agentbillingserviceapi.Client} */ (
3107
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.Client, 2));
3108
+ };
3109
+
3110
+
3111
+ /**
3112
+ * @param {?proto.agentbillingserviceapi.Client|undefined} value
3113
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3114
+ */
3115
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.setAssociatedclient = function(value) {
3116
+ return jspb.Message.setWrapperField(this, 2, value);
3117
+ };
3118
+
3119
+
3120
+ /**
3121
+ * Clears the message field making it undefined.
3122
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3123
+ */
3124
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.clearAssociatedclient = function() {
3125
+ return this.setAssociatedclient(undefined);
3126
+ };
3127
+
3128
+
3129
+ /**
3130
+ * Returns whether this field is set.
3131
+ * @return {boolean}
3132
+ */
3133
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.hasAssociatedclient = function() {
3134
+ return jspb.Message.getField(this, 2) != null;
3135
+ };
3136
+
3137
+
3138
+
3139
+
3140
+
3141
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3142
+ /**
3143
+ * Creates an object representation of this proto.
3144
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3145
+ * Optional fields that are not set will be set to undefined.
3146
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3147
+ * For the list of reserved names please see:
3148
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3149
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3150
+ * JSPB instance for transitional soy proto support:
3151
+ * http://goto/soy-param-migration
3152
+ * @return {!Object}
3153
+ */
3154
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.toObject = function(opt_includeInstance) {
3155
+ return proto.agentbillingserviceapi.GetAssociatedClientsRequest.toObject(opt_includeInstance, this);
3156
+ };
3157
+
3158
+
3159
+ /**
3160
+ * Static version of the {@see toObject} method.
3161
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3162
+ * the JSPB instance for transitional soy proto support:
3163
+ * http://goto/soy-param-migration
3164
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsRequest} msg The msg instance to transform.
3165
+ * @return {!Object}
3166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3167
+ */
3168
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.toObject = function(includeInstance, msg) {
3169
+ var f, obj = {
3170
+ page: jspb.Message.getFieldWithDefault(msg, 1, 0),
3171
+ size: jspb.Message.getFieldWithDefault(msg, 2, 0),
3172
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
3173
+ };
3174
+
3175
+ if (includeInstance) {
3176
+ obj.$jspbMessageInstance = msg;
3177
+ }
3178
+ return obj;
3179
+ };
3180
+ }
3181
+
3182
+
3183
+ /**
3184
+ * Deserializes binary data (in protobuf wire format).
3185
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3186
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsRequest}
3187
+ */
3188
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.deserializeBinary = function(bytes) {
3189
+ var reader = new jspb.BinaryReader(bytes);
3190
+ var msg = new proto.agentbillingserviceapi.GetAssociatedClientsRequest;
3191
+ return proto.agentbillingserviceapi.GetAssociatedClientsRequest.deserializeBinaryFromReader(msg, reader);
3192
+ };
3193
+
3194
+
3195
+ /**
3196
+ * Deserializes binary data (in protobuf wire format) from the
3197
+ * given reader into the given message object.
3198
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsRequest} msg The message object to deserialize into.
3199
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3200
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsRequest}
3201
+ */
3202
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.deserializeBinaryFromReader = function(msg, reader) {
3203
+ while (reader.nextField()) {
3204
+ if (reader.isEndGroup()) {
3205
+ break;
3206
+ }
3207
+ var field = reader.getFieldNumber();
3208
+ switch (field) {
3209
+ case 1:
3210
+ var value = /** @type {number} */ (reader.readInt32());
3211
+ msg.setPage(value);
3212
+ break;
3213
+ case 2:
3214
+ var value = /** @type {number} */ (reader.readInt32());
3215
+ msg.setSize(value);
3216
+ break;
3217
+ case 3:
3218
+ var value = /** @type {number} */ (reader.readInt64());
3219
+ msg.setUserid(value);
3220
+ break;
3221
+ default:
3222
+ reader.skipField();
3223
+ break;
3224
+ }
3225
+ }
3226
+ return msg;
3227
+ };
3228
+
3229
+
3230
+ /**
3231
+ * Serializes the message to binary data (in protobuf wire format).
3232
+ * @return {!Uint8Array}
3233
+ */
3234
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.serializeBinary = function() {
3235
+ var writer = new jspb.BinaryWriter();
3236
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.serializeBinaryToWriter(this, writer);
3237
+ return writer.getResultBuffer();
3238
+ };
3239
+
3240
+
3241
+ /**
3242
+ * Serializes the given message to binary data (in protobuf wire
3243
+ * format), writing to the given BinaryWriter.
3244
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsRequest} message
3245
+ * @param {!jspb.BinaryWriter} writer
3246
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3247
+ */
3248
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.serializeBinaryToWriter = function(message, writer) {
3249
+ var f = undefined;
3250
+ f = message.getPage();
3251
+ if (f !== 0) {
3252
+ writer.writeInt32(
3253
+ 1,
3254
+ f
3255
+ );
3256
+ }
3257
+ f = message.getSize();
3258
+ if (f !== 0) {
3259
+ writer.writeInt32(
3260
+ 2,
3261
+ f
3262
+ );
3263
+ }
3264
+ f = message.getUserid();
3265
+ if (f !== 0) {
3266
+ writer.writeInt64(
3267
+ 3,
3268
+ f
3269
+ );
3270
+ }
3271
+ };
3272
+
3273
+
3274
+ /**
3275
+ * optional int32 page = 1;
3276
+ * @return {number}
3277
+ */
3278
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.getPage = function() {
3279
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3280
+ };
3281
+
3282
+
3283
+ /**
3284
+ * @param {number} value
3285
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsRequest} returns this
3286
+ */
3287
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.setPage = function(value) {
3288
+ return jspb.Message.setProto3IntField(this, 1, value);
3289
+ };
3290
+
3291
+
3292
+ /**
3293
+ * optional int32 size = 2;
3294
+ * @return {number}
3295
+ */
3296
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.getSize = function() {
3297
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3298
+ };
3299
+
3300
+
3301
+ /**
3302
+ * @param {number} value
3303
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsRequest} returns this
3304
+ */
3305
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.setSize = function(value) {
3306
+ return jspb.Message.setProto3IntField(this, 2, value);
3307
+ };
3308
+
3309
+
3310
+ /**
3311
+ * optional int64 userId = 3;
3312
+ * @return {number}
3313
+ */
3314
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.getUserid = function() {
3315
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3316
+ };
3317
+
3318
+
3319
+ /**
3320
+ * @param {number} value
3321
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsRequest} returns this
3322
+ */
3323
+ proto.agentbillingserviceapi.GetAssociatedClientsRequest.prototype.setUserid = function(value) {
3324
+ return jspb.Message.setProto3IntField(this, 3, value);
3325
+ };
3326
+
3327
+
3328
+
3329
+ /**
3330
+ * List of repeated fields within this message type.
3331
+ * @private {!Array<number>}
3332
+ * @const
3333
+ */
3334
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.repeatedFields_ = [2];
3335
+
3336
+
3337
+
3338
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3339
+ /**
3340
+ * Creates an object representation of this proto.
3341
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3342
+ * Optional fields that are not set will be set to undefined.
3343
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3344
+ * For the list of reserved names please see:
3345
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3346
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3347
+ * JSPB instance for transitional soy proto support:
3348
+ * http://goto/soy-param-migration
3349
+ * @return {!Object}
3350
+ */
3351
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.toObject = function(opt_includeInstance) {
3352
+ return proto.agentbillingserviceapi.GetAssociatedClientsResponse.toObject(opt_includeInstance, this);
3353
+ };
3354
+
3355
+
3356
+ /**
3357
+ * Static version of the {@see toObject} method.
3358
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3359
+ * the JSPB instance for transitional soy proto support:
3360
+ * http://goto/soy-param-migration
3361
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} msg The msg instance to transform.
3362
+ * @return {!Object}
3363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3364
+ */
3365
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.toObject = function(includeInstance, msg) {
3366
+ var f, obj = {
3367
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
3368
+ associatedclientsList: jspb.Message.toObjectList(msg.getAssociatedclientsList(),
3369
+ proto.agentbillingserviceapi.Client.toObject, includeInstance),
3370
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
3371
+ size: jspb.Message.getFieldWithDefault(msg, 4, 0),
3372
+ totalpages: jspb.Message.getFieldWithDefault(msg, 5, 0),
3373
+ totalsize: jspb.Message.getFieldWithDefault(msg, 6, 0)
3374
+ };
3375
+
3376
+ if (includeInstance) {
3377
+ obj.$jspbMessageInstance = msg;
3378
+ }
3379
+ return obj;
3380
+ };
3381
+ }
3382
+
3383
+
3384
+ /**
3385
+ * Deserializes binary data (in protobuf wire format).
3386
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3387
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse}
3388
+ */
3389
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.deserializeBinary = function(bytes) {
3390
+ var reader = new jspb.BinaryReader(bytes);
3391
+ var msg = new proto.agentbillingserviceapi.GetAssociatedClientsResponse;
3392
+ return proto.agentbillingserviceapi.GetAssociatedClientsResponse.deserializeBinaryFromReader(msg, reader);
3393
+ };
3394
+
3395
+
3396
+ /**
3397
+ * Deserializes binary data (in protobuf wire format) from the
3398
+ * given reader into the given message object.
3399
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} msg The message object to deserialize into.
3400
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3401
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse}
3402
+ */
3403
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.deserializeBinaryFromReader = function(msg, reader) {
3404
+ while (reader.nextField()) {
3405
+ if (reader.isEndGroup()) {
3406
+ break;
3407
+ }
3408
+ var field = reader.getFieldNumber();
3409
+ switch (field) {
3410
+ case 1:
3411
+ var value = new proto.agentbillingserviceapi.ResponseCode;
3412
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
3413
+ msg.setResponsecode(value);
3414
+ break;
3415
+ case 2:
3416
+ var value = new proto.agentbillingserviceapi.Client;
3417
+ reader.readMessage(value,proto.agentbillingserviceapi.Client.deserializeBinaryFromReader);
3418
+ msg.addAssociatedclients(value);
3419
+ break;
3420
+ case 3:
3421
+ var value = /** @type {number} */ (reader.readInt32());
3422
+ msg.setPage(value);
3423
+ break;
3424
+ case 4:
3425
+ var value = /** @type {number} */ (reader.readInt32());
3426
+ msg.setSize(value);
3427
+ break;
3428
+ case 5:
3429
+ var value = /** @type {number} */ (reader.readInt32());
3430
+ msg.setTotalpages(value);
3431
+ break;
3432
+ case 6:
3433
+ var value = /** @type {number} */ (reader.readInt64());
3434
+ msg.setTotalsize(value);
3435
+ break;
3436
+ default:
3437
+ reader.skipField();
3438
+ break;
3439
+ }
3440
+ }
3441
+ return msg;
3442
+ };
3443
+
3444
+
3445
+ /**
3446
+ * Serializes the message to binary data (in protobuf wire format).
3447
+ * @return {!Uint8Array}
3448
+ */
3449
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.serializeBinary = function() {
3450
+ var writer = new jspb.BinaryWriter();
3451
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.serializeBinaryToWriter(this, writer);
3452
+ return writer.getResultBuffer();
3453
+ };
3454
+
3455
+
3456
+ /**
3457
+ * Serializes the given message to binary data (in protobuf wire
3458
+ * format), writing to the given BinaryWriter.
3459
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} message
3460
+ * @param {!jspb.BinaryWriter} writer
3461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3462
+ */
3463
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.serializeBinaryToWriter = function(message, writer) {
3464
+ var f = undefined;
3465
+ f = message.getResponsecode();
3466
+ if (f != null) {
3467
+ writer.writeMessage(
3468
+ 1,
3469
+ f,
3470
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
3471
+ );
3472
+ }
3473
+ f = message.getAssociatedclientsList();
3474
+ if (f.length > 0) {
3475
+ writer.writeRepeatedMessage(
3476
+ 2,
3477
+ f,
3478
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter
3479
+ );
3480
+ }
3481
+ f = message.getPage();
3482
+ if (f !== 0) {
3483
+ writer.writeInt32(
3484
+ 3,
3485
+ f
3486
+ );
3487
+ }
3488
+ f = message.getSize();
3489
+ if (f !== 0) {
3490
+ writer.writeInt32(
3491
+ 4,
3492
+ f
3493
+ );
3494
+ }
3495
+ f = message.getTotalpages();
3496
+ if (f !== 0) {
3497
+ writer.writeInt32(
3498
+ 5,
3499
+ f
3500
+ );
3501
+ }
3502
+ f = message.getTotalsize();
3503
+ if (f !== 0) {
3504
+ writer.writeInt64(
3505
+ 6,
3506
+ f
3507
+ );
3508
+ }
3509
+ };
3510
+
3511
+
3512
+ /**
3513
+ * optional ResponseCode responseCode = 1;
3514
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
3515
+ */
3516
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getResponsecode = function() {
3517
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
3518
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
3519
+ };
3520
+
3521
+
3522
+ /**
3523
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
3524
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3525
+ */
3526
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setResponsecode = function(value) {
3527
+ return jspb.Message.setWrapperField(this, 1, value);
3528
+ };
3529
+
3530
+
3531
+ /**
3532
+ * Clears the message field making it undefined.
3533
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3534
+ */
3535
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.clearResponsecode = function() {
3536
+ return this.setResponsecode(undefined);
3537
+ };
3538
+
3539
+
3540
+ /**
3541
+ * Returns whether this field is set.
3542
+ * @return {boolean}
3543
+ */
3544
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.hasResponsecode = function() {
3545
+ return jspb.Message.getField(this, 1) != null;
3546
+ };
3547
+
3548
+
3549
+ /**
3550
+ * repeated Client associatedClients = 2;
3551
+ * @return {!Array<!proto.agentbillingserviceapi.Client>}
3552
+ */
3553
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getAssociatedclientsList = function() {
3554
+ return /** @type{!Array<!proto.agentbillingserviceapi.Client>} */ (
3555
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.Client, 2));
3556
+ };
3557
+
3558
+
3559
+ /**
3560
+ * @param {!Array<!proto.agentbillingserviceapi.Client>} value
3561
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3562
+ */
3563
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setAssociatedclientsList = function(value) {
3564
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3565
+ };
3566
+
3567
+
3568
+ /**
3569
+ * @param {!proto.agentbillingserviceapi.Client=} opt_value
3570
+ * @param {number=} opt_index
3571
+ * @return {!proto.agentbillingserviceapi.Client}
3572
+ */
3573
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.addAssociatedclients = function(opt_value, opt_index) {
3574
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.agentbillingserviceapi.Client, opt_index);
3575
+ };
3576
+
3577
+
3578
+ /**
3579
+ * Clears the list making it empty but non-null.
3580
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3581
+ */
3582
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.clearAssociatedclientsList = function() {
3583
+ return this.setAssociatedclientsList([]);
3584
+ };
3585
+
3586
+
3587
+ /**
3588
+ * optional int32 page = 3;
3589
+ * @return {number}
3590
+ */
3591
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getPage = function() {
3592
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3593
+ };
3594
+
3595
+
3596
+ /**
3597
+ * @param {number} value
3598
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3599
+ */
3600
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setPage = function(value) {
3601
+ return jspb.Message.setProto3IntField(this, 3, value);
3602
+ };
3603
+
3604
+
3605
+ /**
3606
+ * optional int32 size = 4;
3607
+ * @return {number}
3608
+ */
3609
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getSize = function() {
3610
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3611
+ };
3612
+
3613
+
3614
+ /**
3615
+ * @param {number} value
3616
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3617
+ */
3618
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setSize = function(value) {
3619
+ return jspb.Message.setProto3IntField(this, 4, value);
3620
+ };
3621
+
3622
+
3623
+ /**
3624
+ * optional int32 totalPages = 5;
3625
+ * @return {number}
3626
+ */
3627
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getTotalpages = function() {
3628
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
3629
+ };
3630
+
3631
+
3632
+ /**
3633
+ * @param {number} value
3634
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3635
+ */
3636
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setTotalpages = function(value) {
3637
+ return jspb.Message.setProto3IntField(this, 5, value);
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * optional int64 totalSize = 6;
3643
+ * @return {number}
3644
+ */
3645
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getTotalsize = function() {
3646
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3647
+ };
3648
+
3649
+
3650
+ /**
3651
+ * @param {number} value
3652
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
3653
+ */
3654
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setTotalsize = function(value) {
3655
+ return jspb.Message.setProto3IntField(this, 6, value);
3656
+ };
3657
+
3658
+
3659
+
3660
+
3661
+
3662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3663
+ /**
3664
+ * Creates an object representation of this proto.
3665
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3666
+ * Optional fields that are not set will be set to undefined.
3667
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3668
+ * For the list of reserved names please see:
3669
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3670
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3671
+ * JSPB instance for transitional soy proto support:
3672
+ * http://goto/soy-param-migration
3673
+ * @return {!Object}
3674
+ */
3675
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.toObject = function(opt_includeInstance) {
3676
+ return proto.agentbillingserviceapi.InviteAgentRequest.toObject(opt_includeInstance, this);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Static version of the {@see toObject} method.
3682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3683
+ * the JSPB instance for transitional soy proto support:
3684
+ * http://goto/soy-param-migration
3685
+ * @param {!proto.agentbillingserviceapi.InviteAgentRequest} msg The msg instance to transform.
3686
+ * @return {!Object}
3687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3688
+ */
3689
+ proto.agentbillingserviceapi.InviteAgentRequest.toObject = function(includeInstance, msg) {
3690
+ var f, obj = {
3691
+ agentemail: jspb.Message.getFieldWithDefault(msg, 1, "")
3692
+ };
3693
+
3694
+ if (includeInstance) {
3695
+ obj.$jspbMessageInstance = msg;
3696
+ }
3697
+ return obj;
3698
+ };
3699
+ }
3700
+
3701
+
3702
+ /**
3703
+ * Deserializes binary data (in protobuf wire format).
3704
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3705
+ * @return {!proto.agentbillingserviceapi.InviteAgentRequest}
3706
+ */
3707
+ proto.agentbillingserviceapi.InviteAgentRequest.deserializeBinary = function(bytes) {
3708
+ var reader = new jspb.BinaryReader(bytes);
3709
+ var msg = new proto.agentbillingserviceapi.InviteAgentRequest;
3710
+ return proto.agentbillingserviceapi.InviteAgentRequest.deserializeBinaryFromReader(msg, reader);
3711
+ };
3712
+
3713
+
3714
+ /**
3715
+ * Deserializes binary data (in protobuf wire format) from the
3716
+ * given reader into the given message object.
3717
+ * @param {!proto.agentbillingserviceapi.InviteAgentRequest} msg The message object to deserialize into.
3718
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3719
+ * @return {!proto.agentbillingserviceapi.InviteAgentRequest}
3720
+ */
3721
+ proto.agentbillingserviceapi.InviteAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
3722
+ while (reader.nextField()) {
3723
+ if (reader.isEndGroup()) {
3724
+ break;
3725
+ }
3726
+ var field = reader.getFieldNumber();
3727
+ switch (field) {
3728
+ case 1:
3729
+ var value = /** @type {string} */ (reader.readString());
3730
+ msg.setAgentemail(value);
3731
+ break;
3732
+ default:
3733
+ reader.skipField();
3734
+ break;
3735
+ }
3736
+ }
3737
+ return msg;
3738
+ };
3739
+
3740
+
3741
+ /**
3742
+ * Serializes the message to binary data (in protobuf wire format).
3743
+ * @return {!Uint8Array}
3744
+ */
3745
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.serializeBinary = function() {
3746
+ var writer = new jspb.BinaryWriter();
3747
+ proto.agentbillingserviceapi.InviteAgentRequest.serializeBinaryToWriter(this, writer);
3748
+ return writer.getResultBuffer();
3749
+ };
3750
+
3751
+
3752
+ /**
3753
+ * Serializes the given message to binary data (in protobuf wire
3754
+ * format), writing to the given BinaryWriter.
3755
+ * @param {!proto.agentbillingserviceapi.InviteAgentRequest} message
3756
+ * @param {!jspb.BinaryWriter} writer
3757
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3758
+ */
3759
+ proto.agentbillingserviceapi.InviteAgentRequest.serializeBinaryToWriter = function(message, writer) {
3760
+ var f = undefined;
3761
+ f = message.getAgentemail();
3762
+ if (f.length > 0) {
3763
+ writer.writeString(
3764
+ 1,
3765
+ f
3766
+ );
3767
+ }
3768
+ };
3769
+
3770
+
3771
+ /**
3772
+ * optional string agentEmail = 1;
3773
+ * @return {string}
3774
+ */
3775
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.getAgentemail = function() {
3776
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3777
+ };
3778
+
3779
+
3780
+ /**
3781
+ * @param {string} value
3782
+ * @return {!proto.agentbillingserviceapi.InviteAgentRequest} returns this
3783
+ */
3784
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.setAgentemail = function(value) {
3785
+ return jspb.Message.setProto3StringField(this, 1, value);
3786
+ };
3787
+
3788
+
3789
+
3790
+
3791
+
3792
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3793
+ /**
3794
+ * Creates an object representation of this proto.
3795
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3796
+ * Optional fields that are not set will be set to undefined.
3797
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3798
+ * For the list of reserved names please see:
3799
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3800
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3801
+ * JSPB instance for transitional soy proto support:
3802
+ * http://goto/soy-param-migration
3803
+ * @return {!Object}
3804
+ */
3805
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.prototype.toObject = function(opt_includeInstance) {
3806
+ return proto.agentbillingserviceapi.ResendAgentInvitationRequest.toObject(opt_includeInstance, this);
3807
+ };
3808
+
3809
+
3810
+ /**
3811
+ * Static version of the {@see toObject} method.
3812
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3813
+ * the JSPB instance for transitional soy proto support:
3814
+ * http://goto/soy-param-migration
3815
+ * @param {!proto.agentbillingserviceapi.ResendAgentInvitationRequest} msg The msg instance to transform.
3816
+ * @return {!Object}
3817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3818
+ */
3819
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.toObject = function(includeInstance, msg) {
3820
+ var f, obj = {
3821
+ agentemail: jspb.Message.getFieldWithDefault(msg, 1, "")
3822
+ };
3823
+
3824
+ if (includeInstance) {
3825
+ obj.$jspbMessageInstance = msg;
3826
+ }
3827
+ return obj;
3828
+ };
3829
+ }
3830
+
3831
+
3832
+ /**
3833
+ * Deserializes binary data (in protobuf wire format).
3834
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3835
+ * @return {!proto.agentbillingserviceapi.ResendAgentInvitationRequest}
3836
+ */
3837
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.deserializeBinary = function(bytes) {
3838
+ var reader = new jspb.BinaryReader(bytes);
3839
+ var msg = new proto.agentbillingserviceapi.ResendAgentInvitationRequest;
3840
+ return proto.agentbillingserviceapi.ResendAgentInvitationRequest.deserializeBinaryFromReader(msg, reader);
3841
+ };
3842
+
3843
+
3844
+ /**
3845
+ * Deserializes binary data (in protobuf wire format) from the
3846
+ * given reader into the given message object.
3847
+ * @param {!proto.agentbillingserviceapi.ResendAgentInvitationRequest} msg The message object to deserialize into.
3848
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3849
+ * @return {!proto.agentbillingserviceapi.ResendAgentInvitationRequest}
3850
+ */
3851
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.deserializeBinaryFromReader = function(msg, reader) {
3852
+ while (reader.nextField()) {
3853
+ if (reader.isEndGroup()) {
3854
+ break;
3855
+ }
3856
+ var field = reader.getFieldNumber();
3857
+ switch (field) {
3858
+ case 1:
3859
+ var value = /** @type {string} */ (reader.readString());
3860
+ msg.setAgentemail(value);
3861
+ break;
3862
+ default:
3863
+ reader.skipField();
3864
+ break;
3865
+ }
3866
+ }
3867
+ return msg;
3868
+ };
3869
+
3870
+
3871
+ /**
3872
+ * Serializes the message to binary data (in protobuf wire format).
3873
+ * @return {!Uint8Array}
3874
+ */
3875
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.prototype.serializeBinary = function() {
3876
+ var writer = new jspb.BinaryWriter();
3877
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.serializeBinaryToWriter(this, writer);
3878
+ return writer.getResultBuffer();
3879
+ };
3880
+
3881
+
3882
+ /**
3883
+ * Serializes the given message to binary data (in protobuf wire
3884
+ * format), writing to the given BinaryWriter.
3885
+ * @param {!proto.agentbillingserviceapi.ResendAgentInvitationRequest} message
3886
+ * @param {!jspb.BinaryWriter} writer
3887
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3888
+ */
3889
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.serializeBinaryToWriter = function(message, writer) {
3890
+ var f = undefined;
3891
+ f = message.getAgentemail();
3892
+ if (f.length > 0) {
3893
+ writer.writeString(
3894
+ 1,
3895
+ f
3896
+ );
3897
+ }
3898
+ };
3899
+
3900
+
3901
+ /**
3902
+ * optional string agentEmail = 1;
3903
+ * @return {string}
3904
+ */
3905
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.prototype.getAgentemail = function() {
3906
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3907
+ };
3908
+
3909
+
3910
+ /**
3911
+ * @param {string} value
3912
+ * @return {!proto.agentbillingserviceapi.ResendAgentInvitationRequest} returns this
3913
+ */
3914
+ proto.agentbillingserviceapi.ResendAgentInvitationRequest.prototype.setAgentemail = function(value) {
3915
+ return jspb.Message.setProto3StringField(this, 1, value);
3916
+ };
3917
+
3918
+
3919
+
3920
+
3921
+
3922
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3923
+ /**
3924
+ * Creates an object representation of this proto.
3925
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3926
+ * Optional fields that are not set will be set to undefined.
3927
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3928
+ * For the list of reserved names please see:
3929
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3930
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3931
+ * JSPB instance for transitional soy proto support:
3932
+ * http://goto/soy-param-migration
3933
+ * @return {!Object}
3934
+ */
3935
+ proto.agentbillingserviceapi.ResponseCode.prototype.toObject = function(opt_includeInstance) {
3936
+ return proto.agentbillingserviceapi.ResponseCode.toObject(opt_includeInstance, this);
3937
+ };
3938
+
3939
+
3940
+ /**
3941
+ * Static version of the {@see toObject} method.
3942
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3943
+ * the JSPB instance for transitional soy proto support:
3944
+ * http://goto/soy-param-migration
3945
+ * @param {!proto.agentbillingserviceapi.ResponseCode} msg The msg instance to transform.
3946
+ * @return {!Object}
3947
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3948
+ */
3949
+ proto.agentbillingserviceapi.ResponseCode.toObject = function(includeInstance, msg) {
3950
+ var f, obj = {
3951
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
3952
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
3953
+ };
3954
+
3955
+ if (includeInstance) {
3956
+ obj.$jspbMessageInstance = msg;
3957
+ }
3958
+ return obj;
3959
+ };
3960
+ }
3961
+
3962
+
3963
+ /**
3964
+ * Deserializes binary data (in protobuf wire format).
3965
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3966
+ * @return {!proto.agentbillingserviceapi.ResponseCode}
3967
+ */
3968
+ proto.agentbillingserviceapi.ResponseCode.deserializeBinary = function(bytes) {
3969
+ var reader = new jspb.BinaryReader(bytes);
3970
+ var msg = new proto.agentbillingserviceapi.ResponseCode;
3971
+ return proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader(msg, reader);
3972
+ };
3973
+
3974
+
3975
+ /**
3976
+ * Deserializes binary data (in protobuf wire format) from the
3977
+ * given reader into the given message object.
3978
+ * @param {!proto.agentbillingserviceapi.ResponseCode} msg The message object to deserialize into.
3979
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3980
+ * @return {!proto.agentbillingserviceapi.ResponseCode}
3981
+ */
3982
+ proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader = function(msg, reader) {
3983
+ while (reader.nextField()) {
3984
+ if (reader.isEndGroup()) {
3985
+ break;
3986
+ }
3987
+ var field = reader.getFieldNumber();
3988
+ switch (field) {
3989
+ case 1:
3990
+ var value = /** @type {number} */ (reader.readInt32());
3991
+ msg.setCode(value);
3992
+ break;
3993
+ case 2:
3994
+ var value = /** @type {string} */ (reader.readString());
3995
+ msg.setMessage(value);
3996
+ break;
3997
+ default:
3998
+ reader.skipField();
3999
+ break;
4000
+ }
4001
+ }
4002
+ return msg;
4003
+ };
4004
+
4005
+
4006
+ /**
4007
+ * Serializes the message to binary data (in protobuf wire format).
4008
+ * @return {!Uint8Array}
4009
+ */
4010
+ proto.agentbillingserviceapi.ResponseCode.prototype.serializeBinary = function() {
4011
+ var writer = new jspb.BinaryWriter();
4012
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter(this, writer);
4013
+ return writer.getResultBuffer();
4014
+ };
4015
+
4016
+
4017
+ /**
4018
+ * Serializes the given message to binary data (in protobuf wire
4019
+ * format), writing to the given BinaryWriter.
4020
+ * @param {!proto.agentbillingserviceapi.ResponseCode} message
4021
+ * @param {!jspb.BinaryWriter} writer
4022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4023
+ */
4024
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter = function(message, writer) {
4025
+ var f = undefined;
4026
+ f = message.getCode();
4027
+ if (f !== 0) {
4028
+ writer.writeInt32(
4029
+ 1,
4030
+ f
4031
+ );
4032
+ }
4033
+ f = message.getMessage();
4034
+ if (f.length > 0) {
4035
+ writer.writeString(
4036
+ 2,
4037
+ f
4038
+ );
4039
+ }
4040
+ };
4041
+
4042
+
4043
+ /**
4044
+ * optional int32 code = 1;
4045
+ * @return {number}
4046
+ */
4047
+ proto.agentbillingserviceapi.ResponseCode.prototype.getCode = function() {
4048
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4049
+ };
4050
+
4051
+
4052
+ /**
4053
+ * @param {number} value
4054
+ * @return {!proto.agentbillingserviceapi.ResponseCode} returns this
4055
+ */
4056
+ proto.agentbillingserviceapi.ResponseCode.prototype.setCode = function(value) {
4057
+ return jspb.Message.setProto3IntField(this, 1, value);
4058
+ };
4059
+
4060
+
4061
+ /**
4062
+ * optional string message = 2;
4063
+ * @return {string}
4064
+ */
4065
+ proto.agentbillingserviceapi.ResponseCode.prototype.getMessage = function() {
4066
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4067
+ };
4068
+
4069
+
4070
+ /**
4071
+ * @param {string} value
4072
+ * @return {!proto.agentbillingserviceapi.ResponseCode} returns this
4073
+ */
4074
+ proto.agentbillingserviceapi.ResponseCode.prototype.setMessage = function(value) {
4075
+ return jspb.Message.setProto3StringField(this, 2, value);
4076
+ };
4077
+
4078
+
4079
+ goog.object.extend(exports, proto.agentbillingserviceapi);