protobuf-platform 1.2.575 → 1.2.578

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
@@ -36,6 +36,10 @@ goog.exportSymbol('proto.game.CashBackTypeGamesItem', null, global);
36
36
  goog.exportSymbol('proto.game.CashBackTypesGamesRequest', null, global);
37
37
  goog.exportSymbol('proto.game.CashBackTypesGamesResponse', null, global);
38
38
  goog.exportSymbol('proto.game.CashbackGamePreview', null, global);
39
+ goog.exportSymbol('proto.game.CategoryHierarchyCollectionItem', null, global);
40
+ goog.exportSymbol('proto.game.CategoryHierarchyItem', null, global);
41
+ goog.exportSymbol('proto.game.CategoryHierarchyRequest', null, global);
42
+ goog.exportSymbol('proto.game.CategoryHierarchyResponse', null, global);
39
43
  goog.exportSymbol('proto.game.CategoryItem', null, global);
40
44
  goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
41
45
  goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
@@ -3723,6 +3727,90 @@ if (goog.DEBUG && !COMPILED) {
3723
3727
  */
3724
3728
  proto.game.TagSnapshotItemsResponse.displayName = 'proto.game.TagSnapshotItemsResponse';
3725
3729
  }
3730
+ /**
3731
+ * Generated by JsPbCodeGenerator.
3732
+ * @param {Array=} opt_data Optional initial data array, typically from a
3733
+ * server response, or constructed directly in Javascript. The array is used
3734
+ * in place and becomes part of the constructed object. It is not cloned.
3735
+ * If no data is provided, the constructed object will be empty, but still
3736
+ * valid.
3737
+ * @extends {jspb.Message}
3738
+ * @constructor
3739
+ */
3740
+ proto.game.CategoryHierarchyRequest = function(opt_data) {
3741
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CategoryHierarchyRequest.repeatedFields_, null);
3742
+ };
3743
+ goog.inherits(proto.game.CategoryHierarchyRequest, jspb.Message);
3744
+ if (goog.DEBUG && !COMPILED) {
3745
+ /**
3746
+ * @public
3747
+ * @override
3748
+ */
3749
+ proto.game.CategoryHierarchyRequest.displayName = 'proto.game.CategoryHierarchyRequest';
3750
+ }
3751
+ /**
3752
+ * Generated by JsPbCodeGenerator.
3753
+ * @param {Array=} opt_data Optional initial data array, typically from a
3754
+ * server response, or constructed directly in Javascript. The array is used
3755
+ * in place and becomes part of the constructed object. It is not cloned.
3756
+ * If no data is provided, the constructed object will be empty, but still
3757
+ * valid.
3758
+ * @extends {jspb.Message}
3759
+ * @constructor
3760
+ */
3761
+ proto.game.CategoryHierarchyCollectionItem = function(opt_data) {
3762
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3763
+ };
3764
+ goog.inherits(proto.game.CategoryHierarchyCollectionItem, jspb.Message);
3765
+ if (goog.DEBUG && !COMPILED) {
3766
+ /**
3767
+ * @public
3768
+ * @override
3769
+ */
3770
+ proto.game.CategoryHierarchyCollectionItem.displayName = 'proto.game.CategoryHierarchyCollectionItem';
3771
+ }
3772
+ /**
3773
+ * Generated by JsPbCodeGenerator.
3774
+ * @param {Array=} opt_data Optional initial data array, typically from a
3775
+ * server response, or constructed directly in Javascript. The array is used
3776
+ * in place and becomes part of the constructed object. It is not cloned.
3777
+ * If no data is provided, the constructed object will be empty, but still
3778
+ * valid.
3779
+ * @extends {jspb.Message}
3780
+ * @constructor
3781
+ */
3782
+ proto.game.CategoryHierarchyItem = function(opt_data) {
3783
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CategoryHierarchyItem.repeatedFields_, null);
3784
+ };
3785
+ goog.inherits(proto.game.CategoryHierarchyItem, jspb.Message);
3786
+ if (goog.DEBUG && !COMPILED) {
3787
+ /**
3788
+ * @public
3789
+ * @override
3790
+ */
3791
+ proto.game.CategoryHierarchyItem.displayName = 'proto.game.CategoryHierarchyItem';
3792
+ }
3793
+ /**
3794
+ * Generated by JsPbCodeGenerator.
3795
+ * @param {Array=} opt_data Optional initial data array, typically from a
3796
+ * server response, or constructed directly in Javascript. The array is used
3797
+ * in place and becomes part of the constructed object. It is not cloned.
3798
+ * If no data is provided, the constructed object will be empty, but still
3799
+ * valid.
3800
+ * @extends {jspb.Message}
3801
+ * @constructor
3802
+ */
3803
+ proto.game.CategoryHierarchyResponse = function(opt_data) {
3804
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CategoryHierarchyResponse.repeatedFields_, null);
3805
+ };
3806
+ goog.inherits(proto.game.CategoryHierarchyResponse, jspb.Message);
3807
+ if (goog.DEBUG && !COMPILED) {
3808
+ /**
3809
+ * @public
3810
+ * @override
3811
+ */
3812
+ proto.game.CategoryHierarchyResponse.displayName = 'proto.game.CategoryHierarchyResponse';
3813
+ }
3726
3814
 
3727
3815
 
3728
3816
 
@@ -7799,7 +7887,7 @@ proto.game.TournamentGamesPreviewItem.prototype.hasTotal = function() {
7799
7887
  * @private {!Array<number>}
7800
7888
  * @const
7801
7889
  */
7802
- proto.game.ProviderSearchRequest.repeatedFields_ = [4];
7890
+ proto.game.ProviderSearchRequest.repeatedFields_ = [4,6];
7803
7891
 
7804
7892
 
7805
7893
 
@@ -7836,7 +7924,8 @@ proto.game.ProviderSearchRequest.toObject = function(includeInstance, msg) {
7836
7924
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
7837
7925
  geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
7838
7926
  idsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
7839
- locale: jspb.Message.getFieldWithDefault(msg, 5, "")
7927
+ locale: jspb.Message.getFieldWithDefault(msg, 5, ""),
7928
+ slugsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
7840
7929
  };
7841
7930
 
7842
7931
  if (includeInstance) {
@@ -7895,6 +7984,10 @@ proto.game.ProviderSearchRequest.deserializeBinaryFromReader = function(msg, rea
7895
7984
  var value = /** @type {string} */ (reader.readString());
7896
7985
  msg.setLocale(value);
7897
7986
  break;
7987
+ case 6:
7988
+ var value = /** @type {string} */ (reader.readString());
7989
+ msg.addSlugs(value);
7990
+ break;
7898
7991
  default:
7899
7992
  reader.skipField();
7900
7993
  break;
@@ -7959,6 +8052,13 @@ proto.game.ProviderSearchRequest.serializeBinaryToWriter = function(message, wri
7959
8052
  f
7960
8053
  );
7961
8054
  }
8055
+ f = message.getSlugsList();
8056
+ if (f.length > 0) {
8057
+ writer.writeRepeatedString(
8058
+ 6,
8059
+ f
8060
+ );
8061
+ }
7962
8062
  };
7963
8063
 
7964
8064
 
@@ -8143,13 +8243,50 @@ proto.game.ProviderSearchRequest.prototype.hasLocale = function() {
8143
8243
  };
8144
8244
 
8145
8245
 
8246
+ /**
8247
+ * repeated string slugs = 6;
8248
+ * @return {!Array<string>}
8249
+ */
8250
+ proto.game.ProviderSearchRequest.prototype.getSlugsList = function() {
8251
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
8252
+ };
8253
+
8254
+
8255
+ /**
8256
+ * @param {!Array<string>} value
8257
+ * @return {!proto.game.ProviderSearchRequest} returns this
8258
+ */
8259
+ proto.game.ProviderSearchRequest.prototype.setSlugsList = function(value) {
8260
+ return jspb.Message.setField(this, 6, value || []);
8261
+ };
8262
+
8263
+
8264
+ /**
8265
+ * @param {string} value
8266
+ * @param {number=} opt_index
8267
+ * @return {!proto.game.ProviderSearchRequest} returns this
8268
+ */
8269
+ proto.game.ProviderSearchRequest.prototype.addSlugs = function(value, opt_index) {
8270
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
8271
+ };
8272
+
8273
+
8274
+ /**
8275
+ * Clears the list making it empty but non-null.
8276
+ * @return {!proto.game.ProviderSearchRequest} returns this
8277
+ */
8278
+ proto.game.ProviderSearchRequest.prototype.clearSlugsList = function() {
8279
+ return this.setSlugsList([]);
8280
+ };
8281
+
8282
+
8146
8283
 
8147
8284
  /**
8148
8285
  * List of repeated fields within this message type.
8149
8286
  * @private {!Array<number>}
8150
8287
  * @const
8151
8288
  */
8152
- proto.game.CategorySearchRequest.repeatedFields_ = [3];
8289
+ proto.game.CategorySearchRequest.repeatedFields_ = [3,5];
8153
8290
 
8154
8291
 
8155
8292
 
@@ -8185,7 +8322,8 @@ proto.game.CategorySearchRequest.toObject = function(includeInstance, msg) {
8185
8322
  categoryTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
8186
8323
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
8187
8324
  idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
8188
- locale: jspb.Message.getFieldWithDefault(msg, 4, "")
8325
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
8326
+ slugsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
8189
8327
  };
8190
8328
 
8191
8329
  if (includeInstance) {
@@ -8240,6 +8378,10 @@ proto.game.CategorySearchRequest.deserializeBinaryFromReader = function(msg, rea
8240
8378
  var value = /** @type {string} */ (reader.readString());
8241
8379
  msg.setLocale(value);
8242
8380
  break;
8381
+ case 5:
8382
+ var value = /** @type {string} */ (reader.readString());
8383
+ msg.addSlugs(value);
8384
+ break;
8243
8385
  default:
8244
8386
  reader.skipField();
8245
8387
  break;
@@ -8297,6 +8439,13 @@ proto.game.CategorySearchRequest.serializeBinaryToWriter = function(message, wri
8297
8439
  f
8298
8440
  );
8299
8441
  }
8442
+ f = message.getSlugsList();
8443
+ if (f.length > 0) {
8444
+ writer.writeRepeatedString(
8445
+ 5,
8446
+ f
8447
+ );
8448
+ }
8300
8449
  };
8301
8450
 
8302
8451
 
@@ -8445,13 +8594,50 @@ proto.game.CategorySearchRequest.prototype.hasLocale = function() {
8445
8594
  };
8446
8595
 
8447
8596
 
8597
+ /**
8598
+ * repeated string slugs = 5;
8599
+ * @return {!Array<string>}
8600
+ */
8601
+ proto.game.CategorySearchRequest.prototype.getSlugsList = function() {
8602
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
8603
+ };
8604
+
8605
+
8606
+ /**
8607
+ * @param {!Array<string>} value
8608
+ * @return {!proto.game.CategorySearchRequest} returns this
8609
+ */
8610
+ proto.game.CategorySearchRequest.prototype.setSlugsList = function(value) {
8611
+ return jspb.Message.setField(this, 5, value || []);
8612
+ };
8613
+
8614
+
8615
+ /**
8616
+ * @param {string} value
8617
+ * @param {number=} opt_index
8618
+ * @return {!proto.game.CategorySearchRequest} returns this
8619
+ */
8620
+ proto.game.CategorySearchRequest.prototype.addSlugs = function(value, opt_index) {
8621
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
8622
+ };
8623
+
8624
+
8625
+ /**
8626
+ * Clears the list making it empty but non-null.
8627
+ * @return {!proto.game.CategorySearchRequest} returns this
8628
+ */
8629
+ proto.game.CategorySearchRequest.prototype.clearSlugsList = function() {
8630
+ return this.setSlugsList([]);
8631
+ };
8632
+
8633
+
8448
8634
 
8449
8635
  /**
8450
8636
  * List of repeated fields within this message type.
8451
8637
  * @private {!Array<number>}
8452
8638
  * @const
8453
8639
  */
8454
- proto.game.CollectionSearchRequest.repeatedFields_ = [3,4];
8640
+ proto.game.CollectionSearchRequest.repeatedFields_ = [3,4,6];
8455
8641
 
8456
8642
 
8457
8643
 
@@ -8488,7 +8674,8 @@ proto.game.CollectionSearchRequest.toObject = function(includeInstance, msg) {
8488
8674
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
8489
8675
  categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
8490
8676
  idsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
8491
- locale: jspb.Message.getFieldWithDefault(msg, 5, "")
8677
+ locale: jspb.Message.getFieldWithDefault(msg, 5, ""),
8678
+ slugsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
8492
8679
  };
8493
8680
 
8494
8681
  if (includeInstance) {
@@ -8549,6 +8736,10 @@ proto.game.CollectionSearchRequest.deserializeBinaryFromReader = function(msg, r
8549
8736
  var value = /** @type {string} */ (reader.readString());
8550
8737
  msg.setLocale(value);
8551
8738
  break;
8739
+ case 6:
8740
+ var value = /** @type {string} */ (reader.readString());
8741
+ msg.addSlugs(value);
8742
+ break;
8552
8743
  default:
8553
8744
  reader.skipField();
8554
8745
  break;
@@ -8613,6 +8804,13 @@ proto.game.CollectionSearchRequest.serializeBinaryToWriter = function(message, w
8613
8804
  f
8614
8805
  );
8615
8806
  }
8807
+ f = message.getSlugsList();
8808
+ if (f.length > 0) {
8809
+ writer.writeRepeatedString(
8810
+ 6,
8811
+ f
8812
+ );
8813
+ }
8616
8814
  };
8617
8815
 
8618
8816
 
@@ -8798,13 +8996,50 @@ proto.game.CollectionSearchRequest.prototype.hasLocale = function() {
8798
8996
  };
8799
8997
 
8800
8998
 
8999
+ /**
9000
+ * repeated string slugs = 6;
9001
+ * @return {!Array<string>}
9002
+ */
9003
+ proto.game.CollectionSearchRequest.prototype.getSlugsList = function() {
9004
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
9005
+ };
9006
+
9007
+
9008
+ /**
9009
+ * @param {!Array<string>} value
9010
+ * @return {!proto.game.CollectionSearchRequest} returns this
9011
+ */
9012
+ proto.game.CollectionSearchRequest.prototype.setSlugsList = function(value) {
9013
+ return jspb.Message.setField(this, 6, value || []);
9014
+ };
9015
+
9016
+
9017
+ /**
9018
+ * @param {string} value
9019
+ * @param {number=} opt_index
9020
+ * @return {!proto.game.CollectionSearchRequest} returns this
9021
+ */
9022
+ proto.game.CollectionSearchRequest.prototype.addSlugs = function(value, opt_index) {
9023
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
9024
+ };
9025
+
9026
+
9027
+ /**
9028
+ * Clears the list making it empty but non-null.
9029
+ * @return {!proto.game.CollectionSearchRequest} returns this
9030
+ */
9031
+ proto.game.CollectionSearchRequest.prototype.clearSlugsList = function() {
9032
+ return this.setSlugsList([]);
9033
+ };
9034
+
9035
+
8801
9036
 
8802
9037
  /**
8803
9038
  * List of repeated fields within this message type.
8804
9039
  * @private {!Array<number>}
8805
9040
  * @const
8806
9041
  */
8807
- proto.game.TagSearchRequest.repeatedFields_ = [3];
9042
+ proto.game.TagSearchRequest.repeatedFields_ = [3,5];
8808
9043
 
8809
9044
 
8810
9045
 
@@ -8840,7 +9075,8 @@ proto.game.TagSearchRequest.toObject = function(includeInstance, msg) {
8840
9075
  tagTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
8841
9076
  isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
8842
9077
  idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
8843
- locale: jspb.Message.getFieldWithDefault(msg, 4, "")
9078
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
9079
+ slugsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
8844
9080
  };
8845
9081
 
8846
9082
  if (includeInstance) {
@@ -8895,6 +9131,10 @@ proto.game.TagSearchRequest.deserializeBinaryFromReader = function(msg, reader)
8895
9131
  var value = /** @type {string} */ (reader.readString());
8896
9132
  msg.setLocale(value);
8897
9133
  break;
9134
+ case 5:
9135
+ var value = /** @type {string} */ (reader.readString());
9136
+ msg.addSlugs(value);
9137
+ break;
8898
9138
  default:
8899
9139
  reader.skipField();
8900
9140
  break;
@@ -8952,6 +9192,13 @@ proto.game.TagSearchRequest.serializeBinaryToWriter = function(message, writer)
8952
9192
  f
8953
9193
  );
8954
9194
  }
9195
+ f = message.getSlugsList();
9196
+ if (f.length > 0) {
9197
+ writer.writeRepeatedString(
9198
+ 5,
9199
+ f
9200
+ );
9201
+ }
8955
9202
  };
8956
9203
 
8957
9204
 
@@ -9100,6 +9347,43 @@ proto.game.TagSearchRequest.prototype.hasLocale = function() {
9100
9347
  };
9101
9348
 
9102
9349
 
9350
+ /**
9351
+ * repeated string slugs = 5;
9352
+ * @return {!Array<string>}
9353
+ */
9354
+ proto.game.TagSearchRequest.prototype.getSlugsList = function() {
9355
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
9356
+ };
9357
+
9358
+
9359
+ /**
9360
+ * @param {!Array<string>} value
9361
+ * @return {!proto.game.TagSearchRequest} returns this
9362
+ */
9363
+ proto.game.TagSearchRequest.prototype.setSlugsList = function(value) {
9364
+ return jspb.Message.setField(this, 5, value || []);
9365
+ };
9366
+
9367
+
9368
+ /**
9369
+ * @param {string} value
9370
+ * @param {number=} opt_index
9371
+ * @return {!proto.game.TagSearchRequest} returns this
9372
+ */
9373
+ proto.game.TagSearchRequest.prototype.addSlugs = function(value, opt_index) {
9374
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
9375
+ };
9376
+
9377
+
9378
+ /**
9379
+ * Clears the list making it empty but non-null.
9380
+ * @return {!proto.game.TagSearchRequest} returns this
9381
+ */
9382
+ proto.game.TagSearchRequest.prototype.clearSlugsList = function() {
9383
+ return this.setSlugsList([]);
9384
+ };
9385
+
9386
+
9103
9387
 
9104
9388
  /**
9105
9389
  * List of repeated fields within this message type.
@@ -52203,6 +52487,1268 @@ proto.game.TagSnapshotItemsResponse.prototype.clearItemsList = function() {
52203
52487
  };
52204
52488
 
52205
52489
 
52490
+
52491
+ /**
52492
+ * List of repeated fields within this message type.
52493
+ * @private {!Array<number>}
52494
+ * @const
52495
+ */
52496
+ proto.game.CategoryHierarchyRequest.repeatedFields_ = [1];
52497
+
52498
+
52499
+
52500
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52501
+ /**
52502
+ * Creates an object representation of this proto.
52503
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
52504
+ * Optional fields that are not set will be set to undefined.
52505
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
52506
+ * For the list of reserved names please see:
52507
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52508
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52509
+ * JSPB instance for transitional soy proto support:
52510
+ * http://goto/soy-param-migration
52511
+ * @return {!Object}
52512
+ */
52513
+ proto.game.CategoryHierarchyRequest.prototype.toObject = function(opt_includeInstance) {
52514
+ return proto.game.CategoryHierarchyRequest.toObject(opt_includeInstance, this);
52515
+ };
52516
+
52517
+
52518
+ /**
52519
+ * Static version of the {@see toObject} method.
52520
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
52521
+ * the JSPB instance for transitional soy proto support:
52522
+ * http://goto/soy-param-migration
52523
+ * @param {!proto.game.CategoryHierarchyRequest} msg The msg instance to transform.
52524
+ * @return {!Object}
52525
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52526
+ */
52527
+ proto.game.CategoryHierarchyRequest.toObject = function(includeInstance, msg) {
52528
+ var f, obj = {
52529
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
52530
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
52531
+ };
52532
+
52533
+ if (includeInstance) {
52534
+ obj.$jspbMessageInstance = msg;
52535
+ }
52536
+ return obj;
52537
+ };
52538
+ }
52539
+
52540
+
52541
+ /**
52542
+ * Deserializes binary data (in protobuf wire format).
52543
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
52544
+ * @return {!proto.game.CategoryHierarchyRequest}
52545
+ */
52546
+ proto.game.CategoryHierarchyRequest.deserializeBinary = function(bytes) {
52547
+ var reader = new jspb.BinaryReader(bytes);
52548
+ var msg = new proto.game.CategoryHierarchyRequest;
52549
+ return proto.game.CategoryHierarchyRequest.deserializeBinaryFromReader(msg, reader);
52550
+ };
52551
+
52552
+
52553
+ /**
52554
+ * Deserializes binary data (in protobuf wire format) from the
52555
+ * given reader into the given message object.
52556
+ * @param {!proto.game.CategoryHierarchyRequest} msg The message object to deserialize into.
52557
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
52558
+ * @return {!proto.game.CategoryHierarchyRequest}
52559
+ */
52560
+ proto.game.CategoryHierarchyRequest.deserializeBinaryFromReader = function(msg, reader) {
52561
+ while (reader.nextField()) {
52562
+ if (reader.isEndGroup()) {
52563
+ break;
52564
+ }
52565
+ var field = reader.getFieldNumber();
52566
+ switch (field) {
52567
+ case 1:
52568
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
52569
+ for (var i = 0; i < values.length; i++) {
52570
+ msg.addIds(values[i]);
52571
+ }
52572
+ break;
52573
+ case 2:
52574
+ var value = /** @type {string} */ (reader.readString());
52575
+ msg.setLocale(value);
52576
+ break;
52577
+ default:
52578
+ reader.skipField();
52579
+ break;
52580
+ }
52581
+ }
52582
+ return msg;
52583
+ };
52584
+
52585
+
52586
+ /**
52587
+ * Serializes the message to binary data (in protobuf wire format).
52588
+ * @return {!Uint8Array}
52589
+ */
52590
+ proto.game.CategoryHierarchyRequest.prototype.serializeBinary = function() {
52591
+ var writer = new jspb.BinaryWriter();
52592
+ proto.game.CategoryHierarchyRequest.serializeBinaryToWriter(this, writer);
52593
+ return writer.getResultBuffer();
52594
+ };
52595
+
52596
+
52597
+ /**
52598
+ * Serializes the given message to binary data (in protobuf wire
52599
+ * format), writing to the given BinaryWriter.
52600
+ * @param {!proto.game.CategoryHierarchyRequest} message
52601
+ * @param {!jspb.BinaryWriter} writer
52602
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52603
+ */
52604
+ proto.game.CategoryHierarchyRequest.serializeBinaryToWriter = function(message, writer) {
52605
+ var f = undefined;
52606
+ f = message.getIdsList();
52607
+ if (f.length > 0) {
52608
+ writer.writePackedInt32(
52609
+ 1,
52610
+ f
52611
+ );
52612
+ }
52613
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
52614
+ if (f != null) {
52615
+ writer.writeString(
52616
+ 2,
52617
+ f
52618
+ );
52619
+ }
52620
+ };
52621
+
52622
+
52623
+ /**
52624
+ * repeated int32 ids = 1;
52625
+ * @return {!Array<number>}
52626
+ */
52627
+ proto.game.CategoryHierarchyRequest.prototype.getIdsList = function() {
52628
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
52629
+ };
52630
+
52631
+
52632
+ /**
52633
+ * @param {!Array<number>} value
52634
+ * @return {!proto.game.CategoryHierarchyRequest} returns this
52635
+ */
52636
+ proto.game.CategoryHierarchyRequest.prototype.setIdsList = function(value) {
52637
+ return jspb.Message.setField(this, 1, value || []);
52638
+ };
52639
+
52640
+
52641
+ /**
52642
+ * @param {number} value
52643
+ * @param {number=} opt_index
52644
+ * @return {!proto.game.CategoryHierarchyRequest} returns this
52645
+ */
52646
+ proto.game.CategoryHierarchyRequest.prototype.addIds = function(value, opt_index) {
52647
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
52648
+ };
52649
+
52650
+
52651
+ /**
52652
+ * Clears the list making it empty but non-null.
52653
+ * @return {!proto.game.CategoryHierarchyRequest} returns this
52654
+ */
52655
+ proto.game.CategoryHierarchyRequest.prototype.clearIdsList = function() {
52656
+ return this.setIdsList([]);
52657
+ };
52658
+
52659
+
52660
+ /**
52661
+ * optional string locale = 2;
52662
+ * @return {string}
52663
+ */
52664
+ proto.game.CategoryHierarchyRequest.prototype.getLocale = function() {
52665
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
52666
+ };
52667
+
52668
+
52669
+ /**
52670
+ * @param {string} value
52671
+ * @return {!proto.game.CategoryHierarchyRequest} returns this
52672
+ */
52673
+ proto.game.CategoryHierarchyRequest.prototype.setLocale = function(value) {
52674
+ return jspb.Message.setField(this, 2, value);
52675
+ };
52676
+
52677
+
52678
+ /**
52679
+ * Clears the field making it undefined.
52680
+ * @return {!proto.game.CategoryHierarchyRequest} returns this
52681
+ */
52682
+ proto.game.CategoryHierarchyRequest.prototype.clearLocale = function() {
52683
+ return jspb.Message.setField(this, 2, undefined);
52684
+ };
52685
+
52686
+
52687
+ /**
52688
+ * Returns whether this field is set.
52689
+ * @return {boolean}
52690
+ */
52691
+ proto.game.CategoryHierarchyRequest.prototype.hasLocale = function() {
52692
+ return jspb.Message.getField(this, 2) != null;
52693
+ };
52694
+
52695
+
52696
+
52697
+
52698
+
52699
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52700
+ /**
52701
+ * Creates an object representation of this proto.
52702
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
52703
+ * Optional fields that are not set will be set to undefined.
52704
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
52705
+ * For the list of reserved names please see:
52706
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52707
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52708
+ * JSPB instance for transitional soy proto support:
52709
+ * http://goto/soy-param-migration
52710
+ * @return {!Object}
52711
+ */
52712
+ proto.game.CategoryHierarchyCollectionItem.prototype.toObject = function(opt_includeInstance) {
52713
+ return proto.game.CategoryHierarchyCollectionItem.toObject(opt_includeInstance, this);
52714
+ };
52715
+
52716
+
52717
+ /**
52718
+ * Static version of the {@see toObject} method.
52719
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
52720
+ * the JSPB instance for transitional soy proto support:
52721
+ * http://goto/soy-param-migration
52722
+ * @param {!proto.game.CategoryHierarchyCollectionItem} msg The msg instance to transform.
52723
+ * @return {!Object}
52724
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52725
+ */
52726
+ proto.game.CategoryHierarchyCollectionItem.toObject = function(includeInstance, msg) {
52727
+ var f, obj = {
52728
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
52729
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
52730
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
52731
+ image: jspb.Message.getFieldWithDefault(msg, 4, ""),
52732
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 5, ""),
52733
+ icon: jspb.Message.getFieldWithDefault(msg, 6, ""),
52734
+ iconCdn: jspb.Message.getFieldWithDefault(msg, 7, "")
52735
+ };
52736
+
52737
+ if (includeInstance) {
52738
+ obj.$jspbMessageInstance = msg;
52739
+ }
52740
+ return obj;
52741
+ };
52742
+ }
52743
+
52744
+
52745
+ /**
52746
+ * Deserializes binary data (in protobuf wire format).
52747
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
52748
+ * @return {!proto.game.CategoryHierarchyCollectionItem}
52749
+ */
52750
+ proto.game.CategoryHierarchyCollectionItem.deserializeBinary = function(bytes) {
52751
+ var reader = new jspb.BinaryReader(bytes);
52752
+ var msg = new proto.game.CategoryHierarchyCollectionItem;
52753
+ return proto.game.CategoryHierarchyCollectionItem.deserializeBinaryFromReader(msg, reader);
52754
+ };
52755
+
52756
+
52757
+ /**
52758
+ * Deserializes binary data (in protobuf wire format) from the
52759
+ * given reader into the given message object.
52760
+ * @param {!proto.game.CategoryHierarchyCollectionItem} msg The message object to deserialize into.
52761
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
52762
+ * @return {!proto.game.CategoryHierarchyCollectionItem}
52763
+ */
52764
+ proto.game.CategoryHierarchyCollectionItem.deserializeBinaryFromReader = function(msg, reader) {
52765
+ while (reader.nextField()) {
52766
+ if (reader.isEndGroup()) {
52767
+ break;
52768
+ }
52769
+ var field = reader.getFieldNumber();
52770
+ switch (field) {
52771
+ case 1:
52772
+ var value = /** @type {number} */ (reader.readInt32());
52773
+ msg.setId(value);
52774
+ break;
52775
+ case 2:
52776
+ var value = /** @type {string} */ (reader.readString());
52777
+ msg.setTitle(value);
52778
+ break;
52779
+ case 3:
52780
+ var value = /** @type {string} */ (reader.readString());
52781
+ msg.setSlug(value);
52782
+ break;
52783
+ case 4:
52784
+ var value = /** @type {string} */ (reader.readString());
52785
+ msg.setImage(value);
52786
+ break;
52787
+ case 5:
52788
+ var value = /** @type {string} */ (reader.readString());
52789
+ msg.setImageCdn(value);
52790
+ break;
52791
+ case 6:
52792
+ var value = /** @type {string} */ (reader.readString());
52793
+ msg.setIcon(value);
52794
+ break;
52795
+ case 7:
52796
+ var value = /** @type {string} */ (reader.readString());
52797
+ msg.setIconCdn(value);
52798
+ break;
52799
+ default:
52800
+ reader.skipField();
52801
+ break;
52802
+ }
52803
+ }
52804
+ return msg;
52805
+ };
52806
+
52807
+
52808
+ /**
52809
+ * Serializes the message to binary data (in protobuf wire format).
52810
+ * @return {!Uint8Array}
52811
+ */
52812
+ proto.game.CategoryHierarchyCollectionItem.prototype.serializeBinary = function() {
52813
+ var writer = new jspb.BinaryWriter();
52814
+ proto.game.CategoryHierarchyCollectionItem.serializeBinaryToWriter(this, writer);
52815
+ return writer.getResultBuffer();
52816
+ };
52817
+
52818
+
52819
+ /**
52820
+ * Serializes the given message to binary data (in protobuf wire
52821
+ * format), writing to the given BinaryWriter.
52822
+ * @param {!proto.game.CategoryHierarchyCollectionItem} message
52823
+ * @param {!jspb.BinaryWriter} writer
52824
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52825
+ */
52826
+ proto.game.CategoryHierarchyCollectionItem.serializeBinaryToWriter = function(message, writer) {
52827
+ var f = undefined;
52828
+ f = message.getId();
52829
+ if (f !== 0) {
52830
+ writer.writeInt32(
52831
+ 1,
52832
+ f
52833
+ );
52834
+ }
52835
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
52836
+ if (f != null) {
52837
+ writer.writeString(
52838
+ 2,
52839
+ f
52840
+ );
52841
+ }
52842
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
52843
+ if (f != null) {
52844
+ writer.writeString(
52845
+ 3,
52846
+ f
52847
+ );
52848
+ }
52849
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
52850
+ if (f != null) {
52851
+ writer.writeString(
52852
+ 4,
52853
+ f
52854
+ );
52855
+ }
52856
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
52857
+ if (f != null) {
52858
+ writer.writeString(
52859
+ 5,
52860
+ f
52861
+ );
52862
+ }
52863
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
52864
+ if (f != null) {
52865
+ writer.writeString(
52866
+ 6,
52867
+ f
52868
+ );
52869
+ }
52870
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
52871
+ if (f != null) {
52872
+ writer.writeString(
52873
+ 7,
52874
+ f
52875
+ );
52876
+ }
52877
+ };
52878
+
52879
+
52880
+ /**
52881
+ * optional int32 id = 1;
52882
+ * @return {number}
52883
+ */
52884
+ proto.game.CategoryHierarchyCollectionItem.prototype.getId = function() {
52885
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
52886
+ };
52887
+
52888
+
52889
+ /**
52890
+ * @param {number} value
52891
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
52892
+ */
52893
+ proto.game.CategoryHierarchyCollectionItem.prototype.setId = function(value) {
52894
+ return jspb.Message.setProto3IntField(this, 1, value);
52895
+ };
52896
+
52897
+
52898
+ /**
52899
+ * optional string title = 2;
52900
+ * @return {string}
52901
+ */
52902
+ proto.game.CategoryHierarchyCollectionItem.prototype.getTitle = function() {
52903
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
52904
+ };
52905
+
52906
+
52907
+ /**
52908
+ * @param {string} value
52909
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
52910
+ */
52911
+ proto.game.CategoryHierarchyCollectionItem.prototype.setTitle = function(value) {
52912
+ return jspb.Message.setField(this, 2, value);
52913
+ };
52914
+
52915
+
52916
+ /**
52917
+ * Clears the field making it undefined.
52918
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
52919
+ */
52920
+ proto.game.CategoryHierarchyCollectionItem.prototype.clearTitle = function() {
52921
+ return jspb.Message.setField(this, 2, undefined);
52922
+ };
52923
+
52924
+
52925
+ /**
52926
+ * Returns whether this field is set.
52927
+ * @return {boolean}
52928
+ */
52929
+ proto.game.CategoryHierarchyCollectionItem.prototype.hasTitle = function() {
52930
+ return jspb.Message.getField(this, 2) != null;
52931
+ };
52932
+
52933
+
52934
+ /**
52935
+ * optional string slug = 3;
52936
+ * @return {string}
52937
+ */
52938
+ proto.game.CategoryHierarchyCollectionItem.prototype.getSlug = function() {
52939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
52940
+ };
52941
+
52942
+
52943
+ /**
52944
+ * @param {string} value
52945
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
52946
+ */
52947
+ proto.game.CategoryHierarchyCollectionItem.prototype.setSlug = function(value) {
52948
+ return jspb.Message.setField(this, 3, value);
52949
+ };
52950
+
52951
+
52952
+ /**
52953
+ * Clears the field making it undefined.
52954
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
52955
+ */
52956
+ proto.game.CategoryHierarchyCollectionItem.prototype.clearSlug = function() {
52957
+ return jspb.Message.setField(this, 3, undefined);
52958
+ };
52959
+
52960
+
52961
+ /**
52962
+ * Returns whether this field is set.
52963
+ * @return {boolean}
52964
+ */
52965
+ proto.game.CategoryHierarchyCollectionItem.prototype.hasSlug = function() {
52966
+ return jspb.Message.getField(this, 3) != null;
52967
+ };
52968
+
52969
+
52970
+ /**
52971
+ * optional string image = 4;
52972
+ * @return {string}
52973
+ */
52974
+ proto.game.CategoryHierarchyCollectionItem.prototype.getImage = function() {
52975
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
52976
+ };
52977
+
52978
+
52979
+ /**
52980
+ * @param {string} value
52981
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
52982
+ */
52983
+ proto.game.CategoryHierarchyCollectionItem.prototype.setImage = function(value) {
52984
+ return jspb.Message.setField(this, 4, value);
52985
+ };
52986
+
52987
+
52988
+ /**
52989
+ * Clears the field making it undefined.
52990
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
52991
+ */
52992
+ proto.game.CategoryHierarchyCollectionItem.prototype.clearImage = function() {
52993
+ return jspb.Message.setField(this, 4, undefined);
52994
+ };
52995
+
52996
+
52997
+ /**
52998
+ * Returns whether this field is set.
52999
+ * @return {boolean}
53000
+ */
53001
+ proto.game.CategoryHierarchyCollectionItem.prototype.hasImage = function() {
53002
+ return jspb.Message.getField(this, 4) != null;
53003
+ };
53004
+
53005
+
53006
+ /**
53007
+ * optional string image_cdn = 5;
53008
+ * @return {string}
53009
+ */
53010
+ proto.game.CategoryHierarchyCollectionItem.prototype.getImageCdn = function() {
53011
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
53012
+ };
53013
+
53014
+
53015
+ /**
53016
+ * @param {string} value
53017
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
53018
+ */
53019
+ proto.game.CategoryHierarchyCollectionItem.prototype.setImageCdn = function(value) {
53020
+ return jspb.Message.setField(this, 5, value);
53021
+ };
53022
+
53023
+
53024
+ /**
53025
+ * Clears the field making it undefined.
53026
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
53027
+ */
53028
+ proto.game.CategoryHierarchyCollectionItem.prototype.clearImageCdn = function() {
53029
+ return jspb.Message.setField(this, 5, undefined);
53030
+ };
53031
+
53032
+
53033
+ /**
53034
+ * Returns whether this field is set.
53035
+ * @return {boolean}
53036
+ */
53037
+ proto.game.CategoryHierarchyCollectionItem.prototype.hasImageCdn = function() {
53038
+ return jspb.Message.getField(this, 5) != null;
53039
+ };
53040
+
53041
+
53042
+ /**
53043
+ * optional string icon = 6;
53044
+ * @return {string}
53045
+ */
53046
+ proto.game.CategoryHierarchyCollectionItem.prototype.getIcon = function() {
53047
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
53048
+ };
53049
+
53050
+
53051
+ /**
53052
+ * @param {string} value
53053
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
53054
+ */
53055
+ proto.game.CategoryHierarchyCollectionItem.prototype.setIcon = function(value) {
53056
+ return jspb.Message.setField(this, 6, value);
53057
+ };
53058
+
53059
+
53060
+ /**
53061
+ * Clears the field making it undefined.
53062
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
53063
+ */
53064
+ proto.game.CategoryHierarchyCollectionItem.prototype.clearIcon = function() {
53065
+ return jspb.Message.setField(this, 6, undefined);
53066
+ };
53067
+
53068
+
53069
+ /**
53070
+ * Returns whether this field is set.
53071
+ * @return {boolean}
53072
+ */
53073
+ proto.game.CategoryHierarchyCollectionItem.prototype.hasIcon = function() {
53074
+ return jspb.Message.getField(this, 6) != null;
53075
+ };
53076
+
53077
+
53078
+ /**
53079
+ * optional string icon_cdn = 7;
53080
+ * @return {string}
53081
+ */
53082
+ proto.game.CategoryHierarchyCollectionItem.prototype.getIconCdn = function() {
53083
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
53084
+ };
53085
+
53086
+
53087
+ /**
53088
+ * @param {string} value
53089
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
53090
+ */
53091
+ proto.game.CategoryHierarchyCollectionItem.prototype.setIconCdn = function(value) {
53092
+ return jspb.Message.setField(this, 7, value);
53093
+ };
53094
+
53095
+
53096
+ /**
53097
+ * Clears the field making it undefined.
53098
+ * @return {!proto.game.CategoryHierarchyCollectionItem} returns this
53099
+ */
53100
+ proto.game.CategoryHierarchyCollectionItem.prototype.clearIconCdn = function() {
53101
+ return jspb.Message.setField(this, 7, undefined);
53102
+ };
53103
+
53104
+
53105
+ /**
53106
+ * Returns whether this field is set.
53107
+ * @return {boolean}
53108
+ */
53109
+ proto.game.CategoryHierarchyCollectionItem.prototype.hasIconCdn = function() {
53110
+ return jspb.Message.getField(this, 7) != null;
53111
+ };
53112
+
53113
+
53114
+
53115
+ /**
53116
+ * List of repeated fields within this message type.
53117
+ * @private {!Array<number>}
53118
+ * @const
53119
+ */
53120
+ proto.game.CategoryHierarchyItem.repeatedFields_ = [8];
53121
+
53122
+
53123
+
53124
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53125
+ /**
53126
+ * Creates an object representation of this proto.
53127
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53128
+ * Optional fields that are not set will be set to undefined.
53129
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53130
+ * For the list of reserved names please see:
53131
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53132
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53133
+ * JSPB instance for transitional soy proto support:
53134
+ * http://goto/soy-param-migration
53135
+ * @return {!Object}
53136
+ */
53137
+ proto.game.CategoryHierarchyItem.prototype.toObject = function(opt_includeInstance) {
53138
+ return proto.game.CategoryHierarchyItem.toObject(opt_includeInstance, this);
53139
+ };
53140
+
53141
+
53142
+ /**
53143
+ * Static version of the {@see toObject} method.
53144
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53145
+ * the JSPB instance for transitional soy proto support:
53146
+ * http://goto/soy-param-migration
53147
+ * @param {!proto.game.CategoryHierarchyItem} msg The msg instance to transform.
53148
+ * @return {!Object}
53149
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53150
+ */
53151
+ proto.game.CategoryHierarchyItem.toObject = function(includeInstance, msg) {
53152
+ var f, obj = {
53153
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
53154
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
53155
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
53156
+ image: jspb.Message.getFieldWithDefault(msg, 4, ""),
53157
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 5, ""),
53158
+ icon: jspb.Message.getFieldWithDefault(msg, 6, ""),
53159
+ iconCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
53160
+ collectionsList: jspb.Message.toObjectList(msg.getCollectionsList(),
53161
+ proto.game.CategoryHierarchyCollectionItem.toObject, includeInstance)
53162
+ };
53163
+
53164
+ if (includeInstance) {
53165
+ obj.$jspbMessageInstance = msg;
53166
+ }
53167
+ return obj;
53168
+ };
53169
+ }
53170
+
53171
+
53172
+ /**
53173
+ * Deserializes binary data (in protobuf wire format).
53174
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53175
+ * @return {!proto.game.CategoryHierarchyItem}
53176
+ */
53177
+ proto.game.CategoryHierarchyItem.deserializeBinary = function(bytes) {
53178
+ var reader = new jspb.BinaryReader(bytes);
53179
+ var msg = new proto.game.CategoryHierarchyItem;
53180
+ return proto.game.CategoryHierarchyItem.deserializeBinaryFromReader(msg, reader);
53181
+ };
53182
+
53183
+
53184
+ /**
53185
+ * Deserializes binary data (in protobuf wire format) from the
53186
+ * given reader into the given message object.
53187
+ * @param {!proto.game.CategoryHierarchyItem} msg The message object to deserialize into.
53188
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53189
+ * @return {!proto.game.CategoryHierarchyItem}
53190
+ */
53191
+ proto.game.CategoryHierarchyItem.deserializeBinaryFromReader = function(msg, reader) {
53192
+ while (reader.nextField()) {
53193
+ if (reader.isEndGroup()) {
53194
+ break;
53195
+ }
53196
+ var field = reader.getFieldNumber();
53197
+ switch (field) {
53198
+ case 1:
53199
+ var value = /** @type {number} */ (reader.readInt32());
53200
+ msg.setId(value);
53201
+ break;
53202
+ case 2:
53203
+ var value = /** @type {string} */ (reader.readString());
53204
+ msg.setTitle(value);
53205
+ break;
53206
+ case 3:
53207
+ var value = /** @type {string} */ (reader.readString());
53208
+ msg.setSlug(value);
53209
+ break;
53210
+ case 4:
53211
+ var value = /** @type {string} */ (reader.readString());
53212
+ msg.setImage(value);
53213
+ break;
53214
+ case 5:
53215
+ var value = /** @type {string} */ (reader.readString());
53216
+ msg.setImageCdn(value);
53217
+ break;
53218
+ case 6:
53219
+ var value = /** @type {string} */ (reader.readString());
53220
+ msg.setIcon(value);
53221
+ break;
53222
+ case 7:
53223
+ var value = /** @type {string} */ (reader.readString());
53224
+ msg.setIconCdn(value);
53225
+ break;
53226
+ case 8:
53227
+ var value = new proto.game.CategoryHierarchyCollectionItem;
53228
+ reader.readMessage(value,proto.game.CategoryHierarchyCollectionItem.deserializeBinaryFromReader);
53229
+ msg.addCollections(value);
53230
+ break;
53231
+ default:
53232
+ reader.skipField();
53233
+ break;
53234
+ }
53235
+ }
53236
+ return msg;
53237
+ };
53238
+
53239
+
53240
+ /**
53241
+ * Serializes the message to binary data (in protobuf wire format).
53242
+ * @return {!Uint8Array}
53243
+ */
53244
+ proto.game.CategoryHierarchyItem.prototype.serializeBinary = function() {
53245
+ var writer = new jspb.BinaryWriter();
53246
+ proto.game.CategoryHierarchyItem.serializeBinaryToWriter(this, writer);
53247
+ return writer.getResultBuffer();
53248
+ };
53249
+
53250
+
53251
+ /**
53252
+ * Serializes the given message to binary data (in protobuf wire
53253
+ * format), writing to the given BinaryWriter.
53254
+ * @param {!proto.game.CategoryHierarchyItem} message
53255
+ * @param {!jspb.BinaryWriter} writer
53256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53257
+ */
53258
+ proto.game.CategoryHierarchyItem.serializeBinaryToWriter = function(message, writer) {
53259
+ var f = undefined;
53260
+ f = message.getId();
53261
+ if (f !== 0) {
53262
+ writer.writeInt32(
53263
+ 1,
53264
+ f
53265
+ );
53266
+ }
53267
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
53268
+ if (f != null) {
53269
+ writer.writeString(
53270
+ 2,
53271
+ f
53272
+ );
53273
+ }
53274
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
53275
+ if (f != null) {
53276
+ writer.writeString(
53277
+ 3,
53278
+ f
53279
+ );
53280
+ }
53281
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
53282
+ if (f != null) {
53283
+ writer.writeString(
53284
+ 4,
53285
+ f
53286
+ );
53287
+ }
53288
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
53289
+ if (f != null) {
53290
+ writer.writeString(
53291
+ 5,
53292
+ f
53293
+ );
53294
+ }
53295
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
53296
+ if (f != null) {
53297
+ writer.writeString(
53298
+ 6,
53299
+ f
53300
+ );
53301
+ }
53302
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
53303
+ if (f != null) {
53304
+ writer.writeString(
53305
+ 7,
53306
+ f
53307
+ );
53308
+ }
53309
+ f = message.getCollectionsList();
53310
+ if (f.length > 0) {
53311
+ writer.writeRepeatedMessage(
53312
+ 8,
53313
+ f,
53314
+ proto.game.CategoryHierarchyCollectionItem.serializeBinaryToWriter
53315
+ );
53316
+ }
53317
+ };
53318
+
53319
+
53320
+ /**
53321
+ * optional int32 id = 1;
53322
+ * @return {number}
53323
+ */
53324
+ proto.game.CategoryHierarchyItem.prototype.getId = function() {
53325
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
53326
+ };
53327
+
53328
+
53329
+ /**
53330
+ * @param {number} value
53331
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53332
+ */
53333
+ proto.game.CategoryHierarchyItem.prototype.setId = function(value) {
53334
+ return jspb.Message.setProto3IntField(this, 1, value);
53335
+ };
53336
+
53337
+
53338
+ /**
53339
+ * optional string title = 2;
53340
+ * @return {string}
53341
+ */
53342
+ proto.game.CategoryHierarchyItem.prototype.getTitle = function() {
53343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
53344
+ };
53345
+
53346
+
53347
+ /**
53348
+ * @param {string} value
53349
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53350
+ */
53351
+ proto.game.CategoryHierarchyItem.prototype.setTitle = function(value) {
53352
+ return jspb.Message.setField(this, 2, value);
53353
+ };
53354
+
53355
+
53356
+ /**
53357
+ * Clears the field making it undefined.
53358
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53359
+ */
53360
+ proto.game.CategoryHierarchyItem.prototype.clearTitle = function() {
53361
+ return jspb.Message.setField(this, 2, undefined);
53362
+ };
53363
+
53364
+
53365
+ /**
53366
+ * Returns whether this field is set.
53367
+ * @return {boolean}
53368
+ */
53369
+ proto.game.CategoryHierarchyItem.prototype.hasTitle = function() {
53370
+ return jspb.Message.getField(this, 2) != null;
53371
+ };
53372
+
53373
+
53374
+ /**
53375
+ * optional string slug = 3;
53376
+ * @return {string}
53377
+ */
53378
+ proto.game.CategoryHierarchyItem.prototype.getSlug = function() {
53379
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
53380
+ };
53381
+
53382
+
53383
+ /**
53384
+ * @param {string} value
53385
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53386
+ */
53387
+ proto.game.CategoryHierarchyItem.prototype.setSlug = function(value) {
53388
+ return jspb.Message.setField(this, 3, value);
53389
+ };
53390
+
53391
+
53392
+ /**
53393
+ * Clears the field making it undefined.
53394
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53395
+ */
53396
+ proto.game.CategoryHierarchyItem.prototype.clearSlug = function() {
53397
+ return jspb.Message.setField(this, 3, undefined);
53398
+ };
53399
+
53400
+
53401
+ /**
53402
+ * Returns whether this field is set.
53403
+ * @return {boolean}
53404
+ */
53405
+ proto.game.CategoryHierarchyItem.prototype.hasSlug = function() {
53406
+ return jspb.Message.getField(this, 3) != null;
53407
+ };
53408
+
53409
+
53410
+ /**
53411
+ * optional string image = 4;
53412
+ * @return {string}
53413
+ */
53414
+ proto.game.CategoryHierarchyItem.prototype.getImage = function() {
53415
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
53416
+ };
53417
+
53418
+
53419
+ /**
53420
+ * @param {string} value
53421
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53422
+ */
53423
+ proto.game.CategoryHierarchyItem.prototype.setImage = function(value) {
53424
+ return jspb.Message.setField(this, 4, value);
53425
+ };
53426
+
53427
+
53428
+ /**
53429
+ * Clears the field making it undefined.
53430
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53431
+ */
53432
+ proto.game.CategoryHierarchyItem.prototype.clearImage = function() {
53433
+ return jspb.Message.setField(this, 4, undefined);
53434
+ };
53435
+
53436
+
53437
+ /**
53438
+ * Returns whether this field is set.
53439
+ * @return {boolean}
53440
+ */
53441
+ proto.game.CategoryHierarchyItem.prototype.hasImage = function() {
53442
+ return jspb.Message.getField(this, 4) != null;
53443
+ };
53444
+
53445
+
53446
+ /**
53447
+ * optional string image_cdn = 5;
53448
+ * @return {string}
53449
+ */
53450
+ proto.game.CategoryHierarchyItem.prototype.getImageCdn = function() {
53451
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
53452
+ };
53453
+
53454
+
53455
+ /**
53456
+ * @param {string} value
53457
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53458
+ */
53459
+ proto.game.CategoryHierarchyItem.prototype.setImageCdn = function(value) {
53460
+ return jspb.Message.setField(this, 5, value);
53461
+ };
53462
+
53463
+
53464
+ /**
53465
+ * Clears the field making it undefined.
53466
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53467
+ */
53468
+ proto.game.CategoryHierarchyItem.prototype.clearImageCdn = function() {
53469
+ return jspb.Message.setField(this, 5, undefined);
53470
+ };
53471
+
53472
+
53473
+ /**
53474
+ * Returns whether this field is set.
53475
+ * @return {boolean}
53476
+ */
53477
+ proto.game.CategoryHierarchyItem.prototype.hasImageCdn = function() {
53478
+ return jspb.Message.getField(this, 5) != null;
53479
+ };
53480
+
53481
+
53482
+ /**
53483
+ * optional string icon = 6;
53484
+ * @return {string}
53485
+ */
53486
+ proto.game.CategoryHierarchyItem.prototype.getIcon = function() {
53487
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
53488
+ };
53489
+
53490
+
53491
+ /**
53492
+ * @param {string} value
53493
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53494
+ */
53495
+ proto.game.CategoryHierarchyItem.prototype.setIcon = function(value) {
53496
+ return jspb.Message.setField(this, 6, value);
53497
+ };
53498
+
53499
+
53500
+ /**
53501
+ * Clears the field making it undefined.
53502
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53503
+ */
53504
+ proto.game.CategoryHierarchyItem.prototype.clearIcon = function() {
53505
+ return jspb.Message.setField(this, 6, undefined);
53506
+ };
53507
+
53508
+
53509
+ /**
53510
+ * Returns whether this field is set.
53511
+ * @return {boolean}
53512
+ */
53513
+ proto.game.CategoryHierarchyItem.prototype.hasIcon = function() {
53514
+ return jspb.Message.getField(this, 6) != null;
53515
+ };
53516
+
53517
+
53518
+ /**
53519
+ * optional string icon_cdn = 7;
53520
+ * @return {string}
53521
+ */
53522
+ proto.game.CategoryHierarchyItem.prototype.getIconCdn = function() {
53523
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
53524
+ };
53525
+
53526
+
53527
+ /**
53528
+ * @param {string} value
53529
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53530
+ */
53531
+ proto.game.CategoryHierarchyItem.prototype.setIconCdn = function(value) {
53532
+ return jspb.Message.setField(this, 7, value);
53533
+ };
53534
+
53535
+
53536
+ /**
53537
+ * Clears the field making it undefined.
53538
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53539
+ */
53540
+ proto.game.CategoryHierarchyItem.prototype.clearIconCdn = function() {
53541
+ return jspb.Message.setField(this, 7, undefined);
53542
+ };
53543
+
53544
+
53545
+ /**
53546
+ * Returns whether this field is set.
53547
+ * @return {boolean}
53548
+ */
53549
+ proto.game.CategoryHierarchyItem.prototype.hasIconCdn = function() {
53550
+ return jspb.Message.getField(this, 7) != null;
53551
+ };
53552
+
53553
+
53554
+ /**
53555
+ * repeated CategoryHierarchyCollectionItem collections = 8;
53556
+ * @return {!Array<!proto.game.CategoryHierarchyCollectionItem>}
53557
+ */
53558
+ proto.game.CategoryHierarchyItem.prototype.getCollectionsList = function() {
53559
+ return /** @type{!Array<!proto.game.CategoryHierarchyCollectionItem>} */ (
53560
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CategoryHierarchyCollectionItem, 8));
53561
+ };
53562
+
53563
+
53564
+ /**
53565
+ * @param {!Array<!proto.game.CategoryHierarchyCollectionItem>} value
53566
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53567
+ */
53568
+ proto.game.CategoryHierarchyItem.prototype.setCollectionsList = function(value) {
53569
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
53570
+ };
53571
+
53572
+
53573
+ /**
53574
+ * @param {!proto.game.CategoryHierarchyCollectionItem=} opt_value
53575
+ * @param {number=} opt_index
53576
+ * @return {!proto.game.CategoryHierarchyCollectionItem}
53577
+ */
53578
+ proto.game.CategoryHierarchyItem.prototype.addCollections = function(opt_value, opt_index) {
53579
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.game.CategoryHierarchyCollectionItem, opt_index);
53580
+ };
53581
+
53582
+
53583
+ /**
53584
+ * Clears the list making it empty but non-null.
53585
+ * @return {!proto.game.CategoryHierarchyItem} returns this
53586
+ */
53587
+ proto.game.CategoryHierarchyItem.prototype.clearCollectionsList = function() {
53588
+ return this.setCollectionsList([]);
53589
+ };
53590
+
53591
+
53592
+
53593
+ /**
53594
+ * List of repeated fields within this message type.
53595
+ * @private {!Array<number>}
53596
+ * @const
53597
+ */
53598
+ proto.game.CategoryHierarchyResponse.repeatedFields_ = [1];
53599
+
53600
+
53601
+
53602
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53603
+ /**
53604
+ * Creates an object representation of this proto.
53605
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53606
+ * Optional fields that are not set will be set to undefined.
53607
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53608
+ * For the list of reserved names please see:
53609
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53610
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53611
+ * JSPB instance for transitional soy proto support:
53612
+ * http://goto/soy-param-migration
53613
+ * @return {!Object}
53614
+ */
53615
+ proto.game.CategoryHierarchyResponse.prototype.toObject = function(opt_includeInstance) {
53616
+ return proto.game.CategoryHierarchyResponse.toObject(opt_includeInstance, this);
53617
+ };
53618
+
53619
+
53620
+ /**
53621
+ * Static version of the {@see toObject} method.
53622
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53623
+ * the JSPB instance for transitional soy proto support:
53624
+ * http://goto/soy-param-migration
53625
+ * @param {!proto.game.CategoryHierarchyResponse} msg The msg instance to transform.
53626
+ * @return {!Object}
53627
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53628
+ */
53629
+ proto.game.CategoryHierarchyResponse.toObject = function(includeInstance, msg) {
53630
+ var f, obj = {
53631
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
53632
+ proto.game.CategoryHierarchyItem.toObject, includeInstance)
53633
+ };
53634
+
53635
+ if (includeInstance) {
53636
+ obj.$jspbMessageInstance = msg;
53637
+ }
53638
+ return obj;
53639
+ };
53640
+ }
53641
+
53642
+
53643
+ /**
53644
+ * Deserializes binary data (in protobuf wire format).
53645
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53646
+ * @return {!proto.game.CategoryHierarchyResponse}
53647
+ */
53648
+ proto.game.CategoryHierarchyResponse.deserializeBinary = function(bytes) {
53649
+ var reader = new jspb.BinaryReader(bytes);
53650
+ var msg = new proto.game.CategoryHierarchyResponse;
53651
+ return proto.game.CategoryHierarchyResponse.deserializeBinaryFromReader(msg, reader);
53652
+ };
53653
+
53654
+
53655
+ /**
53656
+ * Deserializes binary data (in protobuf wire format) from the
53657
+ * given reader into the given message object.
53658
+ * @param {!proto.game.CategoryHierarchyResponse} msg The message object to deserialize into.
53659
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53660
+ * @return {!proto.game.CategoryHierarchyResponse}
53661
+ */
53662
+ proto.game.CategoryHierarchyResponse.deserializeBinaryFromReader = function(msg, reader) {
53663
+ while (reader.nextField()) {
53664
+ if (reader.isEndGroup()) {
53665
+ break;
53666
+ }
53667
+ var field = reader.getFieldNumber();
53668
+ switch (field) {
53669
+ case 1:
53670
+ var value = new proto.game.CategoryHierarchyItem;
53671
+ reader.readMessage(value,proto.game.CategoryHierarchyItem.deserializeBinaryFromReader);
53672
+ msg.addItems(value);
53673
+ break;
53674
+ default:
53675
+ reader.skipField();
53676
+ break;
53677
+ }
53678
+ }
53679
+ return msg;
53680
+ };
53681
+
53682
+
53683
+ /**
53684
+ * Serializes the message to binary data (in protobuf wire format).
53685
+ * @return {!Uint8Array}
53686
+ */
53687
+ proto.game.CategoryHierarchyResponse.prototype.serializeBinary = function() {
53688
+ var writer = new jspb.BinaryWriter();
53689
+ proto.game.CategoryHierarchyResponse.serializeBinaryToWriter(this, writer);
53690
+ return writer.getResultBuffer();
53691
+ };
53692
+
53693
+
53694
+ /**
53695
+ * Serializes the given message to binary data (in protobuf wire
53696
+ * format), writing to the given BinaryWriter.
53697
+ * @param {!proto.game.CategoryHierarchyResponse} message
53698
+ * @param {!jspb.BinaryWriter} writer
53699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53700
+ */
53701
+ proto.game.CategoryHierarchyResponse.serializeBinaryToWriter = function(message, writer) {
53702
+ var f = undefined;
53703
+ f = message.getItemsList();
53704
+ if (f.length > 0) {
53705
+ writer.writeRepeatedMessage(
53706
+ 1,
53707
+ f,
53708
+ proto.game.CategoryHierarchyItem.serializeBinaryToWriter
53709
+ );
53710
+ }
53711
+ };
53712
+
53713
+
53714
+ /**
53715
+ * repeated CategoryHierarchyItem items = 1;
53716
+ * @return {!Array<!proto.game.CategoryHierarchyItem>}
53717
+ */
53718
+ proto.game.CategoryHierarchyResponse.prototype.getItemsList = function() {
53719
+ return /** @type{!Array<!proto.game.CategoryHierarchyItem>} */ (
53720
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CategoryHierarchyItem, 1));
53721
+ };
53722
+
53723
+
53724
+ /**
53725
+ * @param {!Array<!proto.game.CategoryHierarchyItem>} value
53726
+ * @return {!proto.game.CategoryHierarchyResponse} returns this
53727
+ */
53728
+ proto.game.CategoryHierarchyResponse.prototype.setItemsList = function(value) {
53729
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
53730
+ };
53731
+
53732
+
53733
+ /**
53734
+ * @param {!proto.game.CategoryHierarchyItem=} opt_value
53735
+ * @param {number=} opt_index
53736
+ * @return {!proto.game.CategoryHierarchyItem}
53737
+ */
53738
+ proto.game.CategoryHierarchyResponse.prototype.addItems = function(opt_value, opt_index) {
53739
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CategoryHierarchyItem, opt_index);
53740
+ };
53741
+
53742
+
53743
+ /**
53744
+ * Clears the list making it empty but non-null.
53745
+ * @return {!proto.game.CategoryHierarchyResponse} returns this
53746
+ */
53747
+ proto.game.CategoryHierarchyResponse.prototype.clearItemsList = function() {
53748
+ return this.setItemsList([]);
53749
+ };
53750
+
53751
+
52206
53752
  /**
52207
53753
  * @enum {number}
52208
53754
  */