@google-cloud/agones-sdk 1.28.0 → 1.29.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
@@ -13,14 +13,18 @@
13
13
  // limitations under the License.
14
14
 
15
15
  // This code was autogenerated. Do not edit directly.
16
+ // source: sdk.proto
16
17
  /**
17
18
  * @fileoverview
18
19
  * @enhanceable
20
+ * @suppress {missingRequire} reports error on implicit type usages.
19
21
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
20
22
  * field starts with 'MSG_' and isn't a translatable message.
21
23
  * @public
22
24
  */
23
25
  // GENERATED CODE -- DO NOT EDIT!
26
+ /* eslint-disable */
27
+ // @ts-nocheck
24
28
 
25
29
  var jspb = require('google-protobuf');
26
30
  var goog = jspb;
@@ -28,6 +32,8 @@ var global = Function('return this')();
28
32
 
29
33
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
30
34
  goog.object.extend(proto, google_api_annotations_pb);
35
+ var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
36
+ goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
31
37
  goog.exportSymbol('proto.agones.dev.sdk.Duration', null, global);
32
38
  goog.exportSymbol('proto.agones.dev.sdk.Empty', null, global);
33
39
  goog.exportSymbol('proto.agones.dev.sdk.GameServer', null, global);
@@ -38,7 +44,6 @@ goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status', null, global);
38
44
  goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.PlayerStatus', null, global);
39
45
  goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.Port', null, global);
40
46
  goog.exportSymbol('proto.agones.dev.sdk.KeyValue', null, global);
41
-
42
47
  /**
43
48
  * Generated by JsPbCodeGenerator.
44
49
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -54,19 +59,215 @@ proto.agones.dev.sdk.Empty = function(opt_data) {
54
59
  };
55
60
  goog.inherits(proto.agones.dev.sdk.Empty, jspb.Message);
56
61
  if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
57
66
  proto.agones.dev.sdk.Empty.displayName = 'proto.agones.dev.sdk.Empty';
58
67
  }
68
+ /**
69
+ * Generated by JsPbCodeGenerator.
70
+ * @param {Array=} opt_data Optional initial data array, typically from a
71
+ * server response, or constructed directly in Javascript. The array is used
72
+ * in place and becomes part of the constructed object. It is not cloned.
73
+ * If no data is provided, the constructed object will be empty, but still
74
+ * valid.
75
+ * @extends {jspb.Message}
76
+ * @constructor
77
+ */
78
+ proto.agones.dev.sdk.KeyValue = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.agones.dev.sdk.KeyValue, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.agones.dev.sdk.KeyValue.displayName = 'proto.agones.dev.sdk.KeyValue';
88
+ }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.agones.dev.sdk.Duration = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.agones.dev.sdk.Duration, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.agones.dev.sdk.Duration.displayName = 'proto.agones.dev.sdk.Duration';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.agones.dev.sdk.GameServer = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.agones.dev.sdk.GameServer, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.agones.dev.sdk.GameServer.displayName = 'proto.agones.dev.sdk.GameServer';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.agones.dev.sdk.GameServer.ObjectMeta = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.agones.dev.sdk.GameServer.ObjectMeta, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.agones.dev.sdk.GameServer.ObjectMeta.displayName = 'proto.agones.dev.sdk.GameServer.ObjectMeta';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.agones.dev.sdk.GameServer.Spec = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.agones.dev.sdk.GameServer.Spec, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.agones.dev.sdk.GameServer.Spec.displayName = 'proto.agones.dev.sdk.GameServer.Spec';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.agones.dev.sdk.GameServer.Spec.Health = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.agones.dev.sdk.GameServer.Spec.Health, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.agones.dev.sdk.GameServer.Spec.Health.displayName = 'proto.agones.dev.sdk.GameServer.Spec.Health';
193
+ }
194
+ /**
195
+ * Generated by JsPbCodeGenerator.
196
+ * @param {Array=} opt_data Optional initial data array, typically from a
197
+ * server response, or constructed directly in Javascript. The array is used
198
+ * in place and becomes part of the constructed object. It is not cloned.
199
+ * If no data is provided, the constructed object will be empty, but still
200
+ * valid.
201
+ * @extends {jspb.Message}
202
+ * @constructor
203
+ */
204
+ proto.agones.dev.sdk.GameServer.Status = function(opt_data) {
205
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.GameServer.Status.repeatedFields_, null);
206
+ };
207
+ goog.inherits(proto.agones.dev.sdk.GameServer.Status, jspb.Message);
208
+ if (goog.DEBUG && !COMPILED) {
209
+ /**
210
+ * @public
211
+ * @override
212
+ */
213
+ proto.agones.dev.sdk.GameServer.Status.displayName = 'proto.agones.dev.sdk.GameServer.Status';
214
+ }
215
+ /**
216
+ * Generated by JsPbCodeGenerator.
217
+ * @param {Array=} opt_data Optional initial data array, typically from a
218
+ * server response, or constructed directly in Javascript. The array is used
219
+ * in place and becomes part of the constructed object. It is not cloned.
220
+ * If no data is provided, the constructed object will be empty, but still
221
+ * valid.
222
+ * @extends {jspb.Message}
223
+ * @constructor
224
+ */
225
+ proto.agones.dev.sdk.GameServer.Status.Port = function(opt_data) {
226
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
227
+ };
228
+ goog.inherits(proto.agones.dev.sdk.GameServer.Status.Port, jspb.Message);
229
+ if (goog.DEBUG && !COMPILED) {
230
+ /**
231
+ * @public
232
+ * @override
233
+ */
234
+ proto.agones.dev.sdk.GameServer.Status.Port.displayName = 'proto.agones.dev.sdk.GameServer.Status.Port';
235
+ }
236
+ /**
237
+ * Generated by JsPbCodeGenerator.
238
+ * @param {Array=} opt_data Optional initial data array, typically from a
239
+ * server response, or constructed directly in Javascript. The array is used
240
+ * in place and becomes part of the constructed object. It is not cloned.
241
+ * If no data is provided, the constructed object will be empty, but still
242
+ * valid.
243
+ * @extends {jspb.Message}
244
+ * @constructor
245
+ */
246
+ proto.agones.dev.sdk.GameServer.Status.PlayerStatus = function(opt_data) {
247
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.GameServer.Status.PlayerStatus.repeatedFields_, null);
248
+ };
249
+ goog.inherits(proto.agones.dev.sdk.GameServer.Status.PlayerStatus, jspb.Message);
250
+ if (goog.DEBUG && !COMPILED) {
251
+ /**
252
+ * @public
253
+ * @override
254
+ */
255
+ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.displayName = 'proto.agones.dev.sdk.GameServer.Status.PlayerStatus';
256
+ }
257
+
59
258
 
60
259
 
61
260
  if (jspb.Message.GENERATE_TO_OBJECT) {
62
261
  /**
63
- * Creates an object representation of this proto suitable for use in Soy templates.
262
+ * Creates an object representation of this proto.
64
263
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
264
+ * Optional fields that are not set will be set to undefined.
65
265
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66
266
  * For the list of reserved names please see:
67
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
68
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
69
- * for transitional soy proto support: http://goto/soy-param-migration
267
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
268
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
269
+ * JSPB instance for transitional soy proto support:
270
+ * http://goto/soy-param-migration
70
271
  * @return {!Object}
71
272
  */
72
273
  proto.agones.dev.sdk.Empty.prototype.toObject = function(opt_includeInstance) {
@@ -76,8 +277,8 @@ proto.agones.dev.sdk.Empty.prototype.toObject = function(opt_includeInstance) {
76
277
 
77
278
  /**
78
279
  * Static version of the {@see toObject} method.
79
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
80
- * instance for transitional soy proto support:
280
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
281
+ * the JSPB instance for transitional soy proto support:
81
282
  * http://goto/soy-param-migration
82
283
  * @param {!proto.agones.dev.sdk.Empty} msg The msg instance to transform.
83
284
  * @return {!Object}
@@ -155,34 +356,19 @@ proto.agones.dev.sdk.Empty.serializeBinaryToWriter = function(message, writer) {
155
356
 
156
357
 
157
358
 
158
- /**
159
- * Generated by JsPbCodeGenerator.
160
- * @param {Array=} opt_data Optional initial data array, typically from a
161
- * server response, or constructed directly in Javascript. The array is used
162
- * in place and becomes part of the constructed object. It is not cloned.
163
- * If no data is provided, the constructed object will be empty, but still
164
- * valid.
165
- * @extends {jspb.Message}
166
- * @constructor
167
- */
168
- proto.agones.dev.sdk.KeyValue = function(opt_data) {
169
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
170
- };
171
- goog.inherits(proto.agones.dev.sdk.KeyValue, jspb.Message);
172
- if (goog.DEBUG && !COMPILED) {
173
- proto.agones.dev.sdk.KeyValue.displayName = 'proto.agones.dev.sdk.KeyValue';
174
- }
175
359
 
176
360
 
177
361
  if (jspb.Message.GENERATE_TO_OBJECT) {
178
362
  /**
179
- * Creates an object representation of this proto suitable for use in Soy templates.
363
+ * Creates an object representation of this proto.
180
364
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
365
+ * Optional fields that are not set will be set to undefined.
181
366
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
182
367
  * For the list of reserved names please see:
183
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
184
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
185
- * for transitional soy proto support: http://goto/soy-param-migration
368
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
369
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
370
+ * JSPB instance for transitional soy proto support:
371
+ * http://goto/soy-param-migration
186
372
  * @return {!Object}
187
373
  */
188
374
  proto.agones.dev.sdk.KeyValue.prototype.toObject = function(opt_includeInstance) {
@@ -192,8 +378,8 @@ proto.agones.dev.sdk.KeyValue.prototype.toObject = function(opt_includeInstance)
192
378
 
193
379
  /**
194
380
  * Static version of the {@see toObject} method.
195
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
196
- * instance for transitional soy proto support:
381
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
382
+ * the JSPB instance for transitional soy proto support:
197
383
  * http://goto/soy-param-migration
198
384
  * @param {!proto.agones.dev.sdk.KeyValue} msg The msg instance to transform.
199
385
  * @return {!Object}
@@ -302,9 +488,12 @@ proto.agones.dev.sdk.KeyValue.prototype.getKey = function() {
302
488
  };
303
489
 
304
490
 
305
- /** @param {string} value */
491
+ /**
492
+ * @param {string} value
493
+ * @return {!proto.agones.dev.sdk.KeyValue} returns this
494
+ */
306
495
  proto.agones.dev.sdk.KeyValue.prototype.setKey = function(value) {
307
- jspb.Message.setProto3StringField(this, 1, value);
496
+ return jspb.Message.setProto3StringField(this, 1, value);
308
497
  };
309
498
 
310
499
 
@@ -317,41 +506,29 @@ proto.agones.dev.sdk.KeyValue.prototype.getValue = function() {
317
506
  };
318
507
 
319
508
 
320
- /** @param {string} value */
509
+ /**
510
+ * @param {string} value
511
+ * @return {!proto.agones.dev.sdk.KeyValue} returns this
512
+ */
321
513
  proto.agones.dev.sdk.KeyValue.prototype.setValue = function(value) {
322
- jspb.Message.setProto3StringField(this, 2, value);
514
+ return jspb.Message.setProto3StringField(this, 2, value);
323
515
  };
324
516
 
325
517
 
326
518
 
327
- /**
328
- * Generated by JsPbCodeGenerator.
329
- * @param {Array=} opt_data Optional initial data array, typically from a
330
- * server response, or constructed directly in Javascript. The array is used
331
- * in place and becomes part of the constructed object. It is not cloned.
332
- * If no data is provided, the constructed object will be empty, but still
333
- * valid.
334
- * @extends {jspb.Message}
335
- * @constructor
336
- */
337
- proto.agones.dev.sdk.Duration = function(opt_data) {
338
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
339
- };
340
- goog.inherits(proto.agones.dev.sdk.Duration, jspb.Message);
341
- if (goog.DEBUG && !COMPILED) {
342
- proto.agones.dev.sdk.Duration.displayName = 'proto.agones.dev.sdk.Duration';
343
- }
344
519
 
345
520
 
346
521
  if (jspb.Message.GENERATE_TO_OBJECT) {
347
522
  /**
348
- * Creates an object representation of this proto suitable for use in Soy templates.
523
+ * Creates an object representation of this proto.
349
524
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
525
+ * Optional fields that are not set will be set to undefined.
350
526
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
351
527
  * For the list of reserved names please see:
352
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
353
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
354
- * for transitional soy proto support: http://goto/soy-param-migration
528
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
529
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
530
+ * JSPB instance for transitional soy proto support:
531
+ * http://goto/soy-param-migration
355
532
  * @return {!Object}
356
533
  */
357
534
  proto.agones.dev.sdk.Duration.prototype.toObject = function(opt_includeInstance) {
@@ -361,8 +538,8 @@ proto.agones.dev.sdk.Duration.prototype.toObject = function(opt_includeInstance)
361
538
 
362
539
  /**
363
540
  * Static version of the {@see toObject} method.
364
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
365
- * instance for transitional soy proto support:
541
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
542
+ * the JSPB instance for transitional soy proto support:
366
543
  * http://goto/soy-param-migration
367
544
  * @param {!proto.agones.dev.sdk.Duration} msg The msg instance to transform.
368
545
  * @return {!Object}
@@ -459,41 +636,29 @@ proto.agones.dev.sdk.Duration.prototype.getSeconds = function() {
459
636
  };
460
637
 
461
638
 
462
- /** @param {number} value */
639
+ /**
640
+ * @param {number} value
641
+ * @return {!proto.agones.dev.sdk.Duration} returns this
642
+ */
463
643
  proto.agones.dev.sdk.Duration.prototype.setSeconds = function(value) {
464
- jspb.Message.setProto3IntField(this, 1, value);
644
+ return jspb.Message.setProto3IntField(this, 1, value);
465
645
  };
466
646
 
467
647
 
468
648
 
469
- /**
470
- * Generated by JsPbCodeGenerator.
471
- * @param {Array=} opt_data Optional initial data array, typically from a
472
- * server response, or constructed directly in Javascript. The array is used
473
- * in place and becomes part of the constructed object. It is not cloned.
474
- * If no data is provided, the constructed object will be empty, but still
475
- * valid.
476
- * @extends {jspb.Message}
477
- * @constructor
478
- */
479
- proto.agones.dev.sdk.GameServer = function(opt_data) {
480
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
481
- };
482
- goog.inherits(proto.agones.dev.sdk.GameServer, jspb.Message);
483
- if (goog.DEBUG && !COMPILED) {
484
- proto.agones.dev.sdk.GameServer.displayName = 'proto.agones.dev.sdk.GameServer';
485
- }
486
649
 
487
650
 
488
651
  if (jspb.Message.GENERATE_TO_OBJECT) {
489
652
  /**
490
- * Creates an object representation of this proto suitable for use in Soy templates.
653
+ * Creates an object representation of this proto.
491
654
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
655
+ * Optional fields that are not set will be set to undefined.
492
656
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
493
657
  * For the list of reserved names please see:
494
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
495
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
496
- * for transitional soy proto support: http://goto/soy-param-migration
658
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
659
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
660
+ * JSPB instance for transitional soy proto support:
661
+ * http://goto/soy-param-migration
497
662
  * @return {!Object}
498
663
  */
499
664
  proto.agones.dev.sdk.GameServer.prototype.toObject = function(opt_includeInstance) {
@@ -503,8 +668,8 @@ proto.agones.dev.sdk.GameServer.prototype.toObject = function(opt_includeInstanc
503
668
 
504
669
  /**
505
670
  * Static version of the {@see toObject} method.
506
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
507
- * instance for transitional soy proto support:
671
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
672
+ * the JSPB instance for transitional soy proto support:
508
673
  * http://goto/soy-param-migration
509
674
  * @param {!proto.agones.dev.sdk.GameServer} msg The msg instance to transform.
510
675
  * @return {!Object}
@@ -623,34 +788,19 @@ proto.agones.dev.sdk.GameServer.serializeBinaryToWriter = function(message, writ
623
788
 
624
789
 
625
790
 
626
- /**
627
- * Generated by JsPbCodeGenerator.
628
- * @param {Array=} opt_data Optional initial data array, typically from a
629
- * server response, or constructed directly in Javascript. The array is used
630
- * in place and becomes part of the constructed object. It is not cloned.
631
- * If no data is provided, the constructed object will be empty, but still
632
- * valid.
633
- * @extends {jspb.Message}
634
- * @constructor
635
- */
636
- proto.agones.dev.sdk.GameServer.ObjectMeta = function(opt_data) {
637
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
638
- };
639
- goog.inherits(proto.agones.dev.sdk.GameServer.ObjectMeta, jspb.Message);
640
- if (goog.DEBUG && !COMPILED) {
641
- proto.agones.dev.sdk.GameServer.ObjectMeta.displayName = 'proto.agones.dev.sdk.GameServer.ObjectMeta';
642
- }
643
791
 
644
792
 
645
793
  if (jspb.Message.GENERATE_TO_OBJECT) {
646
794
  /**
647
- * Creates an object representation of this proto suitable for use in Soy templates.
795
+ * Creates an object representation of this proto.
648
796
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
797
+ * Optional fields that are not set will be set to undefined.
649
798
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
650
799
  * For the list of reserved names please see:
651
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
652
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
653
- * for transitional soy proto support: http://goto/soy-param-migration
800
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
801
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
802
+ * JSPB instance for transitional soy proto support:
803
+ * http://goto/soy-param-migration
654
804
  * @return {!Object}
655
805
  */
656
806
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.toObject = function(opt_includeInstance) {
@@ -660,8 +810,8 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.toObject = function(opt_inc
660
810
 
661
811
  /**
662
812
  * Static version of the {@see toObject} method.
663
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
664
- * instance for transitional soy proto support:
813
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
814
+ * the JSPB instance for transitional soy proto support:
665
815
  * http://goto/soy-param-migration
666
816
  * @param {!proto.agones.dev.sdk.GameServer.ObjectMeta} msg The msg instance to transform.
667
817
  * @return {!Object}
@@ -745,13 +895,13 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.deserializeBinaryFromReader = functio
745
895
  case 8:
746
896
  var value = msg.getAnnotationsMap();
747
897
  reader.readMessage(value, function(message, reader) {
748
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "");
898
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
749
899
  });
750
900
  break;
751
901
  case 9:
752
902
  var value = msg.getLabelsMap();
753
903
  reader.readMessage(value, function(message, reader) {
754
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "");
904
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
755
905
  });
756
906
  break;
757
907
  default:
@@ -852,9 +1002,12 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getName = function() {
852
1002
  };
853
1003
 
854
1004
 
855
- /** @param {string} value */
1005
+ /**
1006
+ * @param {string} value
1007
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1008
+ */
856
1009
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.setName = function(value) {
857
- jspb.Message.setProto3StringField(this, 1, value);
1010
+ return jspb.Message.setProto3StringField(this, 1, value);
858
1011
  };
859
1012
 
860
1013
 
@@ -867,9 +1020,12 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getNamespace = function() {
867
1020
  };
868
1021
 
869
1022
 
870
- /** @param {string} value */
1023
+ /**
1024
+ * @param {string} value
1025
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1026
+ */
871
1027
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.setNamespace = function(value) {
872
- jspb.Message.setProto3StringField(this, 2, value);
1028
+ return jspb.Message.setProto3StringField(this, 2, value);
873
1029
  };
874
1030
 
875
1031
 
@@ -882,9 +1038,12 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getUid = function() {
882
1038
  };
883
1039
 
884
1040
 
885
- /** @param {string} value */
1041
+ /**
1042
+ * @param {string} value
1043
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1044
+ */
886
1045
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.setUid = function(value) {
887
- jspb.Message.setProto3StringField(this, 3, value);
1046
+ return jspb.Message.setProto3StringField(this, 3, value);
888
1047
  };
889
1048
 
890
1049
 
@@ -897,9 +1056,12 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getResourceVersion = functi
897
1056
  };
898
1057
 
899
1058
 
900
- /** @param {string} value */
1059
+ /**
1060
+ * @param {string} value
1061
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1062
+ */
901
1063
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.setResourceVersion = function(value) {
902
- jspb.Message.setProto3StringField(this, 4, value);
1064
+ return jspb.Message.setProto3StringField(this, 4, value);
903
1065
  };
904
1066
 
905
1067
 
@@ -912,9 +1074,12 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getGeneration = function()
912
1074
  };
913
1075
 
914
1076
 
915
- /** @param {number} value */
1077
+ /**
1078
+ * @param {number} value
1079
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1080
+ */
916
1081
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.setGeneration = function(value) {
917
- jspb.Message.setProto3IntField(this, 5, value);
1082
+ return jspb.Message.setProto3IntField(this, 5, value);
918
1083
  };
919
1084
 
920
1085
 
@@ -927,9 +1092,12 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getCreationTimestamp = func
927
1092
  };
928
1093
 
929
1094
 
930
- /** @param {number} value */
1095
+ /**
1096
+ * @param {number} value
1097
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1098
+ */
931
1099
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.setCreationTimestamp = function(value) {
932
- jspb.Message.setProto3IntField(this, 6, value);
1100
+ return jspb.Message.setProto3IntField(this, 6, value);
933
1101
  };
934
1102
 
935
1103
 
@@ -942,9 +1110,12 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getDeletionTimestamp = func
942
1110
  };
943
1111
 
944
1112
 
945
- /** @param {number} value */
1113
+ /**
1114
+ * @param {number} value
1115
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1116
+ */
946
1117
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.setDeletionTimestamp = function(value) {
947
- jspb.Message.setProto3IntField(this, 7, value);
1118
+ return jspb.Message.setProto3IntField(this, 7, value);
948
1119
  };
949
1120
 
950
1121
 
@@ -961,9 +1132,13 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getAnnotationsMap = functio
961
1132
  };
962
1133
 
963
1134
 
1135
+ /**
1136
+ * Clears values from the map. The map will be non-null.
1137
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1138
+ */
964
1139
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.clearAnnotationsMap = function() {
965
1140
  this.getAnnotationsMap().clear();
966
- };
1141
+ return this;};
967
1142
 
968
1143
 
969
1144
  /**
@@ -979,40 +1154,29 @@ proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.getLabelsMap = function(opt
979
1154
  };
980
1155
 
981
1156
 
1157
+ /**
1158
+ * Clears values from the map. The map will be non-null.
1159
+ * @return {!proto.agones.dev.sdk.GameServer.ObjectMeta} returns this
1160
+ */
982
1161
  proto.agones.dev.sdk.GameServer.ObjectMeta.prototype.clearLabelsMap = function() {
983
1162
  this.getLabelsMap().clear();
984
- };
1163
+ return this;};
985
1164
 
986
1165
 
987
1166
 
988
- /**
989
- * Generated by JsPbCodeGenerator.
990
- * @param {Array=} opt_data Optional initial data array, typically from a
991
- * server response, or constructed directly in Javascript. The array is used
992
- * in place and becomes part of the constructed object. It is not cloned.
993
- * If no data is provided, the constructed object will be empty, but still
994
- * valid.
995
- * @extends {jspb.Message}
996
- * @constructor
997
- */
998
- proto.agones.dev.sdk.GameServer.Spec = function(opt_data) {
999
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1000
- };
1001
- goog.inherits(proto.agones.dev.sdk.GameServer.Spec, jspb.Message);
1002
- if (goog.DEBUG && !COMPILED) {
1003
- proto.agones.dev.sdk.GameServer.Spec.displayName = 'proto.agones.dev.sdk.GameServer.Spec';
1004
- }
1005
1167
 
1006
1168
 
1007
1169
  if (jspb.Message.GENERATE_TO_OBJECT) {
1008
1170
  /**
1009
- * Creates an object representation of this proto suitable for use in Soy templates.
1171
+ * Creates an object representation of this proto.
1010
1172
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1173
+ * Optional fields that are not set will be set to undefined.
1011
1174
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1012
1175
  * For the list of reserved names please see:
1013
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1014
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1015
- * for transitional soy proto support: http://goto/soy-param-migration
1176
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1177
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1178
+ * JSPB instance for transitional soy proto support:
1179
+ * http://goto/soy-param-migration
1016
1180
  * @return {!Object}
1017
1181
  */
1018
1182
  proto.agones.dev.sdk.GameServer.Spec.prototype.toObject = function(opt_includeInstance) {
@@ -1022,8 +1186,8 @@ proto.agones.dev.sdk.GameServer.Spec.prototype.toObject = function(opt_includeIn
1022
1186
 
1023
1187
  /**
1024
1188
  * Static version of the {@see toObject} method.
1025
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1026
- * instance for transitional soy proto support:
1189
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1190
+ * the JSPB instance for transitional soy proto support:
1027
1191
  * http://goto/soy-param-migration
1028
1192
  * @param {!proto.agones.dev.sdk.GameServer.Spec} msg The msg instance to transform.
1029
1193
  * @return {!Object}
@@ -1114,34 +1278,19 @@ proto.agones.dev.sdk.GameServer.Spec.serializeBinaryToWriter = function(message,
1114
1278
 
1115
1279
 
1116
1280
 
1117
- /**
1118
- * Generated by JsPbCodeGenerator.
1119
- * @param {Array=} opt_data Optional initial data array, typically from a
1120
- * server response, or constructed directly in Javascript. The array is used
1121
- * in place and becomes part of the constructed object. It is not cloned.
1122
- * If no data is provided, the constructed object will be empty, but still
1123
- * valid.
1124
- * @extends {jspb.Message}
1125
- * @constructor
1126
- */
1127
- proto.agones.dev.sdk.GameServer.Spec.Health = function(opt_data) {
1128
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1129
- };
1130
- goog.inherits(proto.agones.dev.sdk.GameServer.Spec.Health, jspb.Message);
1131
- if (goog.DEBUG && !COMPILED) {
1132
- proto.agones.dev.sdk.GameServer.Spec.Health.displayName = 'proto.agones.dev.sdk.GameServer.Spec.Health';
1133
- }
1134
1281
 
1135
1282
 
1136
1283
  if (jspb.Message.GENERATE_TO_OBJECT) {
1137
1284
  /**
1138
- * Creates an object representation of this proto suitable for use in Soy templates.
1285
+ * Creates an object representation of this proto.
1139
1286
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1287
+ * Optional fields that are not set will be set to undefined.
1140
1288
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1141
1289
  * For the list of reserved names please see:
1142
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1143
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1144
- * for transitional soy proto support: http://goto/soy-param-migration
1290
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1291
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1292
+ * JSPB instance for transitional soy proto support:
1293
+ * http://goto/soy-param-migration
1145
1294
  * @return {!Object}
1146
1295
  */
1147
1296
  proto.agones.dev.sdk.GameServer.Spec.Health.prototype.toObject = function(opt_includeInstance) {
@@ -1151,8 +1300,8 @@ proto.agones.dev.sdk.GameServer.Spec.Health.prototype.toObject = function(opt_in
1151
1300
 
1152
1301
  /**
1153
1302
  * Static version of the {@see toObject} method.
1154
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1155
- * instance for transitional soy proto support:
1303
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1304
+ * the JSPB instance for transitional soy proto support:
1156
1305
  * http://goto/soy-param-migration
1157
1306
  * @param {!proto.agones.dev.sdk.GameServer.Spec.Health} msg The msg instance to transform.
1158
1307
  * @return {!Object}
@@ -1160,7 +1309,7 @@ proto.agones.dev.sdk.GameServer.Spec.Health.prototype.toObject = function(opt_in
1160
1309
  */
1161
1310
  proto.agones.dev.sdk.GameServer.Spec.Health.toObject = function(includeInstance, msg) {
1162
1311
  var f, obj = {
1163
- disabled: jspb.Message.getFieldWithDefault(msg, 1, false),
1312
+ disabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1164
1313
  periodSeconds: jspb.Message.getFieldWithDefault(msg, 2, 0),
1165
1314
  failureThreshold: jspb.Message.getFieldWithDefault(msg, 3, 0),
1166
1315
  initialDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0)
@@ -1278,18 +1427,19 @@ proto.agones.dev.sdk.GameServer.Spec.Health.serializeBinaryToWriter = function(m
1278
1427
 
1279
1428
  /**
1280
1429
  * optional bool disabled = 1;
1281
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1282
- * You should avoid comparisons like {@code val === true/false} in those cases.
1283
1430
  * @return {boolean}
1284
1431
  */
1285
1432
  proto.agones.dev.sdk.GameServer.Spec.Health.prototype.getDisabled = function() {
1286
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
1433
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1287
1434
  };
1288
1435
 
1289
1436
 
1290
- /** @param {boolean} value */
1437
+ /**
1438
+ * @param {boolean} value
1439
+ * @return {!proto.agones.dev.sdk.GameServer.Spec.Health} returns this
1440
+ */
1291
1441
  proto.agones.dev.sdk.GameServer.Spec.Health.prototype.setDisabled = function(value) {
1292
- jspb.Message.setProto3BooleanField(this, 1, value);
1442
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1293
1443
  };
1294
1444
 
1295
1445
 
@@ -1302,9 +1452,12 @@ proto.agones.dev.sdk.GameServer.Spec.Health.prototype.getPeriodSeconds = functio
1302
1452
  };
1303
1453
 
1304
1454
 
1305
- /** @param {number} value */
1455
+ /**
1456
+ * @param {number} value
1457
+ * @return {!proto.agones.dev.sdk.GameServer.Spec.Health} returns this
1458
+ */
1306
1459
  proto.agones.dev.sdk.GameServer.Spec.Health.prototype.setPeriodSeconds = function(value) {
1307
- jspb.Message.setProto3IntField(this, 2, value);
1460
+ return jspb.Message.setProto3IntField(this, 2, value);
1308
1461
  };
1309
1462
 
1310
1463
 
@@ -1317,9 +1470,12 @@ proto.agones.dev.sdk.GameServer.Spec.Health.prototype.getFailureThreshold = func
1317
1470
  };
1318
1471
 
1319
1472
 
1320
- /** @param {number} value */
1473
+ /**
1474
+ * @param {number} value
1475
+ * @return {!proto.agones.dev.sdk.GameServer.Spec.Health} returns this
1476
+ */
1321
1477
  proto.agones.dev.sdk.GameServer.Spec.Health.prototype.setFailureThreshold = function(value) {
1322
- jspb.Message.setProto3IntField(this, 3, value);
1478
+ return jspb.Message.setProto3IntField(this, 3, value);
1323
1479
  };
1324
1480
 
1325
1481
 
@@ -1332,9 +1488,12 @@ proto.agones.dev.sdk.GameServer.Spec.Health.prototype.getInitialDelaySeconds = f
1332
1488
  };
1333
1489
 
1334
1490
 
1335
- /** @param {number} value */
1491
+ /**
1492
+ * @param {number} value
1493
+ * @return {!proto.agones.dev.sdk.GameServer.Spec.Health} returns this
1494
+ */
1336
1495
  proto.agones.dev.sdk.GameServer.Spec.Health.prototype.setInitialDelaySeconds = function(value) {
1337
- jspb.Message.setProto3IntField(this, 4, value);
1496
+ return jspb.Message.setProto3IntField(this, 4, value);
1338
1497
  };
1339
1498
 
1340
1499
 
@@ -1348,14 +1507,21 @@ proto.agones.dev.sdk.GameServer.Spec.prototype.getHealth = function() {
1348
1507
  };
1349
1508
 
1350
1509
 
1351
- /** @param {?proto.agones.dev.sdk.GameServer.Spec.Health|undefined} value */
1510
+ /**
1511
+ * @param {?proto.agones.dev.sdk.GameServer.Spec.Health|undefined} value
1512
+ * @return {!proto.agones.dev.sdk.GameServer.Spec} returns this
1513
+ */
1352
1514
  proto.agones.dev.sdk.GameServer.Spec.prototype.setHealth = function(value) {
1353
- jspb.Message.setWrapperField(this, 1, value);
1515
+ return jspb.Message.setWrapperField(this, 1, value);
1354
1516
  };
1355
1517
 
1356
1518
 
1519
+ /**
1520
+ * Clears the message field making it undefined.
1521
+ * @return {!proto.agones.dev.sdk.GameServer.Spec} returns this
1522
+ */
1357
1523
  proto.agones.dev.sdk.GameServer.Spec.prototype.clearHealth = function() {
1358
- this.setHealth(undefined);
1524
+ return this.setHealth(undefined);
1359
1525
  };
1360
1526
 
1361
1527
 
@@ -1369,23 +1535,6 @@ proto.agones.dev.sdk.GameServer.Spec.prototype.hasHealth = function() {
1369
1535
 
1370
1536
 
1371
1537
 
1372
- /**
1373
- * Generated by JsPbCodeGenerator.
1374
- * @param {Array=} opt_data Optional initial data array, typically from a
1375
- * server response, or constructed directly in Javascript. The array is used
1376
- * in place and becomes part of the constructed object. It is not cloned.
1377
- * If no data is provided, the constructed object will be empty, but still
1378
- * valid.
1379
- * @extends {jspb.Message}
1380
- * @constructor
1381
- */
1382
- proto.agones.dev.sdk.GameServer.Status = function(opt_data) {
1383
- jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.GameServer.Status.repeatedFields_, null);
1384
- };
1385
- goog.inherits(proto.agones.dev.sdk.GameServer.Status, jspb.Message);
1386
- if (goog.DEBUG && !COMPILED) {
1387
- proto.agones.dev.sdk.GameServer.Status.displayName = 'proto.agones.dev.sdk.GameServer.Status';
1388
- }
1389
1538
  /**
1390
1539
  * List of repeated fields within this message type.
1391
1540
  * @private {!Array<number>}
@@ -1397,13 +1546,15 @@ proto.agones.dev.sdk.GameServer.Status.repeatedFields_ = [3];
1397
1546
 
1398
1547
  if (jspb.Message.GENERATE_TO_OBJECT) {
1399
1548
  /**
1400
- * Creates an object representation of this proto suitable for use in Soy templates.
1549
+ * Creates an object representation of this proto.
1401
1550
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1551
+ * Optional fields that are not set will be set to undefined.
1402
1552
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1403
1553
  * For the list of reserved names please see:
1404
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1405
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1406
- * for transitional soy proto support: http://goto/soy-param-migration
1554
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1555
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1556
+ * JSPB instance for transitional soy proto support:
1557
+ * http://goto/soy-param-migration
1407
1558
  * @return {!Object}
1408
1559
  */
1409
1560
  proto.agones.dev.sdk.GameServer.Status.prototype.toObject = function(opt_includeInstance) {
@@ -1413,8 +1564,8 @@ proto.agones.dev.sdk.GameServer.Status.prototype.toObject = function(opt_include
1413
1564
 
1414
1565
  /**
1415
1566
  * Static version of the {@see toObject} method.
1416
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1417
- * instance for transitional soy proto support:
1567
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1568
+ * the JSPB instance for transitional soy proto support:
1418
1569
  * http://goto/soy-param-migration
1419
1570
  * @param {!proto.agones.dev.sdk.GameServer.Status} msg The msg instance to transform.
1420
1571
  * @return {!Object}
@@ -1544,34 +1695,19 @@ proto.agones.dev.sdk.GameServer.Status.serializeBinaryToWriter = function(messag
1544
1695
 
1545
1696
 
1546
1697
 
1547
- /**
1548
- * Generated by JsPbCodeGenerator.
1549
- * @param {Array=} opt_data Optional initial data array, typically from a
1550
- * server response, or constructed directly in Javascript. The array is used
1551
- * in place and becomes part of the constructed object. It is not cloned.
1552
- * If no data is provided, the constructed object will be empty, but still
1553
- * valid.
1554
- * @extends {jspb.Message}
1555
- * @constructor
1556
- */
1557
- proto.agones.dev.sdk.GameServer.Status.Port = function(opt_data) {
1558
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1559
- };
1560
- goog.inherits(proto.agones.dev.sdk.GameServer.Status.Port, jspb.Message);
1561
- if (goog.DEBUG && !COMPILED) {
1562
- proto.agones.dev.sdk.GameServer.Status.Port.displayName = 'proto.agones.dev.sdk.GameServer.Status.Port';
1563
- }
1564
1698
 
1565
1699
 
1566
1700
  if (jspb.Message.GENERATE_TO_OBJECT) {
1567
1701
  /**
1568
- * Creates an object representation of this proto suitable for use in Soy templates.
1702
+ * Creates an object representation of this proto.
1569
1703
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1704
+ * Optional fields that are not set will be set to undefined.
1570
1705
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1571
1706
  * For the list of reserved names please see:
1572
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1573
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1574
- * for transitional soy proto support: http://goto/soy-param-migration
1707
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1708
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1709
+ * JSPB instance for transitional soy proto support:
1710
+ * http://goto/soy-param-migration
1575
1711
  * @return {!Object}
1576
1712
  */
1577
1713
  proto.agones.dev.sdk.GameServer.Status.Port.prototype.toObject = function(opt_includeInstance) {
@@ -1581,8 +1717,8 @@ proto.agones.dev.sdk.GameServer.Status.Port.prototype.toObject = function(opt_in
1581
1717
 
1582
1718
  /**
1583
1719
  * Static version of the {@see toObject} method.
1584
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1585
- * instance for transitional soy proto support:
1720
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1721
+ * the JSPB instance for transitional soy proto support:
1586
1722
  * http://goto/soy-param-migration
1587
1723
  * @param {!proto.agones.dev.sdk.GameServer.Status.Port} msg The msg instance to transform.
1588
1724
  * @return {!Object}
@@ -1691,9 +1827,12 @@ proto.agones.dev.sdk.GameServer.Status.Port.prototype.getName = function() {
1691
1827
  };
1692
1828
 
1693
1829
 
1694
- /** @param {string} value */
1830
+ /**
1831
+ * @param {string} value
1832
+ * @return {!proto.agones.dev.sdk.GameServer.Status.Port} returns this
1833
+ */
1695
1834
  proto.agones.dev.sdk.GameServer.Status.Port.prototype.setName = function(value) {
1696
- jspb.Message.setProto3StringField(this, 1, value);
1835
+ return jspb.Message.setProto3StringField(this, 1, value);
1697
1836
  };
1698
1837
 
1699
1838
 
@@ -1706,30 +1845,16 @@ proto.agones.dev.sdk.GameServer.Status.Port.prototype.getPort = function() {
1706
1845
  };
1707
1846
 
1708
1847
 
1709
- /** @param {number} value */
1848
+ /**
1849
+ * @param {number} value
1850
+ * @return {!proto.agones.dev.sdk.GameServer.Status.Port} returns this
1851
+ */
1710
1852
  proto.agones.dev.sdk.GameServer.Status.Port.prototype.setPort = function(value) {
1711
- jspb.Message.setProto3IntField(this, 2, value);
1853
+ return jspb.Message.setProto3IntField(this, 2, value);
1712
1854
  };
1713
1855
 
1714
1856
 
1715
1857
 
1716
- /**
1717
- * Generated by JsPbCodeGenerator.
1718
- * @param {Array=} opt_data Optional initial data array, typically from a
1719
- * server response, or constructed directly in Javascript. The array is used
1720
- * in place and becomes part of the constructed object. It is not cloned.
1721
- * If no data is provided, the constructed object will be empty, but still
1722
- * valid.
1723
- * @extends {jspb.Message}
1724
- * @constructor
1725
- */
1726
- proto.agones.dev.sdk.GameServer.Status.PlayerStatus = function(opt_data) {
1727
- jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.GameServer.Status.PlayerStatus.repeatedFields_, null);
1728
- };
1729
- goog.inherits(proto.agones.dev.sdk.GameServer.Status.PlayerStatus, jspb.Message);
1730
- if (goog.DEBUG && !COMPILED) {
1731
- proto.agones.dev.sdk.GameServer.Status.PlayerStatus.displayName = 'proto.agones.dev.sdk.GameServer.Status.PlayerStatus';
1732
- }
1733
1858
  /**
1734
1859
  * List of repeated fields within this message type.
1735
1860
  * @private {!Array<number>}
@@ -1741,13 +1866,15 @@ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.repeatedFields_ = [3];
1741
1866
 
1742
1867
  if (jspb.Message.GENERATE_TO_OBJECT) {
1743
1868
  /**
1744
- * Creates an object representation of this proto suitable for use in Soy templates.
1869
+ * Creates an object representation of this proto.
1745
1870
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1871
+ * Optional fields that are not set will be set to undefined.
1746
1872
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1747
1873
  * For the list of reserved names please see:
1748
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1749
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1750
- * for transitional soy proto support: http://goto/soy-param-migration
1874
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1875
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1876
+ * JSPB instance for transitional soy proto support:
1877
+ * http://goto/soy-param-migration
1751
1878
  * @return {!Object}
1752
1879
  */
1753
1880
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.toObject = function(opt_includeInstance) {
@@ -1757,8 +1884,8 @@ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.toObject = functio
1757
1884
 
1758
1885
  /**
1759
1886
  * Static version of the {@see toObject} method.
1760
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1761
- * instance for transitional soy proto support:
1887
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1888
+ * the JSPB instance for transitional soy proto support:
1762
1889
  * http://goto/soy-param-migration
1763
1890
  * @param {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} msg The msg instance to transform.
1764
1891
  * @return {!Object}
@@ -1768,7 +1895,7 @@ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.toObject = function(includeI
1768
1895
  var f, obj = {
1769
1896
  count: jspb.Message.getFieldWithDefault(msg, 1, 0),
1770
1897
  capacity: jspb.Message.getFieldWithDefault(msg, 2, 0),
1771
- idsList: jspb.Message.getRepeatedField(msg, 3)
1898
+ idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1772
1899
  };
1773
1900
 
1774
1901
  if (includeInstance) {
@@ -1879,9 +2006,12 @@ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.getCount = functio
1879
2006
  };
1880
2007
 
1881
2008
 
1882
- /** @param {number} value */
2009
+ /**
2010
+ * @param {number} value
2011
+ * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this
2012
+ */
1883
2013
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.setCount = function(value) {
1884
- jspb.Message.setProto3IntField(this, 1, value);
2014
+ return jspb.Message.setProto3IntField(this, 1, value);
1885
2015
  };
1886
2016
 
1887
2017
 
@@ -1894,9 +2024,12 @@ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.getCapacity = func
1894
2024
  };
1895
2025
 
1896
2026
 
1897
- /** @param {number} value */
2027
+ /**
2028
+ * @param {number} value
2029
+ * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this
2030
+ */
1898
2031
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.setCapacity = function(value) {
1899
- jspb.Message.setProto3IntField(this, 2, value);
2032
+ return jspb.Message.setProto3IntField(this, 2, value);
1900
2033
  };
1901
2034
 
1902
2035
 
@@ -1909,23 +2042,31 @@ proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.getIdsList = funct
1909
2042
  };
1910
2043
 
1911
2044
 
1912
- /** @param {!Array<string>} value */
2045
+ /**
2046
+ * @param {!Array<string>} value
2047
+ * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this
2048
+ */
1913
2049
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.setIdsList = function(value) {
1914
- jspb.Message.setField(this, 3, value || []);
2050
+ return jspb.Message.setField(this, 3, value || []);
1915
2051
  };
1916
2052
 
1917
2053
 
1918
2054
  /**
1919
2055
  * @param {string} value
1920
2056
  * @param {number=} opt_index
2057
+ * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this
1921
2058
  */
1922
2059
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.addIds = function(value, opt_index) {
1923
- jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2060
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1924
2061
  };
1925
2062
 
1926
2063
 
2064
+ /**
2065
+ * Clears the list making it empty but non-null.
2066
+ * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this
2067
+ */
1927
2068
  proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.clearIdsList = function() {
1928
- this.setIdsList([]);
2069
+ return this.setIdsList([]);
1929
2070
  };
1930
2071
 
1931
2072
 
@@ -1938,9 +2079,12 @@ proto.agones.dev.sdk.GameServer.Status.prototype.getState = function() {
1938
2079
  };
1939
2080
 
1940
2081
 
1941
- /** @param {string} value */
2082
+ /**
2083
+ * @param {string} value
2084
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2085
+ */
1942
2086
  proto.agones.dev.sdk.GameServer.Status.prototype.setState = function(value) {
1943
- jspb.Message.setProto3StringField(this, 1, value);
2087
+ return jspb.Message.setProto3StringField(this, 1, value);
1944
2088
  };
1945
2089
 
1946
2090
 
@@ -1953,9 +2097,12 @@ proto.agones.dev.sdk.GameServer.Status.prototype.getAddress = function() {
1953
2097
  };
1954
2098
 
1955
2099
 
1956
- /** @param {string} value */
2100
+ /**
2101
+ * @param {string} value
2102
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2103
+ */
1957
2104
  proto.agones.dev.sdk.GameServer.Status.prototype.setAddress = function(value) {
1958
- jspb.Message.setProto3StringField(this, 2, value);
2105
+ return jspb.Message.setProto3StringField(this, 2, value);
1959
2106
  };
1960
2107
 
1961
2108
 
@@ -1969,9 +2116,12 @@ proto.agones.dev.sdk.GameServer.Status.prototype.getPortsList = function() {
1969
2116
  };
1970
2117
 
1971
2118
 
1972
- /** @param {!Array<!proto.agones.dev.sdk.GameServer.Status.Port>} value */
2119
+ /**
2120
+ * @param {!Array<!proto.agones.dev.sdk.GameServer.Status.Port>} value
2121
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2122
+ */
1973
2123
  proto.agones.dev.sdk.GameServer.Status.prototype.setPortsList = function(value) {
1974
- jspb.Message.setRepeatedWrapperField(this, 3, value);
2124
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
1975
2125
  };
1976
2126
 
1977
2127
 
@@ -1985,8 +2135,12 @@ proto.agones.dev.sdk.GameServer.Status.prototype.addPorts = function(opt_value,
1985
2135
  };
1986
2136
 
1987
2137
 
2138
+ /**
2139
+ * Clears the list making it empty but non-null.
2140
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2141
+ */
1988
2142
  proto.agones.dev.sdk.GameServer.Status.prototype.clearPortsList = function() {
1989
- this.setPortsList([]);
2143
+ return this.setPortsList([]);
1990
2144
  };
1991
2145
 
1992
2146
 
@@ -2000,14 +2154,21 @@ proto.agones.dev.sdk.GameServer.Status.prototype.getPlayers = function() {
2000
2154
  };
2001
2155
 
2002
2156
 
2003
- /** @param {?proto.agones.dev.sdk.GameServer.Status.PlayerStatus|undefined} value */
2157
+ /**
2158
+ * @param {?proto.agones.dev.sdk.GameServer.Status.PlayerStatus|undefined} value
2159
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2160
+ */
2004
2161
  proto.agones.dev.sdk.GameServer.Status.prototype.setPlayers = function(value) {
2005
- jspb.Message.setWrapperField(this, 4, value);
2162
+ return jspb.Message.setWrapperField(this, 4, value);
2006
2163
  };
2007
2164
 
2008
2165
 
2166
+ /**
2167
+ * Clears the message field making it undefined.
2168
+ * @return {!proto.agones.dev.sdk.GameServer.Status} returns this
2169
+ */
2009
2170
  proto.agones.dev.sdk.GameServer.Status.prototype.clearPlayers = function() {
2010
- this.setPlayers(undefined);
2171
+ return this.setPlayers(undefined);
2011
2172
  };
2012
2173
 
2013
2174
 
@@ -2030,14 +2191,21 @@ proto.agones.dev.sdk.GameServer.prototype.getObjectMeta = function() {
2030
2191
  };
2031
2192
 
2032
2193
 
2033
- /** @param {?proto.agones.dev.sdk.GameServer.ObjectMeta|undefined} value */
2194
+ /**
2195
+ * @param {?proto.agones.dev.sdk.GameServer.ObjectMeta|undefined} value
2196
+ * @return {!proto.agones.dev.sdk.GameServer} returns this
2197
+ */
2034
2198
  proto.agones.dev.sdk.GameServer.prototype.setObjectMeta = function(value) {
2035
- jspb.Message.setWrapperField(this, 1, value);
2199
+ return jspb.Message.setWrapperField(this, 1, value);
2036
2200
  };
2037
2201
 
2038
2202
 
2203
+ /**
2204
+ * Clears the message field making it undefined.
2205
+ * @return {!proto.agones.dev.sdk.GameServer} returns this
2206
+ */
2039
2207
  proto.agones.dev.sdk.GameServer.prototype.clearObjectMeta = function() {
2040
- this.setObjectMeta(undefined);
2208
+ return this.setObjectMeta(undefined);
2041
2209
  };
2042
2210
 
2043
2211
 
@@ -2060,14 +2228,21 @@ proto.agones.dev.sdk.GameServer.prototype.getSpec = function() {
2060
2228
  };
2061
2229
 
2062
2230
 
2063
- /** @param {?proto.agones.dev.sdk.GameServer.Spec|undefined} value */
2231
+ /**
2232
+ * @param {?proto.agones.dev.sdk.GameServer.Spec|undefined} value
2233
+ * @return {!proto.agones.dev.sdk.GameServer} returns this
2234
+ */
2064
2235
  proto.agones.dev.sdk.GameServer.prototype.setSpec = function(value) {
2065
- jspb.Message.setWrapperField(this, 2, value);
2236
+ return jspb.Message.setWrapperField(this, 2, value);
2066
2237
  };
2067
2238
 
2068
2239
 
2240
+ /**
2241
+ * Clears the message field making it undefined.
2242
+ * @return {!proto.agones.dev.sdk.GameServer} returns this
2243
+ */
2069
2244
  proto.agones.dev.sdk.GameServer.prototype.clearSpec = function() {
2070
- this.setSpec(undefined);
2245
+ return this.setSpec(undefined);
2071
2246
  };
2072
2247
 
2073
2248
 
@@ -2090,14 +2265,21 @@ proto.agones.dev.sdk.GameServer.prototype.getStatus = function() {
2090
2265
  };
2091
2266
 
2092
2267
 
2093
- /** @param {?proto.agones.dev.sdk.GameServer.Status|undefined} value */
2268
+ /**
2269
+ * @param {?proto.agones.dev.sdk.GameServer.Status|undefined} value
2270
+ * @return {!proto.agones.dev.sdk.GameServer} returns this
2271
+ */
2094
2272
  proto.agones.dev.sdk.GameServer.prototype.setStatus = function(value) {
2095
- jspb.Message.setWrapperField(this, 3, value);
2273
+ return jspb.Message.setWrapperField(this, 3, value);
2096
2274
  };
2097
2275
 
2098
2276
 
2277
+ /**
2278
+ * Clears the message field making it undefined.
2279
+ * @return {!proto.agones.dev.sdk.GameServer} returns this
2280
+ */
2099
2281
  proto.agones.dev.sdk.GameServer.prototype.clearStatus = function() {
2100
- this.setStatus(undefined);
2282
+ return this.setStatus(undefined);
2101
2283
  };
2102
2284
 
2103
2285