@sniipwebmaster/agent-billing-client-grpcweb 23.6.247 → 23.6.265

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.
@@ -18,10 +18,15 @@ goog.exportSymbol('proto.agentbillingserviceapi.Agent', null, global);
18
18
  goog.exportSymbol('proto.agentbillingserviceapi.CancelAgentInviteRequest', null, global);
19
19
  goog.exportSymbol('proto.agentbillingserviceapi.Client', null, global);
20
20
  goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, global);
21
+ goog.exportSymbol('proto.agentbillingserviceapi.DeclineAgentInvitationRequest', null, global);
21
22
  goog.exportSymbol('proto.agentbillingserviceapi.DisconnectAgentRequest', null, global);
22
23
  goog.exportSymbol('proto.agentbillingserviceapi.DisconnectClientRequest', null, global);
24
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentRequest', null, global);
25
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentResponse', null, global);
23
26
  goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentsRequest', null, global);
24
27
  goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentsResponse', null, global);
28
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientRequest', null, global);
29
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientResponse', null, global);
25
30
  goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientsRequest', null, global);
26
31
  goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedClientsResponse', null, global);
27
32
  goog.exportSymbol('proto.agentbillingserviceapi.InviteAgentRequest', null, global);
@@ -111,6 +116,27 @@ if (goog.DEBUG && !COMPILED) {
111
116
  */
112
117
  proto.agentbillingserviceapi.ConnectAgentRequest.displayName = 'proto.agentbillingserviceapi.ConnectAgentRequest';
113
118
  }
119
+ /**
120
+ * Generated by JsPbCodeGenerator.
121
+ * @param {Array=} opt_data Optional initial data array, typically from a
122
+ * server response, or constructed directly in Javascript. The array is used
123
+ * in place and becomes part of the constructed object. It is not cloned.
124
+ * If no data is provided, the constructed object will be empty, but still
125
+ * valid.
126
+ * @extends {jspb.Message}
127
+ * @constructor
128
+ */
129
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest = function(opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
+ };
132
+ goog.inherits(proto.agentbillingserviceapi.DeclineAgentInvitationRequest, jspb.Message);
133
+ if (goog.DEBUG && !COMPILED) {
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.displayName = 'proto.agentbillingserviceapi.DeclineAgentInvitationRequest';
139
+ }
114
140
  /**
115
141
  * Generated by JsPbCodeGenerator.
116
142
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -153,6 +179,48 @@ if (goog.DEBUG && !COMPILED) {
153
179
  */
154
180
  proto.agentbillingserviceapi.DisconnectClientRequest.displayName = 'proto.agentbillingserviceapi.DisconnectClientRequest';
155
181
  }
182
+ /**
183
+ * Generated by JsPbCodeGenerator.
184
+ * @param {Array=} opt_data Optional initial data array, typically from a
185
+ * server response, or constructed directly in Javascript. The array is used
186
+ * in place and becomes part of the constructed object. It is not cloned.
187
+ * If no data is provided, the constructed object will be empty, but still
188
+ * valid.
189
+ * @extends {jspb.Message}
190
+ * @constructor
191
+ */
192
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest = function(opt_data) {
193
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
194
+ };
195
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentRequest, jspb.Message);
196
+ if (goog.DEBUG && !COMPILED) {
197
+ /**
198
+ * @public
199
+ * @override
200
+ */
201
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentRequest';
202
+ }
203
+ /**
204
+ * Generated by JsPbCodeGenerator.
205
+ * @param {Array=} opt_data Optional initial data array, typically from a
206
+ * server response, or constructed directly in Javascript. The array is used
207
+ * in place and becomes part of the constructed object. It is not cloned.
208
+ * If no data is provided, the constructed object will be empty, but still
209
+ * valid.
210
+ * @extends {jspb.Message}
211
+ * @constructor
212
+ */
213
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse = function(opt_data) {
214
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
215
+ };
216
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedAgentResponse, jspb.Message);
217
+ if (goog.DEBUG && !COMPILED) {
218
+ /**
219
+ * @public
220
+ * @override
221
+ */
222
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentResponse';
223
+ }
156
224
  /**
157
225
  * Generated by JsPbCodeGenerator.
158
226
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -195,6 +263,48 @@ if (goog.DEBUG && !COMPILED) {
195
263
  */
196
264
  proto.agentbillingserviceapi.GetAssociatedAgentsResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedAgentsResponse';
197
265
  }
266
+ /**
267
+ * Generated by JsPbCodeGenerator.
268
+ * @param {Array=} opt_data Optional initial data array, typically from a
269
+ * server response, or constructed directly in Javascript. The array is used
270
+ * in place and becomes part of the constructed object. It is not cloned.
271
+ * If no data is provided, the constructed object will be empty, but still
272
+ * valid.
273
+ * @extends {jspb.Message}
274
+ * @constructor
275
+ */
276
+ proto.agentbillingserviceapi.GetAssociatedClientRequest = function(opt_data) {
277
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
278
+ };
279
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedClientRequest, jspb.Message);
280
+ if (goog.DEBUG && !COMPILED) {
281
+ /**
282
+ * @public
283
+ * @override
284
+ */
285
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.displayName = 'proto.agentbillingserviceapi.GetAssociatedClientRequest';
286
+ }
287
+ /**
288
+ * Generated by JsPbCodeGenerator.
289
+ * @param {Array=} opt_data Optional initial data array, typically from a
290
+ * server response, or constructed directly in Javascript. The array is used
291
+ * in place and becomes part of the constructed object. It is not cloned.
292
+ * If no data is provided, the constructed object will be empty, but still
293
+ * valid.
294
+ * @extends {jspb.Message}
295
+ * @constructor
296
+ */
297
+ proto.agentbillingserviceapi.GetAssociatedClientResponse = function(opt_data) {
298
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
299
+ };
300
+ goog.inherits(proto.agentbillingserviceapi.GetAssociatedClientResponse, jspb.Message);
301
+ if (goog.DEBUG && !COMPILED) {
302
+ /**
303
+ * @public
304
+ * @override
305
+ */
306
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.displayName = 'proto.agentbillingserviceapi.GetAssociatedClientResponse';
307
+ }
198
308
  /**
199
309
  * Generated by JsPbCodeGenerator.
200
310
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1363,6 +1473,136 @@ proto.agentbillingserviceapi.ConnectAgentRequest.prototype.setClientuserid = fun
1363
1473
 
1364
1474
 
1365
1475
 
1476
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1477
+ /**
1478
+ * Creates an object representation of this proto.
1479
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1480
+ * Optional fields that are not set will be set to undefined.
1481
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1482
+ * For the list of reserved names please see:
1483
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1484
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1485
+ * JSPB instance for transitional soy proto support:
1486
+ * http://goto/soy-param-migration
1487
+ * @return {!Object}
1488
+ */
1489
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.toObject = function(opt_includeInstance) {
1490
+ return proto.agentbillingserviceapi.DeclineAgentInvitationRequest.toObject(opt_includeInstance, this);
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * Static version of the {@see toObject} method.
1496
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1497
+ * the JSPB instance for transitional soy proto support:
1498
+ * http://goto/soy-param-migration
1499
+ * @param {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} msg The msg instance to transform.
1500
+ * @return {!Object}
1501
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1502
+ */
1503
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.toObject = function(includeInstance, msg) {
1504
+ var f, obj = {
1505
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 1, 0)
1506
+ };
1507
+
1508
+ if (includeInstance) {
1509
+ obj.$jspbMessageInstance = msg;
1510
+ }
1511
+ return obj;
1512
+ };
1513
+ }
1514
+
1515
+
1516
+ /**
1517
+ * Deserializes binary data (in protobuf wire format).
1518
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1519
+ * @return {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest}
1520
+ */
1521
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.deserializeBinary = function(bytes) {
1522
+ var reader = new jspb.BinaryReader(bytes);
1523
+ var msg = new proto.agentbillingserviceapi.DeclineAgentInvitationRequest;
1524
+ return proto.agentbillingserviceapi.DeclineAgentInvitationRequest.deserializeBinaryFromReader(msg, reader);
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Deserializes binary data (in protobuf wire format) from the
1530
+ * given reader into the given message object.
1531
+ * @param {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} msg The message object to deserialize into.
1532
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1533
+ * @return {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest}
1534
+ */
1535
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.deserializeBinaryFromReader = function(msg, reader) {
1536
+ while (reader.nextField()) {
1537
+ if (reader.isEndGroup()) {
1538
+ break;
1539
+ }
1540
+ var field = reader.getFieldNumber();
1541
+ switch (field) {
1542
+ case 1:
1543
+ var value = /** @type {number} */ (reader.readInt64());
1544
+ msg.setClientuserid(value);
1545
+ break;
1546
+ default:
1547
+ reader.skipField();
1548
+ break;
1549
+ }
1550
+ }
1551
+ return msg;
1552
+ };
1553
+
1554
+
1555
+ /**
1556
+ * Serializes the message to binary data (in protobuf wire format).
1557
+ * @return {!Uint8Array}
1558
+ */
1559
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.serializeBinary = function() {
1560
+ var writer = new jspb.BinaryWriter();
1561
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.serializeBinaryToWriter(this, writer);
1562
+ return writer.getResultBuffer();
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * Serializes the given message to binary data (in protobuf wire
1568
+ * format), writing to the given BinaryWriter.
1569
+ * @param {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} message
1570
+ * @param {!jspb.BinaryWriter} writer
1571
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1572
+ */
1573
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.serializeBinaryToWriter = function(message, writer) {
1574
+ var f = undefined;
1575
+ f = message.getClientuserid();
1576
+ if (f !== 0) {
1577
+ writer.writeInt64(
1578
+ 1,
1579
+ f
1580
+ );
1581
+ }
1582
+ };
1583
+
1584
+
1585
+ /**
1586
+ * optional int64 clientUserId = 1;
1587
+ * @return {number}
1588
+ */
1589
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.getClientuserid = function() {
1590
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1591
+ };
1592
+
1593
+
1594
+ /**
1595
+ * @param {number} value
1596
+ * @return {!proto.agentbillingserviceapi.DeclineAgentInvitationRequest} returns this
1597
+ */
1598
+ proto.agentbillingserviceapi.DeclineAgentInvitationRequest.prototype.setClientuserid = function(value) {
1599
+ return jspb.Message.setProto3IntField(this, 1, value);
1600
+ };
1601
+
1602
+
1603
+
1604
+
1605
+
1366
1606
  if (jspb.Message.GENERATE_TO_OBJECT) {
1367
1607
  /**
1368
1608
  * Creates an object representation of this proto.
@@ -1636,8 +1876,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1636
1876
  * http://goto/soy-param-migration
1637
1877
  * @return {!Object}
1638
1878
  */
1639
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.toObject = function(opt_includeInstance) {
1640
- return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject(opt_includeInstance, this);
1879
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.toObject = function(opt_includeInstance) {
1880
+ return proto.agentbillingserviceapi.GetAssociatedAgentRequest.toObject(opt_includeInstance, this);
1641
1881
  };
1642
1882
 
1643
1883
 
@@ -1646,15 +1886,15 @@ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.toObject = fun
1646
1886
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1647
1887
  * the JSPB instance for transitional soy proto support:
1648
1888
  * http://goto/soy-param-migration
1649
- * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The msg instance to transform.
1889
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} msg The msg instance to transform.
1650
1890
  * @return {!Object}
1651
1891
  * @suppress {unusedLocalVariables} f is only used for nested messages
1652
1892
  */
1653
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject = function(includeInstance, msg) {
1893
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.toObject = function(includeInstance, msg) {
1654
1894
  var f, obj = {
1655
- page: jspb.Message.getFieldWithDefault(msg, 1, 0),
1656
- size: jspb.Message.getFieldWithDefault(msg, 2, 0),
1657
- userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
1895
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
1896
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1897
+ invitedagentemail: jspb.Message.getFieldWithDefault(msg, 3, "")
1658
1898
  };
1659
1899
 
1660
1900
  if (includeInstance) {
@@ -1668,23 +1908,23 @@ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject = function(incl
1668
1908
  /**
1669
1909
  * Deserializes binary data (in protobuf wire format).
1670
1910
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1671
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
1911
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest}
1672
1912
  */
1673
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinary = function(bytes) {
1913
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.deserializeBinary = function(bytes) {
1674
1914
  var reader = new jspb.BinaryReader(bytes);
1675
- var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsRequest;
1676
- return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader(msg, reader);
1915
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentRequest;
1916
+ return proto.agentbillingserviceapi.GetAssociatedAgentRequest.deserializeBinaryFromReader(msg, reader);
1677
1917
  };
1678
1918
 
1679
1919
 
1680
1920
  /**
1681
1921
  * Deserializes binary data (in protobuf wire format) from the
1682
1922
  * given reader into the given message object.
1683
- * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The message object to deserialize into.
1923
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} msg The message object to deserialize into.
1684
1924
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1685
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
1925
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest}
1686
1926
  */
1687
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader = function(msg, reader) {
1927
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.deserializeBinaryFromReader = function(msg, reader) {
1688
1928
  while (reader.nextField()) {
1689
1929
  if (reader.isEndGroup()) {
1690
1930
  break;
@@ -1692,16 +1932,16 @@ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromRea
1692
1932
  var field = reader.getFieldNumber();
1693
1933
  switch (field) {
1694
1934
  case 1:
1695
- var value = /** @type {number} */ (reader.readInt32());
1696
- msg.setPage(value);
1935
+ var value = /** @type {number} */ (reader.readInt64());
1936
+ msg.setAgentuserid(value);
1697
1937
  break;
1698
1938
  case 2:
1699
- var value = /** @type {number} */ (reader.readInt32());
1700
- msg.setSize(value);
1939
+ var value = /** @type {number} */ (reader.readInt64());
1940
+ msg.setClientuserid(value);
1701
1941
  break;
1702
1942
  case 3:
1703
- var value = /** @type {number} */ (reader.readInt64());
1704
- msg.setUserid(value);
1943
+ var value = /** @type {string} */ (reader.readString());
1944
+ msg.setInvitedagentemail(value);
1705
1945
  break;
1706
1946
  default:
1707
1947
  reader.skipField();
@@ -1716,9 +1956,9 @@ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromRea
1716
1956
  * Serializes the message to binary data (in protobuf wire format).
1717
1957
  * @return {!Uint8Array}
1718
1958
  */
1719
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.serializeBinary = function() {
1959
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.serializeBinary = function() {
1720
1960
  var writer = new jspb.BinaryWriter();
1721
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter(this, writer);
1961
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.serializeBinaryToWriter(this, writer);
1722
1962
  return writer.getResultBuffer();
1723
1963
  };
1724
1964
 
@@ -1726,29 +1966,29 @@ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.serializeBinar
1726
1966
  /**
1727
1967
  * Serializes the given message to binary data (in protobuf wire
1728
1968
  * format), writing to the given BinaryWriter.
1729
- * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} message
1969
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} message
1730
1970
  * @param {!jspb.BinaryWriter} writer
1731
1971
  * @suppress {unusedLocalVariables} f is only used for nested messages
1732
1972
  */
1733
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter = function(message, writer) {
1973
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.serializeBinaryToWriter = function(message, writer) {
1734
1974
  var f = undefined;
1735
- f = message.getPage();
1975
+ f = message.getAgentuserid();
1736
1976
  if (f !== 0) {
1737
- writer.writeInt32(
1977
+ writer.writeInt64(
1738
1978
  1,
1739
1979
  f
1740
1980
  );
1741
1981
  }
1742
- f = message.getSize();
1982
+ f = message.getClientuserid();
1743
1983
  if (f !== 0) {
1744
- writer.writeInt32(
1984
+ writer.writeInt64(
1745
1985
  2,
1746
1986
  f
1747
1987
  );
1748
1988
  }
1749
- f = message.getUserid();
1750
- if (f !== 0) {
1751
- writer.writeInt64(
1989
+ f = message.getInvitedagentemail();
1990
+ if (f.length > 0) {
1991
+ writer.writeString(
1752
1992
  3,
1753
1993
  f
1754
1994
  );
@@ -1757,67 +1997,60 @@ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter
1757
1997
 
1758
1998
 
1759
1999
  /**
1760
- * optional int32 page = 1;
2000
+ * optional int64 agentUserId = 1;
1761
2001
  * @return {number}
1762
2002
  */
1763
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getPage = function() {
2003
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.getAgentuserid = function() {
1764
2004
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1765
2005
  };
1766
2006
 
1767
2007
 
1768
2008
  /**
1769
2009
  * @param {number} value
1770
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2010
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} returns this
1771
2011
  */
1772
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setPage = function(value) {
2012
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.setAgentuserid = function(value) {
1773
2013
  return jspb.Message.setProto3IntField(this, 1, value);
1774
2014
  };
1775
2015
 
1776
2016
 
1777
2017
  /**
1778
- * optional int32 size = 2;
2018
+ * optional int64 clientUserId = 2;
1779
2019
  * @return {number}
1780
2020
  */
1781
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getSize = function() {
2021
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.getClientuserid = function() {
1782
2022
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1783
2023
  };
1784
2024
 
1785
2025
 
1786
2026
  /**
1787
2027
  * @param {number} value
1788
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2028
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} returns this
1789
2029
  */
1790
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setSize = function(value) {
2030
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.setClientuserid = function(value) {
1791
2031
  return jspb.Message.setProto3IntField(this, 2, value);
1792
2032
  };
1793
2033
 
1794
2034
 
1795
2035
  /**
1796
- * optional int64 userId = 3;
1797
- * @return {number}
2036
+ * optional string invitedAgentEmail = 3;
2037
+ * @return {string}
1798
2038
  */
1799
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getUserid = function() {
1800
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2039
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.getInvitedagentemail = function() {
2040
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1801
2041
  };
1802
2042
 
1803
2043
 
1804
2044
  /**
1805
- * @param {number} value
1806
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2045
+ * @param {string} value
2046
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentRequest} returns this
1807
2047
  */
1808
- proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setUserid = function(value) {
1809
- return jspb.Message.setProto3IntField(this, 3, value);
2048
+ proto.agentbillingserviceapi.GetAssociatedAgentRequest.prototype.setInvitedagentemail = function(value) {
2049
+ return jspb.Message.setProto3StringField(this, 3, value);
1810
2050
  };
1811
2051
 
1812
2052
 
1813
2053
 
1814
- /**
1815
- * List of repeated fields within this message type.
1816
- * @private {!Array<number>}
1817
- * @const
1818
- */
1819
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.repeatedFields_ = [2];
1820
-
1821
2054
 
1822
2055
 
1823
2056
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1833,8 +2066,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1833
2066
  * http://goto/soy-param-migration
1834
2067
  * @return {!Object}
1835
2068
  */
1836
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.toObject = function(opt_includeInstance) {
1837
- return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject(opt_includeInstance, this);
2069
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.toObject = function(opt_includeInstance) {
2070
+ return proto.agentbillingserviceapi.GetAssociatedAgentResponse.toObject(opt_includeInstance, this);
1838
2071
  };
1839
2072
 
1840
2073
 
@@ -1843,19 +2076,14 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.toObject = fu
1843
2076
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1844
2077
  * the JSPB instance for transitional soy proto support:
1845
2078
  * http://goto/soy-param-migration
1846
- * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The msg instance to transform.
2079
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} msg The msg instance to transform.
1847
2080
  * @return {!Object}
1848
2081
  * @suppress {unusedLocalVariables} f is only used for nested messages
1849
2082
  */
1850
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject = function(includeInstance, msg) {
2083
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.toObject = function(includeInstance, msg) {
1851
2084
  var f, obj = {
1852
2085
  responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
1853
- associatedagentsList: jspb.Message.toObjectList(msg.getAssociatedagentsList(),
1854
- proto.agentbillingserviceapi.Agent.toObject, includeInstance),
1855
- page: jspb.Message.getFieldWithDefault(msg, 3, 0),
1856
- size: jspb.Message.getFieldWithDefault(msg, 4, 0),
1857
- totalpages: jspb.Message.getFieldWithDefault(msg, 5, 0),
1858
- totalsize: jspb.Message.getFieldWithDefault(msg, 6, 0)
2086
+ associatedagent: (f = msg.getAssociatedagent()) && proto.agentbillingserviceapi.Agent.toObject(includeInstance, f)
1859
2087
  };
1860
2088
 
1861
2089
  if (includeInstance) {
@@ -1869,23 +2097,23 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject = function(inc
1869
2097
  /**
1870
2098
  * Deserializes binary data (in protobuf wire format).
1871
2099
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1872
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
2100
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse}
1873
2101
  */
1874
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinary = function(bytes) {
2102
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.deserializeBinary = function(bytes) {
1875
2103
  var reader = new jspb.BinaryReader(bytes);
1876
- var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsResponse;
1877
- return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader(msg, reader);
2104
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentResponse;
2105
+ return proto.agentbillingserviceapi.GetAssociatedAgentResponse.deserializeBinaryFromReader(msg, reader);
1878
2106
  };
1879
2107
 
1880
2108
 
1881
2109
  /**
1882
2110
  * Deserializes binary data (in protobuf wire format) from the
1883
2111
  * given reader into the given message object.
1884
- * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The message object to deserialize into.
2112
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} msg The message object to deserialize into.
1885
2113
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1886
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
2114
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse}
1887
2115
  */
1888
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader = function(msg, reader) {
2116
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.deserializeBinaryFromReader = function(msg, reader) {
1889
2117
  while (reader.nextField()) {
1890
2118
  if (reader.isEndGroup()) {
1891
2119
  break;
@@ -1900,23 +2128,7 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromRe
1900
2128
  case 2:
1901
2129
  var value = new proto.agentbillingserviceapi.Agent;
1902
2130
  reader.readMessage(value,proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader);
1903
- msg.addAssociatedagents(value);
1904
- break;
1905
- case 3:
1906
- var value = /** @type {number} */ (reader.readInt32());
1907
- msg.setPage(value);
1908
- break;
1909
- case 4:
1910
- var value = /** @type {number} */ (reader.readInt32());
1911
- msg.setSize(value);
1912
- break;
1913
- case 5:
1914
- var value = /** @type {number} */ (reader.readInt32());
1915
- msg.setTotalpages(value);
1916
- break;
1917
- case 6:
1918
- var value = /** @type {number} */ (reader.readInt64());
1919
- msg.setTotalsize(value);
2131
+ msg.setAssociatedagent(value);
1920
2132
  break;
1921
2133
  default:
1922
2134
  reader.skipField();
@@ -1931,9 +2143,9 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromRe
1931
2143
  * Serializes the message to binary data (in protobuf wire format).
1932
2144
  * @return {!Uint8Array}
1933
2145
  */
1934
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.serializeBinary = function() {
2146
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.serializeBinary = function() {
1935
2147
  var writer = new jspb.BinaryWriter();
1936
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter(this, writer);
2148
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.serializeBinaryToWriter(this, writer);
1937
2149
  return writer.getResultBuffer();
1938
2150
  };
1939
2151
 
@@ -1941,11 +2153,11 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.serializeBina
1941
2153
  /**
1942
2154
  * Serializes the given message to binary data (in protobuf wire
1943
2155
  * format), writing to the given BinaryWriter.
1944
- * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} message
2156
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} message
1945
2157
  * @param {!jspb.BinaryWriter} writer
1946
2158
  * @suppress {unusedLocalVariables} f is only used for nested messages
1947
2159
  */
1948
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter = function(message, writer) {
2160
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.serializeBinaryToWriter = function(message, writer) {
1949
2161
  var f = undefined;
1950
2162
  f = message.getResponsecode();
1951
2163
  if (f != null) {
@@ -1955,42 +2167,14 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter
1955
2167
  proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
1956
2168
  );
1957
2169
  }
1958
- f = message.getAssociatedagentsList();
1959
- if (f.length > 0) {
1960
- writer.writeRepeatedMessage(
2170
+ f = message.getAssociatedagent();
2171
+ if (f != null) {
2172
+ writer.writeMessage(
1961
2173
  2,
1962
2174
  f,
1963
2175
  proto.agentbillingserviceapi.Agent.serializeBinaryToWriter
1964
2176
  );
1965
2177
  }
1966
- f = message.getPage();
1967
- if (f !== 0) {
1968
- writer.writeInt32(
1969
- 3,
1970
- f
1971
- );
1972
- }
1973
- f = message.getSize();
1974
- if (f !== 0) {
1975
- writer.writeInt32(
1976
- 4,
1977
- f
1978
- );
1979
- }
1980
- f = message.getTotalpages();
1981
- if (f !== 0) {
1982
- writer.writeInt32(
1983
- 5,
1984
- f
1985
- );
1986
- }
1987
- f = message.getTotalsize();
1988
- if (f !== 0) {
1989
- writer.writeInt64(
1990
- 6,
1991
- f
1992
- );
1993
- }
1994
2178
  };
1995
2179
 
1996
2180
 
@@ -1998,7 +2182,7 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter
1998
2182
  * optional ResponseCode responseCode = 1;
1999
2183
  * @return {?proto.agentbillingserviceapi.ResponseCode}
2000
2184
  */
2001
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getResponsecode = function() {
2185
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.getResponsecode = function() {
2002
2186
  return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
2003
2187
  jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
2004
2188
  };
@@ -2006,18 +2190,18 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getResponseco
2006
2190
 
2007
2191
  /**
2008
2192
  * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
2009
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2193
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2010
2194
  */
2011
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setResponsecode = function(value) {
2195
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.setResponsecode = function(value) {
2012
2196
  return jspb.Message.setWrapperField(this, 1, value);
2013
2197
  };
2014
2198
 
2015
2199
 
2016
2200
  /**
2017
2201
  * Clears the message field making it undefined.
2018
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2202
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2019
2203
  */
2020
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearResponsecode = function() {
2204
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.clearResponsecode = function() {
2021
2205
  return this.setResponsecode(undefined);
2022
2206
  };
2023
2207
 
@@ -2026,118 +2210,928 @@ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearResponse
2026
2210
  * Returns whether this field is set.
2027
2211
  * @return {boolean}
2028
2212
  */
2029
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.hasResponsecode = function() {
2213
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.hasResponsecode = function() {
2030
2214
  return jspb.Message.getField(this, 1) != null;
2031
2215
  };
2032
2216
 
2033
2217
 
2034
2218
  /**
2035
- * repeated Agent associatedAgents = 2;
2036
- * @return {!Array<!proto.agentbillingserviceapi.Agent>}
2219
+ * optional Agent associatedAgent = 2;
2220
+ * @return {?proto.agentbillingserviceapi.Agent}
2037
2221
  */
2038
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getAssociatedagentsList = function() {
2039
- return /** @type{!Array<!proto.agentbillingserviceapi.Agent>} */ (
2040
- jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.Agent, 2));
2222
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.getAssociatedagent = function() {
2223
+ return /** @type{?proto.agentbillingserviceapi.Agent} */ (
2224
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.Agent, 2));
2041
2225
  };
2042
2226
 
2043
2227
 
2044
2228
  /**
2045
- * @param {!Array<!proto.agentbillingserviceapi.Agent>} value
2046
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2229
+ * @param {?proto.agentbillingserviceapi.Agent|undefined} value
2230
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2047
2231
  */
2048
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setAssociatedagentsList = function(value) {
2049
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
2232
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.setAssociatedagent = function(value) {
2233
+ return jspb.Message.setWrapperField(this, 2, value);
2050
2234
  };
2051
2235
 
2052
2236
 
2053
2237
  /**
2054
- * @param {!proto.agentbillingserviceapi.Agent=} opt_value
2055
- * @param {number=} opt_index
2056
- * @return {!proto.agentbillingserviceapi.Agent}
2238
+ * Clears the message field making it undefined.
2239
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentResponse} returns this
2057
2240
  */
2058
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.addAssociatedagents = function(opt_value, opt_index) {
2059
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.agentbillingserviceapi.Agent, opt_index);
2241
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.clearAssociatedagent = function() {
2242
+ return this.setAssociatedagent(undefined);
2060
2243
  };
2061
2244
 
2062
2245
 
2063
2246
  /**
2064
- * Clears the list making it empty but non-null.
2065
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2247
+ * Returns whether this field is set.
2248
+ * @return {boolean}
2066
2249
  */
2067
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearAssociatedagentsList = function() {
2068
- return this.setAssociatedagentsList([]);
2250
+ proto.agentbillingserviceapi.GetAssociatedAgentResponse.prototype.hasAssociatedagent = function() {
2251
+ return jspb.Message.getField(this, 2) != null;
2069
2252
  };
2070
2253
 
2071
2254
 
2255
+
2256
+
2257
+
2258
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2072
2259
  /**
2073
- * optional int32 page = 3;
2074
- * @return {number}
2260
+ * Creates an object representation of this proto.
2261
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2262
+ * Optional fields that are not set will be set to undefined.
2263
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2264
+ * For the list of reserved names please see:
2265
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2266
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2267
+ * JSPB instance for transitional soy proto support:
2268
+ * http://goto/soy-param-migration
2269
+ * @return {!Object}
2075
2270
  */
2076
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getPage = function() {
2077
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2271
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.toObject = function(opt_includeInstance) {
2272
+ return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject(opt_includeInstance, this);
2078
2273
  };
2079
2274
 
2080
2275
 
2081
2276
  /**
2082
- * @param {number} value
2083
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2277
+ * Static version of the {@see toObject} method.
2278
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2279
+ * the JSPB instance for transitional soy proto support:
2280
+ * http://goto/soy-param-migration
2281
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The msg instance to transform.
2282
+ * @return {!Object}
2283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2084
2284
  */
2085
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setPage = function(value) {
2086
- return jspb.Message.setProto3IntField(this, 3, value);
2285
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.toObject = function(includeInstance, msg) {
2286
+ var f, obj = {
2287
+ page: jspb.Message.getFieldWithDefault(msg, 1, 0),
2288
+ size: jspb.Message.getFieldWithDefault(msg, 2, 0),
2289
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
2290
+ };
2291
+
2292
+ if (includeInstance) {
2293
+ obj.$jspbMessageInstance = msg;
2294
+ }
2295
+ return obj;
2087
2296
  };
2297
+ }
2088
2298
 
2089
2299
 
2090
2300
  /**
2091
- * optional int32 size = 4;
2092
- * @return {number}
2301
+ * Deserializes binary data (in protobuf wire format).
2302
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2303
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
2093
2304
  */
2094
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getSize = function() {
2095
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2305
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinary = function(bytes) {
2306
+ var reader = new jspb.BinaryReader(bytes);
2307
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsRequest;
2308
+ return proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader(msg, reader);
2096
2309
  };
2097
2310
 
2098
2311
 
2099
2312
  /**
2100
- * @param {number} value
2101
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2313
+ * Deserializes binary data (in protobuf wire format) from the
2314
+ * given reader into the given message object.
2315
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} msg The message object to deserialize into.
2316
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2317
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest}
2102
2318
  */
2103
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setSize = function(value) {
2104
- return jspb.Message.setProto3IntField(this, 4, value);
2319
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.deserializeBinaryFromReader = function(msg, reader) {
2320
+ while (reader.nextField()) {
2321
+ if (reader.isEndGroup()) {
2322
+ break;
2323
+ }
2324
+ var field = reader.getFieldNumber();
2325
+ switch (field) {
2326
+ case 1:
2327
+ var value = /** @type {number} */ (reader.readInt32());
2328
+ msg.setPage(value);
2329
+ break;
2330
+ case 2:
2331
+ var value = /** @type {number} */ (reader.readInt32());
2332
+ msg.setSize(value);
2333
+ break;
2334
+ case 3:
2335
+ var value = /** @type {number} */ (reader.readInt64());
2336
+ msg.setUserid(value);
2337
+ break;
2338
+ default:
2339
+ reader.skipField();
2340
+ break;
2341
+ }
2342
+ }
2343
+ return msg;
2105
2344
  };
2106
2345
 
2107
2346
 
2108
2347
  /**
2109
- * optional int32 totalPages = 5;
2110
- * @return {number}
2348
+ * Serializes the message to binary data (in protobuf wire format).
2349
+ * @return {!Uint8Array}
2111
2350
  */
2112
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalpages = function() {
2113
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2351
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.serializeBinary = function() {
2352
+ var writer = new jspb.BinaryWriter();
2353
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter(this, writer);
2354
+ return writer.getResultBuffer();
2114
2355
  };
2115
2356
 
2116
2357
 
2117
2358
  /**
2118
- * @param {number} value
2119
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2359
+ * Serializes the given message to binary data (in protobuf wire
2360
+ * format), writing to the given BinaryWriter.
2361
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} message
2362
+ * @param {!jspb.BinaryWriter} writer
2363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2120
2364
  */
2121
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalpages = function(value) {
2122
- return jspb.Message.setProto3IntField(this, 5, value);
2365
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.serializeBinaryToWriter = function(message, writer) {
2366
+ var f = undefined;
2367
+ f = message.getPage();
2368
+ if (f !== 0) {
2369
+ writer.writeInt32(
2370
+ 1,
2371
+ f
2372
+ );
2373
+ }
2374
+ f = message.getSize();
2375
+ if (f !== 0) {
2376
+ writer.writeInt32(
2377
+ 2,
2378
+ f
2379
+ );
2380
+ }
2381
+ f = message.getUserid();
2382
+ if (f !== 0) {
2383
+ writer.writeInt64(
2384
+ 3,
2385
+ f
2386
+ );
2387
+ }
2123
2388
  };
2124
2389
 
2125
2390
 
2126
2391
  /**
2127
- * optional int64 totalSize = 6;
2392
+ * optional int32 page = 1;
2128
2393
  * @return {number}
2129
2394
  */
2130
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalsize = function() {
2131
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2395
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getPage = function() {
2396
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2132
2397
  };
2133
2398
 
2134
2399
 
2135
2400
  /**
2136
2401
  * @param {number} value
2137
- * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2402
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2138
2403
  */
2139
- proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalsize = function(value) {
2140
- return jspb.Message.setProto3IntField(this, 6, value);
2404
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setPage = function(value) {
2405
+ return jspb.Message.setProto3IntField(this, 1, value);
2406
+ };
2407
+
2408
+
2409
+ /**
2410
+ * optional int32 size = 2;
2411
+ * @return {number}
2412
+ */
2413
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getSize = function() {
2414
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2415
+ };
2416
+
2417
+
2418
+ /**
2419
+ * @param {number} value
2420
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2421
+ */
2422
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setSize = function(value) {
2423
+ return jspb.Message.setProto3IntField(this, 2, value);
2424
+ };
2425
+
2426
+
2427
+ /**
2428
+ * optional int64 userId = 3;
2429
+ * @return {number}
2430
+ */
2431
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.getUserid = function() {
2432
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * @param {number} value
2438
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsRequest} returns this
2439
+ */
2440
+ proto.agentbillingserviceapi.GetAssociatedAgentsRequest.prototype.setUserid = function(value) {
2441
+ return jspb.Message.setProto3IntField(this, 3, value);
2442
+ };
2443
+
2444
+
2445
+
2446
+ /**
2447
+ * List of repeated fields within this message type.
2448
+ * @private {!Array<number>}
2449
+ * @const
2450
+ */
2451
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.repeatedFields_ = [2];
2452
+
2453
+
2454
+
2455
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2456
+ /**
2457
+ * Creates an object representation of this proto.
2458
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2459
+ * Optional fields that are not set will be set to undefined.
2460
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2461
+ * For the list of reserved names please see:
2462
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2463
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2464
+ * JSPB instance for transitional soy proto support:
2465
+ * http://goto/soy-param-migration
2466
+ * @return {!Object}
2467
+ */
2468
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.toObject = function(opt_includeInstance) {
2469
+ return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject(opt_includeInstance, this);
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Static version of the {@see toObject} method.
2475
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2476
+ * the JSPB instance for transitional soy proto support:
2477
+ * http://goto/soy-param-migration
2478
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The msg instance to transform.
2479
+ * @return {!Object}
2480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2481
+ */
2482
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.toObject = function(includeInstance, msg) {
2483
+ var f, obj = {
2484
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2485
+ associatedagentsList: jspb.Message.toObjectList(msg.getAssociatedagentsList(),
2486
+ proto.agentbillingserviceapi.Agent.toObject, includeInstance),
2487
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
2488
+ size: jspb.Message.getFieldWithDefault(msg, 4, 0),
2489
+ totalpages: jspb.Message.getFieldWithDefault(msg, 5, 0),
2490
+ totalsize: jspb.Message.getFieldWithDefault(msg, 6, 0)
2491
+ };
2492
+
2493
+ if (includeInstance) {
2494
+ obj.$jspbMessageInstance = msg;
2495
+ }
2496
+ return obj;
2497
+ };
2498
+ }
2499
+
2500
+
2501
+ /**
2502
+ * Deserializes binary data (in protobuf wire format).
2503
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2504
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
2505
+ */
2506
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinary = function(bytes) {
2507
+ var reader = new jspb.BinaryReader(bytes);
2508
+ var msg = new proto.agentbillingserviceapi.GetAssociatedAgentsResponse;
2509
+ return proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader(msg, reader);
2510
+ };
2511
+
2512
+
2513
+ /**
2514
+ * Deserializes binary data (in protobuf wire format) from the
2515
+ * given reader into the given message object.
2516
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} msg The message object to deserialize into.
2517
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2518
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse}
2519
+ */
2520
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.deserializeBinaryFromReader = function(msg, reader) {
2521
+ while (reader.nextField()) {
2522
+ if (reader.isEndGroup()) {
2523
+ break;
2524
+ }
2525
+ var field = reader.getFieldNumber();
2526
+ switch (field) {
2527
+ case 1:
2528
+ var value = new proto.agentbillingserviceapi.ResponseCode;
2529
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
2530
+ msg.setResponsecode(value);
2531
+ break;
2532
+ case 2:
2533
+ var value = new proto.agentbillingserviceapi.Agent;
2534
+ reader.readMessage(value,proto.agentbillingserviceapi.Agent.deserializeBinaryFromReader);
2535
+ msg.addAssociatedagents(value);
2536
+ break;
2537
+ case 3:
2538
+ var value = /** @type {number} */ (reader.readInt32());
2539
+ msg.setPage(value);
2540
+ break;
2541
+ case 4:
2542
+ var value = /** @type {number} */ (reader.readInt32());
2543
+ msg.setSize(value);
2544
+ break;
2545
+ case 5:
2546
+ var value = /** @type {number} */ (reader.readInt32());
2547
+ msg.setTotalpages(value);
2548
+ break;
2549
+ case 6:
2550
+ var value = /** @type {number} */ (reader.readInt64());
2551
+ msg.setTotalsize(value);
2552
+ break;
2553
+ default:
2554
+ reader.skipField();
2555
+ break;
2556
+ }
2557
+ }
2558
+ return msg;
2559
+ };
2560
+
2561
+
2562
+ /**
2563
+ * Serializes the message to binary data (in protobuf wire format).
2564
+ * @return {!Uint8Array}
2565
+ */
2566
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.serializeBinary = function() {
2567
+ var writer = new jspb.BinaryWriter();
2568
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter(this, writer);
2569
+ return writer.getResultBuffer();
2570
+ };
2571
+
2572
+
2573
+ /**
2574
+ * Serializes the given message to binary data (in protobuf wire
2575
+ * format), writing to the given BinaryWriter.
2576
+ * @param {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} message
2577
+ * @param {!jspb.BinaryWriter} writer
2578
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2579
+ */
2580
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.serializeBinaryToWriter = function(message, writer) {
2581
+ var f = undefined;
2582
+ f = message.getResponsecode();
2583
+ if (f != null) {
2584
+ writer.writeMessage(
2585
+ 1,
2586
+ f,
2587
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
2588
+ );
2589
+ }
2590
+ f = message.getAssociatedagentsList();
2591
+ if (f.length > 0) {
2592
+ writer.writeRepeatedMessage(
2593
+ 2,
2594
+ f,
2595
+ proto.agentbillingserviceapi.Agent.serializeBinaryToWriter
2596
+ );
2597
+ }
2598
+ f = message.getPage();
2599
+ if (f !== 0) {
2600
+ writer.writeInt32(
2601
+ 3,
2602
+ f
2603
+ );
2604
+ }
2605
+ f = message.getSize();
2606
+ if (f !== 0) {
2607
+ writer.writeInt32(
2608
+ 4,
2609
+ f
2610
+ );
2611
+ }
2612
+ f = message.getTotalpages();
2613
+ if (f !== 0) {
2614
+ writer.writeInt32(
2615
+ 5,
2616
+ f
2617
+ );
2618
+ }
2619
+ f = message.getTotalsize();
2620
+ if (f !== 0) {
2621
+ writer.writeInt64(
2622
+ 6,
2623
+ f
2624
+ );
2625
+ }
2626
+ };
2627
+
2628
+
2629
+ /**
2630
+ * optional ResponseCode responseCode = 1;
2631
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
2632
+ */
2633
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getResponsecode = function() {
2634
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
2635
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
2636
+ };
2637
+
2638
+
2639
+ /**
2640
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
2641
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2642
+ */
2643
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setResponsecode = function(value) {
2644
+ return jspb.Message.setWrapperField(this, 1, value);
2645
+ };
2646
+
2647
+
2648
+ /**
2649
+ * Clears the message field making it undefined.
2650
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2651
+ */
2652
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearResponsecode = function() {
2653
+ return this.setResponsecode(undefined);
2654
+ };
2655
+
2656
+
2657
+ /**
2658
+ * Returns whether this field is set.
2659
+ * @return {boolean}
2660
+ */
2661
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.hasResponsecode = function() {
2662
+ return jspb.Message.getField(this, 1) != null;
2663
+ };
2664
+
2665
+
2666
+ /**
2667
+ * repeated Agent associatedAgents = 2;
2668
+ * @return {!Array<!proto.agentbillingserviceapi.Agent>}
2669
+ */
2670
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getAssociatedagentsList = function() {
2671
+ return /** @type{!Array<!proto.agentbillingserviceapi.Agent>} */ (
2672
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.Agent, 2));
2673
+ };
2674
+
2675
+
2676
+ /**
2677
+ * @param {!Array<!proto.agentbillingserviceapi.Agent>} value
2678
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2679
+ */
2680
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setAssociatedagentsList = function(value) {
2681
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2682
+ };
2683
+
2684
+
2685
+ /**
2686
+ * @param {!proto.agentbillingserviceapi.Agent=} opt_value
2687
+ * @param {number=} opt_index
2688
+ * @return {!proto.agentbillingserviceapi.Agent}
2689
+ */
2690
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.addAssociatedagents = function(opt_value, opt_index) {
2691
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.agentbillingserviceapi.Agent, opt_index);
2692
+ };
2693
+
2694
+
2695
+ /**
2696
+ * Clears the list making it empty but non-null.
2697
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2698
+ */
2699
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.clearAssociatedagentsList = function() {
2700
+ return this.setAssociatedagentsList([]);
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * optional int32 page = 3;
2706
+ * @return {number}
2707
+ */
2708
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getPage = function() {
2709
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2710
+ };
2711
+
2712
+
2713
+ /**
2714
+ * @param {number} value
2715
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2716
+ */
2717
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setPage = function(value) {
2718
+ return jspb.Message.setProto3IntField(this, 3, value);
2719
+ };
2720
+
2721
+
2722
+ /**
2723
+ * optional int32 size = 4;
2724
+ * @return {number}
2725
+ */
2726
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getSize = function() {
2727
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2728
+ };
2729
+
2730
+
2731
+ /**
2732
+ * @param {number} value
2733
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2734
+ */
2735
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setSize = function(value) {
2736
+ return jspb.Message.setProto3IntField(this, 4, value);
2737
+ };
2738
+
2739
+
2740
+ /**
2741
+ * optional int32 totalPages = 5;
2742
+ * @return {number}
2743
+ */
2744
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalpages = function() {
2745
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * @param {number} value
2751
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2752
+ */
2753
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalpages = function(value) {
2754
+ return jspb.Message.setProto3IntField(this, 5, value);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * optional int64 totalSize = 6;
2760
+ * @return {number}
2761
+ */
2762
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.getTotalsize = function() {
2763
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2764
+ };
2765
+
2766
+
2767
+ /**
2768
+ * @param {number} value
2769
+ * @return {!proto.agentbillingserviceapi.GetAssociatedAgentsResponse} returns this
2770
+ */
2771
+ proto.agentbillingserviceapi.GetAssociatedAgentsResponse.prototype.setTotalsize = function(value) {
2772
+ return jspb.Message.setProto3IntField(this, 6, value);
2773
+ };
2774
+
2775
+
2776
+
2777
+
2778
+
2779
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2780
+ /**
2781
+ * Creates an object representation of this proto.
2782
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2783
+ * Optional fields that are not set will be set to undefined.
2784
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2785
+ * For the list of reserved names please see:
2786
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2787
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2788
+ * JSPB instance for transitional soy proto support:
2789
+ * http://goto/soy-param-migration
2790
+ * @return {!Object}
2791
+ */
2792
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.toObject = function(opt_includeInstance) {
2793
+ return proto.agentbillingserviceapi.GetAssociatedClientRequest.toObject(opt_includeInstance, this);
2794
+ };
2795
+
2796
+
2797
+ /**
2798
+ * Static version of the {@see toObject} method.
2799
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2800
+ * the JSPB instance for transitional soy proto support:
2801
+ * http://goto/soy-param-migration
2802
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientRequest} msg The msg instance to transform.
2803
+ * @return {!Object}
2804
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2805
+ */
2806
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.toObject = function(includeInstance, msg) {
2807
+ var f, obj = {
2808
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 1, 0),
2809
+ clientuserid: jspb.Message.getFieldWithDefault(msg, 2, 0)
2810
+ };
2811
+
2812
+ if (includeInstance) {
2813
+ obj.$jspbMessageInstance = msg;
2814
+ }
2815
+ return obj;
2816
+ };
2817
+ }
2818
+
2819
+
2820
+ /**
2821
+ * Deserializes binary data (in protobuf wire format).
2822
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2823
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest}
2824
+ */
2825
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.deserializeBinary = function(bytes) {
2826
+ var reader = new jspb.BinaryReader(bytes);
2827
+ var msg = new proto.agentbillingserviceapi.GetAssociatedClientRequest;
2828
+ return proto.agentbillingserviceapi.GetAssociatedClientRequest.deserializeBinaryFromReader(msg, reader);
2829
+ };
2830
+
2831
+
2832
+ /**
2833
+ * Deserializes binary data (in protobuf wire format) from the
2834
+ * given reader into the given message object.
2835
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientRequest} msg The message object to deserialize into.
2836
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2837
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest}
2838
+ */
2839
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.deserializeBinaryFromReader = function(msg, reader) {
2840
+ while (reader.nextField()) {
2841
+ if (reader.isEndGroup()) {
2842
+ break;
2843
+ }
2844
+ var field = reader.getFieldNumber();
2845
+ switch (field) {
2846
+ case 1:
2847
+ var value = /** @type {number} */ (reader.readInt64());
2848
+ msg.setAgentuserid(value);
2849
+ break;
2850
+ case 2:
2851
+ var value = /** @type {number} */ (reader.readInt64());
2852
+ msg.setClientuserid(value);
2853
+ break;
2854
+ default:
2855
+ reader.skipField();
2856
+ break;
2857
+ }
2858
+ }
2859
+ return msg;
2860
+ };
2861
+
2862
+
2863
+ /**
2864
+ * Serializes the message to binary data (in protobuf wire format).
2865
+ * @return {!Uint8Array}
2866
+ */
2867
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.serializeBinary = function() {
2868
+ var writer = new jspb.BinaryWriter();
2869
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.serializeBinaryToWriter(this, writer);
2870
+ return writer.getResultBuffer();
2871
+ };
2872
+
2873
+
2874
+ /**
2875
+ * Serializes the given message to binary data (in protobuf wire
2876
+ * format), writing to the given BinaryWriter.
2877
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientRequest} message
2878
+ * @param {!jspb.BinaryWriter} writer
2879
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2880
+ */
2881
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.serializeBinaryToWriter = function(message, writer) {
2882
+ var f = undefined;
2883
+ f = message.getAgentuserid();
2884
+ if (f !== 0) {
2885
+ writer.writeInt64(
2886
+ 1,
2887
+ f
2888
+ );
2889
+ }
2890
+ f = message.getClientuserid();
2891
+ if (f !== 0) {
2892
+ writer.writeInt64(
2893
+ 2,
2894
+ f
2895
+ );
2896
+ }
2897
+ };
2898
+
2899
+
2900
+ /**
2901
+ * optional int64 agentUserId = 1;
2902
+ * @return {number}
2903
+ */
2904
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.getAgentuserid = function() {
2905
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * @param {number} value
2911
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest} returns this
2912
+ */
2913
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.setAgentuserid = function(value) {
2914
+ return jspb.Message.setProto3IntField(this, 1, value);
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * optional int64 clientUserId = 2;
2920
+ * @return {number}
2921
+ */
2922
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.getClientuserid = function() {
2923
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * @param {number} value
2929
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientRequest} returns this
2930
+ */
2931
+ proto.agentbillingserviceapi.GetAssociatedClientRequest.prototype.setClientuserid = function(value) {
2932
+ return jspb.Message.setProto3IntField(this, 2, value);
2933
+ };
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2940
+ /**
2941
+ * Creates an object representation of this proto.
2942
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2943
+ * Optional fields that are not set will be set to undefined.
2944
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2945
+ * For the list of reserved names please see:
2946
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2947
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2948
+ * JSPB instance for transitional soy proto support:
2949
+ * http://goto/soy-param-migration
2950
+ * @return {!Object}
2951
+ */
2952
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.toObject = function(opt_includeInstance) {
2953
+ return proto.agentbillingserviceapi.GetAssociatedClientResponse.toObject(opt_includeInstance, this);
2954
+ };
2955
+
2956
+
2957
+ /**
2958
+ * Static version of the {@see toObject} method.
2959
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2960
+ * the JSPB instance for transitional soy proto support:
2961
+ * http://goto/soy-param-migration
2962
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientResponse} msg The msg instance to transform.
2963
+ * @return {!Object}
2964
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2965
+ */
2966
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.toObject = function(includeInstance, msg) {
2967
+ var f, obj = {
2968
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
2969
+ associatedclient: (f = msg.getAssociatedclient()) && proto.agentbillingserviceapi.Client.toObject(includeInstance, f)
2970
+ };
2971
+
2972
+ if (includeInstance) {
2973
+ obj.$jspbMessageInstance = msg;
2974
+ }
2975
+ return obj;
2976
+ };
2977
+ }
2978
+
2979
+
2980
+ /**
2981
+ * Deserializes binary data (in protobuf wire format).
2982
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2983
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse}
2984
+ */
2985
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.deserializeBinary = function(bytes) {
2986
+ var reader = new jspb.BinaryReader(bytes);
2987
+ var msg = new proto.agentbillingserviceapi.GetAssociatedClientResponse;
2988
+ return proto.agentbillingserviceapi.GetAssociatedClientResponse.deserializeBinaryFromReader(msg, reader);
2989
+ };
2990
+
2991
+
2992
+ /**
2993
+ * Deserializes binary data (in protobuf wire format) from the
2994
+ * given reader into the given message object.
2995
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientResponse} msg The message object to deserialize into.
2996
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2997
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse}
2998
+ */
2999
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.deserializeBinaryFromReader = function(msg, reader) {
3000
+ while (reader.nextField()) {
3001
+ if (reader.isEndGroup()) {
3002
+ break;
3003
+ }
3004
+ var field = reader.getFieldNumber();
3005
+ switch (field) {
3006
+ case 1:
3007
+ var value = new proto.agentbillingserviceapi.ResponseCode;
3008
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
3009
+ msg.setResponsecode(value);
3010
+ break;
3011
+ case 2:
3012
+ var value = new proto.agentbillingserviceapi.Client;
3013
+ reader.readMessage(value,proto.agentbillingserviceapi.Client.deserializeBinaryFromReader);
3014
+ msg.setAssociatedclient(value);
3015
+ break;
3016
+ default:
3017
+ reader.skipField();
3018
+ break;
3019
+ }
3020
+ }
3021
+ return msg;
3022
+ };
3023
+
3024
+
3025
+ /**
3026
+ * Serializes the message to binary data (in protobuf wire format).
3027
+ * @return {!Uint8Array}
3028
+ */
3029
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.serializeBinary = function() {
3030
+ var writer = new jspb.BinaryWriter();
3031
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.serializeBinaryToWriter(this, writer);
3032
+ return writer.getResultBuffer();
3033
+ };
3034
+
3035
+
3036
+ /**
3037
+ * Serializes the given message to binary data (in protobuf wire
3038
+ * format), writing to the given BinaryWriter.
3039
+ * @param {!proto.agentbillingserviceapi.GetAssociatedClientResponse} message
3040
+ * @param {!jspb.BinaryWriter} writer
3041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3042
+ */
3043
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.serializeBinaryToWriter = function(message, writer) {
3044
+ var f = undefined;
3045
+ f = message.getResponsecode();
3046
+ if (f != null) {
3047
+ writer.writeMessage(
3048
+ 1,
3049
+ f,
3050
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
3051
+ );
3052
+ }
3053
+ f = message.getAssociatedclient();
3054
+ if (f != null) {
3055
+ writer.writeMessage(
3056
+ 2,
3057
+ f,
3058
+ proto.agentbillingserviceapi.Client.serializeBinaryToWriter
3059
+ );
3060
+ }
3061
+ };
3062
+
3063
+
3064
+ /**
3065
+ * optional ResponseCode responseCode = 1;
3066
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
3067
+ */
3068
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.getResponsecode = function() {
3069
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
3070
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
3071
+ };
3072
+
3073
+
3074
+ /**
3075
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
3076
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3077
+ */
3078
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.setResponsecode = function(value) {
3079
+ return jspb.Message.setWrapperField(this, 1, value);
3080
+ };
3081
+
3082
+
3083
+ /**
3084
+ * Clears the message field making it undefined.
3085
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3086
+ */
3087
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.clearResponsecode = function() {
3088
+ return this.setResponsecode(undefined);
3089
+ };
3090
+
3091
+
3092
+ /**
3093
+ * Returns whether this field is set.
3094
+ * @return {boolean}
3095
+ */
3096
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.hasResponsecode = function() {
3097
+ return jspb.Message.getField(this, 1) != null;
3098
+ };
3099
+
3100
+
3101
+ /**
3102
+ * optional Client associatedClient = 2;
3103
+ * @return {?proto.agentbillingserviceapi.Client}
3104
+ */
3105
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.getAssociatedclient = function() {
3106
+ return /** @type{?proto.agentbillingserviceapi.Client} */ (
3107
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.Client, 2));
3108
+ };
3109
+
3110
+
3111
+ /**
3112
+ * @param {?proto.agentbillingserviceapi.Client|undefined} value
3113
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3114
+ */
3115
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.setAssociatedclient = function(value) {
3116
+ return jspb.Message.setWrapperField(this, 2, value);
3117
+ };
3118
+
3119
+
3120
+ /**
3121
+ * Clears the message field making it undefined.
3122
+ * @return {!proto.agentbillingserviceapi.GetAssociatedClientResponse} returns this
3123
+ */
3124
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.clearAssociatedclient = function() {
3125
+ return this.setAssociatedclient(undefined);
3126
+ };
3127
+
3128
+
3129
+ /**
3130
+ * Returns whether this field is set.
3131
+ * @return {boolean}
3132
+ */
3133
+ proto.agentbillingserviceapi.GetAssociatedClientResponse.prototype.hasAssociatedclient = function() {
3134
+ return jspb.Message.getField(this, 2) != null;
2141
3135
  };
2142
3136
 
2143
3137