protobuf-platform 1.2.393 → 1.2.395

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/game/game_pb.js CHANGED
@@ -54,6 +54,8 @@ goog.exportSymbol('proto.game.CollectionRequest', null, global);
54
54
  goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
55
55
  goog.exportSymbol('proto.game.CollectionResponse', null, global);
56
56
  goog.exportSymbol('proto.game.CollectionSearchRequest', null, global);
57
+ goog.exportSymbol('proto.game.CollectionSnapshotItem', null, global);
58
+ goog.exportSymbol('proto.game.CollectionSnapshotItemsResponse', null, global);
57
59
  goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
58
60
  goog.exportSymbol('proto.game.DashboardRequest', null, global);
59
61
  goog.exportSymbol('proto.game.DashboardResponse', null, global);
@@ -82,6 +84,8 @@ goog.exportSymbol('proto.game.GameRequest', null, global);
82
84
  goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
83
85
  goog.exportSymbol('proto.game.GameResponse', null, global);
84
86
  goog.exportSymbol('proto.game.GameSearchRequest', null, global);
87
+ goog.exportSymbol('proto.game.GameSnapshotItem', null, global);
88
+ goog.exportSymbol('proto.game.GameSnapshotItemsResponse', null, global);
85
89
  goog.exportSymbol('proto.game.GameStatusResponse', null, global);
86
90
  goog.exportSymbol('proto.game.GamesBunchRequest', null, global);
87
91
  goog.exportSymbol('proto.game.GamesIds', null, global);
@@ -93,11 +97,14 @@ goog.exportSymbol('proto.game.GeoRestrictionStatusResponse', null, global);
93
97
  goog.exportSymbol('proto.game.GetCashBackListRequest', null, global);
94
98
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
95
99
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
100
+ goog.exportSymbol('proto.game.GetCollectionSnapshotsByIdsRequest', null, global);
96
101
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
97
102
  goog.exportSymbol('proto.game.GetGameConfigCheckRequest', null, global);
98
103
  goog.exportSymbol('proto.game.GetGameRequest', null, global);
104
+ goog.exportSymbol('proto.game.GetGameSnapshotsByIdsRequest', null, global);
99
105
  goog.exportSymbol('proto.game.GetProviderRequest', null, global);
100
106
  goog.exportSymbol('proto.game.GetTagRequest', null, global);
107
+ goog.exportSymbol('proto.game.GetTagSnapshotsByIdsRequest', null, global);
101
108
  goog.exportSymbol('proto.game.GetWagerListRequest', null, global);
102
109
  goog.exportSymbol('proto.game.InitDemoGameSessionRequest', null, global);
103
110
  goog.exportSymbol('proto.game.InitGameSessionRequest', null, global);
@@ -159,6 +166,8 @@ goog.exportSymbol('proto.game.TagRequest', null, global);
159
166
  goog.exportSymbol('proto.game.TagRequest.RequestCase', null, global);
160
167
  goog.exportSymbol('proto.game.TagResponse', null, global);
161
168
  goog.exportSymbol('proto.game.TagSearchRequest', null, global);
169
+ goog.exportSymbol('proto.game.TagSnapshotItem', null, global);
170
+ goog.exportSymbol('proto.game.TagSnapshotItemsResponse', null, global);
162
171
  goog.exportSymbol('proto.game.TagStatusResponse', null, global);
163
172
  goog.exportSymbol('proto.game.TournamentGamesPreviewItem', null, global);
164
173
  goog.exportSymbol('proto.game.TournamentGamesPreviewResponse', null, global);
@@ -3305,6 +3314,195 @@ if (goog.DEBUG && !COMPILED) {
3305
3314
  */
3306
3315
  proto.game.GeoRestrictionResponse.displayName = 'proto.game.GeoRestrictionResponse';
3307
3316
  }
3317
+ /**
3318
+ * Generated by JsPbCodeGenerator.
3319
+ * @param {Array=} opt_data Optional initial data array, typically from a
3320
+ * server response, or constructed directly in Javascript. The array is used
3321
+ * in place and becomes part of the constructed object. It is not cloned.
3322
+ * If no data is provided, the constructed object will be empty, but still
3323
+ * valid.
3324
+ * @extends {jspb.Message}
3325
+ * @constructor
3326
+ */
3327
+ proto.game.GetGameSnapshotsByIdsRequest = function(opt_data) {
3328
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GetGameSnapshotsByIdsRequest.repeatedFields_, null);
3329
+ };
3330
+ goog.inherits(proto.game.GetGameSnapshotsByIdsRequest, jspb.Message);
3331
+ if (goog.DEBUG && !COMPILED) {
3332
+ /**
3333
+ * @public
3334
+ * @override
3335
+ */
3336
+ proto.game.GetGameSnapshotsByIdsRequest.displayName = 'proto.game.GetGameSnapshotsByIdsRequest';
3337
+ }
3338
+ /**
3339
+ * Generated by JsPbCodeGenerator.
3340
+ * @param {Array=} opt_data Optional initial data array, typically from a
3341
+ * server response, or constructed directly in Javascript. The array is used
3342
+ * in place and becomes part of the constructed object. It is not cloned.
3343
+ * If no data is provided, the constructed object will be empty, but still
3344
+ * valid.
3345
+ * @extends {jspb.Message}
3346
+ * @constructor
3347
+ */
3348
+ proto.game.GameSnapshotItem = function(opt_data) {
3349
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3350
+ };
3351
+ goog.inherits(proto.game.GameSnapshotItem, jspb.Message);
3352
+ if (goog.DEBUG && !COMPILED) {
3353
+ /**
3354
+ * @public
3355
+ * @override
3356
+ */
3357
+ proto.game.GameSnapshotItem.displayName = 'proto.game.GameSnapshotItem';
3358
+ }
3359
+ /**
3360
+ * Generated by JsPbCodeGenerator.
3361
+ * @param {Array=} opt_data Optional initial data array, typically from a
3362
+ * server response, or constructed directly in Javascript. The array is used
3363
+ * in place and becomes part of the constructed object. It is not cloned.
3364
+ * If no data is provided, the constructed object will be empty, but still
3365
+ * valid.
3366
+ * @extends {jspb.Message}
3367
+ * @constructor
3368
+ */
3369
+ proto.game.GameSnapshotItemsResponse = function(opt_data) {
3370
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GameSnapshotItemsResponse.repeatedFields_, null);
3371
+ };
3372
+ goog.inherits(proto.game.GameSnapshotItemsResponse, jspb.Message);
3373
+ if (goog.DEBUG && !COMPILED) {
3374
+ /**
3375
+ * @public
3376
+ * @override
3377
+ */
3378
+ proto.game.GameSnapshotItemsResponse.displayName = 'proto.game.GameSnapshotItemsResponse';
3379
+ }
3380
+ /**
3381
+ * Generated by JsPbCodeGenerator.
3382
+ * @param {Array=} opt_data Optional initial data array, typically from a
3383
+ * server response, or constructed directly in Javascript. The array is used
3384
+ * in place and becomes part of the constructed object. It is not cloned.
3385
+ * If no data is provided, the constructed object will be empty, but still
3386
+ * valid.
3387
+ * @extends {jspb.Message}
3388
+ * @constructor
3389
+ */
3390
+ proto.game.GetCollectionSnapshotsByIdsRequest = function(opt_data) {
3391
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GetCollectionSnapshotsByIdsRequest.repeatedFields_, null);
3392
+ };
3393
+ goog.inherits(proto.game.GetCollectionSnapshotsByIdsRequest, jspb.Message);
3394
+ if (goog.DEBUG && !COMPILED) {
3395
+ /**
3396
+ * @public
3397
+ * @override
3398
+ */
3399
+ proto.game.GetCollectionSnapshotsByIdsRequest.displayName = 'proto.game.GetCollectionSnapshotsByIdsRequest';
3400
+ }
3401
+ /**
3402
+ * Generated by JsPbCodeGenerator.
3403
+ * @param {Array=} opt_data Optional initial data array, typically from a
3404
+ * server response, or constructed directly in Javascript. The array is used
3405
+ * in place and becomes part of the constructed object. It is not cloned.
3406
+ * If no data is provided, the constructed object will be empty, but still
3407
+ * valid.
3408
+ * @extends {jspb.Message}
3409
+ * @constructor
3410
+ */
3411
+ proto.game.CollectionSnapshotItem = function(opt_data) {
3412
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3413
+ };
3414
+ goog.inherits(proto.game.CollectionSnapshotItem, jspb.Message);
3415
+ if (goog.DEBUG && !COMPILED) {
3416
+ /**
3417
+ * @public
3418
+ * @override
3419
+ */
3420
+ proto.game.CollectionSnapshotItem.displayName = 'proto.game.CollectionSnapshotItem';
3421
+ }
3422
+ /**
3423
+ * Generated by JsPbCodeGenerator.
3424
+ * @param {Array=} opt_data Optional initial data array, typically from a
3425
+ * server response, or constructed directly in Javascript. The array is used
3426
+ * in place and becomes part of the constructed object. It is not cloned.
3427
+ * If no data is provided, the constructed object will be empty, but still
3428
+ * valid.
3429
+ * @extends {jspb.Message}
3430
+ * @constructor
3431
+ */
3432
+ proto.game.CollectionSnapshotItemsResponse = function(opt_data) {
3433
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CollectionSnapshotItemsResponse.repeatedFields_, null);
3434
+ };
3435
+ goog.inherits(proto.game.CollectionSnapshotItemsResponse, jspb.Message);
3436
+ if (goog.DEBUG && !COMPILED) {
3437
+ /**
3438
+ * @public
3439
+ * @override
3440
+ */
3441
+ proto.game.CollectionSnapshotItemsResponse.displayName = 'proto.game.CollectionSnapshotItemsResponse';
3442
+ }
3443
+ /**
3444
+ * Generated by JsPbCodeGenerator.
3445
+ * @param {Array=} opt_data Optional initial data array, typically from a
3446
+ * server response, or constructed directly in Javascript. The array is used
3447
+ * in place and becomes part of the constructed object. It is not cloned.
3448
+ * If no data is provided, the constructed object will be empty, but still
3449
+ * valid.
3450
+ * @extends {jspb.Message}
3451
+ * @constructor
3452
+ */
3453
+ proto.game.GetTagSnapshotsByIdsRequest = function(opt_data) {
3454
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GetTagSnapshotsByIdsRequest.repeatedFields_, null);
3455
+ };
3456
+ goog.inherits(proto.game.GetTagSnapshotsByIdsRequest, jspb.Message);
3457
+ if (goog.DEBUG && !COMPILED) {
3458
+ /**
3459
+ * @public
3460
+ * @override
3461
+ */
3462
+ proto.game.GetTagSnapshotsByIdsRequest.displayName = 'proto.game.GetTagSnapshotsByIdsRequest';
3463
+ }
3464
+ /**
3465
+ * Generated by JsPbCodeGenerator.
3466
+ * @param {Array=} opt_data Optional initial data array, typically from a
3467
+ * server response, or constructed directly in Javascript. The array is used
3468
+ * in place and becomes part of the constructed object. It is not cloned.
3469
+ * If no data is provided, the constructed object will be empty, but still
3470
+ * valid.
3471
+ * @extends {jspb.Message}
3472
+ * @constructor
3473
+ */
3474
+ proto.game.TagSnapshotItem = function(opt_data) {
3475
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3476
+ };
3477
+ goog.inherits(proto.game.TagSnapshotItem, jspb.Message);
3478
+ if (goog.DEBUG && !COMPILED) {
3479
+ /**
3480
+ * @public
3481
+ * @override
3482
+ */
3483
+ proto.game.TagSnapshotItem.displayName = 'proto.game.TagSnapshotItem';
3484
+ }
3485
+ /**
3486
+ * Generated by JsPbCodeGenerator.
3487
+ * @param {Array=} opt_data Optional initial data array, typically from a
3488
+ * server response, or constructed directly in Javascript. The array is used
3489
+ * in place and becomes part of the constructed object. It is not cloned.
3490
+ * If no data is provided, the constructed object will be empty, but still
3491
+ * valid.
3492
+ * @extends {jspb.Message}
3493
+ * @constructor
3494
+ */
3495
+ proto.game.TagSnapshotItemsResponse = function(opt_data) {
3496
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.TagSnapshotItemsResponse.repeatedFields_, null);
3497
+ };
3498
+ goog.inherits(proto.game.TagSnapshotItemsResponse, jspb.Message);
3499
+ if (goog.DEBUG && !COMPILED) {
3500
+ /**
3501
+ * @public
3502
+ * @override
3503
+ */
3504
+ proto.game.TagSnapshotItemsResponse.displayName = 'proto.game.TagSnapshotItemsResponse';
3505
+ }
3308
3506
 
3309
3507
 
3310
3508
 
@@ -44025,6 +44223,2262 @@ proto.game.GeoRestrictionResponse.prototype.clearGeoList = function() {
44025
44223
  };
44026
44224
 
44027
44225
 
44226
+
44227
+ /**
44228
+ * List of repeated fields within this message type.
44229
+ * @private {!Array<number>}
44230
+ * @const
44231
+ */
44232
+ proto.game.GetGameSnapshotsByIdsRequest.repeatedFields_ = [1];
44233
+
44234
+
44235
+
44236
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44237
+ /**
44238
+ * Creates an object representation of this proto.
44239
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44240
+ * Optional fields that are not set will be set to undefined.
44241
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44242
+ * For the list of reserved names please see:
44243
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44244
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44245
+ * JSPB instance for transitional soy proto support:
44246
+ * http://goto/soy-param-migration
44247
+ * @return {!Object}
44248
+ */
44249
+ proto.game.GetGameSnapshotsByIdsRequest.prototype.toObject = function(opt_includeInstance) {
44250
+ return proto.game.GetGameSnapshotsByIdsRequest.toObject(opt_includeInstance, this);
44251
+ };
44252
+
44253
+
44254
+ /**
44255
+ * Static version of the {@see toObject} method.
44256
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44257
+ * the JSPB instance for transitional soy proto support:
44258
+ * http://goto/soy-param-migration
44259
+ * @param {!proto.game.GetGameSnapshotsByIdsRequest} msg The msg instance to transform.
44260
+ * @return {!Object}
44261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44262
+ */
44263
+ proto.game.GetGameSnapshotsByIdsRequest.toObject = function(includeInstance, msg) {
44264
+ var f, obj = {
44265
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
44266
+ };
44267
+
44268
+ if (includeInstance) {
44269
+ obj.$jspbMessageInstance = msg;
44270
+ }
44271
+ return obj;
44272
+ };
44273
+ }
44274
+
44275
+
44276
+ /**
44277
+ * Deserializes binary data (in protobuf wire format).
44278
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44279
+ * @return {!proto.game.GetGameSnapshotsByIdsRequest}
44280
+ */
44281
+ proto.game.GetGameSnapshotsByIdsRequest.deserializeBinary = function(bytes) {
44282
+ var reader = new jspb.BinaryReader(bytes);
44283
+ var msg = new proto.game.GetGameSnapshotsByIdsRequest;
44284
+ return proto.game.GetGameSnapshotsByIdsRequest.deserializeBinaryFromReader(msg, reader);
44285
+ };
44286
+
44287
+
44288
+ /**
44289
+ * Deserializes binary data (in protobuf wire format) from the
44290
+ * given reader into the given message object.
44291
+ * @param {!proto.game.GetGameSnapshotsByIdsRequest} msg The message object to deserialize into.
44292
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44293
+ * @return {!proto.game.GetGameSnapshotsByIdsRequest}
44294
+ */
44295
+ proto.game.GetGameSnapshotsByIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
44296
+ while (reader.nextField()) {
44297
+ if (reader.isEndGroup()) {
44298
+ break;
44299
+ }
44300
+ var field = reader.getFieldNumber();
44301
+ switch (field) {
44302
+ case 1:
44303
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
44304
+ for (var i = 0; i < values.length; i++) {
44305
+ msg.addIds(values[i]);
44306
+ }
44307
+ break;
44308
+ default:
44309
+ reader.skipField();
44310
+ break;
44311
+ }
44312
+ }
44313
+ return msg;
44314
+ };
44315
+
44316
+
44317
+ /**
44318
+ * Serializes the message to binary data (in protobuf wire format).
44319
+ * @return {!Uint8Array}
44320
+ */
44321
+ proto.game.GetGameSnapshotsByIdsRequest.prototype.serializeBinary = function() {
44322
+ var writer = new jspb.BinaryWriter();
44323
+ proto.game.GetGameSnapshotsByIdsRequest.serializeBinaryToWriter(this, writer);
44324
+ return writer.getResultBuffer();
44325
+ };
44326
+
44327
+
44328
+ /**
44329
+ * Serializes the given message to binary data (in protobuf wire
44330
+ * format), writing to the given BinaryWriter.
44331
+ * @param {!proto.game.GetGameSnapshotsByIdsRequest} message
44332
+ * @param {!jspb.BinaryWriter} writer
44333
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44334
+ */
44335
+ proto.game.GetGameSnapshotsByIdsRequest.serializeBinaryToWriter = function(message, writer) {
44336
+ var f = undefined;
44337
+ f = message.getIdsList();
44338
+ if (f.length > 0) {
44339
+ writer.writePackedInt32(
44340
+ 1,
44341
+ f
44342
+ );
44343
+ }
44344
+ };
44345
+
44346
+
44347
+ /**
44348
+ * repeated int32 ids = 1;
44349
+ * @return {!Array<number>}
44350
+ */
44351
+ proto.game.GetGameSnapshotsByIdsRequest.prototype.getIdsList = function() {
44352
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
44353
+ };
44354
+
44355
+
44356
+ /**
44357
+ * @param {!Array<number>} value
44358
+ * @return {!proto.game.GetGameSnapshotsByIdsRequest} returns this
44359
+ */
44360
+ proto.game.GetGameSnapshotsByIdsRequest.prototype.setIdsList = function(value) {
44361
+ return jspb.Message.setField(this, 1, value || []);
44362
+ };
44363
+
44364
+
44365
+ /**
44366
+ * @param {number} value
44367
+ * @param {number=} opt_index
44368
+ * @return {!proto.game.GetGameSnapshotsByIdsRequest} returns this
44369
+ */
44370
+ proto.game.GetGameSnapshotsByIdsRequest.prototype.addIds = function(value, opt_index) {
44371
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
44372
+ };
44373
+
44374
+
44375
+ /**
44376
+ * Clears the list making it empty but non-null.
44377
+ * @return {!proto.game.GetGameSnapshotsByIdsRequest} returns this
44378
+ */
44379
+ proto.game.GetGameSnapshotsByIdsRequest.prototype.clearIdsList = function() {
44380
+ return this.setIdsList([]);
44381
+ };
44382
+
44383
+
44384
+
44385
+
44386
+
44387
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44388
+ /**
44389
+ * Creates an object representation of this proto.
44390
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44391
+ * Optional fields that are not set will be set to undefined.
44392
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44393
+ * For the list of reserved names please see:
44394
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44395
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44396
+ * JSPB instance for transitional soy proto support:
44397
+ * http://goto/soy-param-migration
44398
+ * @return {!Object}
44399
+ */
44400
+ proto.game.GameSnapshotItem.prototype.toObject = function(opt_includeInstance) {
44401
+ return proto.game.GameSnapshotItem.toObject(opt_includeInstance, this);
44402
+ };
44403
+
44404
+
44405
+ /**
44406
+ * Static version of the {@see toObject} method.
44407
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44408
+ * the JSPB instance for transitional soy proto support:
44409
+ * http://goto/soy-param-migration
44410
+ * @param {!proto.game.GameSnapshotItem} msg The msg instance to transform.
44411
+ * @return {!Object}
44412
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44413
+ */
44414
+ proto.game.GameSnapshotItem.toObject = function(includeInstance, msg) {
44415
+ var f, obj = {
44416
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
44417
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
44418
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
44419
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 4, ""),
44420
+ providerTitle: jspb.Message.getFieldWithDefault(msg, 5, ""),
44421
+ image: jspb.Message.getFieldWithDefault(msg, 6, "")
44422
+ };
44423
+
44424
+ if (includeInstance) {
44425
+ obj.$jspbMessageInstance = msg;
44426
+ }
44427
+ return obj;
44428
+ };
44429
+ }
44430
+
44431
+
44432
+ /**
44433
+ * Deserializes binary data (in protobuf wire format).
44434
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44435
+ * @return {!proto.game.GameSnapshotItem}
44436
+ */
44437
+ proto.game.GameSnapshotItem.deserializeBinary = function(bytes) {
44438
+ var reader = new jspb.BinaryReader(bytes);
44439
+ var msg = new proto.game.GameSnapshotItem;
44440
+ return proto.game.GameSnapshotItem.deserializeBinaryFromReader(msg, reader);
44441
+ };
44442
+
44443
+
44444
+ /**
44445
+ * Deserializes binary data (in protobuf wire format) from the
44446
+ * given reader into the given message object.
44447
+ * @param {!proto.game.GameSnapshotItem} msg The message object to deserialize into.
44448
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44449
+ * @return {!proto.game.GameSnapshotItem}
44450
+ */
44451
+ proto.game.GameSnapshotItem.deserializeBinaryFromReader = function(msg, reader) {
44452
+ while (reader.nextField()) {
44453
+ if (reader.isEndGroup()) {
44454
+ break;
44455
+ }
44456
+ var field = reader.getFieldNumber();
44457
+ switch (field) {
44458
+ case 1:
44459
+ var value = /** @type {number} */ (reader.readInt32());
44460
+ msg.setId(value);
44461
+ break;
44462
+ case 2:
44463
+ var value = /** @type {string} */ (reader.readString());
44464
+ msg.setTitle(value);
44465
+ break;
44466
+ case 3:
44467
+ var value = /** @type {string} */ (reader.readString());
44468
+ msg.setSlug(value);
44469
+ break;
44470
+ case 4:
44471
+ var value = /** @type {string} */ (reader.readString());
44472
+ msg.setProviderSlug(value);
44473
+ break;
44474
+ case 5:
44475
+ var value = /** @type {string} */ (reader.readString());
44476
+ msg.setProviderTitle(value);
44477
+ break;
44478
+ case 6:
44479
+ var value = /** @type {string} */ (reader.readString());
44480
+ msg.setImage(value);
44481
+ break;
44482
+ default:
44483
+ reader.skipField();
44484
+ break;
44485
+ }
44486
+ }
44487
+ return msg;
44488
+ };
44489
+
44490
+
44491
+ /**
44492
+ * Serializes the message to binary data (in protobuf wire format).
44493
+ * @return {!Uint8Array}
44494
+ */
44495
+ proto.game.GameSnapshotItem.prototype.serializeBinary = function() {
44496
+ var writer = new jspb.BinaryWriter();
44497
+ proto.game.GameSnapshotItem.serializeBinaryToWriter(this, writer);
44498
+ return writer.getResultBuffer();
44499
+ };
44500
+
44501
+
44502
+ /**
44503
+ * Serializes the given message to binary data (in protobuf wire
44504
+ * format), writing to the given BinaryWriter.
44505
+ * @param {!proto.game.GameSnapshotItem} message
44506
+ * @param {!jspb.BinaryWriter} writer
44507
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44508
+ */
44509
+ proto.game.GameSnapshotItem.serializeBinaryToWriter = function(message, writer) {
44510
+ var f = undefined;
44511
+ f = message.getId();
44512
+ if (f !== 0) {
44513
+ writer.writeInt32(
44514
+ 1,
44515
+ f
44516
+ );
44517
+ }
44518
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
44519
+ if (f != null) {
44520
+ writer.writeString(
44521
+ 2,
44522
+ f
44523
+ );
44524
+ }
44525
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
44526
+ if (f != null) {
44527
+ writer.writeString(
44528
+ 3,
44529
+ f
44530
+ );
44531
+ }
44532
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
44533
+ if (f != null) {
44534
+ writer.writeString(
44535
+ 4,
44536
+ f
44537
+ );
44538
+ }
44539
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
44540
+ if (f != null) {
44541
+ writer.writeString(
44542
+ 5,
44543
+ f
44544
+ );
44545
+ }
44546
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
44547
+ if (f != null) {
44548
+ writer.writeString(
44549
+ 6,
44550
+ f
44551
+ );
44552
+ }
44553
+ };
44554
+
44555
+
44556
+ /**
44557
+ * optional int32 id = 1;
44558
+ * @return {number}
44559
+ */
44560
+ proto.game.GameSnapshotItem.prototype.getId = function() {
44561
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
44562
+ };
44563
+
44564
+
44565
+ /**
44566
+ * @param {number} value
44567
+ * @return {!proto.game.GameSnapshotItem} returns this
44568
+ */
44569
+ proto.game.GameSnapshotItem.prototype.setId = function(value) {
44570
+ return jspb.Message.setProto3IntField(this, 1, value);
44571
+ };
44572
+
44573
+
44574
+ /**
44575
+ * optional string title = 2;
44576
+ * @return {string}
44577
+ */
44578
+ proto.game.GameSnapshotItem.prototype.getTitle = function() {
44579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
44580
+ };
44581
+
44582
+
44583
+ /**
44584
+ * @param {string} value
44585
+ * @return {!proto.game.GameSnapshotItem} returns this
44586
+ */
44587
+ proto.game.GameSnapshotItem.prototype.setTitle = function(value) {
44588
+ return jspb.Message.setField(this, 2, value);
44589
+ };
44590
+
44591
+
44592
+ /**
44593
+ * Clears the field making it undefined.
44594
+ * @return {!proto.game.GameSnapshotItem} returns this
44595
+ */
44596
+ proto.game.GameSnapshotItem.prototype.clearTitle = function() {
44597
+ return jspb.Message.setField(this, 2, undefined);
44598
+ };
44599
+
44600
+
44601
+ /**
44602
+ * Returns whether this field is set.
44603
+ * @return {boolean}
44604
+ */
44605
+ proto.game.GameSnapshotItem.prototype.hasTitle = function() {
44606
+ return jspb.Message.getField(this, 2) != null;
44607
+ };
44608
+
44609
+
44610
+ /**
44611
+ * optional string slug = 3;
44612
+ * @return {string}
44613
+ */
44614
+ proto.game.GameSnapshotItem.prototype.getSlug = function() {
44615
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
44616
+ };
44617
+
44618
+
44619
+ /**
44620
+ * @param {string} value
44621
+ * @return {!proto.game.GameSnapshotItem} returns this
44622
+ */
44623
+ proto.game.GameSnapshotItem.prototype.setSlug = function(value) {
44624
+ return jspb.Message.setField(this, 3, value);
44625
+ };
44626
+
44627
+
44628
+ /**
44629
+ * Clears the field making it undefined.
44630
+ * @return {!proto.game.GameSnapshotItem} returns this
44631
+ */
44632
+ proto.game.GameSnapshotItem.prototype.clearSlug = function() {
44633
+ return jspb.Message.setField(this, 3, undefined);
44634
+ };
44635
+
44636
+
44637
+ /**
44638
+ * Returns whether this field is set.
44639
+ * @return {boolean}
44640
+ */
44641
+ proto.game.GameSnapshotItem.prototype.hasSlug = function() {
44642
+ return jspb.Message.getField(this, 3) != null;
44643
+ };
44644
+
44645
+
44646
+ /**
44647
+ * optional string provider_slug = 4;
44648
+ * @return {string}
44649
+ */
44650
+ proto.game.GameSnapshotItem.prototype.getProviderSlug = function() {
44651
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
44652
+ };
44653
+
44654
+
44655
+ /**
44656
+ * @param {string} value
44657
+ * @return {!proto.game.GameSnapshotItem} returns this
44658
+ */
44659
+ proto.game.GameSnapshotItem.prototype.setProviderSlug = function(value) {
44660
+ return jspb.Message.setField(this, 4, value);
44661
+ };
44662
+
44663
+
44664
+ /**
44665
+ * Clears the field making it undefined.
44666
+ * @return {!proto.game.GameSnapshotItem} returns this
44667
+ */
44668
+ proto.game.GameSnapshotItem.prototype.clearProviderSlug = function() {
44669
+ return jspb.Message.setField(this, 4, undefined);
44670
+ };
44671
+
44672
+
44673
+ /**
44674
+ * Returns whether this field is set.
44675
+ * @return {boolean}
44676
+ */
44677
+ proto.game.GameSnapshotItem.prototype.hasProviderSlug = function() {
44678
+ return jspb.Message.getField(this, 4) != null;
44679
+ };
44680
+
44681
+
44682
+ /**
44683
+ * optional string provider_title = 5;
44684
+ * @return {string}
44685
+ */
44686
+ proto.game.GameSnapshotItem.prototype.getProviderTitle = function() {
44687
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
44688
+ };
44689
+
44690
+
44691
+ /**
44692
+ * @param {string} value
44693
+ * @return {!proto.game.GameSnapshotItem} returns this
44694
+ */
44695
+ proto.game.GameSnapshotItem.prototype.setProviderTitle = function(value) {
44696
+ return jspb.Message.setField(this, 5, value);
44697
+ };
44698
+
44699
+
44700
+ /**
44701
+ * Clears the field making it undefined.
44702
+ * @return {!proto.game.GameSnapshotItem} returns this
44703
+ */
44704
+ proto.game.GameSnapshotItem.prototype.clearProviderTitle = function() {
44705
+ return jspb.Message.setField(this, 5, undefined);
44706
+ };
44707
+
44708
+
44709
+ /**
44710
+ * Returns whether this field is set.
44711
+ * @return {boolean}
44712
+ */
44713
+ proto.game.GameSnapshotItem.prototype.hasProviderTitle = function() {
44714
+ return jspb.Message.getField(this, 5) != null;
44715
+ };
44716
+
44717
+
44718
+ /**
44719
+ * optional string image = 6;
44720
+ * @return {string}
44721
+ */
44722
+ proto.game.GameSnapshotItem.prototype.getImage = function() {
44723
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
44724
+ };
44725
+
44726
+
44727
+ /**
44728
+ * @param {string} value
44729
+ * @return {!proto.game.GameSnapshotItem} returns this
44730
+ */
44731
+ proto.game.GameSnapshotItem.prototype.setImage = function(value) {
44732
+ return jspb.Message.setField(this, 6, value);
44733
+ };
44734
+
44735
+
44736
+ /**
44737
+ * Clears the field making it undefined.
44738
+ * @return {!proto.game.GameSnapshotItem} returns this
44739
+ */
44740
+ proto.game.GameSnapshotItem.prototype.clearImage = function() {
44741
+ return jspb.Message.setField(this, 6, undefined);
44742
+ };
44743
+
44744
+
44745
+ /**
44746
+ * Returns whether this field is set.
44747
+ * @return {boolean}
44748
+ */
44749
+ proto.game.GameSnapshotItem.prototype.hasImage = function() {
44750
+ return jspb.Message.getField(this, 6) != null;
44751
+ };
44752
+
44753
+
44754
+
44755
+ /**
44756
+ * List of repeated fields within this message type.
44757
+ * @private {!Array<number>}
44758
+ * @const
44759
+ */
44760
+ proto.game.GameSnapshotItemsResponse.repeatedFields_ = [1];
44761
+
44762
+
44763
+
44764
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44765
+ /**
44766
+ * Creates an object representation of this proto.
44767
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44768
+ * Optional fields that are not set will be set to undefined.
44769
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44770
+ * For the list of reserved names please see:
44771
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44772
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44773
+ * JSPB instance for transitional soy proto support:
44774
+ * http://goto/soy-param-migration
44775
+ * @return {!Object}
44776
+ */
44777
+ proto.game.GameSnapshotItemsResponse.prototype.toObject = function(opt_includeInstance) {
44778
+ return proto.game.GameSnapshotItemsResponse.toObject(opt_includeInstance, this);
44779
+ };
44780
+
44781
+
44782
+ /**
44783
+ * Static version of the {@see toObject} method.
44784
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44785
+ * the JSPB instance for transitional soy proto support:
44786
+ * http://goto/soy-param-migration
44787
+ * @param {!proto.game.GameSnapshotItemsResponse} msg The msg instance to transform.
44788
+ * @return {!Object}
44789
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44790
+ */
44791
+ proto.game.GameSnapshotItemsResponse.toObject = function(includeInstance, msg) {
44792
+ var f, obj = {
44793
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
44794
+ proto.game.GameSnapshotItem.toObject, includeInstance)
44795
+ };
44796
+
44797
+ if (includeInstance) {
44798
+ obj.$jspbMessageInstance = msg;
44799
+ }
44800
+ return obj;
44801
+ };
44802
+ }
44803
+
44804
+
44805
+ /**
44806
+ * Deserializes binary data (in protobuf wire format).
44807
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44808
+ * @return {!proto.game.GameSnapshotItemsResponse}
44809
+ */
44810
+ proto.game.GameSnapshotItemsResponse.deserializeBinary = function(bytes) {
44811
+ var reader = new jspb.BinaryReader(bytes);
44812
+ var msg = new proto.game.GameSnapshotItemsResponse;
44813
+ return proto.game.GameSnapshotItemsResponse.deserializeBinaryFromReader(msg, reader);
44814
+ };
44815
+
44816
+
44817
+ /**
44818
+ * Deserializes binary data (in protobuf wire format) from the
44819
+ * given reader into the given message object.
44820
+ * @param {!proto.game.GameSnapshotItemsResponse} msg The message object to deserialize into.
44821
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44822
+ * @return {!proto.game.GameSnapshotItemsResponse}
44823
+ */
44824
+ proto.game.GameSnapshotItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
44825
+ while (reader.nextField()) {
44826
+ if (reader.isEndGroup()) {
44827
+ break;
44828
+ }
44829
+ var field = reader.getFieldNumber();
44830
+ switch (field) {
44831
+ case 1:
44832
+ var value = new proto.game.GameSnapshotItem;
44833
+ reader.readMessage(value,proto.game.GameSnapshotItem.deserializeBinaryFromReader);
44834
+ msg.addItems(value);
44835
+ break;
44836
+ default:
44837
+ reader.skipField();
44838
+ break;
44839
+ }
44840
+ }
44841
+ return msg;
44842
+ };
44843
+
44844
+
44845
+ /**
44846
+ * Serializes the message to binary data (in protobuf wire format).
44847
+ * @return {!Uint8Array}
44848
+ */
44849
+ proto.game.GameSnapshotItemsResponse.prototype.serializeBinary = function() {
44850
+ var writer = new jspb.BinaryWriter();
44851
+ proto.game.GameSnapshotItemsResponse.serializeBinaryToWriter(this, writer);
44852
+ return writer.getResultBuffer();
44853
+ };
44854
+
44855
+
44856
+ /**
44857
+ * Serializes the given message to binary data (in protobuf wire
44858
+ * format), writing to the given BinaryWriter.
44859
+ * @param {!proto.game.GameSnapshotItemsResponse} message
44860
+ * @param {!jspb.BinaryWriter} writer
44861
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44862
+ */
44863
+ proto.game.GameSnapshotItemsResponse.serializeBinaryToWriter = function(message, writer) {
44864
+ var f = undefined;
44865
+ f = message.getItemsList();
44866
+ if (f.length > 0) {
44867
+ writer.writeRepeatedMessage(
44868
+ 1,
44869
+ f,
44870
+ proto.game.GameSnapshotItem.serializeBinaryToWriter
44871
+ );
44872
+ }
44873
+ };
44874
+
44875
+
44876
+ /**
44877
+ * repeated GameSnapshotItem items = 1;
44878
+ * @return {!Array<!proto.game.GameSnapshotItem>}
44879
+ */
44880
+ proto.game.GameSnapshotItemsResponse.prototype.getItemsList = function() {
44881
+ return /** @type{!Array<!proto.game.GameSnapshotItem>} */ (
44882
+ jspb.Message.getRepeatedWrapperField(this, proto.game.GameSnapshotItem, 1));
44883
+ };
44884
+
44885
+
44886
+ /**
44887
+ * @param {!Array<!proto.game.GameSnapshotItem>} value
44888
+ * @return {!proto.game.GameSnapshotItemsResponse} returns this
44889
+ */
44890
+ proto.game.GameSnapshotItemsResponse.prototype.setItemsList = function(value) {
44891
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
44892
+ };
44893
+
44894
+
44895
+ /**
44896
+ * @param {!proto.game.GameSnapshotItem=} opt_value
44897
+ * @param {number=} opt_index
44898
+ * @return {!proto.game.GameSnapshotItem}
44899
+ */
44900
+ proto.game.GameSnapshotItemsResponse.prototype.addItems = function(opt_value, opt_index) {
44901
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.GameSnapshotItem, opt_index);
44902
+ };
44903
+
44904
+
44905
+ /**
44906
+ * Clears the list making it empty but non-null.
44907
+ * @return {!proto.game.GameSnapshotItemsResponse} returns this
44908
+ */
44909
+ proto.game.GameSnapshotItemsResponse.prototype.clearItemsList = function() {
44910
+ return this.setItemsList([]);
44911
+ };
44912
+
44913
+
44914
+
44915
+ /**
44916
+ * List of repeated fields within this message type.
44917
+ * @private {!Array<number>}
44918
+ * @const
44919
+ */
44920
+ proto.game.GetCollectionSnapshotsByIdsRequest.repeatedFields_ = [1];
44921
+
44922
+
44923
+
44924
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44925
+ /**
44926
+ * Creates an object representation of this proto.
44927
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44928
+ * Optional fields that are not set will be set to undefined.
44929
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44930
+ * For the list of reserved names please see:
44931
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44932
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44933
+ * JSPB instance for transitional soy proto support:
44934
+ * http://goto/soy-param-migration
44935
+ * @return {!Object}
44936
+ */
44937
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.toObject = function(opt_includeInstance) {
44938
+ return proto.game.GetCollectionSnapshotsByIdsRequest.toObject(opt_includeInstance, this);
44939
+ };
44940
+
44941
+
44942
+ /**
44943
+ * Static version of the {@see toObject} method.
44944
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44945
+ * the JSPB instance for transitional soy proto support:
44946
+ * http://goto/soy-param-migration
44947
+ * @param {!proto.game.GetCollectionSnapshotsByIdsRequest} msg The msg instance to transform.
44948
+ * @return {!Object}
44949
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44950
+ */
44951
+ proto.game.GetCollectionSnapshotsByIdsRequest.toObject = function(includeInstance, msg) {
44952
+ var f, obj = {
44953
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
44954
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
44955
+ };
44956
+
44957
+ if (includeInstance) {
44958
+ obj.$jspbMessageInstance = msg;
44959
+ }
44960
+ return obj;
44961
+ };
44962
+ }
44963
+
44964
+
44965
+ /**
44966
+ * Deserializes binary data (in protobuf wire format).
44967
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44968
+ * @return {!proto.game.GetCollectionSnapshotsByIdsRequest}
44969
+ */
44970
+ proto.game.GetCollectionSnapshotsByIdsRequest.deserializeBinary = function(bytes) {
44971
+ var reader = new jspb.BinaryReader(bytes);
44972
+ var msg = new proto.game.GetCollectionSnapshotsByIdsRequest;
44973
+ return proto.game.GetCollectionSnapshotsByIdsRequest.deserializeBinaryFromReader(msg, reader);
44974
+ };
44975
+
44976
+
44977
+ /**
44978
+ * Deserializes binary data (in protobuf wire format) from the
44979
+ * given reader into the given message object.
44980
+ * @param {!proto.game.GetCollectionSnapshotsByIdsRequest} msg The message object to deserialize into.
44981
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44982
+ * @return {!proto.game.GetCollectionSnapshotsByIdsRequest}
44983
+ */
44984
+ proto.game.GetCollectionSnapshotsByIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
44985
+ while (reader.nextField()) {
44986
+ if (reader.isEndGroup()) {
44987
+ break;
44988
+ }
44989
+ var field = reader.getFieldNumber();
44990
+ switch (field) {
44991
+ case 1:
44992
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
44993
+ for (var i = 0; i < values.length; i++) {
44994
+ msg.addIds(values[i]);
44995
+ }
44996
+ break;
44997
+ case 2:
44998
+ var value = /** @type {string} */ (reader.readString());
44999
+ msg.setLocale(value);
45000
+ break;
45001
+ default:
45002
+ reader.skipField();
45003
+ break;
45004
+ }
45005
+ }
45006
+ return msg;
45007
+ };
45008
+
45009
+
45010
+ /**
45011
+ * Serializes the message to binary data (in protobuf wire format).
45012
+ * @return {!Uint8Array}
45013
+ */
45014
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.serializeBinary = function() {
45015
+ var writer = new jspb.BinaryWriter();
45016
+ proto.game.GetCollectionSnapshotsByIdsRequest.serializeBinaryToWriter(this, writer);
45017
+ return writer.getResultBuffer();
45018
+ };
45019
+
45020
+
45021
+ /**
45022
+ * Serializes the given message to binary data (in protobuf wire
45023
+ * format), writing to the given BinaryWriter.
45024
+ * @param {!proto.game.GetCollectionSnapshotsByIdsRequest} message
45025
+ * @param {!jspb.BinaryWriter} writer
45026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45027
+ */
45028
+ proto.game.GetCollectionSnapshotsByIdsRequest.serializeBinaryToWriter = function(message, writer) {
45029
+ var f = undefined;
45030
+ f = message.getIdsList();
45031
+ if (f.length > 0) {
45032
+ writer.writePackedInt32(
45033
+ 1,
45034
+ f
45035
+ );
45036
+ }
45037
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
45038
+ if (f != null) {
45039
+ writer.writeString(
45040
+ 2,
45041
+ f
45042
+ );
45043
+ }
45044
+ };
45045
+
45046
+
45047
+ /**
45048
+ * repeated int32 ids = 1;
45049
+ * @return {!Array<number>}
45050
+ */
45051
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.getIdsList = function() {
45052
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
45053
+ };
45054
+
45055
+
45056
+ /**
45057
+ * @param {!Array<number>} value
45058
+ * @return {!proto.game.GetCollectionSnapshotsByIdsRequest} returns this
45059
+ */
45060
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.setIdsList = function(value) {
45061
+ return jspb.Message.setField(this, 1, value || []);
45062
+ };
45063
+
45064
+
45065
+ /**
45066
+ * @param {number} value
45067
+ * @param {number=} opt_index
45068
+ * @return {!proto.game.GetCollectionSnapshotsByIdsRequest} returns this
45069
+ */
45070
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.addIds = function(value, opt_index) {
45071
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
45072
+ };
45073
+
45074
+
45075
+ /**
45076
+ * Clears the list making it empty but non-null.
45077
+ * @return {!proto.game.GetCollectionSnapshotsByIdsRequest} returns this
45078
+ */
45079
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.clearIdsList = function() {
45080
+ return this.setIdsList([]);
45081
+ };
45082
+
45083
+
45084
+ /**
45085
+ * optional string locale = 2;
45086
+ * @return {string}
45087
+ */
45088
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.getLocale = function() {
45089
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
45090
+ };
45091
+
45092
+
45093
+ /**
45094
+ * @param {string} value
45095
+ * @return {!proto.game.GetCollectionSnapshotsByIdsRequest} returns this
45096
+ */
45097
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.setLocale = function(value) {
45098
+ return jspb.Message.setField(this, 2, value);
45099
+ };
45100
+
45101
+
45102
+ /**
45103
+ * Clears the field making it undefined.
45104
+ * @return {!proto.game.GetCollectionSnapshotsByIdsRequest} returns this
45105
+ */
45106
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.clearLocale = function() {
45107
+ return jspb.Message.setField(this, 2, undefined);
45108
+ };
45109
+
45110
+
45111
+ /**
45112
+ * Returns whether this field is set.
45113
+ * @return {boolean}
45114
+ */
45115
+ proto.game.GetCollectionSnapshotsByIdsRequest.prototype.hasLocale = function() {
45116
+ return jspb.Message.getField(this, 2) != null;
45117
+ };
45118
+
45119
+
45120
+
45121
+
45122
+
45123
+ if (jspb.Message.GENERATE_TO_OBJECT) {
45124
+ /**
45125
+ * Creates an object representation of this proto.
45126
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
45127
+ * Optional fields that are not set will be set to undefined.
45128
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
45129
+ * For the list of reserved names please see:
45130
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
45131
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
45132
+ * JSPB instance for transitional soy proto support:
45133
+ * http://goto/soy-param-migration
45134
+ * @return {!Object}
45135
+ */
45136
+ proto.game.CollectionSnapshotItem.prototype.toObject = function(opt_includeInstance) {
45137
+ return proto.game.CollectionSnapshotItem.toObject(opt_includeInstance, this);
45138
+ };
45139
+
45140
+
45141
+ /**
45142
+ * Static version of the {@see toObject} method.
45143
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
45144
+ * the JSPB instance for transitional soy proto support:
45145
+ * http://goto/soy-param-migration
45146
+ * @param {!proto.game.CollectionSnapshotItem} msg The msg instance to transform.
45147
+ * @return {!Object}
45148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45149
+ */
45150
+ proto.game.CollectionSnapshotItem.toObject = function(includeInstance, msg) {
45151
+ var f, obj = {
45152
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
45153
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
45154
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
45155
+ image: jspb.Message.getFieldWithDefault(msg, 4, ""),
45156
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 5, ""),
45157
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 6, 0),
45158
+ isActive: jspb.Message.getFieldWithDefault(msg, 7, 0)
45159
+ };
45160
+
45161
+ if (includeInstance) {
45162
+ obj.$jspbMessageInstance = msg;
45163
+ }
45164
+ return obj;
45165
+ };
45166
+ }
45167
+
45168
+
45169
+ /**
45170
+ * Deserializes binary data (in protobuf wire format).
45171
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
45172
+ * @return {!proto.game.CollectionSnapshotItem}
45173
+ */
45174
+ proto.game.CollectionSnapshotItem.deserializeBinary = function(bytes) {
45175
+ var reader = new jspb.BinaryReader(bytes);
45176
+ var msg = new proto.game.CollectionSnapshotItem;
45177
+ return proto.game.CollectionSnapshotItem.deserializeBinaryFromReader(msg, reader);
45178
+ };
45179
+
45180
+
45181
+ /**
45182
+ * Deserializes binary data (in protobuf wire format) from the
45183
+ * given reader into the given message object.
45184
+ * @param {!proto.game.CollectionSnapshotItem} msg The message object to deserialize into.
45185
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
45186
+ * @return {!proto.game.CollectionSnapshotItem}
45187
+ */
45188
+ proto.game.CollectionSnapshotItem.deserializeBinaryFromReader = function(msg, reader) {
45189
+ while (reader.nextField()) {
45190
+ if (reader.isEndGroup()) {
45191
+ break;
45192
+ }
45193
+ var field = reader.getFieldNumber();
45194
+ switch (field) {
45195
+ case 1:
45196
+ var value = /** @type {number} */ (reader.readInt32());
45197
+ msg.setId(value);
45198
+ break;
45199
+ case 2:
45200
+ var value = /** @type {string} */ (reader.readString());
45201
+ msg.setTitle(value);
45202
+ break;
45203
+ case 3:
45204
+ var value = /** @type {string} */ (reader.readString());
45205
+ msg.setSlug(value);
45206
+ break;
45207
+ case 4:
45208
+ var value = /** @type {string} */ (reader.readString());
45209
+ msg.setImage(value);
45210
+ break;
45211
+ case 5:
45212
+ var value = /** @type {string} */ (reader.readString());
45213
+ msg.setImageCdn(value);
45214
+ break;
45215
+ case 6:
45216
+ var value = /** @type {number} */ (reader.readInt32());
45217
+ msg.setCountOfGames(value);
45218
+ break;
45219
+ case 7:
45220
+ var value = /** @type {number} */ (reader.readInt32());
45221
+ msg.setIsActive(value);
45222
+ break;
45223
+ default:
45224
+ reader.skipField();
45225
+ break;
45226
+ }
45227
+ }
45228
+ return msg;
45229
+ };
45230
+
45231
+
45232
+ /**
45233
+ * Serializes the message to binary data (in protobuf wire format).
45234
+ * @return {!Uint8Array}
45235
+ */
45236
+ proto.game.CollectionSnapshotItem.prototype.serializeBinary = function() {
45237
+ var writer = new jspb.BinaryWriter();
45238
+ proto.game.CollectionSnapshotItem.serializeBinaryToWriter(this, writer);
45239
+ return writer.getResultBuffer();
45240
+ };
45241
+
45242
+
45243
+ /**
45244
+ * Serializes the given message to binary data (in protobuf wire
45245
+ * format), writing to the given BinaryWriter.
45246
+ * @param {!proto.game.CollectionSnapshotItem} message
45247
+ * @param {!jspb.BinaryWriter} writer
45248
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45249
+ */
45250
+ proto.game.CollectionSnapshotItem.serializeBinaryToWriter = function(message, writer) {
45251
+ var f = undefined;
45252
+ f = message.getId();
45253
+ if (f !== 0) {
45254
+ writer.writeInt32(
45255
+ 1,
45256
+ f
45257
+ );
45258
+ }
45259
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
45260
+ if (f != null) {
45261
+ writer.writeString(
45262
+ 2,
45263
+ f
45264
+ );
45265
+ }
45266
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
45267
+ if (f != null) {
45268
+ writer.writeString(
45269
+ 3,
45270
+ f
45271
+ );
45272
+ }
45273
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
45274
+ if (f != null) {
45275
+ writer.writeString(
45276
+ 4,
45277
+ f
45278
+ );
45279
+ }
45280
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
45281
+ if (f != null) {
45282
+ writer.writeString(
45283
+ 5,
45284
+ f
45285
+ );
45286
+ }
45287
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
45288
+ if (f != null) {
45289
+ writer.writeInt32(
45290
+ 6,
45291
+ f
45292
+ );
45293
+ }
45294
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
45295
+ if (f != null) {
45296
+ writer.writeInt32(
45297
+ 7,
45298
+ f
45299
+ );
45300
+ }
45301
+ };
45302
+
45303
+
45304
+ /**
45305
+ * optional int32 id = 1;
45306
+ * @return {number}
45307
+ */
45308
+ proto.game.CollectionSnapshotItem.prototype.getId = function() {
45309
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
45310
+ };
45311
+
45312
+
45313
+ /**
45314
+ * @param {number} value
45315
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45316
+ */
45317
+ proto.game.CollectionSnapshotItem.prototype.setId = function(value) {
45318
+ return jspb.Message.setProto3IntField(this, 1, value);
45319
+ };
45320
+
45321
+
45322
+ /**
45323
+ * optional string title = 2;
45324
+ * @return {string}
45325
+ */
45326
+ proto.game.CollectionSnapshotItem.prototype.getTitle = function() {
45327
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
45328
+ };
45329
+
45330
+
45331
+ /**
45332
+ * @param {string} value
45333
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45334
+ */
45335
+ proto.game.CollectionSnapshotItem.prototype.setTitle = function(value) {
45336
+ return jspb.Message.setField(this, 2, value);
45337
+ };
45338
+
45339
+
45340
+ /**
45341
+ * Clears the field making it undefined.
45342
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45343
+ */
45344
+ proto.game.CollectionSnapshotItem.prototype.clearTitle = function() {
45345
+ return jspb.Message.setField(this, 2, undefined);
45346
+ };
45347
+
45348
+
45349
+ /**
45350
+ * Returns whether this field is set.
45351
+ * @return {boolean}
45352
+ */
45353
+ proto.game.CollectionSnapshotItem.prototype.hasTitle = function() {
45354
+ return jspb.Message.getField(this, 2) != null;
45355
+ };
45356
+
45357
+
45358
+ /**
45359
+ * optional string slug = 3;
45360
+ * @return {string}
45361
+ */
45362
+ proto.game.CollectionSnapshotItem.prototype.getSlug = function() {
45363
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
45364
+ };
45365
+
45366
+
45367
+ /**
45368
+ * @param {string} value
45369
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45370
+ */
45371
+ proto.game.CollectionSnapshotItem.prototype.setSlug = function(value) {
45372
+ return jspb.Message.setField(this, 3, value);
45373
+ };
45374
+
45375
+
45376
+ /**
45377
+ * Clears the field making it undefined.
45378
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45379
+ */
45380
+ proto.game.CollectionSnapshotItem.prototype.clearSlug = function() {
45381
+ return jspb.Message.setField(this, 3, undefined);
45382
+ };
45383
+
45384
+
45385
+ /**
45386
+ * Returns whether this field is set.
45387
+ * @return {boolean}
45388
+ */
45389
+ proto.game.CollectionSnapshotItem.prototype.hasSlug = function() {
45390
+ return jspb.Message.getField(this, 3) != null;
45391
+ };
45392
+
45393
+
45394
+ /**
45395
+ * optional string image = 4;
45396
+ * @return {string}
45397
+ */
45398
+ proto.game.CollectionSnapshotItem.prototype.getImage = function() {
45399
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
45400
+ };
45401
+
45402
+
45403
+ /**
45404
+ * @param {string} value
45405
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45406
+ */
45407
+ proto.game.CollectionSnapshotItem.prototype.setImage = function(value) {
45408
+ return jspb.Message.setField(this, 4, value);
45409
+ };
45410
+
45411
+
45412
+ /**
45413
+ * Clears the field making it undefined.
45414
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45415
+ */
45416
+ proto.game.CollectionSnapshotItem.prototype.clearImage = function() {
45417
+ return jspb.Message.setField(this, 4, undefined);
45418
+ };
45419
+
45420
+
45421
+ /**
45422
+ * Returns whether this field is set.
45423
+ * @return {boolean}
45424
+ */
45425
+ proto.game.CollectionSnapshotItem.prototype.hasImage = function() {
45426
+ return jspb.Message.getField(this, 4) != null;
45427
+ };
45428
+
45429
+
45430
+ /**
45431
+ * optional string image_cdn = 5;
45432
+ * @return {string}
45433
+ */
45434
+ proto.game.CollectionSnapshotItem.prototype.getImageCdn = function() {
45435
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
45436
+ };
45437
+
45438
+
45439
+ /**
45440
+ * @param {string} value
45441
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45442
+ */
45443
+ proto.game.CollectionSnapshotItem.prototype.setImageCdn = function(value) {
45444
+ return jspb.Message.setField(this, 5, value);
45445
+ };
45446
+
45447
+
45448
+ /**
45449
+ * Clears the field making it undefined.
45450
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45451
+ */
45452
+ proto.game.CollectionSnapshotItem.prototype.clearImageCdn = function() {
45453
+ return jspb.Message.setField(this, 5, undefined);
45454
+ };
45455
+
45456
+
45457
+ /**
45458
+ * Returns whether this field is set.
45459
+ * @return {boolean}
45460
+ */
45461
+ proto.game.CollectionSnapshotItem.prototype.hasImageCdn = function() {
45462
+ return jspb.Message.getField(this, 5) != null;
45463
+ };
45464
+
45465
+
45466
+ /**
45467
+ * optional int32 count_of_games = 6;
45468
+ * @return {number}
45469
+ */
45470
+ proto.game.CollectionSnapshotItem.prototype.getCountOfGames = function() {
45471
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
45472
+ };
45473
+
45474
+
45475
+ /**
45476
+ * @param {number} value
45477
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45478
+ */
45479
+ proto.game.CollectionSnapshotItem.prototype.setCountOfGames = function(value) {
45480
+ return jspb.Message.setField(this, 6, value);
45481
+ };
45482
+
45483
+
45484
+ /**
45485
+ * Clears the field making it undefined.
45486
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45487
+ */
45488
+ proto.game.CollectionSnapshotItem.prototype.clearCountOfGames = function() {
45489
+ return jspb.Message.setField(this, 6, undefined);
45490
+ };
45491
+
45492
+
45493
+ /**
45494
+ * Returns whether this field is set.
45495
+ * @return {boolean}
45496
+ */
45497
+ proto.game.CollectionSnapshotItem.prototype.hasCountOfGames = function() {
45498
+ return jspb.Message.getField(this, 6) != null;
45499
+ };
45500
+
45501
+
45502
+ /**
45503
+ * optional int32 is_active = 7;
45504
+ * @return {number}
45505
+ */
45506
+ proto.game.CollectionSnapshotItem.prototype.getIsActive = function() {
45507
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
45508
+ };
45509
+
45510
+
45511
+ /**
45512
+ * @param {number} value
45513
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45514
+ */
45515
+ proto.game.CollectionSnapshotItem.prototype.setIsActive = function(value) {
45516
+ return jspb.Message.setField(this, 7, value);
45517
+ };
45518
+
45519
+
45520
+ /**
45521
+ * Clears the field making it undefined.
45522
+ * @return {!proto.game.CollectionSnapshotItem} returns this
45523
+ */
45524
+ proto.game.CollectionSnapshotItem.prototype.clearIsActive = function() {
45525
+ return jspb.Message.setField(this, 7, undefined);
45526
+ };
45527
+
45528
+
45529
+ /**
45530
+ * Returns whether this field is set.
45531
+ * @return {boolean}
45532
+ */
45533
+ proto.game.CollectionSnapshotItem.prototype.hasIsActive = function() {
45534
+ return jspb.Message.getField(this, 7) != null;
45535
+ };
45536
+
45537
+
45538
+
45539
+ /**
45540
+ * List of repeated fields within this message type.
45541
+ * @private {!Array<number>}
45542
+ * @const
45543
+ */
45544
+ proto.game.CollectionSnapshotItemsResponse.repeatedFields_ = [1];
45545
+
45546
+
45547
+
45548
+ if (jspb.Message.GENERATE_TO_OBJECT) {
45549
+ /**
45550
+ * Creates an object representation of this proto.
45551
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
45552
+ * Optional fields that are not set will be set to undefined.
45553
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
45554
+ * For the list of reserved names please see:
45555
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
45556
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
45557
+ * JSPB instance for transitional soy proto support:
45558
+ * http://goto/soy-param-migration
45559
+ * @return {!Object}
45560
+ */
45561
+ proto.game.CollectionSnapshotItemsResponse.prototype.toObject = function(opt_includeInstance) {
45562
+ return proto.game.CollectionSnapshotItemsResponse.toObject(opt_includeInstance, this);
45563
+ };
45564
+
45565
+
45566
+ /**
45567
+ * Static version of the {@see toObject} method.
45568
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
45569
+ * the JSPB instance for transitional soy proto support:
45570
+ * http://goto/soy-param-migration
45571
+ * @param {!proto.game.CollectionSnapshotItemsResponse} msg The msg instance to transform.
45572
+ * @return {!Object}
45573
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45574
+ */
45575
+ proto.game.CollectionSnapshotItemsResponse.toObject = function(includeInstance, msg) {
45576
+ var f, obj = {
45577
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
45578
+ proto.game.CollectionSnapshotItem.toObject, includeInstance)
45579
+ };
45580
+
45581
+ if (includeInstance) {
45582
+ obj.$jspbMessageInstance = msg;
45583
+ }
45584
+ return obj;
45585
+ };
45586
+ }
45587
+
45588
+
45589
+ /**
45590
+ * Deserializes binary data (in protobuf wire format).
45591
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
45592
+ * @return {!proto.game.CollectionSnapshotItemsResponse}
45593
+ */
45594
+ proto.game.CollectionSnapshotItemsResponse.deserializeBinary = function(bytes) {
45595
+ var reader = new jspb.BinaryReader(bytes);
45596
+ var msg = new proto.game.CollectionSnapshotItemsResponse;
45597
+ return proto.game.CollectionSnapshotItemsResponse.deserializeBinaryFromReader(msg, reader);
45598
+ };
45599
+
45600
+
45601
+ /**
45602
+ * Deserializes binary data (in protobuf wire format) from the
45603
+ * given reader into the given message object.
45604
+ * @param {!proto.game.CollectionSnapshotItemsResponse} msg The message object to deserialize into.
45605
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
45606
+ * @return {!proto.game.CollectionSnapshotItemsResponse}
45607
+ */
45608
+ proto.game.CollectionSnapshotItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
45609
+ while (reader.nextField()) {
45610
+ if (reader.isEndGroup()) {
45611
+ break;
45612
+ }
45613
+ var field = reader.getFieldNumber();
45614
+ switch (field) {
45615
+ case 1:
45616
+ var value = new proto.game.CollectionSnapshotItem;
45617
+ reader.readMessage(value,proto.game.CollectionSnapshotItem.deserializeBinaryFromReader);
45618
+ msg.addItems(value);
45619
+ break;
45620
+ default:
45621
+ reader.skipField();
45622
+ break;
45623
+ }
45624
+ }
45625
+ return msg;
45626
+ };
45627
+
45628
+
45629
+ /**
45630
+ * Serializes the message to binary data (in protobuf wire format).
45631
+ * @return {!Uint8Array}
45632
+ */
45633
+ proto.game.CollectionSnapshotItemsResponse.prototype.serializeBinary = function() {
45634
+ var writer = new jspb.BinaryWriter();
45635
+ proto.game.CollectionSnapshotItemsResponse.serializeBinaryToWriter(this, writer);
45636
+ return writer.getResultBuffer();
45637
+ };
45638
+
45639
+
45640
+ /**
45641
+ * Serializes the given message to binary data (in protobuf wire
45642
+ * format), writing to the given BinaryWriter.
45643
+ * @param {!proto.game.CollectionSnapshotItemsResponse} message
45644
+ * @param {!jspb.BinaryWriter} writer
45645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45646
+ */
45647
+ proto.game.CollectionSnapshotItemsResponse.serializeBinaryToWriter = function(message, writer) {
45648
+ var f = undefined;
45649
+ f = message.getItemsList();
45650
+ if (f.length > 0) {
45651
+ writer.writeRepeatedMessage(
45652
+ 1,
45653
+ f,
45654
+ proto.game.CollectionSnapshotItem.serializeBinaryToWriter
45655
+ );
45656
+ }
45657
+ };
45658
+
45659
+
45660
+ /**
45661
+ * repeated CollectionSnapshotItem items = 1;
45662
+ * @return {!Array<!proto.game.CollectionSnapshotItem>}
45663
+ */
45664
+ proto.game.CollectionSnapshotItemsResponse.prototype.getItemsList = function() {
45665
+ return /** @type{!Array<!proto.game.CollectionSnapshotItem>} */ (
45666
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CollectionSnapshotItem, 1));
45667
+ };
45668
+
45669
+
45670
+ /**
45671
+ * @param {!Array<!proto.game.CollectionSnapshotItem>} value
45672
+ * @return {!proto.game.CollectionSnapshotItemsResponse} returns this
45673
+ */
45674
+ proto.game.CollectionSnapshotItemsResponse.prototype.setItemsList = function(value) {
45675
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
45676
+ };
45677
+
45678
+
45679
+ /**
45680
+ * @param {!proto.game.CollectionSnapshotItem=} opt_value
45681
+ * @param {number=} opt_index
45682
+ * @return {!proto.game.CollectionSnapshotItem}
45683
+ */
45684
+ proto.game.CollectionSnapshotItemsResponse.prototype.addItems = function(opt_value, opt_index) {
45685
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CollectionSnapshotItem, opt_index);
45686
+ };
45687
+
45688
+
45689
+ /**
45690
+ * Clears the list making it empty but non-null.
45691
+ * @return {!proto.game.CollectionSnapshotItemsResponse} returns this
45692
+ */
45693
+ proto.game.CollectionSnapshotItemsResponse.prototype.clearItemsList = function() {
45694
+ return this.setItemsList([]);
45695
+ };
45696
+
45697
+
45698
+
45699
+ /**
45700
+ * List of repeated fields within this message type.
45701
+ * @private {!Array<number>}
45702
+ * @const
45703
+ */
45704
+ proto.game.GetTagSnapshotsByIdsRequest.repeatedFields_ = [1];
45705
+
45706
+
45707
+
45708
+ if (jspb.Message.GENERATE_TO_OBJECT) {
45709
+ /**
45710
+ * Creates an object representation of this proto.
45711
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
45712
+ * Optional fields that are not set will be set to undefined.
45713
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
45714
+ * For the list of reserved names please see:
45715
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
45716
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
45717
+ * JSPB instance for transitional soy proto support:
45718
+ * http://goto/soy-param-migration
45719
+ * @return {!Object}
45720
+ */
45721
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.toObject = function(opt_includeInstance) {
45722
+ return proto.game.GetTagSnapshotsByIdsRequest.toObject(opt_includeInstance, this);
45723
+ };
45724
+
45725
+
45726
+ /**
45727
+ * Static version of the {@see toObject} method.
45728
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
45729
+ * the JSPB instance for transitional soy proto support:
45730
+ * http://goto/soy-param-migration
45731
+ * @param {!proto.game.GetTagSnapshotsByIdsRequest} msg The msg instance to transform.
45732
+ * @return {!Object}
45733
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45734
+ */
45735
+ proto.game.GetTagSnapshotsByIdsRequest.toObject = function(includeInstance, msg) {
45736
+ var f, obj = {
45737
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
45738
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
45739
+ };
45740
+
45741
+ if (includeInstance) {
45742
+ obj.$jspbMessageInstance = msg;
45743
+ }
45744
+ return obj;
45745
+ };
45746
+ }
45747
+
45748
+
45749
+ /**
45750
+ * Deserializes binary data (in protobuf wire format).
45751
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
45752
+ * @return {!proto.game.GetTagSnapshotsByIdsRequest}
45753
+ */
45754
+ proto.game.GetTagSnapshotsByIdsRequest.deserializeBinary = function(bytes) {
45755
+ var reader = new jspb.BinaryReader(bytes);
45756
+ var msg = new proto.game.GetTagSnapshotsByIdsRequest;
45757
+ return proto.game.GetTagSnapshotsByIdsRequest.deserializeBinaryFromReader(msg, reader);
45758
+ };
45759
+
45760
+
45761
+ /**
45762
+ * Deserializes binary data (in protobuf wire format) from the
45763
+ * given reader into the given message object.
45764
+ * @param {!proto.game.GetTagSnapshotsByIdsRequest} msg The message object to deserialize into.
45765
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
45766
+ * @return {!proto.game.GetTagSnapshotsByIdsRequest}
45767
+ */
45768
+ proto.game.GetTagSnapshotsByIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
45769
+ while (reader.nextField()) {
45770
+ if (reader.isEndGroup()) {
45771
+ break;
45772
+ }
45773
+ var field = reader.getFieldNumber();
45774
+ switch (field) {
45775
+ case 1:
45776
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
45777
+ for (var i = 0; i < values.length; i++) {
45778
+ msg.addIds(values[i]);
45779
+ }
45780
+ break;
45781
+ case 2:
45782
+ var value = /** @type {string} */ (reader.readString());
45783
+ msg.setLocale(value);
45784
+ break;
45785
+ default:
45786
+ reader.skipField();
45787
+ break;
45788
+ }
45789
+ }
45790
+ return msg;
45791
+ };
45792
+
45793
+
45794
+ /**
45795
+ * Serializes the message to binary data (in protobuf wire format).
45796
+ * @return {!Uint8Array}
45797
+ */
45798
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.serializeBinary = function() {
45799
+ var writer = new jspb.BinaryWriter();
45800
+ proto.game.GetTagSnapshotsByIdsRequest.serializeBinaryToWriter(this, writer);
45801
+ return writer.getResultBuffer();
45802
+ };
45803
+
45804
+
45805
+ /**
45806
+ * Serializes the given message to binary data (in protobuf wire
45807
+ * format), writing to the given BinaryWriter.
45808
+ * @param {!proto.game.GetTagSnapshotsByIdsRequest} message
45809
+ * @param {!jspb.BinaryWriter} writer
45810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45811
+ */
45812
+ proto.game.GetTagSnapshotsByIdsRequest.serializeBinaryToWriter = function(message, writer) {
45813
+ var f = undefined;
45814
+ f = message.getIdsList();
45815
+ if (f.length > 0) {
45816
+ writer.writePackedInt32(
45817
+ 1,
45818
+ f
45819
+ );
45820
+ }
45821
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
45822
+ if (f != null) {
45823
+ writer.writeString(
45824
+ 2,
45825
+ f
45826
+ );
45827
+ }
45828
+ };
45829
+
45830
+
45831
+ /**
45832
+ * repeated int32 ids = 1;
45833
+ * @return {!Array<number>}
45834
+ */
45835
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.getIdsList = function() {
45836
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
45837
+ };
45838
+
45839
+
45840
+ /**
45841
+ * @param {!Array<number>} value
45842
+ * @return {!proto.game.GetTagSnapshotsByIdsRequest} returns this
45843
+ */
45844
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.setIdsList = function(value) {
45845
+ return jspb.Message.setField(this, 1, value || []);
45846
+ };
45847
+
45848
+
45849
+ /**
45850
+ * @param {number} value
45851
+ * @param {number=} opt_index
45852
+ * @return {!proto.game.GetTagSnapshotsByIdsRequest} returns this
45853
+ */
45854
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.addIds = function(value, opt_index) {
45855
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
45856
+ };
45857
+
45858
+
45859
+ /**
45860
+ * Clears the list making it empty but non-null.
45861
+ * @return {!proto.game.GetTagSnapshotsByIdsRequest} returns this
45862
+ */
45863
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.clearIdsList = function() {
45864
+ return this.setIdsList([]);
45865
+ };
45866
+
45867
+
45868
+ /**
45869
+ * optional string locale = 2;
45870
+ * @return {string}
45871
+ */
45872
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.getLocale = function() {
45873
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
45874
+ };
45875
+
45876
+
45877
+ /**
45878
+ * @param {string} value
45879
+ * @return {!proto.game.GetTagSnapshotsByIdsRequest} returns this
45880
+ */
45881
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.setLocale = function(value) {
45882
+ return jspb.Message.setField(this, 2, value);
45883
+ };
45884
+
45885
+
45886
+ /**
45887
+ * Clears the field making it undefined.
45888
+ * @return {!proto.game.GetTagSnapshotsByIdsRequest} returns this
45889
+ */
45890
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.clearLocale = function() {
45891
+ return jspb.Message.setField(this, 2, undefined);
45892
+ };
45893
+
45894
+
45895
+ /**
45896
+ * Returns whether this field is set.
45897
+ * @return {boolean}
45898
+ */
45899
+ proto.game.GetTagSnapshotsByIdsRequest.prototype.hasLocale = function() {
45900
+ return jspb.Message.getField(this, 2) != null;
45901
+ };
45902
+
45903
+
45904
+
45905
+
45906
+
45907
+ if (jspb.Message.GENERATE_TO_OBJECT) {
45908
+ /**
45909
+ * Creates an object representation of this proto.
45910
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
45911
+ * Optional fields that are not set will be set to undefined.
45912
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
45913
+ * For the list of reserved names please see:
45914
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
45915
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
45916
+ * JSPB instance for transitional soy proto support:
45917
+ * http://goto/soy-param-migration
45918
+ * @return {!Object}
45919
+ */
45920
+ proto.game.TagSnapshotItem.prototype.toObject = function(opt_includeInstance) {
45921
+ return proto.game.TagSnapshotItem.toObject(opt_includeInstance, this);
45922
+ };
45923
+
45924
+
45925
+ /**
45926
+ * Static version of the {@see toObject} method.
45927
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
45928
+ * the JSPB instance for transitional soy proto support:
45929
+ * http://goto/soy-param-migration
45930
+ * @param {!proto.game.TagSnapshotItem} msg The msg instance to transform.
45931
+ * @return {!Object}
45932
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45933
+ */
45934
+ proto.game.TagSnapshotItem.toObject = function(includeInstance, msg) {
45935
+ var f, obj = {
45936
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
45937
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
45938
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
45939
+ image: jspb.Message.getFieldWithDefault(msg, 4, ""),
45940
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 5, ""),
45941
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 6, 0),
45942
+ isActive: jspb.Message.getFieldWithDefault(msg, 7, 0)
45943
+ };
45944
+
45945
+ if (includeInstance) {
45946
+ obj.$jspbMessageInstance = msg;
45947
+ }
45948
+ return obj;
45949
+ };
45950
+ }
45951
+
45952
+
45953
+ /**
45954
+ * Deserializes binary data (in protobuf wire format).
45955
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
45956
+ * @return {!proto.game.TagSnapshotItem}
45957
+ */
45958
+ proto.game.TagSnapshotItem.deserializeBinary = function(bytes) {
45959
+ var reader = new jspb.BinaryReader(bytes);
45960
+ var msg = new proto.game.TagSnapshotItem;
45961
+ return proto.game.TagSnapshotItem.deserializeBinaryFromReader(msg, reader);
45962
+ };
45963
+
45964
+
45965
+ /**
45966
+ * Deserializes binary data (in protobuf wire format) from the
45967
+ * given reader into the given message object.
45968
+ * @param {!proto.game.TagSnapshotItem} msg The message object to deserialize into.
45969
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
45970
+ * @return {!proto.game.TagSnapshotItem}
45971
+ */
45972
+ proto.game.TagSnapshotItem.deserializeBinaryFromReader = function(msg, reader) {
45973
+ while (reader.nextField()) {
45974
+ if (reader.isEndGroup()) {
45975
+ break;
45976
+ }
45977
+ var field = reader.getFieldNumber();
45978
+ switch (field) {
45979
+ case 1:
45980
+ var value = /** @type {number} */ (reader.readInt32());
45981
+ msg.setId(value);
45982
+ break;
45983
+ case 2:
45984
+ var value = /** @type {string} */ (reader.readString());
45985
+ msg.setTitle(value);
45986
+ break;
45987
+ case 3:
45988
+ var value = /** @type {string} */ (reader.readString());
45989
+ msg.setSlug(value);
45990
+ break;
45991
+ case 4:
45992
+ var value = /** @type {string} */ (reader.readString());
45993
+ msg.setImage(value);
45994
+ break;
45995
+ case 5:
45996
+ var value = /** @type {string} */ (reader.readString());
45997
+ msg.setImageCdn(value);
45998
+ break;
45999
+ case 6:
46000
+ var value = /** @type {number} */ (reader.readInt32());
46001
+ msg.setCountOfGames(value);
46002
+ break;
46003
+ case 7:
46004
+ var value = /** @type {number} */ (reader.readInt32());
46005
+ msg.setIsActive(value);
46006
+ break;
46007
+ default:
46008
+ reader.skipField();
46009
+ break;
46010
+ }
46011
+ }
46012
+ return msg;
46013
+ };
46014
+
46015
+
46016
+ /**
46017
+ * Serializes the message to binary data (in protobuf wire format).
46018
+ * @return {!Uint8Array}
46019
+ */
46020
+ proto.game.TagSnapshotItem.prototype.serializeBinary = function() {
46021
+ var writer = new jspb.BinaryWriter();
46022
+ proto.game.TagSnapshotItem.serializeBinaryToWriter(this, writer);
46023
+ return writer.getResultBuffer();
46024
+ };
46025
+
46026
+
46027
+ /**
46028
+ * Serializes the given message to binary data (in protobuf wire
46029
+ * format), writing to the given BinaryWriter.
46030
+ * @param {!proto.game.TagSnapshotItem} message
46031
+ * @param {!jspb.BinaryWriter} writer
46032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
46033
+ */
46034
+ proto.game.TagSnapshotItem.serializeBinaryToWriter = function(message, writer) {
46035
+ var f = undefined;
46036
+ f = message.getId();
46037
+ if (f !== 0) {
46038
+ writer.writeInt32(
46039
+ 1,
46040
+ f
46041
+ );
46042
+ }
46043
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
46044
+ if (f != null) {
46045
+ writer.writeString(
46046
+ 2,
46047
+ f
46048
+ );
46049
+ }
46050
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
46051
+ if (f != null) {
46052
+ writer.writeString(
46053
+ 3,
46054
+ f
46055
+ );
46056
+ }
46057
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
46058
+ if (f != null) {
46059
+ writer.writeString(
46060
+ 4,
46061
+ f
46062
+ );
46063
+ }
46064
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
46065
+ if (f != null) {
46066
+ writer.writeString(
46067
+ 5,
46068
+ f
46069
+ );
46070
+ }
46071
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
46072
+ if (f != null) {
46073
+ writer.writeInt32(
46074
+ 6,
46075
+ f
46076
+ );
46077
+ }
46078
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
46079
+ if (f != null) {
46080
+ writer.writeInt32(
46081
+ 7,
46082
+ f
46083
+ );
46084
+ }
46085
+ };
46086
+
46087
+
46088
+ /**
46089
+ * optional int32 id = 1;
46090
+ * @return {number}
46091
+ */
46092
+ proto.game.TagSnapshotItem.prototype.getId = function() {
46093
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
46094
+ };
46095
+
46096
+
46097
+ /**
46098
+ * @param {number} value
46099
+ * @return {!proto.game.TagSnapshotItem} returns this
46100
+ */
46101
+ proto.game.TagSnapshotItem.prototype.setId = function(value) {
46102
+ return jspb.Message.setProto3IntField(this, 1, value);
46103
+ };
46104
+
46105
+
46106
+ /**
46107
+ * optional string title = 2;
46108
+ * @return {string}
46109
+ */
46110
+ proto.game.TagSnapshotItem.prototype.getTitle = function() {
46111
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
46112
+ };
46113
+
46114
+
46115
+ /**
46116
+ * @param {string} value
46117
+ * @return {!proto.game.TagSnapshotItem} returns this
46118
+ */
46119
+ proto.game.TagSnapshotItem.prototype.setTitle = function(value) {
46120
+ return jspb.Message.setField(this, 2, value);
46121
+ };
46122
+
46123
+
46124
+ /**
46125
+ * Clears the field making it undefined.
46126
+ * @return {!proto.game.TagSnapshotItem} returns this
46127
+ */
46128
+ proto.game.TagSnapshotItem.prototype.clearTitle = function() {
46129
+ return jspb.Message.setField(this, 2, undefined);
46130
+ };
46131
+
46132
+
46133
+ /**
46134
+ * Returns whether this field is set.
46135
+ * @return {boolean}
46136
+ */
46137
+ proto.game.TagSnapshotItem.prototype.hasTitle = function() {
46138
+ return jspb.Message.getField(this, 2) != null;
46139
+ };
46140
+
46141
+
46142
+ /**
46143
+ * optional string slug = 3;
46144
+ * @return {string}
46145
+ */
46146
+ proto.game.TagSnapshotItem.prototype.getSlug = function() {
46147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
46148
+ };
46149
+
46150
+
46151
+ /**
46152
+ * @param {string} value
46153
+ * @return {!proto.game.TagSnapshotItem} returns this
46154
+ */
46155
+ proto.game.TagSnapshotItem.prototype.setSlug = function(value) {
46156
+ return jspb.Message.setField(this, 3, value);
46157
+ };
46158
+
46159
+
46160
+ /**
46161
+ * Clears the field making it undefined.
46162
+ * @return {!proto.game.TagSnapshotItem} returns this
46163
+ */
46164
+ proto.game.TagSnapshotItem.prototype.clearSlug = function() {
46165
+ return jspb.Message.setField(this, 3, undefined);
46166
+ };
46167
+
46168
+
46169
+ /**
46170
+ * Returns whether this field is set.
46171
+ * @return {boolean}
46172
+ */
46173
+ proto.game.TagSnapshotItem.prototype.hasSlug = function() {
46174
+ return jspb.Message.getField(this, 3) != null;
46175
+ };
46176
+
46177
+
46178
+ /**
46179
+ * optional string image = 4;
46180
+ * @return {string}
46181
+ */
46182
+ proto.game.TagSnapshotItem.prototype.getImage = function() {
46183
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
46184
+ };
46185
+
46186
+
46187
+ /**
46188
+ * @param {string} value
46189
+ * @return {!proto.game.TagSnapshotItem} returns this
46190
+ */
46191
+ proto.game.TagSnapshotItem.prototype.setImage = function(value) {
46192
+ return jspb.Message.setField(this, 4, value);
46193
+ };
46194
+
46195
+
46196
+ /**
46197
+ * Clears the field making it undefined.
46198
+ * @return {!proto.game.TagSnapshotItem} returns this
46199
+ */
46200
+ proto.game.TagSnapshotItem.prototype.clearImage = function() {
46201
+ return jspb.Message.setField(this, 4, undefined);
46202
+ };
46203
+
46204
+
46205
+ /**
46206
+ * Returns whether this field is set.
46207
+ * @return {boolean}
46208
+ */
46209
+ proto.game.TagSnapshotItem.prototype.hasImage = function() {
46210
+ return jspb.Message.getField(this, 4) != null;
46211
+ };
46212
+
46213
+
46214
+ /**
46215
+ * optional string image_cdn = 5;
46216
+ * @return {string}
46217
+ */
46218
+ proto.game.TagSnapshotItem.prototype.getImageCdn = function() {
46219
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
46220
+ };
46221
+
46222
+
46223
+ /**
46224
+ * @param {string} value
46225
+ * @return {!proto.game.TagSnapshotItem} returns this
46226
+ */
46227
+ proto.game.TagSnapshotItem.prototype.setImageCdn = function(value) {
46228
+ return jspb.Message.setField(this, 5, value);
46229
+ };
46230
+
46231
+
46232
+ /**
46233
+ * Clears the field making it undefined.
46234
+ * @return {!proto.game.TagSnapshotItem} returns this
46235
+ */
46236
+ proto.game.TagSnapshotItem.prototype.clearImageCdn = function() {
46237
+ return jspb.Message.setField(this, 5, undefined);
46238
+ };
46239
+
46240
+
46241
+ /**
46242
+ * Returns whether this field is set.
46243
+ * @return {boolean}
46244
+ */
46245
+ proto.game.TagSnapshotItem.prototype.hasImageCdn = function() {
46246
+ return jspb.Message.getField(this, 5) != null;
46247
+ };
46248
+
46249
+
46250
+ /**
46251
+ * optional int32 count_of_games = 6;
46252
+ * @return {number}
46253
+ */
46254
+ proto.game.TagSnapshotItem.prototype.getCountOfGames = function() {
46255
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
46256
+ };
46257
+
46258
+
46259
+ /**
46260
+ * @param {number} value
46261
+ * @return {!proto.game.TagSnapshotItem} returns this
46262
+ */
46263
+ proto.game.TagSnapshotItem.prototype.setCountOfGames = function(value) {
46264
+ return jspb.Message.setField(this, 6, value);
46265
+ };
46266
+
46267
+
46268
+ /**
46269
+ * Clears the field making it undefined.
46270
+ * @return {!proto.game.TagSnapshotItem} returns this
46271
+ */
46272
+ proto.game.TagSnapshotItem.prototype.clearCountOfGames = function() {
46273
+ return jspb.Message.setField(this, 6, undefined);
46274
+ };
46275
+
46276
+
46277
+ /**
46278
+ * Returns whether this field is set.
46279
+ * @return {boolean}
46280
+ */
46281
+ proto.game.TagSnapshotItem.prototype.hasCountOfGames = function() {
46282
+ return jspb.Message.getField(this, 6) != null;
46283
+ };
46284
+
46285
+
46286
+ /**
46287
+ * optional int32 is_active = 7;
46288
+ * @return {number}
46289
+ */
46290
+ proto.game.TagSnapshotItem.prototype.getIsActive = function() {
46291
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
46292
+ };
46293
+
46294
+
46295
+ /**
46296
+ * @param {number} value
46297
+ * @return {!proto.game.TagSnapshotItem} returns this
46298
+ */
46299
+ proto.game.TagSnapshotItem.prototype.setIsActive = function(value) {
46300
+ return jspb.Message.setField(this, 7, value);
46301
+ };
46302
+
46303
+
46304
+ /**
46305
+ * Clears the field making it undefined.
46306
+ * @return {!proto.game.TagSnapshotItem} returns this
46307
+ */
46308
+ proto.game.TagSnapshotItem.prototype.clearIsActive = function() {
46309
+ return jspb.Message.setField(this, 7, undefined);
46310
+ };
46311
+
46312
+
46313
+ /**
46314
+ * Returns whether this field is set.
46315
+ * @return {boolean}
46316
+ */
46317
+ proto.game.TagSnapshotItem.prototype.hasIsActive = function() {
46318
+ return jspb.Message.getField(this, 7) != null;
46319
+ };
46320
+
46321
+
46322
+
46323
+ /**
46324
+ * List of repeated fields within this message type.
46325
+ * @private {!Array<number>}
46326
+ * @const
46327
+ */
46328
+ proto.game.TagSnapshotItemsResponse.repeatedFields_ = [1];
46329
+
46330
+
46331
+
46332
+ if (jspb.Message.GENERATE_TO_OBJECT) {
46333
+ /**
46334
+ * Creates an object representation of this proto.
46335
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
46336
+ * Optional fields that are not set will be set to undefined.
46337
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
46338
+ * For the list of reserved names please see:
46339
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
46340
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
46341
+ * JSPB instance for transitional soy proto support:
46342
+ * http://goto/soy-param-migration
46343
+ * @return {!Object}
46344
+ */
46345
+ proto.game.TagSnapshotItemsResponse.prototype.toObject = function(opt_includeInstance) {
46346
+ return proto.game.TagSnapshotItemsResponse.toObject(opt_includeInstance, this);
46347
+ };
46348
+
46349
+
46350
+ /**
46351
+ * Static version of the {@see toObject} method.
46352
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
46353
+ * the JSPB instance for transitional soy proto support:
46354
+ * http://goto/soy-param-migration
46355
+ * @param {!proto.game.TagSnapshotItemsResponse} msg The msg instance to transform.
46356
+ * @return {!Object}
46357
+ * @suppress {unusedLocalVariables} f is only used for nested messages
46358
+ */
46359
+ proto.game.TagSnapshotItemsResponse.toObject = function(includeInstance, msg) {
46360
+ var f, obj = {
46361
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
46362
+ proto.game.TagSnapshotItem.toObject, includeInstance)
46363
+ };
46364
+
46365
+ if (includeInstance) {
46366
+ obj.$jspbMessageInstance = msg;
46367
+ }
46368
+ return obj;
46369
+ };
46370
+ }
46371
+
46372
+
46373
+ /**
46374
+ * Deserializes binary data (in protobuf wire format).
46375
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
46376
+ * @return {!proto.game.TagSnapshotItemsResponse}
46377
+ */
46378
+ proto.game.TagSnapshotItemsResponse.deserializeBinary = function(bytes) {
46379
+ var reader = new jspb.BinaryReader(bytes);
46380
+ var msg = new proto.game.TagSnapshotItemsResponse;
46381
+ return proto.game.TagSnapshotItemsResponse.deserializeBinaryFromReader(msg, reader);
46382
+ };
46383
+
46384
+
46385
+ /**
46386
+ * Deserializes binary data (in protobuf wire format) from the
46387
+ * given reader into the given message object.
46388
+ * @param {!proto.game.TagSnapshotItemsResponse} msg The message object to deserialize into.
46389
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
46390
+ * @return {!proto.game.TagSnapshotItemsResponse}
46391
+ */
46392
+ proto.game.TagSnapshotItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
46393
+ while (reader.nextField()) {
46394
+ if (reader.isEndGroup()) {
46395
+ break;
46396
+ }
46397
+ var field = reader.getFieldNumber();
46398
+ switch (field) {
46399
+ case 1:
46400
+ var value = new proto.game.TagSnapshotItem;
46401
+ reader.readMessage(value,proto.game.TagSnapshotItem.deserializeBinaryFromReader);
46402
+ msg.addItems(value);
46403
+ break;
46404
+ default:
46405
+ reader.skipField();
46406
+ break;
46407
+ }
46408
+ }
46409
+ return msg;
46410
+ };
46411
+
46412
+
46413
+ /**
46414
+ * Serializes the message to binary data (in protobuf wire format).
46415
+ * @return {!Uint8Array}
46416
+ */
46417
+ proto.game.TagSnapshotItemsResponse.prototype.serializeBinary = function() {
46418
+ var writer = new jspb.BinaryWriter();
46419
+ proto.game.TagSnapshotItemsResponse.serializeBinaryToWriter(this, writer);
46420
+ return writer.getResultBuffer();
46421
+ };
46422
+
46423
+
46424
+ /**
46425
+ * Serializes the given message to binary data (in protobuf wire
46426
+ * format), writing to the given BinaryWriter.
46427
+ * @param {!proto.game.TagSnapshotItemsResponse} message
46428
+ * @param {!jspb.BinaryWriter} writer
46429
+ * @suppress {unusedLocalVariables} f is only used for nested messages
46430
+ */
46431
+ proto.game.TagSnapshotItemsResponse.serializeBinaryToWriter = function(message, writer) {
46432
+ var f = undefined;
46433
+ f = message.getItemsList();
46434
+ if (f.length > 0) {
46435
+ writer.writeRepeatedMessage(
46436
+ 1,
46437
+ f,
46438
+ proto.game.TagSnapshotItem.serializeBinaryToWriter
46439
+ );
46440
+ }
46441
+ };
46442
+
46443
+
46444
+ /**
46445
+ * repeated TagSnapshotItem items = 1;
46446
+ * @return {!Array<!proto.game.TagSnapshotItem>}
46447
+ */
46448
+ proto.game.TagSnapshotItemsResponse.prototype.getItemsList = function() {
46449
+ return /** @type{!Array<!proto.game.TagSnapshotItem>} */ (
46450
+ jspb.Message.getRepeatedWrapperField(this, proto.game.TagSnapshotItem, 1));
46451
+ };
46452
+
46453
+
46454
+ /**
46455
+ * @param {!Array<!proto.game.TagSnapshotItem>} value
46456
+ * @return {!proto.game.TagSnapshotItemsResponse} returns this
46457
+ */
46458
+ proto.game.TagSnapshotItemsResponse.prototype.setItemsList = function(value) {
46459
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
46460
+ };
46461
+
46462
+
46463
+ /**
46464
+ * @param {!proto.game.TagSnapshotItem=} opt_value
46465
+ * @param {number=} opt_index
46466
+ * @return {!proto.game.TagSnapshotItem}
46467
+ */
46468
+ proto.game.TagSnapshotItemsResponse.prototype.addItems = function(opt_value, opt_index) {
46469
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.TagSnapshotItem, opt_index);
46470
+ };
46471
+
46472
+
46473
+ /**
46474
+ * Clears the list making it empty but non-null.
46475
+ * @return {!proto.game.TagSnapshotItemsResponse} returns this
46476
+ */
46477
+ proto.game.TagSnapshotItemsResponse.prototype.clearItemsList = function() {
46478
+ return this.setItemsList([]);
46479
+ };
46480
+
46481
+
44028
46482
  /**
44029
46483
  * @enum {number}
44030
46484
  */