@google-cloud/agones-sdk 1.40.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.
@@ -32,34 +32,13 @@ var global = Function('return this')();
32
32
 
33
33
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
34
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
35
  var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
48
36
  goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
49
- goog.exportSymbol('proto.agones.dev.sdk.alpha.AddListValueRequest', null, global);
50
37
  goog.exportSymbol('proto.agones.dev.sdk.alpha.Bool', null, global);
51
38
  goog.exportSymbol('proto.agones.dev.sdk.alpha.Count', null, global);
52
- goog.exportSymbol('proto.agones.dev.sdk.alpha.Counter', null, global);
53
- goog.exportSymbol('proto.agones.dev.sdk.alpha.CounterUpdateRequest', null, global);
54
39
  goog.exportSymbol('proto.agones.dev.sdk.alpha.Empty', null, global);
55
- goog.exportSymbol('proto.agones.dev.sdk.alpha.GetCounterRequest', null, global);
56
- goog.exportSymbol('proto.agones.dev.sdk.alpha.GetListRequest', null, global);
57
- goog.exportSymbol('proto.agones.dev.sdk.alpha.List', null, global);
58
40
  goog.exportSymbol('proto.agones.dev.sdk.alpha.PlayerID', null, global);
59
41
  goog.exportSymbol('proto.agones.dev.sdk.alpha.PlayerIDList', null, global);
60
- goog.exportSymbol('proto.agones.dev.sdk.alpha.RemoveListValueRequest', null, global);
61
- goog.exportSymbol('proto.agones.dev.sdk.alpha.UpdateCounterRequest', null, global);
62
- goog.exportSymbol('proto.agones.dev.sdk.alpha.UpdateListRequest', null, global);
63
42
  /**
64
43
  * Generated by JsPbCodeGenerator.
65
44
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -165,195 +144,6 @@ if (goog.DEBUG && !COMPILED) {
165
144
  */
166
145
  proto.agones.dev.sdk.alpha.PlayerIDList.displayName = 'proto.agones.dev.sdk.alpha.PlayerIDList';
167
146
  }
168
- /**
169
- * Generated by JsPbCodeGenerator.
170
- * @param {Array=} opt_data Optional initial data array, typically from a
171
- * server response, or constructed directly in Javascript. The array is used
172
- * in place and becomes part of the constructed object. It is not cloned.
173
- * If no data is provided, the constructed object will be empty, but still
174
- * valid.
175
- * @extends {jspb.Message}
176
- * @constructor
177
- */
178
- proto.agones.dev.sdk.alpha.Counter = function(opt_data) {
179
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
180
- };
181
- goog.inherits(proto.agones.dev.sdk.alpha.Counter, jspb.Message);
182
- if (goog.DEBUG && !COMPILED) {
183
- /**
184
- * @public
185
- * @override
186
- */
187
- proto.agones.dev.sdk.alpha.Counter.displayName = 'proto.agones.dev.sdk.alpha.Counter';
188
- }
189
- /**
190
- * Generated by JsPbCodeGenerator.
191
- * @param {Array=} opt_data Optional initial data array, typically from a
192
- * server response, or constructed directly in Javascript. The array is used
193
- * in place and becomes part of the constructed object. It is not cloned.
194
- * If no data is provided, the constructed object will be empty, but still
195
- * valid.
196
- * @extends {jspb.Message}
197
- * @constructor
198
- */
199
- proto.agones.dev.sdk.alpha.CounterUpdateRequest = function(opt_data) {
200
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
201
- };
202
- goog.inherits(proto.agones.dev.sdk.alpha.CounterUpdateRequest, jspb.Message);
203
- if (goog.DEBUG && !COMPILED) {
204
- /**
205
- * @public
206
- * @override
207
- */
208
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.displayName = 'proto.agones.dev.sdk.alpha.CounterUpdateRequest';
209
- }
210
- /**
211
- * Generated by JsPbCodeGenerator.
212
- * @param {Array=} opt_data Optional initial data array, typically from a
213
- * server response, or constructed directly in Javascript. The array is used
214
- * in place and becomes part of the constructed object. It is not cloned.
215
- * If no data is provided, the constructed object will be empty, but still
216
- * valid.
217
- * @extends {jspb.Message}
218
- * @constructor
219
- */
220
- proto.agones.dev.sdk.alpha.GetCounterRequest = function(opt_data) {
221
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
222
- };
223
- goog.inherits(proto.agones.dev.sdk.alpha.GetCounterRequest, jspb.Message);
224
- if (goog.DEBUG && !COMPILED) {
225
- /**
226
- * @public
227
- * @override
228
- */
229
- proto.agones.dev.sdk.alpha.GetCounterRequest.displayName = 'proto.agones.dev.sdk.alpha.GetCounterRequest';
230
- }
231
- /**
232
- * Generated by JsPbCodeGenerator.
233
- * @param {Array=} opt_data Optional initial data array, typically from a
234
- * server response, or constructed directly in Javascript. The array is used
235
- * in place and becomes part of the constructed object. It is not cloned.
236
- * If no data is provided, the constructed object will be empty, but still
237
- * valid.
238
- * @extends {jspb.Message}
239
- * @constructor
240
- */
241
- proto.agones.dev.sdk.alpha.UpdateCounterRequest = function(opt_data) {
242
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
243
- };
244
- goog.inherits(proto.agones.dev.sdk.alpha.UpdateCounterRequest, jspb.Message);
245
- if (goog.DEBUG && !COMPILED) {
246
- /**
247
- * @public
248
- * @override
249
- */
250
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.displayName = 'proto.agones.dev.sdk.alpha.UpdateCounterRequest';
251
- }
252
- /**
253
- * Generated by JsPbCodeGenerator.
254
- * @param {Array=} opt_data Optional initial data array, typically from a
255
- * server response, or constructed directly in Javascript. The array is used
256
- * in place and becomes part of the constructed object. It is not cloned.
257
- * If no data is provided, the constructed object will be empty, but still
258
- * valid.
259
- * @extends {jspb.Message}
260
- * @constructor
261
- */
262
- proto.agones.dev.sdk.alpha.List = function(opt_data) {
263
- jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.alpha.List.repeatedFields_, null);
264
- };
265
- goog.inherits(proto.agones.dev.sdk.alpha.List, jspb.Message);
266
- if (goog.DEBUG && !COMPILED) {
267
- /**
268
- * @public
269
- * @override
270
- */
271
- proto.agones.dev.sdk.alpha.List.displayName = 'proto.agones.dev.sdk.alpha.List';
272
- }
273
- /**
274
- * Generated by JsPbCodeGenerator.
275
- * @param {Array=} opt_data Optional initial data array, typically from a
276
- * server response, or constructed directly in Javascript. The array is used
277
- * in place and becomes part of the constructed object. It is not cloned.
278
- * If no data is provided, the constructed object will be empty, but still
279
- * valid.
280
- * @extends {jspb.Message}
281
- * @constructor
282
- */
283
- proto.agones.dev.sdk.alpha.GetListRequest = function(opt_data) {
284
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
285
- };
286
- goog.inherits(proto.agones.dev.sdk.alpha.GetListRequest, jspb.Message);
287
- if (goog.DEBUG && !COMPILED) {
288
- /**
289
- * @public
290
- * @override
291
- */
292
- proto.agones.dev.sdk.alpha.GetListRequest.displayName = 'proto.agones.dev.sdk.alpha.GetListRequest';
293
- }
294
- /**
295
- * Generated by JsPbCodeGenerator.
296
- * @param {Array=} opt_data Optional initial data array, typically from a
297
- * server response, or constructed directly in Javascript. The array is used
298
- * in place and becomes part of the constructed object. It is not cloned.
299
- * If no data is provided, the constructed object will be empty, but still
300
- * valid.
301
- * @extends {jspb.Message}
302
- * @constructor
303
- */
304
- proto.agones.dev.sdk.alpha.UpdateListRequest = function(opt_data) {
305
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
306
- };
307
- goog.inherits(proto.agones.dev.sdk.alpha.UpdateListRequest, jspb.Message);
308
- if (goog.DEBUG && !COMPILED) {
309
- /**
310
- * @public
311
- * @override
312
- */
313
- proto.agones.dev.sdk.alpha.UpdateListRequest.displayName = 'proto.agones.dev.sdk.alpha.UpdateListRequest';
314
- }
315
- /**
316
- * Generated by JsPbCodeGenerator.
317
- * @param {Array=} opt_data Optional initial data array, typically from a
318
- * server response, or constructed directly in Javascript. The array is used
319
- * in place and becomes part of the constructed object. It is not cloned.
320
- * If no data is provided, the constructed object will be empty, but still
321
- * valid.
322
- * @extends {jspb.Message}
323
- * @constructor
324
- */
325
- proto.agones.dev.sdk.alpha.AddListValueRequest = function(opt_data) {
326
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
327
- };
328
- goog.inherits(proto.agones.dev.sdk.alpha.AddListValueRequest, jspb.Message);
329
- if (goog.DEBUG && !COMPILED) {
330
- /**
331
- * @public
332
- * @override
333
- */
334
- proto.agones.dev.sdk.alpha.AddListValueRequest.displayName = 'proto.agones.dev.sdk.alpha.AddListValueRequest';
335
- }
336
- /**
337
- * Generated by JsPbCodeGenerator.
338
- * @param {Array=} opt_data Optional initial data array, typically from a
339
- * server response, or constructed directly in Javascript. The array is used
340
- * in place and becomes part of the constructed object. It is not cloned.
341
- * If no data is provided, the constructed object will be empty, but still
342
- * valid.
343
- * @extends {jspb.Message}
344
- * @constructor
345
- */
346
- proto.agones.dev.sdk.alpha.RemoveListValueRequest = function(opt_data) {
347
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
348
- };
349
- goog.inherits(proto.agones.dev.sdk.alpha.RemoveListValueRequest, jspb.Message);
350
- if (goog.DEBUG && !COMPILED) {
351
- /**
352
- * @public
353
- * @override
354
- */
355
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.displayName = 'proto.agones.dev.sdk.alpha.RemoveListValueRequest';
356
- }
357
147
 
358
148
 
359
149
 
@@ -1001,1605 +791,4 @@ proto.agones.dev.sdk.alpha.PlayerIDList.prototype.clearListList = function() {
1001
791
  };
1002
792
 
1003
793
 
1004
-
1005
-
1006
-
1007
- if (jspb.Message.GENERATE_TO_OBJECT) {
1008
- /**
1009
- * Creates an object representation of this proto.
1010
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1011
- * Optional fields that are not set will be set to undefined.
1012
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1013
- * For the list of reserved names please see:
1014
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1015
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1016
- * JSPB instance for transitional soy proto support:
1017
- * http://goto/soy-param-migration
1018
- * @return {!Object}
1019
- */
1020
- proto.agones.dev.sdk.alpha.Counter.prototype.toObject = function(opt_includeInstance) {
1021
- return proto.agones.dev.sdk.alpha.Counter.toObject(opt_includeInstance, this);
1022
- };
1023
-
1024
-
1025
- /**
1026
- * Static version of the {@see toObject} method.
1027
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1028
- * the JSPB instance for transitional soy proto support:
1029
- * http://goto/soy-param-migration
1030
- * @param {!proto.agones.dev.sdk.alpha.Counter} msg The msg instance to transform.
1031
- * @return {!Object}
1032
- * @suppress {unusedLocalVariables} f is only used for nested messages
1033
- */
1034
- proto.agones.dev.sdk.alpha.Counter.toObject = function(includeInstance, msg) {
1035
- var f, obj = {
1036
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1037
- count: jspb.Message.getFieldWithDefault(msg, 2, 0),
1038
- capacity: jspb.Message.getFieldWithDefault(msg, 3, 0)
1039
- };
1040
-
1041
- if (includeInstance) {
1042
- obj.$jspbMessageInstance = msg;
1043
- }
1044
- return obj;
1045
- };
1046
- }
1047
-
1048
-
1049
- /**
1050
- * Deserializes binary data (in protobuf wire format).
1051
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1052
- * @return {!proto.agones.dev.sdk.alpha.Counter}
1053
- */
1054
- proto.agones.dev.sdk.alpha.Counter.deserializeBinary = function(bytes) {
1055
- var reader = new jspb.BinaryReader(bytes);
1056
- var msg = new proto.agones.dev.sdk.alpha.Counter;
1057
- return proto.agones.dev.sdk.alpha.Counter.deserializeBinaryFromReader(msg, reader);
1058
- };
1059
-
1060
-
1061
- /**
1062
- * Deserializes binary data (in protobuf wire format) from the
1063
- * given reader into the given message object.
1064
- * @param {!proto.agones.dev.sdk.alpha.Counter} msg The message object to deserialize into.
1065
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1066
- * @return {!proto.agones.dev.sdk.alpha.Counter}
1067
- */
1068
- proto.agones.dev.sdk.alpha.Counter.deserializeBinaryFromReader = function(msg, reader) {
1069
- while (reader.nextField()) {
1070
- if (reader.isEndGroup()) {
1071
- break;
1072
- }
1073
- var field = reader.getFieldNumber();
1074
- switch (field) {
1075
- case 1:
1076
- var value = /** @type {string} */ (reader.readString());
1077
- msg.setName(value);
1078
- break;
1079
- case 2:
1080
- var value = /** @type {number} */ (reader.readInt64());
1081
- msg.setCount(value);
1082
- break;
1083
- case 3:
1084
- var value = /** @type {number} */ (reader.readInt64());
1085
- msg.setCapacity(value);
1086
- break;
1087
- default:
1088
- reader.skipField();
1089
- break;
1090
- }
1091
- }
1092
- return msg;
1093
- };
1094
-
1095
-
1096
- /**
1097
- * Serializes the message to binary data (in protobuf wire format).
1098
- * @return {!Uint8Array}
1099
- */
1100
- proto.agones.dev.sdk.alpha.Counter.prototype.serializeBinary = function() {
1101
- var writer = new jspb.BinaryWriter();
1102
- proto.agones.dev.sdk.alpha.Counter.serializeBinaryToWriter(this, writer);
1103
- return writer.getResultBuffer();
1104
- };
1105
-
1106
-
1107
- /**
1108
- * Serializes the given message to binary data (in protobuf wire
1109
- * format), writing to the given BinaryWriter.
1110
- * @param {!proto.agones.dev.sdk.alpha.Counter} message
1111
- * @param {!jspb.BinaryWriter} writer
1112
- * @suppress {unusedLocalVariables} f is only used for nested messages
1113
- */
1114
- proto.agones.dev.sdk.alpha.Counter.serializeBinaryToWriter = function(message, writer) {
1115
- var f = undefined;
1116
- f = message.getName();
1117
- if (f.length > 0) {
1118
- writer.writeString(
1119
- 1,
1120
- f
1121
- );
1122
- }
1123
- f = message.getCount();
1124
- if (f !== 0) {
1125
- writer.writeInt64(
1126
- 2,
1127
- f
1128
- );
1129
- }
1130
- f = message.getCapacity();
1131
- if (f !== 0) {
1132
- writer.writeInt64(
1133
- 3,
1134
- f
1135
- );
1136
- }
1137
- };
1138
-
1139
-
1140
- /**
1141
- * optional string name = 1;
1142
- * @return {string}
1143
- */
1144
- proto.agones.dev.sdk.alpha.Counter.prototype.getName = function() {
1145
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1146
- };
1147
-
1148
-
1149
- /**
1150
- * @param {string} value
1151
- * @return {!proto.agones.dev.sdk.alpha.Counter} returns this
1152
- */
1153
- proto.agones.dev.sdk.alpha.Counter.prototype.setName = function(value) {
1154
- return jspb.Message.setProto3StringField(this, 1, value);
1155
- };
1156
-
1157
-
1158
- /**
1159
- * optional int64 count = 2;
1160
- * @return {number}
1161
- */
1162
- proto.agones.dev.sdk.alpha.Counter.prototype.getCount = function() {
1163
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1164
- };
1165
-
1166
-
1167
- /**
1168
- * @param {number} value
1169
- * @return {!proto.agones.dev.sdk.alpha.Counter} returns this
1170
- */
1171
- proto.agones.dev.sdk.alpha.Counter.prototype.setCount = function(value) {
1172
- return jspb.Message.setProto3IntField(this, 2, value);
1173
- };
1174
-
1175
-
1176
- /**
1177
- * optional int64 capacity = 3;
1178
- * @return {number}
1179
- */
1180
- proto.agones.dev.sdk.alpha.Counter.prototype.getCapacity = function() {
1181
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1182
- };
1183
-
1184
-
1185
- /**
1186
- * @param {number} value
1187
- * @return {!proto.agones.dev.sdk.alpha.Counter} returns this
1188
- */
1189
- proto.agones.dev.sdk.alpha.Counter.prototype.setCapacity = function(value) {
1190
- return jspb.Message.setProto3IntField(this, 3, value);
1191
- };
1192
-
1193
-
1194
-
1195
-
1196
-
1197
- if (jspb.Message.GENERATE_TO_OBJECT) {
1198
- /**
1199
- * Creates an object representation of this proto.
1200
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1201
- * Optional fields that are not set will be set to undefined.
1202
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1203
- * For the list of reserved names please see:
1204
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1205
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1206
- * JSPB instance for transitional soy proto support:
1207
- * http://goto/soy-param-migration
1208
- * @return {!Object}
1209
- */
1210
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.toObject = function(opt_includeInstance) {
1211
- return proto.agones.dev.sdk.alpha.CounterUpdateRequest.toObject(opt_includeInstance, this);
1212
- };
1213
-
1214
-
1215
- /**
1216
- * Static version of the {@see toObject} method.
1217
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1218
- * the JSPB instance for transitional soy proto support:
1219
- * http://goto/soy-param-migration
1220
- * @param {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} msg The msg instance to transform.
1221
- * @return {!Object}
1222
- * @suppress {unusedLocalVariables} f is only used for nested messages
1223
- */
1224
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.toObject = function(includeInstance, msg) {
1225
- var f, obj = {
1226
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1227
- count: (f = msg.getCount()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
1228
- capacity: (f = msg.getCapacity()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
1229
- countdiff: jspb.Message.getFieldWithDefault(msg, 4, 0)
1230
- };
1231
-
1232
- if (includeInstance) {
1233
- obj.$jspbMessageInstance = msg;
1234
- }
1235
- return obj;
1236
- };
1237
- }
1238
-
1239
-
1240
- /**
1241
- * Deserializes binary data (in protobuf wire format).
1242
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1243
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest}
1244
- */
1245
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.deserializeBinary = function(bytes) {
1246
- var reader = new jspb.BinaryReader(bytes);
1247
- var msg = new proto.agones.dev.sdk.alpha.CounterUpdateRequest;
1248
- return proto.agones.dev.sdk.alpha.CounterUpdateRequest.deserializeBinaryFromReader(msg, reader);
1249
- };
1250
-
1251
-
1252
- /**
1253
- * Deserializes binary data (in protobuf wire format) from the
1254
- * given reader into the given message object.
1255
- * @param {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} msg The message object to deserialize into.
1256
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1257
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest}
1258
- */
1259
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1260
- while (reader.nextField()) {
1261
- if (reader.isEndGroup()) {
1262
- break;
1263
- }
1264
- var field = reader.getFieldNumber();
1265
- switch (field) {
1266
- case 1:
1267
- var value = /** @type {string} */ (reader.readString());
1268
- msg.setName(value);
1269
- break;
1270
- case 2:
1271
- var value = new google_protobuf_wrappers_pb.Int64Value;
1272
- reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
1273
- msg.setCount(value);
1274
- break;
1275
- case 3:
1276
- var value = new google_protobuf_wrappers_pb.Int64Value;
1277
- reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
1278
- msg.setCapacity(value);
1279
- break;
1280
- case 4:
1281
- var value = /** @type {number} */ (reader.readInt64());
1282
- msg.setCountdiff(value);
1283
- break;
1284
- default:
1285
- reader.skipField();
1286
- break;
1287
- }
1288
- }
1289
- return msg;
1290
- };
1291
-
1292
-
1293
- /**
1294
- * Serializes the message to binary data (in protobuf wire format).
1295
- * @return {!Uint8Array}
1296
- */
1297
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.serializeBinary = function() {
1298
- var writer = new jspb.BinaryWriter();
1299
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.serializeBinaryToWriter(this, writer);
1300
- return writer.getResultBuffer();
1301
- };
1302
-
1303
-
1304
- /**
1305
- * Serializes the given message to binary data (in protobuf wire
1306
- * format), writing to the given BinaryWriter.
1307
- * @param {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} message
1308
- * @param {!jspb.BinaryWriter} writer
1309
- * @suppress {unusedLocalVariables} f is only used for nested messages
1310
- */
1311
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.serializeBinaryToWriter = function(message, writer) {
1312
- var f = undefined;
1313
- f = message.getName();
1314
- if (f.length > 0) {
1315
- writer.writeString(
1316
- 1,
1317
- f
1318
- );
1319
- }
1320
- f = message.getCount();
1321
- if (f != null) {
1322
- writer.writeMessage(
1323
- 2,
1324
- f,
1325
- google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
1326
- );
1327
- }
1328
- f = message.getCapacity();
1329
- if (f != null) {
1330
- writer.writeMessage(
1331
- 3,
1332
- f,
1333
- google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
1334
- );
1335
- }
1336
- f = message.getCountdiff();
1337
- if (f !== 0) {
1338
- writer.writeInt64(
1339
- 4,
1340
- f
1341
- );
1342
- }
1343
- };
1344
-
1345
-
1346
- /**
1347
- * optional string name = 1;
1348
- * @return {string}
1349
- */
1350
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.getName = function() {
1351
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1352
- };
1353
-
1354
-
1355
- /**
1356
- * @param {string} value
1357
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} returns this
1358
- */
1359
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.setName = function(value) {
1360
- return jspb.Message.setProto3StringField(this, 1, value);
1361
- };
1362
-
1363
-
1364
- /**
1365
- * optional google.protobuf.Int64Value count = 2;
1366
- * @return {?proto.google.protobuf.Int64Value}
1367
- */
1368
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.getCount = function() {
1369
- return /** @type{?proto.google.protobuf.Int64Value} */ (
1370
- jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2));
1371
- };
1372
-
1373
-
1374
- /**
1375
- * @param {?proto.google.protobuf.Int64Value|undefined} value
1376
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} returns this
1377
- */
1378
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.setCount = function(value) {
1379
- return jspb.Message.setWrapperField(this, 2, value);
1380
- };
1381
-
1382
-
1383
- /**
1384
- * Clears the message field making it undefined.
1385
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} returns this
1386
- */
1387
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.clearCount = function() {
1388
- return this.setCount(undefined);
1389
- };
1390
-
1391
-
1392
- /**
1393
- * Returns whether this field is set.
1394
- * @return {boolean}
1395
- */
1396
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.hasCount = function() {
1397
- return jspb.Message.getField(this, 2) != null;
1398
- };
1399
-
1400
-
1401
- /**
1402
- * optional google.protobuf.Int64Value capacity = 3;
1403
- * @return {?proto.google.protobuf.Int64Value}
1404
- */
1405
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.getCapacity = function() {
1406
- return /** @type{?proto.google.protobuf.Int64Value} */ (
1407
- jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 3));
1408
- };
1409
-
1410
-
1411
- /**
1412
- * @param {?proto.google.protobuf.Int64Value|undefined} value
1413
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} returns this
1414
- */
1415
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.setCapacity = function(value) {
1416
- return jspb.Message.setWrapperField(this, 3, value);
1417
- };
1418
-
1419
-
1420
- /**
1421
- * Clears the message field making it undefined.
1422
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} returns this
1423
- */
1424
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.clearCapacity = function() {
1425
- return this.setCapacity(undefined);
1426
- };
1427
-
1428
-
1429
- /**
1430
- * Returns whether this field is set.
1431
- * @return {boolean}
1432
- */
1433
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.hasCapacity = function() {
1434
- return jspb.Message.getField(this, 3) != null;
1435
- };
1436
-
1437
-
1438
- /**
1439
- * optional int64 countDiff = 4;
1440
- * @return {number}
1441
- */
1442
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.getCountdiff = function() {
1443
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1444
- };
1445
-
1446
-
1447
- /**
1448
- * @param {number} value
1449
- * @return {!proto.agones.dev.sdk.alpha.CounterUpdateRequest} returns this
1450
- */
1451
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.prototype.setCountdiff = function(value) {
1452
- return jspb.Message.setProto3IntField(this, 4, value);
1453
- };
1454
-
1455
-
1456
-
1457
-
1458
-
1459
- if (jspb.Message.GENERATE_TO_OBJECT) {
1460
- /**
1461
- * Creates an object representation of this proto.
1462
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1463
- * Optional fields that are not set will be set to undefined.
1464
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1465
- * For the list of reserved names please see:
1466
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1467
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1468
- * JSPB instance for transitional soy proto support:
1469
- * http://goto/soy-param-migration
1470
- * @return {!Object}
1471
- */
1472
- proto.agones.dev.sdk.alpha.GetCounterRequest.prototype.toObject = function(opt_includeInstance) {
1473
- return proto.agones.dev.sdk.alpha.GetCounterRequest.toObject(opt_includeInstance, this);
1474
- };
1475
-
1476
-
1477
- /**
1478
- * Static version of the {@see toObject} method.
1479
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1480
- * the JSPB instance for transitional soy proto support:
1481
- * http://goto/soy-param-migration
1482
- * @param {!proto.agones.dev.sdk.alpha.GetCounterRequest} msg The msg instance to transform.
1483
- * @return {!Object}
1484
- * @suppress {unusedLocalVariables} f is only used for nested messages
1485
- */
1486
- proto.agones.dev.sdk.alpha.GetCounterRequest.toObject = function(includeInstance, msg) {
1487
- var f, obj = {
1488
- name: jspb.Message.getFieldWithDefault(msg, 1, "")
1489
- };
1490
-
1491
- if (includeInstance) {
1492
- obj.$jspbMessageInstance = msg;
1493
- }
1494
- return obj;
1495
- };
1496
- }
1497
-
1498
-
1499
- /**
1500
- * Deserializes binary data (in protobuf wire format).
1501
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1502
- * @return {!proto.agones.dev.sdk.alpha.GetCounterRequest}
1503
- */
1504
- proto.agones.dev.sdk.alpha.GetCounterRequest.deserializeBinary = function(bytes) {
1505
- var reader = new jspb.BinaryReader(bytes);
1506
- var msg = new proto.agones.dev.sdk.alpha.GetCounterRequest;
1507
- return proto.agones.dev.sdk.alpha.GetCounterRequest.deserializeBinaryFromReader(msg, reader);
1508
- };
1509
-
1510
-
1511
- /**
1512
- * Deserializes binary data (in protobuf wire format) from the
1513
- * given reader into the given message object.
1514
- * @param {!proto.agones.dev.sdk.alpha.GetCounterRequest} msg The message object to deserialize into.
1515
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1516
- * @return {!proto.agones.dev.sdk.alpha.GetCounterRequest}
1517
- */
1518
- proto.agones.dev.sdk.alpha.GetCounterRequest.deserializeBinaryFromReader = function(msg, reader) {
1519
- while (reader.nextField()) {
1520
- if (reader.isEndGroup()) {
1521
- break;
1522
- }
1523
- var field = reader.getFieldNumber();
1524
- switch (field) {
1525
- case 1:
1526
- var value = /** @type {string} */ (reader.readString());
1527
- msg.setName(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.alpha.GetCounterRequest.prototype.serializeBinary = function() {
1543
- var writer = new jspb.BinaryWriter();
1544
- proto.agones.dev.sdk.alpha.GetCounterRequest.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.alpha.GetCounterRequest} message
1553
- * @param {!jspb.BinaryWriter} writer
1554
- * @suppress {unusedLocalVariables} f is only used for nested messages
1555
- */
1556
- proto.agones.dev.sdk.alpha.GetCounterRequest.serializeBinaryToWriter = function(message, writer) {
1557
- var f = undefined;
1558
- f = message.getName();
1559
- if (f.length > 0) {
1560
- writer.writeString(
1561
- 1,
1562
- f
1563
- );
1564
- }
1565
- };
1566
-
1567
-
1568
- /**
1569
- * optional string name = 1;
1570
- * @return {string}
1571
- */
1572
- proto.agones.dev.sdk.alpha.GetCounterRequest.prototype.getName = function() {
1573
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1574
- };
1575
-
1576
-
1577
- /**
1578
- * @param {string} value
1579
- * @return {!proto.agones.dev.sdk.alpha.GetCounterRequest} returns this
1580
- */
1581
- proto.agones.dev.sdk.alpha.GetCounterRequest.prototype.setName = function(value) {
1582
- return jspb.Message.setProto3StringField(this, 1, value);
1583
- };
1584
-
1585
-
1586
-
1587
-
1588
-
1589
- if (jspb.Message.GENERATE_TO_OBJECT) {
1590
- /**
1591
- * Creates an object representation of this proto.
1592
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1593
- * Optional fields that are not set will be set to undefined.
1594
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1595
- * For the list of reserved names please see:
1596
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1597
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1598
- * JSPB instance for transitional soy proto support:
1599
- * http://goto/soy-param-migration
1600
- * @return {!Object}
1601
- */
1602
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.prototype.toObject = function(opt_includeInstance) {
1603
- return proto.agones.dev.sdk.alpha.UpdateCounterRequest.toObject(opt_includeInstance, this);
1604
- };
1605
-
1606
-
1607
- /**
1608
- * Static version of the {@see toObject} method.
1609
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1610
- * the JSPB instance for transitional soy proto support:
1611
- * http://goto/soy-param-migration
1612
- * @param {!proto.agones.dev.sdk.alpha.UpdateCounterRequest} msg The msg instance to transform.
1613
- * @return {!Object}
1614
- * @suppress {unusedLocalVariables} f is only used for nested messages
1615
- */
1616
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.toObject = function(includeInstance, msg) {
1617
- var f, obj = {
1618
- counterupdaterequest: (f = msg.getCounterupdaterequest()) && proto.agones.dev.sdk.alpha.CounterUpdateRequest.toObject(includeInstance, f)
1619
- };
1620
-
1621
- if (includeInstance) {
1622
- obj.$jspbMessageInstance = msg;
1623
- }
1624
- return obj;
1625
- };
1626
- }
1627
-
1628
-
1629
- /**
1630
- * Deserializes binary data (in protobuf wire format).
1631
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1632
- * @return {!proto.agones.dev.sdk.alpha.UpdateCounterRequest}
1633
- */
1634
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.deserializeBinary = function(bytes) {
1635
- var reader = new jspb.BinaryReader(bytes);
1636
- var msg = new proto.agones.dev.sdk.alpha.UpdateCounterRequest;
1637
- return proto.agones.dev.sdk.alpha.UpdateCounterRequest.deserializeBinaryFromReader(msg, reader);
1638
- };
1639
-
1640
-
1641
- /**
1642
- * Deserializes binary data (in protobuf wire format) from the
1643
- * given reader into the given message object.
1644
- * @param {!proto.agones.dev.sdk.alpha.UpdateCounterRequest} msg The message object to deserialize into.
1645
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1646
- * @return {!proto.agones.dev.sdk.alpha.UpdateCounterRequest}
1647
- */
1648
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.deserializeBinaryFromReader = function(msg, reader) {
1649
- while (reader.nextField()) {
1650
- if (reader.isEndGroup()) {
1651
- break;
1652
- }
1653
- var field = reader.getFieldNumber();
1654
- switch (field) {
1655
- case 1:
1656
- var value = new proto.agones.dev.sdk.alpha.CounterUpdateRequest;
1657
- reader.readMessage(value,proto.agones.dev.sdk.alpha.CounterUpdateRequest.deserializeBinaryFromReader);
1658
- msg.setCounterupdaterequest(value);
1659
- break;
1660
- default:
1661
- reader.skipField();
1662
- break;
1663
- }
1664
- }
1665
- return msg;
1666
- };
1667
-
1668
-
1669
- /**
1670
- * Serializes the message to binary data (in protobuf wire format).
1671
- * @return {!Uint8Array}
1672
- */
1673
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.prototype.serializeBinary = function() {
1674
- var writer = new jspb.BinaryWriter();
1675
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.serializeBinaryToWriter(this, writer);
1676
- return writer.getResultBuffer();
1677
- };
1678
-
1679
-
1680
- /**
1681
- * Serializes the given message to binary data (in protobuf wire
1682
- * format), writing to the given BinaryWriter.
1683
- * @param {!proto.agones.dev.sdk.alpha.UpdateCounterRequest} message
1684
- * @param {!jspb.BinaryWriter} writer
1685
- * @suppress {unusedLocalVariables} f is only used for nested messages
1686
- */
1687
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.serializeBinaryToWriter = function(message, writer) {
1688
- var f = undefined;
1689
- f = message.getCounterupdaterequest();
1690
- if (f != null) {
1691
- writer.writeMessage(
1692
- 1,
1693
- f,
1694
- proto.agones.dev.sdk.alpha.CounterUpdateRequest.serializeBinaryToWriter
1695
- );
1696
- }
1697
- };
1698
-
1699
-
1700
- /**
1701
- * optional CounterUpdateRequest counterUpdateRequest = 1;
1702
- * @return {?proto.agones.dev.sdk.alpha.CounterUpdateRequest}
1703
- */
1704
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.prototype.getCounterupdaterequest = function() {
1705
- return /** @type{?proto.agones.dev.sdk.alpha.CounterUpdateRequest} */ (
1706
- jspb.Message.getWrapperField(this, proto.agones.dev.sdk.alpha.CounterUpdateRequest, 1));
1707
- };
1708
-
1709
-
1710
- /**
1711
- * @param {?proto.agones.dev.sdk.alpha.CounterUpdateRequest|undefined} value
1712
- * @return {!proto.agones.dev.sdk.alpha.UpdateCounterRequest} returns this
1713
- */
1714
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.prototype.setCounterupdaterequest = function(value) {
1715
- return jspb.Message.setWrapperField(this, 1, value);
1716
- };
1717
-
1718
-
1719
- /**
1720
- * Clears the message field making it undefined.
1721
- * @return {!proto.agones.dev.sdk.alpha.UpdateCounterRequest} returns this
1722
- */
1723
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.prototype.clearCounterupdaterequest = function() {
1724
- return this.setCounterupdaterequest(undefined);
1725
- };
1726
-
1727
-
1728
- /**
1729
- * Returns whether this field is set.
1730
- * @return {boolean}
1731
- */
1732
- proto.agones.dev.sdk.alpha.UpdateCounterRequest.prototype.hasCounterupdaterequest = function() {
1733
- return jspb.Message.getField(this, 1) != null;
1734
- };
1735
-
1736
-
1737
-
1738
- /**
1739
- * List of repeated fields within this message type.
1740
- * @private {!Array<number>}
1741
- * @const
1742
- */
1743
- proto.agones.dev.sdk.alpha.List.repeatedFields_ = [3];
1744
-
1745
-
1746
-
1747
- if (jspb.Message.GENERATE_TO_OBJECT) {
1748
- /**
1749
- * Creates an object representation of this proto.
1750
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1751
- * Optional fields that are not set will be set to undefined.
1752
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1753
- * For the list of reserved names please see:
1754
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1755
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1756
- * JSPB instance for transitional soy proto support:
1757
- * http://goto/soy-param-migration
1758
- * @return {!Object}
1759
- */
1760
- proto.agones.dev.sdk.alpha.List.prototype.toObject = function(opt_includeInstance) {
1761
- return proto.agones.dev.sdk.alpha.List.toObject(opt_includeInstance, this);
1762
- };
1763
-
1764
-
1765
- /**
1766
- * Static version of the {@see toObject} method.
1767
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1768
- * the JSPB instance for transitional soy proto support:
1769
- * http://goto/soy-param-migration
1770
- * @param {!proto.agones.dev.sdk.alpha.List} msg The msg instance to transform.
1771
- * @return {!Object}
1772
- * @suppress {unusedLocalVariables} f is only used for nested messages
1773
- */
1774
- proto.agones.dev.sdk.alpha.List.toObject = function(includeInstance, msg) {
1775
- var f, obj = {
1776
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1777
- capacity: jspb.Message.getFieldWithDefault(msg, 2, 0),
1778
- valuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1779
- };
1780
-
1781
- if (includeInstance) {
1782
- obj.$jspbMessageInstance = msg;
1783
- }
1784
- return obj;
1785
- };
1786
- }
1787
-
1788
-
1789
- /**
1790
- * Deserializes binary data (in protobuf wire format).
1791
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1792
- * @return {!proto.agones.dev.sdk.alpha.List}
1793
- */
1794
- proto.agones.dev.sdk.alpha.List.deserializeBinary = function(bytes) {
1795
- var reader = new jspb.BinaryReader(bytes);
1796
- var msg = new proto.agones.dev.sdk.alpha.List;
1797
- return proto.agones.dev.sdk.alpha.List.deserializeBinaryFromReader(msg, reader);
1798
- };
1799
-
1800
-
1801
- /**
1802
- * Deserializes binary data (in protobuf wire format) from the
1803
- * given reader into the given message object.
1804
- * @param {!proto.agones.dev.sdk.alpha.List} msg The message object to deserialize into.
1805
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1806
- * @return {!proto.agones.dev.sdk.alpha.List}
1807
- */
1808
- proto.agones.dev.sdk.alpha.List.deserializeBinaryFromReader = function(msg, reader) {
1809
- while (reader.nextField()) {
1810
- if (reader.isEndGroup()) {
1811
- break;
1812
- }
1813
- var field = reader.getFieldNumber();
1814
- switch (field) {
1815
- case 1:
1816
- var value = /** @type {string} */ (reader.readString());
1817
- msg.setName(value);
1818
- break;
1819
- case 2:
1820
- var value = /** @type {number} */ (reader.readInt64());
1821
- msg.setCapacity(value);
1822
- break;
1823
- case 3:
1824
- var value = /** @type {string} */ (reader.readString());
1825
- msg.addValues(value);
1826
- break;
1827
- default:
1828
- reader.skipField();
1829
- break;
1830
- }
1831
- }
1832
- return msg;
1833
- };
1834
-
1835
-
1836
- /**
1837
- * Serializes the message to binary data (in protobuf wire format).
1838
- * @return {!Uint8Array}
1839
- */
1840
- proto.agones.dev.sdk.alpha.List.prototype.serializeBinary = function() {
1841
- var writer = new jspb.BinaryWriter();
1842
- proto.agones.dev.sdk.alpha.List.serializeBinaryToWriter(this, writer);
1843
- return writer.getResultBuffer();
1844
- };
1845
-
1846
-
1847
- /**
1848
- * Serializes the given message to binary data (in protobuf wire
1849
- * format), writing to the given BinaryWriter.
1850
- * @param {!proto.agones.dev.sdk.alpha.List} message
1851
- * @param {!jspb.BinaryWriter} writer
1852
- * @suppress {unusedLocalVariables} f is only used for nested messages
1853
- */
1854
- proto.agones.dev.sdk.alpha.List.serializeBinaryToWriter = function(message, writer) {
1855
- var f = undefined;
1856
- f = message.getName();
1857
- if (f.length > 0) {
1858
- writer.writeString(
1859
- 1,
1860
- f
1861
- );
1862
- }
1863
- f = message.getCapacity();
1864
- if (f !== 0) {
1865
- writer.writeInt64(
1866
- 2,
1867
- f
1868
- );
1869
- }
1870
- f = message.getValuesList();
1871
- if (f.length > 0) {
1872
- writer.writeRepeatedString(
1873
- 3,
1874
- f
1875
- );
1876
- }
1877
- };
1878
-
1879
-
1880
- /**
1881
- * optional string name = 1;
1882
- * @return {string}
1883
- */
1884
- proto.agones.dev.sdk.alpha.List.prototype.getName = function() {
1885
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1886
- };
1887
-
1888
-
1889
- /**
1890
- * @param {string} value
1891
- * @return {!proto.agones.dev.sdk.alpha.List} returns this
1892
- */
1893
- proto.agones.dev.sdk.alpha.List.prototype.setName = function(value) {
1894
- return jspb.Message.setProto3StringField(this, 1, value);
1895
- };
1896
-
1897
-
1898
- /**
1899
- * optional int64 capacity = 2;
1900
- * @return {number}
1901
- */
1902
- proto.agones.dev.sdk.alpha.List.prototype.getCapacity = function() {
1903
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1904
- };
1905
-
1906
-
1907
- /**
1908
- * @param {number} value
1909
- * @return {!proto.agones.dev.sdk.alpha.List} returns this
1910
- */
1911
- proto.agones.dev.sdk.alpha.List.prototype.setCapacity = function(value) {
1912
- return jspb.Message.setProto3IntField(this, 2, value);
1913
- };
1914
-
1915
-
1916
- /**
1917
- * repeated string values = 3;
1918
- * @return {!Array<string>}
1919
- */
1920
- proto.agones.dev.sdk.alpha.List.prototype.getValuesList = function() {
1921
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1922
- };
1923
-
1924
-
1925
- /**
1926
- * @param {!Array<string>} value
1927
- * @return {!proto.agones.dev.sdk.alpha.List} returns this
1928
- */
1929
- proto.agones.dev.sdk.alpha.List.prototype.setValuesList = function(value) {
1930
- return jspb.Message.setField(this, 3, value || []);
1931
- };
1932
-
1933
-
1934
- /**
1935
- * @param {string} value
1936
- * @param {number=} opt_index
1937
- * @return {!proto.agones.dev.sdk.alpha.List} returns this
1938
- */
1939
- proto.agones.dev.sdk.alpha.List.prototype.addValues = function(value, opt_index) {
1940
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1941
- };
1942
-
1943
-
1944
- /**
1945
- * Clears the list making it empty but non-null.
1946
- * @return {!proto.agones.dev.sdk.alpha.List} returns this
1947
- */
1948
- proto.agones.dev.sdk.alpha.List.prototype.clearValuesList = function() {
1949
- return this.setValuesList([]);
1950
- };
1951
-
1952
-
1953
-
1954
-
1955
-
1956
- if (jspb.Message.GENERATE_TO_OBJECT) {
1957
- /**
1958
- * Creates an object representation of this proto.
1959
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1960
- * Optional fields that are not set will be set to undefined.
1961
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1962
- * For the list of reserved names please see:
1963
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1964
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1965
- * JSPB instance for transitional soy proto support:
1966
- * http://goto/soy-param-migration
1967
- * @return {!Object}
1968
- */
1969
- proto.agones.dev.sdk.alpha.GetListRequest.prototype.toObject = function(opt_includeInstance) {
1970
- return proto.agones.dev.sdk.alpha.GetListRequest.toObject(opt_includeInstance, this);
1971
- };
1972
-
1973
-
1974
- /**
1975
- * Static version of the {@see toObject} method.
1976
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1977
- * the JSPB instance for transitional soy proto support:
1978
- * http://goto/soy-param-migration
1979
- * @param {!proto.agones.dev.sdk.alpha.GetListRequest} msg The msg instance to transform.
1980
- * @return {!Object}
1981
- * @suppress {unusedLocalVariables} f is only used for nested messages
1982
- */
1983
- proto.agones.dev.sdk.alpha.GetListRequest.toObject = function(includeInstance, msg) {
1984
- var f, obj = {
1985
- name: jspb.Message.getFieldWithDefault(msg, 1, "")
1986
- };
1987
-
1988
- if (includeInstance) {
1989
- obj.$jspbMessageInstance = msg;
1990
- }
1991
- return obj;
1992
- };
1993
- }
1994
-
1995
-
1996
- /**
1997
- * Deserializes binary data (in protobuf wire format).
1998
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1999
- * @return {!proto.agones.dev.sdk.alpha.GetListRequest}
2000
- */
2001
- proto.agones.dev.sdk.alpha.GetListRequest.deserializeBinary = function(bytes) {
2002
- var reader = new jspb.BinaryReader(bytes);
2003
- var msg = new proto.agones.dev.sdk.alpha.GetListRequest;
2004
- return proto.agones.dev.sdk.alpha.GetListRequest.deserializeBinaryFromReader(msg, reader);
2005
- };
2006
-
2007
-
2008
- /**
2009
- * Deserializes binary data (in protobuf wire format) from the
2010
- * given reader into the given message object.
2011
- * @param {!proto.agones.dev.sdk.alpha.GetListRequest} msg The message object to deserialize into.
2012
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2013
- * @return {!proto.agones.dev.sdk.alpha.GetListRequest}
2014
- */
2015
- proto.agones.dev.sdk.alpha.GetListRequest.deserializeBinaryFromReader = function(msg, reader) {
2016
- while (reader.nextField()) {
2017
- if (reader.isEndGroup()) {
2018
- break;
2019
- }
2020
- var field = reader.getFieldNumber();
2021
- switch (field) {
2022
- case 1:
2023
- var value = /** @type {string} */ (reader.readString());
2024
- msg.setName(value);
2025
- break;
2026
- default:
2027
- reader.skipField();
2028
- break;
2029
- }
2030
- }
2031
- return msg;
2032
- };
2033
-
2034
-
2035
- /**
2036
- * Serializes the message to binary data (in protobuf wire format).
2037
- * @return {!Uint8Array}
2038
- */
2039
- proto.agones.dev.sdk.alpha.GetListRequest.prototype.serializeBinary = function() {
2040
- var writer = new jspb.BinaryWriter();
2041
- proto.agones.dev.sdk.alpha.GetListRequest.serializeBinaryToWriter(this, writer);
2042
- return writer.getResultBuffer();
2043
- };
2044
-
2045
-
2046
- /**
2047
- * Serializes the given message to binary data (in protobuf wire
2048
- * format), writing to the given BinaryWriter.
2049
- * @param {!proto.agones.dev.sdk.alpha.GetListRequest} message
2050
- * @param {!jspb.BinaryWriter} writer
2051
- * @suppress {unusedLocalVariables} f is only used for nested messages
2052
- */
2053
- proto.agones.dev.sdk.alpha.GetListRequest.serializeBinaryToWriter = function(message, writer) {
2054
- var f = undefined;
2055
- f = message.getName();
2056
- if (f.length > 0) {
2057
- writer.writeString(
2058
- 1,
2059
- f
2060
- );
2061
- }
2062
- };
2063
-
2064
-
2065
- /**
2066
- * optional string name = 1;
2067
- * @return {string}
2068
- */
2069
- proto.agones.dev.sdk.alpha.GetListRequest.prototype.getName = function() {
2070
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2071
- };
2072
-
2073
-
2074
- /**
2075
- * @param {string} value
2076
- * @return {!proto.agones.dev.sdk.alpha.GetListRequest} returns this
2077
- */
2078
- proto.agones.dev.sdk.alpha.GetListRequest.prototype.setName = function(value) {
2079
- return jspb.Message.setProto3StringField(this, 1, value);
2080
- };
2081
-
2082
-
2083
-
2084
-
2085
-
2086
- if (jspb.Message.GENERATE_TO_OBJECT) {
2087
- /**
2088
- * Creates an object representation of this proto.
2089
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2090
- * Optional fields that are not set will be set to undefined.
2091
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2092
- * For the list of reserved names please see:
2093
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2094
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2095
- * JSPB instance for transitional soy proto support:
2096
- * http://goto/soy-param-migration
2097
- * @return {!Object}
2098
- */
2099
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.toObject = function(opt_includeInstance) {
2100
- return proto.agones.dev.sdk.alpha.UpdateListRequest.toObject(opt_includeInstance, this);
2101
- };
2102
-
2103
-
2104
- /**
2105
- * Static version of the {@see toObject} method.
2106
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2107
- * the JSPB instance for transitional soy proto support:
2108
- * http://goto/soy-param-migration
2109
- * @param {!proto.agones.dev.sdk.alpha.UpdateListRequest} msg The msg instance to transform.
2110
- * @return {!Object}
2111
- * @suppress {unusedLocalVariables} f is only used for nested messages
2112
- */
2113
- proto.agones.dev.sdk.alpha.UpdateListRequest.toObject = function(includeInstance, msg) {
2114
- var f, obj = {
2115
- list: (f = msg.getList()) && proto.agones.dev.sdk.alpha.List.toObject(includeInstance, f),
2116
- updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f)
2117
- };
2118
-
2119
- if (includeInstance) {
2120
- obj.$jspbMessageInstance = msg;
2121
- }
2122
- return obj;
2123
- };
2124
- }
2125
-
2126
-
2127
- /**
2128
- * Deserializes binary data (in protobuf wire format).
2129
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2130
- * @return {!proto.agones.dev.sdk.alpha.UpdateListRequest}
2131
- */
2132
- proto.agones.dev.sdk.alpha.UpdateListRequest.deserializeBinary = function(bytes) {
2133
- var reader = new jspb.BinaryReader(bytes);
2134
- var msg = new proto.agones.dev.sdk.alpha.UpdateListRequest;
2135
- return proto.agones.dev.sdk.alpha.UpdateListRequest.deserializeBinaryFromReader(msg, reader);
2136
- };
2137
-
2138
-
2139
- /**
2140
- * Deserializes binary data (in protobuf wire format) from the
2141
- * given reader into the given message object.
2142
- * @param {!proto.agones.dev.sdk.alpha.UpdateListRequest} msg The message object to deserialize into.
2143
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2144
- * @return {!proto.agones.dev.sdk.alpha.UpdateListRequest}
2145
- */
2146
- proto.agones.dev.sdk.alpha.UpdateListRequest.deserializeBinaryFromReader = function(msg, reader) {
2147
- while (reader.nextField()) {
2148
- if (reader.isEndGroup()) {
2149
- break;
2150
- }
2151
- var field = reader.getFieldNumber();
2152
- switch (field) {
2153
- case 1:
2154
- var value = new proto.agones.dev.sdk.alpha.List;
2155
- reader.readMessage(value,proto.agones.dev.sdk.alpha.List.deserializeBinaryFromReader);
2156
- msg.setList(value);
2157
- break;
2158
- case 2:
2159
- var value = new google_protobuf_field_mask_pb.FieldMask;
2160
- reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
2161
- msg.setUpdateMask(value);
2162
- break;
2163
- default:
2164
- reader.skipField();
2165
- break;
2166
- }
2167
- }
2168
- return msg;
2169
- };
2170
-
2171
-
2172
- /**
2173
- * Serializes the message to binary data (in protobuf wire format).
2174
- * @return {!Uint8Array}
2175
- */
2176
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.serializeBinary = function() {
2177
- var writer = new jspb.BinaryWriter();
2178
- proto.agones.dev.sdk.alpha.UpdateListRequest.serializeBinaryToWriter(this, writer);
2179
- return writer.getResultBuffer();
2180
- };
2181
-
2182
-
2183
- /**
2184
- * Serializes the given message to binary data (in protobuf wire
2185
- * format), writing to the given BinaryWriter.
2186
- * @param {!proto.agones.dev.sdk.alpha.UpdateListRequest} message
2187
- * @param {!jspb.BinaryWriter} writer
2188
- * @suppress {unusedLocalVariables} f is only used for nested messages
2189
- */
2190
- proto.agones.dev.sdk.alpha.UpdateListRequest.serializeBinaryToWriter = function(message, writer) {
2191
- var f = undefined;
2192
- f = message.getList();
2193
- if (f != null) {
2194
- writer.writeMessage(
2195
- 1,
2196
- f,
2197
- proto.agones.dev.sdk.alpha.List.serializeBinaryToWriter
2198
- );
2199
- }
2200
- f = message.getUpdateMask();
2201
- if (f != null) {
2202
- writer.writeMessage(
2203
- 2,
2204
- f,
2205
- google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
2206
- );
2207
- }
2208
- };
2209
-
2210
-
2211
- /**
2212
- * optional List list = 1;
2213
- * @return {?proto.agones.dev.sdk.alpha.List}
2214
- */
2215
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.getList = function() {
2216
- return /** @type{?proto.agones.dev.sdk.alpha.List} */ (
2217
- jspb.Message.getWrapperField(this, proto.agones.dev.sdk.alpha.List, 1));
2218
- };
2219
-
2220
-
2221
- /**
2222
- * @param {?proto.agones.dev.sdk.alpha.List|undefined} value
2223
- * @return {!proto.agones.dev.sdk.alpha.UpdateListRequest} returns this
2224
- */
2225
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.setList = function(value) {
2226
- return jspb.Message.setWrapperField(this, 1, value);
2227
- };
2228
-
2229
-
2230
- /**
2231
- * Clears the message field making it undefined.
2232
- * @return {!proto.agones.dev.sdk.alpha.UpdateListRequest} returns this
2233
- */
2234
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.clearList = function() {
2235
- return this.setList(undefined);
2236
- };
2237
-
2238
-
2239
- /**
2240
- * Returns whether this field is set.
2241
- * @return {boolean}
2242
- */
2243
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.hasList = function() {
2244
- return jspb.Message.getField(this, 1) != null;
2245
- };
2246
-
2247
-
2248
- /**
2249
- * optional google.protobuf.FieldMask update_mask = 2;
2250
- * @return {?proto.google.protobuf.FieldMask}
2251
- */
2252
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.getUpdateMask = function() {
2253
- return /** @type{?proto.google.protobuf.FieldMask} */ (
2254
- jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 2));
2255
- };
2256
-
2257
-
2258
- /**
2259
- * @param {?proto.google.protobuf.FieldMask|undefined} value
2260
- * @return {!proto.agones.dev.sdk.alpha.UpdateListRequest} returns this
2261
- */
2262
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.setUpdateMask = function(value) {
2263
- return jspb.Message.setWrapperField(this, 2, value);
2264
- };
2265
-
2266
-
2267
- /**
2268
- * Clears the message field making it undefined.
2269
- * @return {!proto.agones.dev.sdk.alpha.UpdateListRequest} returns this
2270
- */
2271
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.clearUpdateMask = function() {
2272
- return this.setUpdateMask(undefined);
2273
- };
2274
-
2275
-
2276
- /**
2277
- * Returns whether this field is set.
2278
- * @return {boolean}
2279
- */
2280
- proto.agones.dev.sdk.alpha.UpdateListRequest.prototype.hasUpdateMask = function() {
2281
- return jspb.Message.getField(this, 2) != null;
2282
- };
2283
-
2284
-
2285
-
2286
-
2287
-
2288
- if (jspb.Message.GENERATE_TO_OBJECT) {
2289
- /**
2290
- * Creates an object representation of this proto.
2291
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2292
- * Optional fields that are not set will be set to undefined.
2293
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2294
- * For the list of reserved names please see:
2295
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2296
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2297
- * JSPB instance for transitional soy proto support:
2298
- * http://goto/soy-param-migration
2299
- * @return {!Object}
2300
- */
2301
- proto.agones.dev.sdk.alpha.AddListValueRequest.prototype.toObject = function(opt_includeInstance) {
2302
- return proto.agones.dev.sdk.alpha.AddListValueRequest.toObject(opt_includeInstance, this);
2303
- };
2304
-
2305
-
2306
- /**
2307
- * Static version of the {@see toObject} method.
2308
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2309
- * the JSPB instance for transitional soy proto support:
2310
- * http://goto/soy-param-migration
2311
- * @param {!proto.agones.dev.sdk.alpha.AddListValueRequest} msg The msg instance to transform.
2312
- * @return {!Object}
2313
- * @suppress {unusedLocalVariables} f is only used for nested messages
2314
- */
2315
- proto.agones.dev.sdk.alpha.AddListValueRequest.toObject = function(includeInstance, msg) {
2316
- var f, obj = {
2317
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2318
- value: jspb.Message.getFieldWithDefault(msg, 2, "")
2319
- };
2320
-
2321
- if (includeInstance) {
2322
- obj.$jspbMessageInstance = msg;
2323
- }
2324
- return obj;
2325
- };
2326
- }
2327
-
2328
-
2329
- /**
2330
- * Deserializes binary data (in protobuf wire format).
2331
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2332
- * @return {!proto.agones.dev.sdk.alpha.AddListValueRequest}
2333
- */
2334
- proto.agones.dev.sdk.alpha.AddListValueRequest.deserializeBinary = function(bytes) {
2335
- var reader = new jspb.BinaryReader(bytes);
2336
- var msg = new proto.agones.dev.sdk.alpha.AddListValueRequest;
2337
- return proto.agones.dev.sdk.alpha.AddListValueRequest.deserializeBinaryFromReader(msg, reader);
2338
- };
2339
-
2340
-
2341
- /**
2342
- * Deserializes binary data (in protobuf wire format) from the
2343
- * given reader into the given message object.
2344
- * @param {!proto.agones.dev.sdk.alpha.AddListValueRequest} msg The message object to deserialize into.
2345
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2346
- * @return {!proto.agones.dev.sdk.alpha.AddListValueRequest}
2347
- */
2348
- proto.agones.dev.sdk.alpha.AddListValueRequest.deserializeBinaryFromReader = function(msg, reader) {
2349
- while (reader.nextField()) {
2350
- if (reader.isEndGroup()) {
2351
- break;
2352
- }
2353
- var field = reader.getFieldNumber();
2354
- switch (field) {
2355
- case 1:
2356
- var value = /** @type {string} */ (reader.readString());
2357
- msg.setName(value);
2358
- break;
2359
- case 2:
2360
- var value = /** @type {string} */ (reader.readString());
2361
- msg.setValue(value);
2362
- break;
2363
- default:
2364
- reader.skipField();
2365
- break;
2366
- }
2367
- }
2368
- return msg;
2369
- };
2370
-
2371
-
2372
- /**
2373
- * Serializes the message to binary data (in protobuf wire format).
2374
- * @return {!Uint8Array}
2375
- */
2376
- proto.agones.dev.sdk.alpha.AddListValueRequest.prototype.serializeBinary = function() {
2377
- var writer = new jspb.BinaryWriter();
2378
- proto.agones.dev.sdk.alpha.AddListValueRequest.serializeBinaryToWriter(this, writer);
2379
- return writer.getResultBuffer();
2380
- };
2381
-
2382
-
2383
- /**
2384
- * Serializes the given message to binary data (in protobuf wire
2385
- * format), writing to the given BinaryWriter.
2386
- * @param {!proto.agones.dev.sdk.alpha.AddListValueRequest} message
2387
- * @param {!jspb.BinaryWriter} writer
2388
- * @suppress {unusedLocalVariables} f is only used for nested messages
2389
- */
2390
- proto.agones.dev.sdk.alpha.AddListValueRequest.serializeBinaryToWriter = function(message, writer) {
2391
- var f = undefined;
2392
- f = message.getName();
2393
- if (f.length > 0) {
2394
- writer.writeString(
2395
- 1,
2396
- f
2397
- );
2398
- }
2399
- f = message.getValue();
2400
- if (f.length > 0) {
2401
- writer.writeString(
2402
- 2,
2403
- f
2404
- );
2405
- }
2406
- };
2407
-
2408
-
2409
- /**
2410
- * optional string name = 1;
2411
- * @return {string}
2412
- */
2413
- proto.agones.dev.sdk.alpha.AddListValueRequest.prototype.getName = function() {
2414
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2415
- };
2416
-
2417
-
2418
- /**
2419
- * @param {string} value
2420
- * @return {!proto.agones.dev.sdk.alpha.AddListValueRequest} returns this
2421
- */
2422
- proto.agones.dev.sdk.alpha.AddListValueRequest.prototype.setName = function(value) {
2423
- return jspb.Message.setProto3StringField(this, 1, value);
2424
- };
2425
-
2426
-
2427
- /**
2428
- * optional string value = 2;
2429
- * @return {string}
2430
- */
2431
- proto.agones.dev.sdk.alpha.AddListValueRequest.prototype.getValue = function() {
2432
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2433
- };
2434
-
2435
-
2436
- /**
2437
- * @param {string} value
2438
- * @return {!proto.agones.dev.sdk.alpha.AddListValueRequest} returns this
2439
- */
2440
- proto.agones.dev.sdk.alpha.AddListValueRequest.prototype.setValue = function(value) {
2441
- return jspb.Message.setProto3StringField(this, 2, value);
2442
- };
2443
-
2444
-
2445
-
2446
-
2447
-
2448
- if (jspb.Message.GENERATE_TO_OBJECT) {
2449
- /**
2450
- * Creates an object representation of this proto.
2451
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2452
- * Optional fields that are not set will be set to undefined.
2453
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2454
- * For the list of reserved names please see:
2455
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2456
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2457
- * JSPB instance for transitional soy proto support:
2458
- * http://goto/soy-param-migration
2459
- * @return {!Object}
2460
- */
2461
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.prototype.toObject = function(opt_includeInstance) {
2462
- return proto.agones.dev.sdk.alpha.RemoveListValueRequest.toObject(opt_includeInstance, this);
2463
- };
2464
-
2465
-
2466
- /**
2467
- * Static version of the {@see toObject} method.
2468
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2469
- * the JSPB instance for transitional soy proto support:
2470
- * http://goto/soy-param-migration
2471
- * @param {!proto.agones.dev.sdk.alpha.RemoveListValueRequest} msg The msg instance to transform.
2472
- * @return {!Object}
2473
- * @suppress {unusedLocalVariables} f is only used for nested messages
2474
- */
2475
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.toObject = function(includeInstance, msg) {
2476
- var f, obj = {
2477
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2478
- value: jspb.Message.getFieldWithDefault(msg, 2, "")
2479
- };
2480
-
2481
- if (includeInstance) {
2482
- obj.$jspbMessageInstance = msg;
2483
- }
2484
- return obj;
2485
- };
2486
- }
2487
-
2488
-
2489
- /**
2490
- * Deserializes binary data (in protobuf wire format).
2491
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2492
- * @return {!proto.agones.dev.sdk.alpha.RemoveListValueRequest}
2493
- */
2494
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.deserializeBinary = function(bytes) {
2495
- var reader = new jspb.BinaryReader(bytes);
2496
- var msg = new proto.agones.dev.sdk.alpha.RemoveListValueRequest;
2497
- return proto.agones.dev.sdk.alpha.RemoveListValueRequest.deserializeBinaryFromReader(msg, reader);
2498
- };
2499
-
2500
-
2501
- /**
2502
- * Deserializes binary data (in protobuf wire format) from the
2503
- * given reader into the given message object.
2504
- * @param {!proto.agones.dev.sdk.alpha.RemoveListValueRequest} msg The message object to deserialize into.
2505
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2506
- * @return {!proto.agones.dev.sdk.alpha.RemoveListValueRequest}
2507
- */
2508
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.deserializeBinaryFromReader = function(msg, reader) {
2509
- while (reader.nextField()) {
2510
- if (reader.isEndGroup()) {
2511
- break;
2512
- }
2513
- var field = reader.getFieldNumber();
2514
- switch (field) {
2515
- case 1:
2516
- var value = /** @type {string} */ (reader.readString());
2517
- msg.setName(value);
2518
- break;
2519
- case 2:
2520
- var value = /** @type {string} */ (reader.readString());
2521
- msg.setValue(value);
2522
- break;
2523
- default:
2524
- reader.skipField();
2525
- break;
2526
- }
2527
- }
2528
- return msg;
2529
- };
2530
-
2531
-
2532
- /**
2533
- * Serializes the message to binary data (in protobuf wire format).
2534
- * @return {!Uint8Array}
2535
- */
2536
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.prototype.serializeBinary = function() {
2537
- var writer = new jspb.BinaryWriter();
2538
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.serializeBinaryToWriter(this, writer);
2539
- return writer.getResultBuffer();
2540
- };
2541
-
2542
-
2543
- /**
2544
- * Serializes the given message to binary data (in protobuf wire
2545
- * format), writing to the given BinaryWriter.
2546
- * @param {!proto.agones.dev.sdk.alpha.RemoveListValueRequest} message
2547
- * @param {!jspb.BinaryWriter} writer
2548
- * @suppress {unusedLocalVariables} f is only used for nested messages
2549
- */
2550
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.serializeBinaryToWriter = function(message, writer) {
2551
- var f = undefined;
2552
- f = message.getName();
2553
- if (f.length > 0) {
2554
- writer.writeString(
2555
- 1,
2556
- f
2557
- );
2558
- }
2559
- f = message.getValue();
2560
- if (f.length > 0) {
2561
- writer.writeString(
2562
- 2,
2563
- f
2564
- );
2565
- }
2566
- };
2567
-
2568
-
2569
- /**
2570
- * optional string name = 1;
2571
- * @return {string}
2572
- */
2573
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.prototype.getName = function() {
2574
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2575
- };
2576
-
2577
-
2578
- /**
2579
- * @param {string} value
2580
- * @return {!proto.agones.dev.sdk.alpha.RemoveListValueRequest} returns this
2581
- */
2582
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.prototype.setName = function(value) {
2583
- return jspb.Message.setProto3StringField(this, 1, value);
2584
- };
2585
-
2586
-
2587
- /**
2588
- * optional string value = 2;
2589
- * @return {string}
2590
- */
2591
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.prototype.getValue = function() {
2592
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2593
- };
2594
-
2595
-
2596
- /**
2597
- * @param {string} value
2598
- * @return {!proto.agones.dev.sdk.alpha.RemoveListValueRequest} returns this
2599
- */
2600
- proto.agones.dev.sdk.alpha.RemoveListValueRequest.prototype.setValue = function(value) {
2601
- return jspb.Message.setProto3StringField(this, 2, value);
2602
- };
2603
-
2604
-
2605
794
  goog.object.extend(exports, proto.agones.dev.sdk.alpha);