protobuf-platform 1.2.431 → 1.2.432

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/cms/cms_pb.js CHANGED
@@ -141,6 +141,7 @@ goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
141
141
  goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
142
142
  goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
143
143
  goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
144
+ goog.exportSymbol('proto.cms.GetSportWidgetRequest', null, global);
144
145
  goog.exportSymbol('proto.cms.GetTokenWidgetRequest', null, global);
145
146
  goog.exportSymbol('proto.cms.HeaderWidgetItem', null, global);
146
147
  goog.exportSymbol('proto.cms.ItemsBunchRequest', null, global);
@@ -191,6 +192,11 @@ goog.exportSymbol('proto.cms.SetPageSeoAttributesRequest', null, global);
191
192
  goog.exportSymbol('proto.cms.SetPresetCashierConfigRequest', null, global);
192
193
  goog.exportSymbol('proto.cms.SetPresetWidgetRequest', null, global);
193
194
  goog.exportSymbol('proto.cms.SignUpFormWidgetItem', null, global);
195
+ goog.exportSymbol('proto.cms.SportWidgetItem', null, global);
196
+ goog.exportSymbol('proto.cms.SportWidgetItemRequest', null, global);
197
+ goog.exportSymbol('proto.cms.SportWidgetResponse', null, global);
198
+ goog.exportSymbol('proto.cms.SportWidgetStatusResponse', null, global);
199
+ goog.exportSymbol('proto.cms.SportWidgetsItemsResponse', null, global);
194
200
  goog.exportSymbol('proto.cms.TokenWidgetItem', null, global);
195
201
  goog.exportSymbol('proto.cms.TokenWidgetItemRequest', null, global);
196
202
  goog.exportSymbol('proto.cms.TokenWidgetRequest', null, global);
@@ -2325,6 +2331,132 @@ if (goog.DEBUG && !COMPILED) {
2325
2331
  */
2326
2332
  proto.cms.UpdateCustomWidgetItemConfigRequest.displayName = 'proto.cms.UpdateCustomWidgetItemConfigRequest';
2327
2333
  }
2334
+ /**
2335
+ * Generated by JsPbCodeGenerator.
2336
+ * @param {Array=} opt_data Optional initial data array, typically from a
2337
+ * server response, or constructed directly in Javascript. The array is used
2338
+ * in place and becomes part of the constructed object. It is not cloned.
2339
+ * If no data is provided, the constructed object will be empty, but still
2340
+ * valid.
2341
+ * @extends {jspb.Message}
2342
+ * @constructor
2343
+ */
2344
+ proto.cms.SportWidgetItemRequest = function(opt_data) {
2345
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2346
+ };
2347
+ goog.inherits(proto.cms.SportWidgetItemRequest, jspb.Message);
2348
+ if (goog.DEBUG && !COMPILED) {
2349
+ /**
2350
+ * @public
2351
+ * @override
2352
+ */
2353
+ proto.cms.SportWidgetItemRequest.displayName = 'proto.cms.SportWidgetItemRequest';
2354
+ }
2355
+ /**
2356
+ * Generated by JsPbCodeGenerator.
2357
+ * @param {Array=} opt_data Optional initial data array, typically from a
2358
+ * server response, or constructed directly in Javascript. The array is used
2359
+ * in place and becomes part of the constructed object. It is not cloned.
2360
+ * If no data is provided, the constructed object will be empty, but still
2361
+ * valid.
2362
+ * @extends {jspb.Message}
2363
+ * @constructor
2364
+ */
2365
+ proto.cms.SportWidgetItem = function(opt_data) {
2366
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2367
+ };
2368
+ goog.inherits(proto.cms.SportWidgetItem, jspb.Message);
2369
+ if (goog.DEBUG && !COMPILED) {
2370
+ /**
2371
+ * @public
2372
+ * @override
2373
+ */
2374
+ proto.cms.SportWidgetItem.displayName = 'proto.cms.SportWidgetItem';
2375
+ }
2376
+ /**
2377
+ * Generated by JsPbCodeGenerator.
2378
+ * @param {Array=} opt_data Optional initial data array, typically from a
2379
+ * server response, or constructed directly in Javascript. The array is used
2380
+ * in place and becomes part of the constructed object. It is not cloned.
2381
+ * If no data is provided, the constructed object will be empty, but still
2382
+ * valid.
2383
+ * @extends {jspb.Message}
2384
+ * @constructor
2385
+ */
2386
+ proto.cms.SportWidgetResponse = function(opt_data) {
2387
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2388
+ };
2389
+ goog.inherits(proto.cms.SportWidgetResponse, jspb.Message);
2390
+ if (goog.DEBUG && !COMPILED) {
2391
+ /**
2392
+ * @public
2393
+ * @override
2394
+ */
2395
+ proto.cms.SportWidgetResponse.displayName = 'proto.cms.SportWidgetResponse';
2396
+ }
2397
+ /**
2398
+ * Generated by JsPbCodeGenerator.
2399
+ * @param {Array=} opt_data Optional initial data array, typically from a
2400
+ * server response, or constructed directly in Javascript. The array is used
2401
+ * in place and becomes part of the constructed object. It is not cloned.
2402
+ * If no data is provided, the constructed object will be empty, but still
2403
+ * valid.
2404
+ * @extends {jspb.Message}
2405
+ * @constructor
2406
+ */
2407
+ proto.cms.GetSportWidgetRequest = function(opt_data) {
2408
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2409
+ };
2410
+ goog.inherits(proto.cms.GetSportWidgetRequest, jspb.Message);
2411
+ if (goog.DEBUG && !COMPILED) {
2412
+ /**
2413
+ * @public
2414
+ * @override
2415
+ */
2416
+ proto.cms.GetSportWidgetRequest.displayName = 'proto.cms.GetSportWidgetRequest';
2417
+ }
2418
+ /**
2419
+ * Generated by JsPbCodeGenerator.
2420
+ * @param {Array=} opt_data Optional initial data array, typically from a
2421
+ * server response, or constructed directly in Javascript. The array is used
2422
+ * in place and becomes part of the constructed object. It is not cloned.
2423
+ * If no data is provided, the constructed object will be empty, but still
2424
+ * valid.
2425
+ * @extends {jspb.Message}
2426
+ * @constructor
2427
+ */
2428
+ proto.cms.SportWidgetStatusResponse = function(opt_data) {
2429
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2430
+ };
2431
+ goog.inherits(proto.cms.SportWidgetStatusResponse, jspb.Message);
2432
+ if (goog.DEBUG && !COMPILED) {
2433
+ /**
2434
+ * @public
2435
+ * @override
2436
+ */
2437
+ proto.cms.SportWidgetStatusResponse.displayName = 'proto.cms.SportWidgetStatusResponse';
2438
+ }
2439
+ /**
2440
+ * Generated by JsPbCodeGenerator.
2441
+ * @param {Array=} opt_data Optional initial data array, typically from a
2442
+ * server response, or constructed directly in Javascript. The array is used
2443
+ * in place and becomes part of the constructed object. It is not cloned.
2444
+ * If no data is provided, the constructed object will be empty, but still
2445
+ * valid.
2446
+ * @extends {jspb.Message}
2447
+ * @constructor
2448
+ */
2449
+ proto.cms.SportWidgetsItemsResponse = function(opt_data) {
2450
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.SportWidgetsItemsResponse.repeatedFields_, null);
2451
+ };
2452
+ goog.inherits(proto.cms.SportWidgetsItemsResponse, jspb.Message);
2453
+ if (goog.DEBUG && !COMPILED) {
2454
+ /**
2455
+ * @public
2456
+ * @override
2457
+ */
2458
+ proto.cms.SportWidgetsItemsResponse.displayName = 'proto.cms.SportWidgetsItemsResponse';
2459
+ }
2328
2460
  /**
2329
2461
  * Generated by JsPbCodeGenerator.
2330
2462
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -31140,6 +31272,1833 @@ proto.cms.UpdateCustomWidgetItemConfigRequest.prototype.setConfig = function(val
31140
31272
 
31141
31273
 
31142
31274
 
31275
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31276
+ /**
31277
+ * Creates an object representation of this proto.
31278
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31279
+ * Optional fields that are not set will be set to undefined.
31280
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31281
+ * For the list of reserved names please see:
31282
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31283
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31284
+ * JSPB instance for transitional soy proto support:
31285
+ * http://goto/soy-param-migration
31286
+ * @return {!Object}
31287
+ */
31288
+ proto.cms.SportWidgetItemRequest.prototype.toObject = function(opt_includeInstance) {
31289
+ return proto.cms.SportWidgetItemRequest.toObject(opt_includeInstance, this);
31290
+ };
31291
+
31292
+
31293
+ /**
31294
+ * Static version of the {@see toObject} method.
31295
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31296
+ * the JSPB instance for transitional soy proto support:
31297
+ * http://goto/soy-param-migration
31298
+ * @param {!proto.cms.SportWidgetItemRequest} msg The msg instance to transform.
31299
+ * @return {!Object}
31300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31301
+ */
31302
+ proto.cms.SportWidgetItemRequest.toObject = function(includeInstance, msg) {
31303
+ var f, obj = {
31304
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
31305
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
31306
+ key: jspb.Message.getFieldWithDefault(msg, 3, ""),
31307
+ provider: jspb.Message.getFieldWithDefault(msg, 4, ""),
31308
+ widgetName: jspb.Message.getFieldWithDefault(msg, 5, ""),
31309
+ placeholder: jspb.Message.getFieldWithDefault(msg, 6, ""),
31310
+ withSportsList: jspb.Message.getFieldWithDefault(msg, 7, 0),
31311
+ isActive: jspb.Message.getFieldWithDefault(msg, 8, 0)
31312
+ };
31313
+
31314
+ if (includeInstance) {
31315
+ obj.$jspbMessageInstance = msg;
31316
+ }
31317
+ return obj;
31318
+ };
31319
+ }
31320
+
31321
+
31322
+ /**
31323
+ * Deserializes binary data (in protobuf wire format).
31324
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31325
+ * @return {!proto.cms.SportWidgetItemRequest}
31326
+ */
31327
+ proto.cms.SportWidgetItemRequest.deserializeBinary = function(bytes) {
31328
+ var reader = new jspb.BinaryReader(bytes);
31329
+ var msg = new proto.cms.SportWidgetItemRequest;
31330
+ return proto.cms.SportWidgetItemRequest.deserializeBinaryFromReader(msg, reader);
31331
+ };
31332
+
31333
+
31334
+ /**
31335
+ * Deserializes binary data (in protobuf wire format) from the
31336
+ * given reader into the given message object.
31337
+ * @param {!proto.cms.SportWidgetItemRequest} msg The message object to deserialize into.
31338
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31339
+ * @return {!proto.cms.SportWidgetItemRequest}
31340
+ */
31341
+ proto.cms.SportWidgetItemRequest.deserializeBinaryFromReader = function(msg, reader) {
31342
+ while (reader.nextField()) {
31343
+ if (reader.isEndGroup()) {
31344
+ break;
31345
+ }
31346
+ var field = reader.getFieldNumber();
31347
+ switch (field) {
31348
+ case 1:
31349
+ var value = /** @type {number} */ (reader.readInt32());
31350
+ msg.setId(value);
31351
+ break;
31352
+ case 2:
31353
+ var value = /** @type {string} */ (reader.readString());
31354
+ msg.setTitle(value);
31355
+ break;
31356
+ case 3:
31357
+ var value = /** @type {string} */ (reader.readString());
31358
+ msg.setKey(value);
31359
+ break;
31360
+ case 4:
31361
+ var value = /** @type {string} */ (reader.readString());
31362
+ msg.setProvider(value);
31363
+ break;
31364
+ case 5:
31365
+ var value = /** @type {string} */ (reader.readString());
31366
+ msg.setWidgetName(value);
31367
+ break;
31368
+ case 6:
31369
+ var value = /** @type {string} */ (reader.readString());
31370
+ msg.setPlaceholder(value);
31371
+ break;
31372
+ case 7:
31373
+ var value = /** @type {number} */ (reader.readInt32());
31374
+ msg.setWithSportsList(value);
31375
+ break;
31376
+ case 8:
31377
+ var value = /** @type {number} */ (reader.readInt32());
31378
+ msg.setIsActive(value);
31379
+ break;
31380
+ default:
31381
+ reader.skipField();
31382
+ break;
31383
+ }
31384
+ }
31385
+ return msg;
31386
+ };
31387
+
31388
+
31389
+ /**
31390
+ * Serializes the message to binary data (in protobuf wire format).
31391
+ * @return {!Uint8Array}
31392
+ */
31393
+ proto.cms.SportWidgetItemRequest.prototype.serializeBinary = function() {
31394
+ var writer = new jspb.BinaryWriter();
31395
+ proto.cms.SportWidgetItemRequest.serializeBinaryToWriter(this, writer);
31396
+ return writer.getResultBuffer();
31397
+ };
31398
+
31399
+
31400
+ /**
31401
+ * Serializes the given message to binary data (in protobuf wire
31402
+ * format), writing to the given BinaryWriter.
31403
+ * @param {!proto.cms.SportWidgetItemRequest} message
31404
+ * @param {!jspb.BinaryWriter} writer
31405
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31406
+ */
31407
+ proto.cms.SportWidgetItemRequest.serializeBinaryToWriter = function(message, writer) {
31408
+ var f = undefined;
31409
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
31410
+ if (f != null) {
31411
+ writer.writeInt32(
31412
+ 1,
31413
+ f
31414
+ );
31415
+ }
31416
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
31417
+ if (f != null) {
31418
+ writer.writeString(
31419
+ 2,
31420
+ f
31421
+ );
31422
+ }
31423
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
31424
+ if (f != null) {
31425
+ writer.writeString(
31426
+ 3,
31427
+ f
31428
+ );
31429
+ }
31430
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
31431
+ if (f != null) {
31432
+ writer.writeString(
31433
+ 4,
31434
+ f
31435
+ );
31436
+ }
31437
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
31438
+ if (f != null) {
31439
+ writer.writeString(
31440
+ 5,
31441
+ f
31442
+ );
31443
+ }
31444
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
31445
+ if (f != null) {
31446
+ writer.writeString(
31447
+ 6,
31448
+ f
31449
+ );
31450
+ }
31451
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
31452
+ if (f != null) {
31453
+ writer.writeInt32(
31454
+ 7,
31455
+ f
31456
+ );
31457
+ }
31458
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
31459
+ if (f != null) {
31460
+ writer.writeInt32(
31461
+ 8,
31462
+ f
31463
+ );
31464
+ }
31465
+ };
31466
+
31467
+
31468
+ /**
31469
+ * optional int32 id = 1;
31470
+ * @return {number}
31471
+ */
31472
+ proto.cms.SportWidgetItemRequest.prototype.getId = function() {
31473
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
31474
+ };
31475
+
31476
+
31477
+ /**
31478
+ * @param {number} value
31479
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31480
+ */
31481
+ proto.cms.SportWidgetItemRequest.prototype.setId = function(value) {
31482
+ return jspb.Message.setField(this, 1, value);
31483
+ };
31484
+
31485
+
31486
+ /**
31487
+ * Clears the field making it undefined.
31488
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31489
+ */
31490
+ proto.cms.SportWidgetItemRequest.prototype.clearId = function() {
31491
+ return jspb.Message.setField(this, 1, undefined);
31492
+ };
31493
+
31494
+
31495
+ /**
31496
+ * Returns whether this field is set.
31497
+ * @return {boolean}
31498
+ */
31499
+ proto.cms.SportWidgetItemRequest.prototype.hasId = function() {
31500
+ return jspb.Message.getField(this, 1) != null;
31501
+ };
31502
+
31503
+
31504
+ /**
31505
+ * optional string title = 2;
31506
+ * @return {string}
31507
+ */
31508
+ proto.cms.SportWidgetItemRequest.prototype.getTitle = function() {
31509
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31510
+ };
31511
+
31512
+
31513
+ /**
31514
+ * @param {string} value
31515
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31516
+ */
31517
+ proto.cms.SportWidgetItemRequest.prototype.setTitle = function(value) {
31518
+ return jspb.Message.setField(this, 2, value);
31519
+ };
31520
+
31521
+
31522
+ /**
31523
+ * Clears the field making it undefined.
31524
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31525
+ */
31526
+ proto.cms.SportWidgetItemRequest.prototype.clearTitle = function() {
31527
+ return jspb.Message.setField(this, 2, undefined);
31528
+ };
31529
+
31530
+
31531
+ /**
31532
+ * Returns whether this field is set.
31533
+ * @return {boolean}
31534
+ */
31535
+ proto.cms.SportWidgetItemRequest.prototype.hasTitle = function() {
31536
+ return jspb.Message.getField(this, 2) != null;
31537
+ };
31538
+
31539
+
31540
+ /**
31541
+ * optional string key = 3;
31542
+ * @return {string}
31543
+ */
31544
+ proto.cms.SportWidgetItemRequest.prototype.getKey = function() {
31545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
31546
+ };
31547
+
31548
+
31549
+ /**
31550
+ * @param {string} value
31551
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31552
+ */
31553
+ proto.cms.SportWidgetItemRequest.prototype.setKey = function(value) {
31554
+ return jspb.Message.setField(this, 3, value);
31555
+ };
31556
+
31557
+
31558
+ /**
31559
+ * Clears the field making it undefined.
31560
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31561
+ */
31562
+ proto.cms.SportWidgetItemRequest.prototype.clearKey = function() {
31563
+ return jspb.Message.setField(this, 3, undefined);
31564
+ };
31565
+
31566
+
31567
+ /**
31568
+ * Returns whether this field is set.
31569
+ * @return {boolean}
31570
+ */
31571
+ proto.cms.SportWidgetItemRequest.prototype.hasKey = function() {
31572
+ return jspb.Message.getField(this, 3) != null;
31573
+ };
31574
+
31575
+
31576
+ /**
31577
+ * optional string provider = 4;
31578
+ * @return {string}
31579
+ */
31580
+ proto.cms.SportWidgetItemRequest.prototype.getProvider = function() {
31581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
31582
+ };
31583
+
31584
+
31585
+ /**
31586
+ * @param {string} value
31587
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31588
+ */
31589
+ proto.cms.SportWidgetItemRequest.prototype.setProvider = function(value) {
31590
+ return jspb.Message.setField(this, 4, value);
31591
+ };
31592
+
31593
+
31594
+ /**
31595
+ * Clears the field making it undefined.
31596
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31597
+ */
31598
+ proto.cms.SportWidgetItemRequest.prototype.clearProvider = function() {
31599
+ return jspb.Message.setField(this, 4, undefined);
31600
+ };
31601
+
31602
+
31603
+ /**
31604
+ * Returns whether this field is set.
31605
+ * @return {boolean}
31606
+ */
31607
+ proto.cms.SportWidgetItemRequest.prototype.hasProvider = function() {
31608
+ return jspb.Message.getField(this, 4) != null;
31609
+ };
31610
+
31611
+
31612
+ /**
31613
+ * optional string widget_name = 5;
31614
+ * @return {string}
31615
+ */
31616
+ proto.cms.SportWidgetItemRequest.prototype.getWidgetName = function() {
31617
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
31618
+ };
31619
+
31620
+
31621
+ /**
31622
+ * @param {string} value
31623
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31624
+ */
31625
+ proto.cms.SportWidgetItemRequest.prototype.setWidgetName = function(value) {
31626
+ return jspb.Message.setField(this, 5, value);
31627
+ };
31628
+
31629
+
31630
+ /**
31631
+ * Clears the field making it undefined.
31632
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31633
+ */
31634
+ proto.cms.SportWidgetItemRequest.prototype.clearWidgetName = function() {
31635
+ return jspb.Message.setField(this, 5, undefined);
31636
+ };
31637
+
31638
+
31639
+ /**
31640
+ * Returns whether this field is set.
31641
+ * @return {boolean}
31642
+ */
31643
+ proto.cms.SportWidgetItemRequest.prototype.hasWidgetName = function() {
31644
+ return jspb.Message.getField(this, 5) != null;
31645
+ };
31646
+
31647
+
31648
+ /**
31649
+ * optional string placeholder = 6;
31650
+ * @return {string}
31651
+ */
31652
+ proto.cms.SportWidgetItemRequest.prototype.getPlaceholder = function() {
31653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
31654
+ };
31655
+
31656
+
31657
+ /**
31658
+ * @param {string} value
31659
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31660
+ */
31661
+ proto.cms.SportWidgetItemRequest.prototype.setPlaceholder = function(value) {
31662
+ return jspb.Message.setField(this, 6, value);
31663
+ };
31664
+
31665
+
31666
+ /**
31667
+ * Clears the field making it undefined.
31668
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31669
+ */
31670
+ proto.cms.SportWidgetItemRequest.prototype.clearPlaceholder = function() {
31671
+ return jspb.Message.setField(this, 6, undefined);
31672
+ };
31673
+
31674
+
31675
+ /**
31676
+ * Returns whether this field is set.
31677
+ * @return {boolean}
31678
+ */
31679
+ proto.cms.SportWidgetItemRequest.prototype.hasPlaceholder = function() {
31680
+ return jspb.Message.getField(this, 6) != null;
31681
+ };
31682
+
31683
+
31684
+ /**
31685
+ * optional int32 with_sports_list = 7;
31686
+ * @return {number}
31687
+ */
31688
+ proto.cms.SportWidgetItemRequest.prototype.getWithSportsList = function() {
31689
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
31690
+ };
31691
+
31692
+
31693
+ /**
31694
+ * @param {number} value
31695
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31696
+ */
31697
+ proto.cms.SportWidgetItemRequest.prototype.setWithSportsList = function(value) {
31698
+ return jspb.Message.setField(this, 7, value);
31699
+ };
31700
+
31701
+
31702
+ /**
31703
+ * Clears the field making it undefined.
31704
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31705
+ */
31706
+ proto.cms.SportWidgetItemRequest.prototype.clearWithSportsList = function() {
31707
+ return jspb.Message.setField(this, 7, undefined);
31708
+ };
31709
+
31710
+
31711
+ /**
31712
+ * Returns whether this field is set.
31713
+ * @return {boolean}
31714
+ */
31715
+ proto.cms.SportWidgetItemRequest.prototype.hasWithSportsList = function() {
31716
+ return jspb.Message.getField(this, 7) != null;
31717
+ };
31718
+
31719
+
31720
+ /**
31721
+ * optional int32 is_active = 8;
31722
+ * @return {number}
31723
+ */
31724
+ proto.cms.SportWidgetItemRequest.prototype.getIsActive = function() {
31725
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
31726
+ };
31727
+
31728
+
31729
+ /**
31730
+ * @param {number} value
31731
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31732
+ */
31733
+ proto.cms.SportWidgetItemRequest.prototype.setIsActive = function(value) {
31734
+ return jspb.Message.setField(this, 8, value);
31735
+ };
31736
+
31737
+
31738
+ /**
31739
+ * Clears the field making it undefined.
31740
+ * @return {!proto.cms.SportWidgetItemRequest} returns this
31741
+ */
31742
+ proto.cms.SportWidgetItemRequest.prototype.clearIsActive = function() {
31743
+ return jspb.Message.setField(this, 8, undefined);
31744
+ };
31745
+
31746
+
31747
+ /**
31748
+ * Returns whether this field is set.
31749
+ * @return {boolean}
31750
+ */
31751
+ proto.cms.SportWidgetItemRequest.prototype.hasIsActive = function() {
31752
+ return jspb.Message.getField(this, 8) != null;
31753
+ };
31754
+
31755
+
31756
+
31757
+
31758
+
31759
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31760
+ /**
31761
+ * Creates an object representation of this proto.
31762
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31763
+ * Optional fields that are not set will be set to undefined.
31764
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31765
+ * For the list of reserved names please see:
31766
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31767
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31768
+ * JSPB instance for transitional soy proto support:
31769
+ * http://goto/soy-param-migration
31770
+ * @return {!Object}
31771
+ */
31772
+ proto.cms.SportWidgetItem.prototype.toObject = function(opt_includeInstance) {
31773
+ return proto.cms.SportWidgetItem.toObject(opt_includeInstance, this);
31774
+ };
31775
+
31776
+
31777
+ /**
31778
+ * Static version of the {@see toObject} method.
31779
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31780
+ * the JSPB instance for transitional soy proto support:
31781
+ * http://goto/soy-param-migration
31782
+ * @param {!proto.cms.SportWidgetItem} msg The msg instance to transform.
31783
+ * @return {!Object}
31784
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31785
+ */
31786
+ proto.cms.SportWidgetItem.toObject = function(includeInstance, msg) {
31787
+ var f, obj = {
31788
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
31789
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
31790
+ key: jspb.Message.getFieldWithDefault(msg, 3, ""),
31791
+ provider: jspb.Message.getFieldWithDefault(msg, 4, ""),
31792
+ widgetName: jspb.Message.getFieldWithDefault(msg, 5, ""),
31793
+ placeholder: jspb.Message.getFieldWithDefault(msg, 6, ""),
31794
+ withSportsList: jspb.Message.getFieldWithDefault(msg, 7, 0),
31795
+ isActive: jspb.Message.getFieldWithDefault(msg, 8, 0),
31796
+ createdAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
31797
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 10, "")
31798
+ };
31799
+
31800
+ if (includeInstance) {
31801
+ obj.$jspbMessageInstance = msg;
31802
+ }
31803
+ return obj;
31804
+ };
31805
+ }
31806
+
31807
+
31808
+ /**
31809
+ * Deserializes binary data (in protobuf wire format).
31810
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31811
+ * @return {!proto.cms.SportWidgetItem}
31812
+ */
31813
+ proto.cms.SportWidgetItem.deserializeBinary = function(bytes) {
31814
+ var reader = new jspb.BinaryReader(bytes);
31815
+ var msg = new proto.cms.SportWidgetItem;
31816
+ return proto.cms.SportWidgetItem.deserializeBinaryFromReader(msg, reader);
31817
+ };
31818
+
31819
+
31820
+ /**
31821
+ * Deserializes binary data (in protobuf wire format) from the
31822
+ * given reader into the given message object.
31823
+ * @param {!proto.cms.SportWidgetItem} msg The message object to deserialize into.
31824
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31825
+ * @return {!proto.cms.SportWidgetItem}
31826
+ */
31827
+ proto.cms.SportWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
31828
+ while (reader.nextField()) {
31829
+ if (reader.isEndGroup()) {
31830
+ break;
31831
+ }
31832
+ var field = reader.getFieldNumber();
31833
+ switch (field) {
31834
+ case 1:
31835
+ var value = /** @type {number} */ (reader.readInt32());
31836
+ msg.setId(value);
31837
+ break;
31838
+ case 2:
31839
+ var value = /** @type {string} */ (reader.readString());
31840
+ msg.setTitle(value);
31841
+ break;
31842
+ case 3:
31843
+ var value = /** @type {string} */ (reader.readString());
31844
+ msg.setKey(value);
31845
+ break;
31846
+ case 4:
31847
+ var value = /** @type {string} */ (reader.readString());
31848
+ msg.setProvider(value);
31849
+ break;
31850
+ case 5:
31851
+ var value = /** @type {string} */ (reader.readString());
31852
+ msg.setWidgetName(value);
31853
+ break;
31854
+ case 6:
31855
+ var value = /** @type {string} */ (reader.readString());
31856
+ msg.setPlaceholder(value);
31857
+ break;
31858
+ case 7:
31859
+ var value = /** @type {number} */ (reader.readInt32());
31860
+ msg.setWithSportsList(value);
31861
+ break;
31862
+ case 8:
31863
+ var value = /** @type {number} */ (reader.readInt32());
31864
+ msg.setIsActive(value);
31865
+ break;
31866
+ case 9:
31867
+ var value = /** @type {string} */ (reader.readString());
31868
+ msg.setCreatedAt(value);
31869
+ break;
31870
+ case 10:
31871
+ var value = /** @type {string} */ (reader.readString());
31872
+ msg.setUpdatedAt(value);
31873
+ break;
31874
+ default:
31875
+ reader.skipField();
31876
+ break;
31877
+ }
31878
+ }
31879
+ return msg;
31880
+ };
31881
+
31882
+
31883
+ /**
31884
+ * Serializes the message to binary data (in protobuf wire format).
31885
+ * @return {!Uint8Array}
31886
+ */
31887
+ proto.cms.SportWidgetItem.prototype.serializeBinary = function() {
31888
+ var writer = new jspb.BinaryWriter();
31889
+ proto.cms.SportWidgetItem.serializeBinaryToWriter(this, writer);
31890
+ return writer.getResultBuffer();
31891
+ };
31892
+
31893
+
31894
+ /**
31895
+ * Serializes the given message to binary data (in protobuf wire
31896
+ * format), writing to the given BinaryWriter.
31897
+ * @param {!proto.cms.SportWidgetItem} message
31898
+ * @param {!jspb.BinaryWriter} writer
31899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31900
+ */
31901
+ proto.cms.SportWidgetItem.serializeBinaryToWriter = function(message, writer) {
31902
+ var f = undefined;
31903
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
31904
+ if (f != null) {
31905
+ writer.writeInt32(
31906
+ 1,
31907
+ f
31908
+ );
31909
+ }
31910
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
31911
+ if (f != null) {
31912
+ writer.writeString(
31913
+ 2,
31914
+ f
31915
+ );
31916
+ }
31917
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
31918
+ if (f != null) {
31919
+ writer.writeString(
31920
+ 3,
31921
+ f
31922
+ );
31923
+ }
31924
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
31925
+ if (f != null) {
31926
+ writer.writeString(
31927
+ 4,
31928
+ f
31929
+ );
31930
+ }
31931
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
31932
+ if (f != null) {
31933
+ writer.writeString(
31934
+ 5,
31935
+ f
31936
+ );
31937
+ }
31938
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
31939
+ if (f != null) {
31940
+ writer.writeString(
31941
+ 6,
31942
+ f
31943
+ );
31944
+ }
31945
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
31946
+ if (f != null) {
31947
+ writer.writeInt32(
31948
+ 7,
31949
+ f
31950
+ );
31951
+ }
31952
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
31953
+ if (f != null) {
31954
+ writer.writeInt32(
31955
+ 8,
31956
+ f
31957
+ );
31958
+ }
31959
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
31960
+ if (f != null) {
31961
+ writer.writeString(
31962
+ 9,
31963
+ f
31964
+ );
31965
+ }
31966
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
31967
+ if (f != null) {
31968
+ writer.writeString(
31969
+ 10,
31970
+ f
31971
+ );
31972
+ }
31973
+ };
31974
+
31975
+
31976
+ /**
31977
+ * optional int32 id = 1;
31978
+ * @return {number}
31979
+ */
31980
+ proto.cms.SportWidgetItem.prototype.getId = function() {
31981
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
31982
+ };
31983
+
31984
+
31985
+ /**
31986
+ * @param {number} value
31987
+ * @return {!proto.cms.SportWidgetItem} returns this
31988
+ */
31989
+ proto.cms.SportWidgetItem.prototype.setId = function(value) {
31990
+ return jspb.Message.setField(this, 1, value);
31991
+ };
31992
+
31993
+
31994
+ /**
31995
+ * Clears the field making it undefined.
31996
+ * @return {!proto.cms.SportWidgetItem} returns this
31997
+ */
31998
+ proto.cms.SportWidgetItem.prototype.clearId = function() {
31999
+ return jspb.Message.setField(this, 1, undefined);
32000
+ };
32001
+
32002
+
32003
+ /**
32004
+ * Returns whether this field is set.
32005
+ * @return {boolean}
32006
+ */
32007
+ proto.cms.SportWidgetItem.prototype.hasId = function() {
32008
+ return jspb.Message.getField(this, 1) != null;
32009
+ };
32010
+
32011
+
32012
+ /**
32013
+ * optional string title = 2;
32014
+ * @return {string}
32015
+ */
32016
+ proto.cms.SportWidgetItem.prototype.getTitle = function() {
32017
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
32018
+ };
32019
+
32020
+
32021
+ /**
32022
+ * @param {string} value
32023
+ * @return {!proto.cms.SportWidgetItem} returns this
32024
+ */
32025
+ proto.cms.SportWidgetItem.prototype.setTitle = function(value) {
32026
+ return jspb.Message.setField(this, 2, value);
32027
+ };
32028
+
32029
+
32030
+ /**
32031
+ * Clears the field making it undefined.
32032
+ * @return {!proto.cms.SportWidgetItem} returns this
32033
+ */
32034
+ proto.cms.SportWidgetItem.prototype.clearTitle = function() {
32035
+ return jspb.Message.setField(this, 2, undefined);
32036
+ };
32037
+
32038
+
32039
+ /**
32040
+ * Returns whether this field is set.
32041
+ * @return {boolean}
32042
+ */
32043
+ proto.cms.SportWidgetItem.prototype.hasTitle = function() {
32044
+ return jspb.Message.getField(this, 2) != null;
32045
+ };
32046
+
32047
+
32048
+ /**
32049
+ * optional string key = 3;
32050
+ * @return {string}
32051
+ */
32052
+ proto.cms.SportWidgetItem.prototype.getKey = function() {
32053
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
32054
+ };
32055
+
32056
+
32057
+ /**
32058
+ * @param {string} value
32059
+ * @return {!proto.cms.SportWidgetItem} returns this
32060
+ */
32061
+ proto.cms.SportWidgetItem.prototype.setKey = function(value) {
32062
+ return jspb.Message.setField(this, 3, value);
32063
+ };
32064
+
32065
+
32066
+ /**
32067
+ * Clears the field making it undefined.
32068
+ * @return {!proto.cms.SportWidgetItem} returns this
32069
+ */
32070
+ proto.cms.SportWidgetItem.prototype.clearKey = function() {
32071
+ return jspb.Message.setField(this, 3, undefined);
32072
+ };
32073
+
32074
+
32075
+ /**
32076
+ * Returns whether this field is set.
32077
+ * @return {boolean}
32078
+ */
32079
+ proto.cms.SportWidgetItem.prototype.hasKey = function() {
32080
+ return jspb.Message.getField(this, 3) != null;
32081
+ };
32082
+
32083
+
32084
+ /**
32085
+ * optional string provider = 4;
32086
+ * @return {string}
32087
+ */
32088
+ proto.cms.SportWidgetItem.prototype.getProvider = function() {
32089
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
32090
+ };
32091
+
32092
+
32093
+ /**
32094
+ * @param {string} value
32095
+ * @return {!proto.cms.SportWidgetItem} returns this
32096
+ */
32097
+ proto.cms.SportWidgetItem.prototype.setProvider = function(value) {
32098
+ return jspb.Message.setField(this, 4, value);
32099
+ };
32100
+
32101
+
32102
+ /**
32103
+ * Clears the field making it undefined.
32104
+ * @return {!proto.cms.SportWidgetItem} returns this
32105
+ */
32106
+ proto.cms.SportWidgetItem.prototype.clearProvider = function() {
32107
+ return jspb.Message.setField(this, 4, undefined);
32108
+ };
32109
+
32110
+
32111
+ /**
32112
+ * Returns whether this field is set.
32113
+ * @return {boolean}
32114
+ */
32115
+ proto.cms.SportWidgetItem.prototype.hasProvider = function() {
32116
+ return jspb.Message.getField(this, 4) != null;
32117
+ };
32118
+
32119
+
32120
+ /**
32121
+ * optional string widget_name = 5;
32122
+ * @return {string}
32123
+ */
32124
+ proto.cms.SportWidgetItem.prototype.getWidgetName = function() {
32125
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
32126
+ };
32127
+
32128
+
32129
+ /**
32130
+ * @param {string} value
32131
+ * @return {!proto.cms.SportWidgetItem} returns this
32132
+ */
32133
+ proto.cms.SportWidgetItem.prototype.setWidgetName = function(value) {
32134
+ return jspb.Message.setField(this, 5, value);
32135
+ };
32136
+
32137
+
32138
+ /**
32139
+ * Clears the field making it undefined.
32140
+ * @return {!proto.cms.SportWidgetItem} returns this
32141
+ */
32142
+ proto.cms.SportWidgetItem.prototype.clearWidgetName = function() {
32143
+ return jspb.Message.setField(this, 5, undefined);
32144
+ };
32145
+
32146
+
32147
+ /**
32148
+ * Returns whether this field is set.
32149
+ * @return {boolean}
32150
+ */
32151
+ proto.cms.SportWidgetItem.prototype.hasWidgetName = function() {
32152
+ return jspb.Message.getField(this, 5) != null;
32153
+ };
32154
+
32155
+
32156
+ /**
32157
+ * optional string placeholder = 6;
32158
+ * @return {string}
32159
+ */
32160
+ proto.cms.SportWidgetItem.prototype.getPlaceholder = function() {
32161
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
32162
+ };
32163
+
32164
+
32165
+ /**
32166
+ * @param {string} value
32167
+ * @return {!proto.cms.SportWidgetItem} returns this
32168
+ */
32169
+ proto.cms.SportWidgetItem.prototype.setPlaceholder = function(value) {
32170
+ return jspb.Message.setField(this, 6, value);
32171
+ };
32172
+
32173
+
32174
+ /**
32175
+ * Clears the field making it undefined.
32176
+ * @return {!proto.cms.SportWidgetItem} returns this
32177
+ */
32178
+ proto.cms.SportWidgetItem.prototype.clearPlaceholder = function() {
32179
+ return jspb.Message.setField(this, 6, undefined);
32180
+ };
32181
+
32182
+
32183
+ /**
32184
+ * Returns whether this field is set.
32185
+ * @return {boolean}
32186
+ */
32187
+ proto.cms.SportWidgetItem.prototype.hasPlaceholder = function() {
32188
+ return jspb.Message.getField(this, 6) != null;
32189
+ };
32190
+
32191
+
32192
+ /**
32193
+ * optional int32 with_sports_list = 7;
32194
+ * @return {number}
32195
+ */
32196
+ proto.cms.SportWidgetItem.prototype.getWithSportsList = function() {
32197
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
32198
+ };
32199
+
32200
+
32201
+ /**
32202
+ * @param {number} value
32203
+ * @return {!proto.cms.SportWidgetItem} returns this
32204
+ */
32205
+ proto.cms.SportWidgetItem.prototype.setWithSportsList = function(value) {
32206
+ return jspb.Message.setField(this, 7, value);
32207
+ };
32208
+
32209
+
32210
+ /**
32211
+ * Clears the field making it undefined.
32212
+ * @return {!proto.cms.SportWidgetItem} returns this
32213
+ */
32214
+ proto.cms.SportWidgetItem.prototype.clearWithSportsList = function() {
32215
+ return jspb.Message.setField(this, 7, undefined);
32216
+ };
32217
+
32218
+
32219
+ /**
32220
+ * Returns whether this field is set.
32221
+ * @return {boolean}
32222
+ */
32223
+ proto.cms.SportWidgetItem.prototype.hasWithSportsList = function() {
32224
+ return jspb.Message.getField(this, 7) != null;
32225
+ };
32226
+
32227
+
32228
+ /**
32229
+ * optional int32 is_active = 8;
32230
+ * @return {number}
32231
+ */
32232
+ proto.cms.SportWidgetItem.prototype.getIsActive = function() {
32233
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
32234
+ };
32235
+
32236
+
32237
+ /**
32238
+ * @param {number} value
32239
+ * @return {!proto.cms.SportWidgetItem} returns this
32240
+ */
32241
+ proto.cms.SportWidgetItem.prototype.setIsActive = function(value) {
32242
+ return jspb.Message.setField(this, 8, value);
32243
+ };
32244
+
32245
+
32246
+ /**
32247
+ * Clears the field making it undefined.
32248
+ * @return {!proto.cms.SportWidgetItem} returns this
32249
+ */
32250
+ proto.cms.SportWidgetItem.prototype.clearIsActive = function() {
32251
+ return jspb.Message.setField(this, 8, undefined);
32252
+ };
32253
+
32254
+
32255
+ /**
32256
+ * Returns whether this field is set.
32257
+ * @return {boolean}
32258
+ */
32259
+ proto.cms.SportWidgetItem.prototype.hasIsActive = function() {
32260
+ return jspb.Message.getField(this, 8) != null;
32261
+ };
32262
+
32263
+
32264
+ /**
32265
+ * optional string created_at = 9;
32266
+ * @return {string}
32267
+ */
32268
+ proto.cms.SportWidgetItem.prototype.getCreatedAt = function() {
32269
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
32270
+ };
32271
+
32272
+
32273
+ /**
32274
+ * @param {string} value
32275
+ * @return {!proto.cms.SportWidgetItem} returns this
32276
+ */
32277
+ proto.cms.SportWidgetItem.prototype.setCreatedAt = function(value) {
32278
+ return jspb.Message.setField(this, 9, value);
32279
+ };
32280
+
32281
+
32282
+ /**
32283
+ * Clears the field making it undefined.
32284
+ * @return {!proto.cms.SportWidgetItem} returns this
32285
+ */
32286
+ proto.cms.SportWidgetItem.prototype.clearCreatedAt = function() {
32287
+ return jspb.Message.setField(this, 9, undefined);
32288
+ };
32289
+
32290
+
32291
+ /**
32292
+ * Returns whether this field is set.
32293
+ * @return {boolean}
32294
+ */
32295
+ proto.cms.SportWidgetItem.prototype.hasCreatedAt = function() {
32296
+ return jspb.Message.getField(this, 9) != null;
32297
+ };
32298
+
32299
+
32300
+ /**
32301
+ * optional string updated_at = 10;
32302
+ * @return {string}
32303
+ */
32304
+ proto.cms.SportWidgetItem.prototype.getUpdatedAt = function() {
32305
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
32306
+ };
32307
+
32308
+
32309
+ /**
32310
+ * @param {string} value
32311
+ * @return {!proto.cms.SportWidgetItem} returns this
32312
+ */
32313
+ proto.cms.SportWidgetItem.prototype.setUpdatedAt = function(value) {
32314
+ return jspb.Message.setField(this, 10, value);
32315
+ };
32316
+
32317
+
32318
+ /**
32319
+ * Clears the field making it undefined.
32320
+ * @return {!proto.cms.SportWidgetItem} returns this
32321
+ */
32322
+ proto.cms.SportWidgetItem.prototype.clearUpdatedAt = function() {
32323
+ return jspb.Message.setField(this, 10, undefined);
32324
+ };
32325
+
32326
+
32327
+ /**
32328
+ * Returns whether this field is set.
32329
+ * @return {boolean}
32330
+ */
32331
+ proto.cms.SportWidgetItem.prototype.hasUpdatedAt = function() {
32332
+ return jspb.Message.getField(this, 10) != null;
32333
+ };
32334
+
32335
+
32336
+
32337
+
32338
+
32339
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32340
+ /**
32341
+ * Creates an object representation of this proto.
32342
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32343
+ * Optional fields that are not set will be set to undefined.
32344
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32345
+ * For the list of reserved names please see:
32346
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32347
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32348
+ * JSPB instance for transitional soy proto support:
32349
+ * http://goto/soy-param-migration
32350
+ * @return {!Object}
32351
+ */
32352
+ proto.cms.SportWidgetResponse.prototype.toObject = function(opt_includeInstance) {
32353
+ return proto.cms.SportWidgetResponse.toObject(opt_includeInstance, this);
32354
+ };
32355
+
32356
+
32357
+ /**
32358
+ * Static version of the {@see toObject} method.
32359
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32360
+ * the JSPB instance for transitional soy proto support:
32361
+ * http://goto/soy-param-migration
32362
+ * @param {!proto.cms.SportWidgetResponse} msg The msg instance to transform.
32363
+ * @return {!Object}
32364
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32365
+ */
32366
+ proto.cms.SportWidgetResponse.toObject = function(includeInstance, msg) {
32367
+ var f, obj = {
32368
+ data: (f = msg.getData()) && proto.cms.SportWidgetItem.toObject(includeInstance, f)
32369
+ };
32370
+
32371
+ if (includeInstance) {
32372
+ obj.$jspbMessageInstance = msg;
32373
+ }
32374
+ return obj;
32375
+ };
32376
+ }
32377
+
32378
+
32379
+ /**
32380
+ * Deserializes binary data (in protobuf wire format).
32381
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
32382
+ * @return {!proto.cms.SportWidgetResponse}
32383
+ */
32384
+ proto.cms.SportWidgetResponse.deserializeBinary = function(bytes) {
32385
+ var reader = new jspb.BinaryReader(bytes);
32386
+ var msg = new proto.cms.SportWidgetResponse;
32387
+ return proto.cms.SportWidgetResponse.deserializeBinaryFromReader(msg, reader);
32388
+ };
32389
+
32390
+
32391
+ /**
32392
+ * Deserializes binary data (in protobuf wire format) from the
32393
+ * given reader into the given message object.
32394
+ * @param {!proto.cms.SportWidgetResponse} msg The message object to deserialize into.
32395
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32396
+ * @return {!proto.cms.SportWidgetResponse}
32397
+ */
32398
+ proto.cms.SportWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
32399
+ while (reader.nextField()) {
32400
+ if (reader.isEndGroup()) {
32401
+ break;
32402
+ }
32403
+ var field = reader.getFieldNumber();
32404
+ switch (field) {
32405
+ case 1:
32406
+ var value = new proto.cms.SportWidgetItem;
32407
+ reader.readMessage(value,proto.cms.SportWidgetItem.deserializeBinaryFromReader);
32408
+ msg.setData(value);
32409
+ break;
32410
+ default:
32411
+ reader.skipField();
32412
+ break;
32413
+ }
32414
+ }
32415
+ return msg;
32416
+ };
32417
+
32418
+
32419
+ /**
32420
+ * Serializes the message to binary data (in protobuf wire format).
32421
+ * @return {!Uint8Array}
32422
+ */
32423
+ proto.cms.SportWidgetResponse.prototype.serializeBinary = function() {
32424
+ var writer = new jspb.BinaryWriter();
32425
+ proto.cms.SportWidgetResponse.serializeBinaryToWriter(this, writer);
32426
+ return writer.getResultBuffer();
32427
+ };
32428
+
32429
+
32430
+ /**
32431
+ * Serializes the given message to binary data (in protobuf wire
32432
+ * format), writing to the given BinaryWriter.
32433
+ * @param {!proto.cms.SportWidgetResponse} message
32434
+ * @param {!jspb.BinaryWriter} writer
32435
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32436
+ */
32437
+ proto.cms.SportWidgetResponse.serializeBinaryToWriter = function(message, writer) {
32438
+ var f = undefined;
32439
+ f = message.getData();
32440
+ if (f != null) {
32441
+ writer.writeMessage(
32442
+ 1,
32443
+ f,
32444
+ proto.cms.SportWidgetItem.serializeBinaryToWriter
32445
+ );
32446
+ }
32447
+ };
32448
+
32449
+
32450
+ /**
32451
+ * optional SportWidgetItem data = 1;
32452
+ * @return {?proto.cms.SportWidgetItem}
32453
+ */
32454
+ proto.cms.SportWidgetResponse.prototype.getData = function() {
32455
+ return /** @type{?proto.cms.SportWidgetItem} */ (
32456
+ jspb.Message.getWrapperField(this, proto.cms.SportWidgetItem, 1));
32457
+ };
32458
+
32459
+
32460
+ /**
32461
+ * @param {?proto.cms.SportWidgetItem|undefined} value
32462
+ * @return {!proto.cms.SportWidgetResponse} returns this
32463
+ */
32464
+ proto.cms.SportWidgetResponse.prototype.setData = function(value) {
32465
+ return jspb.Message.setWrapperField(this, 1, value);
32466
+ };
32467
+
32468
+
32469
+ /**
32470
+ * Clears the message field making it undefined.
32471
+ * @return {!proto.cms.SportWidgetResponse} returns this
32472
+ */
32473
+ proto.cms.SportWidgetResponse.prototype.clearData = function() {
32474
+ return this.setData(undefined);
32475
+ };
32476
+
32477
+
32478
+ /**
32479
+ * Returns whether this field is set.
32480
+ * @return {boolean}
32481
+ */
32482
+ proto.cms.SportWidgetResponse.prototype.hasData = function() {
32483
+ return jspb.Message.getField(this, 1) != null;
32484
+ };
32485
+
32486
+
32487
+
32488
+
32489
+
32490
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32491
+ /**
32492
+ * Creates an object representation of this proto.
32493
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32494
+ * Optional fields that are not set will be set to undefined.
32495
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32496
+ * For the list of reserved names please see:
32497
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32498
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32499
+ * JSPB instance for transitional soy proto support:
32500
+ * http://goto/soy-param-migration
32501
+ * @return {!Object}
32502
+ */
32503
+ proto.cms.GetSportWidgetRequest.prototype.toObject = function(opt_includeInstance) {
32504
+ return proto.cms.GetSportWidgetRequest.toObject(opt_includeInstance, this);
32505
+ };
32506
+
32507
+
32508
+ /**
32509
+ * Static version of the {@see toObject} method.
32510
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32511
+ * the JSPB instance for transitional soy proto support:
32512
+ * http://goto/soy-param-migration
32513
+ * @param {!proto.cms.GetSportWidgetRequest} msg The msg instance to transform.
32514
+ * @return {!Object}
32515
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32516
+ */
32517
+ proto.cms.GetSportWidgetRequest.toObject = function(includeInstance, msg) {
32518
+ var f, obj = {
32519
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
32520
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
32521
+ key: jspb.Message.getFieldWithDefault(msg, 3, "")
32522
+ };
32523
+
32524
+ if (includeInstance) {
32525
+ obj.$jspbMessageInstance = msg;
32526
+ }
32527
+ return obj;
32528
+ };
32529
+ }
32530
+
32531
+
32532
+ /**
32533
+ * Deserializes binary data (in protobuf wire format).
32534
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
32535
+ * @return {!proto.cms.GetSportWidgetRequest}
32536
+ */
32537
+ proto.cms.GetSportWidgetRequest.deserializeBinary = function(bytes) {
32538
+ var reader = new jspb.BinaryReader(bytes);
32539
+ var msg = new proto.cms.GetSportWidgetRequest;
32540
+ return proto.cms.GetSportWidgetRequest.deserializeBinaryFromReader(msg, reader);
32541
+ };
32542
+
32543
+
32544
+ /**
32545
+ * Deserializes binary data (in protobuf wire format) from the
32546
+ * given reader into the given message object.
32547
+ * @param {!proto.cms.GetSportWidgetRequest} msg The message object to deserialize into.
32548
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32549
+ * @return {!proto.cms.GetSportWidgetRequest}
32550
+ */
32551
+ proto.cms.GetSportWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
32552
+ while (reader.nextField()) {
32553
+ if (reader.isEndGroup()) {
32554
+ break;
32555
+ }
32556
+ var field = reader.getFieldNumber();
32557
+ switch (field) {
32558
+ case 1:
32559
+ var value = /** @type {number} */ (reader.readInt32());
32560
+ msg.setId(value);
32561
+ break;
32562
+ case 2:
32563
+ var value = /** @type {boolean} */ (reader.readBool());
32564
+ msg.setAdminSide(value);
32565
+ break;
32566
+ case 3:
32567
+ var value = /** @type {string} */ (reader.readString());
32568
+ msg.setKey(value);
32569
+ break;
32570
+ default:
32571
+ reader.skipField();
32572
+ break;
32573
+ }
32574
+ }
32575
+ return msg;
32576
+ };
32577
+
32578
+
32579
+ /**
32580
+ * Serializes the message to binary data (in protobuf wire format).
32581
+ * @return {!Uint8Array}
32582
+ */
32583
+ proto.cms.GetSportWidgetRequest.prototype.serializeBinary = function() {
32584
+ var writer = new jspb.BinaryWriter();
32585
+ proto.cms.GetSportWidgetRequest.serializeBinaryToWriter(this, writer);
32586
+ return writer.getResultBuffer();
32587
+ };
32588
+
32589
+
32590
+ /**
32591
+ * Serializes the given message to binary data (in protobuf wire
32592
+ * format), writing to the given BinaryWriter.
32593
+ * @param {!proto.cms.GetSportWidgetRequest} message
32594
+ * @param {!jspb.BinaryWriter} writer
32595
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32596
+ */
32597
+ proto.cms.GetSportWidgetRequest.serializeBinaryToWriter = function(message, writer) {
32598
+ var f = undefined;
32599
+ f = message.getId();
32600
+ if (f !== 0) {
32601
+ writer.writeInt32(
32602
+ 1,
32603
+ f
32604
+ );
32605
+ }
32606
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
32607
+ if (f != null) {
32608
+ writer.writeBool(
32609
+ 2,
32610
+ f
32611
+ );
32612
+ }
32613
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
32614
+ if (f != null) {
32615
+ writer.writeString(
32616
+ 3,
32617
+ f
32618
+ );
32619
+ }
32620
+ };
32621
+
32622
+
32623
+ /**
32624
+ * optional int32 id = 1;
32625
+ * @return {number}
32626
+ */
32627
+ proto.cms.GetSportWidgetRequest.prototype.getId = function() {
32628
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
32629
+ };
32630
+
32631
+
32632
+ /**
32633
+ * @param {number} value
32634
+ * @return {!proto.cms.GetSportWidgetRequest} returns this
32635
+ */
32636
+ proto.cms.GetSportWidgetRequest.prototype.setId = function(value) {
32637
+ return jspb.Message.setProto3IntField(this, 1, value);
32638
+ };
32639
+
32640
+
32641
+ /**
32642
+ * optional bool admin_side = 2;
32643
+ * @return {boolean}
32644
+ */
32645
+ proto.cms.GetSportWidgetRequest.prototype.getAdminSide = function() {
32646
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
32647
+ };
32648
+
32649
+
32650
+ /**
32651
+ * @param {boolean} value
32652
+ * @return {!proto.cms.GetSportWidgetRequest} returns this
32653
+ */
32654
+ proto.cms.GetSportWidgetRequest.prototype.setAdminSide = function(value) {
32655
+ return jspb.Message.setField(this, 2, value);
32656
+ };
32657
+
32658
+
32659
+ /**
32660
+ * Clears the field making it undefined.
32661
+ * @return {!proto.cms.GetSportWidgetRequest} returns this
32662
+ */
32663
+ proto.cms.GetSportWidgetRequest.prototype.clearAdminSide = function() {
32664
+ return jspb.Message.setField(this, 2, undefined);
32665
+ };
32666
+
32667
+
32668
+ /**
32669
+ * Returns whether this field is set.
32670
+ * @return {boolean}
32671
+ */
32672
+ proto.cms.GetSportWidgetRequest.prototype.hasAdminSide = function() {
32673
+ return jspb.Message.getField(this, 2) != null;
32674
+ };
32675
+
32676
+
32677
+ /**
32678
+ * optional string key = 3;
32679
+ * @return {string}
32680
+ */
32681
+ proto.cms.GetSportWidgetRequest.prototype.getKey = function() {
32682
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
32683
+ };
32684
+
32685
+
32686
+ /**
32687
+ * @param {string} value
32688
+ * @return {!proto.cms.GetSportWidgetRequest} returns this
32689
+ */
32690
+ proto.cms.GetSportWidgetRequest.prototype.setKey = function(value) {
32691
+ return jspb.Message.setField(this, 3, value);
32692
+ };
32693
+
32694
+
32695
+ /**
32696
+ * Clears the field making it undefined.
32697
+ * @return {!proto.cms.GetSportWidgetRequest} returns this
32698
+ */
32699
+ proto.cms.GetSportWidgetRequest.prototype.clearKey = function() {
32700
+ return jspb.Message.setField(this, 3, undefined);
32701
+ };
32702
+
32703
+
32704
+ /**
32705
+ * Returns whether this field is set.
32706
+ * @return {boolean}
32707
+ */
32708
+ proto.cms.GetSportWidgetRequest.prototype.hasKey = function() {
32709
+ return jspb.Message.getField(this, 3) != null;
32710
+ };
32711
+
32712
+
32713
+
32714
+
32715
+
32716
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32717
+ /**
32718
+ * Creates an object representation of this proto.
32719
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32720
+ * Optional fields that are not set will be set to undefined.
32721
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32722
+ * For the list of reserved names please see:
32723
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32724
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32725
+ * JSPB instance for transitional soy proto support:
32726
+ * http://goto/soy-param-migration
32727
+ * @return {!Object}
32728
+ */
32729
+ proto.cms.SportWidgetStatusResponse.prototype.toObject = function(opt_includeInstance) {
32730
+ return proto.cms.SportWidgetStatusResponse.toObject(opt_includeInstance, this);
32731
+ };
32732
+
32733
+
32734
+ /**
32735
+ * Static version of the {@see toObject} method.
32736
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32737
+ * the JSPB instance for transitional soy proto support:
32738
+ * http://goto/soy-param-migration
32739
+ * @param {!proto.cms.SportWidgetStatusResponse} msg The msg instance to transform.
32740
+ * @return {!Object}
32741
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32742
+ */
32743
+ proto.cms.SportWidgetStatusResponse.toObject = function(includeInstance, msg) {
32744
+ var f, obj = {
32745
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
32746
+ };
32747
+
32748
+ if (includeInstance) {
32749
+ obj.$jspbMessageInstance = msg;
32750
+ }
32751
+ return obj;
32752
+ };
32753
+ }
32754
+
32755
+
32756
+ /**
32757
+ * Deserializes binary data (in protobuf wire format).
32758
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
32759
+ * @return {!proto.cms.SportWidgetStatusResponse}
32760
+ */
32761
+ proto.cms.SportWidgetStatusResponse.deserializeBinary = function(bytes) {
32762
+ var reader = new jspb.BinaryReader(bytes);
32763
+ var msg = new proto.cms.SportWidgetStatusResponse;
32764
+ return proto.cms.SportWidgetStatusResponse.deserializeBinaryFromReader(msg, reader);
32765
+ };
32766
+
32767
+
32768
+ /**
32769
+ * Deserializes binary data (in protobuf wire format) from the
32770
+ * given reader into the given message object.
32771
+ * @param {!proto.cms.SportWidgetStatusResponse} msg The message object to deserialize into.
32772
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32773
+ * @return {!proto.cms.SportWidgetStatusResponse}
32774
+ */
32775
+ proto.cms.SportWidgetStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
32776
+ while (reader.nextField()) {
32777
+ if (reader.isEndGroup()) {
32778
+ break;
32779
+ }
32780
+ var field = reader.getFieldNumber();
32781
+ switch (field) {
32782
+ case 1:
32783
+ var value = /** @type {string} */ (reader.readString());
32784
+ msg.setStatus(value);
32785
+ break;
32786
+ default:
32787
+ reader.skipField();
32788
+ break;
32789
+ }
32790
+ }
32791
+ return msg;
32792
+ };
32793
+
32794
+
32795
+ /**
32796
+ * Serializes the message to binary data (in protobuf wire format).
32797
+ * @return {!Uint8Array}
32798
+ */
32799
+ proto.cms.SportWidgetStatusResponse.prototype.serializeBinary = function() {
32800
+ var writer = new jspb.BinaryWriter();
32801
+ proto.cms.SportWidgetStatusResponse.serializeBinaryToWriter(this, writer);
32802
+ return writer.getResultBuffer();
32803
+ };
32804
+
32805
+
32806
+ /**
32807
+ * Serializes the given message to binary data (in protobuf wire
32808
+ * format), writing to the given BinaryWriter.
32809
+ * @param {!proto.cms.SportWidgetStatusResponse} message
32810
+ * @param {!jspb.BinaryWriter} writer
32811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32812
+ */
32813
+ proto.cms.SportWidgetStatusResponse.serializeBinaryToWriter = function(message, writer) {
32814
+ var f = undefined;
32815
+ f = message.getStatus();
32816
+ if (f.length > 0) {
32817
+ writer.writeString(
32818
+ 1,
32819
+ f
32820
+ );
32821
+ }
32822
+ };
32823
+
32824
+
32825
+ /**
32826
+ * optional string status = 1;
32827
+ * @return {string}
32828
+ */
32829
+ proto.cms.SportWidgetStatusResponse.prototype.getStatus = function() {
32830
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
32831
+ };
32832
+
32833
+
32834
+ /**
32835
+ * @param {string} value
32836
+ * @return {!proto.cms.SportWidgetStatusResponse} returns this
32837
+ */
32838
+ proto.cms.SportWidgetStatusResponse.prototype.setStatus = function(value) {
32839
+ return jspb.Message.setProto3StringField(this, 1, value);
32840
+ };
32841
+
32842
+
32843
+
32844
+ /**
32845
+ * List of repeated fields within this message type.
32846
+ * @private {!Array<number>}
32847
+ * @const
32848
+ */
32849
+ proto.cms.SportWidgetsItemsResponse.repeatedFields_ = [1];
32850
+
32851
+
32852
+
32853
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32854
+ /**
32855
+ * Creates an object representation of this proto.
32856
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32857
+ * Optional fields that are not set will be set to undefined.
32858
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32859
+ * For the list of reserved names please see:
32860
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32861
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32862
+ * JSPB instance for transitional soy proto support:
32863
+ * http://goto/soy-param-migration
32864
+ * @return {!Object}
32865
+ */
32866
+ proto.cms.SportWidgetsItemsResponse.prototype.toObject = function(opt_includeInstance) {
32867
+ return proto.cms.SportWidgetsItemsResponse.toObject(opt_includeInstance, this);
32868
+ };
32869
+
32870
+
32871
+ /**
32872
+ * Static version of the {@see toObject} method.
32873
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32874
+ * the JSPB instance for transitional soy proto support:
32875
+ * http://goto/soy-param-migration
32876
+ * @param {!proto.cms.SportWidgetsItemsResponse} msg The msg instance to transform.
32877
+ * @return {!Object}
32878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32879
+ */
32880
+ proto.cms.SportWidgetsItemsResponse.toObject = function(includeInstance, msg) {
32881
+ var f, obj = {
32882
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
32883
+ proto.cms.SportWidgetItem.toObject, includeInstance),
32884
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
32885
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
32886
+ };
32887
+
32888
+ if (includeInstance) {
32889
+ obj.$jspbMessageInstance = msg;
32890
+ }
32891
+ return obj;
32892
+ };
32893
+ }
32894
+
32895
+
32896
+ /**
32897
+ * Deserializes binary data (in protobuf wire format).
32898
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
32899
+ * @return {!proto.cms.SportWidgetsItemsResponse}
32900
+ */
32901
+ proto.cms.SportWidgetsItemsResponse.deserializeBinary = function(bytes) {
32902
+ var reader = new jspb.BinaryReader(bytes);
32903
+ var msg = new proto.cms.SportWidgetsItemsResponse;
32904
+ return proto.cms.SportWidgetsItemsResponse.deserializeBinaryFromReader(msg, reader);
32905
+ };
32906
+
32907
+
32908
+ /**
32909
+ * Deserializes binary data (in protobuf wire format) from the
32910
+ * given reader into the given message object.
32911
+ * @param {!proto.cms.SportWidgetsItemsResponse} msg The message object to deserialize into.
32912
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32913
+ * @return {!proto.cms.SportWidgetsItemsResponse}
32914
+ */
32915
+ proto.cms.SportWidgetsItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
32916
+ while (reader.nextField()) {
32917
+ if (reader.isEndGroup()) {
32918
+ break;
32919
+ }
32920
+ var field = reader.getFieldNumber();
32921
+ switch (field) {
32922
+ case 1:
32923
+ var value = new proto.cms.SportWidgetItem;
32924
+ reader.readMessage(value,proto.cms.SportWidgetItem.deserializeBinaryFromReader);
32925
+ msg.addItems(value);
32926
+ break;
32927
+ case 2:
32928
+ var value = /** @type {number} */ (reader.readInt32());
32929
+ msg.setTotalPages(value);
32930
+ break;
32931
+ case 3:
32932
+ var value = /** @type {number} */ (reader.readInt32());
32933
+ msg.setTotalItems(value);
32934
+ break;
32935
+ default:
32936
+ reader.skipField();
32937
+ break;
32938
+ }
32939
+ }
32940
+ return msg;
32941
+ };
32942
+
32943
+
32944
+ /**
32945
+ * Serializes the message to binary data (in protobuf wire format).
32946
+ * @return {!Uint8Array}
32947
+ */
32948
+ proto.cms.SportWidgetsItemsResponse.prototype.serializeBinary = function() {
32949
+ var writer = new jspb.BinaryWriter();
32950
+ proto.cms.SportWidgetsItemsResponse.serializeBinaryToWriter(this, writer);
32951
+ return writer.getResultBuffer();
32952
+ };
32953
+
32954
+
32955
+ /**
32956
+ * Serializes the given message to binary data (in protobuf wire
32957
+ * format), writing to the given BinaryWriter.
32958
+ * @param {!proto.cms.SportWidgetsItemsResponse} message
32959
+ * @param {!jspb.BinaryWriter} writer
32960
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32961
+ */
32962
+ proto.cms.SportWidgetsItemsResponse.serializeBinaryToWriter = function(message, writer) {
32963
+ var f = undefined;
32964
+ f = message.getItemsList();
32965
+ if (f.length > 0) {
32966
+ writer.writeRepeatedMessage(
32967
+ 1,
32968
+ f,
32969
+ proto.cms.SportWidgetItem.serializeBinaryToWriter
32970
+ );
32971
+ }
32972
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
32973
+ if (f != null) {
32974
+ writer.writeInt32(
32975
+ 2,
32976
+ f
32977
+ );
32978
+ }
32979
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
32980
+ if (f != null) {
32981
+ writer.writeInt32(
32982
+ 3,
32983
+ f
32984
+ );
32985
+ }
32986
+ };
32987
+
32988
+
32989
+ /**
32990
+ * repeated SportWidgetItem items = 1;
32991
+ * @return {!Array<!proto.cms.SportWidgetItem>}
32992
+ */
32993
+ proto.cms.SportWidgetsItemsResponse.prototype.getItemsList = function() {
32994
+ return /** @type{!Array<!proto.cms.SportWidgetItem>} */ (
32995
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.SportWidgetItem, 1));
32996
+ };
32997
+
32998
+
32999
+ /**
33000
+ * @param {!Array<!proto.cms.SportWidgetItem>} value
33001
+ * @return {!proto.cms.SportWidgetsItemsResponse} returns this
33002
+ */
33003
+ proto.cms.SportWidgetsItemsResponse.prototype.setItemsList = function(value) {
33004
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
33005
+ };
33006
+
33007
+
33008
+ /**
33009
+ * @param {!proto.cms.SportWidgetItem=} opt_value
33010
+ * @param {number=} opt_index
33011
+ * @return {!proto.cms.SportWidgetItem}
33012
+ */
33013
+ proto.cms.SportWidgetsItemsResponse.prototype.addItems = function(opt_value, opt_index) {
33014
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.SportWidgetItem, opt_index);
33015
+ };
33016
+
33017
+
33018
+ /**
33019
+ * Clears the list making it empty but non-null.
33020
+ * @return {!proto.cms.SportWidgetsItemsResponse} returns this
33021
+ */
33022
+ proto.cms.SportWidgetsItemsResponse.prototype.clearItemsList = function() {
33023
+ return this.setItemsList([]);
33024
+ };
33025
+
33026
+
33027
+ /**
33028
+ * optional int32 total_pages = 2;
33029
+ * @return {number}
33030
+ */
33031
+ proto.cms.SportWidgetsItemsResponse.prototype.getTotalPages = function() {
33032
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33033
+ };
33034
+
33035
+
33036
+ /**
33037
+ * @param {number} value
33038
+ * @return {!proto.cms.SportWidgetsItemsResponse} returns this
33039
+ */
33040
+ proto.cms.SportWidgetsItemsResponse.prototype.setTotalPages = function(value) {
33041
+ return jspb.Message.setField(this, 2, value);
33042
+ };
33043
+
33044
+
33045
+ /**
33046
+ * Clears the field making it undefined.
33047
+ * @return {!proto.cms.SportWidgetsItemsResponse} returns this
33048
+ */
33049
+ proto.cms.SportWidgetsItemsResponse.prototype.clearTotalPages = function() {
33050
+ return jspb.Message.setField(this, 2, undefined);
33051
+ };
33052
+
33053
+
33054
+ /**
33055
+ * Returns whether this field is set.
33056
+ * @return {boolean}
33057
+ */
33058
+ proto.cms.SportWidgetsItemsResponse.prototype.hasTotalPages = function() {
33059
+ return jspb.Message.getField(this, 2) != null;
33060
+ };
33061
+
33062
+
33063
+ /**
33064
+ * optional int32 total_items = 3;
33065
+ * @return {number}
33066
+ */
33067
+ proto.cms.SportWidgetsItemsResponse.prototype.getTotalItems = function() {
33068
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
33069
+ };
33070
+
33071
+
33072
+ /**
33073
+ * @param {number} value
33074
+ * @return {!proto.cms.SportWidgetsItemsResponse} returns this
33075
+ */
33076
+ proto.cms.SportWidgetsItemsResponse.prototype.setTotalItems = function(value) {
33077
+ return jspb.Message.setField(this, 3, value);
33078
+ };
33079
+
33080
+
33081
+ /**
33082
+ * Clears the field making it undefined.
33083
+ * @return {!proto.cms.SportWidgetsItemsResponse} returns this
33084
+ */
33085
+ proto.cms.SportWidgetsItemsResponse.prototype.clearTotalItems = function() {
33086
+ return jspb.Message.setField(this, 3, undefined);
33087
+ };
33088
+
33089
+
33090
+ /**
33091
+ * Returns whether this field is set.
33092
+ * @return {boolean}
33093
+ */
33094
+ proto.cms.SportWidgetsItemsResponse.prototype.hasTotalItems = function() {
33095
+ return jspb.Message.getField(this, 3) != null;
33096
+ };
33097
+
33098
+
33099
+
33100
+
33101
+
31143
33102
  if (jspb.Message.GENERATE_TO_OBJECT) {
31144
33103
  /**
31145
33104
  * Creates an object representation of this proto.