protobuf-platform 1.2.596 → 1.2.598

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bet/bet_pb.js CHANGED
@@ -44,6 +44,15 @@ goog.exportSymbol('proto.bet.SegmentedUserRequest', null, global);
44
44
  goog.exportSymbol('proto.bet.SegmentedUserResponse', null, global);
45
45
  goog.exportSymbol('proto.bet.SportBetListItem', null, global);
46
46
  goog.exportSymbol('proto.bet.SportBetsHistoryResponse', null, global);
47
+ goog.exportSymbol('proto.bet.SportCatalogCategoryBatchResponse', null, global);
48
+ goog.exportSymbol('proto.bet.SportCatalogCategoryItem', null, global);
49
+ goog.exportSymbol('proto.bet.SportCatalogCursorRequest', null, global);
50
+ goog.exportSymbol('proto.bet.SportCatalogEventBatchResponse', null, global);
51
+ goog.exportSymbol('proto.bet.SportCatalogEventItem', null, global);
52
+ goog.exportSymbol('proto.bet.SportCatalogSportBatchResponse', null, global);
53
+ goog.exportSymbol('proto.bet.SportCatalogSportItem', null, global);
54
+ goog.exportSymbol('proto.bet.SportCatalogTournamentBatchResponse', null, global);
55
+ goog.exportSymbol('proto.bet.SportCatalogTournamentItem', null, global);
47
56
  goog.exportSymbol('proto.bet.SportEventInfo', null, global);
48
57
  goog.exportSymbol('proto.bet.SportOutcomeItem', null, global);
49
58
  goog.exportSymbol('proto.bet.TestBetResult', null, global);
@@ -725,6 +734,195 @@ if (goog.DEBUG && !COMPILED) {
725
734
  */
726
735
  proto.bet.SportBetsHistoryResponse.displayName = 'proto.bet.SportBetsHistoryResponse';
727
736
  }
737
+ /**
738
+ * Generated by JsPbCodeGenerator.
739
+ * @param {Array=} opt_data Optional initial data array, typically from a
740
+ * server response, or constructed directly in Javascript. The array is used
741
+ * in place and becomes part of the constructed object. It is not cloned.
742
+ * If no data is provided, the constructed object will be empty, but still
743
+ * valid.
744
+ * @extends {jspb.Message}
745
+ * @constructor
746
+ */
747
+ proto.bet.SportCatalogCursorRequest = function(opt_data) {
748
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
749
+ };
750
+ goog.inherits(proto.bet.SportCatalogCursorRequest, jspb.Message);
751
+ if (goog.DEBUG && !COMPILED) {
752
+ /**
753
+ * @public
754
+ * @override
755
+ */
756
+ proto.bet.SportCatalogCursorRequest.displayName = 'proto.bet.SportCatalogCursorRequest';
757
+ }
758
+ /**
759
+ * Generated by JsPbCodeGenerator.
760
+ * @param {Array=} opt_data Optional initial data array, typically from a
761
+ * server response, or constructed directly in Javascript. The array is used
762
+ * in place and becomes part of the constructed object. It is not cloned.
763
+ * If no data is provided, the constructed object will be empty, but still
764
+ * valid.
765
+ * @extends {jspb.Message}
766
+ * @constructor
767
+ */
768
+ proto.bet.SportCatalogSportItem = function(opt_data) {
769
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
770
+ };
771
+ goog.inherits(proto.bet.SportCatalogSportItem, jspb.Message);
772
+ if (goog.DEBUG && !COMPILED) {
773
+ /**
774
+ * @public
775
+ * @override
776
+ */
777
+ proto.bet.SportCatalogSportItem.displayName = 'proto.bet.SportCatalogSportItem';
778
+ }
779
+ /**
780
+ * Generated by JsPbCodeGenerator.
781
+ * @param {Array=} opt_data Optional initial data array, typically from a
782
+ * server response, or constructed directly in Javascript. The array is used
783
+ * in place and becomes part of the constructed object. It is not cloned.
784
+ * If no data is provided, the constructed object will be empty, but still
785
+ * valid.
786
+ * @extends {jspb.Message}
787
+ * @constructor
788
+ */
789
+ proto.bet.SportCatalogCategoryItem = function(opt_data) {
790
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
791
+ };
792
+ goog.inherits(proto.bet.SportCatalogCategoryItem, jspb.Message);
793
+ if (goog.DEBUG && !COMPILED) {
794
+ /**
795
+ * @public
796
+ * @override
797
+ */
798
+ proto.bet.SportCatalogCategoryItem.displayName = 'proto.bet.SportCatalogCategoryItem';
799
+ }
800
+ /**
801
+ * Generated by JsPbCodeGenerator.
802
+ * @param {Array=} opt_data Optional initial data array, typically from a
803
+ * server response, or constructed directly in Javascript. The array is used
804
+ * in place and becomes part of the constructed object. It is not cloned.
805
+ * If no data is provided, the constructed object will be empty, but still
806
+ * valid.
807
+ * @extends {jspb.Message}
808
+ * @constructor
809
+ */
810
+ proto.bet.SportCatalogTournamentItem = function(opt_data) {
811
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
812
+ };
813
+ goog.inherits(proto.bet.SportCatalogTournamentItem, jspb.Message);
814
+ if (goog.DEBUG && !COMPILED) {
815
+ /**
816
+ * @public
817
+ * @override
818
+ */
819
+ proto.bet.SportCatalogTournamentItem.displayName = 'proto.bet.SportCatalogTournamentItem';
820
+ }
821
+ /**
822
+ * Generated by JsPbCodeGenerator.
823
+ * @param {Array=} opt_data Optional initial data array, typically from a
824
+ * server response, or constructed directly in Javascript. The array is used
825
+ * in place and becomes part of the constructed object. It is not cloned.
826
+ * If no data is provided, the constructed object will be empty, but still
827
+ * valid.
828
+ * @extends {jspb.Message}
829
+ * @constructor
830
+ */
831
+ proto.bet.SportCatalogEventItem = function(opt_data) {
832
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.SportCatalogEventItem.repeatedFields_, null);
833
+ };
834
+ goog.inherits(proto.bet.SportCatalogEventItem, jspb.Message);
835
+ if (goog.DEBUG && !COMPILED) {
836
+ /**
837
+ * @public
838
+ * @override
839
+ */
840
+ proto.bet.SportCatalogEventItem.displayName = 'proto.bet.SportCatalogEventItem';
841
+ }
842
+ /**
843
+ * Generated by JsPbCodeGenerator.
844
+ * @param {Array=} opt_data Optional initial data array, typically from a
845
+ * server response, or constructed directly in Javascript. The array is used
846
+ * in place and becomes part of the constructed object. It is not cloned.
847
+ * If no data is provided, the constructed object will be empty, but still
848
+ * valid.
849
+ * @extends {jspb.Message}
850
+ * @constructor
851
+ */
852
+ proto.bet.SportCatalogSportBatchResponse = function(opt_data) {
853
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.SportCatalogSportBatchResponse.repeatedFields_, null);
854
+ };
855
+ goog.inherits(proto.bet.SportCatalogSportBatchResponse, jspb.Message);
856
+ if (goog.DEBUG && !COMPILED) {
857
+ /**
858
+ * @public
859
+ * @override
860
+ */
861
+ proto.bet.SportCatalogSportBatchResponse.displayName = 'proto.bet.SportCatalogSportBatchResponse';
862
+ }
863
+ /**
864
+ * Generated by JsPbCodeGenerator.
865
+ * @param {Array=} opt_data Optional initial data array, typically from a
866
+ * server response, or constructed directly in Javascript. The array is used
867
+ * in place and becomes part of the constructed object. It is not cloned.
868
+ * If no data is provided, the constructed object will be empty, but still
869
+ * valid.
870
+ * @extends {jspb.Message}
871
+ * @constructor
872
+ */
873
+ proto.bet.SportCatalogCategoryBatchResponse = function(opt_data) {
874
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.SportCatalogCategoryBatchResponse.repeatedFields_, null);
875
+ };
876
+ goog.inherits(proto.bet.SportCatalogCategoryBatchResponse, jspb.Message);
877
+ if (goog.DEBUG && !COMPILED) {
878
+ /**
879
+ * @public
880
+ * @override
881
+ */
882
+ proto.bet.SportCatalogCategoryBatchResponse.displayName = 'proto.bet.SportCatalogCategoryBatchResponse';
883
+ }
884
+ /**
885
+ * Generated by JsPbCodeGenerator.
886
+ * @param {Array=} opt_data Optional initial data array, typically from a
887
+ * server response, or constructed directly in Javascript. The array is used
888
+ * in place and becomes part of the constructed object. It is not cloned.
889
+ * If no data is provided, the constructed object will be empty, but still
890
+ * valid.
891
+ * @extends {jspb.Message}
892
+ * @constructor
893
+ */
894
+ proto.bet.SportCatalogTournamentBatchResponse = function(opt_data) {
895
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.SportCatalogTournamentBatchResponse.repeatedFields_, null);
896
+ };
897
+ goog.inherits(proto.bet.SportCatalogTournamentBatchResponse, jspb.Message);
898
+ if (goog.DEBUG && !COMPILED) {
899
+ /**
900
+ * @public
901
+ * @override
902
+ */
903
+ proto.bet.SportCatalogTournamentBatchResponse.displayName = 'proto.bet.SportCatalogTournamentBatchResponse';
904
+ }
905
+ /**
906
+ * Generated by JsPbCodeGenerator.
907
+ * @param {Array=} opt_data Optional initial data array, typically from a
908
+ * server response, or constructed directly in Javascript. The array is used
909
+ * in place and becomes part of the constructed object. It is not cloned.
910
+ * If no data is provided, the constructed object will be empty, but still
911
+ * valid.
912
+ * @extends {jspb.Message}
913
+ * @constructor
914
+ */
915
+ proto.bet.SportCatalogEventBatchResponse = function(opt_data) {
916
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.SportCatalogEventBatchResponse.repeatedFields_, null);
917
+ };
918
+ goog.inherits(proto.bet.SportCatalogEventBatchResponse, jspb.Message);
919
+ if (goog.DEBUG && !COMPILED) {
920
+ /**
921
+ * @public
922
+ * @override
923
+ */
924
+ proto.bet.SportCatalogEventBatchResponse.displayName = 'proto.bet.SportCatalogEventBatchResponse';
925
+ }
728
926
 
729
927
 
730
928
 
@@ -13959,4 +14157,2280 @@ proto.bet.SportBetsHistoryResponse.prototype.hasTotalItems = function() {
13959
14157
  };
13960
14158
 
13961
14159
 
14160
+
14161
+
14162
+
14163
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14164
+ /**
14165
+ * Creates an object representation of this proto.
14166
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14167
+ * Optional fields that are not set will be set to undefined.
14168
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14169
+ * For the list of reserved names please see:
14170
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14171
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14172
+ * JSPB instance for transitional soy proto support:
14173
+ * http://goto/soy-param-migration
14174
+ * @return {!Object}
14175
+ */
14176
+ proto.bet.SportCatalogCursorRequest.prototype.toObject = function(opt_includeInstance) {
14177
+ return proto.bet.SportCatalogCursorRequest.toObject(opt_includeInstance, this);
14178
+ };
14179
+
14180
+
14181
+ /**
14182
+ * Static version of the {@see toObject} method.
14183
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14184
+ * the JSPB instance for transitional soy proto support:
14185
+ * http://goto/soy-param-migration
14186
+ * @param {!proto.bet.SportCatalogCursorRequest} msg The msg instance to transform.
14187
+ * @return {!Object}
14188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14189
+ */
14190
+ proto.bet.SportCatalogCursorRequest.toObject = function(includeInstance, msg) {
14191
+ var f, obj = {
14192
+ afterId: jspb.Message.getFieldWithDefault(msg, 1, 0),
14193
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0)
14194
+ };
14195
+
14196
+ if (includeInstance) {
14197
+ obj.$jspbMessageInstance = msg;
14198
+ }
14199
+ return obj;
14200
+ };
14201
+ }
14202
+
14203
+
14204
+ /**
14205
+ * Deserializes binary data (in protobuf wire format).
14206
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14207
+ * @return {!proto.bet.SportCatalogCursorRequest}
14208
+ */
14209
+ proto.bet.SportCatalogCursorRequest.deserializeBinary = function(bytes) {
14210
+ var reader = new jspb.BinaryReader(bytes);
14211
+ var msg = new proto.bet.SportCatalogCursorRequest;
14212
+ return proto.bet.SportCatalogCursorRequest.deserializeBinaryFromReader(msg, reader);
14213
+ };
14214
+
14215
+
14216
+ /**
14217
+ * Deserializes binary data (in protobuf wire format) from the
14218
+ * given reader into the given message object.
14219
+ * @param {!proto.bet.SportCatalogCursorRequest} msg The message object to deserialize into.
14220
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14221
+ * @return {!proto.bet.SportCatalogCursorRequest}
14222
+ */
14223
+ proto.bet.SportCatalogCursorRequest.deserializeBinaryFromReader = function(msg, reader) {
14224
+ while (reader.nextField()) {
14225
+ if (reader.isEndGroup()) {
14226
+ break;
14227
+ }
14228
+ var field = reader.getFieldNumber();
14229
+ switch (field) {
14230
+ case 1:
14231
+ var value = /** @type {number} */ (reader.readInt32());
14232
+ msg.setAfterId(value);
14233
+ break;
14234
+ case 2:
14235
+ var value = /** @type {number} */ (reader.readInt32());
14236
+ msg.setLimit(value);
14237
+ break;
14238
+ default:
14239
+ reader.skipField();
14240
+ break;
14241
+ }
14242
+ }
14243
+ return msg;
14244
+ };
14245
+
14246
+
14247
+ /**
14248
+ * Serializes the message to binary data (in protobuf wire format).
14249
+ * @return {!Uint8Array}
14250
+ */
14251
+ proto.bet.SportCatalogCursorRequest.prototype.serializeBinary = function() {
14252
+ var writer = new jspb.BinaryWriter();
14253
+ proto.bet.SportCatalogCursorRequest.serializeBinaryToWriter(this, writer);
14254
+ return writer.getResultBuffer();
14255
+ };
14256
+
14257
+
14258
+ /**
14259
+ * Serializes the given message to binary data (in protobuf wire
14260
+ * format), writing to the given BinaryWriter.
14261
+ * @param {!proto.bet.SportCatalogCursorRequest} message
14262
+ * @param {!jspb.BinaryWriter} writer
14263
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14264
+ */
14265
+ proto.bet.SportCatalogCursorRequest.serializeBinaryToWriter = function(message, writer) {
14266
+ var f = undefined;
14267
+ f = message.getAfterId();
14268
+ if (f !== 0) {
14269
+ writer.writeInt32(
14270
+ 1,
14271
+ f
14272
+ );
14273
+ }
14274
+ f = message.getLimit();
14275
+ if (f !== 0) {
14276
+ writer.writeInt32(
14277
+ 2,
14278
+ f
14279
+ );
14280
+ }
14281
+ };
14282
+
14283
+
14284
+ /**
14285
+ * optional int32 after_id = 1;
14286
+ * @return {number}
14287
+ */
14288
+ proto.bet.SportCatalogCursorRequest.prototype.getAfterId = function() {
14289
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
14290
+ };
14291
+
14292
+
14293
+ /**
14294
+ * @param {number} value
14295
+ * @return {!proto.bet.SportCatalogCursorRequest} returns this
14296
+ */
14297
+ proto.bet.SportCatalogCursorRequest.prototype.setAfterId = function(value) {
14298
+ return jspb.Message.setProto3IntField(this, 1, value);
14299
+ };
14300
+
14301
+
14302
+ /**
14303
+ * optional int32 limit = 2;
14304
+ * @return {number}
14305
+ */
14306
+ proto.bet.SportCatalogCursorRequest.prototype.getLimit = function() {
14307
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
14308
+ };
14309
+
14310
+
14311
+ /**
14312
+ * @param {number} value
14313
+ * @return {!proto.bet.SportCatalogCursorRequest} returns this
14314
+ */
14315
+ proto.bet.SportCatalogCursorRequest.prototype.setLimit = function(value) {
14316
+ return jspb.Message.setProto3IntField(this, 2, value);
14317
+ };
14318
+
14319
+
14320
+
14321
+
14322
+
14323
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14324
+ /**
14325
+ * Creates an object representation of this proto.
14326
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14327
+ * Optional fields that are not set will be set to undefined.
14328
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14329
+ * For the list of reserved names please see:
14330
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14331
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14332
+ * JSPB instance for transitional soy proto support:
14333
+ * http://goto/soy-param-migration
14334
+ * @return {!Object}
14335
+ */
14336
+ proto.bet.SportCatalogSportItem.prototype.toObject = function(opt_includeInstance) {
14337
+ return proto.bet.SportCatalogSportItem.toObject(opt_includeInstance, this);
14338
+ };
14339
+
14340
+
14341
+ /**
14342
+ * Static version of the {@see toObject} method.
14343
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14344
+ * the JSPB instance for transitional soy proto support:
14345
+ * http://goto/soy-param-migration
14346
+ * @param {!proto.bet.SportCatalogSportItem} msg The msg instance to transform.
14347
+ * @return {!Object}
14348
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14349
+ */
14350
+ proto.bet.SportCatalogSportItem.toObject = function(includeInstance, msg) {
14351
+ var f, obj = {
14352
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
14353
+ provider: jspb.Message.getFieldWithDefault(msg, 2, ""),
14354
+ sportId: jspb.Message.getFieldWithDefault(msg, 3, ""),
14355
+ sportName: jspb.Message.getFieldWithDefault(msg, 4, "")
14356
+ };
14357
+
14358
+ if (includeInstance) {
14359
+ obj.$jspbMessageInstance = msg;
14360
+ }
14361
+ return obj;
14362
+ };
14363
+ }
14364
+
14365
+
14366
+ /**
14367
+ * Deserializes binary data (in protobuf wire format).
14368
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14369
+ * @return {!proto.bet.SportCatalogSportItem}
14370
+ */
14371
+ proto.bet.SportCatalogSportItem.deserializeBinary = function(bytes) {
14372
+ var reader = new jspb.BinaryReader(bytes);
14373
+ var msg = new proto.bet.SportCatalogSportItem;
14374
+ return proto.bet.SportCatalogSportItem.deserializeBinaryFromReader(msg, reader);
14375
+ };
14376
+
14377
+
14378
+ /**
14379
+ * Deserializes binary data (in protobuf wire format) from the
14380
+ * given reader into the given message object.
14381
+ * @param {!proto.bet.SportCatalogSportItem} msg The message object to deserialize into.
14382
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14383
+ * @return {!proto.bet.SportCatalogSportItem}
14384
+ */
14385
+ proto.bet.SportCatalogSportItem.deserializeBinaryFromReader = function(msg, reader) {
14386
+ while (reader.nextField()) {
14387
+ if (reader.isEndGroup()) {
14388
+ break;
14389
+ }
14390
+ var field = reader.getFieldNumber();
14391
+ switch (field) {
14392
+ case 1:
14393
+ var value = /** @type {number} */ (reader.readInt32());
14394
+ msg.setId(value);
14395
+ break;
14396
+ case 2:
14397
+ var value = /** @type {string} */ (reader.readString());
14398
+ msg.setProvider(value);
14399
+ break;
14400
+ case 3:
14401
+ var value = /** @type {string} */ (reader.readString());
14402
+ msg.setSportId(value);
14403
+ break;
14404
+ case 4:
14405
+ var value = /** @type {string} */ (reader.readString());
14406
+ msg.setSportName(value);
14407
+ break;
14408
+ default:
14409
+ reader.skipField();
14410
+ break;
14411
+ }
14412
+ }
14413
+ return msg;
14414
+ };
14415
+
14416
+
14417
+ /**
14418
+ * Serializes the message to binary data (in protobuf wire format).
14419
+ * @return {!Uint8Array}
14420
+ */
14421
+ proto.bet.SportCatalogSportItem.prototype.serializeBinary = function() {
14422
+ var writer = new jspb.BinaryWriter();
14423
+ proto.bet.SportCatalogSportItem.serializeBinaryToWriter(this, writer);
14424
+ return writer.getResultBuffer();
14425
+ };
14426
+
14427
+
14428
+ /**
14429
+ * Serializes the given message to binary data (in protobuf wire
14430
+ * format), writing to the given BinaryWriter.
14431
+ * @param {!proto.bet.SportCatalogSportItem} message
14432
+ * @param {!jspb.BinaryWriter} writer
14433
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14434
+ */
14435
+ proto.bet.SportCatalogSportItem.serializeBinaryToWriter = function(message, writer) {
14436
+ var f = undefined;
14437
+ f = message.getId();
14438
+ if (f !== 0) {
14439
+ writer.writeInt32(
14440
+ 1,
14441
+ f
14442
+ );
14443
+ }
14444
+ f = message.getProvider();
14445
+ if (f.length > 0) {
14446
+ writer.writeString(
14447
+ 2,
14448
+ f
14449
+ );
14450
+ }
14451
+ f = message.getSportId();
14452
+ if (f.length > 0) {
14453
+ writer.writeString(
14454
+ 3,
14455
+ f
14456
+ );
14457
+ }
14458
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
14459
+ if (f != null) {
14460
+ writer.writeString(
14461
+ 4,
14462
+ f
14463
+ );
14464
+ }
14465
+ };
14466
+
14467
+
14468
+ /**
14469
+ * optional int32 id = 1;
14470
+ * @return {number}
14471
+ */
14472
+ proto.bet.SportCatalogSportItem.prototype.getId = function() {
14473
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
14474
+ };
14475
+
14476
+
14477
+ /**
14478
+ * @param {number} value
14479
+ * @return {!proto.bet.SportCatalogSportItem} returns this
14480
+ */
14481
+ proto.bet.SportCatalogSportItem.prototype.setId = function(value) {
14482
+ return jspb.Message.setProto3IntField(this, 1, value);
14483
+ };
14484
+
14485
+
14486
+ /**
14487
+ * optional string provider = 2;
14488
+ * @return {string}
14489
+ */
14490
+ proto.bet.SportCatalogSportItem.prototype.getProvider = function() {
14491
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
14492
+ };
14493
+
14494
+
14495
+ /**
14496
+ * @param {string} value
14497
+ * @return {!proto.bet.SportCatalogSportItem} returns this
14498
+ */
14499
+ proto.bet.SportCatalogSportItem.prototype.setProvider = function(value) {
14500
+ return jspb.Message.setProto3StringField(this, 2, value);
14501
+ };
14502
+
14503
+
14504
+ /**
14505
+ * optional string sport_id = 3;
14506
+ * @return {string}
14507
+ */
14508
+ proto.bet.SportCatalogSportItem.prototype.getSportId = function() {
14509
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
14510
+ };
14511
+
14512
+
14513
+ /**
14514
+ * @param {string} value
14515
+ * @return {!proto.bet.SportCatalogSportItem} returns this
14516
+ */
14517
+ proto.bet.SportCatalogSportItem.prototype.setSportId = function(value) {
14518
+ return jspb.Message.setProto3StringField(this, 3, value);
14519
+ };
14520
+
14521
+
14522
+ /**
14523
+ * optional string sport_name = 4;
14524
+ * @return {string}
14525
+ */
14526
+ proto.bet.SportCatalogSportItem.prototype.getSportName = function() {
14527
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
14528
+ };
14529
+
14530
+
14531
+ /**
14532
+ * @param {string} value
14533
+ * @return {!proto.bet.SportCatalogSportItem} returns this
14534
+ */
14535
+ proto.bet.SportCatalogSportItem.prototype.setSportName = function(value) {
14536
+ return jspb.Message.setField(this, 4, value);
14537
+ };
14538
+
14539
+
14540
+ /**
14541
+ * Clears the field making it undefined.
14542
+ * @return {!proto.bet.SportCatalogSportItem} returns this
14543
+ */
14544
+ proto.bet.SportCatalogSportItem.prototype.clearSportName = function() {
14545
+ return jspb.Message.setField(this, 4, undefined);
14546
+ };
14547
+
14548
+
14549
+ /**
14550
+ * Returns whether this field is set.
14551
+ * @return {boolean}
14552
+ */
14553
+ proto.bet.SportCatalogSportItem.prototype.hasSportName = function() {
14554
+ return jspb.Message.getField(this, 4) != null;
14555
+ };
14556
+
14557
+
14558
+
14559
+
14560
+
14561
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14562
+ /**
14563
+ * Creates an object representation of this proto.
14564
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14565
+ * Optional fields that are not set will be set to undefined.
14566
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14567
+ * For the list of reserved names please see:
14568
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14569
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14570
+ * JSPB instance for transitional soy proto support:
14571
+ * http://goto/soy-param-migration
14572
+ * @return {!Object}
14573
+ */
14574
+ proto.bet.SportCatalogCategoryItem.prototype.toObject = function(opt_includeInstance) {
14575
+ return proto.bet.SportCatalogCategoryItem.toObject(opt_includeInstance, this);
14576
+ };
14577
+
14578
+
14579
+ /**
14580
+ * Static version of the {@see toObject} method.
14581
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14582
+ * the JSPB instance for transitional soy proto support:
14583
+ * http://goto/soy-param-migration
14584
+ * @param {!proto.bet.SportCatalogCategoryItem} msg The msg instance to transform.
14585
+ * @return {!Object}
14586
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14587
+ */
14588
+ proto.bet.SportCatalogCategoryItem.toObject = function(includeInstance, msg) {
14589
+ var f, obj = {
14590
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
14591
+ provider: jspb.Message.getFieldWithDefault(msg, 2, ""),
14592
+ categoryId: jspb.Message.getFieldWithDefault(msg, 3, ""),
14593
+ sportId: jspb.Message.getFieldWithDefault(msg, 4, ""),
14594
+ categoryName: jspb.Message.getFieldWithDefault(msg, 5, "")
14595
+ };
14596
+
14597
+ if (includeInstance) {
14598
+ obj.$jspbMessageInstance = msg;
14599
+ }
14600
+ return obj;
14601
+ };
14602
+ }
14603
+
14604
+
14605
+ /**
14606
+ * Deserializes binary data (in protobuf wire format).
14607
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14608
+ * @return {!proto.bet.SportCatalogCategoryItem}
14609
+ */
14610
+ proto.bet.SportCatalogCategoryItem.deserializeBinary = function(bytes) {
14611
+ var reader = new jspb.BinaryReader(bytes);
14612
+ var msg = new proto.bet.SportCatalogCategoryItem;
14613
+ return proto.bet.SportCatalogCategoryItem.deserializeBinaryFromReader(msg, reader);
14614
+ };
14615
+
14616
+
14617
+ /**
14618
+ * Deserializes binary data (in protobuf wire format) from the
14619
+ * given reader into the given message object.
14620
+ * @param {!proto.bet.SportCatalogCategoryItem} msg The message object to deserialize into.
14621
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14622
+ * @return {!proto.bet.SportCatalogCategoryItem}
14623
+ */
14624
+ proto.bet.SportCatalogCategoryItem.deserializeBinaryFromReader = function(msg, reader) {
14625
+ while (reader.nextField()) {
14626
+ if (reader.isEndGroup()) {
14627
+ break;
14628
+ }
14629
+ var field = reader.getFieldNumber();
14630
+ switch (field) {
14631
+ case 1:
14632
+ var value = /** @type {number} */ (reader.readInt32());
14633
+ msg.setId(value);
14634
+ break;
14635
+ case 2:
14636
+ var value = /** @type {string} */ (reader.readString());
14637
+ msg.setProvider(value);
14638
+ break;
14639
+ case 3:
14640
+ var value = /** @type {string} */ (reader.readString());
14641
+ msg.setCategoryId(value);
14642
+ break;
14643
+ case 4:
14644
+ var value = /** @type {string} */ (reader.readString());
14645
+ msg.setSportId(value);
14646
+ break;
14647
+ case 5:
14648
+ var value = /** @type {string} */ (reader.readString());
14649
+ msg.setCategoryName(value);
14650
+ break;
14651
+ default:
14652
+ reader.skipField();
14653
+ break;
14654
+ }
14655
+ }
14656
+ return msg;
14657
+ };
14658
+
14659
+
14660
+ /**
14661
+ * Serializes the message to binary data (in protobuf wire format).
14662
+ * @return {!Uint8Array}
14663
+ */
14664
+ proto.bet.SportCatalogCategoryItem.prototype.serializeBinary = function() {
14665
+ var writer = new jspb.BinaryWriter();
14666
+ proto.bet.SportCatalogCategoryItem.serializeBinaryToWriter(this, writer);
14667
+ return writer.getResultBuffer();
14668
+ };
14669
+
14670
+
14671
+ /**
14672
+ * Serializes the given message to binary data (in protobuf wire
14673
+ * format), writing to the given BinaryWriter.
14674
+ * @param {!proto.bet.SportCatalogCategoryItem} message
14675
+ * @param {!jspb.BinaryWriter} writer
14676
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14677
+ */
14678
+ proto.bet.SportCatalogCategoryItem.serializeBinaryToWriter = function(message, writer) {
14679
+ var f = undefined;
14680
+ f = message.getId();
14681
+ if (f !== 0) {
14682
+ writer.writeInt32(
14683
+ 1,
14684
+ f
14685
+ );
14686
+ }
14687
+ f = message.getProvider();
14688
+ if (f.length > 0) {
14689
+ writer.writeString(
14690
+ 2,
14691
+ f
14692
+ );
14693
+ }
14694
+ f = message.getCategoryId();
14695
+ if (f.length > 0) {
14696
+ writer.writeString(
14697
+ 3,
14698
+ f
14699
+ );
14700
+ }
14701
+ f = message.getSportId();
14702
+ if (f.length > 0) {
14703
+ writer.writeString(
14704
+ 4,
14705
+ f
14706
+ );
14707
+ }
14708
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
14709
+ if (f != null) {
14710
+ writer.writeString(
14711
+ 5,
14712
+ f
14713
+ );
14714
+ }
14715
+ };
14716
+
14717
+
14718
+ /**
14719
+ * optional int32 id = 1;
14720
+ * @return {number}
14721
+ */
14722
+ proto.bet.SportCatalogCategoryItem.prototype.getId = function() {
14723
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
14724
+ };
14725
+
14726
+
14727
+ /**
14728
+ * @param {number} value
14729
+ * @return {!proto.bet.SportCatalogCategoryItem} returns this
14730
+ */
14731
+ proto.bet.SportCatalogCategoryItem.prototype.setId = function(value) {
14732
+ return jspb.Message.setProto3IntField(this, 1, value);
14733
+ };
14734
+
14735
+
14736
+ /**
14737
+ * optional string provider = 2;
14738
+ * @return {string}
14739
+ */
14740
+ proto.bet.SportCatalogCategoryItem.prototype.getProvider = function() {
14741
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
14742
+ };
14743
+
14744
+
14745
+ /**
14746
+ * @param {string} value
14747
+ * @return {!proto.bet.SportCatalogCategoryItem} returns this
14748
+ */
14749
+ proto.bet.SportCatalogCategoryItem.prototype.setProvider = function(value) {
14750
+ return jspb.Message.setProto3StringField(this, 2, value);
14751
+ };
14752
+
14753
+
14754
+ /**
14755
+ * optional string category_id = 3;
14756
+ * @return {string}
14757
+ */
14758
+ proto.bet.SportCatalogCategoryItem.prototype.getCategoryId = function() {
14759
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
14760
+ };
14761
+
14762
+
14763
+ /**
14764
+ * @param {string} value
14765
+ * @return {!proto.bet.SportCatalogCategoryItem} returns this
14766
+ */
14767
+ proto.bet.SportCatalogCategoryItem.prototype.setCategoryId = function(value) {
14768
+ return jspb.Message.setProto3StringField(this, 3, value);
14769
+ };
14770
+
14771
+
14772
+ /**
14773
+ * optional string sport_id = 4;
14774
+ * @return {string}
14775
+ */
14776
+ proto.bet.SportCatalogCategoryItem.prototype.getSportId = function() {
14777
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
14778
+ };
14779
+
14780
+
14781
+ /**
14782
+ * @param {string} value
14783
+ * @return {!proto.bet.SportCatalogCategoryItem} returns this
14784
+ */
14785
+ proto.bet.SportCatalogCategoryItem.prototype.setSportId = function(value) {
14786
+ return jspb.Message.setProto3StringField(this, 4, value);
14787
+ };
14788
+
14789
+
14790
+ /**
14791
+ * optional string category_name = 5;
14792
+ * @return {string}
14793
+ */
14794
+ proto.bet.SportCatalogCategoryItem.prototype.getCategoryName = function() {
14795
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
14796
+ };
14797
+
14798
+
14799
+ /**
14800
+ * @param {string} value
14801
+ * @return {!proto.bet.SportCatalogCategoryItem} returns this
14802
+ */
14803
+ proto.bet.SportCatalogCategoryItem.prototype.setCategoryName = function(value) {
14804
+ return jspb.Message.setField(this, 5, value);
14805
+ };
14806
+
14807
+
14808
+ /**
14809
+ * Clears the field making it undefined.
14810
+ * @return {!proto.bet.SportCatalogCategoryItem} returns this
14811
+ */
14812
+ proto.bet.SportCatalogCategoryItem.prototype.clearCategoryName = function() {
14813
+ return jspb.Message.setField(this, 5, undefined);
14814
+ };
14815
+
14816
+
14817
+ /**
14818
+ * Returns whether this field is set.
14819
+ * @return {boolean}
14820
+ */
14821
+ proto.bet.SportCatalogCategoryItem.prototype.hasCategoryName = function() {
14822
+ return jspb.Message.getField(this, 5) != null;
14823
+ };
14824
+
14825
+
14826
+
14827
+
14828
+
14829
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14830
+ /**
14831
+ * Creates an object representation of this proto.
14832
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14833
+ * Optional fields that are not set will be set to undefined.
14834
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14835
+ * For the list of reserved names please see:
14836
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14837
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14838
+ * JSPB instance for transitional soy proto support:
14839
+ * http://goto/soy-param-migration
14840
+ * @return {!Object}
14841
+ */
14842
+ proto.bet.SportCatalogTournamentItem.prototype.toObject = function(opt_includeInstance) {
14843
+ return proto.bet.SportCatalogTournamentItem.toObject(opt_includeInstance, this);
14844
+ };
14845
+
14846
+
14847
+ /**
14848
+ * Static version of the {@see toObject} method.
14849
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14850
+ * the JSPB instance for transitional soy proto support:
14851
+ * http://goto/soy-param-migration
14852
+ * @param {!proto.bet.SportCatalogTournamentItem} msg The msg instance to transform.
14853
+ * @return {!Object}
14854
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14855
+ */
14856
+ proto.bet.SportCatalogTournamentItem.toObject = function(includeInstance, msg) {
14857
+ var f, obj = {
14858
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
14859
+ provider: jspb.Message.getFieldWithDefault(msg, 2, ""),
14860
+ tournamentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
14861
+ categoryId: jspb.Message.getFieldWithDefault(msg, 4, ""),
14862
+ sportId: jspb.Message.getFieldWithDefault(msg, 5, ""),
14863
+ tournamentName: jspb.Message.getFieldWithDefault(msg, 6, "")
14864
+ };
14865
+
14866
+ if (includeInstance) {
14867
+ obj.$jspbMessageInstance = msg;
14868
+ }
14869
+ return obj;
14870
+ };
14871
+ }
14872
+
14873
+
14874
+ /**
14875
+ * Deserializes binary data (in protobuf wire format).
14876
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14877
+ * @return {!proto.bet.SportCatalogTournamentItem}
14878
+ */
14879
+ proto.bet.SportCatalogTournamentItem.deserializeBinary = function(bytes) {
14880
+ var reader = new jspb.BinaryReader(bytes);
14881
+ var msg = new proto.bet.SportCatalogTournamentItem;
14882
+ return proto.bet.SportCatalogTournamentItem.deserializeBinaryFromReader(msg, reader);
14883
+ };
14884
+
14885
+
14886
+ /**
14887
+ * Deserializes binary data (in protobuf wire format) from the
14888
+ * given reader into the given message object.
14889
+ * @param {!proto.bet.SportCatalogTournamentItem} msg The message object to deserialize into.
14890
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14891
+ * @return {!proto.bet.SportCatalogTournamentItem}
14892
+ */
14893
+ proto.bet.SportCatalogTournamentItem.deserializeBinaryFromReader = function(msg, reader) {
14894
+ while (reader.nextField()) {
14895
+ if (reader.isEndGroup()) {
14896
+ break;
14897
+ }
14898
+ var field = reader.getFieldNumber();
14899
+ switch (field) {
14900
+ case 1:
14901
+ var value = /** @type {number} */ (reader.readInt32());
14902
+ msg.setId(value);
14903
+ break;
14904
+ case 2:
14905
+ var value = /** @type {string} */ (reader.readString());
14906
+ msg.setProvider(value);
14907
+ break;
14908
+ case 3:
14909
+ var value = /** @type {string} */ (reader.readString());
14910
+ msg.setTournamentId(value);
14911
+ break;
14912
+ case 4:
14913
+ var value = /** @type {string} */ (reader.readString());
14914
+ msg.setCategoryId(value);
14915
+ break;
14916
+ case 5:
14917
+ var value = /** @type {string} */ (reader.readString());
14918
+ msg.setSportId(value);
14919
+ break;
14920
+ case 6:
14921
+ var value = /** @type {string} */ (reader.readString());
14922
+ msg.setTournamentName(value);
14923
+ break;
14924
+ default:
14925
+ reader.skipField();
14926
+ break;
14927
+ }
14928
+ }
14929
+ return msg;
14930
+ };
14931
+
14932
+
14933
+ /**
14934
+ * Serializes the message to binary data (in protobuf wire format).
14935
+ * @return {!Uint8Array}
14936
+ */
14937
+ proto.bet.SportCatalogTournamentItem.prototype.serializeBinary = function() {
14938
+ var writer = new jspb.BinaryWriter();
14939
+ proto.bet.SportCatalogTournamentItem.serializeBinaryToWriter(this, writer);
14940
+ return writer.getResultBuffer();
14941
+ };
14942
+
14943
+
14944
+ /**
14945
+ * Serializes the given message to binary data (in protobuf wire
14946
+ * format), writing to the given BinaryWriter.
14947
+ * @param {!proto.bet.SportCatalogTournamentItem} message
14948
+ * @param {!jspb.BinaryWriter} writer
14949
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14950
+ */
14951
+ proto.bet.SportCatalogTournamentItem.serializeBinaryToWriter = function(message, writer) {
14952
+ var f = undefined;
14953
+ f = message.getId();
14954
+ if (f !== 0) {
14955
+ writer.writeInt32(
14956
+ 1,
14957
+ f
14958
+ );
14959
+ }
14960
+ f = message.getProvider();
14961
+ if (f.length > 0) {
14962
+ writer.writeString(
14963
+ 2,
14964
+ f
14965
+ );
14966
+ }
14967
+ f = message.getTournamentId();
14968
+ if (f.length > 0) {
14969
+ writer.writeString(
14970
+ 3,
14971
+ f
14972
+ );
14973
+ }
14974
+ f = message.getCategoryId();
14975
+ if (f.length > 0) {
14976
+ writer.writeString(
14977
+ 4,
14978
+ f
14979
+ );
14980
+ }
14981
+ f = message.getSportId();
14982
+ if (f.length > 0) {
14983
+ writer.writeString(
14984
+ 5,
14985
+ f
14986
+ );
14987
+ }
14988
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
14989
+ if (f != null) {
14990
+ writer.writeString(
14991
+ 6,
14992
+ f
14993
+ );
14994
+ }
14995
+ };
14996
+
14997
+
14998
+ /**
14999
+ * optional int32 id = 1;
15000
+ * @return {number}
15001
+ */
15002
+ proto.bet.SportCatalogTournamentItem.prototype.getId = function() {
15003
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15004
+ };
15005
+
15006
+
15007
+ /**
15008
+ * @param {number} value
15009
+ * @return {!proto.bet.SportCatalogTournamentItem} returns this
15010
+ */
15011
+ proto.bet.SportCatalogTournamentItem.prototype.setId = function(value) {
15012
+ return jspb.Message.setProto3IntField(this, 1, value);
15013
+ };
15014
+
15015
+
15016
+ /**
15017
+ * optional string provider = 2;
15018
+ * @return {string}
15019
+ */
15020
+ proto.bet.SportCatalogTournamentItem.prototype.getProvider = function() {
15021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15022
+ };
15023
+
15024
+
15025
+ /**
15026
+ * @param {string} value
15027
+ * @return {!proto.bet.SportCatalogTournamentItem} returns this
15028
+ */
15029
+ proto.bet.SportCatalogTournamentItem.prototype.setProvider = function(value) {
15030
+ return jspb.Message.setProto3StringField(this, 2, value);
15031
+ };
15032
+
15033
+
15034
+ /**
15035
+ * optional string tournament_id = 3;
15036
+ * @return {string}
15037
+ */
15038
+ proto.bet.SportCatalogTournamentItem.prototype.getTournamentId = function() {
15039
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15040
+ };
15041
+
15042
+
15043
+ /**
15044
+ * @param {string} value
15045
+ * @return {!proto.bet.SportCatalogTournamentItem} returns this
15046
+ */
15047
+ proto.bet.SportCatalogTournamentItem.prototype.setTournamentId = function(value) {
15048
+ return jspb.Message.setProto3StringField(this, 3, value);
15049
+ };
15050
+
15051
+
15052
+ /**
15053
+ * optional string category_id = 4;
15054
+ * @return {string}
15055
+ */
15056
+ proto.bet.SportCatalogTournamentItem.prototype.getCategoryId = function() {
15057
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15058
+ };
15059
+
15060
+
15061
+ /**
15062
+ * @param {string} value
15063
+ * @return {!proto.bet.SportCatalogTournamentItem} returns this
15064
+ */
15065
+ proto.bet.SportCatalogTournamentItem.prototype.setCategoryId = function(value) {
15066
+ return jspb.Message.setProto3StringField(this, 4, value);
15067
+ };
15068
+
15069
+
15070
+ /**
15071
+ * optional string sport_id = 5;
15072
+ * @return {string}
15073
+ */
15074
+ proto.bet.SportCatalogTournamentItem.prototype.getSportId = function() {
15075
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
15076
+ };
15077
+
15078
+
15079
+ /**
15080
+ * @param {string} value
15081
+ * @return {!proto.bet.SportCatalogTournamentItem} returns this
15082
+ */
15083
+ proto.bet.SportCatalogTournamentItem.prototype.setSportId = function(value) {
15084
+ return jspb.Message.setProto3StringField(this, 5, value);
15085
+ };
15086
+
15087
+
15088
+ /**
15089
+ * optional string tournament_name = 6;
15090
+ * @return {string}
15091
+ */
15092
+ proto.bet.SportCatalogTournamentItem.prototype.getTournamentName = function() {
15093
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
15094
+ };
15095
+
15096
+
15097
+ /**
15098
+ * @param {string} value
15099
+ * @return {!proto.bet.SportCatalogTournamentItem} returns this
15100
+ */
15101
+ proto.bet.SportCatalogTournamentItem.prototype.setTournamentName = function(value) {
15102
+ return jspb.Message.setField(this, 6, value);
15103
+ };
15104
+
15105
+
15106
+ /**
15107
+ * Clears the field making it undefined.
15108
+ * @return {!proto.bet.SportCatalogTournamentItem} returns this
15109
+ */
15110
+ proto.bet.SportCatalogTournamentItem.prototype.clearTournamentName = function() {
15111
+ return jspb.Message.setField(this, 6, undefined);
15112
+ };
15113
+
15114
+
15115
+ /**
15116
+ * Returns whether this field is set.
15117
+ * @return {boolean}
15118
+ */
15119
+ proto.bet.SportCatalogTournamentItem.prototype.hasTournamentName = function() {
15120
+ return jspb.Message.getField(this, 6) != null;
15121
+ };
15122
+
15123
+
15124
+
15125
+ /**
15126
+ * List of repeated fields within this message type.
15127
+ * @private {!Array<number>}
15128
+ * @const
15129
+ */
15130
+ proto.bet.SportCatalogEventItem.repeatedFields_ = [7];
15131
+
15132
+
15133
+
15134
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15135
+ /**
15136
+ * Creates an object representation of this proto.
15137
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15138
+ * Optional fields that are not set will be set to undefined.
15139
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15140
+ * For the list of reserved names please see:
15141
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15142
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15143
+ * JSPB instance for transitional soy proto support:
15144
+ * http://goto/soy-param-migration
15145
+ * @return {!Object}
15146
+ */
15147
+ proto.bet.SportCatalogEventItem.prototype.toObject = function(opt_includeInstance) {
15148
+ return proto.bet.SportCatalogEventItem.toObject(opt_includeInstance, this);
15149
+ };
15150
+
15151
+
15152
+ /**
15153
+ * Static version of the {@see toObject} method.
15154
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15155
+ * the JSPB instance for transitional soy proto support:
15156
+ * http://goto/soy-param-migration
15157
+ * @param {!proto.bet.SportCatalogEventItem} msg The msg instance to transform.
15158
+ * @return {!Object}
15159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15160
+ */
15161
+ proto.bet.SportCatalogEventItem.toObject = function(includeInstance, msg) {
15162
+ var f, obj = {
15163
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
15164
+ provider: jspb.Message.getFieldWithDefault(msg, 2, ""),
15165
+ eventId: jspb.Message.getFieldWithDefault(msg, 3, ""),
15166
+ tournamentId: jspb.Message.getFieldWithDefault(msg, 4, ""),
15167
+ categoryId: jspb.Message.getFieldWithDefault(msg, 5, ""),
15168
+ sportId: jspb.Message.getFieldWithDefault(msg, 6, ""),
15169
+ competitorsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
15170
+ isLive: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
15171
+ scheduledAt: jspb.Message.getFieldWithDefault(msg, 9, 0)
15172
+ };
15173
+
15174
+ if (includeInstance) {
15175
+ obj.$jspbMessageInstance = msg;
15176
+ }
15177
+ return obj;
15178
+ };
15179
+ }
15180
+
15181
+
15182
+ /**
15183
+ * Deserializes binary data (in protobuf wire format).
15184
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15185
+ * @return {!proto.bet.SportCatalogEventItem}
15186
+ */
15187
+ proto.bet.SportCatalogEventItem.deserializeBinary = function(bytes) {
15188
+ var reader = new jspb.BinaryReader(bytes);
15189
+ var msg = new proto.bet.SportCatalogEventItem;
15190
+ return proto.bet.SportCatalogEventItem.deserializeBinaryFromReader(msg, reader);
15191
+ };
15192
+
15193
+
15194
+ /**
15195
+ * Deserializes binary data (in protobuf wire format) from the
15196
+ * given reader into the given message object.
15197
+ * @param {!proto.bet.SportCatalogEventItem} msg The message object to deserialize into.
15198
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15199
+ * @return {!proto.bet.SportCatalogEventItem}
15200
+ */
15201
+ proto.bet.SportCatalogEventItem.deserializeBinaryFromReader = function(msg, reader) {
15202
+ while (reader.nextField()) {
15203
+ if (reader.isEndGroup()) {
15204
+ break;
15205
+ }
15206
+ var field = reader.getFieldNumber();
15207
+ switch (field) {
15208
+ case 1:
15209
+ var value = /** @type {number} */ (reader.readInt32());
15210
+ msg.setId(value);
15211
+ break;
15212
+ case 2:
15213
+ var value = /** @type {string} */ (reader.readString());
15214
+ msg.setProvider(value);
15215
+ break;
15216
+ case 3:
15217
+ var value = /** @type {string} */ (reader.readString());
15218
+ msg.setEventId(value);
15219
+ break;
15220
+ case 4:
15221
+ var value = /** @type {string} */ (reader.readString());
15222
+ msg.setTournamentId(value);
15223
+ break;
15224
+ case 5:
15225
+ var value = /** @type {string} */ (reader.readString());
15226
+ msg.setCategoryId(value);
15227
+ break;
15228
+ case 6:
15229
+ var value = /** @type {string} */ (reader.readString());
15230
+ msg.setSportId(value);
15231
+ break;
15232
+ case 7:
15233
+ var value = /** @type {string} */ (reader.readString());
15234
+ msg.addCompetitors(value);
15235
+ break;
15236
+ case 8:
15237
+ var value = /** @type {boolean} */ (reader.readBool());
15238
+ msg.setIsLive(value);
15239
+ break;
15240
+ case 9:
15241
+ var value = /** @type {number} */ (reader.readInt64());
15242
+ msg.setScheduledAt(value);
15243
+ break;
15244
+ default:
15245
+ reader.skipField();
15246
+ break;
15247
+ }
15248
+ }
15249
+ return msg;
15250
+ };
15251
+
15252
+
15253
+ /**
15254
+ * Serializes the message to binary data (in protobuf wire format).
15255
+ * @return {!Uint8Array}
15256
+ */
15257
+ proto.bet.SportCatalogEventItem.prototype.serializeBinary = function() {
15258
+ var writer = new jspb.BinaryWriter();
15259
+ proto.bet.SportCatalogEventItem.serializeBinaryToWriter(this, writer);
15260
+ return writer.getResultBuffer();
15261
+ };
15262
+
15263
+
15264
+ /**
15265
+ * Serializes the given message to binary data (in protobuf wire
15266
+ * format), writing to the given BinaryWriter.
15267
+ * @param {!proto.bet.SportCatalogEventItem} message
15268
+ * @param {!jspb.BinaryWriter} writer
15269
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15270
+ */
15271
+ proto.bet.SportCatalogEventItem.serializeBinaryToWriter = function(message, writer) {
15272
+ var f = undefined;
15273
+ f = message.getId();
15274
+ if (f !== 0) {
15275
+ writer.writeInt32(
15276
+ 1,
15277
+ f
15278
+ );
15279
+ }
15280
+ f = message.getProvider();
15281
+ if (f.length > 0) {
15282
+ writer.writeString(
15283
+ 2,
15284
+ f
15285
+ );
15286
+ }
15287
+ f = message.getEventId();
15288
+ if (f.length > 0) {
15289
+ writer.writeString(
15290
+ 3,
15291
+ f
15292
+ );
15293
+ }
15294
+ f = message.getTournamentId();
15295
+ if (f.length > 0) {
15296
+ writer.writeString(
15297
+ 4,
15298
+ f
15299
+ );
15300
+ }
15301
+ f = message.getCategoryId();
15302
+ if (f.length > 0) {
15303
+ writer.writeString(
15304
+ 5,
15305
+ f
15306
+ );
15307
+ }
15308
+ f = message.getSportId();
15309
+ if (f.length > 0) {
15310
+ writer.writeString(
15311
+ 6,
15312
+ f
15313
+ );
15314
+ }
15315
+ f = message.getCompetitorsList();
15316
+ if (f.length > 0) {
15317
+ writer.writeRepeatedString(
15318
+ 7,
15319
+ f
15320
+ );
15321
+ }
15322
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 8));
15323
+ if (f != null) {
15324
+ writer.writeBool(
15325
+ 8,
15326
+ f
15327
+ );
15328
+ }
15329
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
15330
+ if (f != null) {
15331
+ writer.writeInt64(
15332
+ 9,
15333
+ f
15334
+ );
15335
+ }
15336
+ };
15337
+
15338
+
15339
+ /**
15340
+ * optional int32 id = 1;
15341
+ * @return {number}
15342
+ */
15343
+ proto.bet.SportCatalogEventItem.prototype.getId = function() {
15344
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15345
+ };
15346
+
15347
+
15348
+ /**
15349
+ * @param {number} value
15350
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15351
+ */
15352
+ proto.bet.SportCatalogEventItem.prototype.setId = function(value) {
15353
+ return jspb.Message.setProto3IntField(this, 1, value);
15354
+ };
15355
+
15356
+
15357
+ /**
15358
+ * optional string provider = 2;
15359
+ * @return {string}
15360
+ */
15361
+ proto.bet.SportCatalogEventItem.prototype.getProvider = function() {
15362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15363
+ };
15364
+
15365
+
15366
+ /**
15367
+ * @param {string} value
15368
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15369
+ */
15370
+ proto.bet.SportCatalogEventItem.prototype.setProvider = function(value) {
15371
+ return jspb.Message.setProto3StringField(this, 2, value);
15372
+ };
15373
+
15374
+
15375
+ /**
15376
+ * optional string event_id = 3;
15377
+ * @return {string}
15378
+ */
15379
+ proto.bet.SportCatalogEventItem.prototype.getEventId = function() {
15380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15381
+ };
15382
+
15383
+
15384
+ /**
15385
+ * @param {string} value
15386
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15387
+ */
15388
+ proto.bet.SportCatalogEventItem.prototype.setEventId = function(value) {
15389
+ return jspb.Message.setProto3StringField(this, 3, value);
15390
+ };
15391
+
15392
+
15393
+ /**
15394
+ * optional string tournament_id = 4;
15395
+ * @return {string}
15396
+ */
15397
+ proto.bet.SportCatalogEventItem.prototype.getTournamentId = function() {
15398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15399
+ };
15400
+
15401
+
15402
+ /**
15403
+ * @param {string} value
15404
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15405
+ */
15406
+ proto.bet.SportCatalogEventItem.prototype.setTournamentId = function(value) {
15407
+ return jspb.Message.setProto3StringField(this, 4, value);
15408
+ };
15409
+
15410
+
15411
+ /**
15412
+ * optional string category_id = 5;
15413
+ * @return {string}
15414
+ */
15415
+ proto.bet.SportCatalogEventItem.prototype.getCategoryId = function() {
15416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
15417
+ };
15418
+
15419
+
15420
+ /**
15421
+ * @param {string} value
15422
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15423
+ */
15424
+ proto.bet.SportCatalogEventItem.prototype.setCategoryId = function(value) {
15425
+ return jspb.Message.setProto3StringField(this, 5, value);
15426
+ };
15427
+
15428
+
15429
+ /**
15430
+ * optional string sport_id = 6;
15431
+ * @return {string}
15432
+ */
15433
+ proto.bet.SportCatalogEventItem.prototype.getSportId = function() {
15434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
15435
+ };
15436
+
15437
+
15438
+ /**
15439
+ * @param {string} value
15440
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15441
+ */
15442
+ proto.bet.SportCatalogEventItem.prototype.setSportId = function(value) {
15443
+ return jspb.Message.setProto3StringField(this, 6, value);
15444
+ };
15445
+
15446
+
15447
+ /**
15448
+ * repeated string competitors = 7;
15449
+ * @return {!Array<string>}
15450
+ */
15451
+ proto.bet.SportCatalogEventItem.prototype.getCompetitorsList = function() {
15452
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
15453
+ };
15454
+
15455
+
15456
+ /**
15457
+ * @param {!Array<string>} value
15458
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15459
+ */
15460
+ proto.bet.SportCatalogEventItem.prototype.setCompetitorsList = function(value) {
15461
+ return jspb.Message.setField(this, 7, value || []);
15462
+ };
15463
+
15464
+
15465
+ /**
15466
+ * @param {string} value
15467
+ * @param {number=} opt_index
15468
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15469
+ */
15470
+ proto.bet.SportCatalogEventItem.prototype.addCompetitors = function(value, opt_index) {
15471
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
15472
+ };
15473
+
15474
+
15475
+ /**
15476
+ * Clears the list making it empty but non-null.
15477
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15478
+ */
15479
+ proto.bet.SportCatalogEventItem.prototype.clearCompetitorsList = function() {
15480
+ return this.setCompetitorsList([]);
15481
+ };
15482
+
15483
+
15484
+ /**
15485
+ * optional bool is_live = 8;
15486
+ * @return {boolean}
15487
+ */
15488
+ proto.bet.SportCatalogEventItem.prototype.getIsLive = function() {
15489
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
15490
+ };
15491
+
15492
+
15493
+ /**
15494
+ * @param {boolean} value
15495
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15496
+ */
15497
+ proto.bet.SportCatalogEventItem.prototype.setIsLive = function(value) {
15498
+ return jspb.Message.setField(this, 8, value);
15499
+ };
15500
+
15501
+
15502
+ /**
15503
+ * Clears the field making it undefined.
15504
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15505
+ */
15506
+ proto.bet.SportCatalogEventItem.prototype.clearIsLive = function() {
15507
+ return jspb.Message.setField(this, 8, undefined);
15508
+ };
15509
+
15510
+
15511
+ /**
15512
+ * Returns whether this field is set.
15513
+ * @return {boolean}
15514
+ */
15515
+ proto.bet.SportCatalogEventItem.prototype.hasIsLive = function() {
15516
+ return jspb.Message.getField(this, 8) != null;
15517
+ };
15518
+
15519
+
15520
+ /**
15521
+ * optional int64 scheduled_at = 9;
15522
+ * @return {number}
15523
+ */
15524
+ proto.bet.SportCatalogEventItem.prototype.getScheduledAt = function() {
15525
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
15526
+ };
15527
+
15528
+
15529
+ /**
15530
+ * @param {number} value
15531
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15532
+ */
15533
+ proto.bet.SportCatalogEventItem.prototype.setScheduledAt = function(value) {
15534
+ return jspb.Message.setField(this, 9, value);
15535
+ };
15536
+
15537
+
15538
+ /**
15539
+ * Clears the field making it undefined.
15540
+ * @return {!proto.bet.SportCatalogEventItem} returns this
15541
+ */
15542
+ proto.bet.SportCatalogEventItem.prototype.clearScheduledAt = function() {
15543
+ return jspb.Message.setField(this, 9, undefined);
15544
+ };
15545
+
15546
+
15547
+ /**
15548
+ * Returns whether this field is set.
15549
+ * @return {boolean}
15550
+ */
15551
+ proto.bet.SportCatalogEventItem.prototype.hasScheduledAt = function() {
15552
+ return jspb.Message.getField(this, 9) != null;
15553
+ };
15554
+
15555
+
15556
+
15557
+ /**
15558
+ * List of repeated fields within this message type.
15559
+ * @private {!Array<number>}
15560
+ * @const
15561
+ */
15562
+ proto.bet.SportCatalogSportBatchResponse.repeatedFields_ = [1];
15563
+
15564
+
15565
+
15566
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15567
+ /**
15568
+ * Creates an object representation of this proto.
15569
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15570
+ * Optional fields that are not set will be set to undefined.
15571
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15572
+ * For the list of reserved names please see:
15573
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15574
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15575
+ * JSPB instance for transitional soy proto support:
15576
+ * http://goto/soy-param-migration
15577
+ * @return {!Object}
15578
+ */
15579
+ proto.bet.SportCatalogSportBatchResponse.prototype.toObject = function(opt_includeInstance) {
15580
+ return proto.bet.SportCatalogSportBatchResponse.toObject(opt_includeInstance, this);
15581
+ };
15582
+
15583
+
15584
+ /**
15585
+ * Static version of the {@see toObject} method.
15586
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15587
+ * the JSPB instance for transitional soy proto support:
15588
+ * http://goto/soy-param-migration
15589
+ * @param {!proto.bet.SportCatalogSportBatchResponse} msg The msg instance to transform.
15590
+ * @return {!Object}
15591
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15592
+ */
15593
+ proto.bet.SportCatalogSportBatchResponse.toObject = function(includeInstance, msg) {
15594
+ var f, obj = {
15595
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
15596
+ proto.bet.SportCatalogSportItem.toObject, includeInstance),
15597
+ nextAfterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
15598
+ hasMore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
15599
+ };
15600
+
15601
+ if (includeInstance) {
15602
+ obj.$jspbMessageInstance = msg;
15603
+ }
15604
+ return obj;
15605
+ };
15606
+ }
15607
+
15608
+
15609
+ /**
15610
+ * Deserializes binary data (in protobuf wire format).
15611
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15612
+ * @return {!proto.bet.SportCatalogSportBatchResponse}
15613
+ */
15614
+ proto.bet.SportCatalogSportBatchResponse.deserializeBinary = function(bytes) {
15615
+ var reader = new jspb.BinaryReader(bytes);
15616
+ var msg = new proto.bet.SportCatalogSportBatchResponse;
15617
+ return proto.bet.SportCatalogSportBatchResponse.deserializeBinaryFromReader(msg, reader);
15618
+ };
15619
+
15620
+
15621
+ /**
15622
+ * Deserializes binary data (in protobuf wire format) from the
15623
+ * given reader into the given message object.
15624
+ * @param {!proto.bet.SportCatalogSportBatchResponse} msg The message object to deserialize into.
15625
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15626
+ * @return {!proto.bet.SportCatalogSportBatchResponse}
15627
+ */
15628
+ proto.bet.SportCatalogSportBatchResponse.deserializeBinaryFromReader = function(msg, reader) {
15629
+ while (reader.nextField()) {
15630
+ if (reader.isEndGroup()) {
15631
+ break;
15632
+ }
15633
+ var field = reader.getFieldNumber();
15634
+ switch (field) {
15635
+ case 1:
15636
+ var value = new proto.bet.SportCatalogSportItem;
15637
+ reader.readMessage(value,proto.bet.SportCatalogSportItem.deserializeBinaryFromReader);
15638
+ msg.addItems(value);
15639
+ break;
15640
+ case 2:
15641
+ var value = /** @type {number} */ (reader.readInt32());
15642
+ msg.setNextAfterId(value);
15643
+ break;
15644
+ case 3:
15645
+ var value = /** @type {boolean} */ (reader.readBool());
15646
+ msg.setHasMore(value);
15647
+ break;
15648
+ default:
15649
+ reader.skipField();
15650
+ break;
15651
+ }
15652
+ }
15653
+ return msg;
15654
+ };
15655
+
15656
+
15657
+ /**
15658
+ * Serializes the message to binary data (in protobuf wire format).
15659
+ * @return {!Uint8Array}
15660
+ */
15661
+ proto.bet.SportCatalogSportBatchResponse.prototype.serializeBinary = function() {
15662
+ var writer = new jspb.BinaryWriter();
15663
+ proto.bet.SportCatalogSportBatchResponse.serializeBinaryToWriter(this, writer);
15664
+ return writer.getResultBuffer();
15665
+ };
15666
+
15667
+
15668
+ /**
15669
+ * Serializes the given message to binary data (in protobuf wire
15670
+ * format), writing to the given BinaryWriter.
15671
+ * @param {!proto.bet.SportCatalogSportBatchResponse} message
15672
+ * @param {!jspb.BinaryWriter} writer
15673
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15674
+ */
15675
+ proto.bet.SportCatalogSportBatchResponse.serializeBinaryToWriter = function(message, writer) {
15676
+ var f = undefined;
15677
+ f = message.getItemsList();
15678
+ if (f.length > 0) {
15679
+ writer.writeRepeatedMessage(
15680
+ 1,
15681
+ f,
15682
+ proto.bet.SportCatalogSportItem.serializeBinaryToWriter
15683
+ );
15684
+ }
15685
+ f = message.getNextAfterId();
15686
+ if (f !== 0) {
15687
+ writer.writeInt32(
15688
+ 2,
15689
+ f
15690
+ );
15691
+ }
15692
+ f = message.getHasMore();
15693
+ if (f) {
15694
+ writer.writeBool(
15695
+ 3,
15696
+ f
15697
+ );
15698
+ }
15699
+ };
15700
+
15701
+
15702
+ /**
15703
+ * repeated SportCatalogSportItem items = 1;
15704
+ * @return {!Array<!proto.bet.SportCatalogSportItem>}
15705
+ */
15706
+ proto.bet.SportCatalogSportBatchResponse.prototype.getItemsList = function() {
15707
+ return /** @type{!Array<!proto.bet.SportCatalogSportItem>} */ (
15708
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.SportCatalogSportItem, 1));
15709
+ };
15710
+
15711
+
15712
+ /**
15713
+ * @param {!Array<!proto.bet.SportCatalogSportItem>} value
15714
+ * @return {!proto.bet.SportCatalogSportBatchResponse} returns this
15715
+ */
15716
+ proto.bet.SportCatalogSportBatchResponse.prototype.setItemsList = function(value) {
15717
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
15718
+ };
15719
+
15720
+
15721
+ /**
15722
+ * @param {!proto.bet.SportCatalogSportItem=} opt_value
15723
+ * @param {number=} opt_index
15724
+ * @return {!proto.bet.SportCatalogSportItem}
15725
+ */
15726
+ proto.bet.SportCatalogSportBatchResponse.prototype.addItems = function(opt_value, opt_index) {
15727
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.SportCatalogSportItem, opt_index);
15728
+ };
15729
+
15730
+
15731
+ /**
15732
+ * Clears the list making it empty but non-null.
15733
+ * @return {!proto.bet.SportCatalogSportBatchResponse} returns this
15734
+ */
15735
+ proto.bet.SportCatalogSportBatchResponse.prototype.clearItemsList = function() {
15736
+ return this.setItemsList([]);
15737
+ };
15738
+
15739
+
15740
+ /**
15741
+ * optional int32 next_after_id = 2;
15742
+ * @return {number}
15743
+ */
15744
+ proto.bet.SportCatalogSportBatchResponse.prototype.getNextAfterId = function() {
15745
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15746
+ };
15747
+
15748
+
15749
+ /**
15750
+ * @param {number} value
15751
+ * @return {!proto.bet.SportCatalogSportBatchResponse} returns this
15752
+ */
15753
+ proto.bet.SportCatalogSportBatchResponse.prototype.setNextAfterId = function(value) {
15754
+ return jspb.Message.setProto3IntField(this, 2, value);
15755
+ };
15756
+
15757
+
15758
+ /**
15759
+ * optional bool has_more = 3;
15760
+ * @return {boolean}
15761
+ */
15762
+ proto.bet.SportCatalogSportBatchResponse.prototype.getHasMore = function() {
15763
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
15764
+ };
15765
+
15766
+
15767
+ /**
15768
+ * @param {boolean} value
15769
+ * @return {!proto.bet.SportCatalogSportBatchResponse} returns this
15770
+ */
15771
+ proto.bet.SportCatalogSportBatchResponse.prototype.setHasMore = function(value) {
15772
+ return jspb.Message.setProto3BooleanField(this, 3, value);
15773
+ };
15774
+
15775
+
15776
+
15777
+ /**
15778
+ * List of repeated fields within this message type.
15779
+ * @private {!Array<number>}
15780
+ * @const
15781
+ */
15782
+ proto.bet.SportCatalogCategoryBatchResponse.repeatedFields_ = [1];
15783
+
15784
+
15785
+
15786
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15787
+ /**
15788
+ * Creates an object representation of this proto.
15789
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15790
+ * Optional fields that are not set will be set to undefined.
15791
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15792
+ * For the list of reserved names please see:
15793
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15794
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15795
+ * JSPB instance for transitional soy proto support:
15796
+ * http://goto/soy-param-migration
15797
+ * @return {!Object}
15798
+ */
15799
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.toObject = function(opt_includeInstance) {
15800
+ return proto.bet.SportCatalogCategoryBatchResponse.toObject(opt_includeInstance, this);
15801
+ };
15802
+
15803
+
15804
+ /**
15805
+ * Static version of the {@see toObject} method.
15806
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15807
+ * the JSPB instance for transitional soy proto support:
15808
+ * http://goto/soy-param-migration
15809
+ * @param {!proto.bet.SportCatalogCategoryBatchResponse} msg The msg instance to transform.
15810
+ * @return {!Object}
15811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15812
+ */
15813
+ proto.bet.SportCatalogCategoryBatchResponse.toObject = function(includeInstance, msg) {
15814
+ var f, obj = {
15815
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
15816
+ proto.bet.SportCatalogCategoryItem.toObject, includeInstance),
15817
+ nextAfterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
15818
+ hasMore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
15819
+ };
15820
+
15821
+ if (includeInstance) {
15822
+ obj.$jspbMessageInstance = msg;
15823
+ }
15824
+ return obj;
15825
+ };
15826
+ }
15827
+
15828
+
15829
+ /**
15830
+ * Deserializes binary data (in protobuf wire format).
15831
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15832
+ * @return {!proto.bet.SportCatalogCategoryBatchResponse}
15833
+ */
15834
+ proto.bet.SportCatalogCategoryBatchResponse.deserializeBinary = function(bytes) {
15835
+ var reader = new jspb.BinaryReader(bytes);
15836
+ var msg = new proto.bet.SportCatalogCategoryBatchResponse;
15837
+ return proto.bet.SportCatalogCategoryBatchResponse.deserializeBinaryFromReader(msg, reader);
15838
+ };
15839
+
15840
+
15841
+ /**
15842
+ * Deserializes binary data (in protobuf wire format) from the
15843
+ * given reader into the given message object.
15844
+ * @param {!proto.bet.SportCatalogCategoryBatchResponse} msg The message object to deserialize into.
15845
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15846
+ * @return {!proto.bet.SportCatalogCategoryBatchResponse}
15847
+ */
15848
+ proto.bet.SportCatalogCategoryBatchResponse.deserializeBinaryFromReader = function(msg, reader) {
15849
+ while (reader.nextField()) {
15850
+ if (reader.isEndGroup()) {
15851
+ break;
15852
+ }
15853
+ var field = reader.getFieldNumber();
15854
+ switch (field) {
15855
+ case 1:
15856
+ var value = new proto.bet.SportCatalogCategoryItem;
15857
+ reader.readMessage(value,proto.bet.SportCatalogCategoryItem.deserializeBinaryFromReader);
15858
+ msg.addItems(value);
15859
+ break;
15860
+ case 2:
15861
+ var value = /** @type {number} */ (reader.readInt32());
15862
+ msg.setNextAfterId(value);
15863
+ break;
15864
+ case 3:
15865
+ var value = /** @type {boolean} */ (reader.readBool());
15866
+ msg.setHasMore(value);
15867
+ break;
15868
+ default:
15869
+ reader.skipField();
15870
+ break;
15871
+ }
15872
+ }
15873
+ return msg;
15874
+ };
15875
+
15876
+
15877
+ /**
15878
+ * Serializes the message to binary data (in protobuf wire format).
15879
+ * @return {!Uint8Array}
15880
+ */
15881
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.serializeBinary = function() {
15882
+ var writer = new jspb.BinaryWriter();
15883
+ proto.bet.SportCatalogCategoryBatchResponse.serializeBinaryToWriter(this, writer);
15884
+ return writer.getResultBuffer();
15885
+ };
15886
+
15887
+
15888
+ /**
15889
+ * Serializes the given message to binary data (in protobuf wire
15890
+ * format), writing to the given BinaryWriter.
15891
+ * @param {!proto.bet.SportCatalogCategoryBatchResponse} message
15892
+ * @param {!jspb.BinaryWriter} writer
15893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15894
+ */
15895
+ proto.bet.SportCatalogCategoryBatchResponse.serializeBinaryToWriter = function(message, writer) {
15896
+ var f = undefined;
15897
+ f = message.getItemsList();
15898
+ if (f.length > 0) {
15899
+ writer.writeRepeatedMessage(
15900
+ 1,
15901
+ f,
15902
+ proto.bet.SportCatalogCategoryItem.serializeBinaryToWriter
15903
+ );
15904
+ }
15905
+ f = message.getNextAfterId();
15906
+ if (f !== 0) {
15907
+ writer.writeInt32(
15908
+ 2,
15909
+ f
15910
+ );
15911
+ }
15912
+ f = message.getHasMore();
15913
+ if (f) {
15914
+ writer.writeBool(
15915
+ 3,
15916
+ f
15917
+ );
15918
+ }
15919
+ };
15920
+
15921
+
15922
+ /**
15923
+ * repeated SportCatalogCategoryItem items = 1;
15924
+ * @return {!Array<!proto.bet.SportCatalogCategoryItem>}
15925
+ */
15926
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.getItemsList = function() {
15927
+ return /** @type{!Array<!proto.bet.SportCatalogCategoryItem>} */ (
15928
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.SportCatalogCategoryItem, 1));
15929
+ };
15930
+
15931
+
15932
+ /**
15933
+ * @param {!Array<!proto.bet.SportCatalogCategoryItem>} value
15934
+ * @return {!proto.bet.SportCatalogCategoryBatchResponse} returns this
15935
+ */
15936
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.setItemsList = function(value) {
15937
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
15938
+ };
15939
+
15940
+
15941
+ /**
15942
+ * @param {!proto.bet.SportCatalogCategoryItem=} opt_value
15943
+ * @param {number=} opt_index
15944
+ * @return {!proto.bet.SportCatalogCategoryItem}
15945
+ */
15946
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.addItems = function(opt_value, opt_index) {
15947
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.SportCatalogCategoryItem, opt_index);
15948
+ };
15949
+
15950
+
15951
+ /**
15952
+ * Clears the list making it empty but non-null.
15953
+ * @return {!proto.bet.SportCatalogCategoryBatchResponse} returns this
15954
+ */
15955
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.clearItemsList = function() {
15956
+ return this.setItemsList([]);
15957
+ };
15958
+
15959
+
15960
+ /**
15961
+ * optional int32 next_after_id = 2;
15962
+ * @return {number}
15963
+ */
15964
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.getNextAfterId = function() {
15965
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15966
+ };
15967
+
15968
+
15969
+ /**
15970
+ * @param {number} value
15971
+ * @return {!proto.bet.SportCatalogCategoryBatchResponse} returns this
15972
+ */
15973
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.setNextAfterId = function(value) {
15974
+ return jspb.Message.setProto3IntField(this, 2, value);
15975
+ };
15976
+
15977
+
15978
+ /**
15979
+ * optional bool has_more = 3;
15980
+ * @return {boolean}
15981
+ */
15982
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.getHasMore = function() {
15983
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
15984
+ };
15985
+
15986
+
15987
+ /**
15988
+ * @param {boolean} value
15989
+ * @return {!proto.bet.SportCatalogCategoryBatchResponse} returns this
15990
+ */
15991
+ proto.bet.SportCatalogCategoryBatchResponse.prototype.setHasMore = function(value) {
15992
+ return jspb.Message.setProto3BooleanField(this, 3, value);
15993
+ };
15994
+
15995
+
15996
+
15997
+ /**
15998
+ * List of repeated fields within this message type.
15999
+ * @private {!Array<number>}
16000
+ * @const
16001
+ */
16002
+ proto.bet.SportCatalogTournamentBatchResponse.repeatedFields_ = [1];
16003
+
16004
+
16005
+
16006
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16007
+ /**
16008
+ * Creates an object representation of this proto.
16009
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16010
+ * Optional fields that are not set will be set to undefined.
16011
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16012
+ * For the list of reserved names please see:
16013
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16014
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16015
+ * JSPB instance for transitional soy proto support:
16016
+ * http://goto/soy-param-migration
16017
+ * @return {!Object}
16018
+ */
16019
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.toObject = function(opt_includeInstance) {
16020
+ return proto.bet.SportCatalogTournamentBatchResponse.toObject(opt_includeInstance, this);
16021
+ };
16022
+
16023
+
16024
+ /**
16025
+ * Static version of the {@see toObject} method.
16026
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16027
+ * the JSPB instance for transitional soy proto support:
16028
+ * http://goto/soy-param-migration
16029
+ * @param {!proto.bet.SportCatalogTournamentBatchResponse} msg The msg instance to transform.
16030
+ * @return {!Object}
16031
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16032
+ */
16033
+ proto.bet.SportCatalogTournamentBatchResponse.toObject = function(includeInstance, msg) {
16034
+ var f, obj = {
16035
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
16036
+ proto.bet.SportCatalogTournamentItem.toObject, includeInstance),
16037
+ nextAfterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
16038
+ hasMore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
16039
+ };
16040
+
16041
+ if (includeInstance) {
16042
+ obj.$jspbMessageInstance = msg;
16043
+ }
16044
+ return obj;
16045
+ };
16046
+ }
16047
+
16048
+
16049
+ /**
16050
+ * Deserializes binary data (in protobuf wire format).
16051
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16052
+ * @return {!proto.bet.SportCatalogTournamentBatchResponse}
16053
+ */
16054
+ proto.bet.SportCatalogTournamentBatchResponse.deserializeBinary = function(bytes) {
16055
+ var reader = new jspb.BinaryReader(bytes);
16056
+ var msg = new proto.bet.SportCatalogTournamentBatchResponse;
16057
+ return proto.bet.SportCatalogTournamentBatchResponse.deserializeBinaryFromReader(msg, reader);
16058
+ };
16059
+
16060
+
16061
+ /**
16062
+ * Deserializes binary data (in protobuf wire format) from the
16063
+ * given reader into the given message object.
16064
+ * @param {!proto.bet.SportCatalogTournamentBatchResponse} msg The message object to deserialize into.
16065
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16066
+ * @return {!proto.bet.SportCatalogTournamentBatchResponse}
16067
+ */
16068
+ proto.bet.SportCatalogTournamentBatchResponse.deserializeBinaryFromReader = function(msg, reader) {
16069
+ while (reader.nextField()) {
16070
+ if (reader.isEndGroup()) {
16071
+ break;
16072
+ }
16073
+ var field = reader.getFieldNumber();
16074
+ switch (field) {
16075
+ case 1:
16076
+ var value = new proto.bet.SportCatalogTournamentItem;
16077
+ reader.readMessage(value,proto.bet.SportCatalogTournamentItem.deserializeBinaryFromReader);
16078
+ msg.addItems(value);
16079
+ break;
16080
+ case 2:
16081
+ var value = /** @type {number} */ (reader.readInt32());
16082
+ msg.setNextAfterId(value);
16083
+ break;
16084
+ case 3:
16085
+ var value = /** @type {boolean} */ (reader.readBool());
16086
+ msg.setHasMore(value);
16087
+ break;
16088
+ default:
16089
+ reader.skipField();
16090
+ break;
16091
+ }
16092
+ }
16093
+ return msg;
16094
+ };
16095
+
16096
+
16097
+ /**
16098
+ * Serializes the message to binary data (in protobuf wire format).
16099
+ * @return {!Uint8Array}
16100
+ */
16101
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.serializeBinary = function() {
16102
+ var writer = new jspb.BinaryWriter();
16103
+ proto.bet.SportCatalogTournamentBatchResponse.serializeBinaryToWriter(this, writer);
16104
+ return writer.getResultBuffer();
16105
+ };
16106
+
16107
+
16108
+ /**
16109
+ * Serializes the given message to binary data (in protobuf wire
16110
+ * format), writing to the given BinaryWriter.
16111
+ * @param {!proto.bet.SportCatalogTournamentBatchResponse} message
16112
+ * @param {!jspb.BinaryWriter} writer
16113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16114
+ */
16115
+ proto.bet.SportCatalogTournamentBatchResponse.serializeBinaryToWriter = function(message, writer) {
16116
+ var f = undefined;
16117
+ f = message.getItemsList();
16118
+ if (f.length > 0) {
16119
+ writer.writeRepeatedMessage(
16120
+ 1,
16121
+ f,
16122
+ proto.bet.SportCatalogTournamentItem.serializeBinaryToWriter
16123
+ );
16124
+ }
16125
+ f = message.getNextAfterId();
16126
+ if (f !== 0) {
16127
+ writer.writeInt32(
16128
+ 2,
16129
+ f
16130
+ );
16131
+ }
16132
+ f = message.getHasMore();
16133
+ if (f) {
16134
+ writer.writeBool(
16135
+ 3,
16136
+ f
16137
+ );
16138
+ }
16139
+ };
16140
+
16141
+
16142
+ /**
16143
+ * repeated SportCatalogTournamentItem items = 1;
16144
+ * @return {!Array<!proto.bet.SportCatalogTournamentItem>}
16145
+ */
16146
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.getItemsList = function() {
16147
+ return /** @type{!Array<!proto.bet.SportCatalogTournamentItem>} */ (
16148
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.SportCatalogTournamentItem, 1));
16149
+ };
16150
+
16151
+
16152
+ /**
16153
+ * @param {!Array<!proto.bet.SportCatalogTournamentItem>} value
16154
+ * @return {!proto.bet.SportCatalogTournamentBatchResponse} returns this
16155
+ */
16156
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.setItemsList = function(value) {
16157
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
16158
+ };
16159
+
16160
+
16161
+ /**
16162
+ * @param {!proto.bet.SportCatalogTournamentItem=} opt_value
16163
+ * @param {number=} opt_index
16164
+ * @return {!proto.bet.SportCatalogTournamentItem}
16165
+ */
16166
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.addItems = function(opt_value, opt_index) {
16167
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.SportCatalogTournamentItem, opt_index);
16168
+ };
16169
+
16170
+
16171
+ /**
16172
+ * Clears the list making it empty but non-null.
16173
+ * @return {!proto.bet.SportCatalogTournamentBatchResponse} returns this
16174
+ */
16175
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.clearItemsList = function() {
16176
+ return this.setItemsList([]);
16177
+ };
16178
+
16179
+
16180
+ /**
16181
+ * optional int32 next_after_id = 2;
16182
+ * @return {number}
16183
+ */
16184
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.getNextAfterId = function() {
16185
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
16186
+ };
16187
+
16188
+
16189
+ /**
16190
+ * @param {number} value
16191
+ * @return {!proto.bet.SportCatalogTournamentBatchResponse} returns this
16192
+ */
16193
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.setNextAfterId = function(value) {
16194
+ return jspb.Message.setProto3IntField(this, 2, value);
16195
+ };
16196
+
16197
+
16198
+ /**
16199
+ * optional bool has_more = 3;
16200
+ * @return {boolean}
16201
+ */
16202
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.getHasMore = function() {
16203
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
16204
+ };
16205
+
16206
+
16207
+ /**
16208
+ * @param {boolean} value
16209
+ * @return {!proto.bet.SportCatalogTournamentBatchResponse} returns this
16210
+ */
16211
+ proto.bet.SportCatalogTournamentBatchResponse.prototype.setHasMore = function(value) {
16212
+ return jspb.Message.setProto3BooleanField(this, 3, value);
16213
+ };
16214
+
16215
+
16216
+
16217
+ /**
16218
+ * List of repeated fields within this message type.
16219
+ * @private {!Array<number>}
16220
+ * @const
16221
+ */
16222
+ proto.bet.SportCatalogEventBatchResponse.repeatedFields_ = [1];
16223
+
16224
+
16225
+
16226
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16227
+ /**
16228
+ * Creates an object representation of this proto.
16229
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16230
+ * Optional fields that are not set will be set to undefined.
16231
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16232
+ * For the list of reserved names please see:
16233
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16234
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16235
+ * JSPB instance for transitional soy proto support:
16236
+ * http://goto/soy-param-migration
16237
+ * @return {!Object}
16238
+ */
16239
+ proto.bet.SportCatalogEventBatchResponse.prototype.toObject = function(opt_includeInstance) {
16240
+ return proto.bet.SportCatalogEventBatchResponse.toObject(opt_includeInstance, this);
16241
+ };
16242
+
16243
+
16244
+ /**
16245
+ * Static version of the {@see toObject} method.
16246
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16247
+ * the JSPB instance for transitional soy proto support:
16248
+ * http://goto/soy-param-migration
16249
+ * @param {!proto.bet.SportCatalogEventBatchResponse} msg The msg instance to transform.
16250
+ * @return {!Object}
16251
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16252
+ */
16253
+ proto.bet.SportCatalogEventBatchResponse.toObject = function(includeInstance, msg) {
16254
+ var f, obj = {
16255
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
16256
+ proto.bet.SportCatalogEventItem.toObject, includeInstance),
16257
+ nextAfterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
16258
+ hasMore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
16259
+ };
16260
+
16261
+ if (includeInstance) {
16262
+ obj.$jspbMessageInstance = msg;
16263
+ }
16264
+ return obj;
16265
+ };
16266
+ }
16267
+
16268
+
16269
+ /**
16270
+ * Deserializes binary data (in protobuf wire format).
16271
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16272
+ * @return {!proto.bet.SportCatalogEventBatchResponse}
16273
+ */
16274
+ proto.bet.SportCatalogEventBatchResponse.deserializeBinary = function(bytes) {
16275
+ var reader = new jspb.BinaryReader(bytes);
16276
+ var msg = new proto.bet.SportCatalogEventBatchResponse;
16277
+ return proto.bet.SportCatalogEventBatchResponse.deserializeBinaryFromReader(msg, reader);
16278
+ };
16279
+
16280
+
16281
+ /**
16282
+ * Deserializes binary data (in protobuf wire format) from the
16283
+ * given reader into the given message object.
16284
+ * @param {!proto.bet.SportCatalogEventBatchResponse} msg The message object to deserialize into.
16285
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16286
+ * @return {!proto.bet.SportCatalogEventBatchResponse}
16287
+ */
16288
+ proto.bet.SportCatalogEventBatchResponse.deserializeBinaryFromReader = function(msg, reader) {
16289
+ while (reader.nextField()) {
16290
+ if (reader.isEndGroup()) {
16291
+ break;
16292
+ }
16293
+ var field = reader.getFieldNumber();
16294
+ switch (field) {
16295
+ case 1:
16296
+ var value = new proto.bet.SportCatalogEventItem;
16297
+ reader.readMessage(value,proto.bet.SportCatalogEventItem.deserializeBinaryFromReader);
16298
+ msg.addItems(value);
16299
+ break;
16300
+ case 2:
16301
+ var value = /** @type {number} */ (reader.readInt32());
16302
+ msg.setNextAfterId(value);
16303
+ break;
16304
+ case 3:
16305
+ var value = /** @type {boolean} */ (reader.readBool());
16306
+ msg.setHasMore(value);
16307
+ break;
16308
+ default:
16309
+ reader.skipField();
16310
+ break;
16311
+ }
16312
+ }
16313
+ return msg;
16314
+ };
16315
+
16316
+
16317
+ /**
16318
+ * Serializes the message to binary data (in protobuf wire format).
16319
+ * @return {!Uint8Array}
16320
+ */
16321
+ proto.bet.SportCatalogEventBatchResponse.prototype.serializeBinary = function() {
16322
+ var writer = new jspb.BinaryWriter();
16323
+ proto.bet.SportCatalogEventBatchResponse.serializeBinaryToWriter(this, writer);
16324
+ return writer.getResultBuffer();
16325
+ };
16326
+
16327
+
16328
+ /**
16329
+ * Serializes the given message to binary data (in protobuf wire
16330
+ * format), writing to the given BinaryWriter.
16331
+ * @param {!proto.bet.SportCatalogEventBatchResponse} message
16332
+ * @param {!jspb.BinaryWriter} writer
16333
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16334
+ */
16335
+ proto.bet.SportCatalogEventBatchResponse.serializeBinaryToWriter = function(message, writer) {
16336
+ var f = undefined;
16337
+ f = message.getItemsList();
16338
+ if (f.length > 0) {
16339
+ writer.writeRepeatedMessage(
16340
+ 1,
16341
+ f,
16342
+ proto.bet.SportCatalogEventItem.serializeBinaryToWriter
16343
+ );
16344
+ }
16345
+ f = message.getNextAfterId();
16346
+ if (f !== 0) {
16347
+ writer.writeInt32(
16348
+ 2,
16349
+ f
16350
+ );
16351
+ }
16352
+ f = message.getHasMore();
16353
+ if (f) {
16354
+ writer.writeBool(
16355
+ 3,
16356
+ f
16357
+ );
16358
+ }
16359
+ };
16360
+
16361
+
16362
+ /**
16363
+ * repeated SportCatalogEventItem items = 1;
16364
+ * @return {!Array<!proto.bet.SportCatalogEventItem>}
16365
+ */
16366
+ proto.bet.SportCatalogEventBatchResponse.prototype.getItemsList = function() {
16367
+ return /** @type{!Array<!proto.bet.SportCatalogEventItem>} */ (
16368
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.SportCatalogEventItem, 1));
16369
+ };
16370
+
16371
+
16372
+ /**
16373
+ * @param {!Array<!proto.bet.SportCatalogEventItem>} value
16374
+ * @return {!proto.bet.SportCatalogEventBatchResponse} returns this
16375
+ */
16376
+ proto.bet.SportCatalogEventBatchResponse.prototype.setItemsList = function(value) {
16377
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
16378
+ };
16379
+
16380
+
16381
+ /**
16382
+ * @param {!proto.bet.SportCatalogEventItem=} opt_value
16383
+ * @param {number=} opt_index
16384
+ * @return {!proto.bet.SportCatalogEventItem}
16385
+ */
16386
+ proto.bet.SportCatalogEventBatchResponse.prototype.addItems = function(opt_value, opt_index) {
16387
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.SportCatalogEventItem, opt_index);
16388
+ };
16389
+
16390
+
16391
+ /**
16392
+ * Clears the list making it empty but non-null.
16393
+ * @return {!proto.bet.SportCatalogEventBatchResponse} returns this
16394
+ */
16395
+ proto.bet.SportCatalogEventBatchResponse.prototype.clearItemsList = function() {
16396
+ return this.setItemsList([]);
16397
+ };
16398
+
16399
+
16400
+ /**
16401
+ * optional int32 next_after_id = 2;
16402
+ * @return {number}
16403
+ */
16404
+ proto.bet.SportCatalogEventBatchResponse.prototype.getNextAfterId = function() {
16405
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
16406
+ };
16407
+
16408
+
16409
+ /**
16410
+ * @param {number} value
16411
+ * @return {!proto.bet.SportCatalogEventBatchResponse} returns this
16412
+ */
16413
+ proto.bet.SportCatalogEventBatchResponse.prototype.setNextAfterId = function(value) {
16414
+ return jspb.Message.setProto3IntField(this, 2, value);
16415
+ };
16416
+
16417
+
16418
+ /**
16419
+ * optional bool has_more = 3;
16420
+ * @return {boolean}
16421
+ */
16422
+ proto.bet.SportCatalogEventBatchResponse.prototype.getHasMore = function() {
16423
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
16424
+ };
16425
+
16426
+
16427
+ /**
16428
+ * @param {boolean} value
16429
+ * @return {!proto.bet.SportCatalogEventBatchResponse} returns this
16430
+ */
16431
+ proto.bet.SportCatalogEventBatchResponse.prototype.setHasMore = function(value) {
16432
+ return jspb.Message.setProto3BooleanField(this, 3, value);
16433
+ };
16434
+
16435
+
13962
16436
  goog.object.extend(exports, proto.bet);