@google-cloud/agones-sdk 1.32.0 → 1.34.0

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.
package/lib/sdk_pb.js CHANGED
@@ -41,6 +41,9 @@ goog.exportSymbol('proto.agones.dev.sdk.GameServer.ObjectMeta', null, global);
41
41
  goog.exportSymbol('proto.agones.dev.sdk.GameServer.Spec', null, global);
42
42
  goog.exportSymbol('proto.agones.dev.sdk.GameServer.Spec.Health', null, global);
43
43
  goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status', null, global);
44
+ goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.Address', null, global);
45
+ goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.CounterStatus', null, global);
46
+ goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.ListStatus', null, global);
44
47
  goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.PlayerStatus', null, global);
45
48
  goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.Port', null, global);
46
49
  goog.exportSymbol('proto.agones.dev.sdk.KeyValue', null, global);
@@ -212,6 +215,27 @@ if (goog.DEBUG && !COMPILED) {
212
215
  */
213
216
  proto.agones.dev.sdk.GameServer.Status.displayName = 'proto.agones.dev.sdk.GameServer.Status';
214
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.agones.dev.sdk.GameServer.Status.Address = function(opt_data) {
229
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
230
+ };
231
+ goog.inherits(proto.agones.dev.sdk.GameServer.Status.Address, jspb.Message);
232
+ if (goog.DEBUG && !COMPILED) {
233
+ /**
234
+ * @public
235
+ * @override
236
+ */
237
+ proto.agones.dev.sdk.GameServer.Status.Address.displayName = 'proto.agones.dev.sdk.GameServer.Status.Address';
238
+ }
215
239
  /**
216
240
  * Generated by JsPbCodeGenerator.
217
241
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -254,6 +278,48 @@ if (goog.DEBUG && !COMPILED) {
254
278
  */
255
279
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.displayName = 'proto.agones.dev.sdk.GameServer.Status.PlayerStatus';
256
280
  }
281
+ /**
282
+ * Generated by JsPbCodeGenerator.
283
+ * @param {Array=} opt_data Optional initial data array, typically from a
284
+ * server response, or constructed directly in Javascript. The array is used
285
+ * in place and becomes part of the constructed object. It is not cloned.
286
+ * If no data is provided, the constructed object will be empty, but still
287
+ * valid.
288
+ * @extends {jspb.Message}
289
+ * @constructor
290
+ */
291
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus = function(opt_data) {
292
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
293
+ };
294
+ goog.inherits(proto.agones.dev.sdk.GameServer.Status.CounterStatus, jspb.Message);
295
+ if (goog.DEBUG && !COMPILED) {
296
+ /**
297
+ * @public
298
+ * @override
299
+ */
300
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.displayName = 'proto.agones.dev.sdk.GameServer.Status.CounterStatus';
301
+ }
302
+ /**
303
+ * Generated by JsPbCodeGenerator.
304
+ * @param {Array=} opt_data Optional initial data array, typically from a
305
+ * server response, or constructed directly in Javascript. The array is used
306
+ * in place and becomes part of the constructed object. It is not cloned.
307
+ * If no data is provided, the constructed object will be empty, but still
308
+ * valid.
309
+ * @extends {jspb.Message}
310
+ * @constructor
311
+ */
312
+ proto.agones.dev.sdk.GameServer.Status.ListStatus = function(opt_data) {
313
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.GameServer.Status.ListStatus.repeatedFields_, null);
314
+ };
315
+ goog.inherits(proto.agones.dev.sdk.GameServer.Status.ListStatus, jspb.Message);
316
+ if (goog.DEBUG && !COMPILED) {
317
+ /**
318
+ * @public
319
+ * @override
320
+ */
321
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.displayName = 'proto.agones.dev.sdk.GameServer.Status.ListStatus';
322
+ }
257
323
 
258
324
 
259
325
 
@@ -1540,7 +1606,7 @@ proto.agones.dev.sdk.GameServer.Spec.prototype.hasHealth = function() {
1540
1606
  * @private {!Array<number>}
1541
1607
  * @const
1542
1608
  */
1543
- proto.agones.dev.sdk.GameServer.Status.repeatedFields_ = [3];
1609
+ proto.agones.dev.sdk.GameServer.Status.repeatedFields_ = [7,3];
1544
1610
 
1545
1611
 
1546
1612
 
@@ -1575,9 +1641,13 @@ proto.agones.dev.sdk.GameServer.Status.toObject = function(includeInstance, msg)
1575
1641
  var f, obj = {
1576
1642
  state: jspb.Message.getFieldWithDefault(msg, 1, ""),
1577
1643
  address: jspb.Message.getFieldWithDefault(msg, 2, ""),
1644
+ addressesList: jspb.Message.toObjectList(msg.getAddressesList(),
1645
+ proto.agones.dev.sdk.GameServer.Status.Address.toObject, includeInstance),
1578
1646
  portsList: jspb.Message.toObjectList(msg.getPortsList(),
1579
1647
  proto.agones.dev.sdk.GameServer.Status.Port.toObject, includeInstance),
1580
- players: (f = msg.getPlayers()) && proto.agones.dev.sdk.GameServer.Status.PlayerStatus.toObject(includeInstance, f)
1648
+ players: (f = msg.getPlayers()) && proto.agones.dev.sdk.GameServer.Status.PlayerStatus.toObject(includeInstance, f),
1649
+ countersMap: (f = msg.getCountersMap()) ? f.toObject(includeInstance, proto.agones.dev.sdk.GameServer.Status.CounterStatus.toObject) : [],
1650
+ listsMap: (f = msg.getListsMap()) ? f.toObject(includeInstance, proto.agones.dev.sdk.GameServer.Status.ListStatus.toObject) : []
1581
1651
  };
1582
1652
 
1583
1653
  if (includeInstance) {
@@ -1622,6 +1692,11 @@ proto.agones.dev.sdk.GameServer.Status.deserializeBinaryFromReader = function(ms
1622
1692
  var value = /** @type {string} */ (reader.readString());
1623
1693
  msg.setAddress(value);
1624
1694
  break;
1695
+ case 7:
1696
+ var value = new proto.agones.dev.sdk.GameServer.Status.Address;
1697
+ reader.readMessage(value,proto.agones.dev.sdk.GameServer.Status.Address.deserializeBinaryFromReader);
1698
+ msg.addAddresses(value);
1699
+ break;
1625
1700
  case 3:
1626
1701
  var value = new proto.agones.dev.sdk.GameServer.Status.Port;
1627
1702
  reader.readMessage(value,proto.agones.dev.sdk.GameServer.Status.Port.deserializeBinaryFromReader);
@@ -1632,6 +1707,18 @@ proto.agones.dev.sdk.GameServer.Status.deserializeBinaryFromReader = function(ms
1632
1707
  reader.readMessage(value,proto.agones.dev.sdk.GameServer.Status.PlayerStatus.deserializeBinaryFromReader);
1633
1708
  msg.setPlayers(value);
1634
1709
  break;
1710
+ case 5:
1711
+ var value = msg.getCountersMap();
1712
+ reader.readMessage(value, function(message, reader) {
1713
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.agones.dev.sdk.GameServer.Status.CounterStatus.deserializeBinaryFromReader, "", new proto.agones.dev.sdk.GameServer.Status.CounterStatus());
1714
+ });
1715
+ break;
1716
+ case 6:
1717
+ var value = msg.getListsMap();
1718
+ reader.readMessage(value, function(message, reader) {
1719
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.agones.dev.sdk.GameServer.Status.ListStatus.deserializeBinaryFromReader, "", new proto.agones.dev.sdk.GameServer.Status.ListStatus());
1720
+ });
1721
+ break;
1635
1722
  default:
1636
1723
  reader.skipField();
1637
1724
  break;
@@ -1675,6 +1762,14 @@ proto.agones.dev.sdk.GameServer.Status.serializeBinaryToWriter = function(messag
1675
1762
  f
1676
1763
  );
1677
1764
  }
1765
+ f = message.getAddressesList();
1766
+ if (f.length > 0) {
1767
+ writer.writeRepeatedMessage(
1768
+ 7,
1769
+ f,
1770
+ proto.agones.dev.sdk.GameServer.Status.Address.serializeBinaryToWriter
1771
+ );
1772
+ }
1678
1773
  f = message.getPortsList();
1679
1774
  if (f.length > 0) {
1680
1775
  writer.writeRepeatedMessage(
@@ -1691,6 +1786,174 @@ proto.agones.dev.sdk.GameServer.Status.serializeBinaryToWriter = function(messag
1691
1786
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.serializeBinaryToWriter
1692
1787
  );
1693
1788
  }
1789
+ f = message.getCountersMap(true);
1790
+ if (f && f.getLength() > 0) {
1791
+ f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.agones.dev.sdk.GameServer.Status.CounterStatus.serializeBinaryToWriter);
1792
+ }
1793
+ f = message.getListsMap(true);
1794
+ if (f && f.getLength() > 0) {
1795
+ f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.agones.dev.sdk.GameServer.Status.ListStatus.serializeBinaryToWriter);
1796
+ }
1797
+ };
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1804
+ /**
1805
+ * Creates an object representation of this proto.
1806
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1807
+ * Optional fields that are not set will be set to undefined.
1808
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1809
+ * For the list of reserved names please see:
1810
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1811
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1812
+ * JSPB instance for transitional soy proto support:
1813
+ * http://goto/soy-param-migration
1814
+ * @return {!Object}
1815
+ */
1816
+ proto.agones.dev.sdk.GameServer.Status.Address.prototype.toObject = function(opt_includeInstance) {
1817
+ return proto.agones.dev.sdk.GameServer.Status.Address.toObject(opt_includeInstance, this);
1818
+ };
1819
+
1820
+
1821
+ /**
1822
+ * Static version of the {@see toObject} method.
1823
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1824
+ * the JSPB instance for transitional soy proto support:
1825
+ * http://goto/soy-param-migration
1826
+ * @param {!proto.agones.dev.sdk.GameServer.Status.Address} msg The msg instance to transform.
1827
+ * @return {!Object}
1828
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1829
+ */
1830
+ proto.agones.dev.sdk.GameServer.Status.Address.toObject = function(includeInstance, msg) {
1831
+ var f, obj = {
1832
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
1833
+ address: jspb.Message.getFieldWithDefault(msg, 2, "")
1834
+ };
1835
+
1836
+ if (includeInstance) {
1837
+ obj.$jspbMessageInstance = msg;
1838
+ }
1839
+ return obj;
1840
+ };
1841
+ }
1842
+
1843
+
1844
+ /**
1845
+ * Deserializes binary data (in protobuf wire format).
1846
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1847
+ * @return {!proto.agones.dev.sdk.GameServer.Status.Address}
1848
+ */
1849
+ proto.agones.dev.sdk.GameServer.Status.Address.deserializeBinary = function(bytes) {
1850
+ var reader = new jspb.BinaryReader(bytes);
1851
+ var msg = new proto.agones.dev.sdk.GameServer.Status.Address;
1852
+ return proto.agones.dev.sdk.GameServer.Status.Address.deserializeBinaryFromReader(msg, reader);
1853
+ };
1854
+
1855
+
1856
+ /**
1857
+ * Deserializes binary data (in protobuf wire format) from the
1858
+ * given reader into the given message object.
1859
+ * @param {!proto.agones.dev.sdk.GameServer.Status.Address} msg The message object to deserialize into.
1860
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1861
+ * @return {!proto.agones.dev.sdk.GameServer.Status.Address}
1862
+ */
1863
+ proto.agones.dev.sdk.GameServer.Status.Address.deserializeBinaryFromReader = function(msg, reader) {
1864
+ while (reader.nextField()) {
1865
+ if (reader.isEndGroup()) {
1866
+ break;
1867
+ }
1868
+ var field = reader.getFieldNumber();
1869
+ switch (field) {
1870
+ case 1:
1871
+ var value = /** @type {string} */ (reader.readString());
1872
+ msg.setType(value);
1873
+ break;
1874
+ case 2:
1875
+ var value = /** @type {string} */ (reader.readString());
1876
+ msg.setAddress(value);
1877
+ break;
1878
+ default:
1879
+ reader.skipField();
1880
+ break;
1881
+ }
1882
+ }
1883
+ return msg;
1884
+ };
1885
+
1886
+
1887
+ /**
1888
+ * Serializes the message to binary data (in protobuf wire format).
1889
+ * @return {!Uint8Array}
1890
+ */
1891
+ proto.agones.dev.sdk.GameServer.Status.Address.prototype.serializeBinary = function() {
1892
+ var writer = new jspb.BinaryWriter();
1893
+ proto.agones.dev.sdk.GameServer.Status.Address.serializeBinaryToWriter(this, writer);
1894
+ return writer.getResultBuffer();
1895
+ };
1896
+
1897
+
1898
+ /**
1899
+ * Serializes the given message to binary data (in protobuf wire
1900
+ * format), writing to the given BinaryWriter.
1901
+ * @param {!proto.agones.dev.sdk.GameServer.Status.Address} message
1902
+ * @param {!jspb.BinaryWriter} writer
1903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1904
+ */
1905
+ proto.agones.dev.sdk.GameServer.Status.Address.serializeBinaryToWriter = function(message, writer) {
1906
+ var f = undefined;
1907
+ f = message.getType();
1908
+ if (f.length > 0) {
1909
+ writer.writeString(
1910
+ 1,
1911
+ f
1912
+ );
1913
+ }
1914
+ f = message.getAddress();
1915
+ if (f.length > 0) {
1916
+ writer.writeString(
1917
+ 2,
1918
+ f
1919
+ );
1920
+ }
1921
+ };
1922
+
1923
+
1924
+ /**
1925
+ * optional string type = 1;
1926
+ * @return {string}
1927
+ */
1928
+ proto.agones.dev.sdk.GameServer.Status.Address.prototype.getType = function() {
1929
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1930
+ };
1931
+
1932
+
1933
+ /**
1934
+ * @param {string} value
1935
+ * @return {!proto.agones.dev.sdk.GameServer.Status.Address} returns this
1936
+ */
1937
+ proto.agones.dev.sdk.GameServer.Status.Address.prototype.setType = function(value) {
1938
+ return jspb.Message.setProto3StringField(this, 1, value);
1939
+ };
1940
+
1941
+
1942
+ /**
1943
+ * optional string address = 2;
1944
+ * @return {string}
1945
+ */
1946
+ proto.agones.dev.sdk.GameServer.Status.Address.prototype.getAddress = function() {
1947
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1948
+ };
1949
+
1950
+
1951
+ /**
1952
+ * @param {string} value
1953
+ * @return {!proto.agones.dev.sdk.GameServer.Status.Address} returns this
1954
+ */
1955
+ proto.agones.dev.sdk.GameServer.Status.Address.prototype.setAddress = function(value) {
1956
+ return jspb.Message.setProto3StringField(this, 2, value);
1694
1957
  };
1695
1958
 
1696
1959
 
@@ -2070,39 +2333,423 @@ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.clearIdsList = fun
2070
2333
  };
2071
2334
 
2072
2335
 
2073
- /**
2074
- * optional string state = 1;
2075
- * @return {string}
2076
- */
2077
- proto.agones.dev.sdk.GameServer.Status.prototype.getState = function() {
2078
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2079
- };
2080
2336
 
2081
2337
 
2338
+
2339
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2082
2340
  /**
2083
- * @param {string} value
2084
- * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2341
+ * Creates an object representation of this proto.
2342
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2343
+ * Optional fields that are not set will be set to undefined.
2344
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2345
+ * For the list of reserved names please see:
2346
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2347
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2348
+ * JSPB instance for transitional soy proto support:
2349
+ * http://goto/soy-param-migration
2350
+ * @return {!Object}
2085
2351
  */
2086
- proto.agones.dev.sdk.GameServer.Status.prototype.setState = function(value) {
2087
- return jspb.Message.setProto3StringField(this, 1, value);
2352
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.prototype.toObject = function(opt_includeInstance) {
2353
+ return proto.agones.dev.sdk.GameServer.Status.CounterStatus.toObject(opt_includeInstance, this);
2088
2354
  };
2089
2355
 
2090
2356
 
2091
2357
  /**
2092
- * optional string address = 2;
2093
- * @return {string}
2358
+ * Static version of the {@see toObject} method.
2359
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2360
+ * the JSPB instance for transitional soy proto support:
2361
+ * http://goto/soy-param-migration
2362
+ * @param {!proto.agones.dev.sdk.GameServer.Status.CounterStatus} msg The msg instance to transform.
2363
+ * @return {!Object}
2364
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2094
2365
  */
2095
- proto.agones.dev.sdk.GameServer.Status.prototype.getAddress = function() {
2096
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2366
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.toObject = function(includeInstance, msg) {
2367
+ var f, obj = {
2368
+ count: jspb.Message.getFieldWithDefault(msg, 1, 0),
2369
+ capacity: jspb.Message.getFieldWithDefault(msg, 2, 0)
2370
+ };
2371
+
2372
+ if (includeInstance) {
2373
+ obj.$jspbMessageInstance = msg;
2374
+ }
2375
+ return obj;
2097
2376
  };
2377
+ }
2098
2378
 
2099
2379
 
2100
2380
  /**
2101
- * @param {string} value
2102
- * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2381
+ * Deserializes binary data (in protobuf wire format).
2382
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2383
+ * @return {!proto.agones.dev.sdk.GameServer.Status.CounterStatus}
2103
2384
  */
2104
- proto.agones.dev.sdk.GameServer.Status.prototype.setAddress = function(value) {
2105
- return jspb.Message.setProto3StringField(this, 2, value);
2385
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.deserializeBinary = function(bytes) {
2386
+ var reader = new jspb.BinaryReader(bytes);
2387
+ var msg = new proto.agones.dev.sdk.GameServer.Status.CounterStatus;
2388
+ return proto.agones.dev.sdk.GameServer.Status.CounterStatus.deserializeBinaryFromReader(msg, reader);
2389
+ };
2390
+
2391
+
2392
+ /**
2393
+ * Deserializes binary data (in protobuf wire format) from the
2394
+ * given reader into the given message object.
2395
+ * @param {!proto.agones.dev.sdk.GameServer.Status.CounterStatus} msg The message object to deserialize into.
2396
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2397
+ * @return {!proto.agones.dev.sdk.GameServer.Status.CounterStatus}
2398
+ */
2399
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.deserializeBinaryFromReader = function(msg, reader) {
2400
+ while (reader.nextField()) {
2401
+ if (reader.isEndGroup()) {
2402
+ break;
2403
+ }
2404
+ var field = reader.getFieldNumber();
2405
+ switch (field) {
2406
+ case 1:
2407
+ var value = /** @type {number} */ (reader.readInt64());
2408
+ msg.setCount(value);
2409
+ break;
2410
+ case 2:
2411
+ var value = /** @type {number} */ (reader.readInt64());
2412
+ msg.setCapacity(value);
2413
+ break;
2414
+ default:
2415
+ reader.skipField();
2416
+ break;
2417
+ }
2418
+ }
2419
+ return msg;
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * Serializes the message to binary data (in protobuf wire format).
2425
+ * @return {!Uint8Array}
2426
+ */
2427
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.prototype.serializeBinary = function() {
2428
+ var writer = new jspb.BinaryWriter();
2429
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.serializeBinaryToWriter(this, writer);
2430
+ return writer.getResultBuffer();
2431
+ };
2432
+
2433
+
2434
+ /**
2435
+ * Serializes the given message to binary data (in protobuf wire
2436
+ * format), writing to the given BinaryWriter.
2437
+ * @param {!proto.agones.dev.sdk.GameServer.Status.CounterStatus} message
2438
+ * @param {!jspb.BinaryWriter} writer
2439
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2440
+ */
2441
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.serializeBinaryToWriter = function(message, writer) {
2442
+ var f = undefined;
2443
+ f = message.getCount();
2444
+ if (f !== 0) {
2445
+ writer.writeInt64(
2446
+ 1,
2447
+ f
2448
+ );
2449
+ }
2450
+ f = message.getCapacity();
2451
+ if (f !== 0) {
2452
+ writer.writeInt64(
2453
+ 2,
2454
+ f
2455
+ );
2456
+ }
2457
+ };
2458
+
2459
+
2460
+ /**
2461
+ * optional int64 count = 1;
2462
+ * @return {number}
2463
+ */
2464
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.prototype.getCount = function() {
2465
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2466
+ };
2467
+
2468
+
2469
+ /**
2470
+ * @param {number} value
2471
+ * @return {!proto.agones.dev.sdk.GameServer.Status.CounterStatus} returns this
2472
+ */
2473
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.prototype.setCount = function(value) {
2474
+ return jspb.Message.setProto3IntField(this, 1, value);
2475
+ };
2476
+
2477
+
2478
+ /**
2479
+ * optional int64 capacity = 2;
2480
+ * @return {number}
2481
+ */
2482
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.prototype.getCapacity = function() {
2483
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2484
+ };
2485
+
2486
+
2487
+ /**
2488
+ * @param {number} value
2489
+ * @return {!proto.agones.dev.sdk.GameServer.Status.CounterStatus} returns this
2490
+ */
2491
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus.prototype.setCapacity = function(value) {
2492
+ return jspb.Message.setProto3IntField(this, 2, value);
2493
+ };
2494
+
2495
+
2496
+
2497
+ /**
2498
+ * List of repeated fields within this message type.
2499
+ * @private {!Array<number>}
2500
+ * @const
2501
+ */
2502
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.repeatedFields_ = [2];
2503
+
2504
+
2505
+
2506
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2507
+ /**
2508
+ * Creates an object representation of this proto.
2509
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2510
+ * Optional fields that are not set will be set to undefined.
2511
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2512
+ * For the list of reserved names please see:
2513
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2514
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2515
+ * JSPB instance for transitional soy proto support:
2516
+ * http://goto/soy-param-migration
2517
+ * @return {!Object}
2518
+ */
2519
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.toObject = function(opt_includeInstance) {
2520
+ return proto.agones.dev.sdk.GameServer.Status.ListStatus.toObject(opt_includeInstance, this);
2521
+ };
2522
+
2523
+
2524
+ /**
2525
+ * Static version of the {@see toObject} method.
2526
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2527
+ * the JSPB instance for transitional soy proto support:
2528
+ * http://goto/soy-param-migration
2529
+ * @param {!proto.agones.dev.sdk.GameServer.Status.ListStatus} msg The msg instance to transform.
2530
+ * @return {!Object}
2531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2532
+ */
2533
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.toObject = function(includeInstance, msg) {
2534
+ var f, obj = {
2535
+ capacity: jspb.Message.getFieldWithDefault(msg, 1, 0),
2536
+ valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
2537
+ };
2538
+
2539
+ if (includeInstance) {
2540
+ obj.$jspbMessageInstance = msg;
2541
+ }
2542
+ return obj;
2543
+ };
2544
+ }
2545
+
2546
+
2547
+ /**
2548
+ * Deserializes binary data (in protobuf wire format).
2549
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2550
+ * @return {!proto.agones.dev.sdk.GameServer.Status.ListStatus}
2551
+ */
2552
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.deserializeBinary = function(bytes) {
2553
+ var reader = new jspb.BinaryReader(bytes);
2554
+ var msg = new proto.agones.dev.sdk.GameServer.Status.ListStatus;
2555
+ return proto.agones.dev.sdk.GameServer.Status.ListStatus.deserializeBinaryFromReader(msg, reader);
2556
+ };
2557
+
2558
+
2559
+ /**
2560
+ * Deserializes binary data (in protobuf wire format) from the
2561
+ * given reader into the given message object.
2562
+ * @param {!proto.agones.dev.sdk.GameServer.Status.ListStatus} msg The message object to deserialize into.
2563
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2564
+ * @return {!proto.agones.dev.sdk.GameServer.Status.ListStatus}
2565
+ */
2566
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.deserializeBinaryFromReader = function(msg, reader) {
2567
+ while (reader.nextField()) {
2568
+ if (reader.isEndGroup()) {
2569
+ break;
2570
+ }
2571
+ var field = reader.getFieldNumber();
2572
+ switch (field) {
2573
+ case 1:
2574
+ var value = /** @type {number} */ (reader.readInt64());
2575
+ msg.setCapacity(value);
2576
+ break;
2577
+ case 2:
2578
+ var value = /** @type {string} */ (reader.readString());
2579
+ msg.addValues(value);
2580
+ break;
2581
+ default:
2582
+ reader.skipField();
2583
+ break;
2584
+ }
2585
+ }
2586
+ return msg;
2587
+ };
2588
+
2589
+
2590
+ /**
2591
+ * Serializes the message to binary data (in protobuf wire format).
2592
+ * @return {!Uint8Array}
2593
+ */
2594
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.serializeBinary = function() {
2595
+ var writer = new jspb.BinaryWriter();
2596
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.serializeBinaryToWriter(this, writer);
2597
+ return writer.getResultBuffer();
2598
+ };
2599
+
2600
+
2601
+ /**
2602
+ * Serializes the given message to binary data (in protobuf wire
2603
+ * format), writing to the given BinaryWriter.
2604
+ * @param {!proto.agones.dev.sdk.GameServer.Status.ListStatus} message
2605
+ * @param {!jspb.BinaryWriter} writer
2606
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2607
+ */
2608
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.serializeBinaryToWriter = function(message, writer) {
2609
+ var f = undefined;
2610
+ f = message.getCapacity();
2611
+ if (f !== 0) {
2612
+ writer.writeInt64(
2613
+ 1,
2614
+ f
2615
+ );
2616
+ }
2617
+ f = message.getValuesList();
2618
+ if (f.length > 0) {
2619
+ writer.writeRepeatedString(
2620
+ 2,
2621
+ f
2622
+ );
2623
+ }
2624
+ };
2625
+
2626
+
2627
+ /**
2628
+ * optional int64 capacity = 1;
2629
+ * @return {number}
2630
+ */
2631
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.getCapacity = function() {
2632
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2633
+ };
2634
+
2635
+
2636
+ /**
2637
+ * @param {number} value
2638
+ * @return {!proto.agones.dev.sdk.GameServer.Status.ListStatus} returns this
2639
+ */
2640
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.setCapacity = function(value) {
2641
+ return jspb.Message.setProto3IntField(this, 1, value);
2642
+ };
2643
+
2644
+
2645
+ /**
2646
+ * repeated string values = 2;
2647
+ * @return {!Array<string>}
2648
+ */
2649
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.getValuesList = function() {
2650
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2651
+ };
2652
+
2653
+
2654
+ /**
2655
+ * @param {!Array<string>} value
2656
+ * @return {!proto.agones.dev.sdk.GameServer.Status.ListStatus} returns this
2657
+ */
2658
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.setValuesList = function(value) {
2659
+ return jspb.Message.setField(this, 2, value || []);
2660
+ };
2661
+
2662
+
2663
+ /**
2664
+ * @param {string} value
2665
+ * @param {number=} opt_index
2666
+ * @return {!proto.agones.dev.sdk.GameServer.Status.ListStatus} returns this
2667
+ */
2668
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.addValues = function(value, opt_index) {
2669
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2670
+ };
2671
+
2672
+
2673
+ /**
2674
+ * Clears the list making it empty but non-null.
2675
+ * @return {!proto.agones.dev.sdk.GameServer.Status.ListStatus} returns this
2676
+ */
2677
+ proto.agones.dev.sdk.GameServer.Status.ListStatus.prototype.clearValuesList = function() {
2678
+ return this.setValuesList([]);
2679
+ };
2680
+
2681
+
2682
+ /**
2683
+ * optional string state = 1;
2684
+ * @return {string}
2685
+ */
2686
+ proto.agones.dev.sdk.GameServer.Status.prototype.getState = function() {
2687
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * @param {string} value
2693
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2694
+ */
2695
+ proto.agones.dev.sdk.GameServer.Status.prototype.setState = function(value) {
2696
+ return jspb.Message.setProto3StringField(this, 1, value);
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * optional string address = 2;
2702
+ * @return {string}
2703
+ */
2704
+ proto.agones.dev.sdk.GameServer.Status.prototype.getAddress = function() {
2705
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2706
+ };
2707
+
2708
+
2709
+ /**
2710
+ * @param {string} value
2711
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2712
+ */
2713
+ proto.agones.dev.sdk.GameServer.Status.prototype.setAddress = function(value) {
2714
+ return jspb.Message.setProto3StringField(this, 2, value);
2715
+ };
2716
+
2717
+
2718
+ /**
2719
+ * repeated Address addresses = 7;
2720
+ * @return {!Array<!proto.agones.dev.sdk.GameServer.Status.Address>}
2721
+ */
2722
+ proto.agones.dev.sdk.GameServer.Status.prototype.getAddressesList = function() {
2723
+ return /** @type{!Array<!proto.agones.dev.sdk.GameServer.Status.Address>} */ (
2724
+ jspb.Message.getRepeatedWrapperField(this, proto.agones.dev.sdk.GameServer.Status.Address, 7));
2725
+ };
2726
+
2727
+
2728
+ /**
2729
+ * @param {!Array<!proto.agones.dev.sdk.GameServer.Status.Address>} value
2730
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2731
+ */
2732
+ proto.agones.dev.sdk.GameServer.Status.prototype.setAddressesList = function(value) {
2733
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
2734
+ };
2735
+
2736
+
2737
+ /**
2738
+ * @param {!proto.agones.dev.sdk.GameServer.Status.Address=} opt_value
2739
+ * @param {number=} opt_index
2740
+ * @return {!proto.agones.dev.sdk.GameServer.Status.Address}
2741
+ */
2742
+ proto.agones.dev.sdk.GameServer.Status.prototype.addAddresses = function(opt_value, opt_index) {
2743
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.agones.dev.sdk.GameServer.Status.Address, opt_index);
2744
+ };
2745
+
2746
+
2747
+ /**
2748
+ * Clears the list making it empty but non-null.
2749
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2750
+ */
2751
+ proto.agones.dev.sdk.GameServer.Status.prototype.clearAddressesList = function() {
2752
+ return this.setAddressesList([]);
2106
2753
  };
2107
2754
 
2108
2755
 
@@ -2181,6 +2828,50 @@ proto.agones.dev.sdk.GameServer.Status.prototype.hasPlayers = function() {
2181
2828
  };
2182
2829
 
2183
2830
 
2831
+ /**
2832
+ * map<string, CounterStatus> counters = 5;
2833
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2834
+ * empty, instead returning `undefined`
2835
+ * @return {!jspb.Map<string,!proto.agones.dev.sdk.GameServer.Status.CounterStatus>}
2836
+ */
2837
+ proto.agones.dev.sdk.GameServer.Status.prototype.getCountersMap = function(opt_noLazyCreate) {
2838
+ return /** @type {!jspb.Map<string,!proto.agones.dev.sdk.GameServer.Status.CounterStatus>} */ (
2839
+ jspb.Message.getMapField(this, 5, opt_noLazyCreate,
2840
+ proto.agones.dev.sdk.GameServer.Status.CounterStatus));
2841
+ };
2842
+
2843
+
2844
+ /**
2845
+ * Clears values from the map. The map will be non-null.
2846
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2847
+ */
2848
+ proto.agones.dev.sdk.GameServer.Status.prototype.clearCountersMap = function() {
2849
+ this.getCountersMap().clear();
2850
+ return this;};
2851
+
2852
+
2853
+ /**
2854
+ * map<string, ListStatus> lists = 6;
2855
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2856
+ * empty, instead returning `undefined`
2857
+ * @return {!jspb.Map<string,!proto.agones.dev.sdk.GameServer.Status.ListStatus>}
2858
+ */
2859
+ proto.agones.dev.sdk.GameServer.Status.prototype.getListsMap = function(opt_noLazyCreate) {
2860
+ return /** @type {!jspb.Map<string,!proto.agones.dev.sdk.GameServer.Status.ListStatus>} */ (
2861
+ jspb.Message.getMapField(this, 6, opt_noLazyCreate,
2862
+ proto.agones.dev.sdk.GameServer.Status.ListStatus));
2863
+ };
2864
+
2865
+
2866
+ /**
2867
+ * Clears values from the map. The map will be non-null.
2868
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2869
+ */
2870
+ proto.agones.dev.sdk.GameServer.Status.prototype.clearListsMap = function() {
2871
+ this.getListsMap().clear();
2872
+ return this;};
2873
+
2874
+
2184
2875
  /**
2185
2876
  * optional ObjectMeta object_meta = 1;
2186
2877
  * @return {?proto.agones.dev.sdk.GameServer.ObjectMeta}