@google-cloud/agones-sdk 1.39.0 → 1.41.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1971 @@
1
+ // Copyright 2023 Google LLC All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // This code was autogenerated. Do not edit directly.
16
+ // source: beta.proto
17
+ /**
18
+ * @fileoverview
19
+ * @enhanceable
20
+ * @suppress {missingRequire} reports error on implicit type usages.
21
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
22
+ * field starts with 'MSG_' and isn't a translatable message.
23
+ * @public
24
+ */
25
+ // GENERATED CODE -- DO NOT EDIT!
26
+ /* eslint-disable */
27
+ // @ts-nocheck
28
+
29
+ var jspb = require('google-protobuf');
30
+ var goog = jspb;
31
+ var global = Function('return this')();
32
+
33
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
34
+ goog.object.extend(proto, google_api_annotations_pb);
35
+ var google_api_client_pb = require('./google/api/client_pb.js');
36
+ goog.object.extend(proto, google_api_client_pb);
37
+ var google_api_field_behavior_pb = require('./google/api/field_behavior_pb.js');
38
+ goog.object.extend(proto, google_api_field_behavior_pb);
39
+ var google_api_resource_pb = require('./google/api/resource_pb.js');
40
+ goog.object.extend(proto, google_api_resource_pb);
41
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
42
+ goog.object.extend(proto, google_protobuf_empty_pb);
43
+ var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
44
+ goog.object.extend(proto, google_protobuf_field_mask_pb);
45
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
46
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
47
+ var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
48
+ goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
49
+ goog.exportSymbol('proto.agones.dev.sdk.beta.AddListValueRequest', null, global);
50
+ goog.exportSymbol('proto.agones.dev.sdk.beta.Counter', null, global);
51
+ goog.exportSymbol('proto.agones.dev.sdk.beta.CounterUpdateRequest', null, global);
52
+ goog.exportSymbol('proto.agones.dev.sdk.beta.Empty', null, global);
53
+ goog.exportSymbol('proto.agones.dev.sdk.beta.GetCounterRequest', null, global);
54
+ goog.exportSymbol('proto.agones.dev.sdk.beta.GetListRequest', null, global);
55
+ goog.exportSymbol('proto.agones.dev.sdk.beta.List', null, global);
56
+ goog.exportSymbol('proto.agones.dev.sdk.beta.RemoveListValueRequest', null, global);
57
+ goog.exportSymbol('proto.agones.dev.sdk.beta.UpdateCounterRequest', null, global);
58
+ goog.exportSymbol('proto.agones.dev.sdk.beta.UpdateListRequest', null, global);
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.agones.dev.sdk.beta.Empty = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
+ };
72
+ goog.inherits(proto.agones.dev.sdk.beta.Empty, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.agones.dev.sdk.beta.Empty.displayName = 'proto.agones.dev.sdk.beta.Empty';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.agones.dev.sdk.beta.Counter = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.agones.dev.sdk.beta.Counter, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.agones.dev.sdk.beta.Counter.displayName = 'proto.agones.dev.sdk.beta.Counter';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.agones.dev.sdk.beta.CounterUpdateRequest = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
+ };
114
+ goog.inherits(proto.agones.dev.sdk.beta.CounterUpdateRequest, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.displayName = 'proto.agones.dev.sdk.beta.CounterUpdateRequest';
121
+ }
122
+ /**
123
+ * Generated by JsPbCodeGenerator.
124
+ * @param {Array=} opt_data Optional initial data array, typically from a
125
+ * server response, or constructed directly in Javascript. The array is used
126
+ * in place and becomes part of the constructed object. It is not cloned.
127
+ * If no data is provided, the constructed object will be empty, but still
128
+ * valid.
129
+ * @extends {jspb.Message}
130
+ * @constructor
131
+ */
132
+ proto.agones.dev.sdk.beta.GetCounterRequest = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
+ };
135
+ goog.inherits(proto.agones.dev.sdk.beta.GetCounterRequest, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.agones.dev.sdk.beta.GetCounterRequest.displayName = 'proto.agones.dev.sdk.beta.GetCounterRequest';
142
+ }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.agones.dev.sdk.beta.UpdateCounterRequest = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
155
+ };
156
+ goog.inherits(proto.agones.dev.sdk.beta.UpdateCounterRequest, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.displayName = 'proto.agones.dev.sdk.beta.UpdateCounterRequest';
163
+ }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.agones.dev.sdk.beta.List = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.beta.List.repeatedFields_, null);
176
+ };
177
+ goog.inherits(proto.agones.dev.sdk.beta.List, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.agones.dev.sdk.beta.List.displayName = 'proto.agones.dev.sdk.beta.List';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.agones.dev.sdk.beta.GetListRequest = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
197
+ };
198
+ goog.inherits(proto.agones.dev.sdk.beta.GetListRequest, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.agones.dev.sdk.beta.GetListRequest.displayName = 'proto.agones.dev.sdk.beta.GetListRequest';
205
+ }
206
+ /**
207
+ * Generated by JsPbCodeGenerator.
208
+ * @param {Array=} opt_data Optional initial data array, typically from a
209
+ * server response, or constructed directly in Javascript. The array is used
210
+ * in place and becomes part of the constructed object. It is not cloned.
211
+ * If no data is provided, the constructed object will be empty, but still
212
+ * valid.
213
+ * @extends {jspb.Message}
214
+ * @constructor
215
+ */
216
+ proto.agones.dev.sdk.beta.UpdateListRequest = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
218
+ };
219
+ goog.inherits(proto.agones.dev.sdk.beta.UpdateListRequest, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.agones.dev.sdk.beta.UpdateListRequest.displayName = 'proto.agones.dev.sdk.beta.UpdateListRequest';
226
+ }
227
+ /**
228
+ * Generated by JsPbCodeGenerator.
229
+ * @param {Array=} opt_data Optional initial data array, typically from a
230
+ * server response, or constructed directly in Javascript. The array is used
231
+ * in place and becomes part of the constructed object. It is not cloned.
232
+ * If no data is provided, the constructed object will be empty, but still
233
+ * valid.
234
+ * @extends {jspb.Message}
235
+ * @constructor
236
+ */
237
+ proto.agones.dev.sdk.beta.AddListValueRequest = function(opt_data) {
238
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
239
+ };
240
+ goog.inherits(proto.agones.dev.sdk.beta.AddListValueRequest, jspb.Message);
241
+ if (goog.DEBUG && !COMPILED) {
242
+ /**
243
+ * @public
244
+ * @override
245
+ */
246
+ proto.agones.dev.sdk.beta.AddListValueRequest.displayName = 'proto.agones.dev.sdk.beta.AddListValueRequest';
247
+ }
248
+ /**
249
+ * Generated by JsPbCodeGenerator.
250
+ * @param {Array=} opt_data Optional initial data array, typically from a
251
+ * server response, or constructed directly in Javascript. The array is used
252
+ * in place and becomes part of the constructed object. It is not cloned.
253
+ * If no data is provided, the constructed object will be empty, but still
254
+ * valid.
255
+ * @extends {jspb.Message}
256
+ * @constructor
257
+ */
258
+ proto.agones.dev.sdk.beta.RemoveListValueRequest = function(opt_data) {
259
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
260
+ };
261
+ goog.inherits(proto.agones.dev.sdk.beta.RemoveListValueRequest, jspb.Message);
262
+ if (goog.DEBUG && !COMPILED) {
263
+ /**
264
+ * @public
265
+ * @override
266
+ */
267
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.displayName = 'proto.agones.dev.sdk.beta.RemoveListValueRequest';
268
+ }
269
+
270
+
271
+
272
+ if (jspb.Message.GENERATE_TO_OBJECT) {
273
+ /**
274
+ * Creates an object representation of this proto.
275
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
276
+ * Optional fields that are not set will be set to undefined.
277
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
278
+ * For the list of reserved names please see:
279
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
280
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
281
+ * JSPB instance for transitional soy proto support:
282
+ * http://goto/soy-param-migration
283
+ * @return {!Object}
284
+ */
285
+ proto.agones.dev.sdk.beta.Empty.prototype.toObject = function(opt_includeInstance) {
286
+ return proto.agones.dev.sdk.beta.Empty.toObject(opt_includeInstance, this);
287
+ };
288
+
289
+
290
+ /**
291
+ * Static version of the {@see toObject} method.
292
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
293
+ * the JSPB instance for transitional soy proto support:
294
+ * http://goto/soy-param-migration
295
+ * @param {!proto.agones.dev.sdk.beta.Empty} msg The msg instance to transform.
296
+ * @return {!Object}
297
+ * @suppress {unusedLocalVariables} f is only used for nested messages
298
+ */
299
+ proto.agones.dev.sdk.beta.Empty.toObject = function(includeInstance, msg) {
300
+ var f, obj = {
301
+
302
+ };
303
+
304
+ if (includeInstance) {
305
+ obj.$jspbMessageInstance = msg;
306
+ }
307
+ return obj;
308
+ };
309
+ }
310
+
311
+
312
+ /**
313
+ * Deserializes binary data (in protobuf wire format).
314
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
315
+ * @return {!proto.agones.dev.sdk.beta.Empty}
316
+ */
317
+ proto.agones.dev.sdk.beta.Empty.deserializeBinary = function(bytes) {
318
+ var reader = new jspb.BinaryReader(bytes);
319
+ var msg = new proto.agones.dev.sdk.beta.Empty;
320
+ return proto.agones.dev.sdk.beta.Empty.deserializeBinaryFromReader(msg, reader);
321
+ };
322
+
323
+
324
+ /**
325
+ * Deserializes binary data (in protobuf wire format) from the
326
+ * given reader into the given message object.
327
+ * @param {!proto.agones.dev.sdk.beta.Empty} msg The message object to deserialize into.
328
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
329
+ * @return {!proto.agones.dev.sdk.beta.Empty}
330
+ */
331
+ proto.agones.dev.sdk.beta.Empty.deserializeBinaryFromReader = function(msg, reader) {
332
+ while (reader.nextField()) {
333
+ if (reader.isEndGroup()) {
334
+ break;
335
+ }
336
+ var field = reader.getFieldNumber();
337
+ switch (field) {
338
+ default:
339
+ reader.skipField();
340
+ break;
341
+ }
342
+ }
343
+ return msg;
344
+ };
345
+
346
+
347
+ /**
348
+ * Serializes the message to binary data (in protobuf wire format).
349
+ * @return {!Uint8Array}
350
+ */
351
+ proto.agones.dev.sdk.beta.Empty.prototype.serializeBinary = function() {
352
+ var writer = new jspb.BinaryWriter();
353
+ proto.agones.dev.sdk.beta.Empty.serializeBinaryToWriter(this, writer);
354
+ return writer.getResultBuffer();
355
+ };
356
+
357
+
358
+ /**
359
+ * Serializes the given message to binary data (in protobuf wire
360
+ * format), writing to the given BinaryWriter.
361
+ * @param {!proto.agones.dev.sdk.beta.Empty} message
362
+ * @param {!jspb.BinaryWriter} writer
363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
364
+ */
365
+ proto.agones.dev.sdk.beta.Empty.serializeBinaryToWriter = function(message, writer) {
366
+ var f = undefined;
367
+ };
368
+
369
+
370
+
371
+
372
+
373
+ if (jspb.Message.GENERATE_TO_OBJECT) {
374
+ /**
375
+ * Creates an object representation of this proto.
376
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
377
+ * Optional fields that are not set will be set to undefined.
378
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
379
+ * For the list of reserved names please see:
380
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
381
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
382
+ * JSPB instance for transitional soy proto support:
383
+ * http://goto/soy-param-migration
384
+ * @return {!Object}
385
+ */
386
+ proto.agones.dev.sdk.beta.Counter.prototype.toObject = function(opt_includeInstance) {
387
+ return proto.agones.dev.sdk.beta.Counter.toObject(opt_includeInstance, this);
388
+ };
389
+
390
+
391
+ /**
392
+ * Static version of the {@see toObject} method.
393
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
394
+ * the JSPB instance for transitional soy proto support:
395
+ * http://goto/soy-param-migration
396
+ * @param {!proto.agones.dev.sdk.beta.Counter} msg The msg instance to transform.
397
+ * @return {!Object}
398
+ * @suppress {unusedLocalVariables} f is only used for nested messages
399
+ */
400
+ proto.agones.dev.sdk.beta.Counter.toObject = function(includeInstance, msg) {
401
+ var f, obj = {
402
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
403
+ count: jspb.Message.getFieldWithDefault(msg, 2, 0),
404
+ capacity: jspb.Message.getFieldWithDefault(msg, 3, 0)
405
+ };
406
+
407
+ if (includeInstance) {
408
+ obj.$jspbMessageInstance = msg;
409
+ }
410
+ return obj;
411
+ };
412
+ }
413
+
414
+
415
+ /**
416
+ * Deserializes binary data (in protobuf wire format).
417
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
418
+ * @return {!proto.agones.dev.sdk.beta.Counter}
419
+ */
420
+ proto.agones.dev.sdk.beta.Counter.deserializeBinary = function(bytes) {
421
+ var reader = new jspb.BinaryReader(bytes);
422
+ var msg = new proto.agones.dev.sdk.beta.Counter;
423
+ return proto.agones.dev.sdk.beta.Counter.deserializeBinaryFromReader(msg, reader);
424
+ };
425
+
426
+
427
+ /**
428
+ * Deserializes binary data (in protobuf wire format) from the
429
+ * given reader into the given message object.
430
+ * @param {!proto.agones.dev.sdk.beta.Counter} msg The message object to deserialize into.
431
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
432
+ * @return {!proto.agones.dev.sdk.beta.Counter}
433
+ */
434
+ proto.agones.dev.sdk.beta.Counter.deserializeBinaryFromReader = function(msg, reader) {
435
+ while (reader.nextField()) {
436
+ if (reader.isEndGroup()) {
437
+ break;
438
+ }
439
+ var field = reader.getFieldNumber();
440
+ switch (field) {
441
+ case 1:
442
+ var value = /** @type {string} */ (reader.readString());
443
+ msg.setName(value);
444
+ break;
445
+ case 2:
446
+ var value = /** @type {number} */ (reader.readInt64());
447
+ msg.setCount(value);
448
+ break;
449
+ case 3:
450
+ var value = /** @type {number} */ (reader.readInt64());
451
+ msg.setCapacity(value);
452
+ break;
453
+ default:
454
+ reader.skipField();
455
+ break;
456
+ }
457
+ }
458
+ return msg;
459
+ };
460
+
461
+
462
+ /**
463
+ * Serializes the message to binary data (in protobuf wire format).
464
+ * @return {!Uint8Array}
465
+ */
466
+ proto.agones.dev.sdk.beta.Counter.prototype.serializeBinary = function() {
467
+ var writer = new jspb.BinaryWriter();
468
+ proto.agones.dev.sdk.beta.Counter.serializeBinaryToWriter(this, writer);
469
+ return writer.getResultBuffer();
470
+ };
471
+
472
+
473
+ /**
474
+ * Serializes the given message to binary data (in protobuf wire
475
+ * format), writing to the given BinaryWriter.
476
+ * @param {!proto.agones.dev.sdk.beta.Counter} message
477
+ * @param {!jspb.BinaryWriter} writer
478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
479
+ */
480
+ proto.agones.dev.sdk.beta.Counter.serializeBinaryToWriter = function(message, writer) {
481
+ var f = undefined;
482
+ f = message.getName();
483
+ if (f.length > 0) {
484
+ writer.writeString(
485
+ 1,
486
+ f
487
+ );
488
+ }
489
+ f = message.getCount();
490
+ if (f !== 0) {
491
+ writer.writeInt64(
492
+ 2,
493
+ f
494
+ );
495
+ }
496
+ f = message.getCapacity();
497
+ if (f !== 0) {
498
+ writer.writeInt64(
499
+ 3,
500
+ f
501
+ );
502
+ }
503
+ };
504
+
505
+
506
+ /**
507
+ * optional string name = 1;
508
+ * @return {string}
509
+ */
510
+ proto.agones.dev.sdk.beta.Counter.prototype.getName = function() {
511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
512
+ };
513
+
514
+
515
+ /**
516
+ * @param {string} value
517
+ * @return {!proto.agones.dev.sdk.beta.Counter} returns this
518
+ */
519
+ proto.agones.dev.sdk.beta.Counter.prototype.setName = function(value) {
520
+ return jspb.Message.setProto3StringField(this, 1, value);
521
+ };
522
+
523
+
524
+ /**
525
+ * optional int64 count = 2;
526
+ * @return {number}
527
+ */
528
+ proto.agones.dev.sdk.beta.Counter.prototype.getCount = function() {
529
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
530
+ };
531
+
532
+
533
+ /**
534
+ * @param {number} value
535
+ * @return {!proto.agones.dev.sdk.beta.Counter} returns this
536
+ */
537
+ proto.agones.dev.sdk.beta.Counter.prototype.setCount = function(value) {
538
+ return jspb.Message.setProto3IntField(this, 2, value);
539
+ };
540
+
541
+
542
+ /**
543
+ * optional int64 capacity = 3;
544
+ * @return {number}
545
+ */
546
+ proto.agones.dev.sdk.beta.Counter.prototype.getCapacity = function() {
547
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
548
+ };
549
+
550
+
551
+ /**
552
+ * @param {number} value
553
+ * @return {!proto.agones.dev.sdk.beta.Counter} returns this
554
+ */
555
+ proto.agones.dev.sdk.beta.Counter.prototype.setCapacity = function(value) {
556
+ return jspb.Message.setProto3IntField(this, 3, value);
557
+ };
558
+
559
+
560
+
561
+
562
+
563
+ if (jspb.Message.GENERATE_TO_OBJECT) {
564
+ /**
565
+ * Creates an object representation of this proto.
566
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
567
+ * Optional fields that are not set will be set to undefined.
568
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
569
+ * For the list of reserved names please see:
570
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
571
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
572
+ * JSPB instance for transitional soy proto support:
573
+ * http://goto/soy-param-migration
574
+ * @return {!Object}
575
+ */
576
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.toObject = function(opt_includeInstance) {
577
+ return proto.agones.dev.sdk.beta.CounterUpdateRequest.toObject(opt_includeInstance, this);
578
+ };
579
+
580
+
581
+ /**
582
+ * Static version of the {@see toObject} method.
583
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
584
+ * the JSPB instance for transitional soy proto support:
585
+ * http://goto/soy-param-migration
586
+ * @param {!proto.agones.dev.sdk.beta.CounterUpdateRequest} msg The msg instance to transform.
587
+ * @return {!Object}
588
+ * @suppress {unusedLocalVariables} f is only used for nested messages
589
+ */
590
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.toObject = function(includeInstance, msg) {
591
+ var f, obj = {
592
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
593
+ count: (f = msg.getCount()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
594
+ capacity: (f = msg.getCapacity()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
595
+ countdiff: jspb.Message.getFieldWithDefault(msg, 4, 0)
596
+ };
597
+
598
+ if (includeInstance) {
599
+ obj.$jspbMessageInstance = msg;
600
+ }
601
+ return obj;
602
+ };
603
+ }
604
+
605
+
606
+ /**
607
+ * Deserializes binary data (in protobuf wire format).
608
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
609
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest}
610
+ */
611
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.deserializeBinary = function(bytes) {
612
+ var reader = new jspb.BinaryReader(bytes);
613
+ var msg = new proto.agones.dev.sdk.beta.CounterUpdateRequest;
614
+ return proto.agones.dev.sdk.beta.CounterUpdateRequest.deserializeBinaryFromReader(msg, reader);
615
+ };
616
+
617
+
618
+ /**
619
+ * Deserializes binary data (in protobuf wire format) from the
620
+ * given reader into the given message object.
621
+ * @param {!proto.agones.dev.sdk.beta.CounterUpdateRequest} msg The message object to deserialize into.
622
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
623
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest}
624
+ */
625
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
626
+ while (reader.nextField()) {
627
+ if (reader.isEndGroup()) {
628
+ break;
629
+ }
630
+ var field = reader.getFieldNumber();
631
+ switch (field) {
632
+ case 1:
633
+ var value = /** @type {string} */ (reader.readString());
634
+ msg.setName(value);
635
+ break;
636
+ case 2:
637
+ var value = new google_protobuf_wrappers_pb.Int64Value;
638
+ reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
639
+ msg.setCount(value);
640
+ break;
641
+ case 3:
642
+ var value = new google_protobuf_wrappers_pb.Int64Value;
643
+ reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
644
+ msg.setCapacity(value);
645
+ break;
646
+ case 4:
647
+ var value = /** @type {number} */ (reader.readInt64());
648
+ msg.setCountdiff(value);
649
+ break;
650
+ default:
651
+ reader.skipField();
652
+ break;
653
+ }
654
+ }
655
+ return msg;
656
+ };
657
+
658
+
659
+ /**
660
+ * Serializes the message to binary data (in protobuf wire format).
661
+ * @return {!Uint8Array}
662
+ */
663
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.serializeBinary = function() {
664
+ var writer = new jspb.BinaryWriter();
665
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.serializeBinaryToWriter(this, writer);
666
+ return writer.getResultBuffer();
667
+ };
668
+
669
+
670
+ /**
671
+ * Serializes the given message to binary data (in protobuf wire
672
+ * format), writing to the given BinaryWriter.
673
+ * @param {!proto.agones.dev.sdk.beta.CounterUpdateRequest} message
674
+ * @param {!jspb.BinaryWriter} writer
675
+ * @suppress {unusedLocalVariables} f is only used for nested messages
676
+ */
677
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.serializeBinaryToWriter = function(message, writer) {
678
+ var f = undefined;
679
+ f = message.getName();
680
+ if (f.length > 0) {
681
+ writer.writeString(
682
+ 1,
683
+ f
684
+ );
685
+ }
686
+ f = message.getCount();
687
+ if (f != null) {
688
+ writer.writeMessage(
689
+ 2,
690
+ f,
691
+ google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
692
+ );
693
+ }
694
+ f = message.getCapacity();
695
+ if (f != null) {
696
+ writer.writeMessage(
697
+ 3,
698
+ f,
699
+ google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
700
+ );
701
+ }
702
+ f = message.getCountdiff();
703
+ if (f !== 0) {
704
+ writer.writeInt64(
705
+ 4,
706
+ f
707
+ );
708
+ }
709
+ };
710
+
711
+
712
+ /**
713
+ * optional string name = 1;
714
+ * @return {string}
715
+ */
716
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.getName = function() {
717
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
718
+ };
719
+
720
+
721
+ /**
722
+ * @param {string} value
723
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest} returns this
724
+ */
725
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.setName = function(value) {
726
+ return jspb.Message.setProto3StringField(this, 1, value);
727
+ };
728
+
729
+
730
+ /**
731
+ * optional google.protobuf.Int64Value count = 2;
732
+ * @return {?proto.google.protobuf.Int64Value}
733
+ */
734
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.getCount = function() {
735
+ return /** @type{?proto.google.protobuf.Int64Value} */ (
736
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2));
737
+ };
738
+
739
+
740
+ /**
741
+ * @param {?proto.google.protobuf.Int64Value|undefined} value
742
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest} returns this
743
+ */
744
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.setCount = function(value) {
745
+ return jspb.Message.setWrapperField(this, 2, value);
746
+ };
747
+
748
+
749
+ /**
750
+ * Clears the message field making it undefined.
751
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest} returns this
752
+ */
753
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.clearCount = function() {
754
+ return this.setCount(undefined);
755
+ };
756
+
757
+
758
+ /**
759
+ * Returns whether this field is set.
760
+ * @return {boolean}
761
+ */
762
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.hasCount = function() {
763
+ return jspb.Message.getField(this, 2) != null;
764
+ };
765
+
766
+
767
+ /**
768
+ * optional google.protobuf.Int64Value capacity = 3;
769
+ * @return {?proto.google.protobuf.Int64Value}
770
+ */
771
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.getCapacity = function() {
772
+ return /** @type{?proto.google.protobuf.Int64Value} */ (
773
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 3));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {?proto.google.protobuf.Int64Value|undefined} value
779
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest} returns this
780
+ */
781
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.setCapacity = function(value) {
782
+ return jspb.Message.setWrapperField(this, 3, value);
783
+ };
784
+
785
+
786
+ /**
787
+ * Clears the message field making it undefined.
788
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest} returns this
789
+ */
790
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.clearCapacity = function() {
791
+ return this.setCapacity(undefined);
792
+ };
793
+
794
+
795
+ /**
796
+ * Returns whether this field is set.
797
+ * @return {boolean}
798
+ */
799
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.hasCapacity = function() {
800
+ return jspb.Message.getField(this, 3) != null;
801
+ };
802
+
803
+
804
+ /**
805
+ * optional int64 countDiff = 4;
806
+ * @return {number}
807
+ */
808
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.getCountdiff = function() {
809
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
810
+ };
811
+
812
+
813
+ /**
814
+ * @param {number} value
815
+ * @return {!proto.agones.dev.sdk.beta.CounterUpdateRequest} returns this
816
+ */
817
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.prototype.setCountdiff = function(value) {
818
+ return jspb.Message.setProto3IntField(this, 4, value);
819
+ };
820
+
821
+
822
+
823
+
824
+
825
+ if (jspb.Message.GENERATE_TO_OBJECT) {
826
+ /**
827
+ * Creates an object representation of this proto.
828
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
829
+ * Optional fields that are not set will be set to undefined.
830
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
831
+ * For the list of reserved names please see:
832
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
833
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
834
+ * JSPB instance for transitional soy proto support:
835
+ * http://goto/soy-param-migration
836
+ * @return {!Object}
837
+ */
838
+ proto.agones.dev.sdk.beta.GetCounterRequest.prototype.toObject = function(opt_includeInstance) {
839
+ return proto.agones.dev.sdk.beta.GetCounterRequest.toObject(opt_includeInstance, this);
840
+ };
841
+
842
+
843
+ /**
844
+ * Static version of the {@see toObject} method.
845
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
846
+ * the JSPB instance for transitional soy proto support:
847
+ * http://goto/soy-param-migration
848
+ * @param {!proto.agones.dev.sdk.beta.GetCounterRequest} msg The msg instance to transform.
849
+ * @return {!Object}
850
+ * @suppress {unusedLocalVariables} f is only used for nested messages
851
+ */
852
+ proto.agones.dev.sdk.beta.GetCounterRequest.toObject = function(includeInstance, msg) {
853
+ var f, obj = {
854
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
855
+ };
856
+
857
+ if (includeInstance) {
858
+ obj.$jspbMessageInstance = msg;
859
+ }
860
+ return obj;
861
+ };
862
+ }
863
+
864
+
865
+ /**
866
+ * Deserializes binary data (in protobuf wire format).
867
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
868
+ * @return {!proto.agones.dev.sdk.beta.GetCounterRequest}
869
+ */
870
+ proto.agones.dev.sdk.beta.GetCounterRequest.deserializeBinary = function(bytes) {
871
+ var reader = new jspb.BinaryReader(bytes);
872
+ var msg = new proto.agones.dev.sdk.beta.GetCounterRequest;
873
+ return proto.agones.dev.sdk.beta.GetCounterRequest.deserializeBinaryFromReader(msg, reader);
874
+ };
875
+
876
+
877
+ /**
878
+ * Deserializes binary data (in protobuf wire format) from the
879
+ * given reader into the given message object.
880
+ * @param {!proto.agones.dev.sdk.beta.GetCounterRequest} msg The message object to deserialize into.
881
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
882
+ * @return {!proto.agones.dev.sdk.beta.GetCounterRequest}
883
+ */
884
+ proto.agones.dev.sdk.beta.GetCounterRequest.deserializeBinaryFromReader = function(msg, reader) {
885
+ while (reader.nextField()) {
886
+ if (reader.isEndGroup()) {
887
+ break;
888
+ }
889
+ var field = reader.getFieldNumber();
890
+ switch (field) {
891
+ case 1:
892
+ var value = /** @type {string} */ (reader.readString());
893
+ msg.setName(value);
894
+ break;
895
+ default:
896
+ reader.skipField();
897
+ break;
898
+ }
899
+ }
900
+ return msg;
901
+ };
902
+
903
+
904
+ /**
905
+ * Serializes the message to binary data (in protobuf wire format).
906
+ * @return {!Uint8Array}
907
+ */
908
+ proto.agones.dev.sdk.beta.GetCounterRequest.prototype.serializeBinary = function() {
909
+ var writer = new jspb.BinaryWriter();
910
+ proto.agones.dev.sdk.beta.GetCounterRequest.serializeBinaryToWriter(this, writer);
911
+ return writer.getResultBuffer();
912
+ };
913
+
914
+
915
+ /**
916
+ * Serializes the given message to binary data (in protobuf wire
917
+ * format), writing to the given BinaryWriter.
918
+ * @param {!proto.agones.dev.sdk.beta.GetCounterRequest} message
919
+ * @param {!jspb.BinaryWriter} writer
920
+ * @suppress {unusedLocalVariables} f is only used for nested messages
921
+ */
922
+ proto.agones.dev.sdk.beta.GetCounterRequest.serializeBinaryToWriter = function(message, writer) {
923
+ var f = undefined;
924
+ f = message.getName();
925
+ if (f.length > 0) {
926
+ writer.writeString(
927
+ 1,
928
+ f
929
+ );
930
+ }
931
+ };
932
+
933
+
934
+ /**
935
+ * optional string name = 1;
936
+ * @return {string}
937
+ */
938
+ proto.agones.dev.sdk.beta.GetCounterRequest.prototype.getName = function() {
939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
940
+ };
941
+
942
+
943
+ /**
944
+ * @param {string} value
945
+ * @return {!proto.agones.dev.sdk.beta.GetCounterRequest} returns this
946
+ */
947
+ proto.agones.dev.sdk.beta.GetCounterRequest.prototype.setName = function(value) {
948
+ return jspb.Message.setProto3StringField(this, 1, value);
949
+ };
950
+
951
+
952
+
953
+
954
+
955
+ if (jspb.Message.GENERATE_TO_OBJECT) {
956
+ /**
957
+ * Creates an object representation of this proto.
958
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
959
+ * Optional fields that are not set will be set to undefined.
960
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
961
+ * For the list of reserved names please see:
962
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
963
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
964
+ * JSPB instance for transitional soy proto support:
965
+ * http://goto/soy-param-migration
966
+ * @return {!Object}
967
+ */
968
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.prototype.toObject = function(opt_includeInstance) {
969
+ return proto.agones.dev.sdk.beta.UpdateCounterRequest.toObject(opt_includeInstance, this);
970
+ };
971
+
972
+
973
+ /**
974
+ * Static version of the {@see toObject} method.
975
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
976
+ * the JSPB instance for transitional soy proto support:
977
+ * http://goto/soy-param-migration
978
+ * @param {!proto.agones.dev.sdk.beta.UpdateCounterRequest} msg The msg instance to transform.
979
+ * @return {!Object}
980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
981
+ */
982
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.toObject = function(includeInstance, msg) {
983
+ var f, obj = {
984
+ counterupdaterequest: (f = msg.getCounterupdaterequest()) && proto.agones.dev.sdk.beta.CounterUpdateRequest.toObject(includeInstance, f)
985
+ };
986
+
987
+ if (includeInstance) {
988
+ obj.$jspbMessageInstance = msg;
989
+ }
990
+ return obj;
991
+ };
992
+ }
993
+
994
+
995
+ /**
996
+ * Deserializes binary data (in protobuf wire format).
997
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
998
+ * @return {!proto.agones.dev.sdk.beta.UpdateCounterRequest}
999
+ */
1000
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.deserializeBinary = function(bytes) {
1001
+ var reader = new jspb.BinaryReader(bytes);
1002
+ var msg = new proto.agones.dev.sdk.beta.UpdateCounterRequest;
1003
+ return proto.agones.dev.sdk.beta.UpdateCounterRequest.deserializeBinaryFromReader(msg, reader);
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * Deserializes binary data (in protobuf wire format) from the
1009
+ * given reader into the given message object.
1010
+ * @param {!proto.agones.dev.sdk.beta.UpdateCounterRequest} msg The message object to deserialize into.
1011
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1012
+ * @return {!proto.agones.dev.sdk.beta.UpdateCounterRequest}
1013
+ */
1014
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.deserializeBinaryFromReader = function(msg, reader) {
1015
+ while (reader.nextField()) {
1016
+ if (reader.isEndGroup()) {
1017
+ break;
1018
+ }
1019
+ var field = reader.getFieldNumber();
1020
+ switch (field) {
1021
+ case 1:
1022
+ var value = new proto.agones.dev.sdk.beta.CounterUpdateRequest;
1023
+ reader.readMessage(value,proto.agones.dev.sdk.beta.CounterUpdateRequest.deserializeBinaryFromReader);
1024
+ msg.setCounterupdaterequest(value);
1025
+ break;
1026
+ default:
1027
+ reader.skipField();
1028
+ break;
1029
+ }
1030
+ }
1031
+ return msg;
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * Serializes the message to binary data (in protobuf wire format).
1037
+ * @return {!Uint8Array}
1038
+ */
1039
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.prototype.serializeBinary = function() {
1040
+ var writer = new jspb.BinaryWriter();
1041
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.serializeBinaryToWriter(this, writer);
1042
+ return writer.getResultBuffer();
1043
+ };
1044
+
1045
+
1046
+ /**
1047
+ * Serializes the given message to binary data (in protobuf wire
1048
+ * format), writing to the given BinaryWriter.
1049
+ * @param {!proto.agones.dev.sdk.beta.UpdateCounterRequest} message
1050
+ * @param {!jspb.BinaryWriter} writer
1051
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1052
+ */
1053
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.serializeBinaryToWriter = function(message, writer) {
1054
+ var f = undefined;
1055
+ f = message.getCounterupdaterequest();
1056
+ if (f != null) {
1057
+ writer.writeMessage(
1058
+ 1,
1059
+ f,
1060
+ proto.agones.dev.sdk.beta.CounterUpdateRequest.serializeBinaryToWriter
1061
+ );
1062
+ }
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * optional CounterUpdateRequest counterUpdateRequest = 1;
1068
+ * @return {?proto.agones.dev.sdk.beta.CounterUpdateRequest}
1069
+ */
1070
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.prototype.getCounterupdaterequest = function() {
1071
+ return /** @type{?proto.agones.dev.sdk.beta.CounterUpdateRequest} */ (
1072
+ jspb.Message.getWrapperField(this, proto.agones.dev.sdk.beta.CounterUpdateRequest, 1));
1073
+ };
1074
+
1075
+
1076
+ /**
1077
+ * @param {?proto.agones.dev.sdk.beta.CounterUpdateRequest|undefined} value
1078
+ * @return {!proto.agones.dev.sdk.beta.UpdateCounterRequest} returns this
1079
+ */
1080
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.prototype.setCounterupdaterequest = function(value) {
1081
+ return jspb.Message.setWrapperField(this, 1, value);
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * Clears the message field making it undefined.
1087
+ * @return {!proto.agones.dev.sdk.beta.UpdateCounterRequest} returns this
1088
+ */
1089
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.prototype.clearCounterupdaterequest = function() {
1090
+ return this.setCounterupdaterequest(undefined);
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * Returns whether this field is set.
1096
+ * @return {boolean}
1097
+ */
1098
+ proto.agones.dev.sdk.beta.UpdateCounterRequest.prototype.hasCounterupdaterequest = function() {
1099
+ return jspb.Message.getField(this, 1) != null;
1100
+ };
1101
+
1102
+
1103
+
1104
+ /**
1105
+ * List of repeated fields within this message type.
1106
+ * @private {!Array<number>}
1107
+ * @const
1108
+ */
1109
+ proto.agones.dev.sdk.beta.List.repeatedFields_ = [3];
1110
+
1111
+
1112
+
1113
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1114
+ /**
1115
+ * Creates an object representation of this proto.
1116
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1117
+ * Optional fields that are not set will be set to undefined.
1118
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1119
+ * For the list of reserved names please see:
1120
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1121
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1122
+ * JSPB instance for transitional soy proto support:
1123
+ * http://goto/soy-param-migration
1124
+ * @return {!Object}
1125
+ */
1126
+ proto.agones.dev.sdk.beta.List.prototype.toObject = function(opt_includeInstance) {
1127
+ return proto.agones.dev.sdk.beta.List.toObject(opt_includeInstance, this);
1128
+ };
1129
+
1130
+
1131
+ /**
1132
+ * Static version of the {@see toObject} method.
1133
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1134
+ * the JSPB instance for transitional soy proto support:
1135
+ * http://goto/soy-param-migration
1136
+ * @param {!proto.agones.dev.sdk.beta.List} msg The msg instance to transform.
1137
+ * @return {!Object}
1138
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1139
+ */
1140
+ proto.agones.dev.sdk.beta.List.toObject = function(includeInstance, msg) {
1141
+ var f, obj = {
1142
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1143
+ capacity: jspb.Message.getFieldWithDefault(msg, 2, 0),
1144
+ valuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1145
+ };
1146
+
1147
+ if (includeInstance) {
1148
+ obj.$jspbMessageInstance = msg;
1149
+ }
1150
+ return obj;
1151
+ };
1152
+ }
1153
+
1154
+
1155
+ /**
1156
+ * Deserializes binary data (in protobuf wire format).
1157
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1158
+ * @return {!proto.agones.dev.sdk.beta.List}
1159
+ */
1160
+ proto.agones.dev.sdk.beta.List.deserializeBinary = function(bytes) {
1161
+ var reader = new jspb.BinaryReader(bytes);
1162
+ var msg = new proto.agones.dev.sdk.beta.List;
1163
+ return proto.agones.dev.sdk.beta.List.deserializeBinaryFromReader(msg, reader);
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * Deserializes binary data (in protobuf wire format) from the
1169
+ * given reader into the given message object.
1170
+ * @param {!proto.agones.dev.sdk.beta.List} msg The message object to deserialize into.
1171
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1172
+ * @return {!proto.agones.dev.sdk.beta.List}
1173
+ */
1174
+ proto.agones.dev.sdk.beta.List.deserializeBinaryFromReader = function(msg, reader) {
1175
+ while (reader.nextField()) {
1176
+ if (reader.isEndGroup()) {
1177
+ break;
1178
+ }
1179
+ var field = reader.getFieldNumber();
1180
+ switch (field) {
1181
+ case 1:
1182
+ var value = /** @type {string} */ (reader.readString());
1183
+ msg.setName(value);
1184
+ break;
1185
+ case 2:
1186
+ var value = /** @type {number} */ (reader.readInt64());
1187
+ msg.setCapacity(value);
1188
+ break;
1189
+ case 3:
1190
+ var value = /** @type {string} */ (reader.readString());
1191
+ msg.addValues(value);
1192
+ break;
1193
+ default:
1194
+ reader.skipField();
1195
+ break;
1196
+ }
1197
+ }
1198
+ return msg;
1199
+ };
1200
+
1201
+
1202
+ /**
1203
+ * Serializes the message to binary data (in protobuf wire format).
1204
+ * @return {!Uint8Array}
1205
+ */
1206
+ proto.agones.dev.sdk.beta.List.prototype.serializeBinary = function() {
1207
+ var writer = new jspb.BinaryWriter();
1208
+ proto.agones.dev.sdk.beta.List.serializeBinaryToWriter(this, writer);
1209
+ return writer.getResultBuffer();
1210
+ };
1211
+
1212
+
1213
+ /**
1214
+ * Serializes the given message to binary data (in protobuf wire
1215
+ * format), writing to the given BinaryWriter.
1216
+ * @param {!proto.agones.dev.sdk.beta.List} message
1217
+ * @param {!jspb.BinaryWriter} writer
1218
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1219
+ */
1220
+ proto.agones.dev.sdk.beta.List.serializeBinaryToWriter = function(message, writer) {
1221
+ var f = undefined;
1222
+ f = message.getName();
1223
+ if (f.length > 0) {
1224
+ writer.writeString(
1225
+ 1,
1226
+ f
1227
+ );
1228
+ }
1229
+ f = message.getCapacity();
1230
+ if (f !== 0) {
1231
+ writer.writeInt64(
1232
+ 2,
1233
+ f
1234
+ );
1235
+ }
1236
+ f = message.getValuesList();
1237
+ if (f.length > 0) {
1238
+ writer.writeRepeatedString(
1239
+ 3,
1240
+ f
1241
+ );
1242
+ }
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * optional string name = 1;
1248
+ * @return {string}
1249
+ */
1250
+ proto.agones.dev.sdk.beta.List.prototype.getName = function() {
1251
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1252
+ };
1253
+
1254
+
1255
+ /**
1256
+ * @param {string} value
1257
+ * @return {!proto.agones.dev.sdk.beta.List} returns this
1258
+ */
1259
+ proto.agones.dev.sdk.beta.List.prototype.setName = function(value) {
1260
+ return jspb.Message.setProto3StringField(this, 1, value);
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * optional int64 capacity = 2;
1266
+ * @return {number}
1267
+ */
1268
+ proto.agones.dev.sdk.beta.List.prototype.getCapacity = function() {
1269
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * @param {number} value
1275
+ * @return {!proto.agones.dev.sdk.beta.List} returns this
1276
+ */
1277
+ proto.agones.dev.sdk.beta.List.prototype.setCapacity = function(value) {
1278
+ return jspb.Message.setProto3IntField(this, 2, value);
1279
+ };
1280
+
1281
+
1282
+ /**
1283
+ * repeated string values = 3;
1284
+ * @return {!Array<string>}
1285
+ */
1286
+ proto.agones.dev.sdk.beta.List.prototype.getValuesList = function() {
1287
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * @param {!Array<string>} value
1293
+ * @return {!proto.agones.dev.sdk.beta.List} returns this
1294
+ */
1295
+ proto.agones.dev.sdk.beta.List.prototype.setValuesList = function(value) {
1296
+ return jspb.Message.setField(this, 3, value || []);
1297
+ };
1298
+
1299
+
1300
+ /**
1301
+ * @param {string} value
1302
+ * @param {number=} opt_index
1303
+ * @return {!proto.agones.dev.sdk.beta.List} returns this
1304
+ */
1305
+ proto.agones.dev.sdk.beta.List.prototype.addValues = function(value, opt_index) {
1306
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * Clears the list making it empty but non-null.
1312
+ * @return {!proto.agones.dev.sdk.beta.List} returns this
1313
+ */
1314
+ proto.agones.dev.sdk.beta.List.prototype.clearValuesList = function() {
1315
+ return this.setValuesList([]);
1316
+ };
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1323
+ /**
1324
+ * Creates an object representation of this proto.
1325
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1326
+ * Optional fields that are not set will be set to undefined.
1327
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1328
+ * For the list of reserved names please see:
1329
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1330
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1331
+ * JSPB instance for transitional soy proto support:
1332
+ * http://goto/soy-param-migration
1333
+ * @return {!Object}
1334
+ */
1335
+ proto.agones.dev.sdk.beta.GetListRequest.prototype.toObject = function(opt_includeInstance) {
1336
+ return proto.agones.dev.sdk.beta.GetListRequest.toObject(opt_includeInstance, this);
1337
+ };
1338
+
1339
+
1340
+ /**
1341
+ * Static version of the {@see toObject} method.
1342
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1343
+ * the JSPB instance for transitional soy proto support:
1344
+ * http://goto/soy-param-migration
1345
+ * @param {!proto.agones.dev.sdk.beta.GetListRequest} msg The msg instance to transform.
1346
+ * @return {!Object}
1347
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1348
+ */
1349
+ proto.agones.dev.sdk.beta.GetListRequest.toObject = function(includeInstance, msg) {
1350
+ var f, obj = {
1351
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
1352
+ };
1353
+
1354
+ if (includeInstance) {
1355
+ obj.$jspbMessageInstance = msg;
1356
+ }
1357
+ return obj;
1358
+ };
1359
+ }
1360
+
1361
+
1362
+ /**
1363
+ * Deserializes binary data (in protobuf wire format).
1364
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1365
+ * @return {!proto.agones.dev.sdk.beta.GetListRequest}
1366
+ */
1367
+ proto.agones.dev.sdk.beta.GetListRequest.deserializeBinary = function(bytes) {
1368
+ var reader = new jspb.BinaryReader(bytes);
1369
+ var msg = new proto.agones.dev.sdk.beta.GetListRequest;
1370
+ return proto.agones.dev.sdk.beta.GetListRequest.deserializeBinaryFromReader(msg, reader);
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * Deserializes binary data (in protobuf wire format) from the
1376
+ * given reader into the given message object.
1377
+ * @param {!proto.agones.dev.sdk.beta.GetListRequest} msg The message object to deserialize into.
1378
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1379
+ * @return {!proto.agones.dev.sdk.beta.GetListRequest}
1380
+ */
1381
+ proto.agones.dev.sdk.beta.GetListRequest.deserializeBinaryFromReader = function(msg, reader) {
1382
+ while (reader.nextField()) {
1383
+ if (reader.isEndGroup()) {
1384
+ break;
1385
+ }
1386
+ var field = reader.getFieldNumber();
1387
+ switch (field) {
1388
+ case 1:
1389
+ var value = /** @type {string} */ (reader.readString());
1390
+ msg.setName(value);
1391
+ break;
1392
+ default:
1393
+ reader.skipField();
1394
+ break;
1395
+ }
1396
+ }
1397
+ return msg;
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * Serializes the message to binary data (in protobuf wire format).
1403
+ * @return {!Uint8Array}
1404
+ */
1405
+ proto.agones.dev.sdk.beta.GetListRequest.prototype.serializeBinary = function() {
1406
+ var writer = new jspb.BinaryWriter();
1407
+ proto.agones.dev.sdk.beta.GetListRequest.serializeBinaryToWriter(this, writer);
1408
+ return writer.getResultBuffer();
1409
+ };
1410
+
1411
+
1412
+ /**
1413
+ * Serializes the given message to binary data (in protobuf wire
1414
+ * format), writing to the given BinaryWriter.
1415
+ * @param {!proto.agones.dev.sdk.beta.GetListRequest} message
1416
+ * @param {!jspb.BinaryWriter} writer
1417
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1418
+ */
1419
+ proto.agones.dev.sdk.beta.GetListRequest.serializeBinaryToWriter = function(message, writer) {
1420
+ var f = undefined;
1421
+ f = message.getName();
1422
+ if (f.length > 0) {
1423
+ writer.writeString(
1424
+ 1,
1425
+ f
1426
+ );
1427
+ }
1428
+ };
1429
+
1430
+
1431
+ /**
1432
+ * optional string name = 1;
1433
+ * @return {string}
1434
+ */
1435
+ proto.agones.dev.sdk.beta.GetListRequest.prototype.getName = function() {
1436
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1437
+ };
1438
+
1439
+
1440
+ /**
1441
+ * @param {string} value
1442
+ * @return {!proto.agones.dev.sdk.beta.GetListRequest} returns this
1443
+ */
1444
+ proto.agones.dev.sdk.beta.GetListRequest.prototype.setName = function(value) {
1445
+ return jspb.Message.setProto3StringField(this, 1, value);
1446
+ };
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1453
+ /**
1454
+ * Creates an object representation of this proto.
1455
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1456
+ * Optional fields that are not set will be set to undefined.
1457
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1458
+ * For the list of reserved names please see:
1459
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1460
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1461
+ * JSPB instance for transitional soy proto support:
1462
+ * http://goto/soy-param-migration
1463
+ * @return {!Object}
1464
+ */
1465
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.toObject = function(opt_includeInstance) {
1466
+ return proto.agones.dev.sdk.beta.UpdateListRequest.toObject(opt_includeInstance, this);
1467
+ };
1468
+
1469
+
1470
+ /**
1471
+ * Static version of the {@see toObject} method.
1472
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1473
+ * the JSPB instance for transitional soy proto support:
1474
+ * http://goto/soy-param-migration
1475
+ * @param {!proto.agones.dev.sdk.beta.UpdateListRequest} msg The msg instance to transform.
1476
+ * @return {!Object}
1477
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1478
+ */
1479
+ proto.agones.dev.sdk.beta.UpdateListRequest.toObject = function(includeInstance, msg) {
1480
+ var f, obj = {
1481
+ list: (f = msg.getList()) && proto.agones.dev.sdk.beta.List.toObject(includeInstance, f),
1482
+ updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f)
1483
+ };
1484
+
1485
+ if (includeInstance) {
1486
+ obj.$jspbMessageInstance = msg;
1487
+ }
1488
+ return obj;
1489
+ };
1490
+ }
1491
+
1492
+
1493
+ /**
1494
+ * Deserializes binary data (in protobuf wire format).
1495
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1496
+ * @return {!proto.agones.dev.sdk.beta.UpdateListRequest}
1497
+ */
1498
+ proto.agones.dev.sdk.beta.UpdateListRequest.deserializeBinary = function(bytes) {
1499
+ var reader = new jspb.BinaryReader(bytes);
1500
+ var msg = new proto.agones.dev.sdk.beta.UpdateListRequest;
1501
+ return proto.agones.dev.sdk.beta.UpdateListRequest.deserializeBinaryFromReader(msg, reader);
1502
+ };
1503
+
1504
+
1505
+ /**
1506
+ * Deserializes binary data (in protobuf wire format) from the
1507
+ * given reader into the given message object.
1508
+ * @param {!proto.agones.dev.sdk.beta.UpdateListRequest} msg The message object to deserialize into.
1509
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1510
+ * @return {!proto.agones.dev.sdk.beta.UpdateListRequest}
1511
+ */
1512
+ proto.agones.dev.sdk.beta.UpdateListRequest.deserializeBinaryFromReader = function(msg, reader) {
1513
+ while (reader.nextField()) {
1514
+ if (reader.isEndGroup()) {
1515
+ break;
1516
+ }
1517
+ var field = reader.getFieldNumber();
1518
+ switch (field) {
1519
+ case 1:
1520
+ var value = new proto.agones.dev.sdk.beta.List;
1521
+ reader.readMessage(value,proto.agones.dev.sdk.beta.List.deserializeBinaryFromReader);
1522
+ msg.setList(value);
1523
+ break;
1524
+ case 2:
1525
+ var value = new google_protobuf_field_mask_pb.FieldMask;
1526
+ reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
1527
+ msg.setUpdateMask(value);
1528
+ break;
1529
+ default:
1530
+ reader.skipField();
1531
+ break;
1532
+ }
1533
+ }
1534
+ return msg;
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * Serializes the message to binary data (in protobuf wire format).
1540
+ * @return {!Uint8Array}
1541
+ */
1542
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.serializeBinary = function() {
1543
+ var writer = new jspb.BinaryWriter();
1544
+ proto.agones.dev.sdk.beta.UpdateListRequest.serializeBinaryToWriter(this, writer);
1545
+ return writer.getResultBuffer();
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * Serializes the given message to binary data (in protobuf wire
1551
+ * format), writing to the given BinaryWriter.
1552
+ * @param {!proto.agones.dev.sdk.beta.UpdateListRequest} message
1553
+ * @param {!jspb.BinaryWriter} writer
1554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1555
+ */
1556
+ proto.agones.dev.sdk.beta.UpdateListRequest.serializeBinaryToWriter = function(message, writer) {
1557
+ var f = undefined;
1558
+ f = message.getList();
1559
+ if (f != null) {
1560
+ writer.writeMessage(
1561
+ 1,
1562
+ f,
1563
+ proto.agones.dev.sdk.beta.List.serializeBinaryToWriter
1564
+ );
1565
+ }
1566
+ f = message.getUpdateMask();
1567
+ if (f != null) {
1568
+ writer.writeMessage(
1569
+ 2,
1570
+ f,
1571
+ google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
1572
+ );
1573
+ }
1574
+ };
1575
+
1576
+
1577
+ /**
1578
+ * optional List list = 1;
1579
+ * @return {?proto.agones.dev.sdk.beta.List}
1580
+ */
1581
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.getList = function() {
1582
+ return /** @type{?proto.agones.dev.sdk.beta.List} */ (
1583
+ jspb.Message.getWrapperField(this, proto.agones.dev.sdk.beta.List, 1));
1584
+ };
1585
+
1586
+
1587
+ /**
1588
+ * @param {?proto.agones.dev.sdk.beta.List|undefined} value
1589
+ * @return {!proto.agones.dev.sdk.beta.UpdateListRequest} returns this
1590
+ */
1591
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.setList = function(value) {
1592
+ return jspb.Message.setWrapperField(this, 1, value);
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * Clears the message field making it undefined.
1598
+ * @return {!proto.agones.dev.sdk.beta.UpdateListRequest} returns this
1599
+ */
1600
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.clearList = function() {
1601
+ return this.setList(undefined);
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * Returns whether this field is set.
1607
+ * @return {boolean}
1608
+ */
1609
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.hasList = function() {
1610
+ return jspb.Message.getField(this, 1) != null;
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * optional google.protobuf.FieldMask update_mask = 2;
1616
+ * @return {?proto.google.protobuf.FieldMask}
1617
+ */
1618
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.getUpdateMask = function() {
1619
+ return /** @type{?proto.google.protobuf.FieldMask} */ (
1620
+ jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 2));
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * @param {?proto.google.protobuf.FieldMask|undefined} value
1626
+ * @return {!proto.agones.dev.sdk.beta.UpdateListRequest} returns this
1627
+ */
1628
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.setUpdateMask = function(value) {
1629
+ return jspb.Message.setWrapperField(this, 2, value);
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * Clears the message field making it undefined.
1635
+ * @return {!proto.agones.dev.sdk.beta.UpdateListRequest} returns this
1636
+ */
1637
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.clearUpdateMask = function() {
1638
+ return this.setUpdateMask(undefined);
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * Returns whether this field is set.
1644
+ * @return {boolean}
1645
+ */
1646
+ proto.agones.dev.sdk.beta.UpdateListRequest.prototype.hasUpdateMask = function() {
1647
+ return jspb.Message.getField(this, 2) != null;
1648
+ };
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1655
+ /**
1656
+ * Creates an object representation of this proto.
1657
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1658
+ * Optional fields that are not set will be set to undefined.
1659
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1660
+ * For the list of reserved names please see:
1661
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1662
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1663
+ * JSPB instance for transitional soy proto support:
1664
+ * http://goto/soy-param-migration
1665
+ * @return {!Object}
1666
+ */
1667
+ proto.agones.dev.sdk.beta.AddListValueRequest.prototype.toObject = function(opt_includeInstance) {
1668
+ return proto.agones.dev.sdk.beta.AddListValueRequest.toObject(opt_includeInstance, this);
1669
+ };
1670
+
1671
+
1672
+ /**
1673
+ * Static version of the {@see toObject} method.
1674
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1675
+ * the JSPB instance for transitional soy proto support:
1676
+ * http://goto/soy-param-migration
1677
+ * @param {!proto.agones.dev.sdk.beta.AddListValueRequest} msg The msg instance to transform.
1678
+ * @return {!Object}
1679
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1680
+ */
1681
+ proto.agones.dev.sdk.beta.AddListValueRequest.toObject = function(includeInstance, msg) {
1682
+ var f, obj = {
1683
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1684
+ value: jspb.Message.getFieldWithDefault(msg, 2, "")
1685
+ };
1686
+
1687
+ if (includeInstance) {
1688
+ obj.$jspbMessageInstance = msg;
1689
+ }
1690
+ return obj;
1691
+ };
1692
+ }
1693
+
1694
+
1695
+ /**
1696
+ * Deserializes binary data (in protobuf wire format).
1697
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1698
+ * @return {!proto.agones.dev.sdk.beta.AddListValueRequest}
1699
+ */
1700
+ proto.agones.dev.sdk.beta.AddListValueRequest.deserializeBinary = function(bytes) {
1701
+ var reader = new jspb.BinaryReader(bytes);
1702
+ var msg = new proto.agones.dev.sdk.beta.AddListValueRequest;
1703
+ return proto.agones.dev.sdk.beta.AddListValueRequest.deserializeBinaryFromReader(msg, reader);
1704
+ };
1705
+
1706
+
1707
+ /**
1708
+ * Deserializes binary data (in protobuf wire format) from the
1709
+ * given reader into the given message object.
1710
+ * @param {!proto.agones.dev.sdk.beta.AddListValueRequest} msg The message object to deserialize into.
1711
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1712
+ * @return {!proto.agones.dev.sdk.beta.AddListValueRequest}
1713
+ */
1714
+ proto.agones.dev.sdk.beta.AddListValueRequest.deserializeBinaryFromReader = function(msg, reader) {
1715
+ while (reader.nextField()) {
1716
+ if (reader.isEndGroup()) {
1717
+ break;
1718
+ }
1719
+ var field = reader.getFieldNumber();
1720
+ switch (field) {
1721
+ case 1:
1722
+ var value = /** @type {string} */ (reader.readString());
1723
+ msg.setName(value);
1724
+ break;
1725
+ case 2:
1726
+ var value = /** @type {string} */ (reader.readString());
1727
+ msg.setValue(value);
1728
+ break;
1729
+ default:
1730
+ reader.skipField();
1731
+ break;
1732
+ }
1733
+ }
1734
+ return msg;
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * Serializes the message to binary data (in protobuf wire format).
1740
+ * @return {!Uint8Array}
1741
+ */
1742
+ proto.agones.dev.sdk.beta.AddListValueRequest.prototype.serializeBinary = function() {
1743
+ var writer = new jspb.BinaryWriter();
1744
+ proto.agones.dev.sdk.beta.AddListValueRequest.serializeBinaryToWriter(this, writer);
1745
+ return writer.getResultBuffer();
1746
+ };
1747
+
1748
+
1749
+ /**
1750
+ * Serializes the given message to binary data (in protobuf wire
1751
+ * format), writing to the given BinaryWriter.
1752
+ * @param {!proto.agones.dev.sdk.beta.AddListValueRequest} message
1753
+ * @param {!jspb.BinaryWriter} writer
1754
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1755
+ */
1756
+ proto.agones.dev.sdk.beta.AddListValueRequest.serializeBinaryToWriter = function(message, writer) {
1757
+ var f = undefined;
1758
+ f = message.getName();
1759
+ if (f.length > 0) {
1760
+ writer.writeString(
1761
+ 1,
1762
+ f
1763
+ );
1764
+ }
1765
+ f = message.getValue();
1766
+ if (f.length > 0) {
1767
+ writer.writeString(
1768
+ 2,
1769
+ f
1770
+ );
1771
+ }
1772
+ };
1773
+
1774
+
1775
+ /**
1776
+ * optional string name = 1;
1777
+ * @return {string}
1778
+ */
1779
+ proto.agones.dev.sdk.beta.AddListValueRequest.prototype.getName = function() {
1780
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1781
+ };
1782
+
1783
+
1784
+ /**
1785
+ * @param {string} value
1786
+ * @return {!proto.agones.dev.sdk.beta.AddListValueRequest} returns this
1787
+ */
1788
+ proto.agones.dev.sdk.beta.AddListValueRequest.prototype.setName = function(value) {
1789
+ return jspb.Message.setProto3StringField(this, 1, value);
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * optional string value = 2;
1795
+ * @return {string}
1796
+ */
1797
+ proto.agones.dev.sdk.beta.AddListValueRequest.prototype.getValue = function() {
1798
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * @param {string} value
1804
+ * @return {!proto.agones.dev.sdk.beta.AddListValueRequest} returns this
1805
+ */
1806
+ proto.agones.dev.sdk.beta.AddListValueRequest.prototype.setValue = function(value) {
1807
+ return jspb.Message.setProto3StringField(this, 2, value);
1808
+ };
1809
+
1810
+
1811
+
1812
+
1813
+
1814
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1815
+ /**
1816
+ * Creates an object representation of this proto.
1817
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1818
+ * Optional fields that are not set will be set to undefined.
1819
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1820
+ * For the list of reserved names please see:
1821
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1822
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1823
+ * JSPB instance for transitional soy proto support:
1824
+ * http://goto/soy-param-migration
1825
+ * @return {!Object}
1826
+ */
1827
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.prototype.toObject = function(opt_includeInstance) {
1828
+ return proto.agones.dev.sdk.beta.RemoveListValueRequest.toObject(opt_includeInstance, this);
1829
+ };
1830
+
1831
+
1832
+ /**
1833
+ * Static version of the {@see toObject} method.
1834
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1835
+ * the JSPB instance for transitional soy proto support:
1836
+ * http://goto/soy-param-migration
1837
+ * @param {!proto.agones.dev.sdk.beta.RemoveListValueRequest} msg The msg instance to transform.
1838
+ * @return {!Object}
1839
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1840
+ */
1841
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.toObject = function(includeInstance, msg) {
1842
+ var f, obj = {
1843
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1844
+ value: jspb.Message.getFieldWithDefault(msg, 2, "")
1845
+ };
1846
+
1847
+ if (includeInstance) {
1848
+ obj.$jspbMessageInstance = msg;
1849
+ }
1850
+ return obj;
1851
+ };
1852
+ }
1853
+
1854
+
1855
+ /**
1856
+ * Deserializes binary data (in protobuf wire format).
1857
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1858
+ * @return {!proto.agones.dev.sdk.beta.RemoveListValueRequest}
1859
+ */
1860
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.deserializeBinary = function(bytes) {
1861
+ var reader = new jspb.BinaryReader(bytes);
1862
+ var msg = new proto.agones.dev.sdk.beta.RemoveListValueRequest;
1863
+ return proto.agones.dev.sdk.beta.RemoveListValueRequest.deserializeBinaryFromReader(msg, reader);
1864
+ };
1865
+
1866
+
1867
+ /**
1868
+ * Deserializes binary data (in protobuf wire format) from the
1869
+ * given reader into the given message object.
1870
+ * @param {!proto.agones.dev.sdk.beta.RemoveListValueRequest} msg The message object to deserialize into.
1871
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1872
+ * @return {!proto.agones.dev.sdk.beta.RemoveListValueRequest}
1873
+ */
1874
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.deserializeBinaryFromReader = function(msg, reader) {
1875
+ while (reader.nextField()) {
1876
+ if (reader.isEndGroup()) {
1877
+ break;
1878
+ }
1879
+ var field = reader.getFieldNumber();
1880
+ switch (field) {
1881
+ case 1:
1882
+ var value = /** @type {string} */ (reader.readString());
1883
+ msg.setName(value);
1884
+ break;
1885
+ case 2:
1886
+ var value = /** @type {string} */ (reader.readString());
1887
+ msg.setValue(value);
1888
+ break;
1889
+ default:
1890
+ reader.skipField();
1891
+ break;
1892
+ }
1893
+ }
1894
+ return msg;
1895
+ };
1896
+
1897
+
1898
+ /**
1899
+ * Serializes the message to binary data (in protobuf wire format).
1900
+ * @return {!Uint8Array}
1901
+ */
1902
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.prototype.serializeBinary = function() {
1903
+ var writer = new jspb.BinaryWriter();
1904
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.serializeBinaryToWriter(this, writer);
1905
+ return writer.getResultBuffer();
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * Serializes the given message to binary data (in protobuf wire
1911
+ * format), writing to the given BinaryWriter.
1912
+ * @param {!proto.agones.dev.sdk.beta.RemoveListValueRequest} message
1913
+ * @param {!jspb.BinaryWriter} writer
1914
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1915
+ */
1916
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.serializeBinaryToWriter = function(message, writer) {
1917
+ var f = undefined;
1918
+ f = message.getName();
1919
+ if (f.length > 0) {
1920
+ writer.writeString(
1921
+ 1,
1922
+ f
1923
+ );
1924
+ }
1925
+ f = message.getValue();
1926
+ if (f.length > 0) {
1927
+ writer.writeString(
1928
+ 2,
1929
+ f
1930
+ );
1931
+ }
1932
+ };
1933
+
1934
+
1935
+ /**
1936
+ * optional string name = 1;
1937
+ * @return {string}
1938
+ */
1939
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.prototype.getName = function() {
1940
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1941
+ };
1942
+
1943
+
1944
+ /**
1945
+ * @param {string} value
1946
+ * @return {!proto.agones.dev.sdk.beta.RemoveListValueRequest} returns this
1947
+ */
1948
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.prototype.setName = function(value) {
1949
+ return jspb.Message.setProto3StringField(this, 1, value);
1950
+ };
1951
+
1952
+
1953
+ /**
1954
+ * optional string value = 2;
1955
+ * @return {string}
1956
+ */
1957
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.prototype.getValue = function() {
1958
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * @param {string} value
1964
+ * @return {!proto.agones.dev.sdk.beta.RemoveListValueRequest} returns this
1965
+ */
1966
+ proto.agones.dev.sdk.beta.RemoveListValueRequest.prototype.setValue = function(value) {
1967
+ return jspb.Message.setProto3StringField(this, 2, value);
1968
+ };
1969
+
1970
+
1971
+ goog.object.extend(exports, proto.agones.dev.sdk.beta);