protobuf-platform 1.2.131 → 1.2.134

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/sport/sport_pb.js CHANGED
@@ -26,6 +26,12 @@ goog.exportSymbol('proto.sport.LaunchBetbyResponse', null, global);
26
26
  goog.exportSymbol('proto.sport.PaginationRequest', null, global);
27
27
  goog.exportSymbol('proto.sport.PingRequest', null, global);
28
28
  goog.exportSymbol('proto.sport.PongResponse', null, global);
29
+ goog.exportSymbol('proto.sport.SportCategoriesIds', null, global);
30
+ goog.exportSymbol('proto.sport.SportCategoriesResponse', null, global);
31
+ goog.exportSymbol('proto.sport.SportCategoryItem', null, global);
32
+ goog.exportSymbol('proto.sport.SportTypeItem', null, global);
33
+ goog.exportSymbol('proto.sport.SportTypesIds', null, global);
34
+ goog.exportSymbol('proto.sport.SportTypesResponse', null, global);
29
35
  goog.exportSymbol('proto.sport.VendorActionRequest', null, global);
30
36
  goog.exportSymbol('proto.sport.VendorActionResponse', null, global);
31
37
  goog.exportSymbol('proto.sport.selfValidationBetbyRequest', null, global);
@@ -219,6 +225,132 @@ if (goog.DEBUG && !COMPILED) {
219
225
  */
220
226
  proto.sport.selfValidationBetbyResponse.displayName = 'proto.sport.selfValidationBetbyResponse';
221
227
  }
228
+ /**
229
+ * Generated by JsPbCodeGenerator.
230
+ * @param {Array=} opt_data Optional initial data array, typically from a
231
+ * server response, or constructed directly in Javascript. The array is used
232
+ * in place and becomes part of the constructed object. It is not cloned.
233
+ * If no data is provided, the constructed object will be empty, but still
234
+ * valid.
235
+ * @extends {jspb.Message}
236
+ * @constructor
237
+ */
238
+ proto.sport.SportCategoryItem = function(opt_data) {
239
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
240
+ };
241
+ goog.inherits(proto.sport.SportCategoryItem, jspb.Message);
242
+ if (goog.DEBUG && !COMPILED) {
243
+ /**
244
+ * @public
245
+ * @override
246
+ */
247
+ proto.sport.SportCategoryItem.displayName = 'proto.sport.SportCategoryItem';
248
+ }
249
+ /**
250
+ * Generated by JsPbCodeGenerator.
251
+ * @param {Array=} opt_data Optional initial data array, typically from a
252
+ * server response, or constructed directly in Javascript. The array is used
253
+ * in place and becomes part of the constructed object. It is not cloned.
254
+ * If no data is provided, the constructed object will be empty, but still
255
+ * valid.
256
+ * @extends {jspb.Message}
257
+ * @constructor
258
+ */
259
+ proto.sport.SportCategoriesIds = function(opt_data) {
260
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sport.SportCategoriesIds.repeatedFields_, null);
261
+ };
262
+ goog.inherits(proto.sport.SportCategoriesIds, jspb.Message);
263
+ if (goog.DEBUG && !COMPILED) {
264
+ /**
265
+ * @public
266
+ * @override
267
+ */
268
+ proto.sport.SportCategoriesIds.displayName = 'proto.sport.SportCategoriesIds';
269
+ }
270
+ /**
271
+ * Generated by JsPbCodeGenerator.
272
+ * @param {Array=} opt_data Optional initial data array, typically from a
273
+ * server response, or constructed directly in Javascript. The array is used
274
+ * in place and becomes part of the constructed object. It is not cloned.
275
+ * If no data is provided, the constructed object will be empty, but still
276
+ * valid.
277
+ * @extends {jspb.Message}
278
+ * @constructor
279
+ */
280
+ proto.sport.SportCategoriesResponse = function(opt_data) {
281
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sport.SportCategoriesResponse.repeatedFields_, null);
282
+ };
283
+ goog.inherits(proto.sport.SportCategoriesResponse, jspb.Message);
284
+ if (goog.DEBUG && !COMPILED) {
285
+ /**
286
+ * @public
287
+ * @override
288
+ */
289
+ proto.sport.SportCategoriesResponse.displayName = 'proto.sport.SportCategoriesResponse';
290
+ }
291
+ /**
292
+ * Generated by JsPbCodeGenerator.
293
+ * @param {Array=} opt_data Optional initial data array, typically from a
294
+ * server response, or constructed directly in Javascript. The array is used
295
+ * in place and becomes part of the constructed object. It is not cloned.
296
+ * If no data is provided, the constructed object will be empty, but still
297
+ * valid.
298
+ * @extends {jspb.Message}
299
+ * @constructor
300
+ */
301
+ proto.sport.SportTypeItem = function(opt_data) {
302
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
303
+ };
304
+ goog.inherits(proto.sport.SportTypeItem, jspb.Message);
305
+ if (goog.DEBUG && !COMPILED) {
306
+ /**
307
+ * @public
308
+ * @override
309
+ */
310
+ proto.sport.SportTypeItem.displayName = 'proto.sport.SportTypeItem';
311
+ }
312
+ /**
313
+ * Generated by JsPbCodeGenerator.
314
+ * @param {Array=} opt_data Optional initial data array, typically from a
315
+ * server response, or constructed directly in Javascript. The array is used
316
+ * in place and becomes part of the constructed object. It is not cloned.
317
+ * If no data is provided, the constructed object will be empty, but still
318
+ * valid.
319
+ * @extends {jspb.Message}
320
+ * @constructor
321
+ */
322
+ proto.sport.SportTypesIds = function(opt_data) {
323
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sport.SportTypesIds.repeatedFields_, null);
324
+ };
325
+ goog.inherits(proto.sport.SportTypesIds, jspb.Message);
326
+ if (goog.DEBUG && !COMPILED) {
327
+ /**
328
+ * @public
329
+ * @override
330
+ */
331
+ proto.sport.SportTypesIds.displayName = 'proto.sport.SportTypesIds';
332
+ }
333
+ /**
334
+ * Generated by JsPbCodeGenerator.
335
+ * @param {Array=} opt_data Optional initial data array, typically from a
336
+ * server response, or constructed directly in Javascript. The array is used
337
+ * in place and becomes part of the constructed object. It is not cloned.
338
+ * If no data is provided, the constructed object will be empty, but still
339
+ * valid.
340
+ * @extends {jspb.Message}
341
+ * @constructor
342
+ */
343
+ proto.sport.SportTypesResponse = function(opt_data) {
344
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sport.SportTypesResponse.repeatedFields_, null);
345
+ };
346
+ goog.inherits(proto.sport.SportTypesResponse, jspb.Message);
347
+ if (goog.DEBUG && !COMPILED) {
348
+ /**
349
+ * @public
350
+ * @override
351
+ */
352
+ proto.sport.SportTypesResponse.displayName = 'proto.sport.SportTypesResponse';
353
+ }
222
354
 
223
355
 
224
356
 
@@ -2175,4 +2307,1152 @@ proto.sport.selfValidationBetbyResponse.prototype.setResult = function(value) {
2175
2307
  };
2176
2308
 
2177
2309
 
2310
+
2311
+
2312
+
2313
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2314
+ /**
2315
+ * Creates an object representation of this proto.
2316
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2317
+ * Optional fields that are not set will be set to undefined.
2318
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2319
+ * For the list of reserved names please see:
2320
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2321
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2322
+ * JSPB instance for transitional soy proto support:
2323
+ * http://goto/soy-param-migration
2324
+ * @return {!Object}
2325
+ */
2326
+ proto.sport.SportCategoryItem.prototype.toObject = function(opt_includeInstance) {
2327
+ return proto.sport.SportCategoryItem.toObject(opt_includeInstance, this);
2328
+ };
2329
+
2330
+
2331
+ /**
2332
+ * Static version of the {@see toObject} method.
2333
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2334
+ * the JSPB instance for transitional soy proto support:
2335
+ * http://goto/soy-param-migration
2336
+ * @param {!proto.sport.SportCategoryItem} msg The msg instance to transform.
2337
+ * @return {!Object}
2338
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2339
+ */
2340
+ proto.sport.SportCategoryItem.toObject = function(includeInstance, msg) {
2341
+ var f, obj = {
2342
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2343
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
2344
+ group: jspb.Message.getFieldWithDefault(msg, 3, ""),
2345
+ isLiveSupported: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2346
+ };
2347
+
2348
+ if (includeInstance) {
2349
+ obj.$jspbMessageInstance = msg;
2350
+ }
2351
+ return obj;
2352
+ };
2353
+ }
2354
+
2355
+
2356
+ /**
2357
+ * Deserializes binary data (in protobuf wire format).
2358
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2359
+ * @return {!proto.sport.SportCategoryItem}
2360
+ */
2361
+ proto.sport.SportCategoryItem.deserializeBinary = function(bytes) {
2362
+ var reader = new jspb.BinaryReader(bytes);
2363
+ var msg = new proto.sport.SportCategoryItem;
2364
+ return proto.sport.SportCategoryItem.deserializeBinaryFromReader(msg, reader);
2365
+ };
2366
+
2367
+
2368
+ /**
2369
+ * Deserializes binary data (in protobuf wire format) from the
2370
+ * given reader into the given message object.
2371
+ * @param {!proto.sport.SportCategoryItem} msg The message object to deserialize into.
2372
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2373
+ * @return {!proto.sport.SportCategoryItem}
2374
+ */
2375
+ proto.sport.SportCategoryItem.deserializeBinaryFromReader = function(msg, reader) {
2376
+ while (reader.nextField()) {
2377
+ if (reader.isEndGroup()) {
2378
+ break;
2379
+ }
2380
+ var field = reader.getFieldNumber();
2381
+ switch (field) {
2382
+ case 1:
2383
+ var value = /** @type {number} */ (reader.readInt32());
2384
+ msg.setId(value);
2385
+ break;
2386
+ case 2:
2387
+ var value = /** @type {string} */ (reader.readString());
2388
+ msg.setTitle(value);
2389
+ break;
2390
+ case 3:
2391
+ var value = /** @type {string} */ (reader.readString());
2392
+ msg.setGroup(value);
2393
+ break;
2394
+ case 4:
2395
+ var value = /** @type {boolean} */ (reader.readBool());
2396
+ msg.setIsLiveSupported(value);
2397
+ break;
2398
+ default:
2399
+ reader.skipField();
2400
+ break;
2401
+ }
2402
+ }
2403
+ return msg;
2404
+ };
2405
+
2406
+
2407
+ /**
2408
+ * Serializes the message to binary data (in protobuf wire format).
2409
+ * @return {!Uint8Array}
2410
+ */
2411
+ proto.sport.SportCategoryItem.prototype.serializeBinary = function() {
2412
+ var writer = new jspb.BinaryWriter();
2413
+ proto.sport.SportCategoryItem.serializeBinaryToWriter(this, writer);
2414
+ return writer.getResultBuffer();
2415
+ };
2416
+
2417
+
2418
+ /**
2419
+ * Serializes the given message to binary data (in protobuf wire
2420
+ * format), writing to the given BinaryWriter.
2421
+ * @param {!proto.sport.SportCategoryItem} message
2422
+ * @param {!jspb.BinaryWriter} writer
2423
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2424
+ */
2425
+ proto.sport.SportCategoryItem.serializeBinaryToWriter = function(message, writer) {
2426
+ var f = undefined;
2427
+ f = message.getId();
2428
+ if (f !== 0) {
2429
+ writer.writeInt32(
2430
+ 1,
2431
+ f
2432
+ );
2433
+ }
2434
+ f = message.getTitle();
2435
+ if (f.length > 0) {
2436
+ writer.writeString(
2437
+ 2,
2438
+ f
2439
+ );
2440
+ }
2441
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2442
+ if (f != null) {
2443
+ writer.writeString(
2444
+ 3,
2445
+ f
2446
+ );
2447
+ }
2448
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
2449
+ if (f != null) {
2450
+ writer.writeBool(
2451
+ 4,
2452
+ f
2453
+ );
2454
+ }
2455
+ };
2456
+
2457
+
2458
+ /**
2459
+ * optional int32 id = 1;
2460
+ * @return {number}
2461
+ */
2462
+ proto.sport.SportCategoryItem.prototype.getId = function() {
2463
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2464
+ };
2465
+
2466
+
2467
+ /**
2468
+ * @param {number} value
2469
+ * @return {!proto.sport.SportCategoryItem} returns this
2470
+ */
2471
+ proto.sport.SportCategoryItem.prototype.setId = function(value) {
2472
+ return jspb.Message.setProto3IntField(this, 1, value);
2473
+ };
2474
+
2475
+
2476
+ /**
2477
+ * optional string title = 2;
2478
+ * @return {string}
2479
+ */
2480
+ proto.sport.SportCategoryItem.prototype.getTitle = function() {
2481
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2482
+ };
2483
+
2484
+
2485
+ /**
2486
+ * @param {string} value
2487
+ * @return {!proto.sport.SportCategoryItem} returns this
2488
+ */
2489
+ proto.sport.SportCategoryItem.prototype.setTitle = function(value) {
2490
+ return jspb.Message.setProto3StringField(this, 2, value);
2491
+ };
2492
+
2493
+
2494
+ /**
2495
+ * optional string group = 3;
2496
+ * @return {string}
2497
+ */
2498
+ proto.sport.SportCategoryItem.prototype.getGroup = function() {
2499
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2500
+ };
2501
+
2502
+
2503
+ /**
2504
+ * @param {string} value
2505
+ * @return {!proto.sport.SportCategoryItem} returns this
2506
+ */
2507
+ proto.sport.SportCategoryItem.prototype.setGroup = function(value) {
2508
+ return jspb.Message.setField(this, 3, value);
2509
+ };
2510
+
2511
+
2512
+ /**
2513
+ * Clears the field making it undefined.
2514
+ * @return {!proto.sport.SportCategoryItem} returns this
2515
+ */
2516
+ proto.sport.SportCategoryItem.prototype.clearGroup = function() {
2517
+ return jspb.Message.setField(this, 3, undefined);
2518
+ };
2519
+
2520
+
2521
+ /**
2522
+ * Returns whether this field is set.
2523
+ * @return {boolean}
2524
+ */
2525
+ proto.sport.SportCategoryItem.prototype.hasGroup = function() {
2526
+ return jspb.Message.getField(this, 3) != null;
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * optional bool is_live_supported = 4;
2532
+ * @return {boolean}
2533
+ */
2534
+ proto.sport.SportCategoryItem.prototype.getIsLiveSupported = function() {
2535
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2536
+ };
2537
+
2538
+
2539
+ /**
2540
+ * @param {boolean} value
2541
+ * @return {!proto.sport.SportCategoryItem} returns this
2542
+ */
2543
+ proto.sport.SportCategoryItem.prototype.setIsLiveSupported = function(value) {
2544
+ return jspb.Message.setField(this, 4, value);
2545
+ };
2546
+
2547
+
2548
+ /**
2549
+ * Clears the field making it undefined.
2550
+ * @return {!proto.sport.SportCategoryItem} returns this
2551
+ */
2552
+ proto.sport.SportCategoryItem.prototype.clearIsLiveSupported = function() {
2553
+ return jspb.Message.setField(this, 4, undefined);
2554
+ };
2555
+
2556
+
2557
+ /**
2558
+ * Returns whether this field is set.
2559
+ * @return {boolean}
2560
+ */
2561
+ proto.sport.SportCategoryItem.prototype.hasIsLiveSupported = function() {
2562
+ return jspb.Message.getField(this, 4) != null;
2563
+ };
2564
+
2565
+
2566
+
2567
+ /**
2568
+ * List of repeated fields within this message type.
2569
+ * @private {!Array<number>}
2570
+ * @const
2571
+ */
2572
+ proto.sport.SportCategoriesIds.repeatedFields_ = [1];
2573
+
2574
+
2575
+
2576
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2577
+ /**
2578
+ * Creates an object representation of this proto.
2579
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2580
+ * Optional fields that are not set will be set to undefined.
2581
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2582
+ * For the list of reserved names please see:
2583
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2584
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2585
+ * JSPB instance for transitional soy proto support:
2586
+ * http://goto/soy-param-migration
2587
+ * @return {!Object}
2588
+ */
2589
+ proto.sport.SportCategoriesIds.prototype.toObject = function(opt_includeInstance) {
2590
+ return proto.sport.SportCategoriesIds.toObject(opt_includeInstance, this);
2591
+ };
2592
+
2593
+
2594
+ /**
2595
+ * Static version of the {@see toObject} method.
2596
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2597
+ * the JSPB instance for transitional soy proto support:
2598
+ * http://goto/soy-param-migration
2599
+ * @param {!proto.sport.SportCategoriesIds} msg The msg instance to transform.
2600
+ * @return {!Object}
2601
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2602
+ */
2603
+ proto.sport.SportCategoriesIds.toObject = function(includeInstance, msg) {
2604
+ var f, obj = {
2605
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2606
+ };
2607
+
2608
+ if (includeInstance) {
2609
+ obj.$jspbMessageInstance = msg;
2610
+ }
2611
+ return obj;
2612
+ };
2613
+ }
2614
+
2615
+
2616
+ /**
2617
+ * Deserializes binary data (in protobuf wire format).
2618
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2619
+ * @return {!proto.sport.SportCategoriesIds}
2620
+ */
2621
+ proto.sport.SportCategoriesIds.deserializeBinary = function(bytes) {
2622
+ var reader = new jspb.BinaryReader(bytes);
2623
+ var msg = new proto.sport.SportCategoriesIds;
2624
+ return proto.sport.SportCategoriesIds.deserializeBinaryFromReader(msg, reader);
2625
+ };
2626
+
2627
+
2628
+ /**
2629
+ * Deserializes binary data (in protobuf wire format) from the
2630
+ * given reader into the given message object.
2631
+ * @param {!proto.sport.SportCategoriesIds} msg The message object to deserialize into.
2632
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2633
+ * @return {!proto.sport.SportCategoriesIds}
2634
+ */
2635
+ proto.sport.SportCategoriesIds.deserializeBinaryFromReader = function(msg, reader) {
2636
+ while (reader.nextField()) {
2637
+ if (reader.isEndGroup()) {
2638
+ break;
2639
+ }
2640
+ var field = reader.getFieldNumber();
2641
+ switch (field) {
2642
+ case 1:
2643
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
2644
+ for (var i = 0; i < values.length; i++) {
2645
+ msg.addIds(values[i]);
2646
+ }
2647
+ break;
2648
+ default:
2649
+ reader.skipField();
2650
+ break;
2651
+ }
2652
+ }
2653
+ return msg;
2654
+ };
2655
+
2656
+
2657
+ /**
2658
+ * Serializes the message to binary data (in protobuf wire format).
2659
+ * @return {!Uint8Array}
2660
+ */
2661
+ proto.sport.SportCategoriesIds.prototype.serializeBinary = function() {
2662
+ var writer = new jspb.BinaryWriter();
2663
+ proto.sport.SportCategoriesIds.serializeBinaryToWriter(this, writer);
2664
+ return writer.getResultBuffer();
2665
+ };
2666
+
2667
+
2668
+ /**
2669
+ * Serializes the given message to binary data (in protobuf wire
2670
+ * format), writing to the given BinaryWriter.
2671
+ * @param {!proto.sport.SportCategoriesIds} message
2672
+ * @param {!jspb.BinaryWriter} writer
2673
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2674
+ */
2675
+ proto.sport.SportCategoriesIds.serializeBinaryToWriter = function(message, writer) {
2676
+ var f = undefined;
2677
+ f = message.getIdsList();
2678
+ if (f.length > 0) {
2679
+ writer.writePackedInt32(
2680
+ 1,
2681
+ f
2682
+ );
2683
+ }
2684
+ };
2685
+
2686
+
2687
+ /**
2688
+ * repeated int32 ids = 1;
2689
+ * @return {!Array<number>}
2690
+ */
2691
+ proto.sport.SportCategoriesIds.prototype.getIdsList = function() {
2692
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
2693
+ };
2694
+
2695
+
2696
+ /**
2697
+ * @param {!Array<number>} value
2698
+ * @return {!proto.sport.SportCategoriesIds} returns this
2699
+ */
2700
+ proto.sport.SportCategoriesIds.prototype.setIdsList = function(value) {
2701
+ return jspb.Message.setField(this, 1, value || []);
2702
+ };
2703
+
2704
+
2705
+ /**
2706
+ * @param {number} value
2707
+ * @param {number=} opt_index
2708
+ * @return {!proto.sport.SportCategoriesIds} returns this
2709
+ */
2710
+ proto.sport.SportCategoriesIds.prototype.addIds = function(value, opt_index) {
2711
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2712
+ };
2713
+
2714
+
2715
+ /**
2716
+ * Clears the list making it empty but non-null.
2717
+ * @return {!proto.sport.SportCategoriesIds} returns this
2718
+ */
2719
+ proto.sport.SportCategoriesIds.prototype.clearIdsList = function() {
2720
+ return this.setIdsList([]);
2721
+ };
2722
+
2723
+
2724
+
2725
+ /**
2726
+ * List of repeated fields within this message type.
2727
+ * @private {!Array<number>}
2728
+ * @const
2729
+ */
2730
+ proto.sport.SportCategoriesResponse.repeatedFields_ = [1];
2731
+
2732
+
2733
+
2734
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2735
+ /**
2736
+ * Creates an object representation of this proto.
2737
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2738
+ * Optional fields that are not set will be set to undefined.
2739
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2740
+ * For the list of reserved names please see:
2741
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2742
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2743
+ * JSPB instance for transitional soy proto support:
2744
+ * http://goto/soy-param-migration
2745
+ * @return {!Object}
2746
+ */
2747
+ proto.sport.SportCategoriesResponse.prototype.toObject = function(opt_includeInstance) {
2748
+ return proto.sport.SportCategoriesResponse.toObject(opt_includeInstance, this);
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * Static version of the {@see toObject} method.
2754
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2755
+ * the JSPB instance for transitional soy proto support:
2756
+ * http://goto/soy-param-migration
2757
+ * @param {!proto.sport.SportCategoriesResponse} msg The msg instance to transform.
2758
+ * @return {!Object}
2759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2760
+ */
2761
+ proto.sport.SportCategoriesResponse.toObject = function(includeInstance, msg) {
2762
+ var f, obj = {
2763
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
2764
+ proto.sport.SportCategoryItem.toObject, includeInstance)
2765
+ };
2766
+
2767
+ if (includeInstance) {
2768
+ obj.$jspbMessageInstance = msg;
2769
+ }
2770
+ return obj;
2771
+ };
2772
+ }
2773
+
2774
+
2775
+ /**
2776
+ * Deserializes binary data (in protobuf wire format).
2777
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2778
+ * @return {!proto.sport.SportCategoriesResponse}
2779
+ */
2780
+ proto.sport.SportCategoriesResponse.deserializeBinary = function(bytes) {
2781
+ var reader = new jspb.BinaryReader(bytes);
2782
+ var msg = new proto.sport.SportCategoriesResponse;
2783
+ return proto.sport.SportCategoriesResponse.deserializeBinaryFromReader(msg, reader);
2784
+ };
2785
+
2786
+
2787
+ /**
2788
+ * Deserializes binary data (in protobuf wire format) from the
2789
+ * given reader into the given message object.
2790
+ * @param {!proto.sport.SportCategoriesResponse} msg The message object to deserialize into.
2791
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2792
+ * @return {!proto.sport.SportCategoriesResponse}
2793
+ */
2794
+ proto.sport.SportCategoriesResponse.deserializeBinaryFromReader = function(msg, reader) {
2795
+ while (reader.nextField()) {
2796
+ if (reader.isEndGroup()) {
2797
+ break;
2798
+ }
2799
+ var field = reader.getFieldNumber();
2800
+ switch (field) {
2801
+ case 1:
2802
+ var value = new proto.sport.SportCategoryItem;
2803
+ reader.readMessage(value,proto.sport.SportCategoryItem.deserializeBinaryFromReader);
2804
+ msg.addItems(value);
2805
+ break;
2806
+ default:
2807
+ reader.skipField();
2808
+ break;
2809
+ }
2810
+ }
2811
+ return msg;
2812
+ };
2813
+
2814
+
2815
+ /**
2816
+ * Serializes the message to binary data (in protobuf wire format).
2817
+ * @return {!Uint8Array}
2818
+ */
2819
+ proto.sport.SportCategoriesResponse.prototype.serializeBinary = function() {
2820
+ var writer = new jspb.BinaryWriter();
2821
+ proto.sport.SportCategoriesResponse.serializeBinaryToWriter(this, writer);
2822
+ return writer.getResultBuffer();
2823
+ };
2824
+
2825
+
2826
+ /**
2827
+ * Serializes the given message to binary data (in protobuf wire
2828
+ * format), writing to the given BinaryWriter.
2829
+ * @param {!proto.sport.SportCategoriesResponse} message
2830
+ * @param {!jspb.BinaryWriter} writer
2831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2832
+ */
2833
+ proto.sport.SportCategoriesResponse.serializeBinaryToWriter = function(message, writer) {
2834
+ var f = undefined;
2835
+ f = message.getItemsList();
2836
+ if (f.length > 0) {
2837
+ writer.writeRepeatedMessage(
2838
+ 1,
2839
+ f,
2840
+ proto.sport.SportCategoryItem.serializeBinaryToWriter
2841
+ );
2842
+ }
2843
+ };
2844
+
2845
+
2846
+ /**
2847
+ * repeated SportCategoryItem items = 1;
2848
+ * @return {!Array<!proto.sport.SportCategoryItem>}
2849
+ */
2850
+ proto.sport.SportCategoriesResponse.prototype.getItemsList = function() {
2851
+ return /** @type{!Array<!proto.sport.SportCategoryItem>} */ (
2852
+ jspb.Message.getRepeatedWrapperField(this, proto.sport.SportCategoryItem, 1));
2853
+ };
2854
+
2855
+
2856
+ /**
2857
+ * @param {!Array<!proto.sport.SportCategoryItem>} value
2858
+ * @return {!proto.sport.SportCategoriesResponse} returns this
2859
+ */
2860
+ proto.sport.SportCategoriesResponse.prototype.setItemsList = function(value) {
2861
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2862
+ };
2863
+
2864
+
2865
+ /**
2866
+ * @param {!proto.sport.SportCategoryItem=} opt_value
2867
+ * @param {number=} opt_index
2868
+ * @return {!proto.sport.SportCategoryItem}
2869
+ */
2870
+ proto.sport.SportCategoriesResponse.prototype.addItems = function(opt_value, opt_index) {
2871
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sport.SportCategoryItem, opt_index);
2872
+ };
2873
+
2874
+
2875
+ /**
2876
+ * Clears the list making it empty but non-null.
2877
+ * @return {!proto.sport.SportCategoriesResponse} returns this
2878
+ */
2879
+ proto.sport.SportCategoriesResponse.prototype.clearItemsList = function() {
2880
+ return this.setItemsList([]);
2881
+ };
2882
+
2883
+
2884
+
2885
+
2886
+
2887
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2888
+ /**
2889
+ * Creates an object representation of this proto.
2890
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2891
+ * Optional fields that are not set will be set to undefined.
2892
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2893
+ * For the list of reserved names please see:
2894
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2895
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2896
+ * JSPB instance for transitional soy proto support:
2897
+ * http://goto/soy-param-migration
2898
+ * @return {!Object}
2899
+ */
2900
+ proto.sport.SportTypeItem.prototype.toObject = function(opt_includeInstance) {
2901
+ return proto.sport.SportTypeItem.toObject(opt_includeInstance, this);
2902
+ };
2903
+
2904
+
2905
+ /**
2906
+ * Static version of the {@see toObject} method.
2907
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2908
+ * the JSPB instance for transitional soy proto support:
2909
+ * http://goto/soy-param-migration
2910
+ * @param {!proto.sport.SportTypeItem} msg The msg instance to transform.
2911
+ * @return {!Object}
2912
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2913
+ */
2914
+ proto.sport.SportTypeItem.toObject = function(includeInstance, msg) {
2915
+ var f, obj = {
2916
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2917
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
2918
+ sportCategoryId: jspb.Message.getFieldWithDefault(msg, 3, 0),
2919
+ marketGroup: jspb.Message.getFieldWithDefault(msg, 4, "")
2920
+ };
2921
+
2922
+ if (includeInstance) {
2923
+ obj.$jspbMessageInstance = msg;
2924
+ }
2925
+ return obj;
2926
+ };
2927
+ }
2928
+
2929
+
2930
+ /**
2931
+ * Deserializes binary data (in protobuf wire format).
2932
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2933
+ * @return {!proto.sport.SportTypeItem}
2934
+ */
2935
+ proto.sport.SportTypeItem.deserializeBinary = function(bytes) {
2936
+ var reader = new jspb.BinaryReader(bytes);
2937
+ var msg = new proto.sport.SportTypeItem;
2938
+ return proto.sport.SportTypeItem.deserializeBinaryFromReader(msg, reader);
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * Deserializes binary data (in protobuf wire format) from the
2944
+ * given reader into the given message object.
2945
+ * @param {!proto.sport.SportTypeItem} msg The message object to deserialize into.
2946
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2947
+ * @return {!proto.sport.SportTypeItem}
2948
+ */
2949
+ proto.sport.SportTypeItem.deserializeBinaryFromReader = function(msg, reader) {
2950
+ while (reader.nextField()) {
2951
+ if (reader.isEndGroup()) {
2952
+ break;
2953
+ }
2954
+ var field = reader.getFieldNumber();
2955
+ switch (field) {
2956
+ case 1:
2957
+ var value = /** @type {number} */ (reader.readInt32());
2958
+ msg.setId(value);
2959
+ break;
2960
+ case 2:
2961
+ var value = /** @type {string} */ (reader.readString());
2962
+ msg.setTitle(value);
2963
+ break;
2964
+ case 3:
2965
+ var value = /** @type {number} */ (reader.readInt32());
2966
+ msg.setSportCategoryId(value);
2967
+ break;
2968
+ case 4:
2969
+ var value = /** @type {string} */ (reader.readString());
2970
+ msg.setMarketGroup(value);
2971
+ break;
2972
+ default:
2973
+ reader.skipField();
2974
+ break;
2975
+ }
2976
+ }
2977
+ return msg;
2978
+ };
2979
+
2980
+
2981
+ /**
2982
+ * Serializes the message to binary data (in protobuf wire format).
2983
+ * @return {!Uint8Array}
2984
+ */
2985
+ proto.sport.SportTypeItem.prototype.serializeBinary = function() {
2986
+ var writer = new jspb.BinaryWriter();
2987
+ proto.sport.SportTypeItem.serializeBinaryToWriter(this, writer);
2988
+ return writer.getResultBuffer();
2989
+ };
2990
+
2991
+
2992
+ /**
2993
+ * Serializes the given message to binary data (in protobuf wire
2994
+ * format), writing to the given BinaryWriter.
2995
+ * @param {!proto.sport.SportTypeItem} message
2996
+ * @param {!jspb.BinaryWriter} writer
2997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2998
+ */
2999
+ proto.sport.SportTypeItem.serializeBinaryToWriter = function(message, writer) {
3000
+ var f = undefined;
3001
+ f = message.getId();
3002
+ if (f !== 0) {
3003
+ writer.writeInt32(
3004
+ 1,
3005
+ f
3006
+ );
3007
+ }
3008
+ f = message.getTitle();
3009
+ if (f.length > 0) {
3010
+ writer.writeString(
3011
+ 2,
3012
+ f
3013
+ );
3014
+ }
3015
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
3016
+ if (f != null) {
3017
+ writer.writeInt32(
3018
+ 3,
3019
+ f
3020
+ );
3021
+ }
3022
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3023
+ if (f != null) {
3024
+ writer.writeString(
3025
+ 4,
3026
+ f
3027
+ );
3028
+ }
3029
+ };
3030
+
3031
+
3032
+ /**
3033
+ * optional int32 id = 1;
3034
+ * @return {number}
3035
+ */
3036
+ proto.sport.SportTypeItem.prototype.getId = function() {
3037
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3038
+ };
3039
+
3040
+
3041
+ /**
3042
+ * @param {number} value
3043
+ * @return {!proto.sport.SportTypeItem} returns this
3044
+ */
3045
+ proto.sport.SportTypeItem.prototype.setId = function(value) {
3046
+ return jspb.Message.setProto3IntField(this, 1, value);
3047
+ };
3048
+
3049
+
3050
+ /**
3051
+ * optional string title = 2;
3052
+ * @return {string}
3053
+ */
3054
+ proto.sport.SportTypeItem.prototype.getTitle = function() {
3055
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3056
+ };
3057
+
3058
+
3059
+ /**
3060
+ * @param {string} value
3061
+ * @return {!proto.sport.SportTypeItem} returns this
3062
+ */
3063
+ proto.sport.SportTypeItem.prototype.setTitle = function(value) {
3064
+ return jspb.Message.setProto3StringField(this, 2, value);
3065
+ };
3066
+
3067
+
3068
+ /**
3069
+ * optional int32 sport_category_id = 3;
3070
+ * @return {number}
3071
+ */
3072
+ proto.sport.SportTypeItem.prototype.getSportCategoryId = function() {
3073
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3074
+ };
3075
+
3076
+
3077
+ /**
3078
+ * @param {number} value
3079
+ * @return {!proto.sport.SportTypeItem} returns this
3080
+ */
3081
+ proto.sport.SportTypeItem.prototype.setSportCategoryId = function(value) {
3082
+ return jspb.Message.setField(this, 3, value);
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * Clears the field making it undefined.
3088
+ * @return {!proto.sport.SportTypeItem} returns this
3089
+ */
3090
+ proto.sport.SportTypeItem.prototype.clearSportCategoryId = function() {
3091
+ return jspb.Message.setField(this, 3, undefined);
3092
+ };
3093
+
3094
+
3095
+ /**
3096
+ * Returns whether this field is set.
3097
+ * @return {boolean}
3098
+ */
3099
+ proto.sport.SportTypeItem.prototype.hasSportCategoryId = function() {
3100
+ return jspb.Message.getField(this, 3) != null;
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * optional string market_group = 4;
3106
+ * @return {string}
3107
+ */
3108
+ proto.sport.SportTypeItem.prototype.getMarketGroup = function() {
3109
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3110
+ };
3111
+
3112
+
3113
+ /**
3114
+ * @param {string} value
3115
+ * @return {!proto.sport.SportTypeItem} returns this
3116
+ */
3117
+ proto.sport.SportTypeItem.prototype.setMarketGroup = function(value) {
3118
+ return jspb.Message.setField(this, 4, value);
3119
+ };
3120
+
3121
+
3122
+ /**
3123
+ * Clears the field making it undefined.
3124
+ * @return {!proto.sport.SportTypeItem} returns this
3125
+ */
3126
+ proto.sport.SportTypeItem.prototype.clearMarketGroup = function() {
3127
+ return jspb.Message.setField(this, 4, undefined);
3128
+ };
3129
+
3130
+
3131
+ /**
3132
+ * Returns whether this field is set.
3133
+ * @return {boolean}
3134
+ */
3135
+ proto.sport.SportTypeItem.prototype.hasMarketGroup = function() {
3136
+ return jspb.Message.getField(this, 4) != null;
3137
+ };
3138
+
3139
+
3140
+
3141
+ /**
3142
+ * List of repeated fields within this message type.
3143
+ * @private {!Array<number>}
3144
+ * @const
3145
+ */
3146
+ proto.sport.SportTypesIds.repeatedFields_ = [1];
3147
+
3148
+
3149
+
3150
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3151
+ /**
3152
+ * Creates an object representation of this proto.
3153
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3154
+ * Optional fields that are not set will be set to undefined.
3155
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3156
+ * For the list of reserved names please see:
3157
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3158
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3159
+ * JSPB instance for transitional soy proto support:
3160
+ * http://goto/soy-param-migration
3161
+ * @return {!Object}
3162
+ */
3163
+ proto.sport.SportTypesIds.prototype.toObject = function(opt_includeInstance) {
3164
+ return proto.sport.SportTypesIds.toObject(opt_includeInstance, this);
3165
+ };
3166
+
3167
+
3168
+ /**
3169
+ * Static version of the {@see toObject} method.
3170
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3171
+ * the JSPB instance for transitional soy proto support:
3172
+ * http://goto/soy-param-migration
3173
+ * @param {!proto.sport.SportTypesIds} msg The msg instance to transform.
3174
+ * @return {!Object}
3175
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3176
+ */
3177
+ proto.sport.SportTypesIds.toObject = function(includeInstance, msg) {
3178
+ var f, obj = {
3179
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3180
+ };
3181
+
3182
+ if (includeInstance) {
3183
+ obj.$jspbMessageInstance = msg;
3184
+ }
3185
+ return obj;
3186
+ };
3187
+ }
3188
+
3189
+
3190
+ /**
3191
+ * Deserializes binary data (in protobuf wire format).
3192
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3193
+ * @return {!proto.sport.SportTypesIds}
3194
+ */
3195
+ proto.sport.SportTypesIds.deserializeBinary = function(bytes) {
3196
+ var reader = new jspb.BinaryReader(bytes);
3197
+ var msg = new proto.sport.SportTypesIds;
3198
+ return proto.sport.SportTypesIds.deserializeBinaryFromReader(msg, reader);
3199
+ };
3200
+
3201
+
3202
+ /**
3203
+ * Deserializes binary data (in protobuf wire format) from the
3204
+ * given reader into the given message object.
3205
+ * @param {!proto.sport.SportTypesIds} msg The message object to deserialize into.
3206
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3207
+ * @return {!proto.sport.SportTypesIds}
3208
+ */
3209
+ proto.sport.SportTypesIds.deserializeBinaryFromReader = function(msg, reader) {
3210
+ while (reader.nextField()) {
3211
+ if (reader.isEndGroup()) {
3212
+ break;
3213
+ }
3214
+ var field = reader.getFieldNumber();
3215
+ switch (field) {
3216
+ case 1:
3217
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
3218
+ for (var i = 0; i < values.length; i++) {
3219
+ msg.addIds(values[i]);
3220
+ }
3221
+ break;
3222
+ default:
3223
+ reader.skipField();
3224
+ break;
3225
+ }
3226
+ }
3227
+ return msg;
3228
+ };
3229
+
3230
+
3231
+ /**
3232
+ * Serializes the message to binary data (in protobuf wire format).
3233
+ * @return {!Uint8Array}
3234
+ */
3235
+ proto.sport.SportTypesIds.prototype.serializeBinary = function() {
3236
+ var writer = new jspb.BinaryWriter();
3237
+ proto.sport.SportTypesIds.serializeBinaryToWriter(this, writer);
3238
+ return writer.getResultBuffer();
3239
+ };
3240
+
3241
+
3242
+ /**
3243
+ * Serializes the given message to binary data (in protobuf wire
3244
+ * format), writing to the given BinaryWriter.
3245
+ * @param {!proto.sport.SportTypesIds} message
3246
+ * @param {!jspb.BinaryWriter} writer
3247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3248
+ */
3249
+ proto.sport.SportTypesIds.serializeBinaryToWriter = function(message, writer) {
3250
+ var f = undefined;
3251
+ f = message.getIdsList();
3252
+ if (f.length > 0) {
3253
+ writer.writePackedInt32(
3254
+ 1,
3255
+ f
3256
+ );
3257
+ }
3258
+ };
3259
+
3260
+
3261
+ /**
3262
+ * repeated int32 ids = 1;
3263
+ * @return {!Array<number>}
3264
+ */
3265
+ proto.sport.SportTypesIds.prototype.getIdsList = function() {
3266
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
3267
+ };
3268
+
3269
+
3270
+ /**
3271
+ * @param {!Array<number>} value
3272
+ * @return {!proto.sport.SportTypesIds} returns this
3273
+ */
3274
+ proto.sport.SportTypesIds.prototype.setIdsList = function(value) {
3275
+ return jspb.Message.setField(this, 1, value || []);
3276
+ };
3277
+
3278
+
3279
+ /**
3280
+ * @param {number} value
3281
+ * @param {number=} opt_index
3282
+ * @return {!proto.sport.SportTypesIds} returns this
3283
+ */
3284
+ proto.sport.SportTypesIds.prototype.addIds = function(value, opt_index) {
3285
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3286
+ };
3287
+
3288
+
3289
+ /**
3290
+ * Clears the list making it empty but non-null.
3291
+ * @return {!proto.sport.SportTypesIds} returns this
3292
+ */
3293
+ proto.sport.SportTypesIds.prototype.clearIdsList = function() {
3294
+ return this.setIdsList([]);
3295
+ };
3296
+
3297
+
3298
+
3299
+ /**
3300
+ * List of repeated fields within this message type.
3301
+ * @private {!Array<number>}
3302
+ * @const
3303
+ */
3304
+ proto.sport.SportTypesResponse.repeatedFields_ = [1];
3305
+
3306
+
3307
+
3308
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3309
+ /**
3310
+ * Creates an object representation of this proto.
3311
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3312
+ * Optional fields that are not set will be set to undefined.
3313
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3314
+ * For the list of reserved names please see:
3315
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3316
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3317
+ * JSPB instance for transitional soy proto support:
3318
+ * http://goto/soy-param-migration
3319
+ * @return {!Object}
3320
+ */
3321
+ proto.sport.SportTypesResponse.prototype.toObject = function(opt_includeInstance) {
3322
+ return proto.sport.SportTypesResponse.toObject(opt_includeInstance, this);
3323
+ };
3324
+
3325
+
3326
+ /**
3327
+ * Static version of the {@see toObject} method.
3328
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3329
+ * the JSPB instance for transitional soy proto support:
3330
+ * http://goto/soy-param-migration
3331
+ * @param {!proto.sport.SportTypesResponse} msg The msg instance to transform.
3332
+ * @return {!Object}
3333
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3334
+ */
3335
+ proto.sport.SportTypesResponse.toObject = function(includeInstance, msg) {
3336
+ var f, obj = {
3337
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
3338
+ proto.sport.SportTypeItem.toObject, includeInstance)
3339
+ };
3340
+
3341
+ if (includeInstance) {
3342
+ obj.$jspbMessageInstance = msg;
3343
+ }
3344
+ return obj;
3345
+ };
3346
+ }
3347
+
3348
+
3349
+ /**
3350
+ * Deserializes binary data (in protobuf wire format).
3351
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3352
+ * @return {!proto.sport.SportTypesResponse}
3353
+ */
3354
+ proto.sport.SportTypesResponse.deserializeBinary = function(bytes) {
3355
+ var reader = new jspb.BinaryReader(bytes);
3356
+ var msg = new proto.sport.SportTypesResponse;
3357
+ return proto.sport.SportTypesResponse.deserializeBinaryFromReader(msg, reader);
3358
+ };
3359
+
3360
+
3361
+ /**
3362
+ * Deserializes binary data (in protobuf wire format) from the
3363
+ * given reader into the given message object.
3364
+ * @param {!proto.sport.SportTypesResponse} msg The message object to deserialize into.
3365
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3366
+ * @return {!proto.sport.SportTypesResponse}
3367
+ */
3368
+ proto.sport.SportTypesResponse.deserializeBinaryFromReader = function(msg, reader) {
3369
+ while (reader.nextField()) {
3370
+ if (reader.isEndGroup()) {
3371
+ break;
3372
+ }
3373
+ var field = reader.getFieldNumber();
3374
+ switch (field) {
3375
+ case 1:
3376
+ var value = new proto.sport.SportTypeItem;
3377
+ reader.readMessage(value,proto.sport.SportTypeItem.deserializeBinaryFromReader);
3378
+ msg.addItems(value);
3379
+ break;
3380
+ default:
3381
+ reader.skipField();
3382
+ break;
3383
+ }
3384
+ }
3385
+ return msg;
3386
+ };
3387
+
3388
+
3389
+ /**
3390
+ * Serializes the message to binary data (in protobuf wire format).
3391
+ * @return {!Uint8Array}
3392
+ */
3393
+ proto.sport.SportTypesResponse.prototype.serializeBinary = function() {
3394
+ var writer = new jspb.BinaryWriter();
3395
+ proto.sport.SportTypesResponse.serializeBinaryToWriter(this, writer);
3396
+ return writer.getResultBuffer();
3397
+ };
3398
+
3399
+
3400
+ /**
3401
+ * Serializes the given message to binary data (in protobuf wire
3402
+ * format), writing to the given BinaryWriter.
3403
+ * @param {!proto.sport.SportTypesResponse} message
3404
+ * @param {!jspb.BinaryWriter} writer
3405
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3406
+ */
3407
+ proto.sport.SportTypesResponse.serializeBinaryToWriter = function(message, writer) {
3408
+ var f = undefined;
3409
+ f = message.getItemsList();
3410
+ if (f.length > 0) {
3411
+ writer.writeRepeatedMessage(
3412
+ 1,
3413
+ f,
3414
+ proto.sport.SportTypeItem.serializeBinaryToWriter
3415
+ );
3416
+ }
3417
+ };
3418
+
3419
+
3420
+ /**
3421
+ * repeated SportTypeItem items = 1;
3422
+ * @return {!Array<!proto.sport.SportTypeItem>}
3423
+ */
3424
+ proto.sport.SportTypesResponse.prototype.getItemsList = function() {
3425
+ return /** @type{!Array<!proto.sport.SportTypeItem>} */ (
3426
+ jspb.Message.getRepeatedWrapperField(this, proto.sport.SportTypeItem, 1));
3427
+ };
3428
+
3429
+
3430
+ /**
3431
+ * @param {!Array<!proto.sport.SportTypeItem>} value
3432
+ * @return {!proto.sport.SportTypesResponse} returns this
3433
+ */
3434
+ proto.sport.SportTypesResponse.prototype.setItemsList = function(value) {
3435
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3436
+ };
3437
+
3438
+
3439
+ /**
3440
+ * @param {!proto.sport.SportTypeItem=} opt_value
3441
+ * @param {number=} opt_index
3442
+ * @return {!proto.sport.SportTypeItem}
3443
+ */
3444
+ proto.sport.SportTypesResponse.prototype.addItems = function(opt_value, opt_index) {
3445
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sport.SportTypeItem, opt_index);
3446
+ };
3447
+
3448
+
3449
+ /**
3450
+ * Clears the list making it empty but non-null.
3451
+ * @return {!proto.sport.SportTypesResponse} returns this
3452
+ */
3453
+ proto.sport.SportTypesResponse.prototype.clearItemsList = function() {
3454
+ return this.setItemsList([]);
3455
+ };
3456
+
3457
+
2178
3458
  goog.object.extend(exports, proto.sport);