@sniipwebmaster/agent-billing-client-grpcweb 23.6.30

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,3053 @@
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.DisconnectAgentRequest', null, global);
22
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentsRequest', null, global);
23
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentsResponse', null, global);
24
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientsResponse', null, global);
25
+ goog.exportSymbol('proto.agentbillingserviceapi.InviteAgentRequest', null, global);
26
+ goog.exportSymbol('proto.agentbillingserviceapi.ResponseCode', null, global);
27
+ goog.exportSymbol('proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest', null, global);
28
+ goog.exportSymbol('proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.agentbillingserviceapi.Agent = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
41
+ };
42
+ goog.inherits(proto.agentbillingserviceapi.Agent, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.agentbillingserviceapi.Agent.displayName = 'proto.agentbillingserviceapi.Agent';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.agentbillingserviceapi.CancelAgentInviteRequest = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.agentbillingserviceapi.CancelAgentInviteRequest, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.displayName = 'proto.agentbillingserviceapi.CancelAgentInviteRequest';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.agentbillingserviceapi.Client = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
+ };
84
+ goog.inherits(proto.agentbillingserviceapi.Client, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.agentbillingserviceapi.Client.displayName = 'proto.agentbillingserviceapi.Client';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.agentbillingserviceapi.ConnectAgentRequest = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.agentbillingserviceapi.ConnectAgentRequest, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.agentbillingserviceapi.ConnectAgentRequest.displayName = 'proto.agentbillingserviceapi.ConnectAgentRequest';
112
+ }
113
+ /**
114
+ * Generated by JsPbCodeGenerator.
115
+ * @param {Array=} opt_data Optional initial data array, typically from a
116
+ * server response, or constructed directly in Javascript. The array is used
117
+ * in place and becomes part of the constructed object. It is not cloned.
118
+ * If no data is provided, the constructed object will be empty, but still
119
+ * valid.
120
+ * @extends {jspb.Message}
121
+ * @constructor
122
+ */
123
+ proto.agentbillingserviceapi.DisconnectAgentRequest = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
+ };
126
+ goog.inherits(proto.agentbillingserviceapi.DisconnectAgentRequest, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.agentbillingserviceapi.DisconnectAgentRequest.displayName = 'proto.agentbillingserviceapi.DisconnectAgentRequest';
133
+ }
134
+ /**
135
+ * Generated by JsPbCodeGenerator.
136
+ * @param {Array=} opt_data Optional initial data array, typically from a
137
+ * server response, or constructed directly in Javascript. The array is used
138
+ * in place and becomes part of the constructed object. It is not cloned.
139
+ * If no data is provided, the constructed object will be empty, but still
140
+ * valid.
141
+ * @extends {jspb.Message}
142
+ * @constructor
143
+ */
144
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest = function(opt_data) {
145
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
146
+ };
147
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentsRequest, jspb.Message);
148
+ if (goog.DEBUG && !COMPILED) {
149
+ /**
150
+ * @public
151
+ * @override
152
+ */
153
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentsRequest';
154
+ }
155
+ /**
156
+ * Generated by JsPbCodeGenerator.
157
+ * @param {Array=} opt_data Optional initial data array, typically from a
158
+ * server response, or constructed directly in Javascript. The array is used
159
+ * in place and becomes part of the constructed object. It is not cloned.
160
+ * If no data is provided, the constructed object will be empty, but still
161
+ * valid.
162
+ * @extends {jspb.Message}
163
+ * @constructor
164
+ */
165
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse = function(opt_data) {
166
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.GetAssociatedAgentsResponse.repeatedFields_, null);
167
+ };
168
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentsResponse, jspb.Message);
169
+ if (goog.DEBUG && !COMPILED) {
170
+ /**
171
+ * @public
172
+ * @override
173
+ */
174
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentsResponse';
175
+ }
176
+ /**
177
+ * Generated by JsPbCodeGenerator.
178
+ * @param {Array=} opt_data Optional initial data array, typically from a
179
+ * server response, or constructed directly in Javascript. The array is used
180
+ * in place and becomes part of the constructed object. It is not cloned.
181
+ * If no data is provided, the constructed object will be empty, but still
182
+ * valid.
183
+ * @extends {jspb.Message}
184
+ * @constructor
185
+ */
186
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse = function(opt_data) {
187
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.GetAssociatedClientsResponse.repeatedFields_, null);
188
+ };
189
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedClientsResponse, jspb.Message);
190
+ if (goog.DEBUG && !COMPILED) {
191
+ /**
192
+ * @public
193
+ * @override
194
+ */
195
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedClientsResponse';
196
+ }
197
+ /**
198
+ * Generated by JsPbCodeGenerator.
199
+ * @param {Array=} opt_data Optional initial data array, typically from a
200
+ * server response, or constructed directly in Javascript. The array is used
201
+ * in place and becomes part of the constructed object. It is not cloned.
202
+ * If no data is provided, the constructed object will be empty, but still
203
+ * valid.
204
+ * @extends {jspb.Message}
205
+ * @constructor
206
+ */
207
+ proto.agentbillingserviceapi.InviteAgentRequest = function(opt_data) {
208
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
209
+ };
210
+ goog.inherits(proto.agentbillingserviceapi.InviteAgentRequest, jspb.Message);
211
+ if (goog.DEBUG && !COMPILED) {
212
+ /**
213
+ * @public
214
+ * @override
215
+ */
216
+ proto.agentbillingserviceapi.InviteAgentRequest.displayName = 'proto.agentbillingserviceapi.InviteAgentRequest';
217
+ }
218
+ /**
219
+ * Generated by JsPbCodeGenerator.
220
+ * @param {Array=} opt_data Optional initial data array, typically from a
221
+ * server response, or constructed directly in Javascript. The array is used
222
+ * in place and becomes part of the constructed object. It is not cloned.
223
+ * If no data is provided, the constructed object will be empty, but still
224
+ * valid.
225
+ * @extends {jspb.Message}
226
+ * @constructor
227
+ */
228
+ proto.agentbillingserviceapi.ResponseCode = function(opt_data) {
229
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
230
+ };
231
+ goog.inherits(proto.agentbillingserviceapi.ResponseCode, jspb.Message);
232
+ if (goog.DEBUG && !COMPILED) {
233
+ /**
234
+ * @public
235
+ * @override
236
+ */
237
+ proto.agentbillingserviceapi.ResponseCode.displayName = 'proto.agentbillingserviceapi.ResponseCode';
238
+ }
239
+ /**
240
+ * Generated by JsPbCodeGenerator.
241
+ * @param {Array=} opt_data Optional initial data array, typically from a
242
+ * server response, or constructed directly in Javascript. The array is used
243
+ * in place and becomes part of the constructed object. It is not cloned.
244
+ * If no data is provided, the constructed object will be empty, but still
245
+ * valid.
246
+ * @extends {jspb.Message}
247
+ * @constructor
248
+ */
249
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest = function(opt_data) {
250
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
251
+ };
252
+ goog.inherits(proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest, jspb.Message);
253
+ if (goog.DEBUG && !COMPILED) {
254
+ /**
255
+ * @public
256
+ * @override
257
+ */
258
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.displayName = 'proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest';
259
+ }
260
+ /**
261
+ * Generated by JsPbCodeGenerator.
262
+ * @param {Array=} opt_data Optional initial data array, typically from a
263
+ * server response, or constructed directly in Javascript. The array is used
264
+ * in place and becomes part of the constructed object. It is not cloned.
265
+ * If no data is provided, the constructed object will be empty, but still
266
+ * valid.
267
+ * @extends {jspb.Message}
268
+ * @constructor
269
+ */
270
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest = function(opt_data) {
271
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
272
+ };
273
+ goog.inherits(proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest, jspb.Message);
274
+ if (goog.DEBUG && !COMPILED) {
275
+ /**
276
+ * @public
277
+ * @override
278
+ */
279
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.displayName = 'proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest';
280
+ }
281
+
282
+
283
+
284
+ if (jspb.Message.GENERATE_TO_OBJECT) {
285
+ /**
286
+ * Creates an object representation of this proto.
287
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
288
+ * Optional fields that are not set will be set to undefined.
289
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
290
+ * For the list of reserved names please see:
291
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
292
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
293
+ * JSPB instance for transitional soy proto support:
294
+ * http://goto/soy-param-migration
295
+ * @return {!Object}
296
+ */
297
+ proto.agentbillingserviceapi.Agent.prototype.toObject = function(opt_includeInstance) {
298
+ return proto.agentbillingserviceapi.Agent.toObject(opt_includeInstance, this);
299
+ };
300
+
301
+
302
+ /**
303
+ * Static version of the {@see toObject} method.
304
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
305
+ * the JSPB instance for transitional soy proto support:
306
+ * http://goto/soy-param-migration
307
+ * @param {!proto.agentbillingserviceapi.Agent} msg The msg instance to transform.
308
+ * @return {!Object}
309
+ * @suppress {unusedLocalVariables} f is only used for nested messages
310
+ */
311
+ proto.agentbillingserviceapi.Agent.toObject = function(includeInstance, msg) {
312
+ var f, obj = {
313
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
314
+ connectionstatus: jspb.Message.getFieldWithDefault(msg, 2, ""),
315
+ email: jspb.Message.getFieldWithDefault(msg, 3, ""),
316
+ phone: jspb.Message.getFieldWithDefault(msg, 4, ""),
317
+ firstname: jspb.Message.getFieldWithDefault(msg, 5, ""),
318
+ lastname: jspb.Message.getFieldWithDefault(msg, 6, ""),
319
+ imageurl: jspb.Message.getFieldWithDefault(msg, 7, ""),
320
+ iscustomimage: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
321
+ };
322
+
323
+ if (includeInstance) {
324
+ obj.$jspbMessageInstance = msg;
325
+ }
326
+ return obj;
327
+ };
328
+ }
329
+
330
+
331
+ /**
332
+ * Deserializes binary data (in protobuf wire format).
333
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
334
+ * @return {!proto.agentbillingserviceapi.Agent}
335
+ */
336
+ proto.agentbillingserviceapi.Agent.deserializeBinary = function(bytes) {
337
+ var reader = new jspb.BinaryReader(bytes);
338
+ var msg = new proto.agentbillingserviceapi.Agent;
339
+ return proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader(msg, reader);
340
+ };
341
+
342
+
343
+ /**
344
+ * Deserializes binary data (in protobuf wire format) from the
345
+ * given reader into the given message object.
346
+ * @param {!proto.agentbillingserviceapi.Agent} msg The message object to deserialize into.
347
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
348
+ * @return {!proto.agentbillingserviceapi.Agent}
349
+ */
350
+ proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader = function(msg, reader) {
351
+ while (reader.nextField()) {
352
+ if (reader.isEndGroup()) {
353
+ break;
354
+ }
355
+ var field = reader.getFieldNumber();
356
+ switch (field) {
357
+ case 1:
358
+ var value = /** @type {number} */ (reader.readInt64());
359
+ msg.setUserid(value);
360
+ break;
361
+ case 2:
362
+ var value = /** @type {string} */ (reader.readString());
363
+ msg.setConnectionstatus(value);
364
+ break;
365
+ case 3:
366
+ var value = /** @type {string} */ (reader.readString());
367
+ msg.setEmail(value);
368
+ break;
369
+ case 4:
370
+ var value = /** @type {string} */ (reader.readString());
371
+ msg.setPhone(value);
372
+ break;
373
+ case 5:
374
+ var value = /** @type {string} */ (reader.readString());
375
+ msg.setFirstname(value);
376
+ break;
377
+ case 6:
378
+ var value = /** @type {string} */ (reader.readString());
379
+ msg.setLastname(value);
380
+ break;
381
+ case 7:
382
+ var value = /** @type {string} */ (reader.readString());
383
+ msg.setImageurl(value);
384
+ break;
385
+ case 8:
386
+ var value = /** @type {boolean} */ (reader.readBool());
387
+ msg.setIscustomimage(value);
388
+ break;
389
+ default:
390
+ reader.skipField();
391
+ break;
392
+ }
393
+ }
394
+ return msg;
395
+ };
396
+
397
+
398
+ /**
399
+ * Serializes the message to binary data (in protobuf wire format).
400
+ * @return {!Uint8Array}
401
+ */
402
+ proto.agentbillingserviceapi.Agent.prototype.serializeBinary = function() {
403
+ var writer = new jspb.BinaryWriter();
404
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter(this, writer);
405
+ return writer.getResultBuffer();
406
+ };
407
+
408
+
409
+ /**
410
+ * Serializes the given message to binary data (in protobuf wire
411
+ * format), writing to the given BinaryWriter.
412
+ * @param {!proto.agentbillingserviceapi.Agent} message
413
+ * @param {!jspb.BinaryWriter} writer
414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
415
+ */
416
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter = function(message, writer) {
417
+ var f = undefined;
418
+ f = message.getUserid();
419
+ if (f !== 0) {
420
+ writer.writeInt64(
421
+ 1,
422
+ f
423
+ );
424
+ }
425
+ f = message.getConnectionstatus();
426
+ if (f.length > 0) {
427
+ writer.writeString(
428
+ 2,
429
+ f
430
+ );
431
+ }
432
+ f = message.getEmail();
433
+ if (f.length > 0) {
434
+ writer.writeString(
435
+ 3,
436
+ f
437
+ );
438
+ }
439
+ f = message.getPhone();
440
+ if (f.length > 0) {
441
+ writer.writeString(
442
+ 4,
443
+ f
444
+ );
445
+ }
446
+ f = message.getFirstname();
447
+ if (f.length > 0) {
448
+ writer.writeString(
449
+ 5,
450
+ f
451
+ );
452
+ }
453
+ f = message.getLastname();
454
+ if (f.length > 0) {
455
+ writer.writeString(
456
+ 6,
457
+ f
458
+ );
459
+ }
460
+ f = message.getImageurl();
461
+ if (f.length > 0) {
462
+ writer.writeString(
463
+ 7,
464
+ f
465
+ );
466
+ }
467
+ f = message.getIscustomimage();
468
+ if (f) {
469
+ writer.writeBool(
470
+ 8,
471
+ f
472
+ );
473
+ }
474
+ };
475
+
476
+
477
+ /**
478
+ * optional int64 userId = 1;
479
+ * @return {number}
480
+ */
481
+ proto.agentbillingserviceapi.Agent.prototype.getUserid = function() {
482
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
483
+ };
484
+
485
+
486
+ /**
487
+ * @param {number} value
488
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
489
+ */
490
+ proto.agentbillingserviceapi.Agent.prototype.setUserid = function(value) {
491
+ return jspb.Message.setProto3IntField(this, 1, value);
492
+ };
493
+
494
+
495
+ /**
496
+ * optional string connectionStatus = 2;
497
+ * @return {string}
498
+ */
499
+ proto.agentbillingserviceapi.Agent.prototype.getConnectionstatus = function() {
500
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
501
+ };
502
+
503
+
504
+ /**
505
+ * @param {string} value
506
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
507
+ */
508
+ proto.agentbillingserviceapi.Agent.prototype.setConnectionstatus = function(value) {
509
+ return jspb.Message.setProto3StringField(this, 2, value);
510
+ };
511
+
512
+
513
+ /**
514
+ * optional string email = 3;
515
+ * @return {string}
516
+ */
517
+ proto.agentbillingserviceapi.Agent.prototype.getEmail = function() {
518
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
519
+ };
520
+
521
+
522
+ /**
523
+ * @param {string} value
524
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
525
+ */
526
+ proto.agentbillingserviceapi.Agent.prototype.setEmail = function(value) {
527
+ return jspb.Message.setProto3StringField(this, 3, value);
528
+ };
529
+
530
+
531
+ /**
532
+ * optional string phone = 4;
533
+ * @return {string}
534
+ */
535
+ proto.agentbillingserviceapi.Agent.prototype.getPhone = function() {
536
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
537
+ };
538
+
539
+
540
+ /**
541
+ * @param {string} value
542
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
543
+ */
544
+ proto.agentbillingserviceapi.Agent.prototype.setPhone = function(value) {
545
+ return jspb.Message.setProto3StringField(this, 4, value);
546
+ };
547
+
548
+
549
+ /**
550
+ * optional string firstName = 5;
551
+ * @return {string}
552
+ */
553
+ proto.agentbillingserviceapi.Agent.prototype.getFirstname = function() {
554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
555
+ };
556
+
557
+
558
+ /**
559
+ * @param {string} value
560
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
561
+ */
562
+ proto.agentbillingserviceapi.Agent.prototype.setFirstname = function(value) {
563
+ return jspb.Message.setProto3StringField(this, 5, value);
564
+ };
565
+
566
+
567
+ /**
568
+ * optional string lastName = 6;
569
+ * @return {string}
570
+ */
571
+ proto.agentbillingserviceapi.Agent.prototype.getLastname = function() {
572
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
573
+ };
574
+
575
+
576
+ /**
577
+ * @param {string} value
578
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
579
+ */
580
+ proto.agentbillingserviceapi.Agent.prototype.setLastname = function(value) {
581
+ return jspb.Message.setProto3StringField(this, 6, value);
582
+ };
583
+
584
+
585
+ /**
586
+ * optional string imageUrl = 7;
587
+ * @return {string}
588
+ */
589
+ proto.agentbillingserviceapi.Agent.prototype.getImageurl = function() {
590
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
591
+ };
592
+
593
+
594
+ /**
595
+ * @param {string} value
596
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
597
+ */
598
+ proto.agentbillingserviceapi.Agent.prototype.setImageurl = function(value) {
599
+ return jspb.Message.setProto3StringField(this, 7, value);
600
+ };
601
+
602
+
603
+ /**
604
+ * optional bool isCustomImage = 8;
605
+ * @return {boolean}
606
+ */
607
+ proto.agentbillingserviceapi.Agent.prototype.getIscustomimage = function() {
608
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
609
+ };
610
+
611
+
612
+ /**
613
+ * @param {boolean} value
614
+ * @return {!proto.agentbillingserviceapi.Agent} returns this
615
+ */
616
+ proto.agentbillingserviceapi.Agent.prototype.setIscustomimage = function(value) {
617
+ return jspb.Message.setProto3BooleanField(this, 8, value);
618
+ };
619
+
620
+
621
+
622
+
623
+
624
+ if (jspb.Message.GENERATE_TO_OBJECT) {
625
+ /**
626
+ * Creates an object representation of this proto.
627
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
628
+ * Optional fields that are not set will be set to undefined.
629
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
630
+ * For the list of reserved names please see:
631
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
632
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
633
+ * JSPB instance for transitional soy proto support:
634
+ * http://goto/soy-param-migration
635
+ * @return {!Object}
636
+ */
637
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.toObject = function(opt_includeInstance) {
638
+ return proto.agentbillingserviceapi.CancelAgentInviteRequest.toObject(opt_includeInstance, this);
639
+ };
640
+
641
+
642
+ /**
643
+ * Static version of the {@see toObject} method.
644
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
645
+ * the JSPB instance for transitional soy proto support:
646
+ * http://goto/soy-param-migration
647
+ * @param {!proto.agentbillingserviceapi.CancelAgentInviteRequest} msg The msg instance to transform.
648
+ * @return {!Object}
649
+ * @suppress {unusedLocalVariables} f is only used for nested messages
650
+ */
651
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.toObject = function(includeInstance, msg) {
652
+ var f, obj = {
653
+ agentemail: jspb.Message.getFieldWithDefault(msg, 1, ""),
654
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0)
655
+ };
656
+
657
+ if (includeInstance) {
658
+ obj.$jspbMessageInstance = msg;
659
+ }
660
+ return obj;
661
+ };
662
+ }
663
+
664
+
665
+ /**
666
+ * Deserializes binary data (in protobuf wire format).
667
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
668
+ * @return {!proto.agentbillingserviceapi.CancelAgentInviteRequest}
669
+ */
670
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.deserializeBinary = function(bytes) {
671
+ var reader = new jspb.BinaryReader(bytes);
672
+ var msg = new proto.agentbillingserviceapi.CancelAgentInviteRequest;
673
+ return proto.agentbillingserviceapi.CancelAgentInviteRequest.deserializeBinaryFromReader(msg, reader);
674
+ };
675
+
676
+
677
+ /**
678
+ * Deserializes binary data (in protobuf wire format) from the
679
+ * given reader into the given message object.
680
+ * @param {!proto.agentbillingserviceapi.CancelAgentInviteRequest} msg The message object to deserialize into.
681
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
682
+ * @return {!proto.agentbillingserviceapi.CancelAgentInviteRequest}
683
+ */
684
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.deserializeBinaryFromReader = function(msg, reader) {
685
+ while (reader.nextField()) {
686
+ if (reader.isEndGroup()) {
687
+ break;
688
+ }
689
+ var field = reader.getFieldNumber();
690
+ switch (field) {
691
+ case 1:
692
+ var value = /** @type {string} */ (reader.readString());
693
+ msg.setAgentemail(value);
694
+ break;
695
+ case 2:
696
+ var value = /** @type {number} */ (reader.readInt64());
697
+ msg.setClientuserid(value);
698
+ break;
699
+ default:
700
+ reader.skipField();
701
+ break;
702
+ }
703
+ }
704
+ return msg;
705
+ };
706
+
707
+
708
+ /**
709
+ * Serializes the message to binary data (in protobuf wire format).
710
+ * @return {!Uint8Array}
711
+ */
712
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.serializeBinary = function() {
713
+ var writer = new jspb.BinaryWriter();
714
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.serializeBinaryToWriter(this, writer);
715
+ return writer.getResultBuffer();
716
+ };
717
+
718
+
719
+ /**
720
+ * Serializes the given message to binary data (in protobuf wire
721
+ * format), writing to the given BinaryWriter.
722
+ * @param {!proto.agentbillingserviceapi.CancelAgentInviteRequest} message
723
+ * @param {!jspb.BinaryWriter} writer
724
+ * @suppress {unusedLocalVariables} f is only used for nested messages
725
+ */
726
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.serializeBinaryToWriter = function(message, writer) {
727
+ var f = undefined;
728
+ f = message.getAgentemail();
729
+ if (f.length > 0) {
730
+ writer.writeString(
731
+ 1,
732
+ f
733
+ );
734
+ }
735
+ f = message.getClientuserid();
736
+ if (f !== 0) {
737
+ writer.writeInt64(
738
+ 2,
739
+ f
740
+ );
741
+ }
742
+ };
743
+
744
+
745
+ /**
746
+ * optional string agentEmail = 1;
747
+ * @return {string}
748
+ */
749
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.getAgentemail = function() {
750
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
751
+ };
752
+
753
+
754
+ /**
755
+ * @param {string} value
756
+ * @return {!proto.agentbillingserviceapi.CancelAgentInviteRequest} returns this
757
+ */
758
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.setAgentemail = function(value) {
759
+ return jspb.Message.setProto3StringField(this, 1, value);
760
+ };
761
+
762
+
763
+ /**
764
+ * optional int64 clientUserId = 2;
765
+ * @return {number}
766
+ */
767
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.getClientuserid = function() {
768
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
769
+ };
770
+
771
+
772
+ /**
773
+ * @param {number} value
774
+ * @return {!proto.agentbillingserviceapi.CancelAgentInviteRequest} returns this
775
+ */
776
+ proto.agentbillingserviceapi.CancelAgentInviteRequest.prototype.setClientuserid = function(value) {
777
+ return jspb.Message.setProto3IntField(this, 2, value);
778
+ };
779
+
780
+
781
+
782
+
783
+
784
+ if (jspb.Message.GENERATE_TO_OBJECT) {
785
+ /**
786
+ * Creates an object representation of this proto.
787
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
788
+ * Optional fields that are not set will be set to undefined.
789
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
790
+ * For the list of reserved names please see:
791
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
792
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
793
+ * JSPB instance for transitional soy proto support:
794
+ * http://goto/soy-param-migration
795
+ * @return {!Object}
796
+ */
797
+ proto.agentbillingserviceapi.Client.prototype.toObject = function(opt_includeInstance) {
798
+ return proto.agentbillingserviceapi.Client.toObject(opt_includeInstance, this);
799
+ };
800
+
801
+
802
+ /**
803
+ * Static version of the {@see toObject} method.
804
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
805
+ * the JSPB instance for transitional soy proto support:
806
+ * http://goto/soy-param-migration
807
+ * @param {!proto.agentbillingserviceapi.Client} msg The msg instance to transform.
808
+ * @return {!Object}
809
+ * @suppress {unusedLocalVariables} f is only used for nested messages
810
+ */
811
+ proto.agentbillingserviceapi.Client.toObject = function(includeInstance, msg) {
812
+ var f, obj = {
813
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
814
+ connectionstatus: jspb.Message.getFieldWithDefault(msg, 2, ""),
815
+ email: jspb.Message.getFieldWithDefault(msg, 3, ""),
816
+ phone: jspb.Message.getFieldWithDefault(msg, 4, ""),
817
+ firstname: jspb.Message.getFieldWithDefault(msg, 5, ""),
818
+ lastname: jspb.Message.getFieldWithDefault(msg, 6, ""),
819
+ imageurl: jspb.Message.getFieldWithDefault(msg, 7, ""),
820
+ iscustomimage: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
821
+ abn: jspb.Message.getFieldWithDefault(msg, 9, ""),
822
+ abnentitiyname: jspb.Message.getFieldWithDefault(msg, 10, ""),
823
+ billscount: jspb.Message.getFieldWithDefault(msg, 11, 0),
824
+ billstotalamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0)
825
+ };
826
+
827
+ if (includeInstance) {
828
+ obj.$jspbMessageInstance = msg;
829
+ }
830
+ return obj;
831
+ };
832
+ }
833
+
834
+
835
+ /**
836
+ * Deserializes binary data (in protobuf wire format).
837
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
838
+ * @return {!proto.agentbillingserviceapi.Client}
839
+ */
840
+ proto.agentbillingserviceapi.Client.deserializeBinary = function(bytes) {
841
+ var reader = new jspb.BinaryReader(bytes);
842
+ var msg = new proto.agentbillingserviceapi.Client;
843
+ return proto.agentbillingserviceapi.Client.deserializeBinaryFromReader(msg, reader);
844
+ };
845
+
846
+
847
+ /**
848
+ * Deserializes binary data (in protobuf wire format) from the
849
+ * given reader into the given message object.
850
+ * @param {!proto.agentbillingserviceapi.Client} msg The message object to deserialize into.
851
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
852
+ * @return {!proto.agentbillingserviceapi.Client}
853
+ */
854
+ proto.agentbillingserviceapi.Client.deserializeBinaryFromReader = function(msg, reader) {
855
+ while (reader.nextField()) {
856
+ if (reader.isEndGroup()) {
857
+ break;
858
+ }
859
+ var field = reader.getFieldNumber();
860
+ switch (field) {
861
+ case 1:
862
+ var value = /** @type {number} */ (reader.readInt64());
863
+ msg.setUserid(value);
864
+ break;
865
+ case 2:
866
+ var value = /** @type {string} */ (reader.readString());
867
+ msg.setConnectionstatus(value);
868
+ break;
869
+ case 3:
870
+ var value = /** @type {string} */ (reader.readString());
871
+ msg.setEmail(value);
872
+ break;
873
+ case 4:
874
+ var value = /** @type {string} */ (reader.readString());
875
+ msg.setPhone(value);
876
+ break;
877
+ case 5:
878
+ var value = /** @type {string} */ (reader.readString());
879
+ msg.setFirstname(value);
880
+ break;
881
+ case 6:
882
+ var value = /** @type {string} */ (reader.readString());
883
+ msg.setLastname(value);
884
+ break;
885
+ case 7:
886
+ var value = /** @type {string} */ (reader.readString());
887
+ msg.setImageurl(value);
888
+ break;
889
+ case 8:
890
+ var value = /** @type {boolean} */ (reader.readBool());
891
+ msg.setIscustomimage(value);
892
+ break;
893
+ case 9:
894
+ var value = /** @type {string} */ (reader.readString());
895
+ msg.setAbn(value);
896
+ break;
897
+ case 10:
898
+ var value = /** @type {string} */ (reader.readString());
899
+ msg.setAbnentitiyname(value);
900
+ break;
901
+ case 11:
902
+ var value = /** @type {number} */ (reader.readInt32());
903
+ msg.setBillscount(value);
904
+ break;
905
+ case 12:
906
+ var value = /** @type {number} */ (reader.readDouble());
907
+ msg.setBillstotalamount(value);
908
+ break;
909
+ default:
910
+ reader.skipField();
911
+ break;
912
+ }
913
+ }
914
+ return msg;
915
+ };
916
+
917
+
918
+ /**
919
+ * Serializes the message to binary data (in protobuf wire format).
920
+ * @return {!Uint8Array}
921
+ */
922
+ proto.agentbillingserviceapi.Client.prototype.serializeBinary = function() {
923
+ var writer = new jspb.BinaryWriter();
924
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter(this, writer);
925
+ return writer.getResultBuffer();
926
+ };
927
+
928
+
929
+ /**
930
+ * Serializes the given message to binary data (in protobuf wire
931
+ * format), writing to the given BinaryWriter.
932
+ * @param {!proto.agentbillingserviceapi.Client} message
933
+ * @param {!jspb.BinaryWriter} writer
934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
935
+ */
936
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter = function(message, writer) {
937
+ var f = undefined;
938
+ f = message.getUserid();
939
+ if (f !== 0) {
940
+ writer.writeInt64(
941
+ 1,
942
+ f
943
+ );
944
+ }
945
+ f = message.getConnectionstatus();
946
+ if (f.length > 0) {
947
+ writer.writeString(
948
+ 2,
949
+ f
950
+ );
951
+ }
952
+ f = message.getEmail();
953
+ if (f.length > 0) {
954
+ writer.writeString(
955
+ 3,
956
+ f
957
+ );
958
+ }
959
+ f = message.getPhone();
960
+ if (f.length > 0) {
961
+ writer.writeString(
962
+ 4,
963
+ f
964
+ );
965
+ }
966
+ f = message.getFirstname();
967
+ if (f.length > 0) {
968
+ writer.writeString(
969
+ 5,
970
+ f
971
+ );
972
+ }
973
+ f = message.getLastname();
974
+ if (f.length > 0) {
975
+ writer.writeString(
976
+ 6,
977
+ f
978
+ );
979
+ }
980
+ f = message.getImageurl();
981
+ if (f.length > 0) {
982
+ writer.writeString(
983
+ 7,
984
+ f
985
+ );
986
+ }
987
+ f = message.getIscustomimage();
988
+ if (f) {
989
+ writer.writeBool(
990
+ 8,
991
+ f
992
+ );
993
+ }
994
+ f = message.getAbn();
995
+ if (f.length > 0) {
996
+ writer.writeString(
997
+ 9,
998
+ f
999
+ );
1000
+ }
1001
+ f = message.getAbnentitiyname();
1002
+ if (f.length > 0) {
1003
+ writer.writeString(
1004
+ 10,
1005
+ f
1006
+ );
1007
+ }
1008
+ f = message.getBillscount();
1009
+ if (f !== 0) {
1010
+ writer.writeInt32(
1011
+ 11,
1012
+ f
1013
+ );
1014
+ }
1015
+ f = message.getBillstotalamount();
1016
+ if (f !== 0.0) {
1017
+ writer.writeDouble(
1018
+ 12,
1019
+ f
1020
+ );
1021
+ }
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * optional int64 userId = 1;
1027
+ * @return {number}
1028
+ */
1029
+ proto.agentbillingserviceapi.Client.prototype.getUserid = function() {
1030
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1031
+ };
1032
+
1033
+
1034
+ /**
1035
+ * @param {number} value
1036
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1037
+ */
1038
+ proto.agentbillingserviceapi.Client.prototype.setUserid = function(value) {
1039
+ return jspb.Message.setProto3IntField(this, 1, value);
1040
+ };
1041
+
1042
+
1043
+ /**
1044
+ * optional string connectionStatus = 2;
1045
+ * @return {string}
1046
+ */
1047
+ proto.agentbillingserviceapi.Client.prototype.getConnectionstatus = function() {
1048
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1049
+ };
1050
+
1051
+
1052
+ /**
1053
+ * @param {string} value
1054
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1055
+ */
1056
+ proto.agentbillingserviceapi.Client.prototype.setConnectionstatus = function(value) {
1057
+ return jspb.Message.setProto3StringField(this, 2, value);
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * optional string email = 3;
1063
+ * @return {string}
1064
+ */
1065
+ proto.agentbillingserviceapi.Client.prototype.getEmail = function() {
1066
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * @param {string} value
1072
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1073
+ */
1074
+ proto.agentbillingserviceapi.Client.prototype.setEmail = function(value) {
1075
+ return jspb.Message.setProto3StringField(this, 3, value);
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * optional string phone = 4;
1081
+ * @return {string}
1082
+ */
1083
+ proto.agentbillingserviceapi.Client.prototype.getPhone = function() {
1084
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * @param {string} value
1090
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1091
+ */
1092
+ proto.agentbillingserviceapi.Client.prototype.setPhone = function(value) {
1093
+ return jspb.Message.setProto3StringField(this, 4, value);
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * optional string firstName = 5;
1099
+ * @return {string}
1100
+ */
1101
+ proto.agentbillingserviceapi.Client.prototype.getFirstname = function() {
1102
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * @param {string} value
1108
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1109
+ */
1110
+ proto.agentbillingserviceapi.Client.prototype.setFirstname = function(value) {
1111
+ return jspb.Message.setProto3StringField(this, 5, value);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * optional string lastName = 6;
1117
+ * @return {string}
1118
+ */
1119
+ proto.agentbillingserviceapi.Client.prototype.getLastname = function() {
1120
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * @param {string} value
1126
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1127
+ */
1128
+ proto.agentbillingserviceapi.Client.prototype.setLastname = function(value) {
1129
+ return jspb.Message.setProto3StringField(this, 6, value);
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * optional string imageUrl = 7;
1135
+ * @return {string}
1136
+ */
1137
+ proto.agentbillingserviceapi.Client.prototype.getImageurl = function() {
1138
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * @param {string} value
1144
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1145
+ */
1146
+ proto.agentbillingserviceapi.Client.prototype.setImageurl = function(value) {
1147
+ return jspb.Message.setProto3StringField(this, 7, value);
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * optional bool isCustomImage = 8;
1153
+ * @return {boolean}
1154
+ */
1155
+ proto.agentbillingserviceapi.Client.prototype.getIscustomimage = function() {
1156
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * @param {boolean} value
1162
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1163
+ */
1164
+ proto.agentbillingserviceapi.Client.prototype.setIscustomimage = function(value) {
1165
+ return jspb.Message.setProto3BooleanField(this, 8, value);
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * optional string abn = 9;
1171
+ * @return {string}
1172
+ */
1173
+ proto.agentbillingserviceapi.Client.prototype.getAbn = function() {
1174
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * @param {string} value
1180
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1181
+ */
1182
+ proto.agentbillingserviceapi.Client.prototype.setAbn = function(value) {
1183
+ return jspb.Message.setProto3StringField(this, 9, value);
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * optional string abnEntitiyName = 10;
1189
+ * @return {string}
1190
+ */
1191
+ proto.agentbillingserviceapi.Client.prototype.getAbnentitiyname = function() {
1192
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * @param {string} value
1198
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1199
+ */
1200
+ proto.agentbillingserviceapi.Client.prototype.setAbnentitiyname = function(value) {
1201
+ return jspb.Message.setProto3StringField(this, 10, value);
1202
+ };
1203
+
1204
+
1205
+ /**
1206
+ * optional int32 billsCount = 11;
1207
+ * @return {number}
1208
+ */
1209
+ proto.agentbillingserviceapi.Client.prototype.getBillscount = function() {
1210
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
1211
+ };
1212
+
1213
+
1214
+ /**
1215
+ * @param {number} value
1216
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1217
+ */
1218
+ proto.agentbillingserviceapi.Client.prototype.setBillscount = function(value) {
1219
+ return jspb.Message.setProto3IntField(this, 11, value);
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * optional double billsTotalAmount = 12;
1225
+ * @return {number}
1226
+ */
1227
+ proto.agentbillingserviceapi.Client.prototype.getBillstotalamount = function() {
1228
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
1229
+ };
1230
+
1231
+
1232
+ /**
1233
+ * @param {number} value
1234
+ * @return {!proto.agentbillingserviceapi.Client} returns this
1235
+ */
1236
+ proto.agentbillingserviceapi.Client.prototype.setBillstotalamount = function(value) {
1237
+ return jspb.Message.setProto3FloatField(this, 12, value);
1238
+ };
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1245
+ /**
1246
+ * Creates an object representation of this proto.
1247
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1248
+ * Optional fields that are not set will be set to undefined.
1249
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1250
+ * For the list of reserved names please see:
1251
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1252
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1253
+ * JSPB instance for transitional soy proto support:
1254
+ * http://goto/soy-param-migration
1255
+ * @return {!Object}
1256
+ */
1257
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.toObject = function(opt_includeInstance) {
1258
+ return proto.agentbillingserviceapi.ConnectAgentRequest.toObject(opt_includeInstance, this);
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * Static version of the {@see toObject} method.
1264
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1265
+ * the JSPB instance for transitional soy proto support:
1266
+ * http://goto/soy-param-migration
1267
+ * @param {!proto.agentbillingserviceapi.ConnectAgentRequest} msg The msg instance to transform.
1268
+ * @return {!Object}
1269
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1270
+ */
1271
+ proto.agentbillingserviceapi.ConnectAgentRequest.toObject = function(includeInstance, msg) {
1272
+ var f, obj = {
1273
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1274
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0)
1275
+ };
1276
+
1277
+ if (includeInstance) {
1278
+ obj.$jspbMessageInstance = msg;
1279
+ }
1280
+ return obj;
1281
+ };
1282
+ }
1283
+
1284
+
1285
+ /**
1286
+ * Deserializes binary data (in protobuf wire format).
1287
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1288
+ * @return {!proto.agentbillingserviceapi.ConnectAgentRequest}
1289
+ */
1290
+ proto.agentbillingserviceapi.ConnectAgentRequest.deserializeBinary = function(bytes) {
1291
+ var reader = new jspb.BinaryReader(bytes);
1292
+ var msg = new proto.agentbillingserviceapi.ConnectAgentRequest;
1293
+ return proto.agentbillingserviceapi.ConnectAgentRequest.deserializeBinaryFromReader(msg, reader);
1294
+ };
1295
+
1296
+
1297
+ /**
1298
+ * Deserializes binary data (in protobuf wire format) from the
1299
+ * given reader into the given message object.
1300
+ * @param {!proto.agentbillingserviceapi.ConnectAgentRequest} msg The message object to deserialize into.
1301
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1302
+ * @return {!proto.agentbillingserviceapi.ConnectAgentRequest}
1303
+ */
1304
+ proto.agentbillingserviceapi.ConnectAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
1305
+ while (reader.nextField()) {
1306
+ if (reader.isEndGroup()) {
1307
+ break;
1308
+ }
1309
+ var field = reader.getFieldNumber();
1310
+ switch (field) {
1311
+ case 1:
1312
+ var value = /** @type {number} */ (reader.readInt64());
1313
+ msg.setAgentuserid(value);
1314
+ break;
1315
+ case 2:
1316
+ var value = /** @type {number} */ (reader.readInt64());
1317
+ msg.setClientuserid(value);
1318
+ break;
1319
+ default:
1320
+ reader.skipField();
1321
+ break;
1322
+ }
1323
+ }
1324
+ return msg;
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * Serializes the message to binary data (in protobuf wire format).
1330
+ * @return {!Uint8Array}
1331
+ */
1332
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.serializeBinary = function() {
1333
+ var writer = new jspb.BinaryWriter();
1334
+ proto.agentbillingserviceapi.ConnectAgentRequest.serializeBinaryToWriter(this, writer);
1335
+ return writer.getResultBuffer();
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * Serializes the given message to binary data (in protobuf wire
1341
+ * format), writing to the given BinaryWriter.
1342
+ * @param {!proto.agentbillingserviceapi.ConnectAgentRequest} message
1343
+ * @param {!jspb.BinaryWriter} writer
1344
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1345
+ */
1346
+ proto.agentbillingserviceapi.ConnectAgentRequest.serializeBinaryToWriter = function(message, writer) {
1347
+ var f = undefined;
1348
+ f = message.getAgentuserid();
1349
+ if (f !== 0) {
1350
+ writer.writeInt64(
1351
+ 1,
1352
+ f
1353
+ );
1354
+ }
1355
+ f = message.getClientuserid();
1356
+ if (f !== 0) {
1357
+ writer.writeInt64(
1358
+ 2,
1359
+ f
1360
+ );
1361
+ }
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * optional int64 agentUserId = 1;
1367
+ * @return {number}
1368
+ */
1369
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.getAgentuserid = function() {
1370
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * @param {number} value
1376
+ * @return {!proto.agentbillingserviceapi.ConnectAgentRequest} returns this
1377
+ */
1378
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.setAgentuserid = function(value) {
1379
+ return jspb.Message.setProto3IntField(this, 1, value);
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * optional int64 clientUserId = 2;
1385
+ * @return {number}
1386
+ */
1387
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.getClientuserid = function() {
1388
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1389
+ };
1390
+
1391
+
1392
+ /**
1393
+ * @param {number} value
1394
+ * @return {!proto.agentbillingserviceapi.ConnectAgentRequest} returns this
1395
+ */
1396
+ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.setClientuserid = function(value) {
1397
+ return jspb.Message.setProto3IntField(this, 2, value);
1398
+ };
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1405
+ /**
1406
+ * Creates an object representation of this proto.
1407
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1408
+ * Optional fields that are not set will be set to undefined.
1409
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1410
+ * For the list of reserved names please see:
1411
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1412
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1413
+ * JSPB instance for transitional soy proto support:
1414
+ * http://goto/soy-param-migration
1415
+ * @return {!Object}
1416
+ */
1417
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.toObject = function(opt_includeInstance) {
1418
+ return proto.agentbillingserviceapi.DisconnectAgentRequest.toObject(opt_includeInstance, this);
1419
+ };
1420
+
1421
+
1422
+ /**
1423
+ * Static version of the {@see toObject} method.
1424
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1425
+ * the JSPB instance for transitional soy proto support:
1426
+ * http://goto/soy-param-migration
1427
+ * @param {!proto.agentbillingserviceapi.DisconnectAgentRequest} msg The msg instance to transform.
1428
+ * @return {!Object}
1429
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1430
+ */
1431
+ proto.agentbillingserviceapi.DisconnectAgentRequest.toObject = function(includeInstance, msg) {
1432
+ var f, obj = {
1433
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1434
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1435
+ triggeredbyagent: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1436
+ };
1437
+
1438
+ if (includeInstance) {
1439
+ obj.$jspbMessageInstance = msg;
1440
+ }
1441
+ return obj;
1442
+ };
1443
+ }
1444
+
1445
+
1446
+ /**
1447
+ * Deserializes binary data (in protobuf wire format).
1448
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1449
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest}
1450
+ */
1451
+ proto.agentbillingserviceapi.DisconnectAgentRequest.deserializeBinary = function(bytes) {
1452
+ var reader = new jspb.BinaryReader(bytes);
1453
+ var msg = new proto.agentbillingserviceapi.DisconnectAgentRequest;
1454
+ return proto.agentbillingserviceapi.DisconnectAgentRequest.deserializeBinaryFromReader(msg, reader);
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * Deserializes binary data (in protobuf wire format) from the
1460
+ * given reader into the given message object.
1461
+ * @param {!proto.agentbillingserviceapi.DisconnectAgentRequest} msg The message object to deserialize into.
1462
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1463
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest}
1464
+ */
1465
+ proto.agentbillingserviceapi.DisconnectAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
1466
+ while (reader.nextField()) {
1467
+ if (reader.isEndGroup()) {
1468
+ break;
1469
+ }
1470
+ var field = reader.getFieldNumber();
1471
+ switch (field) {
1472
+ case 1:
1473
+ var value = /** @type {number} */ (reader.readInt64());
1474
+ msg.setAgentuserid(value);
1475
+ break;
1476
+ case 2:
1477
+ var value = /** @type {number} */ (reader.readInt64());
1478
+ msg.setClientuserid(value);
1479
+ break;
1480
+ case 3:
1481
+ var value = /** @type {boolean} */ (reader.readBool());
1482
+ msg.setTriggeredbyagent(value);
1483
+ break;
1484
+ default:
1485
+ reader.skipField();
1486
+ break;
1487
+ }
1488
+ }
1489
+ return msg;
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * Serializes the message to binary data (in protobuf wire format).
1495
+ * @return {!Uint8Array}
1496
+ */
1497
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.serializeBinary = function() {
1498
+ var writer = new jspb.BinaryWriter();
1499
+ proto.agentbillingserviceapi.DisconnectAgentRequest.serializeBinaryToWriter(this, writer);
1500
+ return writer.getResultBuffer();
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * Serializes the given message to binary data (in protobuf wire
1506
+ * format), writing to the given BinaryWriter.
1507
+ * @param {!proto.agentbillingserviceapi.DisconnectAgentRequest} message
1508
+ * @param {!jspb.BinaryWriter} writer
1509
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1510
+ */
1511
+ proto.agentbillingserviceapi.DisconnectAgentRequest.serializeBinaryToWriter = function(message, writer) {
1512
+ var f = undefined;
1513
+ f = message.getAgentuserid();
1514
+ if (f !== 0) {
1515
+ writer.writeInt64(
1516
+ 1,
1517
+ f
1518
+ );
1519
+ }
1520
+ f = message.getClientuserid();
1521
+ if (f !== 0) {
1522
+ writer.writeInt64(
1523
+ 2,
1524
+ f
1525
+ );
1526
+ }
1527
+ f = message.getTriggeredbyagent();
1528
+ if (f) {
1529
+ writer.writeBool(
1530
+ 3,
1531
+ f
1532
+ );
1533
+ }
1534
+ };
1535
+
1536
+
1537
+ /**
1538
+ * optional int64 agentUserId = 1;
1539
+ * @return {number}
1540
+ */
1541
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.getAgentuserid = function() {
1542
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1543
+ };
1544
+
1545
+
1546
+ /**
1547
+ * @param {number} value
1548
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest} returns this
1549
+ */
1550
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.setAgentuserid = function(value) {
1551
+ return jspb.Message.setProto3IntField(this, 1, value);
1552
+ };
1553
+
1554
+
1555
+ /**
1556
+ * optional int64 clientUserId = 2;
1557
+ * @return {number}
1558
+ */
1559
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.getClientuserid = function() {
1560
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1561
+ };
1562
+
1563
+
1564
+ /**
1565
+ * @param {number} value
1566
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest} returns this
1567
+ */
1568
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.setClientuserid = function(value) {
1569
+ return jspb.Message.setProto3IntField(this, 2, value);
1570
+ };
1571
+
1572
+
1573
+ /**
1574
+ * optional bool triggeredByAgent = 3;
1575
+ * @return {boolean}
1576
+ */
1577
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.getTriggeredbyagent = function() {
1578
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1579
+ };
1580
+
1581
+
1582
+ /**
1583
+ * @param {boolean} value
1584
+ * @return {!proto.agentbillingserviceapi.DisconnectAgentRequest} returns this
1585
+ */
1586
+ proto.agentbillingserviceapi.DisconnectAgentRequest.prototype.setTriggeredbyagent = function(value) {
1587
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1588
+ };
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1595
+ /**
1596
+ * Creates an object representation of this proto.
1597
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1598
+ * Optional fields that are not set will be set to undefined.
1599
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1600
+ * For the list of reserved names please see:
1601
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1602
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1603
+ * JSPB instance for transitional soy proto support:
1604
+ * http://goto/soy-param-migration
1605
+ * @return {!Object}
1606
+ */
1607
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.toObject = function(opt_includeInstance) {
1608
+ return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject(opt_includeInstance, this);
1609
+ };
1610
+
1611
+
1612
+ /**
1613
+ * Static version of the {@see toObject} method.
1614
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1615
+ * the JSPB instance for transitional soy proto support:
1616
+ * http://goto/soy-param-migration
1617
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The msg instance to transform.
1618
+ * @return {!Object}
1619
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1620
+ */
1621
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject = function(includeInstance, msg) {
1622
+ var f, obj = {
1623
+ page: jspb.Message.getFieldWithDefault(msg, 1, 0),
1624
+ size: jspb.Message.getFieldWithDefault(msg, 2, 0),
1625
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
1626
+ };
1627
+
1628
+ if (includeInstance) {
1629
+ obj.$jspbMessageInstance = msg;
1630
+ }
1631
+ return obj;
1632
+ };
1633
+ }
1634
+
1635
+
1636
+ /**
1637
+ * Deserializes binary data (in protobuf wire format).
1638
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1639
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
1640
+ */
1641
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinary = function(bytes) {
1642
+ var reader = new jspb.BinaryReader(bytes);
1643
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsRequest;
1644
+ return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader(msg, reader);
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * Deserializes binary data (in protobuf wire format) from the
1650
+ * given reader into the given message object.
1651
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The message object to deserialize into.
1652
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1653
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
1654
+ */
1655
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader = function(msg, reader) {
1656
+ while (reader.nextField()) {
1657
+ if (reader.isEndGroup()) {
1658
+ break;
1659
+ }
1660
+ var field = reader.getFieldNumber();
1661
+ switch (field) {
1662
+ case 1:
1663
+ var value = /** @type {number} */ (reader.readInt32());
1664
+ msg.setPage(value);
1665
+ break;
1666
+ case 2:
1667
+ var value = /** @type {number} */ (reader.readInt32());
1668
+ msg.setSize(value);
1669
+ break;
1670
+ case 3:
1671
+ var value = /** @type {number} */ (reader.readInt64());
1672
+ msg.setUserid(value);
1673
+ break;
1674
+ default:
1675
+ reader.skipField();
1676
+ break;
1677
+ }
1678
+ }
1679
+ return msg;
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * Serializes the message to binary data (in protobuf wire format).
1685
+ * @return {!Uint8Array}
1686
+ */
1687
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.serializeBinary = function() {
1688
+ var writer = new jspb.BinaryWriter();
1689
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter(this, writer);
1690
+ return writer.getResultBuffer();
1691
+ };
1692
+
1693
+
1694
+ /**
1695
+ * Serializes the given message to binary data (in protobuf wire
1696
+ * format), writing to the given BinaryWriter.
1697
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} message
1698
+ * @param {!jspb.BinaryWriter} writer
1699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1700
+ */
1701
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter = function(message, writer) {
1702
+ var f = undefined;
1703
+ f = message.getPage();
1704
+ if (f !== 0) {
1705
+ writer.writeInt32(
1706
+ 1,
1707
+ f
1708
+ );
1709
+ }
1710
+ f = message.getSize();
1711
+ if (f !== 0) {
1712
+ writer.writeInt32(
1713
+ 2,
1714
+ f
1715
+ );
1716
+ }
1717
+ f = message.getUserid();
1718
+ if (f !== 0) {
1719
+ writer.writeInt64(
1720
+ 3,
1721
+ f
1722
+ );
1723
+ }
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * optional int32 page = 1;
1729
+ * @return {number}
1730
+ */
1731
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getPage = function() {
1732
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1733
+ };
1734
+
1735
+
1736
+ /**
1737
+ * @param {number} value
1738
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
1739
+ */
1740
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setPage = function(value) {
1741
+ return jspb.Message.setProto3IntField(this, 1, value);
1742
+ };
1743
+
1744
+
1745
+ /**
1746
+ * optional int32 size = 2;
1747
+ * @return {number}
1748
+ */
1749
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getSize = function() {
1750
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * @param {number} value
1756
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
1757
+ */
1758
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setSize = function(value) {
1759
+ return jspb.Message.setProto3IntField(this, 2, value);
1760
+ };
1761
+
1762
+
1763
+ /**
1764
+ * optional int64 userId = 3;
1765
+ * @return {number}
1766
+ */
1767
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getUserid = function() {
1768
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1769
+ };
1770
+
1771
+
1772
+ /**
1773
+ * @param {number} value
1774
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
1775
+ */
1776
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setUserid = function(value) {
1777
+ return jspb.Message.setProto3IntField(this, 3, value);
1778
+ };
1779
+
1780
+
1781
+
1782
+ /**
1783
+ * List of repeated fields within this message type.
1784
+ * @private {!Array<number>}
1785
+ * @const
1786
+ */
1787
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.repeatedFields_ = [2];
1788
+
1789
+
1790
+
1791
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1792
+ /**
1793
+ * Creates an object representation of this proto.
1794
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1795
+ * Optional fields that are not set will be set to undefined.
1796
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1797
+ * For the list of reserved names please see:
1798
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1799
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1800
+ * JSPB instance for transitional soy proto support:
1801
+ * http://goto/soy-param-migration
1802
+ * @return {!Object}
1803
+ */
1804
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.toObject = function(opt_includeInstance) {
1805
+ return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject(opt_includeInstance, this);
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * Static version of the {@see toObject} method.
1811
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1812
+ * the JSPB instance for transitional soy proto support:
1813
+ * http://goto/soy-param-migration
1814
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The msg instance to transform.
1815
+ * @return {!Object}
1816
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1817
+ */
1818
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject = function(includeInstance, msg) {
1819
+ var f, obj = {
1820
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
1821
+ associatedagentsList: jspb.Message.toObjectList(msg.getAssociatedagentsList(),
1822
+ proto.agentbillingserviceapi.Agent.toObject, includeInstance),
1823
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
1824
+ size: jspb.Message.getFieldWithDefault(msg, 4, 0),
1825
+ totalpages: jspb.Message.getFieldWithDefault(msg, 5, 0),
1826
+ totalsize: jspb.Message.getFieldWithDefault(msg, 6, 0)
1827
+ };
1828
+
1829
+ if (includeInstance) {
1830
+ obj.$jspbMessageInstance = msg;
1831
+ }
1832
+ return obj;
1833
+ };
1834
+ }
1835
+
1836
+
1837
+ /**
1838
+ * Deserializes binary data (in protobuf wire format).
1839
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1840
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
1841
+ */
1842
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinary = function(bytes) {
1843
+ var reader = new jspb.BinaryReader(bytes);
1844
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsResponse;
1845
+ return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader(msg, reader);
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * Deserializes binary data (in protobuf wire format) from the
1851
+ * given reader into the given message object.
1852
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The message object to deserialize into.
1853
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1854
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
1855
+ */
1856
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader = function(msg, reader) {
1857
+ while (reader.nextField()) {
1858
+ if (reader.isEndGroup()) {
1859
+ break;
1860
+ }
1861
+ var field = reader.getFieldNumber();
1862
+ switch (field) {
1863
+ case 1:
1864
+ var value = new proto.agentbillingserviceapi.ResponseCode;
1865
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
1866
+ msg.setResponsecode(value);
1867
+ break;
1868
+ case 2:
1869
+ var value = new proto.agentbillingserviceapi.Agent;
1870
+ reader.readMessage(value,proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader);
1871
+ msg.addAssociatedagents(value);
1872
+ break;
1873
+ case 3:
1874
+ var value = /** @type {number} */ (reader.readInt32());
1875
+ msg.setPage(value);
1876
+ break;
1877
+ case 4:
1878
+ var value = /** @type {number} */ (reader.readInt32());
1879
+ msg.setSize(value);
1880
+ break;
1881
+ case 5:
1882
+ var value = /** @type {number} */ (reader.readInt32());
1883
+ msg.setTotalpages(value);
1884
+ break;
1885
+ case 6:
1886
+ var value = /** @type {number} */ (reader.readInt64());
1887
+ msg.setTotalsize(value);
1888
+ break;
1889
+ default:
1890
+ reader.skipField();
1891
+ break;
1892
+ }
1893
+ }
1894
+ return msg;
1895
+ };
1896
+
1897
+
1898
+ /**
1899
+ * Serializes the message to binary data (in protobuf wire format).
1900
+ * @return {!Uint8Array}
1901
+ */
1902
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.serializeBinary = function() {
1903
+ var writer = new jspb.BinaryWriter();
1904
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter(this, writer);
1905
+ return writer.getResultBuffer();
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * Serializes the given message to binary data (in protobuf wire
1911
+ * format), writing to the given BinaryWriter.
1912
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} message
1913
+ * @param {!jspb.BinaryWriter} writer
1914
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1915
+ */
1916
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter = function(message, writer) {
1917
+ var f = undefined;
1918
+ f = message.getResponsecode();
1919
+ if (f != null) {
1920
+ writer.writeMessage(
1921
+ 1,
1922
+ f,
1923
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
1924
+ );
1925
+ }
1926
+ f = message.getAssociatedagentsList();
1927
+ if (f.length > 0) {
1928
+ writer.writeRepeatedMessage(
1929
+ 2,
1930
+ f,
1931
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter
1932
+ );
1933
+ }
1934
+ f = message.getPage();
1935
+ if (f !== 0) {
1936
+ writer.writeInt32(
1937
+ 3,
1938
+ f
1939
+ );
1940
+ }
1941
+ f = message.getSize();
1942
+ if (f !== 0) {
1943
+ writer.writeInt32(
1944
+ 4,
1945
+ f
1946
+ );
1947
+ }
1948
+ f = message.getTotalpages();
1949
+ if (f !== 0) {
1950
+ writer.writeInt32(
1951
+ 5,
1952
+ f
1953
+ );
1954
+ }
1955
+ f = message.getTotalsize();
1956
+ if (f !== 0) {
1957
+ writer.writeInt64(
1958
+ 6,
1959
+ f
1960
+ );
1961
+ }
1962
+ };
1963
+
1964
+
1965
+ /**
1966
+ * optional ResponseCode responseCode = 1;
1967
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
1968
+ */
1969
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getResponsecode = function() {
1970
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
1971
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
1972
+ };
1973
+
1974
+
1975
+ /**
1976
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
1977
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
1978
+ */
1979
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setResponsecode = function(value) {
1980
+ return jspb.Message.setWrapperField(this, 1, value);
1981
+ };
1982
+
1983
+
1984
+ /**
1985
+ * Clears the message field making it undefined.
1986
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
1987
+ */
1988
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearResponsecode = function() {
1989
+ return this.setResponsecode(undefined);
1990
+ };
1991
+
1992
+
1993
+ /**
1994
+ * Returns whether this field is set.
1995
+ * @return {boolean}
1996
+ */
1997
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.hasResponsecode = function() {
1998
+ return jspb.Message.getField(this, 1) != null;
1999
+ };
2000
+
2001
+
2002
+ /**
2003
+ * repeated Agent associatedAgents = 2;
2004
+ * @return {!Array<!proto.agentbillingserviceapi.Agent>}
2005
+ */
2006
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getAssociatedagentsList = function() {
2007
+ return /** @type{!Array<!proto.agentbillingserviceapi.Agent>} */ (
2008
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.Agent, 2));
2009
+ };
2010
+
2011
+
2012
+ /**
2013
+ * @param {!Array<!proto.agentbillingserviceapi.Agent>} value
2014
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2015
+ */
2016
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setAssociatedagentsList = function(value) {
2017
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2018
+ };
2019
+
2020
+
2021
+ /**
2022
+ * @param {!proto.agentbillingserviceapi.Agent=} opt_value
2023
+ * @param {number=} opt_index
2024
+ * @return {!proto.agentbillingserviceapi.Agent}
2025
+ */
2026
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.addAssociatedagents = function(opt_value, opt_index) {
2027
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.agentbillingserviceapi.Agent, opt_index);
2028
+ };
2029
+
2030
+
2031
+ /**
2032
+ * Clears the list making it empty but non-null.
2033
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2034
+ */
2035
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearAssociatedagentsList = function() {
2036
+ return this.setAssociatedagentsList([]);
2037
+ };
2038
+
2039
+
2040
+ /**
2041
+ * optional int32 page = 3;
2042
+ * @return {number}
2043
+ */
2044
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getPage = function() {
2045
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2046
+ };
2047
+
2048
+
2049
+ /**
2050
+ * @param {number} value
2051
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2052
+ */
2053
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setPage = function(value) {
2054
+ return jspb.Message.setProto3IntField(this, 3, value);
2055
+ };
2056
+
2057
+
2058
+ /**
2059
+ * optional int32 size = 4;
2060
+ * @return {number}
2061
+ */
2062
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getSize = function() {
2063
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2064
+ };
2065
+
2066
+
2067
+ /**
2068
+ * @param {number} value
2069
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2070
+ */
2071
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setSize = function(value) {
2072
+ return jspb.Message.setProto3IntField(this, 4, value);
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * optional int32 totalPages = 5;
2078
+ * @return {number}
2079
+ */
2080
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalpages = function() {
2081
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * @param {number} value
2087
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2088
+ */
2089
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalpages = function(value) {
2090
+ return jspb.Message.setProto3IntField(this, 5, value);
2091
+ };
2092
+
2093
+
2094
+ /**
2095
+ * optional int64 totalSize = 6;
2096
+ * @return {number}
2097
+ */
2098
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalsize = function() {
2099
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2100
+ };
2101
+
2102
+
2103
+ /**
2104
+ * @param {number} value
2105
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2106
+ */
2107
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalsize = function(value) {
2108
+ return jspb.Message.setProto3IntField(this, 6, value);
2109
+ };
2110
+
2111
+
2112
+
2113
+ /**
2114
+ * List of repeated fields within this message type.
2115
+ * @private {!Array<number>}
2116
+ * @const
2117
+ */
2118
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.repeatedFields_ = [2];
2119
+
2120
+
2121
+
2122
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2123
+ /**
2124
+ * Creates an object representation of this proto.
2125
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2126
+ * Optional fields that are not set will be set to undefined.
2127
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2128
+ * For the list of reserved names please see:
2129
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2130
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2131
+ * JSPB instance for transitional soy proto support:
2132
+ * http://goto/soy-param-migration
2133
+ * @return {!Object}
2134
+ */
2135
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.toObject = function(opt_includeInstance) {
2136
+ return proto.agentbillingserviceapi.GetAssociatedClientsResponse.toObject(opt_includeInstance, this);
2137
+ };
2138
+
2139
+
2140
+ /**
2141
+ * Static version of the {@see toObject} method.
2142
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2143
+ * the JSPB instance for transitional soy proto support:
2144
+ * http://goto/soy-param-migration
2145
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} msg The msg instance to transform.
2146
+ * @return {!Object}
2147
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2148
+ */
2149
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.toObject = function(includeInstance, msg) {
2150
+ var f, obj = {
2151
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2152
+ associatedclientsList: jspb.Message.toObjectList(msg.getAssociatedclientsList(),
2153
+ proto.agentbillingserviceapi.Client.toObject, includeInstance),
2154
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
2155
+ size: jspb.Message.getFieldWithDefault(msg, 4, 0),
2156
+ totalpages: jspb.Message.getFieldWithDefault(msg, 5, 0),
2157
+ totalsize: jspb.Message.getFieldWithDefault(msg, 6, 0)
2158
+ };
2159
+
2160
+ if (includeInstance) {
2161
+ obj.$jspbMessageInstance = msg;
2162
+ }
2163
+ return obj;
2164
+ };
2165
+ }
2166
+
2167
+
2168
+ /**
2169
+ * Deserializes binary data (in protobuf wire format).
2170
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2171
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse}
2172
+ */
2173
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.deserializeBinary = function(bytes) {
2174
+ var reader = new jspb.BinaryReader(bytes);
2175
+ var msg = new proto.agentbillingserviceapi.GetAssociatedClientsResponse;
2176
+ return proto.agentbillingserviceapi.GetAssociatedClientsResponse.deserializeBinaryFromReader(msg, reader);
2177
+ };
2178
+
2179
+
2180
+ /**
2181
+ * Deserializes binary data (in protobuf wire format) from the
2182
+ * given reader into the given message object.
2183
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} msg The message object to deserialize into.
2184
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2185
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse}
2186
+ */
2187
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.deserializeBinaryFromReader = function(msg, reader) {
2188
+ while (reader.nextField()) {
2189
+ if (reader.isEndGroup()) {
2190
+ break;
2191
+ }
2192
+ var field = reader.getFieldNumber();
2193
+ switch (field) {
2194
+ case 1:
2195
+ var value = new proto.agentbillingserviceapi.ResponseCode;
2196
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
2197
+ msg.setResponsecode(value);
2198
+ break;
2199
+ case 2:
2200
+ var value = new proto.agentbillingserviceapi.Client;
2201
+ reader.readMessage(value,proto.agentbillingserviceapi.Client.deserializeBinaryFromReader);
2202
+ msg.addAssociatedclients(value);
2203
+ break;
2204
+ case 3:
2205
+ var value = /** @type {number} */ (reader.readInt32());
2206
+ msg.setPage(value);
2207
+ break;
2208
+ case 4:
2209
+ var value = /** @type {number} */ (reader.readInt32());
2210
+ msg.setSize(value);
2211
+ break;
2212
+ case 5:
2213
+ var value = /** @type {number} */ (reader.readInt32());
2214
+ msg.setTotalpages(value);
2215
+ break;
2216
+ case 6:
2217
+ var value = /** @type {number} */ (reader.readInt64());
2218
+ msg.setTotalsize(value);
2219
+ break;
2220
+ default:
2221
+ reader.skipField();
2222
+ break;
2223
+ }
2224
+ }
2225
+ return msg;
2226
+ };
2227
+
2228
+
2229
+ /**
2230
+ * Serializes the message to binary data (in protobuf wire format).
2231
+ * @return {!Uint8Array}
2232
+ */
2233
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.serializeBinary = function() {
2234
+ var writer = new jspb.BinaryWriter();
2235
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.serializeBinaryToWriter(this, writer);
2236
+ return writer.getResultBuffer();
2237
+ };
2238
+
2239
+
2240
+ /**
2241
+ * Serializes the given message to binary data (in protobuf wire
2242
+ * format), writing to the given BinaryWriter.
2243
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} message
2244
+ * @param {!jspb.BinaryWriter} writer
2245
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2246
+ */
2247
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.serializeBinaryToWriter = function(message, writer) {
2248
+ var f = undefined;
2249
+ f = message.getResponsecode();
2250
+ if (f != null) {
2251
+ writer.writeMessage(
2252
+ 1,
2253
+ f,
2254
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
2255
+ );
2256
+ }
2257
+ f = message.getAssociatedclientsList();
2258
+ if (f.length > 0) {
2259
+ writer.writeRepeatedMessage(
2260
+ 2,
2261
+ f,
2262
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter
2263
+ );
2264
+ }
2265
+ f = message.getPage();
2266
+ if (f !== 0) {
2267
+ writer.writeInt32(
2268
+ 3,
2269
+ f
2270
+ );
2271
+ }
2272
+ f = message.getSize();
2273
+ if (f !== 0) {
2274
+ writer.writeInt32(
2275
+ 4,
2276
+ f
2277
+ );
2278
+ }
2279
+ f = message.getTotalpages();
2280
+ if (f !== 0) {
2281
+ writer.writeInt32(
2282
+ 5,
2283
+ f
2284
+ );
2285
+ }
2286
+ f = message.getTotalsize();
2287
+ if (f !== 0) {
2288
+ writer.writeInt64(
2289
+ 6,
2290
+ f
2291
+ );
2292
+ }
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * optional ResponseCode responseCode = 1;
2298
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
2299
+ */
2300
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getResponsecode = function() {
2301
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
2302
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
2303
+ };
2304
+
2305
+
2306
+ /**
2307
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
2308
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2309
+ */
2310
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setResponsecode = function(value) {
2311
+ return jspb.Message.setWrapperField(this, 1, value);
2312
+ };
2313
+
2314
+
2315
+ /**
2316
+ * Clears the message field making it undefined.
2317
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2318
+ */
2319
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.clearResponsecode = function() {
2320
+ return this.setResponsecode(undefined);
2321
+ };
2322
+
2323
+
2324
+ /**
2325
+ * Returns whether this field is set.
2326
+ * @return {boolean}
2327
+ */
2328
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.hasResponsecode = function() {
2329
+ return jspb.Message.getField(this, 1) != null;
2330
+ };
2331
+
2332
+
2333
+ /**
2334
+ * repeated Client associatedClients = 2;
2335
+ * @return {!Array<!proto.agentbillingserviceapi.Client>}
2336
+ */
2337
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getAssociatedclientsList = function() {
2338
+ return /** @type{!Array<!proto.agentbillingserviceapi.Client>} */ (
2339
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.Client, 2));
2340
+ };
2341
+
2342
+
2343
+ /**
2344
+ * @param {!Array<!proto.agentbillingserviceapi.Client>} value
2345
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2346
+ */
2347
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setAssociatedclientsList = function(value) {
2348
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2349
+ };
2350
+
2351
+
2352
+ /**
2353
+ * @param {!proto.agentbillingserviceapi.Client=} opt_value
2354
+ * @param {number=} opt_index
2355
+ * @return {!proto.agentbillingserviceapi.Client}
2356
+ */
2357
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.addAssociatedclients = function(opt_value, opt_index) {
2358
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.agentbillingserviceapi.Client, opt_index);
2359
+ };
2360
+
2361
+
2362
+ /**
2363
+ * Clears the list making it empty but non-null.
2364
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2365
+ */
2366
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.clearAssociatedclientsList = function() {
2367
+ return this.setAssociatedclientsList([]);
2368
+ };
2369
+
2370
+
2371
+ /**
2372
+ * optional int32 page = 3;
2373
+ * @return {number}
2374
+ */
2375
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getPage = function() {
2376
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2377
+ };
2378
+
2379
+
2380
+ /**
2381
+ * @param {number} value
2382
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2383
+ */
2384
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setPage = function(value) {
2385
+ return jspb.Message.setProto3IntField(this, 3, value);
2386
+ };
2387
+
2388
+
2389
+ /**
2390
+ * optional int32 size = 4;
2391
+ * @return {number}
2392
+ */
2393
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getSize = function() {
2394
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2395
+ };
2396
+
2397
+
2398
+ /**
2399
+ * @param {number} value
2400
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2401
+ */
2402
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setSize = function(value) {
2403
+ return jspb.Message.setProto3IntField(this, 4, value);
2404
+ };
2405
+
2406
+
2407
+ /**
2408
+ * optional int32 totalPages = 5;
2409
+ * @return {number}
2410
+ */
2411
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getTotalpages = function() {
2412
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2413
+ };
2414
+
2415
+
2416
+ /**
2417
+ * @param {number} value
2418
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2419
+ */
2420
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setTotalpages = function(value) {
2421
+ return jspb.Message.setProto3IntField(this, 5, value);
2422
+ };
2423
+
2424
+
2425
+ /**
2426
+ * optional int64 totalSize = 6;
2427
+ * @return {number}
2428
+ */
2429
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.getTotalsize = function() {
2430
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2431
+ };
2432
+
2433
+
2434
+ /**
2435
+ * @param {number} value
2436
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientsResponse} returns this
2437
+ */
2438
+ proto.agentbillingserviceapi.GetAssociatedClientsResponse.prototype.setTotalsize = function(value) {
2439
+ return jspb.Message.setProto3IntField(this, 6, value);
2440
+ };
2441
+
2442
+
2443
+
2444
+
2445
+
2446
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2447
+ /**
2448
+ * Creates an object representation of this proto.
2449
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2450
+ * Optional fields that are not set will be set to undefined.
2451
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2452
+ * For the list of reserved names please see:
2453
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2454
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2455
+ * JSPB instance for transitional soy proto support:
2456
+ * http://goto/soy-param-migration
2457
+ * @return {!Object}
2458
+ */
2459
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.toObject = function(opt_includeInstance) {
2460
+ return proto.agentbillingserviceapi.InviteAgentRequest.toObject(opt_includeInstance, this);
2461
+ };
2462
+
2463
+
2464
+ /**
2465
+ * Static version of the {@see toObject} method.
2466
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2467
+ * the JSPB instance for transitional soy proto support:
2468
+ * http://goto/soy-param-migration
2469
+ * @param {!proto.agentbillingserviceapi.InviteAgentRequest} msg The msg instance to transform.
2470
+ * @return {!Object}
2471
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2472
+ */
2473
+ proto.agentbillingserviceapi.InviteAgentRequest.toObject = function(includeInstance, msg) {
2474
+ var f, obj = {
2475
+ agentemail: jspb.Message.getFieldWithDefault(msg, 1, ""),
2476
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0)
2477
+ };
2478
+
2479
+ if (includeInstance) {
2480
+ obj.$jspbMessageInstance = msg;
2481
+ }
2482
+ return obj;
2483
+ };
2484
+ }
2485
+
2486
+
2487
+ /**
2488
+ * Deserializes binary data (in protobuf wire format).
2489
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2490
+ * @return {!proto.agentbillingserviceapi.InviteAgentRequest}
2491
+ */
2492
+ proto.agentbillingserviceapi.InviteAgentRequest.deserializeBinary = function(bytes) {
2493
+ var reader = new jspb.BinaryReader(bytes);
2494
+ var msg = new proto.agentbillingserviceapi.InviteAgentRequest;
2495
+ return proto.agentbillingserviceapi.InviteAgentRequest.deserializeBinaryFromReader(msg, reader);
2496
+ };
2497
+
2498
+
2499
+ /**
2500
+ * Deserializes binary data (in protobuf wire format) from the
2501
+ * given reader into the given message object.
2502
+ * @param {!proto.agentbillingserviceapi.InviteAgentRequest} msg The message object to deserialize into.
2503
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2504
+ * @return {!proto.agentbillingserviceapi.InviteAgentRequest}
2505
+ */
2506
+ proto.agentbillingserviceapi.InviteAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
2507
+ while (reader.nextField()) {
2508
+ if (reader.isEndGroup()) {
2509
+ break;
2510
+ }
2511
+ var field = reader.getFieldNumber();
2512
+ switch (field) {
2513
+ case 1:
2514
+ var value = /** @type {string} */ (reader.readString());
2515
+ msg.setAgentemail(value);
2516
+ break;
2517
+ case 2:
2518
+ var value = /** @type {number} */ (reader.readInt64());
2519
+ msg.setClientuserid(value);
2520
+ break;
2521
+ default:
2522
+ reader.skipField();
2523
+ break;
2524
+ }
2525
+ }
2526
+ return msg;
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Serializes the message to binary data (in protobuf wire format).
2532
+ * @return {!Uint8Array}
2533
+ */
2534
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.serializeBinary = function() {
2535
+ var writer = new jspb.BinaryWriter();
2536
+ proto.agentbillingserviceapi.InviteAgentRequest.serializeBinaryToWriter(this, writer);
2537
+ return writer.getResultBuffer();
2538
+ };
2539
+
2540
+
2541
+ /**
2542
+ * Serializes the given message to binary data (in protobuf wire
2543
+ * format), writing to the given BinaryWriter.
2544
+ * @param {!proto.agentbillingserviceapi.InviteAgentRequest} message
2545
+ * @param {!jspb.BinaryWriter} writer
2546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2547
+ */
2548
+ proto.agentbillingserviceapi.InviteAgentRequest.serializeBinaryToWriter = function(message, writer) {
2549
+ var f = undefined;
2550
+ f = message.getAgentemail();
2551
+ if (f.length > 0) {
2552
+ writer.writeString(
2553
+ 1,
2554
+ f
2555
+ );
2556
+ }
2557
+ f = message.getClientuserid();
2558
+ if (f !== 0) {
2559
+ writer.writeInt64(
2560
+ 2,
2561
+ f
2562
+ );
2563
+ }
2564
+ };
2565
+
2566
+
2567
+ /**
2568
+ * optional string agentEmail = 1;
2569
+ * @return {string}
2570
+ */
2571
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.getAgentemail = function() {
2572
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2573
+ };
2574
+
2575
+
2576
+ /**
2577
+ * @param {string} value
2578
+ * @return {!proto.agentbillingserviceapi.InviteAgentRequest} returns this
2579
+ */
2580
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.setAgentemail = function(value) {
2581
+ return jspb.Message.setProto3StringField(this, 1, value);
2582
+ };
2583
+
2584
+
2585
+ /**
2586
+ * optional int64 clientUserId = 2;
2587
+ * @return {number}
2588
+ */
2589
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.getClientuserid = function() {
2590
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2591
+ };
2592
+
2593
+
2594
+ /**
2595
+ * @param {number} value
2596
+ * @return {!proto.agentbillingserviceapi.InviteAgentRequest} returns this
2597
+ */
2598
+ proto.agentbillingserviceapi.InviteAgentRequest.prototype.setClientuserid = function(value) {
2599
+ return jspb.Message.setProto3IntField(this, 2, value);
2600
+ };
2601
+
2602
+
2603
+
2604
+
2605
+
2606
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2607
+ /**
2608
+ * Creates an object representation of this proto.
2609
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2610
+ * Optional fields that are not set will be set to undefined.
2611
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2612
+ * For the list of reserved names please see:
2613
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2614
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2615
+ * JSPB instance for transitional soy proto support:
2616
+ * http://goto/soy-param-migration
2617
+ * @return {!Object}
2618
+ */
2619
+ proto.agentbillingserviceapi.ResponseCode.prototype.toObject = function(opt_includeInstance) {
2620
+ return proto.agentbillingserviceapi.ResponseCode.toObject(opt_includeInstance, this);
2621
+ };
2622
+
2623
+
2624
+ /**
2625
+ * Static version of the {@see toObject} method.
2626
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2627
+ * the JSPB instance for transitional soy proto support:
2628
+ * http://goto/soy-param-migration
2629
+ * @param {!proto.agentbillingserviceapi.ResponseCode} msg The msg instance to transform.
2630
+ * @return {!Object}
2631
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2632
+ */
2633
+ proto.agentbillingserviceapi.ResponseCode.toObject = function(includeInstance, msg) {
2634
+ var f, obj = {
2635
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
2636
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
2637
+ };
2638
+
2639
+ if (includeInstance) {
2640
+ obj.$jspbMessageInstance = msg;
2641
+ }
2642
+ return obj;
2643
+ };
2644
+ }
2645
+
2646
+
2647
+ /**
2648
+ * Deserializes binary data (in protobuf wire format).
2649
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2650
+ * @return {!proto.agentbillingserviceapi.ResponseCode}
2651
+ */
2652
+ proto.agentbillingserviceapi.ResponseCode.deserializeBinary = function(bytes) {
2653
+ var reader = new jspb.BinaryReader(bytes);
2654
+ var msg = new proto.agentbillingserviceapi.ResponseCode;
2655
+ return proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader(msg, reader);
2656
+ };
2657
+
2658
+
2659
+ /**
2660
+ * Deserializes binary data (in protobuf wire format) from the
2661
+ * given reader into the given message object.
2662
+ * @param {!proto.agentbillingserviceapi.ResponseCode} msg The message object to deserialize into.
2663
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2664
+ * @return {!proto.agentbillingserviceapi.ResponseCode}
2665
+ */
2666
+ proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader = function(msg, reader) {
2667
+ while (reader.nextField()) {
2668
+ if (reader.isEndGroup()) {
2669
+ break;
2670
+ }
2671
+ var field = reader.getFieldNumber();
2672
+ switch (field) {
2673
+ case 1:
2674
+ var value = /** @type {number} */ (reader.readInt32());
2675
+ msg.setCode(value);
2676
+ break;
2677
+ case 2:
2678
+ var value = /** @type {string} */ (reader.readString());
2679
+ msg.setMessage(value);
2680
+ break;
2681
+ default:
2682
+ reader.skipField();
2683
+ break;
2684
+ }
2685
+ }
2686
+ return msg;
2687
+ };
2688
+
2689
+
2690
+ /**
2691
+ * Serializes the message to binary data (in protobuf wire format).
2692
+ * @return {!Uint8Array}
2693
+ */
2694
+ proto.agentbillingserviceapi.ResponseCode.prototype.serializeBinary = function() {
2695
+ var writer = new jspb.BinaryWriter();
2696
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter(this, writer);
2697
+ return writer.getResultBuffer();
2698
+ };
2699
+
2700
+
2701
+ /**
2702
+ * Serializes the given message to binary data (in protobuf wire
2703
+ * format), writing to the given BinaryWriter.
2704
+ * @param {!proto.agentbillingserviceapi.ResponseCode} message
2705
+ * @param {!jspb.BinaryWriter} writer
2706
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2707
+ */
2708
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter = function(message, writer) {
2709
+ var f = undefined;
2710
+ f = message.getCode();
2711
+ if (f !== 0) {
2712
+ writer.writeInt32(
2713
+ 1,
2714
+ f
2715
+ );
2716
+ }
2717
+ f = message.getMessage();
2718
+ if (f.length > 0) {
2719
+ writer.writeString(
2720
+ 2,
2721
+ f
2722
+ );
2723
+ }
2724
+ };
2725
+
2726
+
2727
+ /**
2728
+ * optional int32 code = 1;
2729
+ * @return {number}
2730
+ */
2731
+ proto.agentbillingserviceapi.ResponseCode.prototype.getCode = function() {
2732
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2733
+ };
2734
+
2735
+
2736
+ /**
2737
+ * @param {number} value
2738
+ * @return {!proto.agentbillingserviceapi.ResponseCode} returns this
2739
+ */
2740
+ proto.agentbillingserviceapi.ResponseCode.prototype.setCode = function(value) {
2741
+ return jspb.Message.setProto3IntField(this, 1, value);
2742
+ };
2743
+
2744
+
2745
+ /**
2746
+ * optional string message = 2;
2747
+ * @return {string}
2748
+ */
2749
+ proto.agentbillingserviceapi.ResponseCode.prototype.getMessage = function() {
2750
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * @param {string} value
2756
+ * @return {!proto.agentbillingserviceapi.ResponseCode} returns this
2757
+ */
2758
+ proto.agentbillingserviceapi.ResponseCode.prototype.setMessage = function(value) {
2759
+ return jspb.Message.setProto3StringField(this, 2, value);
2760
+ };
2761
+
2762
+
2763
+
2764
+
2765
+
2766
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2767
+ /**
2768
+ * Creates an object representation of this proto.
2769
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2770
+ * Optional fields that are not set will be set to undefined.
2771
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2772
+ * For the list of reserved names please see:
2773
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2774
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2775
+ * JSPB instance for transitional soy proto support:
2776
+ * http://goto/soy-param-migration
2777
+ * @return {!Object}
2778
+ */
2779
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.prototype.toObject = function(opt_includeInstance) {
2780
+ return proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.toObject(opt_includeInstance, this);
2781
+ };
2782
+
2783
+
2784
+ /**
2785
+ * Static version of the {@see toObject} method.
2786
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2787
+ * the JSPB instance for transitional soy proto support:
2788
+ * http://goto/soy-param-migration
2789
+ * @param {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest} msg The msg instance to transform.
2790
+ * @return {!Object}
2791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2792
+ */
2793
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.toObject = function(includeInstance, msg) {
2794
+ var f, obj = {
2795
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
2796
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0)
2797
+ };
2798
+
2799
+ if (includeInstance) {
2800
+ obj.$jspbMessageInstance = msg;
2801
+ }
2802
+ return obj;
2803
+ };
2804
+ }
2805
+
2806
+
2807
+ /**
2808
+ * Deserializes binary data (in protobuf wire format).
2809
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2810
+ * @return {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest}
2811
+ */
2812
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.deserializeBinary = function(bytes) {
2813
+ var reader = new jspb.BinaryReader(bytes);
2814
+ var msg = new proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest;
2815
+ return proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.deserializeBinaryFromReader(msg, reader);
2816
+ };
2817
+
2818
+
2819
+ /**
2820
+ * Deserializes binary data (in protobuf wire format) from the
2821
+ * given reader into the given message object.
2822
+ * @param {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest} msg The message object to deserialize into.
2823
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2824
+ * @return {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest}
2825
+ */
2826
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.deserializeBinaryFromReader = function(msg, reader) {
2827
+ while (reader.nextField()) {
2828
+ if (reader.isEndGroup()) {
2829
+ break;
2830
+ }
2831
+ var field = reader.getFieldNumber();
2832
+ switch (field) {
2833
+ case 1:
2834
+ var value = /** @type {string} */ (reader.readString());
2835
+ msg.setEmail(value);
2836
+ break;
2837
+ case 2:
2838
+ var value = /** @type {number} */ (reader.readInt64());
2839
+ msg.setUserid(value);
2840
+ break;
2841
+ default:
2842
+ reader.skipField();
2843
+ break;
2844
+ }
2845
+ }
2846
+ return msg;
2847
+ };
2848
+
2849
+
2850
+ /**
2851
+ * Serializes the message to binary data (in protobuf wire format).
2852
+ * @return {!Uint8Array}
2853
+ */
2854
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.prototype.serializeBinary = function() {
2855
+ var writer = new jspb.BinaryWriter();
2856
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.serializeBinaryToWriter(this, writer);
2857
+ return writer.getResultBuffer();
2858
+ };
2859
+
2860
+
2861
+ /**
2862
+ * Serializes the given message to binary data (in protobuf wire
2863
+ * format), writing to the given BinaryWriter.
2864
+ * @param {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest} message
2865
+ * @param {!jspb.BinaryWriter} writer
2866
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2867
+ */
2868
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.serializeBinaryToWriter = function(message, writer) {
2869
+ var f = undefined;
2870
+ f = message.getEmail();
2871
+ if (f.length > 0) {
2872
+ writer.writeString(
2873
+ 1,
2874
+ f
2875
+ );
2876
+ }
2877
+ f = message.getUserid();
2878
+ if (f !== 0) {
2879
+ writer.writeInt64(
2880
+ 2,
2881
+ f
2882
+ );
2883
+ }
2884
+ };
2885
+
2886
+
2887
+ /**
2888
+ * optional string email = 1;
2889
+ * @return {string}
2890
+ */
2891
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.prototype.getEmail = function() {
2892
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2893
+ };
2894
+
2895
+
2896
+ /**
2897
+ * @param {string} value
2898
+ * @return {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest} returns this
2899
+ */
2900
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.prototype.setEmail = function(value) {
2901
+ return jspb.Message.setProto3StringField(this, 1, value);
2902
+ };
2903
+
2904
+
2905
+ /**
2906
+ * optional int64 userId = 2;
2907
+ * @return {number}
2908
+ */
2909
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.prototype.getUserid = function() {
2910
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2911
+ };
2912
+
2913
+
2914
+ /**
2915
+ * @param {number} value
2916
+ * @return {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest} returns this
2917
+ */
2918
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountCreationRequest.prototype.setUserid = function(value) {
2919
+ return jspb.Message.setProto3IntField(this, 2, value);
2920
+ };
2921
+
2922
+
2923
+
2924
+
2925
+
2926
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2927
+ /**
2928
+ * Creates an object representation of this proto.
2929
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2930
+ * Optional fields that are not set will be set to undefined.
2931
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2932
+ * For the list of reserved names please see:
2933
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2934
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2935
+ * JSPB instance for transitional soy proto support:
2936
+ * http://goto/soy-param-migration
2937
+ * @return {!Object}
2938
+ */
2939
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.prototype.toObject = function(opt_includeInstance) {
2940
+ return proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.toObject(opt_includeInstance, this);
2941
+ };
2942
+
2943
+
2944
+ /**
2945
+ * Static version of the {@see toObject} method.
2946
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2947
+ * the JSPB instance for transitional soy proto support:
2948
+ * http://goto/soy-param-migration
2949
+ * @param {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest} msg The msg instance to transform.
2950
+ * @return {!Object}
2951
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2952
+ */
2953
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.toObject = function(includeInstance, msg) {
2954
+ var f, obj = {
2955
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0)
2956
+ };
2957
+
2958
+ if (includeInstance) {
2959
+ obj.$jspbMessageInstance = msg;
2960
+ }
2961
+ return obj;
2962
+ };
2963
+ }
2964
+
2965
+
2966
+ /**
2967
+ * Deserializes binary data (in protobuf wire format).
2968
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2969
+ * @return {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest}
2970
+ */
2971
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.deserializeBinary = function(bytes) {
2972
+ var reader = new jspb.BinaryReader(bytes);
2973
+ var msg = new proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest;
2974
+ return proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.deserializeBinaryFromReader(msg, reader);
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * Deserializes binary data (in protobuf wire format) from the
2980
+ * given reader into the given message object.
2981
+ * @param {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest} msg The message object to deserialize into.
2982
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2983
+ * @return {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest}
2984
+ */
2985
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.deserializeBinaryFromReader = function(msg, reader) {
2986
+ while (reader.nextField()) {
2987
+ if (reader.isEndGroup()) {
2988
+ break;
2989
+ }
2990
+ var field = reader.getFieldNumber();
2991
+ switch (field) {
2992
+ case 1:
2993
+ var value = /** @type {number} */ (reader.readInt64());
2994
+ msg.setUserid(value);
2995
+ break;
2996
+ default:
2997
+ reader.skipField();
2998
+ break;
2999
+ }
3000
+ }
3001
+ return msg;
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * Serializes the message to binary data (in protobuf wire format).
3007
+ * @return {!Uint8Array}
3008
+ */
3009
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.prototype.serializeBinary = function() {
3010
+ var writer = new jspb.BinaryWriter();
3011
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.serializeBinaryToWriter(this, writer);
3012
+ return writer.getResultBuffer();
3013
+ };
3014
+
3015
+
3016
+ /**
3017
+ * Serializes the given message to binary data (in protobuf wire
3018
+ * format), writing to the given BinaryWriter.
3019
+ * @param {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest} message
3020
+ * @param {!jspb.BinaryWriter} writer
3021
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3022
+ */
3023
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.serializeBinaryToWriter = function(message, writer) {
3024
+ var f = undefined;
3025
+ f = message.getUserid();
3026
+ if (f !== 0) {
3027
+ writer.writeInt64(
3028
+ 1,
3029
+ f
3030
+ );
3031
+ }
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * optional int64 userId = 1;
3037
+ * @return {number}
3038
+ */
3039
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.prototype.getUserid = function() {
3040
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3041
+ };
3042
+
3043
+
3044
+ /**
3045
+ * @param {number} value
3046
+ * @return {!proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest} returns this
3047
+ */
3048
+ proto.agentbillingserviceapi.UpdateAgentConnectionsOnAccountDeletionRequest.prototype.setUserid = function(value) {
3049
+ return jspb.Message.setProto3IntField(this, 1, value);
3050
+ };
3051
+
3052
+
3053
+ goog.object.extend(exports, proto.agentbillingserviceapi);