protobuf-platform 1.2.246 → 1.2.248

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
@@ -138,7 +138,11 @@ goog.exportSymbol('proto.game.TagRequest.RequestCase', null, global);
138
138
  goog.exportSymbol('proto.game.TagResponse', null, global);
139
139
  goog.exportSymbol('proto.game.TagSearchRequest', null, global);
140
140
  goog.exportSymbol('proto.game.TagStatusResponse', null, global);
141
+ goog.exportSymbol('proto.game.TournamentGamesPreviewItem', null, global);
142
+ goog.exportSymbol('proto.game.TournamentGamesPreviewResponse', null, global);
141
143
  goog.exportSymbol('proto.game.TournamentGamesRequest', null, global);
144
+ goog.exportSymbol('proto.game.TournamentGamesSearchRequest', null, global);
145
+ goog.exportSymbol('proto.game.TournamentIdsRequest', null, global);
142
146
  goog.exportSymbol('proto.game.TournamentSearchRequest', null, global);
143
147
  goog.exportSymbol('proto.game.UserBalanceGameSessionRequest', null, global);
144
148
  goog.exportSymbol('proto.game.VendorActionRequest', null, global);
@@ -296,6 +300,90 @@ if (goog.DEBUG && !COMPILED) {
296
300
  */
297
301
  proto.game.TournamentSearchRequest.displayName = 'proto.game.TournamentSearchRequest';
298
302
  }
303
+ /**
304
+ * Generated by JsPbCodeGenerator.
305
+ * @param {Array=} opt_data Optional initial data array, typically from a
306
+ * server response, or constructed directly in Javascript. The array is used
307
+ * in place and becomes part of the constructed object. It is not cloned.
308
+ * If no data is provided, the constructed object will be empty, but still
309
+ * valid.
310
+ * @extends {jspb.Message}
311
+ * @constructor
312
+ */
313
+ proto.game.TournamentGamesSearchRequest = function(opt_data) {
314
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
315
+ };
316
+ goog.inherits(proto.game.TournamentGamesSearchRequest, jspb.Message);
317
+ if (goog.DEBUG && !COMPILED) {
318
+ /**
319
+ * @public
320
+ * @override
321
+ */
322
+ proto.game.TournamentGamesSearchRequest.displayName = 'proto.game.TournamentGamesSearchRequest';
323
+ }
324
+ /**
325
+ * Generated by JsPbCodeGenerator.
326
+ * @param {Array=} opt_data Optional initial data array, typically from a
327
+ * server response, or constructed directly in Javascript. The array is used
328
+ * in place and becomes part of the constructed object. It is not cloned.
329
+ * If no data is provided, the constructed object will be empty, but still
330
+ * valid.
331
+ * @extends {jspb.Message}
332
+ * @constructor
333
+ */
334
+ proto.game.TournamentIdsRequest = function(opt_data) {
335
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.TournamentIdsRequest.repeatedFields_, null);
336
+ };
337
+ goog.inherits(proto.game.TournamentIdsRequest, jspb.Message);
338
+ if (goog.DEBUG && !COMPILED) {
339
+ /**
340
+ * @public
341
+ * @override
342
+ */
343
+ proto.game.TournamentIdsRequest.displayName = 'proto.game.TournamentIdsRequest';
344
+ }
345
+ /**
346
+ * Generated by JsPbCodeGenerator.
347
+ * @param {Array=} opt_data Optional initial data array, typically from a
348
+ * server response, or constructed directly in Javascript. The array is used
349
+ * in place and becomes part of the constructed object. It is not cloned.
350
+ * If no data is provided, the constructed object will be empty, but still
351
+ * valid.
352
+ * @extends {jspb.Message}
353
+ * @constructor
354
+ */
355
+ proto.game.TournamentGamesPreviewResponse = function(opt_data) {
356
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.TournamentGamesPreviewResponse.repeatedFields_, null);
357
+ };
358
+ goog.inherits(proto.game.TournamentGamesPreviewResponse, jspb.Message);
359
+ if (goog.DEBUG && !COMPILED) {
360
+ /**
361
+ * @public
362
+ * @override
363
+ */
364
+ proto.game.TournamentGamesPreviewResponse.displayName = 'proto.game.TournamentGamesPreviewResponse';
365
+ }
366
+ /**
367
+ * Generated by JsPbCodeGenerator.
368
+ * @param {Array=} opt_data Optional initial data array, typically from a
369
+ * server response, or constructed directly in Javascript. The array is used
370
+ * in place and becomes part of the constructed object. It is not cloned.
371
+ * If no data is provided, the constructed object will be empty, but still
372
+ * valid.
373
+ * @extends {jspb.Message}
374
+ * @constructor
375
+ */
376
+ proto.game.TournamentGamesPreviewItem = function(opt_data) {
377
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.TournamentGamesPreviewItem.repeatedFields_, null);
378
+ };
379
+ goog.inherits(proto.game.TournamentGamesPreviewItem, jspb.Message);
380
+ if (goog.DEBUG && !COMPILED) {
381
+ /**
382
+ * @public
383
+ * @override
384
+ */
385
+ proto.game.TournamentGamesPreviewItem.displayName = 'proto.game.TournamentGamesPreviewItem';
386
+ }
299
387
  /**
300
388
  * Generated by JsPbCodeGenerator.
301
389
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3035,7 +3123,8 @@ proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
3035
3123
  providerSearchParams: (f = msg.getProviderSearchParams()) && proto.game.ProviderSearchRequest.toObject(includeInstance, f),
3036
3124
  categorySearchParams: (f = msg.getCategorySearchParams()) && proto.game.CategorySearchRequest.toObject(includeInstance, f),
3037
3125
  collectionSearchParams: (f = msg.getCollectionSearchParams()) && proto.game.CollectionSearchRequest.toObject(includeInstance, f),
3038
- tagSearchParams: (f = msg.getTagSearchParams()) && proto.game.TagSearchRequest.toObject(includeInstance, f)
3126
+ tagSearchParams: (f = msg.getTagSearchParams()) && proto.game.TagSearchRequest.toObject(includeInstance, f),
3127
+ tournamentGamesSearchParams: (f = msg.getTournamentGamesSearchParams()) && proto.game.TournamentGamesSearchRequest.toObject(includeInstance, f)
3039
3128
  };
3040
3129
 
3041
3130
  if (includeInstance) {
@@ -3128,6 +3217,11 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
3128
3217
  reader.readMessage(value,proto.game.TagSearchRequest.deserializeBinaryFromReader);
3129
3218
  msg.setTagSearchParams(value);
3130
3219
  break;
3220
+ case 13:
3221
+ var value = new proto.game.TournamentGamesSearchRequest;
3222
+ reader.readMessage(value,proto.game.TournamentGamesSearchRequest.deserializeBinaryFromReader);
3223
+ msg.setTournamentGamesSearchParams(value);
3224
+ break;
3131
3225
  default:
3132
3226
  reader.skipField();
3133
3227
  break;
@@ -3249,6 +3343,14 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
3249
3343
  proto.game.TagSearchRequest.serializeBinaryToWriter
3250
3344
  );
3251
3345
  }
3346
+ f = message.getTournamentGamesSearchParams();
3347
+ if (f != null) {
3348
+ writer.writeMessage(
3349
+ 13,
3350
+ f,
3351
+ proto.game.TournamentGamesSearchRequest.serializeBinaryToWriter
3352
+ );
3353
+ }
3252
3354
  };
3253
3355
 
3254
3356
 
@@ -3656,6 +3758,43 @@ proto.game.PaginationRequest.prototype.hasTagSearchParams = function() {
3656
3758
  };
3657
3759
 
3658
3760
 
3761
+ /**
3762
+ * optional TournamentGamesSearchRequest tournament_games_search_params = 13;
3763
+ * @return {?proto.game.TournamentGamesSearchRequest}
3764
+ */
3765
+ proto.game.PaginationRequest.prototype.getTournamentGamesSearchParams = function() {
3766
+ return /** @type{?proto.game.TournamentGamesSearchRequest} */ (
3767
+ jspb.Message.getWrapperField(this, proto.game.TournamentGamesSearchRequest, 13));
3768
+ };
3769
+
3770
+
3771
+ /**
3772
+ * @param {?proto.game.TournamentGamesSearchRequest|undefined} value
3773
+ * @return {!proto.game.PaginationRequest} returns this
3774
+ */
3775
+ proto.game.PaginationRequest.prototype.setTournamentGamesSearchParams = function(value) {
3776
+ return jspb.Message.setWrapperField(this, 13, value);
3777
+ };
3778
+
3779
+
3780
+ /**
3781
+ * Clears the message field making it undefined.
3782
+ * @return {!proto.game.PaginationRequest} returns this
3783
+ */
3784
+ proto.game.PaginationRequest.prototype.clearTournamentGamesSearchParams = function() {
3785
+ return this.setTournamentGamesSearchParams(undefined);
3786
+ };
3787
+
3788
+
3789
+ /**
3790
+ * Returns whether this field is set.
3791
+ * @return {boolean}
3792
+ */
3793
+ proto.game.PaginationRequest.prototype.hasTournamentGamesSearchParams = function() {
3794
+ return jspb.Message.getField(this, 13) != null;
3795
+ };
3796
+
3797
+
3659
3798
 
3660
3799
  /**
3661
3800
  * List of repeated fields within this message type.
@@ -5502,6 +5641,1160 @@ proto.game.TournamentSearchRequest.prototype.clearIdsList = function() {
5502
5641
 
5503
5642
 
5504
5643
 
5644
+
5645
+
5646
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5647
+ /**
5648
+ * Creates an object representation of this proto.
5649
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5650
+ * Optional fields that are not set will be set to undefined.
5651
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5652
+ * For the list of reserved names please see:
5653
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5654
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5655
+ * JSPB instance for transitional soy proto support:
5656
+ * http://goto/soy-param-migration
5657
+ * @return {!Object}
5658
+ */
5659
+ proto.game.TournamentGamesSearchRequest.prototype.toObject = function(opt_includeInstance) {
5660
+ return proto.game.TournamentGamesSearchRequest.toObject(opt_includeInstance, this);
5661
+ };
5662
+
5663
+
5664
+ /**
5665
+ * Static version of the {@see toObject} method.
5666
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5667
+ * the JSPB instance for transitional soy proto support:
5668
+ * http://goto/soy-param-migration
5669
+ * @param {!proto.game.TournamentGamesSearchRequest} msg The msg instance to transform.
5670
+ * @return {!Object}
5671
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5672
+ */
5673
+ proto.game.TournamentGamesSearchRequest.toObject = function(includeInstance, msg) {
5674
+ var f, obj = {
5675
+ tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
5676
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
5677
+ geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
5678
+ isMobile: jspb.Message.getFieldWithDefault(msg, 4, 0),
5679
+ targetHost: jspb.Message.getFieldWithDefault(msg, 5, ""),
5680
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
5681
+ };
5682
+
5683
+ if (includeInstance) {
5684
+ obj.$jspbMessageInstance = msg;
5685
+ }
5686
+ return obj;
5687
+ };
5688
+ }
5689
+
5690
+
5691
+ /**
5692
+ * Deserializes binary data (in protobuf wire format).
5693
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5694
+ * @return {!proto.game.TournamentGamesSearchRequest}
5695
+ */
5696
+ proto.game.TournamentGamesSearchRequest.deserializeBinary = function(bytes) {
5697
+ var reader = new jspb.BinaryReader(bytes);
5698
+ var msg = new proto.game.TournamentGamesSearchRequest;
5699
+ return proto.game.TournamentGamesSearchRequest.deserializeBinaryFromReader(msg, reader);
5700
+ };
5701
+
5702
+
5703
+ /**
5704
+ * Deserializes binary data (in protobuf wire format) from the
5705
+ * given reader into the given message object.
5706
+ * @param {!proto.game.TournamentGamesSearchRequest} msg The message object to deserialize into.
5707
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5708
+ * @return {!proto.game.TournamentGamesSearchRequest}
5709
+ */
5710
+ proto.game.TournamentGamesSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
5711
+ while (reader.nextField()) {
5712
+ if (reader.isEndGroup()) {
5713
+ break;
5714
+ }
5715
+ var field = reader.getFieldNumber();
5716
+ switch (field) {
5717
+ case 1:
5718
+ var value = /** @type {number} */ (reader.readInt32());
5719
+ msg.setTournamentId(value);
5720
+ break;
5721
+ case 2:
5722
+ var value = /** @type {string} */ (reader.readString());
5723
+ msg.setGameTitle(value);
5724
+ break;
5725
+ case 3:
5726
+ var value = /** @type {string} */ (reader.readString());
5727
+ msg.setGeo(value);
5728
+ break;
5729
+ case 4:
5730
+ var value = /** @type {number} */ (reader.readInt32());
5731
+ msg.setIsMobile(value);
5732
+ break;
5733
+ case 5:
5734
+ var value = /** @type {string} */ (reader.readString());
5735
+ msg.setTargetHost(value);
5736
+ break;
5737
+ case 6:
5738
+ var value = /** @type {boolean} */ (reader.readBool());
5739
+ msg.setAdminSide(value);
5740
+ break;
5741
+ default:
5742
+ reader.skipField();
5743
+ break;
5744
+ }
5745
+ }
5746
+ return msg;
5747
+ };
5748
+
5749
+
5750
+ /**
5751
+ * Serializes the message to binary data (in protobuf wire format).
5752
+ * @return {!Uint8Array}
5753
+ */
5754
+ proto.game.TournamentGamesSearchRequest.prototype.serializeBinary = function() {
5755
+ var writer = new jspb.BinaryWriter();
5756
+ proto.game.TournamentGamesSearchRequest.serializeBinaryToWriter(this, writer);
5757
+ return writer.getResultBuffer();
5758
+ };
5759
+
5760
+
5761
+ /**
5762
+ * Serializes the given message to binary data (in protobuf wire
5763
+ * format), writing to the given BinaryWriter.
5764
+ * @param {!proto.game.TournamentGamesSearchRequest} message
5765
+ * @param {!jspb.BinaryWriter} writer
5766
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5767
+ */
5768
+ proto.game.TournamentGamesSearchRequest.serializeBinaryToWriter = function(message, writer) {
5769
+ var f = undefined;
5770
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
5771
+ if (f != null) {
5772
+ writer.writeInt32(
5773
+ 1,
5774
+ f
5775
+ );
5776
+ }
5777
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
5778
+ if (f != null) {
5779
+ writer.writeString(
5780
+ 2,
5781
+ f
5782
+ );
5783
+ }
5784
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5785
+ if (f != null) {
5786
+ writer.writeString(
5787
+ 3,
5788
+ f
5789
+ );
5790
+ }
5791
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
5792
+ if (f != null) {
5793
+ writer.writeInt32(
5794
+ 4,
5795
+ f
5796
+ );
5797
+ }
5798
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
5799
+ if (f != null) {
5800
+ writer.writeString(
5801
+ 5,
5802
+ f
5803
+ );
5804
+ }
5805
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
5806
+ if (f != null) {
5807
+ writer.writeBool(
5808
+ 6,
5809
+ f
5810
+ );
5811
+ }
5812
+ };
5813
+
5814
+
5815
+ /**
5816
+ * optional int32 tournament_id = 1;
5817
+ * @return {number}
5818
+ */
5819
+ proto.game.TournamentGamesSearchRequest.prototype.getTournamentId = function() {
5820
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5821
+ };
5822
+
5823
+
5824
+ /**
5825
+ * @param {number} value
5826
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5827
+ */
5828
+ proto.game.TournamentGamesSearchRequest.prototype.setTournamentId = function(value) {
5829
+ return jspb.Message.setField(this, 1, value);
5830
+ };
5831
+
5832
+
5833
+ /**
5834
+ * Clears the field making it undefined.
5835
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5836
+ */
5837
+ proto.game.TournamentGamesSearchRequest.prototype.clearTournamentId = function() {
5838
+ return jspb.Message.setField(this, 1, undefined);
5839
+ };
5840
+
5841
+
5842
+ /**
5843
+ * Returns whether this field is set.
5844
+ * @return {boolean}
5845
+ */
5846
+ proto.game.TournamentGamesSearchRequest.prototype.hasTournamentId = function() {
5847
+ return jspb.Message.getField(this, 1) != null;
5848
+ };
5849
+
5850
+
5851
+ /**
5852
+ * optional string game_title = 2;
5853
+ * @return {string}
5854
+ */
5855
+ proto.game.TournamentGamesSearchRequest.prototype.getGameTitle = function() {
5856
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5857
+ };
5858
+
5859
+
5860
+ /**
5861
+ * @param {string} value
5862
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5863
+ */
5864
+ proto.game.TournamentGamesSearchRequest.prototype.setGameTitle = function(value) {
5865
+ return jspb.Message.setField(this, 2, value);
5866
+ };
5867
+
5868
+
5869
+ /**
5870
+ * Clears the field making it undefined.
5871
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5872
+ */
5873
+ proto.game.TournamentGamesSearchRequest.prototype.clearGameTitle = function() {
5874
+ return jspb.Message.setField(this, 2, undefined);
5875
+ };
5876
+
5877
+
5878
+ /**
5879
+ * Returns whether this field is set.
5880
+ * @return {boolean}
5881
+ */
5882
+ proto.game.TournamentGamesSearchRequest.prototype.hasGameTitle = function() {
5883
+ return jspb.Message.getField(this, 2) != null;
5884
+ };
5885
+
5886
+
5887
+ /**
5888
+ * optional string geo = 3;
5889
+ * @return {string}
5890
+ */
5891
+ proto.game.TournamentGamesSearchRequest.prototype.getGeo = function() {
5892
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5893
+ };
5894
+
5895
+
5896
+ /**
5897
+ * @param {string} value
5898
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5899
+ */
5900
+ proto.game.TournamentGamesSearchRequest.prototype.setGeo = function(value) {
5901
+ return jspb.Message.setField(this, 3, value);
5902
+ };
5903
+
5904
+
5905
+ /**
5906
+ * Clears the field making it undefined.
5907
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5908
+ */
5909
+ proto.game.TournamentGamesSearchRequest.prototype.clearGeo = function() {
5910
+ return jspb.Message.setField(this, 3, undefined);
5911
+ };
5912
+
5913
+
5914
+ /**
5915
+ * Returns whether this field is set.
5916
+ * @return {boolean}
5917
+ */
5918
+ proto.game.TournamentGamesSearchRequest.prototype.hasGeo = function() {
5919
+ return jspb.Message.getField(this, 3) != null;
5920
+ };
5921
+
5922
+
5923
+ /**
5924
+ * optional int32 is_mobile = 4;
5925
+ * @return {number}
5926
+ */
5927
+ proto.game.TournamentGamesSearchRequest.prototype.getIsMobile = function() {
5928
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
5929
+ };
5930
+
5931
+
5932
+ /**
5933
+ * @param {number} value
5934
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5935
+ */
5936
+ proto.game.TournamentGamesSearchRequest.prototype.setIsMobile = function(value) {
5937
+ return jspb.Message.setField(this, 4, value);
5938
+ };
5939
+
5940
+
5941
+ /**
5942
+ * Clears the field making it undefined.
5943
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5944
+ */
5945
+ proto.game.TournamentGamesSearchRequest.prototype.clearIsMobile = function() {
5946
+ return jspb.Message.setField(this, 4, undefined);
5947
+ };
5948
+
5949
+
5950
+ /**
5951
+ * Returns whether this field is set.
5952
+ * @return {boolean}
5953
+ */
5954
+ proto.game.TournamentGamesSearchRequest.prototype.hasIsMobile = function() {
5955
+ return jspb.Message.getField(this, 4) != null;
5956
+ };
5957
+
5958
+
5959
+ /**
5960
+ * optional string target_host = 5;
5961
+ * @return {string}
5962
+ */
5963
+ proto.game.TournamentGamesSearchRequest.prototype.getTargetHost = function() {
5964
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
5965
+ };
5966
+
5967
+
5968
+ /**
5969
+ * @param {string} value
5970
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5971
+ */
5972
+ proto.game.TournamentGamesSearchRequest.prototype.setTargetHost = function(value) {
5973
+ return jspb.Message.setField(this, 5, value);
5974
+ };
5975
+
5976
+
5977
+ /**
5978
+ * Clears the field making it undefined.
5979
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
5980
+ */
5981
+ proto.game.TournamentGamesSearchRequest.prototype.clearTargetHost = function() {
5982
+ return jspb.Message.setField(this, 5, undefined);
5983
+ };
5984
+
5985
+
5986
+ /**
5987
+ * Returns whether this field is set.
5988
+ * @return {boolean}
5989
+ */
5990
+ proto.game.TournamentGamesSearchRequest.prototype.hasTargetHost = function() {
5991
+ return jspb.Message.getField(this, 5) != null;
5992
+ };
5993
+
5994
+
5995
+ /**
5996
+ * optional bool admin_side = 6;
5997
+ * @return {boolean}
5998
+ */
5999
+ proto.game.TournamentGamesSearchRequest.prototype.getAdminSide = function() {
6000
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
6001
+ };
6002
+
6003
+
6004
+ /**
6005
+ * @param {boolean} value
6006
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
6007
+ */
6008
+ proto.game.TournamentGamesSearchRequest.prototype.setAdminSide = function(value) {
6009
+ return jspb.Message.setField(this, 6, value);
6010
+ };
6011
+
6012
+
6013
+ /**
6014
+ * Clears the field making it undefined.
6015
+ * @return {!proto.game.TournamentGamesSearchRequest} returns this
6016
+ */
6017
+ proto.game.TournamentGamesSearchRequest.prototype.clearAdminSide = function() {
6018
+ return jspb.Message.setField(this, 6, undefined);
6019
+ };
6020
+
6021
+
6022
+ /**
6023
+ * Returns whether this field is set.
6024
+ * @return {boolean}
6025
+ */
6026
+ proto.game.TournamentGamesSearchRequest.prototype.hasAdminSide = function() {
6027
+ return jspb.Message.getField(this, 6) != null;
6028
+ };
6029
+
6030
+
6031
+
6032
+ /**
6033
+ * List of repeated fields within this message type.
6034
+ * @private {!Array<number>}
6035
+ * @const
6036
+ */
6037
+ proto.game.TournamentIdsRequest.repeatedFields_ = [1];
6038
+
6039
+
6040
+
6041
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6042
+ /**
6043
+ * Creates an object representation of this proto.
6044
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6045
+ * Optional fields that are not set will be set to undefined.
6046
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6047
+ * For the list of reserved names please see:
6048
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6049
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6050
+ * JSPB instance for transitional soy proto support:
6051
+ * http://goto/soy-param-migration
6052
+ * @return {!Object}
6053
+ */
6054
+ proto.game.TournamentIdsRequest.prototype.toObject = function(opt_includeInstance) {
6055
+ return proto.game.TournamentIdsRequest.toObject(opt_includeInstance, this);
6056
+ };
6057
+
6058
+
6059
+ /**
6060
+ * Static version of the {@see toObject} method.
6061
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6062
+ * the JSPB instance for transitional soy proto support:
6063
+ * http://goto/soy-param-migration
6064
+ * @param {!proto.game.TournamentIdsRequest} msg The msg instance to transform.
6065
+ * @return {!Object}
6066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6067
+ */
6068
+ proto.game.TournamentIdsRequest.toObject = function(includeInstance, msg) {
6069
+ var f, obj = {
6070
+ tournamentIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
6071
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
6072
+ isMobile: jspb.Message.getFieldWithDefault(msg, 3, 0),
6073
+ targetHost: jspb.Message.getFieldWithDefault(msg, 4, ""),
6074
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
6075
+ };
6076
+
6077
+ if (includeInstance) {
6078
+ obj.$jspbMessageInstance = msg;
6079
+ }
6080
+ return obj;
6081
+ };
6082
+ }
6083
+
6084
+
6085
+ /**
6086
+ * Deserializes binary data (in protobuf wire format).
6087
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6088
+ * @return {!proto.game.TournamentIdsRequest}
6089
+ */
6090
+ proto.game.TournamentIdsRequest.deserializeBinary = function(bytes) {
6091
+ var reader = new jspb.BinaryReader(bytes);
6092
+ var msg = new proto.game.TournamentIdsRequest;
6093
+ return proto.game.TournamentIdsRequest.deserializeBinaryFromReader(msg, reader);
6094
+ };
6095
+
6096
+
6097
+ /**
6098
+ * Deserializes binary data (in protobuf wire format) from the
6099
+ * given reader into the given message object.
6100
+ * @param {!proto.game.TournamentIdsRequest} msg The message object to deserialize into.
6101
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6102
+ * @return {!proto.game.TournamentIdsRequest}
6103
+ */
6104
+ proto.game.TournamentIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
6105
+ while (reader.nextField()) {
6106
+ if (reader.isEndGroup()) {
6107
+ break;
6108
+ }
6109
+ var field = reader.getFieldNumber();
6110
+ switch (field) {
6111
+ case 1:
6112
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
6113
+ for (var i = 0; i < values.length; i++) {
6114
+ msg.addTournamentIds(values[i]);
6115
+ }
6116
+ break;
6117
+ case 2:
6118
+ var value = /** @type {string} */ (reader.readString());
6119
+ msg.setGeo(value);
6120
+ break;
6121
+ case 3:
6122
+ var value = /** @type {number} */ (reader.readInt32());
6123
+ msg.setIsMobile(value);
6124
+ break;
6125
+ case 4:
6126
+ var value = /** @type {string} */ (reader.readString());
6127
+ msg.setTargetHost(value);
6128
+ break;
6129
+ case 5:
6130
+ var value = /** @type {boolean} */ (reader.readBool());
6131
+ msg.setAdminSide(value);
6132
+ break;
6133
+ default:
6134
+ reader.skipField();
6135
+ break;
6136
+ }
6137
+ }
6138
+ return msg;
6139
+ };
6140
+
6141
+
6142
+ /**
6143
+ * Serializes the message to binary data (in protobuf wire format).
6144
+ * @return {!Uint8Array}
6145
+ */
6146
+ proto.game.TournamentIdsRequest.prototype.serializeBinary = function() {
6147
+ var writer = new jspb.BinaryWriter();
6148
+ proto.game.TournamentIdsRequest.serializeBinaryToWriter(this, writer);
6149
+ return writer.getResultBuffer();
6150
+ };
6151
+
6152
+
6153
+ /**
6154
+ * Serializes the given message to binary data (in protobuf wire
6155
+ * format), writing to the given BinaryWriter.
6156
+ * @param {!proto.game.TournamentIdsRequest} message
6157
+ * @param {!jspb.BinaryWriter} writer
6158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6159
+ */
6160
+ proto.game.TournamentIdsRequest.serializeBinaryToWriter = function(message, writer) {
6161
+ var f = undefined;
6162
+ f = message.getTournamentIdsList();
6163
+ if (f.length > 0) {
6164
+ writer.writePackedInt32(
6165
+ 1,
6166
+ f
6167
+ );
6168
+ }
6169
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
6170
+ if (f != null) {
6171
+ writer.writeString(
6172
+ 2,
6173
+ f
6174
+ );
6175
+ }
6176
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
6177
+ if (f != null) {
6178
+ writer.writeInt32(
6179
+ 3,
6180
+ f
6181
+ );
6182
+ }
6183
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
6184
+ if (f != null) {
6185
+ writer.writeString(
6186
+ 4,
6187
+ f
6188
+ );
6189
+ }
6190
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
6191
+ if (f != null) {
6192
+ writer.writeBool(
6193
+ 5,
6194
+ f
6195
+ );
6196
+ }
6197
+ };
6198
+
6199
+
6200
+ /**
6201
+ * repeated int32 tournament_ids = 1;
6202
+ * @return {!Array<number>}
6203
+ */
6204
+ proto.game.TournamentIdsRequest.prototype.getTournamentIdsList = function() {
6205
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
6206
+ };
6207
+
6208
+
6209
+ /**
6210
+ * @param {!Array<number>} value
6211
+ * @return {!proto.game.TournamentIdsRequest} returns this
6212
+ */
6213
+ proto.game.TournamentIdsRequest.prototype.setTournamentIdsList = function(value) {
6214
+ return jspb.Message.setField(this, 1, value || []);
6215
+ };
6216
+
6217
+
6218
+ /**
6219
+ * @param {number} value
6220
+ * @param {number=} opt_index
6221
+ * @return {!proto.game.TournamentIdsRequest} returns this
6222
+ */
6223
+ proto.game.TournamentIdsRequest.prototype.addTournamentIds = function(value, opt_index) {
6224
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
6225
+ };
6226
+
6227
+
6228
+ /**
6229
+ * Clears the list making it empty but non-null.
6230
+ * @return {!proto.game.TournamentIdsRequest} returns this
6231
+ */
6232
+ proto.game.TournamentIdsRequest.prototype.clearTournamentIdsList = function() {
6233
+ return this.setTournamentIdsList([]);
6234
+ };
6235
+
6236
+
6237
+ /**
6238
+ * optional string geo = 2;
6239
+ * @return {string}
6240
+ */
6241
+ proto.game.TournamentIdsRequest.prototype.getGeo = function() {
6242
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6243
+ };
6244
+
6245
+
6246
+ /**
6247
+ * @param {string} value
6248
+ * @return {!proto.game.TournamentIdsRequest} returns this
6249
+ */
6250
+ proto.game.TournamentIdsRequest.prototype.setGeo = function(value) {
6251
+ return jspb.Message.setField(this, 2, value);
6252
+ };
6253
+
6254
+
6255
+ /**
6256
+ * Clears the field making it undefined.
6257
+ * @return {!proto.game.TournamentIdsRequest} returns this
6258
+ */
6259
+ proto.game.TournamentIdsRequest.prototype.clearGeo = function() {
6260
+ return jspb.Message.setField(this, 2, undefined);
6261
+ };
6262
+
6263
+
6264
+ /**
6265
+ * Returns whether this field is set.
6266
+ * @return {boolean}
6267
+ */
6268
+ proto.game.TournamentIdsRequest.prototype.hasGeo = function() {
6269
+ return jspb.Message.getField(this, 2) != null;
6270
+ };
6271
+
6272
+
6273
+ /**
6274
+ * optional int32 is_mobile = 3;
6275
+ * @return {number}
6276
+ */
6277
+ proto.game.TournamentIdsRequest.prototype.getIsMobile = function() {
6278
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6279
+ };
6280
+
6281
+
6282
+ /**
6283
+ * @param {number} value
6284
+ * @return {!proto.game.TournamentIdsRequest} returns this
6285
+ */
6286
+ proto.game.TournamentIdsRequest.prototype.setIsMobile = function(value) {
6287
+ return jspb.Message.setField(this, 3, value);
6288
+ };
6289
+
6290
+
6291
+ /**
6292
+ * Clears the field making it undefined.
6293
+ * @return {!proto.game.TournamentIdsRequest} returns this
6294
+ */
6295
+ proto.game.TournamentIdsRequest.prototype.clearIsMobile = function() {
6296
+ return jspb.Message.setField(this, 3, undefined);
6297
+ };
6298
+
6299
+
6300
+ /**
6301
+ * Returns whether this field is set.
6302
+ * @return {boolean}
6303
+ */
6304
+ proto.game.TournamentIdsRequest.prototype.hasIsMobile = function() {
6305
+ return jspb.Message.getField(this, 3) != null;
6306
+ };
6307
+
6308
+
6309
+ /**
6310
+ * optional string target_host = 4;
6311
+ * @return {string}
6312
+ */
6313
+ proto.game.TournamentIdsRequest.prototype.getTargetHost = function() {
6314
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6315
+ };
6316
+
6317
+
6318
+ /**
6319
+ * @param {string} value
6320
+ * @return {!proto.game.TournamentIdsRequest} returns this
6321
+ */
6322
+ proto.game.TournamentIdsRequest.prototype.setTargetHost = function(value) {
6323
+ return jspb.Message.setField(this, 4, value);
6324
+ };
6325
+
6326
+
6327
+ /**
6328
+ * Clears the field making it undefined.
6329
+ * @return {!proto.game.TournamentIdsRequest} returns this
6330
+ */
6331
+ proto.game.TournamentIdsRequest.prototype.clearTargetHost = function() {
6332
+ return jspb.Message.setField(this, 4, undefined);
6333
+ };
6334
+
6335
+
6336
+ /**
6337
+ * Returns whether this field is set.
6338
+ * @return {boolean}
6339
+ */
6340
+ proto.game.TournamentIdsRequest.prototype.hasTargetHost = function() {
6341
+ return jspb.Message.getField(this, 4) != null;
6342
+ };
6343
+
6344
+
6345
+ /**
6346
+ * optional bool admin_side = 5;
6347
+ * @return {boolean}
6348
+ */
6349
+ proto.game.TournamentIdsRequest.prototype.getAdminSide = function() {
6350
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
6351
+ };
6352
+
6353
+
6354
+ /**
6355
+ * @param {boolean} value
6356
+ * @return {!proto.game.TournamentIdsRequest} returns this
6357
+ */
6358
+ proto.game.TournamentIdsRequest.prototype.setAdminSide = function(value) {
6359
+ return jspb.Message.setField(this, 5, value);
6360
+ };
6361
+
6362
+
6363
+ /**
6364
+ * Clears the field making it undefined.
6365
+ * @return {!proto.game.TournamentIdsRequest} returns this
6366
+ */
6367
+ proto.game.TournamentIdsRequest.prototype.clearAdminSide = function() {
6368
+ return jspb.Message.setField(this, 5, undefined);
6369
+ };
6370
+
6371
+
6372
+ /**
6373
+ * Returns whether this field is set.
6374
+ * @return {boolean}
6375
+ */
6376
+ proto.game.TournamentIdsRequest.prototype.hasAdminSide = function() {
6377
+ return jspb.Message.getField(this, 5) != null;
6378
+ };
6379
+
6380
+
6381
+
6382
+ /**
6383
+ * List of repeated fields within this message type.
6384
+ * @private {!Array<number>}
6385
+ * @const
6386
+ */
6387
+ proto.game.TournamentGamesPreviewResponse.repeatedFields_ = [1];
6388
+
6389
+
6390
+
6391
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6392
+ /**
6393
+ * Creates an object representation of this proto.
6394
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6395
+ * Optional fields that are not set will be set to undefined.
6396
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6397
+ * For the list of reserved names please see:
6398
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6399
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6400
+ * JSPB instance for transitional soy proto support:
6401
+ * http://goto/soy-param-migration
6402
+ * @return {!Object}
6403
+ */
6404
+ proto.game.TournamentGamesPreviewResponse.prototype.toObject = function(opt_includeInstance) {
6405
+ return proto.game.TournamentGamesPreviewResponse.toObject(opt_includeInstance, this);
6406
+ };
6407
+
6408
+
6409
+ /**
6410
+ * Static version of the {@see toObject} method.
6411
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6412
+ * the JSPB instance for transitional soy proto support:
6413
+ * http://goto/soy-param-migration
6414
+ * @param {!proto.game.TournamentGamesPreviewResponse} msg The msg instance to transform.
6415
+ * @return {!Object}
6416
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6417
+ */
6418
+ proto.game.TournamentGamesPreviewResponse.toObject = function(includeInstance, msg) {
6419
+ var f, obj = {
6420
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
6421
+ proto.game.TournamentGamesPreviewItem.toObject, includeInstance)
6422
+ };
6423
+
6424
+ if (includeInstance) {
6425
+ obj.$jspbMessageInstance = msg;
6426
+ }
6427
+ return obj;
6428
+ };
6429
+ }
6430
+
6431
+
6432
+ /**
6433
+ * Deserializes binary data (in protobuf wire format).
6434
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6435
+ * @return {!proto.game.TournamentGamesPreviewResponse}
6436
+ */
6437
+ proto.game.TournamentGamesPreviewResponse.deserializeBinary = function(bytes) {
6438
+ var reader = new jspb.BinaryReader(bytes);
6439
+ var msg = new proto.game.TournamentGamesPreviewResponse;
6440
+ return proto.game.TournamentGamesPreviewResponse.deserializeBinaryFromReader(msg, reader);
6441
+ };
6442
+
6443
+
6444
+ /**
6445
+ * Deserializes binary data (in protobuf wire format) from the
6446
+ * given reader into the given message object.
6447
+ * @param {!proto.game.TournamentGamesPreviewResponse} msg The message object to deserialize into.
6448
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6449
+ * @return {!proto.game.TournamentGamesPreviewResponse}
6450
+ */
6451
+ proto.game.TournamentGamesPreviewResponse.deserializeBinaryFromReader = function(msg, reader) {
6452
+ while (reader.nextField()) {
6453
+ if (reader.isEndGroup()) {
6454
+ break;
6455
+ }
6456
+ var field = reader.getFieldNumber();
6457
+ switch (field) {
6458
+ case 1:
6459
+ var value = new proto.game.TournamentGamesPreviewItem;
6460
+ reader.readMessage(value,proto.game.TournamentGamesPreviewItem.deserializeBinaryFromReader);
6461
+ msg.addItems(value);
6462
+ break;
6463
+ default:
6464
+ reader.skipField();
6465
+ break;
6466
+ }
6467
+ }
6468
+ return msg;
6469
+ };
6470
+
6471
+
6472
+ /**
6473
+ * Serializes the message to binary data (in protobuf wire format).
6474
+ * @return {!Uint8Array}
6475
+ */
6476
+ proto.game.TournamentGamesPreviewResponse.prototype.serializeBinary = function() {
6477
+ var writer = new jspb.BinaryWriter();
6478
+ proto.game.TournamentGamesPreviewResponse.serializeBinaryToWriter(this, writer);
6479
+ return writer.getResultBuffer();
6480
+ };
6481
+
6482
+
6483
+ /**
6484
+ * Serializes the given message to binary data (in protobuf wire
6485
+ * format), writing to the given BinaryWriter.
6486
+ * @param {!proto.game.TournamentGamesPreviewResponse} message
6487
+ * @param {!jspb.BinaryWriter} writer
6488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6489
+ */
6490
+ proto.game.TournamentGamesPreviewResponse.serializeBinaryToWriter = function(message, writer) {
6491
+ var f = undefined;
6492
+ f = message.getItemsList();
6493
+ if (f.length > 0) {
6494
+ writer.writeRepeatedMessage(
6495
+ 1,
6496
+ f,
6497
+ proto.game.TournamentGamesPreviewItem.serializeBinaryToWriter
6498
+ );
6499
+ }
6500
+ };
6501
+
6502
+
6503
+ /**
6504
+ * repeated TournamentGamesPreviewItem items = 1;
6505
+ * @return {!Array<!proto.game.TournamentGamesPreviewItem>}
6506
+ */
6507
+ proto.game.TournamentGamesPreviewResponse.prototype.getItemsList = function() {
6508
+ return /** @type{!Array<!proto.game.TournamentGamesPreviewItem>} */ (
6509
+ jspb.Message.getRepeatedWrapperField(this, proto.game.TournamentGamesPreviewItem, 1));
6510
+ };
6511
+
6512
+
6513
+ /**
6514
+ * @param {!Array<!proto.game.TournamentGamesPreviewItem>} value
6515
+ * @return {!proto.game.TournamentGamesPreviewResponse} returns this
6516
+ */
6517
+ proto.game.TournamentGamesPreviewResponse.prototype.setItemsList = function(value) {
6518
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
6519
+ };
6520
+
6521
+
6522
+ /**
6523
+ * @param {!proto.game.TournamentGamesPreviewItem=} opt_value
6524
+ * @param {number=} opt_index
6525
+ * @return {!proto.game.TournamentGamesPreviewItem}
6526
+ */
6527
+ proto.game.TournamentGamesPreviewResponse.prototype.addItems = function(opt_value, opt_index) {
6528
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.TournamentGamesPreviewItem, opt_index);
6529
+ };
6530
+
6531
+
6532
+ /**
6533
+ * Clears the list making it empty but non-null.
6534
+ * @return {!proto.game.TournamentGamesPreviewResponse} returns this
6535
+ */
6536
+ proto.game.TournamentGamesPreviewResponse.prototype.clearItemsList = function() {
6537
+ return this.setItemsList([]);
6538
+ };
6539
+
6540
+
6541
+
6542
+ /**
6543
+ * List of repeated fields within this message type.
6544
+ * @private {!Array<number>}
6545
+ * @const
6546
+ */
6547
+ proto.game.TournamentGamesPreviewItem.repeatedFields_ = [2];
6548
+
6549
+
6550
+
6551
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6552
+ /**
6553
+ * Creates an object representation of this proto.
6554
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6555
+ * Optional fields that are not set will be set to undefined.
6556
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6557
+ * For the list of reserved names please see:
6558
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6559
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6560
+ * JSPB instance for transitional soy proto support:
6561
+ * http://goto/soy-param-migration
6562
+ * @return {!Object}
6563
+ */
6564
+ proto.game.TournamentGamesPreviewItem.prototype.toObject = function(opt_includeInstance) {
6565
+ return proto.game.TournamentGamesPreviewItem.toObject(opt_includeInstance, this);
6566
+ };
6567
+
6568
+
6569
+ /**
6570
+ * Static version of the {@see toObject} method.
6571
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6572
+ * the JSPB instance for transitional soy proto support:
6573
+ * http://goto/soy-param-migration
6574
+ * @param {!proto.game.TournamentGamesPreviewItem} msg The msg instance to transform.
6575
+ * @return {!Object}
6576
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6577
+ */
6578
+ proto.game.TournamentGamesPreviewItem.toObject = function(includeInstance, msg) {
6579
+ var f, obj = {
6580
+ tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
6581
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
6582
+ proto.game.GameItem.toObject, includeInstance),
6583
+ total: jspb.Message.getFieldWithDefault(msg, 3, 0)
6584
+ };
6585
+
6586
+ if (includeInstance) {
6587
+ obj.$jspbMessageInstance = msg;
6588
+ }
6589
+ return obj;
6590
+ };
6591
+ }
6592
+
6593
+
6594
+ /**
6595
+ * Deserializes binary data (in protobuf wire format).
6596
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6597
+ * @return {!proto.game.TournamentGamesPreviewItem}
6598
+ */
6599
+ proto.game.TournamentGamesPreviewItem.deserializeBinary = function(bytes) {
6600
+ var reader = new jspb.BinaryReader(bytes);
6601
+ var msg = new proto.game.TournamentGamesPreviewItem;
6602
+ return proto.game.TournamentGamesPreviewItem.deserializeBinaryFromReader(msg, reader);
6603
+ };
6604
+
6605
+
6606
+ /**
6607
+ * Deserializes binary data (in protobuf wire format) from the
6608
+ * given reader into the given message object.
6609
+ * @param {!proto.game.TournamentGamesPreviewItem} msg The message object to deserialize into.
6610
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6611
+ * @return {!proto.game.TournamentGamesPreviewItem}
6612
+ */
6613
+ proto.game.TournamentGamesPreviewItem.deserializeBinaryFromReader = function(msg, reader) {
6614
+ while (reader.nextField()) {
6615
+ if (reader.isEndGroup()) {
6616
+ break;
6617
+ }
6618
+ var field = reader.getFieldNumber();
6619
+ switch (field) {
6620
+ case 1:
6621
+ var value = /** @type {number} */ (reader.readInt32());
6622
+ msg.setTournamentId(value);
6623
+ break;
6624
+ case 2:
6625
+ var value = new proto.game.GameItem;
6626
+ reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
6627
+ msg.addItems(value);
6628
+ break;
6629
+ case 3:
6630
+ var value = /** @type {number} */ (reader.readInt32());
6631
+ msg.setTotal(value);
6632
+ break;
6633
+ default:
6634
+ reader.skipField();
6635
+ break;
6636
+ }
6637
+ }
6638
+ return msg;
6639
+ };
6640
+
6641
+
6642
+ /**
6643
+ * Serializes the message to binary data (in protobuf wire format).
6644
+ * @return {!Uint8Array}
6645
+ */
6646
+ proto.game.TournamentGamesPreviewItem.prototype.serializeBinary = function() {
6647
+ var writer = new jspb.BinaryWriter();
6648
+ proto.game.TournamentGamesPreviewItem.serializeBinaryToWriter(this, writer);
6649
+ return writer.getResultBuffer();
6650
+ };
6651
+
6652
+
6653
+ /**
6654
+ * Serializes the given message to binary data (in protobuf wire
6655
+ * format), writing to the given BinaryWriter.
6656
+ * @param {!proto.game.TournamentGamesPreviewItem} message
6657
+ * @param {!jspb.BinaryWriter} writer
6658
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6659
+ */
6660
+ proto.game.TournamentGamesPreviewItem.serializeBinaryToWriter = function(message, writer) {
6661
+ var f = undefined;
6662
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
6663
+ if (f != null) {
6664
+ writer.writeInt32(
6665
+ 1,
6666
+ f
6667
+ );
6668
+ }
6669
+ f = message.getItemsList();
6670
+ if (f.length > 0) {
6671
+ writer.writeRepeatedMessage(
6672
+ 2,
6673
+ f,
6674
+ proto.game.GameItem.serializeBinaryToWriter
6675
+ );
6676
+ }
6677
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
6678
+ if (f != null) {
6679
+ writer.writeInt32(
6680
+ 3,
6681
+ f
6682
+ );
6683
+ }
6684
+ };
6685
+
6686
+
6687
+ /**
6688
+ * optional int32 tournament_id = 1;
6689
+ * @return {number}
6690
+ */
6691
+ proto.game.TournamentGamesPreviewItem.prototype.getTournamentId = function() {
6692
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6693
+ };
6694
+
6695
+
6696
+ /**
6697
+ * @param {number} value
6698
+ * @return {!proto.game.TournamentGamesPreviewItem} returns this
6699
+ */
6700
+ proto.game.TournamentGamesPreviewItem.prototype.setTournamentId = function(value) {
6701
+ return jspb.Message.setField(this, 1, value);
6702
+ };
6703
+
6704
+
6705
+ /**
6706
+ * Clears the field making it undefined.
6707
+ * @return {!proto.game.TournamentGamesPreviewItem} returns this
6708
+ */
6709
+ proto.game.TournamentGamesPreviewItem.prototype.clearTournamentId = function() {
6710
+ return jspb.Message.setField(this, 1, undefined);
6711
+ };
6712
+
6713
+
6714
+ /**
6715
+ * Returns whether this field is set.
6716
+ * @return {boolean}
6717
+ */
6718
+ proto.game.TournamentGamesPreviewItem.prototype.hasTournamentId = function() {
6719
+ return jspb.Message.getField(this, 1) != null;
6720
+ };
6721
+
6722
+
6723
+ /**
6724
+ * repeated GameItem items = 2;
6725
+ * @return {!Array<!proto.game.GameItem>}
6726
+ */
6727
+ proto.game.TournamentGamesPreviewItem.prototype.getItemsList = function() {
6728
+ return /** @type{!Array<!proto.game.GameItem>} */ (
6729
+ jspb.Message.getRepeatedWrapperField(this, proto.game.GameItem, 2));
6730
+ };
6731
+
6732
+
6733
+ /**
6734
+ * @param {!Array<!proto.game.GameItem>} value
6735
+ * @return {!proto.game.TournamentGamesPreviewItem} returns this
6736
+ */
6737
+ proto.game.TournamentGamesPreviewItem.prototype.setItemsList = function(value) {
6738
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
6739
+ };
6740
+
6741
+
6742
+ /**
6743
+ * @param {!proto.game.GameItem=} opt_value
6744
+ * @param {number=} opt_index
6745
+ * @return {!proto.game.GameItem}
6746
+ */
6747
+ proto.game.TournamentGamesPreviewItem.prototype.addItems = function(opt_value, opt_index) {
6748
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.game.GameItem, opt_index);
6749
+ };
6750
+
6751
+
6752
+ /**
6753
+ * Clears the list making it empty but non-null.
6754
+ * @return {!proto.game.TournamentGamesPreviewItem} returns this
6755
+ */
6756
+ proto.game.TournamentGamesPreviewItem.prototype.clearItemsList = function() {
6757
+ return this.setItemsList([]);
6758
+ };
6759
+
6760
+
6761
+ /**
6762
+ * optional int32 total = 3;
6763
+ * @return {number}
6764
+ */
6765
+ proto.game.TournamentGamesPreviewItem.prototype.getTotal = function() {
6766
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6767
+ };
6768
+
6769
+
6770
+ /**
6771
+ * @param {number} value
6772
+ * @return {!proto.game.TournamentGamesPreviewItem} returns this
6773
+ */
6774
+ proto.game.TournamentGamesPreviewItem.prototype.setTotal = function(value) {
6775
+ return jspb.Message.setField(this, 3, value);
6776
+ };
6777
+
6778
+
6779
+ /**
6780
+ * Clears the field making it undefined.
6781
+ * @return {!proto.game.TournamentGamesPreviewItem} returns this
6782
+ */
6783
+ proto.game.TournamentGamesPreviewItem.prototype.clearTotal = function() {
6784
+ return jspb.Message.setField(this, 3, undefined);
6785
+ };
6786
+
6787
+
6788
+ /**
6789
+ * Returns whether this field is set.
6790
+ * @return {boolean}
6791
+ */
6792
+ proto.game.TournamentGamesPreviewItem.prototype.hasTotal = function() {
6793
+ return jspb.Message.getField(this, 3) != null;
6794
+ };
6795
+
6796
+
6797
+
5505
6798
  /**
5506
6799
  * List of repeated fields within this message type.
5507
6800
  * @private {!Array<number>}