protobuf-platform 1.0.237 → 1.0.239

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.
@@ -21,9 +21,19 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.tournament.File', null, global);
25
+ goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
26
+ goog.exportSymbol('proto.tournament.GetTournamentRequest', null, global);
24
27
  goog.exportSymbol('proto.tournament.PaginationRequest', null, global);
25
28
  goog.exportSymbol('proto.tournament.PingRequest', null, global);
26
29
  goog.exportSymbol('proto.tournament.PongResponse', null, global);
30
+ goog.exportSymbol('proto.tournament.TournamentItem', null, global);
31
+ goog.exportSymbol('proto.tournament.TournamentItemRequest', null, global);
32
+ goog.exportSymbol('proto.tournament.TournamentItemsResponse', null, global);
33
+ goog.exportSymbol('proto.tournament.TournamentRequest', null, global);
34
+ goog.exportSymbol('proto.tournament.TournamentRequest.RequestCase', null, global);
35
+ goog.exportSymbol('proto.tournament.TournamentResponse', null, global);
36
+ goog.exportSymbol('proto.tournament.TournamentStatusResponse', null, global);
27
37
  goog.exportSymbol('proto.tournament.UserSearchRequest', null, global);
28
38
  /**
29
39
  * Generated by JsPbCodeGenerator.
@@ -67,6 +77,48 @@ if (goog.DEBUG && !COMPILED) {
67
77
  */
68
78
  proto.tournament.PongResponse.displayName = 'proto.tournament.PongResponse';
69
79
  }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.tournament.File = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.tournament.File, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.tournament.File.displayName = 'proto.tournament.File';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.tournament.GetFileRequest = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
+ };
114
+ goog.inherits(proto.tournament.GetFileRequest, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.tournament.GetFileRequest.displayName = 'proto.tournament.GetFileRequest';
121
+ }
70
122
  /**
71
123
  * Generated by JsPbCodeGenerator.
72
124
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -109,6 +161,153 @@ if (goog.DEBUG && !COMPILED) {
109
161
  */
110
162
  proto.tournament.UserSearchRequest.displayName = 'proto.tournament.UserSearchRequest';
111
163
  }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.tournament.TournamentItem = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
+ };
177
+ goog.inherits(proto.tournament.TournamentItem, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.tournament.TournamentItem.displayName = 'proto.tournament.TournamentItem';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.tournament.TournamentRequest = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.tournament.TournamentRequest.oneofGroups_);
197
+ };
198
+ goog.inherits(proto.tournament.TournamentRequest, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.tournament.TournamentRequest.displayName = 'proto.tournament.TournamentRequest';
205
+ }
206
+ /**
207
+ * Generated by JsPbCodeGenerator.
208
+ * @param {Array=} opt_data Optional initial data array, typically from a
209
+ * server response, or constructed directly in Javascript. The array is used
210
+ * in place and becomes part of the constructed object. It is not cloned.
211
+ * If no data is provided, the constructed object will be empty, but still
212
+ * valid.
213
+ * @extends {jspb.Message}
214
+ * @constructor
215
+ */
216
+ proto.tournament.TournamentItemRequest = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
218
+ };
219
+ goog.inherits(proto.tournament.TournamentItemRequest, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.tournament.TournamentItemRequest.displayName = 'proto.tournament.TournamentItemRequest';
226
+ }
227
+ /**
228
+ * Generated by JsPbCodeGenerator.
229
+ * @param {Array=} opt_data Optional initial data array, typically from a
230
+ * server response, or constructed directly in Javascript. The array is used
231
+ * in place and becomes part of the constructed object. It is not cloned.
232
+ * If no data is provided, the constructed object will be empty, but still
233
+ * valid.
234
+ * @extends {jspb.Message}
235
+ * @constructor
236
+ */
237
+ proto.tournament.GetTournamentRequest = function(opt_data) {
238
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
239
+ };
240
+ goog.inherits(proto.tournament.GetTournamentRequest, jspb.Message);
241
+ if (goog.DEBUG && !COMPILED) {
242
+ /**
243
+ * @public
244
+ * @override
245
+ */
246
+ proto.tournament.GetTournamentRequest.displayName = 'proto.tournament.GetTournamentRequest';
247
+ }
248
+ /**
249
+ * Generated by JsPbCodeGenerator.
250
+ * @param {Array=} opt_data Optional initial data array, typically from a
251
+ * server response, or constructed directly in Javascript. The array is used
252
+ * in place and becomes part of the constructed object. It is not cloned.
253
+ * If no data is provided, the constructed object will be empty, but still
254
+ * valid.
255
+ * @extends {jspb.Message}
256
+ * @constructor
257
+ */
258
+ proto.tournament.TournamentResponse = function(opt_data) {
259
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
260
+ };
261
+ goog.inherits(proto.tournament.TournamentResponse, jspb.Message);
262
+ if (goog.DEBUG && !COMPILED) {
263
+ /**
264
+ * @public
265
+ * @override
266
+ */
267
+ proto.tournament.TournamentResponse.displayName = 'proto.tournament.TournamentResponse';
268
+ }
269
+ /**
270
+ * Generated by JsPbCodeGenerator.
271
+ * @param {Array=} opt_data Optional initial data array, typically from a
272
+ * server response, or constructed directly in Javascript. The array is used
273
+ * in place and becomes part of the constructed object. It is not cloned.
274
+ * If no data is provided, the constructed object will be empty, but still
275
+ * valid.
276
+ * @extends {jspb.Message}
277
+ * @constructor
278
+ */
279
+ proto.tournament.TournamentItemsResponse = function(opt_data) {
280
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.TournamentItemsResponse.repeatedFields_, null);
281
+ };
282
+ goog.inherits(proto.tournament.TournamentItemsResponse, jspb.Message);
283
+ if (goog.DEBUG && !COMPILED) {
284
+ /**
285
+ * @public
286
+ * @override
287
+ */
288
+ proto.tournament.TournamentItemsResponse.displayName = 'proto.tournament.TournamentItemsResponse';
289
+ }
290
+ /**
291
+ * Generated by JsPbCodeGenerator.
292
+ * @param {Array=} opt_data Optional initial data array, typically from a
293
+ * server response, or constructed directly in Javascript. The array is used
294
+ * in place and becomes part of the constructed object. It is not cloned.
295
+ * If no data is provided, the constructed object will be empty, but still
296
+ * valid.
297
+ * @extends {jspb.Message}
298
+ * @constructor
299
+ */
300
+ proto.tournament.TournamentStatusResponse = function(opt_data) {
301
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
302
+ };
303
+ goog.inherits(proto.tournament.TournamentStatusResponse, jspb.Message);
304
+ if (goog.DEBUG && !COMPILED) {
305
+ /**
306
+ * @public
307
+ * @override
308
+ */
309
+ proto.tournament.TournamentStatusResponse.displayName = 'proto.tournament.TournamentStatusResponse';
310
+ }
112
311
 
113
312
 
114
313
 
@@ -385,8 +584,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
385
584
  * http://goto/soy-param-migration
386
585
  * @return {!Object}
387
586
  */
388
- proto.tournament.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
389
- return proto.tournament.PaginationRequest.toObject(opt_includeInstance, this);
587
+ proto.tournament.File.prototype.toObject = function(opt_includeInstance) {
588
+ return proto.tournament.File.toObject(opt_includeInstance, this);
390
589
  };
391
590
 
392
591
 
@@ -395,15 +594,15 @@ proto.tournament.PaginationRequest.prototype.toObject = function(opt_includeInst
395
594
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
396
595
  * the JSPB instance for transitional soy proto support:
397
596
  * http://goto/soy-param-migration
398
- * @param {!proto.tournament.PaginationRequest} msg The msg instance to transform.
597
+ * @param {!proto.tournament.File} msg The msg instance to transform.
399
598
  * @return {!Object}
400
599
  * @suppress {unusedLocalVariables} f is only used for nested messages
401
600
  */
402
- proto.tournament.PaginationRequest.toObject = function(includeInstance, msg) {
601
+ proto.tournament.File.toObject = function(includeInstance, msg) {
403
602
  var f, obj = {
404
- limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
405
- offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
406
- userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f)
603
+ media: msg.getMedia_asB64(),
604
+ fileName: jspb.Message.getFieldWithDefault(msg, 2, ""),
605
+ fileType: jspb.Message.getFieldWithDefault(msg, 3, "")
407
606
  };
408
607
 
409
608
  if (includeInstance) {
@@ -417,23 +616,23 @@ proto.tournament.PaginationRequest.toObject = function(includeInstance, msg) {
417
616
  /**
418
617
  * Deserializes binary data (in protobuf wire format).
419
618
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
420
- * @return {!proto.tournament.PaginationRequest}
619
+ * @return {!proto.tournament.File}
421
620
  */
422
- proto.tournament.PaginationRequest.deserializeBinary = function(bytes) {
621
+ proto.tournament.File.deserializeBinary = function(bytes) {
423
622
  var reader = new jspb.BinaryReader(bytes);
424
- var msg = new proto.tournament.PaginationRequest;
425
- return proto.tournament.PaginationRequest.deserializeBinaryFromReader(msg, reader);
623
+ var msg = new proto.tournament.File;
624
+ return proto.tournament.File.deserializeBinaryFromReader(msg, reader);
426
625
  };
427
626
 
428
627
 
429
628
  /**
430
629
  * Deserializes binary data (in protobuf wire format) from the
431
630
  * given reader into the given message object.
432
- * @param {!proto.tournament.PaginationRequest} msg The message object to deserialize into.
631
+ * @param {!proto.tournament.File} msg The message object to deserialize into.
433
632
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
434
- * @return {!proto.tournament.PaginationRequest}
633
+ * @return {!proto.tournament.File}
435
634
  */
436
- proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
635
+ proto.tournament.File.deserializeBinaryFromReader = function(msg, reader) {
437
636
  while (reader.nextField()) {
438
637
  if (reader.isEndGroup()) {
439
638
  break;
@@ -441,17 +640,16 @@ proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, r
441
640
  var field = reader.getFieldNumber();
442
641
  switch (field) {
443
642
  case 1:
444
- var value = /** @type {number} */ (reader.readInt32());
445
- msg.setLimit(value);
643
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
644
+ msg.setMedia(value);
446
645
  break;
447
646
  case 2:
448
- var value = /** @type {number} */ (reader.readInt32());
449
- msg.setOffset(value);
647
+ var value = /** @type {string} */ (reader.readString());
648
+ msg.setFileName(value);
450
649
  break;
451
650
  case 3:
452
- var value = new proto.tournament.UserSearchRequest;
453
- reader.readMessage(value,proto.tournament.UserSearchRequest.deserializeBinaryFromReader);
454
- msg.setUserSearchParams(value);
651
+ var value = /** @type {string} */ (reader.readString());
652
+ msg.setFileType(value);
455
653
  break;
456
654
  default:
457
655
  reader.skipField();
@@ -466,9 +664,9 @@ proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, r
466
664
  * Serializes the message to binary data (in protobuf wire format).
467
665
  * @return {!Uint8Array}
468
666
  */
469
- proto.tournament.PaginationRequest.prototype.serializeBinary = function() {
667
+ proto.tournament.File.prototype.serializeBinary = function() {
470
668
  var writer = new jspb.BinaryWriter();
471
- proto.tournament.PaginationRequest.serializeBinaryToWriter(this, writer);
669
+ proto.tournament.File.serializeBinaryToWriter(this, writer);
472
670
  return writer.getResultBuffer();
473
671
  };
474
672
 
@@ -476,98 +674,102 @@ proto.tournament.PaginationRequest.prototype.serializeBinary = function() {
476
674
  /**
477
675
  * Serializes the given message to binary data (in protobuf wire
478
676
  * format), writing to the given BinaryWriter.
479
- * @param {!proto.tournament.PaginationRequest} message
677
+ * @param {!proto.tournament.File} message
480
678
  * @param {!jspb.BinaryWriter} writer
481
679
  * @suppress {unusedLocalVariables} f is only used for nested messages
482
680
  */
483
- proto.tournament.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
681
+ proto.tournament.File.serializeBinaryToWriter = function(message, writer) {
484
682
  var f = undefined;
485
- f = message.getLimit();
486
- if (f !== 0) {
487
- writer.writeInt32(
683
+ f = message.getMedia_asU8();
684
+ if (f.length > 0) {
685
+ writer.writeBytes(
488
686
  1,
489
687
  f
490
688
  );
491
689
  }
492
- f = message.getOffset();
493
- if (f !== 0) {
494
- writer.writeInt32(
690
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
691
+ if (f != null) {
692
+ writer.writeString(
495
693
  2,
496
694
  f
497
695
  );
498
696
  }
499
- f = message.getUserSearchParams();
697
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
500
698
  if (f != null) {
501
- writer.writeMessage(
699
+ writer.writeString(
502
700
  3,
503
- f,
504
- proto.tournament.UserSearchRequest.serializeBinaryToWriter
701
+ f
505
702
  );
506
703
  }
507
704
  };
508
705
 
509
706
 
510
707
  /**
511
- * optional int32 limit = 1;
512
- * @return {number}
708
+ * optional bytes media = 1;
709
+ * @return {!(string|Uint8Array)}
513
710
  */
514
- proto.tournament.PaginationRequest.prototype.getLimit = function() {
515
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
711
+ proto.tournament.File.prototype.getMedia = function() {
712
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
516
713
  };
517
714
 
518
715
 
519
716
  /**
520
- * @param {number} value
521
- * @return {!proto.tournament.PaginationRequest} returns this
717
+ * optional bytes media = 1;
718
+ * This is a type-conversion wrapper around `getMedia()`
719
+ * @return {string}
522
720
  */
523
- proto.tournament.PaginationRequest.prototype.setLimit = function(value) {
524
- return jspb.Message.setProto3IntField(this, 1, value);
721
+ proto.tournament.File.prototype.getMedia_asB64 = function() {
722
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
723
+ this.getMedia()));
525
724
  };
526
725
 
527
726
 
528
727
  /**
529
- * optional int32 offset = 2;
530
- * @return {number}
728
+ * optional bytes media = 1;
729
+ * Note that Uint8Array is not supported on all browsers.
730
+ * @see http://caniuse.com/Uint8Array
731
+ * This is a type-conversion wrapper around `getMedia()`
732
+ * @return {!Uint8Array}
531
733
  */
532
- proto.tournament.PaginationRequest.prototype.getOffset = function() {
533
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
734
+ proto.tournament.File.prototype.getMedia_asU8 = function() {
735
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
736
+ this.getMedia()));
534
737
  };
535
738
 
536
739
 
537
740
  /**
538
- * @param {number} value
539
- * @return {!proto.tournament.PaginationRequest} returns this
741
+ * @param {!(string|Uint8Array)} value
742
+ * @return {!proto.tournament.File} returns this
540
743
  */
541
- proto.tournament.PaginationRequest.prototype.setOffset = function(value) {
542
- return jspb.Message.setProto3IntField(this, 2, value);
744
+ proto.tournament.File.prototype.setMedia = function(value) {
745
+ return jspb.Message.setProto3BytesField(this, 1, value);
543
746
  };
544
747
 
545
748
 
546
749
  /**
547
- * optional UserSearchRequest user_search_params = 3;
548
- * @return {?proto.tournament.UserSearchRequest}
750
+ * optional string file_name = 2;
751
+ * @return {string}
549
752
  */
550
- proto.tournament.PaginationRequest.prototype.getUserSearchParams = function() {
551
- return /** @type{?proto.tournament.UserSearchRequest} */ (
552
- jspb.Message.getWrapperField(this, proto.tournament.UserSearchRequest, 3));
753
+ proto.tournament.File.prototype.getFileName = function() {
754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
553
755
  };
554
756
 
555
757
 
556
758
  /**
557
- * @param {?proto.tournament.UserSearchRequest|undefined} value
558
- * @return {!proto.tournament.PaginationRequest} returns this
559
- */
560
- proto.tournament.PaginationRequest.prototype.setUserSearchParams = function(value) {
561
- return jspb.Message.setWrapperField(this, 3, value);
759
+ * @param {string} value
760
+ * @return {!proto.tournament.File} returns this
761
+ */
762
+ proto.tournament.File.prototype.setFileName = function(value) {
763
+ return jspb.Message.setField(this, 2, value);
562
764
  };
563
765
 
564
766
 
565
767
  /**
566
- * Clears the message field making it undefined.
567
- * @return {!proto.tournament.PaginationRequest} returns this
768
+ * Clears the field making it undefined.
769
+ * @return {!proto.tournament.File} returns this
568
770
  */
569
- proto.tournament.PaginationRequest.prototype.clearUserSearchParams = function() {
570
- return this.setUserSearchParams(undefined);
771
+ proto.tournament.File.prototype.clearFileName = function() {
772
+ return jspb.Message.setField(this, 2, undefined);
571
773
  };
572
774
 
573
775
 
@@ -575,19 +777,2250 @@ proto.tournament.PaginationRequest.prototype.clearUserSearchParams = function()
575
777
  * Returns whether this field is set.
576
778
  * @return {boolean}
577
779
  */
578
- proto.tournament.PaginationRequest.prototype.hasUserSearchParams = function() {
579
- return jspb.Message.getField(this, 3) != null;
780
+ proto.tournament.File.prototype.hasFileName = function() {
781
+ return jspb.Message.getField(this, 2) != null;
580
782
  };
581
783
 
582
784
 
785
+ /**
786
+ * optional string file_type = 3;
787
+ * @return {string}
788
+ */
789
+ proto.tournament.File.prototype.getFileType = function() {
790
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
791
+ };
583
792
 
584
793
 
585
-
586
- if (jspb.Message.GENERATE_TO_OBJECT) {
587
794
  /**
588
- * Creates an object representation of this proto.
589
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
590
- * Optional fields that are not set will be set to undefined.
795
+ * @param {string} value
796
+ * @return {!proto.tournament.File} returns this
797
+ */
798
+ proto.tournament.File.prototype.setFileType = function(value) {
799
+ return jspb.Message.setField(this, 3, value);
800
+ };
801
+
802
+
803
+ /**
804
+ * Clears the field making it undefined.
805
+ * @return {!proto.tournament.File} returns this
806
+ */
807
+ proto.tournament.File.prototype.clearFileType = function() {
808
+ return jspb.Message.setField(this, 3, undefined);
809
+ };
810
+
811
+
812
+ /**
813
+ * Returns whether this field is set.
814
+ * @return {boolean}
815
+ */
816
+ proto.tournament.File.prototype.hasFileType = function() {
817
+ return jspb.Message.getField(this, 3) != null;
818
+ };
819
+
820
+
821
+
822
+
823
+
824
+ if (jspb.Message.GENERATE_TO_OBJECT) {
825
+ /**
826
+ * Creates an object representation of this proto.
827
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
828
+ * Optional fields that are not set will be set to undefined.
829
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
830
+ * For the list of reserved names please see:
831
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
832
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
833
+ * JSPB instance for transitional soy proto support:
834
+ * http://goto/soy-param-migration
835
+ * @return {!Object}
836
+ */
837
+ proto.tournament.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
838
+ return proto.tournament.GetFileRequest.toObject(opt_includeInstance, this);
839
+ };
840
+
841
+
842
+ /**
843
+ * Static version of the {@see toObject} method.
844
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
845
+ * the JSPB instance for transitional soy proto support:
846
+ * http://goto/soy-param-migration
847
+ * @param {!proto.tournament.GetFileRequest} msg The msg instance to transform.
848
+ * @return {!Object}
849
+ * @suppress {unusedLocalVariables} f is only used for nested messages
850
+ */
851
+ proto.tournament.GetFileRequest.toObject = function(includeInstance, msg) {
852
+ var f, obj = {
853
+ fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
854
+ instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
855
+ };
856
+
857
+ if (includeInstance) {
858
+ obj.$jspbMessageInstance = msg;
859
+ }
860
+ return obj;
861
+ };
862
+ }
863
+
864
+
865
+ /**
866
+ * Deserializes binary data (in protobuf wire format).
867
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
868
+ * @return {!proto.tournament.GetFileRequest}
869
+ */
870
+ proto.tournament.GetFileRequest.deserializeBinary = function(bytes) {
871
+ var reader = new jspb.BinaryReader(bytes);
872
+ var msg = new proto.tournament.GetFileRequest;
873
+ return proto.tournament.GetFileRequest.deserializeBinaryFromReader(msg, reader);
874
+ };
875
+
876
+
877
+ /**
878
+ * Deserializes binary data (in protobuf wire format) from the
879
+ * given reader into the given message object.
880
+ * @param {!proto.tournament.GetFileRequest} msg The message object to deserialize into.
881
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
882
+ * @return {!proto.tournament.GetFileRequest}
883
+ */
884
+ proto.tournament.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
885
+ while (reader.nextField()) {
886
+ if (reader.isEndGroup()) {
887
+ break;
888
+ }
889
+ var field = reader.getFieldNumber();
890
+ switch (field) {
891
+ case 1:
892
+ var value = /** @type {string} */ (reader.readString());
893
+ msg.setFileName(value);
894
+ break;
895
+ case 2:
896
+ var value = /** @type {string} */ (reader.readString());
897
+ msg.setInstanceType(value);
898
+ break;
899
+ default:
900
+ reader.skipField();
901
+ break;
902
+ }
903
+ }
904
+ return msg;
905
+ };
906
+
907
+
908
+ /**
909
+ * Serializes the message to binary data (in protobuf wire format).
910
+ * @return {!Uint8Array}
911
+ */
912
+ proto.tournament.GetFileRequest.prototype.serializeBinary = function() {
913
+ var writer = new jspb.BinaryWriter();
914
+ proto.tournament.GetFileRequest.serializeBinaryToWriter(this, writer);
915
+ return writer.getResultBuffer();
916
+ };
917
+
918
+
919
+ /**
920
+ * Serializes the given message to binary data (in protobuf wire
921
+ * format), writing to the given BinaryWriter.
922
+ * @param {!proto.tournament.GetFileRequest} message
923
+ * @param {!jspb.BinaryWriter} writer
924
+ * @suppress {unusedLocalVariables} f is only used for nested messages
925
+ */
926
+ proto.tournament.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
927
+ var f = undefined;
928
+ f = message.getFileName();
929
+ if (f.length > 0) {
930
+ writer.writeString(
931
+ 1,
932
+ f
933
+ );
934
+ }
935
+ f = message.getInstanceType();
936
+ if (f.length > 0) {
937
+ writer.writeString(
938
+ 2,
939
+ f
940
+ );
941
+ }
942
+ };
943
+
944
+
945
+ /**
946
+ * optional string file_name = 1;
947
+ * @return {string}
948
+ */
949
+ proto.tournament.GetFileRequest.prototype.getFileName = function() {
950
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
951
+ };
952
+
953
+
954
+ /**
955
+ * @param {string} value
956
+ * @return {!proto.tournament.GetFileRequest} returns this
957
+ */
958
+ proto.tournament.GetFileRequest.prototype.setFileName = function(value) {
959
+ return jspb.Message.setProto3StringField(this, 1, value);
960
+ };
961
+
962
+
963
+ /**
964
+ * optional string instance_type = 2;
965
+ * @return {string}
966
+ */
967
+ proto.tournament.GetFileRequest.prototype.getInstanceType = function() {
968
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
969
+ };
970
+
971
+
972
+ /**
973
+ * @param {string} value
974
+ * @return {!proto.tournament.GetFileRequest} returns this
975
+ */
976
+ proto.tournament.GetFileRequest.prototype.setInstanceType = function(value) {
977
+ return jspb.Message.setProto3StringField(this, 2, value);
978
+ };
979
+
980
+
981
+
982
+
983
+
984
+ if (jspb.Message.GENERATE_TO_OBJECT) {
985
+ /**
986
+ * Creates an object representation of this proto.
987
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
988
+ * Optional fields that are not set will be set to undefined.
989
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
990
+ * For the list of reserved names please see:
991
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
992
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
993
+ * JSPB instance for transitional soy proto support:
994
+ * http://goto/soy-param-migration
995
+ * @return {!Object}
996
+ */
997
+ proto.tournament.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
998
+ return proto.tournament.PaginationRequest.toObject(opt_includeInstance, this);
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * Static version of the {@see toObject} method.
1004
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1005
+ * the JSPB instance for transitional soy proto support:
1006
+ * http://goto/soy-param-migration
1007
+ * @param {!proto.tournament.PaginationRequest} msg The msg instance to transform.
1008
+ * @return {!Object}
1009
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1010
+ */
1011
+ proto.tournament.PaginationRequest.toObject = function(includeInstance, msg) {
1012
+ var f, obj = {
1013
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1014
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1015
+ userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f)
1016
+ };
1017
+
1018
+ if (includeInstance) {
1019
+ obj.$jspbMessageInstance = msg;
1020
+ }
1021
+ return obj;
1022
+ };
1023
+ }
1024
+
1025
+
1026
+ /**
1027
+ * Deserializes binary data (in protobuf wire format).
1028
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1029
+ * @return {!proto.tournament.PaginationRequest}
1030
+ */
1031
+ proto.tournament.PaginationRequest.deserializeBinary = function(bytes) {
1032
+ var reader = new jspb.BinaryReader(bytes);
1033
+ var msg = new proto.tournament.PaginationRequest;
1034
+ return proto.tournament.PaginationRequest.deserializeBinaryFromReader(msg, reader);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * Deserializes binary data (in protobuf wire format) from the
1040
+ * given reader into the given message object.
1041
+ * @param {!proto.tournament.PaginationRequest} msg The message object to deserialize into.
1042
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1043
+ * @return {!proto.tournament.PaginationRequest}
1044
+ */
1045
+ proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
1046
+ while (reader.nextField()) {
1047
+ if (reader.isEndGroup()) {
1048
+ break;
1049
+ }
1050
+ var field = reader.getFieldNumber();
1051
+ switch (field) {
1052
+ case 1:
1053
+ var value = /** @type {number} */ (reader.readInt32());
1054
+ msg.setLimit(value);
1055
+ break;
1056
+ case 2:
1057
+ var value = /** @type {number} */ (reader.readInt32());
1058
+ msg.setOffset(value);
1059
+ break;
1060
+ case 3:
1061
+ var value = new proto.tournament.UserSearchRequest;
1062
+ reader.readMessage(value,proto.tournament.UserSearchRequest.deserializeBinaryFromReader);
1063
+ msg.setUserSearchParams(value);
1064
+ break;
1065
+ default:
1066
+ reader.skipField();
1067
+ break;
1068
+ }
1069
+ }
1070
+ return msg;
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * Serializes the message to binary data (in protobuf wire format).
1076
+ * @return {!Uint8Array}
1077
+ */
1078
+ proto.tournament.PaginationRequest.prototype.serializeBinary = function() {
1079
+ var writer = new jspb.BinaryWriter();
1080
+ proto.tournament.PaginationRequest.serializeBinaryToWriter(this, writer);
1081
+ return writer.getResultBuffer();
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * Serializes the given message to binary data (in protobuf wire
1087
+ * format), writing to the given BinaryWriter.
1088
+ * @param {!proto.tournament.PaginationRequest} message
1089
+ * @param {!jspb.BinaryWriter} writer
1090
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1091
+ */
1092
+ proto.tournament.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
1093
+ var f = undefined;
1094
+ f = message.getLimit();
1095
+ if (f !== 0) {
1096
+ writer.writeInt32(
1097
+ 1,
1098
+ f
1099
+ );
1100
+ }
1101
+ f = message.getOffset();
1102
+ if (f !== 0) {
1103
+ writer.writeInt32(
1104
+ 2,
1105
+ f
1106
+ );
1107
+ }
1108
+ f = message.getUserSearchParams();
1109
+ if (f != null) {
1110
+ writer.writeMessage(
1111
+ 3,
1112
+ f,
1113
+ proto.tournament.UserSearchRequest.serializeBinaryToWriter
1114
+ );
1115
+ }
1116
+ };
1117
+
1118
+
1119
+ /**
1120
+ * optional int32 limit = 1;
1121
+ * @return {number}
1122
+ */
1123
+ proto.tournament.PaginationRequest.prototype.getLimit = function() {
1124
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * @param {number} value
1130
+ * @return {!proto.tournament.PaginationRequest} returns this
1131
+ */
1132
+ proto.tournament.PaginationRequest.prototype.setLimit = function(value) {
1133
+ return jspb.Message.setProto3IntField(this, 1, value);
1134
+ };
1135
+
1136
+
1137
+ /**
1138
+ * optional int32 offset = 2;
1139
+ * @return {number}
1140
+ */
1141
+ proto.tournament.PaginationRequest.prototype.getOffset = function() {
1142
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1143
+ };
1144
+
1145
+
1146
+ /**
1147
+ * @param {number} value
1148
+ * @return {!proto.tournament.PaginationRequest} returns this
1149
+ */
1150
+ proto.tournament.PaginationRequest.prototype.setOffset = function(value) {
1151
+ return jspb.Message.setProto3IntField(this, 2, value);
1152
+ };
1153
+
1154
+
1155
+ /**
1156
+ * optional UserSearchRequest user_search_params = 3;
1157
+ * @return {?proto.tournament.UserSearchRequest}
1158
+ */
1159
+ proto.tournament.PaginationRequest.prototype.getUserSearchParams = function() {
1160
+ return /** @type{?proto.tournament.UserSearchRequest} */ (
1161
+ jspb.Message.getWrapperField(this, proto.tournament.UserSearchRequest, 3));
1162
+ };
1163
+
1164
+
1165
+ /**
1166
+ * @param {?proto.tournament.UserSearchRequest|undefined} value
1167
+ * @return {!proto.tournament.PaginationRequest} returns this
1168
+ */
1169
+ proto.tournament.PaginationRequest.prototype.setUserSearchParams = function(value) {
1170
+ return jspb.Message.setWrapperField(this, 3, value);
1171
+ };
1172
+
1173
+
1174
+ /**
1175
+ * Clears the message field making it undefined.
1176
+ * @return {!proto.tournament.PaginationRequest} returns this
1177
+ */
1178
+ proto.tournament.PaginationRequest.prototype.clearUserSearchParams = function() {
1179
+ return this.setUserSearchParams(undefined);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * Returns whether this field is set.
1185
+ * @return {boolean}
1186
+ */
1187
+ proto.tournament.PaginationRequest.prototype.hasUserSearchParams = function() {
1188
+ return jspb.Message.getField(this, 3) != null;
1189
+ };
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1196
+ /**
1197
+ * Creates an object representation of this proto.
1198
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1199
+ * Optional fields that are not set will be set to undefined.
1200
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1201
+ * For the list of reserved names please see:
1202
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1203
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1204
+ * JSPB instance for transitional soy proto support:
1205
+ * http://goto/soy-param-migration
1206
+ * @return {!Object}
1207
+ */
1208
+ proto.tournament.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
1209
+ return proto.tournament.UserSearchRequest.toObject(opt_includeInstance, this);
1210
+ };
1211
+
1212
+
1213
+ /**
1214
+ * Static version of the {@see toObject} method.
1215
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1216
+ * the JSPB instance for transitional soy proto support:
1217
+ * http://goto/soy-param-migration
1218
+ * @param {!proto.tournament.UserSearchRequest} msg The msg instance to transform.
1219
+ * @return {!Object}
1220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1221
+ */
1222
+ proto.tournament.UserSearchRequest.toObject = function(includeInstance, msg) {
1223
+ var f, obj = {
1224
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1225
+ balanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
1226
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
1227
+ };
1228
+
1229
+ if (includeInstance) {
1230
+ obj.$jspbMessageInstance = msg;
1231
+ }
1232
+ return obj;
1233
+ };
1234
+ }
1235
+
1236
+
1237
+ /**
1238
+ * Deserializes binary data (in protobuf wire format).
1239
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1240
+ * @return {!proto.tournament.UserSearchRequest}
1241
+ */
1242
+ proto.tournament.UserSearchRequest.deserializeBinary = function(bytes) {
1243
+ var reader = new jspb.BinaryReader(bytes);
1244
+ var msg = new proto.tournament.UserSearchRequest;
1245
+ return proto.tournament.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * Deserializes binary data (in protobuf wire format) from the
1251
+ * given reader into the given message object.
1252
+ * @param {!proto.tournament.UserSearchRequest} msg The message object to deserialize into.
1253
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1254
+ * @return {!proto.tournament.UserSearchRequest}
1255
+ */
1256
+ proto.tournament.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1257
+ while (reader.nextField()) {
1258
+ if (reader.isEndGroup()) {
1259
+ break;
1260
+ }
1261
+ var field = reader.getFieldNumber();
1262
+ switch (field) {
1263
+ case 1:
1264
+ var value = /** @type {number} */ (reader.readInt32());
1265
+ msg.setUserId(value);
1266
+ break;
1267
+ case 2:
1268
+ var value = /** @type {string} */ (reader.readString());
1269
+ msg.setBalanceType(value);
1270
+ break;
1271
+ case 3:
1272
+ var value = /** @type {string} */ (reader.readString());
1273
+ msg.setCurrency(value);
1274
+ break;
1275
+ default:
1276
+ reader.skipField();
1277
+ break;
1278
+ }
1279
+ }
1280
+ return msg;
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * Serializes the message to binary data (in protobuf wire format).
1286
+ * @return {!Uint8Array}
1287
+ */
1288
+ proto.tournament.UserSearchRequest.prototype.serializeBinary = function() {
1289
+ var writer = new jspb.BinaryWriter();
1290
+ proto.tournament.UserSearchRequest.serializeBinaryToWriter(this, writer);
1291
+ return writer.getResultBuffer();
1292
+ };
1293
+
1294
+
1295
+ /**
1296
+ * Serializes the given message to binary data (in protobuf wire
1297
+ * format), writing to the given BinaryWriter.
1298
+ * @param {!proto.tournament.UserSearchRequest} message
1299
+ * @param {!jspb.BinaryWriter} writer
1300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1301
+ */
1302
+ proto.tournament.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
1303
+ var f = undefined;
1304
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1305
+ if (f != null) {
1306
+ writer.writeInt32(
1307
+ 1,
1308
+ f
1309
+ );
1310
+ }
1311
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1312
+ if (f != null) {
1313
+ writer.writeString(
1314
+ 2,
1315
+ f
1316
+ );
1317
+ }
1318
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1319
+ if (f != null) {
1320
+ writer.writeString(
1321
+ 3,
1322
+ f
1323
+ );
1324
+ }
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * optional int32 user_id = 1;
1330
+ * @return {number}
1331
+ */
1332
+ proto.tournament.UserSearchRequest.prototype.getUserId = function() {
1333
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * @param {number} value
1339
+ * @return {!proto.tournament.UserSearchRequest} returns this
1340
+ */
1341
+ proto.tournament.UserSearchRequest.prototype.setUserId = function(value) {
1342
+ return jspb.Message.setField(this, 1, value);
1343
+ };
1344
+
1345
+
1346
+ /**
1347
+ * Clears the field making it undefined.
1348
+ * @return {!proto.tournament.UserSearchRequest} returns this
1349
+ */
1350
+ proto.tournament.UserSearchRequest.prototype.clearUserId = function() {
1351
+ return jspb.Message.setField(this, 1, undefined);
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * Returns whether this field is set.
1357
+ * @return {boolean}
1358
+ */
1359
+ proto.tournament.UserSearchRequest.prototype.hasUserId = function() {
1360
+ return jspb.Message.getField(this, 1) != null;
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * optional string balance_type = 2;
1366
+ * @return {string}
1367
+ */
1368
+ proto.tournament.UserSearchRequest.prototype.getBalanceType = function() {
1369
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1370
+ };
1371
+
1372
+
1373
+ /**
1374
+ * @param {string} value
1375
+ * @return {!proto.tournament.UserSearchRequest} returns this
1376
+ */
1377
+ proto.tournament.UserSearchRequest.prototype.setBalanceType = function(value) {
1378
+ return jspb.Message.setField(this, 2, value);
1379
+ };
1380
+
1381
+
1382
+ /**
1383
+ * Clears the field making it undefined.
1384
+ * @return {!proto.tournament.UserSearchRequest} returns this
1385
+ */
1386
+ proto.tournament.UserSearchRequest.prototype.clearBalanceType = function() {
1387
+ return jspb.Message.setField(this, 2, undefined);
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * Returns whether this field is set.
1393
+ * @return {boolean}
1394
+ */
1395
+ proto.tournament.UserSearchRequest.prototype.hasBalanceType = function() {
1396
+ return jspb.Message.getField(this, 2) != null;
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * optional string currency = 3;
1402
+ * @return {string}
1403
+ */
1404
+ proto.tournament.UserSearchRequest.prototype.getCurrency = function() {
1405
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * @param {string} value
1411
+ * @return {!proto.tournament.UserSearchRequest} returns this
1412
+ */
1413
+ proto.tournament.UserSearchRequest.prototype.setCurrency = function(value) {
1414
+ return jspb.Message.setField(this, 3, value);
1415
+ };
1416
+
1417
+
1418
+ /**
1419
+ * Clears the field making it undefined.
1420
+ * @return {!proto.tournament.UserSearchRequest} returns this
1421
+ */
1422
+ proto.tournament.UserSearchRequest.prototype.clearCurrency = function() {
1423
+ return jspb.Message.setField(this, 3, undefined);
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * Returns whether this field is set.
1429
+ * @return {boolean}
1430
+ */
1431
+ proto.tournament.UserSearchRequest.prototype.hasCurrency = function() {
1432
+ return jspb.Message.getField(this, 3) != null;
1433
+ };
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1440
+ /**
1441
+ * Creates an object representation of this proto.
1442
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1443
+ * Optional fields that are not set will be set to undefined.
1444
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1445
+ * For the list of reserved names please see:
1446
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1447
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1448
+ * JSPB instance for transitional soy proto support:
1449
+ * http://goto/soy-param-migration
1450
+ * @return {!Object}
1451
+ */
1452
+ proto.tournament.TournamentItem.prototype.toObject = function(opt_includeInstance) {
1453
+ return proto.tournament.TournamentItem.toObject(opt_includeInstance, this);
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * Static version of the {@see toObject} method.
1459
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1460
+ * the JSPB instance for transitional soy proto support:
1461
+ * http://goto/soy-param-migration
1462
+ * @param {!proto.tournament.TournamentItem} msg The msg instance to transform.
1463
+ * @return {!Object}
1464
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1465
+ */
1466
+ proto.tournament.TournamentItem.toObject = function(includeInstance, msg) {
1467
+ var f, obj = {
1468
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1469
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
1470
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1471
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
1472
+ currentMembersCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
1473
+ maxMembersCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
1474
+ startedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
1475
+ finishedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
1476
+ status: jspb.Message.getFieldWithDefault(msg, 9, ""),
1477
+ image: jspb.Message.getFieldWithDefault(msg, 10, "")
1478
+ };
1479
+
1480
+ if (includeInstance) {
1481
+ obj.$jspbMessageInstance = msg;
1482
+ }
1483
+ return obj;
1484
+ };
1485
+ }
1486
+
1487
+
1488
+ /**
1489
+ * Deserializes binary data (in protobuf wire format).
1490
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1491
+ * @return {!proto.tournament.TournamentItem}
1492
+ */
1493
+ proto.tournament.TournamentItem.deserializeBinary = function(bytes) {
1494
+ var reader = new jspb.BinaryReader(bytes);
1495
+ var msg = new proto.tournament.TournamentItem;
1496
+ return proto.tournament.TournamentItem.deserializeBinaryFromReader(msg, reader);
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * Deserializes binary data (in protobuf wire format) from the
1502
+ * given reader into the given message object.
1503
+ * @param {!proto.tournament.TournamentItem} msg The message object to deserialize into.
1504
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1505
+ * @return {!proto.tournament.TournamentItem}
1506
+ */
1507
+ proto.tournament.TournamentItem.deserializeBinaryFromReader = function(msg, reader) {
1508
+ while (reader.nextField()) {
1509
+ if (reader.isEndGroup()) {
1510
+ break;
1511
+ }
1512
+ var field = reader.getFieldNumber();
1513
+ switch (field) {
1514
+ case 1:
1515
+ var value = /** @type {number} */ (reader.readInt32());
1516
+ msg.setId(value);
1517
+ break;
1518
+ case 2:
1519
+ var value = /** @type {string} */ (reader.readString());
1520
+ msg.setTitle(value);
1521
+ break;
1522
+ case 3:
1523
+ var value = /** @type {string} */ (reader.readString());
1524
+ msg.setDescription(value);
1525
+ break;
1526
+ case 4:
1527
+ var value = /** @type {number} */ (reader.readInt32());
1528
+ msg.setIsActive(value);
1529
+ break;
1530
+ case 5:
1531
+ var value = /** @type {number} */ (reader.readInt32());
1532
+ msg.setCurrentMembersCount(value);
1533
+ break;
1534
+ case 6:
1535
+ var value = /** @type {number} */ (reader.readInt32());
1536
+ msg.setMaxMembersCount(value);
1537
+ break;
1538
+ case 7:
1539
+ var value = /** @type {string} */ (reader.readString());
1540
+ msg.setStartedAt(value);
1541
+ break;
1542
+ case 8:
1543
+ var value = /** @type {string} */ (reader.readString());
1544
+ msg.setFinishedAt(value);
1545
+ break;
1546
+ case 9:
1547
+ var value = /** @type {string} */ (reader.readString());
1548
+ msg.setStatus(value);
1549
+ break;
1550
+ case 10:
1551
+ var value = /** @type {string} */ (reader.readString());
1552
+ msg.setImage(value);
1553
+ break;
1554
+ default:
1555
+ reader.skipField();
1556
+ break;
1557
+ }
1558
+ }
1559
+ return msg;
1560
+ };
1561
+
1562
+
1563
+ /**
1564
+ * Serializes the message to binary data (in protobuf wire format).
1565
+ * @return {!Uint8Array}
1566
+ */
1567
+ proto.tournament.TournamentItem.prototype.serializeBinary = function() {
1568
+ var writer = new jspb.BinaryWriter();
1569
+ proto.tournament.TournamentItem.serializeBinaryToWriter(this, writer);
1570
+ return writer.getResultBuffer();
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * Serializes the given message to binary data (in protobuf wire
1576
+ * format), writing to the given BinaryWriter.
1577
+ * @param {!proto.tournament.TournamentItem} message
1578
+ * @param {!jspb.BinaryWriter} writer
1579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1580
+ */
1581
+ proto.tournament.TournamentItem.serializeBinaryToWriter = function(message, writer) {
1582
+ var f = undefined;
1583
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1584
+ if (f != null) {
1585
+ writer.writeInt32(
1586
+ 1,
1587
+ f
1588
+ );
1589
+ }
1590
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1591
+ if (f != null) {
1592
+ writer.writeString(
1593
+ 2,
1594
+ f
1595
+ );
1596
+ }
1597
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1598
+ if (f != null) {
1599
+ writer.writeString(
1600
+ 3,
1601
+ f
1602
+ );
1603
+ }
1604
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
1605
+ if (f != null) {
1606
+ writer.writeInt32(
1607
+ 4,
1608
+ f
1609
+ );
1610
+ }
1611
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
1612
+ if (f != null) {
1613
+ writer.writeInt32(
1614
+ 5,
1615
+ f
1616
+ );
1617
+ }
1618
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
1619
+ if (f != null) {
1620
+ writer.writeInt32(
1621
+ 6,
1622
+ f
1623
+ );
1624
+ }
1625
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
1626
+ if (f != null) {
1627
+ writer.writeString(
1628
+ 7,
1629
+ f
1630
+ );
1631
+ }
1632
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
1633
+ if (f != null) {
1634
+ writer.writeString(
1635
+ 8,
1636
+ f
1637
+ );
1638
+ }
1639
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
1640
+ if (f != null) {
1641
+ writer.writeString(
1642
+ 9,
1643
+ f
1644
+ );
1645
+ }
1646
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
1647
+ if (f != null) {
1648
+ writer.writeString(
1649
+ 10,
1650
+ f
1651
+ );
1652
+ }
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * optional int32 id = 1;
1658
+ * @return {number}
1659
+ */
1660
+ proto.tournament.TournamentItem.prototype.getId = function() {
1661
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * @param {number} value
1667
+ * @return {!proto.tournament.TournamentItem} returns this
1668
+ */
1669
+ proto.tournament.TournamentItem.prototype.setId = function(value) {
1670
+ return jspb.Message.setField(this, 1, value);
1671
+ };
1672
+
1673
+
1674
+ /**
1675
+ * Clears the field making it undefined.
1676
+ * @return {!proto.tournament.TournamentItem} returns this
1677
+ */
1678
+ proto.tournament.TournamentItem.prototype.clearId = function() {
1679
+ return jspb.Message.setField(this, 1, undefined);
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * Returns whether this field is set.
1685
+ * @return {boolean}
1686
+ */
1687
+ proto.tournament.TournamentItem.prototype.hasId = function() {
1688
+ return jspb.Message.getField(this, 1) != null;
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * optional string title = 2;
1694
+ * @return {string}
1695
+ */
1696
+ proto.tournament.TournamentItem.prototype.getTitle = function() {
1697
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1698
+ };
1699
+
1700
+
1701
+ /**
1702
+ * @param {string} value
1703
+ * @return {!proto.tournament.TournamentItem} returns this
1704
+ */
1705
+ proto.tournament.TournamentItem.prototype.setTitle = function(value) {
1706
+ return jspb.Message.setField(this, 2, value);
1707
+ };
1708
+
1709
+
1710
+ /**
1711
+ * Clears the field making it undefined.
1712
+ * @return {!proto.tournament.TournamentItem} returns this
1713
+ */
1714
+ proto.tournament.TournamentItem.prototype.clearTitle = function() {
1715
+ return jspb.Message.setField(this, 2, undefined);
1716
+ };
1717
+
1718
+
1719
+ /**
1720
+ * Returns whether this field is set.
1721
+ * @return {boolean}
1722
+ */
1723
+ proto.tournament.TournamentItem.prototype.hasTitle = function() {
1724
+ return jspb.Message.getField(this, 2) != null;
1725
+ };
1726
+
1727
+
1728
+ /**
1729
+ * optional string description = 3;
1730
+ * @return {string}
1731
+ */
1732
+ proto.tournament.TournamentItem.prototype.getDescription = function() {
1733
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * @param {string} value
1739
+ * @return {!proto.tournament.TournamentItem} returns this
1740
+ */
1741
+ proto.tournament.TournamentItem.prototype.setDescription = function(value) {
1742
+ return jspb.Message.setField(this, 3, value);
1743
+ };
1744
+
1745
+
1746
+ /**
1747
+ * Clears the field making it undefined.
1748
+ * @return {!proto.tournament.TournamentItem} returns this
1749
+ */
1750
+ proto.tournament.TournamentItem.prototype.clearDescription = function() {
1751
+ return jspb.Message.setField(this, 3, undefined);
1752
+ };
1753
+
1754
+
1755
+ /**
1756
+ * Returns whether this field is set.
1757
+ * @return {boolean}
1758
+ */
1759
+ proto.tournament.TournamentItem.prototype.hasDescription = function() {
1760
+ return jspb.Message.getField(this, 3) != null;
1761
+ };
1762
+
1763
+
1764
+ /**
1765
+ * optional int32 is_active = 4;
1766
+ * @return {number}
1767
+ */
1768
+ proto.tournament.TournamentItem.prototype.getIsActive = function() {
1769
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1770
+ };
1771
+
1772
+
1773
+ /**
1774
+ * @param {number} value
1775
+ * @return {!proto.tournament.TournamentItem} returns this
1776
+ */
1777
+ proto.tournament.TournamentItem.prototype.setIsActive = function(value) {
1778
+ return jspb.Message.setField(this, 4, value);
1779
+ };
1780
+
1781
+
1782
+ /**
1783
+ * Clears the field making it undefined.
1784
+ * @return {!proto.tournament.TournamentItem} returns this
1785
+ */
1786
+ proto.tournament.TournamentItem.prototype.clearIsActive = function() {
1787
+ return jspb.Message.setField(this, 4, undefined);
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * Returns whether this field is set.
1793
+ * @return {boolean}
1794
+ */
1795
+ proto.tournament.TournamentItem.prototype.hasIsActive = function() {
1796
+ return jspb.Message.getField(this, 4) != null;
1797
+ };
1798
+
1799
+
1800
+ /**
1801
+ * optional int32 current_members_count = 5;
1802
+ * @return {number}
1803
+ */
1804
+ proto.tournament.TournamentItem.prototype.getCurrentMembersCount = function() {
1805
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * @param {number} value
1811
+ * @return {!proto.tournament.TournamentItem} returns this
1812
+ */
1813
+ proto.tournament.TournamentItem.prototype.setCurrentMembersCount = function(value) {
1814
+ return jspb.Message.setField(this, 5, value);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * Clears the field making it undefined.
1820
+ * @return {!proto.tournament.TournamentItem} returns this
1821
+ */
1822
+ proto.tournament.TournamentItem.prototype.clearCurrentMembersCount = function() {
1823
+ return jspb.Message.setField(this, 5, undefined);
1824
+ };
1825
+
1826
+
1827
+ /**
1828
+ * Returns whether this field is set.
1829
+ * @return {boolean}
1830
+ */
1831
+ proto.tournament.TournamentItem.prototype.hasCurrentMembersCount = function() {
1832
+ return jspb.Message.getField(this, 5) != null;
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * optional int32 max_members_count = 6;
1838
+ * @return {number}
1839
+ */
1840
+ proto.tournament.TournamentItem.prototype.getMaxMembersCount = function() {
1841
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1842
+ };
1843
+
1844
+
1845
+ /**
1846
+ * @param {number} value
1847
+ * @return {!proto.tournament.TournamentItem} returns this
1848
+ */
1849
+ proto.tournament.TournamentItem.prototype.setMaxMembersCount = function(value) {
1850
+ return jspb.Message.setField(this, 6, value);
1851
+ };
1852
+
1853
+
1854
+ /**
1855
+ * Clears the field making it undefined.
1856
+ * @return {!proto.tournament.TournamentItem} returns this
1857
+ */
1858
+ proto.tournament.TournamentItem.prototype.clearMaxMembersCount = function() {
1859
+ return jspb.Message.setField(this, 6, undefined);
1860
+ };
1861
+
1862
+
1863
+ /**
1864
+ * Returns whether this field is set.
1865
+ * @return {boolean}
1866
+ */
1867
+ proto.tournament.TournamentItem.prototype.hasMaxMembersCount = function() {
1868
+ return jspb.Message.getField(this, 6) != null;
1869
+ };
1870
+
1871
+
1872
+ /**
1873
+ * optional string started_at = 7;
1874
+ * @return {string}
1875
+ */
1876
+ proto.tournament.TournamentItem.prototype.getStartedAt = function() {
1877
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1878
+ };
1879
+
1880
+
1881
+ /**
1882
+ * @param {string} value
1883
+ * @return {!proto.tournament.TournamentItem} returns this
1884
+ */
1885
+ proto.tournament.TournamentItem.prototype.setStartedAt = function(value) {
1886
+ return jspb.Message.setField(this, 7, value);
1887
+ };
1888
+
1889
+
1890
+ /**
1891
+ * Clears the field making it undefined.
1892
+ * @return {!proto.tournament.TournamentItem} returns this
1893
+ */
1894
+ proto.tournament.TournamentItem.prototype.clearStartedAt = function() {
1895
+ return jspb.Message.setField(this, 7, undefined);
1896
+ };
1897
+
1898
+
1899
+ /**
1900
+ * Returns whether this field is set.
1901
+ * @return {boolean}
1902
+ */
1903
+ proto.tournament.TournamentItem.prototype.hasStartedAt = function() {
1904
+ return jspb.Message.getField(this, 7) != null;
1905
+ };
1906
+
1907
+
1908
+ /**
1909
+ * optional string finished_at = 8;
1910
+ * @return {string}
1911
+ */
1912
+ proto.tournament.TournamentItem.prototype.getFinishedAt = function() {
1913
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1914
+ };
1915
+
1916
+
1917
+ /**
1918
+ * @param {string} value
1919
+ * @return {!proto.tournament.TournamentItem} returns this
1920
+ */
1921
+ proto.tournament.TournamentItem.prototype.setFinishedAt = function(value) {
1922
+ return jspb.Message.setField(this, 8, value);
1923
+ };
1924
+
1925
+
1926
+ /**
1927
+ * Clears the field making it undefined.
1928
+ * @return {!proto.tournament.TournamentItem} returns this
1929
+ */
1930
+ proto.tournament.TournamentItem.prototype.clearFinishedAt = function() {
1931
+ return jspb.Message.setField(this, 8, undefined);
1932
+ };
1933
+
1934
+
1935
+ /**
1936
+ * Returns whether this field is set.
1937
+ * @return {boolean}
1938
+ */
1939
+ proto.tournament.TournamentItem.prototype.hasFinishedAt = function() {
1940
+ return jspb.Message.getField(this, 8) != null;
1941
+ };
1942
+
1943
+
1944
+ /**
1945
+ * optional string status = 9;
1946
+ * @return {string}
1947
+ */
1948
+ proto.tournament.TournamentItem.prototype.getStatus = function() {
1949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1950
+ };
1951
+
1952
+
1953
+ /**
1954
+ * @param {string} value
1955
+ * @return {!proto.tournament.TournamentItem} returns this
1956
+ */
1957
+ proto.tournament.TournamentItem.prototype.setStatus = function(value) {
1958
+ return jspb.Message.setField(this, 9, value);
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * Clears the field making it undefined.
1964
+ * @return {!proto.tournament.TournamentItem} returns this
1965
+ */
1966
+ proto.tournament.TournamentItem.prototype.clearStatus = function() {
1967
+ return jspb.Message.setField(this, 9, undefined);
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * Returns whether this field is set.
1973
+ * @return {boolean}
1974
+ */
1975
+ proto.tournament.TournamentItem.prototype.hasStatus = function() {
1976
+ return jspb.Message.getField(this, 9) != null;
1977
+ };
1978
+
1979
+
1980
+ /**
1981
+ * optional string image = 10;
1982
+ * @return {string}
1983
+ */
1984
+ proto.tournament.TournamentItem.prototype.getImage = function() {
1985
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1986
+ };
1987
+
1988
+
1989
+ /**
1990
+ * @param {string} value
1991
+ * @return {!proto.tournament.TournamentItem} returns this
1992
+ */
1993
+ proto.tournament.TournamentItem.prototype.setImage = function(value) {
1994
+ return jspb.Message.setField(this, 10, value);
1995
+ };
1996
+
1997
+
1998
+ /**
1999
+ * Clears the field making it undefined.
2000
+ * @return {!proto.tournament.TournamentItem} returns this
2001
+ */
2002
+ proto.tournament.TournamentItem.prototype.clearImage = function() {
2003
+ return jspb.Message.setField(this, 10, undefined);
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Returns whether this field is set.
2009
+ * @return {boolean}
2010
+ */
2011
+ proto.tournament.TournamentItem.prototype.hasImage = function() {
2012
+ return jspb.Message.getField(this, 10) != null;
2013
+ };
2014
+
2015
+
2016
+
2017
+ /**
2018
+ * Oneof group definitions for this message. Each group defines the field
2019
+ * numbers belonging to that group. When of these fields' value is set, all
2020
+ * other fields in the group are cleared. During deserialization, if multiple
2021
+ * fields are encountered for a group, only the last value seen will be kept.
2022
+ * @private {!Array<!Array<number>>}
2023
+ * @const
2024
+ */
2025
+ proto.tournament.TournamentRequest.oneofGroups_ = [[1,2]];
2026
+
2027
+ /**
2028
+ * @enum {number}
2029
+ */
2030
+ proto.tournament.TournamentRequest.RequestCase = {
2031
+ REQUEST_NOT_SET: 0,
2032
+ TOURNAMENT_DATA: 1,
2033
+ FILE: 2
2034
+ };
2035
+
2036
+ /**
2037
+ * @return {proto.tournament.TournamentRequest.RequestCase}
2038
+ */
2039
+ proto.tournament.TournamentRequest.prototype.getRequestCase = function() {
2040
+ return /** @type {proto.tournament.TournamentRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.tournament.TournamentRequest.oneofGroups_[0]));
2041
+ };
2042
+
2043
+
2044
+
2045
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2046
+ /**
2047
+ * Creates an object representation of this proto.
2048
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2049
+ * Optional fields that are not set will be set to undefined.
2050
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2051
+ * For the list of reserved names please see:
2052
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2053
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2054
+ * JSPB instance for transitional soy proto support:
2055
+ * http://goto/soy-param-migration
2056
+ * @return {!Object}
2057
+ */
2058
+ proto.tournament.TournamentRequest.prototype.toObject = function(opt_includeInstance) {
2059
+ return proto.tournament.TournamentRequest.toObject(opt_includeInstance, this);
2060
+ };
2061
+
2062
+
2063
+ /**
2064
+ * Static version of the {@see toObject} method.
2065
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2066
+ * the JSPB instance for transitional soy proto support:
2067
+ * http://goto/soy-param-migration
2068
+ * @param {!proto.tournament.TournamentRequest} msg The msg instance to transform.
2069
+ * @return {!Object}
2070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2071
+ */
2072
+ proto.tournament.TournamentRequest.toObject = function(includeInstance, msg) {
2073
+ var f, obj = {
2074
+ tournamentData: (f = msg.getTournamentData()) && proto.tournament.TournamentItemRequest.toObject(includeInstance, f),
2075
+ file: (f = msg.getFile()) && proto.tournament.File.toObject(includeInstance, f)
2076
+ };
2077
+
2078
+ if (includeInstance) {
2079
+ obj.$jspbMessageInstance = msg;
2080
+ }
2081
+ return obj;
2082
+ };
2083
+ }
2084
+
2085
+
2086
+ /**
2087
+ * Deserializes binary data (in protobuf wire format).
2088
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2089
+ * @return {!proto.tournament.TournamentRequest}
2090
+ */
2091
+ proto.tournament.TournamentRequest.deserializeBinary = function(bytes) {
2092
+ var reader = new jspb.BinaryReader(bytes);
2093
+ var msg = new proto.tournament.TournamentRequest;
2094
+ return proto.tournament.TournamentRequest.deserializeBinaryFromReader(msg, reader);
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * Deserializes binary data (in protobuf wire format) from the
2100
+ * given reader into the given message object.
2101
+ * @param {!proto.tournament.TournamentRequest} msg The message object to deserialize into.
2102
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2103
+ * @return {!proto.tournament.TournamentRequest}
2104
+ */
2105
+ proto.tournament.TournamentRequest.deserializeBinaryFromReader = function(msg, reader) {
2106
+ while (reader.nextField()) {
2107
+ if (reader.isEndGroup()) {
2108
+ break;
2109
+ }
2110
+ var field = reader.getFieldNumber();
2111
+ switch (field) {
2112
+ case 1:
2113
+ var value = new proto.tournament.TournamentItemRequest;
2114
+ reader.readMessage(value,proto.tournament.TournamentItemRequest.deserializeBinaryFromReader);
2115
+ msg.setTournamentData(value);
2116
+ break;
2117
+ case 2:
2118
+ var value = new proto.tournament.File;
2119
+ reader.readMessage(value,proto.tournament.File.deserializeBinaryFromReader);
2120
+ msg.setFile(value);
2121
+ break;
2122
+ default:
2123
+ reader.skipField();
2124
+ break;
2125
+ }
2126
+ }
2127
+ return msg;
2128
+ };
2129
+
2130
+
2131
+ /**
2132
+ * Serializes the message to binary data (in protobuf wire format).
2133
+ * @return {!Uint8Array}
2134
+ */
2135
+ proto.tournament.TournamentRequest.prototype.serializeBinary = function() {
2136
+ var writer = new jspb.BinaryWriter();
2137
+ proto.tournament.TournamentRequest.serializeBinaryToWriter(this, writer);
2138
+ return writer.getResultBuffer();
2139
+ };
2140
+
2141
+
2142
+ /**
2143
+ * Serializes the given message to binary data (in protobuf wire
2144
+ * format), writing to the given BinaryWriter.
2145
+ * @param {!proto.tournament.TournamentRequest} message
2146
+ * @param {!jspb.BinaryWriter} writer
2147
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2148
+ */
2149
+ proto.tournament.TournamentRequest.serializeBinaryToWriter = function(message, writer) {
2150
+ var f = undefined;
2151
+ f = message.getTournamentData();
2152
+ if (f != null) {
2153
+ writer.writeMessage(
2154
+ 1,
2155
+ f,
2156
+ proto.tournament.TournamentItemRequest.serializeBinaryToWriter
2157
+ );
2158
+ }
2159
+ f = message.getFile();
2160
+ if (f != null) {
2161
+ writer.writeMessage(
2162
+ 2,
2163
+ f,
2164
+ proto.tournament.File.serializeBinaryToWriter
2165
+ );
2166
+ }
2167
+ };
2168
+
2169
+
2170
+ /**
2171
+ * optional TournamentItemRequest tournament_data = 1;
2172
+ * @return {?proto.tournament.TournamentItemRequest}
2173
+ */
2174
+ proto.tournament.TournamentRequest.prototype.getTournamentData = function() {
2175
+ return /** @type{?proto.tournament.TournamentItemRequest} */ (
2176
+ jspb.Message.getWrapperField(this, proto.tournament.TournamentItemRequest, 1));
2177
+ };
2178
+
2179
+
2180
+ /**
2181
+ * @param {?proto.tournament.TournamentItemRequest|undefined} value
2182
+ * @return {!proto.tournament.TournamentRequest} returns this
2183
+ */
2184
+ proto.tournament.TournamentRequest.prototype.setTournamentData = function(value) {
2185
+ return jspb.Message.setOneofWrapperField(this, 1, proto.tournament.TournamentRequest.oneofGroups_[0], value);
2186
+ };
2187
+
2188
+
2189
+ /**
2190
+ * Clears the message field making it undefined.
2191
+ * @return {!proto.tournament.TournamentRequest} returns this
2192
+ */
2193
+ proto.tournament.TournamentRequest.prototype.clearTournamentData = function() {
2194
+ return this.setTournamentData(undefined);
2195
+ };
2196
+
2197
+
2198
+ /**
2199
+ * Returns whether this field is set.
2200
+ * @return {boolean}
2201
+ */
2202
+ proto.tournament.TournamentRequest.prototype.hasTournamentData = function() {
2203
+ return jspb.Message.getField(this, 1) != null;
2204
+ };
2205
+
2206
+
2207
+ /**
2208
+ * optional File file = 2;
2209
+ * @return {?proto.tournament.File}
2210
+ */
2211
+ proto.tournament.TournamentRequest.prototype.getFile = function() {
2212
+ return /** @type{?proto.tournament.File} */ (
2213
+ jspb.Message.getWrapperField(this, proto.tournament.File, 2));
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * @param {?proto.tournament.File|undefined} value
2219
+ * @return {!proto.tournament.TournamentRequest} returns this
2220
+ */
2221
+ proto.tournament.TournamentRequest.prototype.setFile = function(value) {
2222
+ return jspb.Message.setOneofWrapperField(this, 2, proto.tournament.TournamentRequest.oneofGroups_[0], value);
2223
+ };
2224
+
2225
+
2226
+ /**
2227
+ * Clears the message field making it undefined.
2228
+ * @return {!proto.tournament.TournamentRequest} returns this
2229
+ */
2230
+ proto.tournament.TournamentRequest.prototype.clearFile = function() {
2231
+ return this.setFile(undefined);
2232
+ };
2233
+
2234
+
2235
+ /**
2236
+ * Returns whether this field is set.
2237
+ * @return {boolean}
2238
+ */
2239
+ proto.tournament.TournamentRequest.prototype.hasFile = function() {
2240
+ return jspb.Message.getField(this, 2) != null;
2241
+ };
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2248
+ /**
2249
+ * Creates an object representation of this proto.
2250
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2251
+ * Optional fields that are not set will be set to undefined.
2252
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2253
+ * For the list of reserved names please see:
2254
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2255
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2256
+ * JSPB instance for transitional soy proto support:
2257
+ * http://goto/soy-param-migration
2258
+ * @return {!Object}
2259
+ */
2260
+ proto.tournament.TournamentItemRequest.prototype.toObject = function(opt_includeInstance) {
2261
+ return proto.tournament.TournamentItemRequest.toObject(opt_includeInstance, this);
2262
+ };
2263
+
2264
+
2265
+ /**
2266
+ * Static version of the {@see toObject} method.
2267
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2268
+ * the JSPB instance for transitional soy proto support:
2269
+ * http://goto/soy-param-migration
2270
+ * @param {!proto.tournament.TournamentItemRequest} msg The msg instance to transform.
2271
+ * @return {!Object}
2272
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2273
+ */
2274
+ proto.tournament.TournamentItemRequest.toObject = function(includeInstance, msg) {
2275
+ var f, obj = {
2276
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2277
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
2278
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
2279
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
2280
+ maxMembersCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
2281
+ startedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
2282
+ finishedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
2283
+ statusId: jspb.Message.getFieldWithDefault(msg, 8, 0)
2284
+ };
2285
+
2286
+ if (includeInstance) {
2287
+ obj.$jspbMessageInstance = msg;
2288
+ }
2289
+ return obj;
2290
+ };
2291
+ }
2292
+
2293
+
2294
+ /**
2295
+ * Deserializes binary data (in protobuf wire format).
2296
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2297
+ * @return {!proto.tournament.TournamentItemRequest}
2298
+ */
2299
+ proto.tournament.TournamentItemRequest.deserializeBinary = function(bytes) {
2300
+ var reader = new jspb.BinaryReader(bytes);
2301
+ var msg = new proto.tournament.TournamentItemRequest;
2302
+ return proto.tournament.TournamentItemRequest.deserializeBinaryFromReader(msg, reader);
2303
+ };
2304
+
2305
+
2306
+ /**
2307
+ * Deserializes binary data (in protobuf wire format) from the
2308
+ * given reader into the given message object.
2309
+ * @param {!proto.tournament.TournamentItemRequest} msg The message object to deserialize into.
2310
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2311
+ * @return {!proto.tournament.TournamentItemRequest}
2312
+ */
2313
+ proto.tournament.TournamentItemRequest.deserializeBinaryFromReader = function(msg, reader) {
2314
+ while (reader.nextField()) {
2315
+ if (reader.isEndGroup()) {
2316
+ break;
2317
+ }
2318
+ var field = reader.getFieldNumber();
2319
+ switch (field) {
2320
+ case 1:
2321
+ var value = /** @type {number} */ (reader.readInt32());
2322
+ msg.setId(value);
2323
+ break;
2324
+ case 2:
2325
+ var value = /** @type {string} */ (reader.readString());
2326
+ msg.setTitle(value);
2327
+ break;
2328
+ case 3:
2329
+ var value = /** @type {string} */ (reader.readString());
2330
+ msg.setDescription(value);
2331
+ break;
2332
+ case 4:
2333
+ var value = /** @type {number} */ (reader.readInt32());
2334
+ msg.setIsActive(value);
2335
+ break;
2336
+ case 5:
2337
+ var value = /** @type {number} */ (reader.readInt32());
2338
+ msg.setMaxMembersCount(value);
2339
+ break;
2340
+ case 6:
2341
+ var value = /** @type {string} */ (reader.readString());
2342
+ msg.setStartedAt(value);
2343
+ break;
2344
+ case 7:
2345
+ var value = /** @type {string} */ (reader.readString());
2346
+ msg.setFinishedAt(value);
2347
+ break;
2348
+ case 8:
2349
+ var value = /** @type {number} */ (reader.readInt32());
2350
+ msg.setStatusId(value);
2351
+ break;
2352
+ default:
2353
+ reader.skipField();
2354
+ break;
2355
+ }
2356
+ }
2357
+ return msg;
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * Serializes the message to binary data (in protobuf wire format).
2363
+ * @return {!Uint8Array}
2364
+ */
2365
+ proto.tournament.TournamentItemRequest.prototype.serializeBinary = function() {
2366
+ var writer = new jspb.BinaryWriter();
2367
+ proto.tournament.TournamentItemRequest.serializeBinaryToWriter(this, writer);
2368
+ return writer.getResultBuffer();
2369
+ };
2370
+
2371
+
2372
+ /**
2373
+ * Serializes the given message to binary data (in protobuf wire
2374
+ * format), writing to the given BinaryWriter.
2375
+ * @param {!proto.tournament.TournamentItemRequest} message
2376
+ * @param {!jspb.BinaryWriter} writer
2377
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2378
+ */
2379
+ proto.tournament.TournamentItemRequest.serializeBinaryToWriter = function(message, writer) {
2380
+ var f = undefined;
2381
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
2382
+ if (f != null) {
2383
+ writer.writeInt32(
2384
+ 1,
2385
+ f
2386
+ );
2387
+ }
2388
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2389
+ if (f != null) {
2390
+ writer.writeString(
2391
+ 2,
2392
+ f
2393
+ );
2394
+ }
2395
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2396
+ if (f != null) {
2397
+ writer.writeString(
2398
+ 3,
2399
+ f
2400
+ );
2401
+ }
2402
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
2403
+ if (f != null) {
2404
+ writer.writeInt32(
2405
+ 4,
2406
+ f
2407
+ );
2408
+ }
2409
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
2410
+ if (f != null) {
2411
+ writer.writeInt32(
2412
+ 5,
2413
+ f
2414
+ );
2415
+ }
2416
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
2417
+ if (f != null) {
2418
+ writer.writeString(
2419
+ 6,
2420
+ f
2421
+ );
2422
+ }
2423
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
2424
+ if (f != null) {
2425
+ writer.writeString(
2426
+ 7,
2427
+ f
2428
+ );
2429
+ }
2430
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
2431
+ if (f != null) {
2432
+ writer.writeInt32(
2433
+ 8,
2434
+ f
2435
+ );
2436
+ }
2437
+ };
2438
+
2439
+
2440
+ /**
2441
+ * optional int32 id = 1;
2442
+ * @return {number}
2443
+ */
2444
+ proto.tournament.TournamentItemRequest.prototype.getId = function() {
2445
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2446
+ };
2447
+
2448
+
2449
+ /**
2450
+ * @param {number} value
2451
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2452
+ */
2453
+ proto.tournament.TournamentItemRequest.prototype.setId = function(value) {
2454
+ return jspb.Message.setField(this, 1, value);
2455
+ };
2456
+
2457
+
2458
+ /**
2459
+ * Clears the field making it undefined.
2460
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2461
+ */
2462
+ proto.tournament.TournamentItemRequest.prototype.clearId = function() {
2463
+ return jspb.Message.setField(this, 1, undefined);
2464
+ };
2465
+
2466
+
2467
+ /**
2468
+ * Returns whether this field is set.
2469
+ * @return {boolean}
2470
+ */
2471
+ proto.tournament.TournamentItemRequest.prototype.hasId = function() {
2472
+ return jspb.Message.getField(this, 1) != null;
2473
+ };
2474
+
2475
+
2476
+ /**
2477
+ * optional string title = 2;
2478
+ * @return {string}
2479
+ */
2480
+ proto.tournament.TournamentItemRequest.prototype.getTitle = function() {
2481
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2482
+ };
2483
+
2484
+
2485
+ /**
2486
+ * @param {string} value
2487
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2488
+ */
2489
+ proto.tournament.TournamentItemRequest.prototype.setTitle = function(value) {
2490
+ return jspb.Message.setField(this, 2, value);
2491
+ };
2492
+
2493
+
2494
+ /**
2495
+ * Clears the field making it undefined.
2496
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2497
+ */
2498
+ proto.tournament.TournamentItemRequest.prototype.clearTitle = function() {
2499
+ return jspb.Message.setField(this, 2, undefined);
2500
+ };
2501
+
2502
+
2503
+ /**
2504
+ * Returns whether this field is set.
2505
+ * @return {boolean}
2506
+ */
2507
+ proto.tournament.TournamentItemRequest.prototype.hasTitle = function() {
2508
+ return jspb.Message.getField(this, 2) != null;
2509
+ };
2510
+
2511
+
2512
+ /**
2513
+ * optional string description = 3;
2514
+ * @return {string}
2515
+ */
2516
+ proto.tournament.TournamentItemRequest.prototype.getDescription = function() {
2517
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2518
+ };
2519
+
2520
+
2521
+ /**
2522
+ * @param {string} value
2523
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2524
+ */
2525
+ proto.tournament.TournamentItemRequest.prototype.setDescription = function(value) {
2526
+ return jspb.Message.setField(this, 3, value);
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Clears the field making it undefined.
2532
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2533
+ */
2534
+ proto.tournament.TournamentItemRequest.prototype.clearDescription = function() {
2535
+ return jspb.Message.setField(this, 3, undefined);
2536
+ };
2537
+
2538
+
2539
+ /**
2540
+ * Returns whether this field is set.
2541
+ * @return {boolean}
2542
+ */
2543
+ proto.tournament.TournamentItemRequest.prototype.hasDescription = function() {
2544
+ return jspb.Message.getField(this, 3) != null;
2545
+ };
2546
+
2547
+
2548
+ /**
2549
+ * optional int32 is_active = 4;
2550
+ * @return {number}
2551
+ */
2552
+ proto.tournament.TournamentItemRequest.prototype.getIsActive = function() {
2553
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2554
+ };
2555
+
2556
+
2557
+ /**
2558
+ * @param {number} value
2559
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2560
+ */
2561
+ proto.tournament.TournamentItemRequest.prototype.setIsActive = function(value) {
2562
+ return jspb.Message.setField(this, 4, value);
2563
+ };
2564
+
2565
+
2566
+ /**
2567
+ * Clears the field making it undefined.
2568
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2569
+ */
2570
+ proto.tournament.TournamentItemRequest.prototype.clearIsActive = function() {
2571
+ return jspb.Message.setField(this, 4, undefined);
2572
+ };
2573
+
2574
+
2575
+ /**
2576
+ * Returns whether this field is set.
2577
+ * @return {boolean}
2578
+ */
2579
+ proto.tournament.TournamentItemRequest.prototype.hasIsActive = function() {
2580
+ return jspb.Message.getField(this, 4) != null;
2581
+ };
2582
+
2583
+
2584
+ /**
2585
+ * optional int32 max_members_count = 5;
2586
+ * @return {number}
2587
+ */
2588
+ proto.tournament.TournamentItemRequest.prototype.getMaxMembersCount = function() {
2589
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2590
+ };
2591
+
2592
+
2593
+ /**
2594
+ * @param {number} value
2595
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2596
+ */
2597
+ proto.tournament.TournamentItemRequest.prototype.setMaxMembersCount = function(value) {
2598
+ return jspb.Message.setField(this, 5, value);
2599
+ };
2600
+
2601
+
2602
+ /**
2603
+ * Clears the field making it undefined.
2604
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2605
+ */
2606
+ proto.tournament.TournamentItemRequest.prototype.clearMaxMembersCount = function() {
2607
+ return jspb.Message.setField(this, 5, undefined);
2608
+ };
2609
+
2610
+
2611
+ /**
2612
+ * Returns whether this field is set.
2613
+ * @return {boolean}
2614
+ */
2615
+ proto.tournament.TournamentItemRequest.prototype.hasMaxMembersCount = function() {
2616
+ return jspb.Message.getField(this, 5) != null;
2617
+ };
2618
+
2619
+
2620
+ /**
2621
+ * optional string started_at = 6;
2622
+ * @return {string}
2623
+ */
2624
+ proto.tournament.TournamentItemRequest.prototype.getStartedAt = function() {
2625
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2626
+ };
2627
+
2628
+
2629
+ /**
2630
+ * @param {string} value
2631
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2632
+ */
2633
+ proto.tournament.TournamentItemRequest.prototype.setStartedAt = function(value) {
2634
+ return jspb.Message.setField(this, 6, value);
2635
+ };
2636
+
2637
+
2638
+ /**
2639
+ * Clears the field making it undefined.
2640
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2641
+ */
2642
+ proto.tournament.TournamentItemRequest.prototype.clearStartedAt = function() {
2643
+ return jspb.Message.setField(this, 6, undefined);
2644
+ };
2645
+
2646
+
2647
+ /**
2648
+ * Returns whether this field is set.
2649
+ * @return {boolean}
2650
+ */
2651
+ proto.tournament.TournamentItemRequest.prototype.hasStartedAt = function() {
2652
+ return jspb.Message.getField(this, 6) != null;
2653
+ };
2654
+
2655
+
2656
+ /**
2657
+ * optional string finished_at = 7;
2658
+ * @return {string}
2659
+ */
2660
+ proto.tournament.TournamentItemRequest.prototype.getFinishedAt = function() {
2661
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2662
+ };
2663
+
2664
+
2665
+ /**
2666
+ * @param {string} value
2667
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2668
+ */
2669
+ proto.tournament.TournamentItemRequest.prototype.setFinishedAt = function(value) {
2670
+ return jspb.Message.setField(this, 7, value);
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * Clears the field making it undefined.
2676
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2677
+ */
2678
+ proto.tournament.TournamentItemRequest.prototype.clearFinishedAt = function() {
2679
+ return jspb.Message.setField(this, 7, undefined);
2680
+ };
2681
+
2682
+
2683
+ /**
2684
+ * Returns whether this field is set.
2685
+ * @return {boolean}
2686
+ */
2687
+ proto.tournament.TournamentItemRequest.prototype.hasFinishedAt = function() {
2688
+ return jspb.Message.getField(this, 7) != null;
2689
+ };
2690
+
2691
+
2692
+ /**
2693
+ * optional int32 status_id = 8;
2694
+ * @return {number}
2695
+ */
2696
+ proto.tournament.TournamentItemRequest.prototype.getStatusId = function() {
2697
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
2698
+ };
2699
+
2700
+
2701
+ /**
2702
+ * @param {number} value
2703
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2704
+ */
2705
+ proto.tournament.TournamentItemRequest.prototype.setStatusId = function(value) {
2706
+ return jspb.Message.setField(this, 8, value);
2707
+ };
2708
+
2709
+
2710
+ /**
2711
+ * Clears the field making it undefined.
2712
+ * @return {!proto.tournament.TournamentItemRequest} returns this
2713
+ */
2714
+ proto.tournament.TournamentItemRequest.prototype.clearStatusId = function() {
2715
+ return jspb.Message.setField(this, 8, undefined);
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * Returns whether this field is set.
2721
+ * @return {boolean}
2722
+ */
2723
+ proto.tournament.TournamentItemRequest.prototype.hasStatusId = function() {
2724
+ return jspb.Message.getField(this, 8) != null;
2725
+ };
2726
+
2727
+
2728
+
2729
+
2730
+
2731
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2732
+ /**
2733
+ * Creates an object representation of this proto.
2734
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2735
+ * Optional fields that are not set will be set to undefined.
2736
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2737
+ * For the list of reserved names please see:
2738
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2739
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2740
+ * JSPB instance for transitional soy proto support:
2741
+ * http://goto/soy-param-migration
2742
+ * @return {!Object}
2743
+ */
2744
+ proto.tournament.GetTournamentRequest.prototype.toObject = function(opt_includeInstance) {
2745
+ return proto.tournament.GetTournamentRequest.toObject(opt_includeInstance, this);
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * Static version of the {@see toObject} method.
2751
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2752
+ * the JSPB instance for transitional soy proto support:
2753
+ * http://goto/soy-param-migration
2754
+ * @param {!proto.tournament.GetTournamentRequest} msg The msg instance to transform.
2755
+ * @return {!Object}
2756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2757
+ */
2758
+ proto.tournament.GetTournamentRequest.toObject = function(includeInstance, msg) {
2759
+ var f, obj = {
2760
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2761
+ };
2762
+
2763
+ if (includeInstance) {
2764
+ obj.$jspbMessageInstance = msg;
2765
+ }
2766
+ return obj;
2767
+ };
2768
+ }
2769
+
2770
+
2771
+ /**
2772
+ * Deserializes binary data (in protobuf wire format).
2773
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2774
+ * @return {!proto.tournament.GetTournamentRequest}
2775
+ */
2776
+ proto.tournament.GetTournamentRequest.deserializeBinary = function(bytes) {
2777
+ var reader = new jspb.BinaryReader(bytes);
2778
+ var msg = new proto.tournament.GetTournamentRequest;
2779
+ return proto.tournament.GetTournamentRequest.deserializeBinaryFromReader(msg, reader);
2780
+ };
2781
+
2782
+
2783
+ /**
2784
+ * Deserializes binary data (in protobuf wire format) from the
2785
+ * given reader into the given message object.
2786
+ * @param {!proto.tournament.GetTournamentRequest} msg The message object to deserialize into.
2787
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2788
+ * @return {!proto.tournament.GetTournamentRequest}
2789
+ */
2790
+ proto.tournament.GetTournamentRequest.deserializeBinaryFromReader = function(msg, reader) {
2791
+ while (reader.nextField()) {
2792
+ if (reader.isEndGroup()) {
2793
+ break;
2794
+ }
2795
+ var field = reader.getFieldNumber();
2796
+ switch (field) {
2797
+ case 1:
2798
+ var value = /** @type {number} */ (reader.readInt32());
2799
+ msg.setId(value);
2800
+ break;
2801
+ default:
2802
+ reader.skipField();
2803
+ break;
2804
+ }
2805
+ }
2806
+ return msg;
2807
+ };
2808
+
2809
+
2810
+ /**
2811
+ * Serializes the message to binary data (in protobuf wire format).
2812
+ * @return {!Uint8Array}
2813
+ */
2814
+ proto.tournament.GetTournamentRequest.prototype.serializeBinary = function() {
2815
+ var writer = new jspb.BinaryWriter();
2816
+ proto.tournament.GetTournamentRequest.serializeBinaryToWriter(this, writer);
2817
+ return writer.getResultBuffer();
2818
+ };
2819
+
2820
+
2821
+ /**
2822
+ * Serializes the given message to binary data (in protobuf wire
2823
+ * format), writing to the given BinaryWriter.
2824
+ * @param {!proto.tournament.GetTournamentRequest} message
2825
+ * @param {!jspb.BinaryWriter} writer
2826
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2827
+ */
2828
+ proto.tournament.GetTournamentRequest.serializeBinaryToWriter = function(message, writer) {
2829
+ var f = undefined;
2830
+ f = message.getId();
2831
+ if (f !== 0) {
2832
+ writer.writeInt32(
2833
+ 1,
2834
+ f
2835
+ );
2836
+ }
2837
+ };
2838
+
2839
+
2840
+ /**
2841
+ * optional int32 id = 1;
2842
+ * @return {number}
2843
+ */
2844
+ proto.tournament.GetTournamentRequest.prototype.getId = function() {
2845
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2846
+ };
2847
+
2848
+
2849
+ /**
2850
+ * @param {number} value
2851
+ * @return {!proto.tournament.GetTournamentRequest} returns this
2852
+ */
2853
+ proto.tournament.GetTournamentRequest.prototype.setId = function(value) {
2854
+ return jspb.Message.setProto3IntField(this, 1, value);
2855
+ };
2856
+
2857
+
2858
+
2859
+
2860
+
2861
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2862
+ /**
2863
+ * Creates an object representation of this proto.
2864
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2865
+ * Optional fields that are not set will be set to undefined.
2866
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2867
+ * For the list of reserved names please see:
2868
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2869
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2870
+ * JSPB instance for transitional soy proto support:
2871
+ * http://goto/soy-param-migration
2872
+ * @return {!Object}
2873
+ */
2874
+ proto.tournament.TournamentResponse.prototype.toObject = function(opt_includeInstance) {
2875
+ return proto.tournament.TournamentResponse.toObject(opt_includeInstance, this);
2876
+ };
2877
+
2878
+
2879
+ /**
2880
+ * Static version of the {@see toObject} method.
2881
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2882
+ * the JSPB instance for transitional soy proto support:
2883
+ * http://goto/soy-param-migration
2884
+ * @param {!proto.tournament.TournamentResponse} msg The msg instance to transform.
2885
+ * @return {!Object}
2886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2887
+ */
2888
+ proto.tournament.TournamentResponse.toObject = function(includeInstance, msg) {
2889
+ var f, obj = {
2890
+ data: (f = msg.getData()) && proto.tournament.TournamentItem.toObject(includeInstance, f)
2891
+ };
2892
+
2893
+ if (includeInstance) {
2894
+ obj.$jspbMessageInstance = msg;
2895
+ }
2896
+ return obj;
2897
+ };
2898
+ }
2899
+
2900
+
2901
+ /**
2902
+ * Deserializes binary data (in protobuf wire format).
2903
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2904
+ * @return {!proto.tournament.TournamentResponse}
2905
+ */
2906
+ proto.tournament.TournamentResponse.deserializeBinary = function(bytes) {
2907
+ var reader = new jspb.BinaryReader(bytes);
2908
+ var msg = new proto.tournament.TournamentResponse;
2909
+ return proto.tournament.TournamentResponse.deserializeBinaryFromReader(msg, reader);
2910
+ };
2911
+
2912
+
2913
+ /**
2914
+ * Deserializes binary data (in protobuf wire format) from the
2915
+ * given reader into the given message object.
2916
+ * @param {!proto.tournament.TournamentResponse} msg The message object to deserialize into.
2917
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2918
+ * @return {!proto.tournament.TournamentResponse}
2919
+ */
2920
+ proto.tournament.TournamentResponse.deserializeBinaryFromReader = function(msg, reader) {
2921
+ while (reader.nextField()) {
2922
+ if (reader.isEndGroup()) {
2923
+ break;
2924
+ }
2925
+ var field = reader.getFieldNumber();
2926
+ switch (field) {
2927
+ case 1:
2928
+ var value = new proto.tournament.TournamentItem;
2929
+ reader.readMessage(value,proto.tournament.TournamentItem.deserializeBinaryFromReader);
2930
+ msg.setData(value);
2931
+ break;
2932
+ default:
2933
+ reader.skipField();
2934
+ break;
2935
+ }
2936
+ }
2937
+ return msg;
2938
+ };
2939
+
2940
+
2941
+ /**
2942
+ * Serializes the message to binary data (in protobuf wire format).
2943
+ * @return {!Uint8Array}
2944
+ */
2945
+ proto.tournament.TournamentResponse.prototype.serializeBinary = function() {
2946
+ var writer = new jspb.BinaryWriter();
2947
+ proto.tournament.TournamentResponse.serializeBinaryToWriter(this, writer);
2948
+ return writer.getResultBuffer();
2949
+ };
2950
+
2951
+
2952
+ /**
2953
+ * Serializes the given message to binary data (in protobuf wire
2954
+ * format), writing to the given BinaryWriter.
2955
+ * @param {!proto.tournament.TournamentResponse} message
2956
+ * @param {!jspb.BinaryWriter} writer
2957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2958
+ */
2959
+ proto.tournament.TournamentResponse.serializeBinaryToWriter = function(message, writer) {
2960
+ var f = undefined;
2961
+ f = message.getData();
2962
+ if (f != null) {
2963
+ writer.writeMessage(
2964
+ 1,
2965
+ f,
2966
+ proto.tournament.TournamentItem.serializeBinaryToWriter
2967
+ );
2968
+ }
2969
+ };
2970
+
2971
+
2972
+ /**
2973
+ * optional TournamentItem data = 1;
2974
+ * @return {?proto.tournament.TournamentItem}
2975
+ */
2976
+ proto.tournament.TournamentResponse.prototype.getData = function() {
2977
+ return /** @type{?proto.tournament.TournamentItem} */ (
2978
+ jspb.Message.getWrapperField(this, proto.tournament.TournamentItem, 1));
2979
+ };
2980
+
2981
+
2982
+ /**
2983
+ * @param {?proto.tournament.TournamentItem|undefined} value
2984
+ * @return {!proto.tournament.TournamentResponse} returns this
2985
+ */
2986
+ proto.tournament.TournamentResponse.prototype.setData = function(value) {
2987
+ return jspb.Message.setWrapperField(this, 1, value);
2988
+ };
2989
+
2990
+
2991
+ /**
2992
+ * Clears the message field making it undefined.
2993
+ * @return {!proto.tournament.TournamentResponse} returns this
2994
+ */
2995
+ proto.tournament.TournamentResponse.prototype.clearData = function() {
2996
+ return this.setData(undefined);
2997
+ };
2998
+
2999
+
3000
+ /**
3001
+ * Returns whether this field is set.
3002
+ * @return {boolean}
3003
+ */
3004
+ proto.tournament.TournamentResponse.prototype.hasData = function() {
3005
+ return jspb.Message.getField(this, 1) != null;
3006
+ };
3007
+
3008
+
3009
+
3010
+ /**
3011
+ * List of repeated fields within this message type.
3012
+ * @private {!Array<number>}
3013
+ * @const
3014
+ */
3015
+ proto.tournament.TournamentItemsResponse.repeatedFields_ = [1];
3016
+
3017
+
3018
+
3019
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3020
+ /**
3021
+ * Creates an object representation of this proto.
3022
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3023
+ * Optional fields that are not set will be set to undefined.
591
3024
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
592
3025
  * For the list of reserved names please see:
593
3026
  * net/proto2/compiler/js/internal/generator.cc#kKeyword.
@@ -596,8 +3029,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
596
3029
  * http://goto/soy-param-migration
597
3030
  * @return {!Object}
598
3031
  */
599
- proto.tournament.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
600
- return proto.tournament.UserSearchRequest.toObject(opt_includeInstance, this);
3032
+ proto.tournament.TournamentItemsResponse.prototype.toObject = function(opt_includeInstance) {
3033
+ return proto.tournament.TournamentItemsResponse.toObject(opt_includeInstance, this);
601
3034
  };
602
3035
 
603
3036
 
@@ -606,15 +3039,16 @@ proto.tournament.UserSearchRequest.prototype.toObject = function(opt_includeInst
606
3039
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
607
3040
  * the JSPB instance for transitional soy proto support:
608
3041
  * http://goto/soy-param-migration
609
- * @param {!proto.tournament.UserSearchRequest} msg The msg instance to transform.
3042
+ * @param {!proto.tournament.TournamentItemsResponse} msg The msg instance to transform.
610
3043
  * @return {!Object}
611
3044
  * @suppress {unusedLocalVariables} f is only used for nested messages
612
3045
  */
613
- proto.tournament.UserSearchRequest.toObject = function(includeInstance, msg) {
3046
+ proto.tournament.TournamentItemsResponse.toObject = function(includeInstance, msg) {
614
3047
  var f, obj = {
615
- userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
616
- balanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
617
- currency: jspb.Message.getFieldWithDefault(msg, 3, "")
3048
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
3049
+ proto.tournament.TournamentItem.toObject, includeInstance),
3050
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
3051
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
618
3052
  };
619
3053
 
620
3054
  if (includeInstance) {
@@ -628,23 +3062,23 @@ proto.tournament.UserSearchRequest.toObject = function(includeInstance, msg) {
628
3062
  /**
629
3063
  * Deserializes binary data (in protobuf wire format).
630
3064
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
631
- * @return {!proto.tournament.UserSearchRequest}
3065
+ * @return {!proto.tournament.TournamentItemsResponse}
632
3066
  */
633
- proto.tournament.UserSearchRequest.deserializeBinary = function(bytes) {
3067
+ proto.tournament.TournamentItemsResponse.deserializeBinary = function(bytes) {
634
3068
  var reader = new jspb.BinaryReader(bytes);
635
- var msg = new proto.tournament.UserSearchRequest;
636
- return proto.tournament.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
3069
+ var msg = new proto.tournament.TournamentItemsResponse;
3070
+ return proto.tournament.TournamentItemsResponse.deserializeBinaryFromReader(msg, reader);
637
3071
  };
638
3072
 
639
3073
 
640
3074
  /**
641
3075
  * Deserializes binary data (in protobuf wire format) from the
642
3076
  * given reader into the given message object.
643
- * @param {!proto.tournament.UserSearchRequest} msg The message object to deserialize into.
3077
+ * @param {!proto.tournament.TournamentItemsResponse} msg The message object to deserialize into.
644
3078
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
645
- * @return {!proto.tournament.UserSearchRequest}
3079
+ * @return {!proto.tournament.TournamentItemsResponse}
646
3080
  */
647
- proto.tournament.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
3081
+ proto.tournament.TournamentItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
648
3082
  while (reader.nextField()) {
649
3083
  if (reader.isEndGroup()) {
650
3084
  break;
@@ -652,16 +3086,17 @@ proto.tournament.UserSearchRequest.deserializeBinaryFromReader = function(msg, r
652
3086
  var field = reader.getFieldNumber();
653
3087
  switch (field) {
654
3088
  case 1:
655
- var value = /** @type {number} */ (reader.readInt32());
656
- msg.setUserId(value);
3089
+ var value = new proto.tournament.TournamentItem;
3090
+ reader.readMessage(value,proto.tournament.TournamentItem.deserializeBinaryFromReader);
3091
+ msg.addItems(value);
657
3092
  break;
658
3093
  case 2:
659
- var value = /** @type {string} */ (reader.readString());
660
- msg.setBalanceType(value);
3094
+ var value = /** @type {number} */ (reader.readInt32());
3095
+ msg.setTotalPages(value);
661
3096
  break;
662
3097
  case 3:
663
- var value = /** @type {string} */ (reader.readString());
664
- msg.setCurrency(value);
3098
+ var value = /** @type {number} */ (reader.readInt32());
3099
+ msg.setTotalItems(value);
665
3100
  break;
666
3101
  default:
667
3102
  reader.skipField();
@@ -676,9 +3111,9 @@ proto.tournament.UserSearchRequest.deserializeBinaryFromReader = function(msg, r
676
3111
  * Serializes the message to binary data (in protobuf wire format).
677
3112
  * @return {!Uint8Array}
678
3113
  */
679
- proto.tournament.UserSearchRequest.prototype.serializeBinary = function() {
3114
+ proto.tournament.TournamentItemsResponse.prototype.serializeBinary = function() {
680
3115
  var writer = new jspb.BinaryWriter();
681
- proto.tournament.UserSearchRequest.serializeBinaryToWriter(this, writer);
3116
+ proto.tournament.TournamentItemsResponse.serializeBinaryToWriter(this, writer);
682
3117
  return writer.getResultBuffer();
683
3118
  };
684
3119
 
@@ -686,29 +3121,30 @@ proto.tournament.UserSearchRequest.prototype.serializeBinary = function() {
686
3121
  /**
687
3122
  * Serializes the given message to binary data (in protobuf wire
688
3123
  * format), writing to the given BinaryWriter.
689
- * @param {!proto.tournament.UserSearchRequest} message
3124
+ * @param {!proto.tournament.TournamentItemsResponse} message
690
3125
  * @param {!jspb.BinaryWriter} writer
691
3126
  * @suppress {unusedLocalVariables} f is only used for nested messages
692
3127
  */
693
- proto.tournament.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
3128
+ proto.tournament.TournamentItemsResponse.serializeBinaryToWriter = function(message, writer) {
694
3129
  var f = undefined;
695
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
696
- if (f != null) {
697
- writer.writeInt32(
3130
+ f = message.getItemsList();
3131
+ if (f.length > 0) {
3132
+ writer.writeRepeatedMessage(
698
3133
  1,
699
- f
3134
+ f,
3135
+ proto.tournament.TournamentItem.serializeBinaryToWriter
700
3136
  );
701
3137
  }
702
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
3138
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
703
3139
  if (f != null) {
704
- writer.writeString(
3140
+ writer.writeInt32(
705
3141
  2,
706
3142
  f
707
3143
  );
708
3144
  }
709
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
3145
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
710
3146
  if (f != null) {
711
- writer.writeString(
3147
+ writer.writeInt32(
712
3148
  3,
713
3149
  f
714
3150
  );
@@ -717,64 +3153,66 @@ proto.tournament.UserSearchRequest.serializeBinaryToWriter = function(message, w
717
3153
 
718
3154
 
719
3155
  /**
720
- * optional int32 user_id = 1;
721
- * @return {number}
3156
+ * repeated TournamentItem items = 1;
3157
+ * @return {!Array<!proto.tournament.TournamentItem>}
722
3158
  */
723
- proto.tournament.UserSearchRequest.prototype.getUserId = function() {
724
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3159
+ proto.tournament.TournamentItemsResponse.prototype.getItemsList = function() {
3160
+ return /** @type{!Array<!proto.tournament.TournamentItem>} */ (
3161
+ jspb.Message.getRepeatedWrapperField(this, proto.tournament.TournamentItem, 1));
725
3162
  };
726
3163
 
727
3164
 
728
3165
  /**
729
- * @param {number} value
730
- * @return {!proto.tournament.UserSearchRequest} returns this
731
- */
732
- proto.tournament.UserSearchRequest.prototype.setUserId = function(value) {
733
- return jspb.Message.setField(this, 1, value);
3166
+ * @param {!Array<!proto.tournament.TournamentItem>} value
3167
+ * @return {!proto.tournament.TournamentItemsResponse} returns this
3168
+ */
3169
+ proto.tournament.TournamentItemsResponse.prototype.setItemsList = function(value) {
3170
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
734
3171
  };
735
3172
 
736
3173
 
737
3174
  /**
738
- * Clears the field making it undefined.
739
- * @return {!proto.tournament.UserSearchRequest} returns this
3175
+ * @param {!proto.tournament.TournamentItem=} opt_value
3176
+ * @param {number=} opt_index
3177
+ * @return {!proto.tournament.TournamentItem}
740
3178
  */
741
- proto.tournament.UserSearchRequest.prototype.clearUserId = function() {
742
- return jspb.Message.setField(this, 1, undefined);
3179
+ proto.tournament.TournamentItemsResponse.prototype.addItems = function(opt_value, opt_index) {
3180
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tournament.TournamentItem, opt_index);
743
3181
  };
744
3182
 
745
3183
 
746
3184
  /**
747
- * Returns whether this field is set.
748
- * @return {boolean}
3185
+ * Clears the list making it empty but non-null.
3186
+ * @return {!proto.tournament.TournamentItemsResponse} returns this
749
3187
  */
750
- proto.tournament.UserSearchRequest.prototype.hasUserId = function() {
751
- return jspb.Message.getField(this, 1) != null;
3188
+ proto.tournament.TournamentItemsResponse.prototype.clearItemsList = function() {
3189
+ return this.setItemsList([]);
752
3190
  };
753
3191
 
754
3192
 
755
3193
  /**
756
- * optional string balance_type = 2;
757
- * @return {string}
3194
+ * optional int32 total_pages = 2;
3195
+ * @return {number}
758
3196
  */
759
- proto.tournament.UserSearchRequest.prototype.getBalanceType = function() {
760
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3197
+ proto.tournament.TournamentItemsResponse.prototype.getTotalPages = function() {
3198
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
761
3199
  };
762
3200
 
763
3201
 
764
3202
  /**
765
- * @param {string} value
766
- * @return {!proto.tournament.UserSearchRequest} returns this
3203
+ * @param {number} value
3204
+ * @return {!proto.tournament.TournamentItemsResponse} returns this
767
3205
  */
768
- proto.tournament.UserSearchRequest.prototype.setBalanceType = function(value) {
3206
+ proto.tournament.TournamentItemsResponse.prototype.setTotalPages = function(value) {
769
3207
  return jspb.Message.setField(this, 2, value);
770
3208
  };
771
3209
 
772
3210
 
773
3211
  /**
774
3212
  * Clears the field making it undefined.
775
- * @return {!proto.tournament.UserSearchRequest} returns this
3213
+ * @return {!proto.tournament.TournamentItemsResponse} returns this
776
3214
  */
777
- proto.tournament.UserSearchRequest.prototype.clearBalanceType = function() {
3215
+ proto.tournament.TournamentItemsResponse.prototype.clearTotalPages = function() {
778
3216
  return jspb.Message.setField(this, 2, undefined);
779
3217
  };
780
3218
 
@@ -783,34 +3221,34 @@ proto.tournament.UserSearchRequest.prototype.clearBalanceType = function() {
783
3221
  * Returns whether this field is set.
784
3222
  * @return {boolean}
785
3223
  */
786
- proto.tournament.UserSearchRequest.prototype.hasBalanceType = function() {
3224
+ proto.tournament.TournamentItemsResponse.prototype.hasTotalPages = function() {
787
3225
  return jspb.Message.getField(this, 2) != null;
788
3226
  };
789
3227
 
790
3228
 
791
3229
  /**
792
- * optional string currency = 3;
793
- * @return {string}
3230
+ * optional int32 total_items = 3;
3231
+ * @return {number}
794
3232
  */
795
- proto.tournament.UserSearchRequest.prototype.getCurrency = function() {
796
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3233
+ proto.tournament.TournamentItemsResponse.prototype.getTotalItems = function() {
3234
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
797
3235
  };
798
3236
 
799
3237
 
800
3238
  /**
801
- * @param {string} value
802
- * @return {!proto.tournament.UserSearchRequest} returns this
3239
+ * @param {number} value
3240
+ * @return {!proto.tournament.TournamentItemsResponse} returns this
803
3241
  */
804
- proto.tournament.UserSearchRequest.prototype.setCurrency = function(value) {
3242
+ proto.tournament.TournamentItemsResponse.prototype.setTotalItems = function(value) {
805
3243
  return jspb.Message.setField(this, 3, value);
806
3244
  };
807
3245
 
808
3246
 
809
3247
  /**
810
3248
  * Clears the field making it undefined.
811
- * @return {!proto.tournament.UserSearchRequest} returns this
3249
+ * @return {!proto.tournament.TournamentItemsResponse} returns this
812
3250
  */
813
- proto.tournament.UserSearchRequest.prototype.clearCurrency = function() {
3251
+ proto.tournament.TournamentItemsResponse.prototype.clearTotalItems = function() {
814
3252
  return jspb.Message.setField(this, 3, undefined);
815
3253
  };
816
3254
 
@@ -819,9 +3257,139 @@ proto.tournament.UserSearchRequest.prototype.clearCurrency = function() {
819
3257
  * Returns whether this field is set.
820
3258
  * @return {boolean}
821
3259
  */
822
- proto.tournament.UserSearchRequest.prototype.hasCurrency = function() {
3260
+ proto.tournament.TournamentItemsResponse.prototype.hasTotalItems = function() {
823
3261
  return jspb.Message.getField(this, 3) != null;
824
3262
  };
825
3263
 
826
3264
 
3265
+
3266
+
3267
+
3268
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3269
+ /**
3270
+ * Creates an object representation of this proto.
3271
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3272
+ * Optional fields that are not set will be set to undefined.
3273
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3274
+ * For the list of reserved names please see:
3275
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3276
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3277
+ * JSPB instance for transitional soy proto support:
3278
+ * http://goto/soy-param-migration
3279
+ * @return {!Object}
3280
+ */
3281
+ proto.tournament.TournamentStatusResponse.prototype.toObject = function(opt_includeInstance) {
3282
+ return proto.tournament.TournamentStatusResponse.toObject(opt_includeInstance, this);
3283
+ };
3284
+
3285
+
3286
+ /**
3287
+ * Static version of the {@see toObject} method.
3288
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3289
+ * the JSPB instance for transitional soy proto support:
3290
+ * http://goto/soy-param-migration
3291
+ * @param {!proto.tournament.TournamentStatusResponse} msg The msg instance to transform.
3292
+ * @return {!Object}
3293
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3294
+ */
3295
+ proto.tournament.TournamentStatusResponse.toObject = function(includeInstance, msg) {
3296
+ var f, obj = {
3297
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
3298
+ };
3299
+
3300
+ if (includeInstance) {
3301
+ obj.$jspbMessageInstance = msg;
3302
+ }
3303
+ return obj;
3304
+ };
3305
+ }
3306
+
3307
+
3308
+ /**
3309
+ * Deserializes binary data (in protobuf wire format).
3310
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3311
+ * @return {!proto.tournament.TournamentStatusResponse}
3312
+ */
3313
+ proto.tournament.TournamentStatusResponse.deserializeBinary = function(bytes) {
3314
+ var reader = new jspb.BinaryReader(bytes);
3315
+ var msg = new proto.tournament.TournamentStatusResponse;
3316
+ return proto.tournament.TournamentStatusResponse.deserializeBinaryFromReader(msg, reader);
3317
+ };
3318
+
3319
+
3320
+ /**
3321
+ * Deserializes binary data (in protobuf wire format) from the
3322
+ * given reader into the given message object.
3323
+ * @param {!proto.tournament.TournamentStatusResponse} msg The message object to deserialize into.
3324
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3325
+ * @return {!proto.tournament.TournamentStatusResponse}
3326
+ */
3327
+ proto.tournament.TournamentStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
3328
+ while (reader.nextField()) {
3329
+ if (reader.isEndGroup()) {
3330
+ break;
3331
+ }
3332
+ var field = reader.getFieldNumber();
3333
+ switch (field) {
3334
+ case 1:
3335
+ var value = /** @type {string} */ (reader.readString());
3336
+ msg.setStatus(value);
3337
+ break;
3338
+ default:
3339
+ reader.skipField();
3340
+ break;
3341
+ }
3342
+ }
3343
+ return msg;
3344
+ };
3345
+
3346
+
3347
+ /**
3348
+ * Serializes the message to binary data (in protobuf wire format).
3349
+ * @return {!Uint8Array}
3350
+ */
3351
+ proto.tournament.TournamentStatusResponse.prototype.serializeBinary = function() {
3352
+ var writer = new jspb.BinaryWriter();
3353
+ proto.tournament.TournamentStatusResponse.serializeBinaryToWriter(this, writer);
3354
+ return writer.getResultBuffer();
3355
+ };
3356
+
3357
+
3358
+ /**
3359
+ * Serializes the given message to binary data (in protobuf wire
3360
+ * format), writing to the given BinaryWriter.
3361
+ * @param {!proto.tournament.TournamentStatusResponse} message
3362
+ * @param {!jspb.BinaryWriter} writer
3363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3364
+ */
3365
+ proto.tournament.TournamentStatusResponse.serializeBinaryToWriter = function(message, writer) {
3366
+ var f = undefined;
3367
+ f = message.getStatus();
3368
+ if (f.length > 0) {
3369
+ writer.writeString(
3370
+ 1,
3371
+ f
3372
+ );
3373
+ }
3374
+ };
3375
+
3376
+
3377
+ /**
3378
+ * optional string status = 1;
3379
+ * @return {string}
3380
+ */
3381
+ proto.tournament.TournamentStatusResponse.prototype.getStatus = function() {
3382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3383
+ };
3384
+
3385
+
3386
+ /**
3387
+ * @param {string} value
3388
+ * @return {!proto.tournament.TournamentStatusResponse} returns this
3389
+ */
3390
+ proto.tournament.TournamentStatusResponse.prototype.setStatus = function(value) {
3391
+ return jspb.Message.setProto3StringField(this, 1, value);
3392
+ };
3393
+
3394
+
827
3395
  goog.object.extend(exports, proto.tournament);