protobuf-platform 1.0.290 → 1.0.291

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/game/game_pb.js CHANGED
@@ -21,6 +21,11 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.game.CashBackListGamesRequest', null, global);
25
+ goog.exportSymbol('proto.game.CashBackListItem', null, global);
26
+ goog.exportSymbol('proto.game.CashBackListItemsResponse', null, global);
27
+ goog.exportSymbol('proto.game.CashBackListRequest', null, global);
28
+ goog.exportSymbol('proto.game.CashBackListResponse', null, global);
24
29
  goog.exportSymbol('proto.game.CategoryItem', null, global);
25
30
  goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
26
31
  goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
@@ -62,6 +67,7 @@ goog.exportSymbol('proto.game.GamesBunchRequest', null, global);
62
67
  goog.exportSymbol('proto.game.GamesIds', null, global);
63
68
  goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
64
69
  goog.exportSymbol('proto.game.GamesUuids', null, global);
70
+ goog.exportSymbol('proto.game.GetCashBackListRequest', null, global);
65
71
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
66
72
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
67
73
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
@@ -1835,6 +1841,132 @@ if (goog.DEBUG && !COMPILED) {
1835
1841
  */
1836
1842
  proto.game.WagerListItemsResponse.displayName = 'proto.game.WagerListItemsResponse';
1837
1843
  }
1844
+ /**
1845
+ * Generated by JsPbCodeGenerator.
1846
+ * @param {Array=} opt_data Optional initial data array, typically from a
1847
+ * server response, or constructed directly in Javascript. The array is used
1848
+ * in place and becomes part of the constructed object. It is not cloned.
1849
+ * If no data is provided, the constructed object will be empty, but still
1850
+ * valid.
1851
+ * @extends {jspb.Message}
1852
+ * @constructor
1853
+ */
1854
+ proto.game.GetCashBackListRequest = function(opt_data) {
1855
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1856
+ };
1857
+ goog.inherits(proto.game.GetCashBackListRequest, jspb.Message);
1858
+ if (goog.DEBUG && !COMPILED) {
1859
+ /**
1860
+ * @public
1861
+ * @override
1862
+ */
1863
+ proto.game.GetCashBackListRequest.displayName = 'proto.game.GetCashBackListRequest';
1864
+ }
1865
+ /**
1866
+ * Generated by JsPbCodeGenerator.
1867
+ * @param {Array=} opt_data Optional initial data array, typically from a
1868
+ * server response, or constructed directly in Javascript. The array is used
1869
+ * in place and becomes part of the constructed object. It is not cloned.
1870
+ * If no data is provided, the constructed object will be empty, but still
1871
+ * valid.
1872
+ * @extends {jspb.Message}
1873
+ * @constructor
1874
+ */
1875
+ proto.game.CashBackListRequest = function(opt_data) {
1876
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1877
+ };
1878
+ goog.inherits(proto.game.CashBackListRequest, jspb.Message);
1879
+ if (goog.DEBUG && !COMPILED) {
1880
+ /**
1881
+ * @public
1882
+ * @override
1883
+ */
1884
+ proto.game.CashBackListRequest.displayName = 'proto.game.CashBackListRequest';
1885
+ }
1886
+ /**
1887
+ * Generated by JsPbCodeGenerator.
1888
+ * @param {Array=} opt_data Optional initial data array, typically from a
1889
+ * server response, or constructed directly in Javascript. The array is used
1890
+ * in place and becomes part of the constructed object. It is not cloned.
1891
+ * If no data is provided, the constructed object will be empty, but still
1892
+ * valid.
1893
+ * @extends {jspb.Message}
1894
+ * @constructor
1895
+ */
1896
+ proto.game.CashBackListGamesRequest = function(opt_data) {
1897
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListGamesRequest.repeatedFields_, null);
1898
+ };
1899
+ goog.inherits(proto.game.CashBackListGamesRequest, jspb.Message);
1900
+ if (goog.DEBUG && !COMPILED) {
1901
+ /**
1902
+ * @public
1903
+ * @override
1904
+ */
1905
+ proto.game.CashBackListGamesRequest.displayName = 'proto.game.CashBackListGamesRequest';
1906
+ }
1907
+ /**
1908
+ * Generated by JsPbCodeGenerator.
1909
+ * @param {Array=} opt_data Optional initial data array, typically from a
1910
+ * server response, or constructed directly in Javascript. The array is used
1911
+ * in place and becomes part of the constructed object. It is not cloned.
1912
+ * If no data is provided, the constructed object will be empty, but still
1913
+ * valid.
1914
+ * @extends {jspb.Message}
1915
+ * @constructor
1916
+ */
1917
+ proto.game.CashBackListItem = function(opt_data) {
1918
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1919
+ };
1920
+ goog.inherits(proto.game.CashBackListItem, jspb.Message);
1921
+ if (goog.DEBUG && !COMPILED) {
1922
+ /**
1923
+ * @public
1924
+ * @override
1925
+ */
1926
+ proto.game.CashBackListItem.displayName = 'proto.game.CashBackListItem';
1927
+ }
1928
+ /**
1929
+ * Generated by JsPbCodeGenerator.
1930
+ * @param {Array=} opt_data Optional initial data array, typically from a
1931
+ * server response, or constructed directly in Javascript. The array is used
1932
+ * in place and becomes part of the constructed object. It is not cloned.
1933
+ * If no data is provided, the constructed object will be empty, but still
1934
+ * valid.
1935
+ * @extends {jspb.Message}
1936
+ * @constructor
1937
+ */
1938
+ proto.game.CashBackListResponse = function(opt_data) {
1939
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1940
+ };
1941
+ goog.inherits(proto.game.CashBackListResponse, jspb.Message);
1942
+ if (goog.DEBUG && !COMPILED) {
1943
+ /**
1944
+ * @public
1945
+ * @override
1946
+ */
1947
+ proto.game.CashBackListResponse.displayName = 'proto.game.CashBackListResponse';
1948
+ }
1949
+ /**
1950
+ * Generated by JsPbCodeGenerator.
1951
+ * @param {Array=} opt_data Optional initial data array, typically from a
1952
+ * server response, or constructed directly in Javascript. The array is used
1953
+ * in place and becomes part of the constructed object. It is not cloned.
1954
+ * If no data is provided, the constructed object will be empty, but still
1955
+ * valid.
1956
+ * @extends {jspb.Message}
1957
+ * @constructor
1958
+ */
1959
+ proto.game.CashBackListItemsResponse = function(opt_data) {
1960
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListItemsResponse.repeatedFields_, null);
1961
+ };
1962
+ goog.inherits(proto.game.CashBackListItemsResponse, jspb.Message);
1963
+ if (goog.DEBUG && !COMPILED) {
1964
+ /**
1965
+ * @public
1966
+ * @override
1967
+ */
1968
+ proto.game.CashBackListItemsResponse.displayName = 'proto.game.CashBackListItemsResponse';
1969
+ }
1838
1970
  /**
1839
1971
  * Generated by JsPbCodeGenerator.
1840
1972
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -23214,6 +23346,1309 @@ proto.game.WagerListItemsResponse.prototype.hasTotalItems = function() {
23214
23346
 
23215
23347
 
23216
23348
 
23349
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23350
+ /**
23351
+ * Creates an object representation of this proto.
23352
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23353
+ * Optional fields that are not set will be set to undefined.
23354
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23355
+ * For the list of reserved names please see:
23356
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23357
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23358
+ * JSPB instance for transitional soy proto support:
23359
+ * http://goto/soy-param-migration
23360
+ * @return {!Object}
23361
+ */
23362
+ proto.game.GetCashBackListRequest.prototype.toObject = function(opt_includeInstance) {
23363
+ return proto.game.GetCashBackListRequest.toObject(opt_includeInstance, this);
23364
+ };
23365
+
23366
+
23367
+ /**
23368
+ * Static version of the {@see toObject} method.
23369
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23370
+ * the JSPB instance for transitional soy proto support:
23371
+ * http://goto/soy-param-migration
23372
+ * @param {!proto.game.GetCashBackListRequest} msg The msg instance to transform.
23373
+ * @return {!Object}
23374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23375
+ */
23376
+ proto.game.GetCashBackListRequest.toObject = function(includeInstance, msg) {
23377
+ var f, obj = {
23378
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23379
+ onlyGames: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
23380
+ };
23381
+
23382
+ if (includeInstance) {
23383
+ obj.$jspbMessageInstance = msg;
23384
+ }
23385
+ return obj;
23386
+ };
23387
+ }
23388
+
23389
+
23390
+ /**
23391
+ * Deserializes binary data (in protobuf wire format).
23392
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23393
+ * @return {!proto.game.GetCashBackListRequest}
23394
+ */
23395
+ proto.game.GetCashBackListRequest.deserializeBinary = function(bytes) {
23396
+ var reader = new jspb.BinaryReader(bytes);
23397
+ var msg = new proto.game.GetCashBackListRequest;
23398
+ return proto.game.GetCashBackListRequest.deserializeBinaryFromReader(msg, reader);
23399
+ };
23400
+
23401
+
23402
+ /**
23403
+ * Deserializes binary data (in protobuf wire format) from the
23404
+ * given reader into the given message object.
23405
+ * @param {!proto.game.GetCashBackListRequest} msg The message object to deserialize into.
23406
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23407
+ * @return {!proto.game.GetCashBackListRequest}
23408
+ */
23409
+ proto.game.GetCashBackListRequest.deserializeBinaryFromReader = function(msg, reader) {
23410
+ while (reader.nextField()) {
23411
+ if (reader.isEndGroup()) {
23412
+ break;
23413
+ }
23414
+ var field = reader.getFieldNumber();
23415
+ switch (field) {
23416
+ case 1:
23417
+ var value = /** @type {number} */ (reader.readInt32());
23418
+ msg.setId(value);
23419
+ break;
23420
+ case 2:
23421
+ var value = /** @type {boolean} */ (reader.readBool());
23422
+ msg.setOnlyGames(value);
23423
+ break;
23424
+ default:
23425
+ reader.skipField();
23426
+ break;
23427
+ }
23428
+ }
23429
+ return msg;
23430
+ };
23431
+
23432
+
23433
+ /**
23434
+ * Serializes the message to binary data (in protobuf wire format).
23435
+ * @return {!Uint8Array}
23436
+ */
23437
+ proto.game.GetCashBackListRequest.prototype.serializeBinary = function() {
23438
+ var writer = new jspb.BinaryWriter();
23439
+ proto.game.GetCashBackListRequest.serializeBinaryToWriter(this, writer);
23440
+ return writer.getResultBuffer();
23441
+ };
23442
+
23443
+
23444
+ /**
23445
+ * Serializes the given message to binary data (in protobuf wire
23446
+ * format), writing to the given BinaryWriter.
23447
+ * @param {!proto.game.GetCashBackListRequest} message
23448
+ * @param {!jspb.BinaryWriter} writer
23449
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23450
+ */
23451
+ proto.game.GetCashBackListRequest.serializeBinaryToWriter = function(message, writer) {
23452
+ var f = undefined;
23453
+ f = message.getId();
23454
+ if (f !== 0) {
23455
+ writer.writeInt32(
23456
+ 1,
23457
+ f
23458
+ );
23459
+ }
23460
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
23461
+ if (f != null) {
23462
+ writer.writeBool(
23463
+ 2,
23464
+ f
23465
+ );
23466
+ }
23467
+ };
23468
+
23469
+
23470
+ /**
23471
+ * optional int32 id = 1;
23472
+ * @return {number}
23473
+ */
23474
+ proto.game.GetCashBackListRequest.prototype.getId = function() {
23475
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23476
+ };
23477
+
23478
+
23479
+ /**
23480
+ * @param {number} value
23481
+ * @return {!proto.game.GetCashBackListRequest} returns this
23482
+ */
23483
+ proto.game.GetCashBackListRequest.prototype.setId = function(value) {
23484
+ return jspb.Message.setProto3IntField(this, 1, value);
23485
+ };
23486
+
23487
+
23488
+ /**
23489
+ * optional bool only_games = 2;
23490
+ * @return {boolean}
23491
+ */
23492
+ proto.game.GetCashBackListRequest.prototype.getOnlyGames = function() {
23493
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
23494
+ };
23495
+
23496
+
23497
+ /**
23498
+ * @param {boolean} value
23499
+ * @return {!proto.game.GetCashBackListRequest} returns this
23500
+ */
23501
+ proto.game.GetCashBackListRequest.prototype.setOnlyGames = function(value) {
23502
+ return jspb.Message.setField(this, 2, value);
23503
+ };
23504
+
23505
+
23506
+ /**
23507
+ * Clears the field making it undefined.
23508
+ * @return {!proto.game.GetCashBackListRequest} returns this
23509
+ */
23510
+ proto.game.GetCashBackListRequest.prototype.clearOnlyGames = function() {
23511
+ return jspb.Message.setField(this, 2, undefined);
23512
+ };
23513
+
23514
+
23515
+ /**
23516
+ * Returns whether this field is set.
23517
+ * @return {boolean}
23518
+ */
23519
+ proto.game.GetCashBackListRequest.prototype.hasOnlyGames = function() {
23520
+ return jspb.Message.getField(this, 2) != null;
23521
+ };
23522
+
23523
+
23524
+
23525
+
23526
+
23527
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23528
+ /**
23529
+ * Creates an object representation of this proto.
23530
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23531
+ * Optional fields that are not set will be set to undefined.
23532
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23533
+ * For the list of reserved names please see:
23534
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23535
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23536
+ * JSPB instance for transitional soy proto support:
23537
+ * http://goto/soy-param-migration
23538
+ * @return {!Object}
23539
+ */
23540
+ proto.game.CashBackListRequest.prototype.toObject = function(opt_includeInstance) {
23541
+ return proto.game.CashBackListRequest.toObject(opt_includeInstance, this);
23542
+ };
23543
+
23544
+
23545
+ /**
23546
+ * Static version of the {@see toObject} method.
23547
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23548
+ * the JSPB instance for transitional soy proto support:
23549
+ * http://goto/soy-param-migration
23550
+ * @param {!proto.game.CashBackListRequest} msg The msg instance to transform.
23551
+ * @return {!Object}
23552
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23553
+ */
23554
+ proto.game.CashBackListRequest.toObject = function(includeInstance, msg) {
23555
+ var f, obj = {
23556
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23557
+ cashbackId: jspb.Message.getFieldWithDefault(msg, 2, 0),
23558
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
23559
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
23560
+ };
23561
+
23562
+ if (includeInstance) {
23563
+ obj.$jspbMessageInstance = msg;
23564
+ }
23565
+ return obj;
23566
+ };
23567
+ }
23568
+
23569
+
23570
+ /**
23571
+ * Deserializes binary data (in protobuf wire format).
23572
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23573
+ * @return {!proto.game.CashBackListRequest}
23574
+ */
23575
+ proto.game.CashBackListRequest.deserializeBinary = function(bytes) {
23576
+ var reader = new jspb.BinaryReader(bytes);
23577
+ var msg = new proto.game.CashBackListRequest;
23578
+ return proto.game.CashBackListRequest.deserializeBinaryFromReader(msg, reader);
23579
+ };
23580
+
23581
+
23582
+ /**
23583
+ * Deserializes binary data (in protobuf wire format) from the
23584
+ * given reader into the given message object.
23585
+ * @param {!proto.game.CashBackListRequest} msg The message object to deserialize into.
23586
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23587
+ * @return {!proto.game.CashBackListRequest}
23588
+ */
23589
+ proto.game.CashBackListRequest.deserializeBinaryFromReader = function(msg, reader) {
23590
+ while (reader.nextField()) {
23591
+ if (reader.isEndGroup()) {
23592
+ break;
23593
+ }
23594
+ var field = reader.getFieldNumber();
23595
+ switch (field) {
23596
+ case 1:
23597
+ var value = /** @type {number} */ (reader.readInt32());
23598
+ msg.setId(value);
23599
+ break;
23600
+ case 2:
23601
+ var value = /** @type {number} */ (reader.readInt32());
23602
+ msg.setCashbackId(value);
23603
+ break;
23604
+ case 3:
23605
+ var value = /** @type {string} */ (reader.readString());
23606
+ msg.setTitle(value);
23607
+ break;
23608
+ case 4:
23609
+ var value = /** @type {string} */ (reader.readString());
23610
+ msg.setDescription(value);
23611
+ break;
23612
+ default:
23613
+ reader.skipField();
23614
+ break;
23615
+ }
23616
+ }
23617
+ return msg;
23618
+ };
23619
+
23620
+
23621
+ /**
23622
+ * Serializes the message to binary data (in protobuf wire format).
23623
+ * @return {!Uint8Array}
23624
+ */
23625
+ proto.game.CashBackListRequest.prototype.serializeBinary = function() {
23626
+ var writer = new jspb.BinaryWriter();
23627
+ proto.game.CashBackListRequest.serializeBinaryToWriter(this, writer);
23628
+ return writer.getResultBuffer();
23629
+ };
23630
+
23631
+
23632
+ /**
23633
+ * Serializes the given message to binary data (in protobuf wire
23634
+ * format), writing to the given BinaryWriter.
23635
+ * @param {!proto.game.CashBackListRequest} message
23636
+ * @param {!jspb.BinaryWriter} writer
23637
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23638
+ */
23639
+ proto.game.CashBackListRequest.serializeBinaryToWriter = function(message, writer) {
23640
+ var f = undefined;
23641
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
23642
+ if (f != null) {
23643
+ writer.writeInt32(
23644
+ 1,
23645
+ f
23646
+ );
23647
+ }
23648
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
23649
+ if (f != null) {
23650
+ writer.writeInt32(
23651
+ 2,
23652
+ f
23653
+ );
23654
+ }
23655
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
23656
+ if (f != null) {
23657
+ writer.writeString(
23658
+ 3,
23659
+ f
23660
+ );
23661
+ }
23662
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
23663
+ if (f != null) {
23664
+ writer.writeString(
23665
+ 4,
23666
+ f
23667
+ );
23668
+ }
23669
+ };
23670
+
23671
+
23672
+ /**
23673
+ * optional int32 id = 1;
23674
+ * @return {number}
23675
+ */
23676
+ proto.game.CashBackListRequest.prototype.getId = function() {
23677
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23678
+ };
23679
+
23680
+
23681
+ /**
23682
+ * @param {number} value
23683
+ * @return {!proto.game.CashBackListRequest} returns this
23684
+ */
23685
+ proto.game.CashBackListRequest.prototype.setId = function(value) {
23686
+ return jspb.Message.setField(this, 1, value);
23687
+ };
23688
+
23689
+
23690
+ /**
23691
+ * Clears the field making it undefined.
23692
+ * @return {!proto.game.CashBackListRequest} returns this
23693
+ */
23694
+ proto.game.CashBackListRequest.prototype.clearId = function() {
23695
+ return jspb.Message.setField(this, 1, undefined);
23696
+ };
23697
+
23698
+
23699
+ /**
23700
+ * Returns whether this field is set.
23701
+ * @return {boolean}
23702
+ */
23703
+ proto.game.CashBackListRequest.prototype.hasId = function() {
23704
+ return jspb.Message.getField(this, 1) != null;
23705
+ };
23706
+
23707
+
23708
+ /**
23709
+ * optional int32 cashback_id = 2;
23710
+ * @return {number}
23711
+ */
23712
+ proto.game.CashBackListRequest.prototype.getCashbackId = function() {
23713
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
23714
+ };
23715
+
23716
+
23717
+ /**
23718
+ * @param {number} value
23719
+ * @return {!proto.game.CashBackListRequest} returns this
23720
+ */
23721
+ proto.game.CashBackListRequest.prototype.setCashbackId = function(value) {
23722
+ return jspb.Message.setField(this, 2, value);
23723
+ };
23724
+
23725
+
23726
+ /**
23727
+ * Clears the field making it undefined.
23728
+ * @return {!proto.game.CashBackListRequest} returns this
23729
+ */
23730
+ proto.game.CashBackListRequest.prototype.clearCashbackId = function() {
23731
+ return jspb.Message.setField(this, 2, undefined);
23732
+ };
23733
+
23734
+
23735
+ /**
23736
+ * Returns whether this field is set.
23737
+ * @return {boolean}
23738
+ */
23739
+ proto.game.CashBackListRequest.prototype.hasCashbackId = function() {
23740
+ return jspb.Message.getField(this, 2) != null;
23741
+ };
23742
+
23743
+
23744
+ /**
23745
+ * optional string title = 3;
23746
+ * @return {string}
23747
+ */
23748
+ proto.game.CashBackListRequest.prototype.getTitle = function() {
23749
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
23750
+ };
23751
+
23752
+
23753
+ /**
23754
+ * @param {string} value
23755
+ * @return {!proto.game.CashBackListRequest} returns this
23756
+ */
23757
+ proto.game.CashBackListRequest.prototype.setTitle = function(value) {
23758
+ return jspb.Message.setField(this, 3, value);
23759
+ };
23760
+
23761
+
23762
+ /**
23763
+ * Clears the field making it undefined.
23764
+ * @return {!proto.game.CashBackListRequest} returns this
23765
+ */
23766
+ proto.game.CashBackListRequest.prototype.clearTitle = function() {
23767
+ return jspb.Message.setField(this, 3, undefined);
23768
+ };
23769
+
23770
+
23771
+ /**
23772
+ * Returns whether this field is set.
23773
+ * @return {boolean}
23774
+ */
23775
+ proto.game.CashBackListRequest.prototype.hasTitle = function() {
23776
+ return jspb.Message.getField(this, 3) != null;
23777
+ };
23778
+
23779
+
23780
+ /**
23781
+ * optional string description = 4;
23782
+ * @return {string}
23783
+ */
23784
+ proto.game.CashBackListRequest.prototype.getDescription = function() {
23785
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
23786
+ };
23787
+
23788
+
23789
+ /**
23790
+ * @param {string} value
23791
+ * @return {!proto.game.CashBackListRequest} returns this
23792
+ */
23793
+ proto.game.CashBackListRequest.prototype.setDescription = function(value) {
23794
+ return jspb.Message.setField(this, 4, value);
23795
+ };
23796
+
23797
+
23798
+ /**
23799
+ * Clears the field making it undefined.
23800
+ * @return {!proto.game.CashBackListRequest} returns this
23801
+ */
23802
+ proto.game.CashBackListRequest.prototype.clearDescription = function() {
23803
+ return jspb.Message.setField(this, 4, undefined);
23804
+ };
23805
+
23806
+
23807
+ /**
23808
+ * Returns whether this field is set.
23809
+ * @return {boolean}
23810
+ */
23811
+ proto.game.CashBackListRequest.prototype.hasDescription = function() {
23812
+ return jspb.Message.getField(this, 4) != null;
23813
+ };
23814
+
23815
+
23816
+
23817
+ /**
23818
+ * List of repeated fields within this message type.
23819
+ * @private {!Array<number>}
23820
+ * @const
23821
+ */
23822
+ proto.game.CashBackListGamesRequest.repeatedFields_ = [2];
23823
+
23824
+
23825
+
23826
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23827
+ /**
23828
+ * Creates an object representation of this proto.
23829
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23830
+ * Optional fields that are not set will be set to undefined.
23831
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23832
+ * For the list of reserved names please see:
23833
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23834
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23835
+ * JSPB instance for transitional soy proto support:
23836
+ * http://goto/soy-param-migration
23837
+ * @return {!Object}
23838
+ */
23839
+ proto.game.CashBackListGamesRequest.prototype.toObject = function(opt_includeInstance) {
23840
+ return proto.game.CashBackListGamesRequest.toObject(opt_includeInstance, this);
23841
+ };
23842
+
23843
+
23844
+ /**
23845
+ * Static version of the {@see toObject} method.
23846
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23847
+ * the JSPB instance for transitional soy proto support:
23848
+ * http://goto/soy-param-migration
23849
+ * @param {!proto.game.CashBackListGamesRequest} msg The msg instance to transform.
23850
+ * @return {!Object}
23851
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23852
+ */
23853
+ proto.game.CashBackListGamesRequest.toObject = function(includeInstance, msg) {
23854
+ var f, obj = {
23855
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23856
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
23857
+ };
23858
+
23859
+ if (includeInstance) {
23860
+ obj.$jspbMessageInstance = msg;
23861
+ }
23862
+ return obj;
23863
+ };
23864
+ }
23865
+
23866
+
23867
+ /**
23868
+ * Deserializes binary data (in protobuf wire format).
23869
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23870
+ * @return {!proto.game.CashBackListGamesRequest}
23871
+ */
23872
+ proto.game.CashBackListGamesRequest.deserializeBinary = function(bytes) {
23873
+ var reader = new jspb.BinaryReader(bytes);
23874
+ var msg = new proto.game.CashBackListGamesRequest;
23875
+ return proto.game.CashBackListGamesRequest.deserializeBinaryFromReader(msg, reader);
23876
+ };
23877
+
23878
+
23879
+ /**
23880
+ * Deserializes binary data (in protobuf wire format) from the
23881
+ * given reader into the given message object.
23882
+ * @param {!proto.game.CashBackListGamesRequest} msg The message object to deserialize into.
23883
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23884
+ * @return {!proto.game.CashBackListGamesRequest}
23885
+ */
23886
+ proto.game.CashBackListGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
23887
+ while (reader.nextField()) {
23888
+ if (reader.isEndGroup()) {
23889
+ break;
23890
+ }
23891
+ var field = reader.getFieldNumber();
23892
+ switch (field) {
23893
+ case 1:
23894
+ var value = /** @type {number} */ (reader.readInt32());
23895
+ msg.setId(value);
23896
+ break;
23897
+ case 2:
23898
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
23899
+ for (var i = 0; i < values.length; i++) {
23900
+ msg.addGameIds(values[i]);
23901
+ }
23902
+ break;
23903
+ default:
23904
+ reader.skipField();
23905
+ break;
23906
+ }
23907
+ }
23908
+ return msg;
23909
+ };
23910
+
23911
+
23912
+ /**
23913
+ * Serializes the message to binary data (in protobuf wire format).
23914
+ * @return {!Uint8Array}
23915
+ */
23916
+ proto.game.CashBackListGamesRequest.prototype.serializeBinary = function() {
23917
+ var writer = new jspb.BinaryWriter();
23918
+ proto.game.CashBackListGamesRequest.serializeBinaryToWriter(this, writer);
23919
+ return writer.getResultBuffer();
23920
+ };
23921
+
23922
+
23923
+ /**
23924
+ * Serializes the given message to binary data (in protobuf wire
23925
+ * format), writing to the given BinaryWriter.
23926
+ * @param {!proto.game.CashBackListGamesRequest} message
23927
+ * @param {!jspb.BinaryWriter} writer
23928
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23929
+ */
23930
+ proto.game.CashBackListGamesRequest.serializeBinaryToWriter = function(message, writer) {
23931
+ var f = undefined;
23932
+ f = message.getId();
23933
+ if (f !== 0) {
23934
+ writer.writeInt32(
23935
+ 1,
23936
+ f
23937
+ );
23938
+ }
23939
+ f = message.getGameIdsList();
23940
+ if (f.length > 0) {
23941
+ writer.writePackedInt32(
23942
+ 2,
23943
+ f
23944
+ );
23945
+ }
23946
+ };
23947
+
23948
+
23949
+ /**
23950
+ * optional int32 id = 1;
23951
+ * @return {number}
23952
+ */
23953
+ proto.game.CashBackListGamesRequest.prototype.getId = function() {
23954
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23955
+ };
23956
+
23957
+
23958
+ /**
23959
+ * @param {number} value
23960
+ * @return {!proto.game.CashBackListGamesRequest} returns this
23961
+ */
23962
+ proto.game.CashBackListGamesRequest.prototype.setId = function(value) {
23963
+ return jspb.Message.setProto3IntField(this, 1, value);
23964
+ };
23965
+
23966
+
23967
+ /**
23968
+ * repeated int32 game_ids = 2;
23969
+ * @return {!Array<number>}
23970
+ */
23971
+ proto.game.CashBackListGamesRequest.prototype.getGameIdsList = function() {
23972
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
23973
+ };
23974
+
23975
+
23976
+ /**
23977
+ * @param {!Array<number>} value
23978
+ * @return {!proto.game.CashBackListGamesRequest} returns this
23979
+ */
23980
+ proto.game.CashBackListGamesRequest.prototype.setGameIdsList = function(value) {
23981
+ return jspb.Message.setField(this, 2, value || []);
23982
+ };
23983
+
23984
+
23985
+ /**
23986
+ * @param {number} value
23987
+ * @param {number=} opt_index
23988
+ * @return {!proto.game.CashBackListGamesRequest} returns this
23989
+ */
23990
+ proto.game.CashBackListGamesRequest.prototype.addGameIds = function(value, opt_index) {
23991
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
23992
+ };
23993
+
23994
+
23995
+ /**
23996
+ * Clears the list making it empty but non-null.
23997
+ * @return {!proto.game.CashBackListGamesRequest} returns this
23998
+ */
23999
+ proto.game.CashBackListGamesRequest.prototype.clearGameIdsList = function() {
24000
+ return this.setGameIdsList([]);
24001
+ };
24002
+
24003
+
24004
+
24005
+
24006
+
24007
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24008
+ /**
24009
+ * Creates an object representation of this proto.
24010
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24011
+ * Optional fields that are not set will be set to undefined.
24012
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24013
+ * For the list of reserved names please see:
24014
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24015
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24016
+ * JSPB instance for transitional soy proto support:
24017
+ * http://goto/soy-param-migration
24018
+ * @return {!Object}
24019
+ */
24020
+ proto.game.CashBackListItem.prototype.toObject = function(opt_includeInstance) {
24021
+ return proto.game.CashBackListItem.toObject(opt_includeInstance, this);
24022
+ };
24023
+
24024
+
24025
+ /**
24026
+ * Static version of the {@see toObject} method.
24027
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24028
+ * the JSPB instance for transitional soy proto support:
24029
+ * http://goto/soy-param-migration
24030
+ * @param {!proto.game.CashBackListItem} msg The msg instance to transform.
24031
+ * @return {!Object}
24032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24033
+ */
24034
+ proto.game.CashBackListItem.toObject = function(includeInstance, msg) {
24035
+ var f, obj = {
24036
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
24037
+ cashbackId: jspb.Message.getFieldWithDefault(msg, 2, 0),
24038
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
24039
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
24040
+ };
24041
+
24042
+ if (includeInstance) {
24043
+ obj.$jspbMessageInstance = msg;
24044
+ }
24045
+ return obj;
24046
+ };
24047
+ }
24048
+
24049
+
24050
+ /**
24051
+ * Deserializes binary data (in protobuf wire format).
24052
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24053
+ * @return {!proto.game.CashBackListItem}
24054
+ */
24055
+ proto.game.CashBackListItem.deserializeBinary = function(bytes) {
24056
+ var reader = new jspb.BinaryReader(bytes);
24057
+ var msg = new proto.game.CashBackListItem;
24058
+ return proto.game.CashBackListItem.deserializeBinaryFromReader(msg, reader);
24059
+ };
24060
+
24061
+
24062
+ /**
24063
+ * Deserializes binary data (in protobuf wire format) from the
24064
+ * given reader into the given message object.
24065
+ * @param {!proto.game.CashBackListItem} msg The message object to deserialize into.
24066
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24067
+ * @return {!proto.game.CashBackListItem}
24068
+ */
24069
+ proto.game.CashBackListItem.deserializeBinaryFromReader = function(msg, reader) {
24070
+ while (reader.nextField()) {
24071
+ if (reader.isEndGroup()) {
24072
+ break;
24073
+ }
24074
+ var field = reader.getFieldNumber();
24075
+ switch (field) {
24076
+ case 1:
24077
+ var value = /** @type {number} */ (reader.readInt32());
24078
+ msg.setId(value);
24079
+ break;
24080
+ case 2:
24081
+ var value = /** @type {number} */ (reader.readInt32());
24082
+ msg.setCashbackId(value);
24083
+ break;
24084
+ case 3:
24085
+ var value = /** @type {string} */ (reader.readString());
24086
+ msg.setTitle(value);
24087
+ break;
24088
+ case 4:
24089
+ var value = /** @type {string} */ (reader.readString());
24090
+ msg.setDescription(value);
24091
+ break;
24092
+ default:
24093
+ reader.skipField();
24094
+ break;
24095
+ }
24096
+ }
24097
+ return msg;
24098
+ };
24099
+
24100
+
24101
+ /**
24102
+ * Serializes the message to binary data (in protobuf wire format).
24103
+ * @return {!Uint8Array}
24104
+ */
24105
+ proto.game.CashBackListItem.prototype.serializeBinary = function() {
24106
+ var writer = new jspb.BinaryWriter();
24107
+ proto.game.CashBackListItem.serializeBinaryToWriter(this, writer);
24108
+ return writer.getResultBuffer();
24109
+ };
24110
+
24111
+
24112
+ /**
24113
+ * Serializes the given message to binary data (in protobuf wire
24114
+ * format), writing to the given BinaryWriter.
24115
+ * @param {!proto.game.CashBackListItem} message
24116
+ * @param {!jspb.BinaryWriter} writer
24117
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24118
+ */
24119
+ proto.game.CashBackListItem.serializeBinaryToWriter = function(message, writer) {
24120
+ var f = undefined;
24121
+ f = message.getId();
24122
+ if (f !== 0) {
24123
+ writer.writeInt32(
24124
+ 1,
24125
+ f
24126
+ );
24127
+ }
24128
+ f = message.getCashbackId();
24129
+ if (f !== 0) {
24130
+ writer.writeInt32(
24131
+ 2,
24132
+ f
24133
+ );
24134
+ }
24135
+ f = message.getTitle();
24136
+ if (f.length > 0) {
24137
+ writer.writeString(
24138
+ 3,
24139
+ f
24140
+ );
24141
+ }
24142
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
24143
+ if (f != null) {
24144
+ writer.writeString(
24145
+ 4,
24146
+ f
24147
+ );
24148
+ }
24149
+ };
24150
+
24151
+
24152
+ /**
24153
+ * optional int32 id = 1;
24154
+ * @return {number}
24155
+ */
24156
+ proto.game.CashBackListItem.prototype.getId = function() {
24157
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24158
+ };
24159
+
24160
+
24161
+ /**
24162
+ * @param {number} value
24163
+ * @return {!proto.game.CashBackListItem} returns this
24164
+ */
24165
+ proto.game.CashBackListItem.prototype.setId = function(value) {
24166
+ return jspb.Message.setProto3IntField(this, 1, value);
24167
+ };
24168
+
24169
+
24170
+ /**
24171
+ * optional int32 cashback_id = 2;
24172
+ * @return {number}
24173
+ */
24174
+ proto.game.CashBackListItem.prototype.getCashbackId = function() {
24175
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24176
+ };
24177
+
24178
+
24179
+ /**
24180
+ * @param {number} value
24181
+ * @return {!proto.game.CashBackListItem} returns this
24182
+ */
24183
+ proto.game.CashBackListItem.prototype.setCashbackId = function(value) {
24184
+ return jspb.Message.setProto3IntField(this, 2, value);
24185
+ };
24186
+
24187
+
24188
+ /**
24189
+ * optional string title = 3;
24190
+ * @return {string}
24191
+ */
24192
+ proto.game.CashBackListItem.prototype.getTitle = function() {
24193
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24194
+ };
24195
+
24196
+
24197
+ /**
24198
+ * @param {string} value
24199
+ * @return {!proto.game.CashBackListItem} returns this
24200
+ */
24201
+ proto.game.CashBackListItem.prototype.setTitle = function(value) {
24202
+ return jspb.Message.setProto3StringField(this, 3, value);
24203
+ };
24204
+
24205
+
24206
+ /**
24207
+ * optional string description = 4;
24208
+ * @return {string}
24209
+ */
24210
+ proto.game.CashBackListItem.prototype.getDescription = function() {
24211
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
24212
+ };
24213
+
24214
+
24215
+ /**
24216
+ * @param {string} value
24217
+ * @return {!proto.game.CashBackListItem} returns this
24218
+ */
24219
+ proto.game.CashBackListItem.prototype.setDescription = function(value) {
24220
+ return jspb.Message.setField(this, 4, value);
24221
+ };
24222
+
24223
+
24224
+ /**
24225
+ * Clears the field making it undefined.
24226
+ * @return {!proto.game.CashBackListItem} returns this
24227
+ */
24228
+ proto.game.CashBackListItem.prototype.clearDescription = function() {
24229
+ return jspb.Message.setField(this, 4, undefined);
24230
+ };
24231
+
24232
+
24233
+ /**
24234
+ * Returns whether this field is set.
24235
+ * @return {boolean}
24236
+ */
24237
+ proto.game.CashBackListItem.prototype.hasDescription = function() {
24238
+ return jspb.Message.getField(this, 4) != null;
24239
+ };
24240
+
24241
+
24242
+
24243
+
24244
+
24245
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24246
+ /**
24247
+ * Creates an object representation of this proto.
24248
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24249
+ * Optional fields that are not set will be set to undefined.
24250
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24251
+ * For the list of reserved names please see:
24252
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24253
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24254
+ * JSPB instance for transitional soy proto support:
24255
+ * http://goto/soy-param-migration
24256
+ * @return {!Object}
24257
+ */
24258
+ proto.game.CashBackListResponse.prototype.toObject = function(opt_includeInstance) {
24259
+ return proto.game.CashBackListResponse.toObject(opt_includeInstance, this);
24260
+ };
24261
+
24262
+
24263
+ /**
24264
+ * Static version of the {@see toObject} method.
24265
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24266
+ * the JSPB instance for transitional soy proto support:
24267
+ * http://goto/soy-param-migration
24268
+ * @param {!proto.game.CashBackListResponse} msg The msg instance to transform.
24269
+ * @return {!Object}
24270
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24271
+ */
24272
+ proto.game.CashBackListResponse.toObject = function(includeInstance, msg) {
24273
+ var f, obj = {
24274
+ data: (f = msg.getData()) && proto.game.CashBackListItem.toObject(includeInstance, f)
24275
+ };
24276
+
24277
+ if (includeInstance) {
24278
+ obj.$jspbMessageInstance = msg;
24279
+ }
24280
+ return obj;
24281
+ };
24282
+ }
24283
+
24284
+
24285
+ /**
24286
+ * Deserializes binary data (in protobuf wire format).
24287
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24288
+ * @return {!proto.game.CashBackListResponse}
24289
+ */
24290
+ proto.game.CashBackListResponse.deserializeBinary = function(bytes) {
24291
+ var reader = new jspb.BinaryReader(bytes);
24292
+ var msg = new proto.game.CashBackListResponse;
24293
+ return proto.game.CashBackListResponse.deserializeBinaryFromReader(msg, reader);
24294
+ };
24295
+
24296
+
24297
+ /**
24298
+ * Deserializes binary data (in protobuf wire format) from the
24299
+ * given reader into the given message object.
24300
+ * @param {!proto.game.CashBackListResponse} msg The message object to deserialize into.
24301
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24302
+ * @return {!proto.game.CashBackListResponse}
24303
+ */
24304
+ proto.game.CashBackListResponse.deserializeBinaryFromReader = function(msg, reader) {
24305
+ while (reader.nextField()) {
24306
+ if (reader.isEndGroup()) {
24307
+ break;
24308
+ }
24309
+ var field = reader.getFieldNumber();
24310
+ switch (field) {
24311
+ case 1:
24312
+ var value = new proto.game.CashBackListItem;
24313
+ reader.readMessage(value,proto.game.CashBackListItem.deserializeBinaryFromReader);
24314
+ msg.setData(value);
24315
+ break;
24316
+ default:
24317
+ reader.skipField();
24318
+ break;
24319
+ }
24320
+ }
24321
+ return msg;
24322
+ };
24323
+
24324
+
24325
+ /**
24326
+ * Serializes the message to binary data (in protobuf wire format).
24327
+ * @return {!Uint8Array}
24328
+ */
24329
+ proto.game.CashBackListResponse.prototype.serializeBinary = function() {
24330
+ var writer = new jspb.BinaryWriter();
24331
+ proto.game.CashBackListResponse.serializeBinaryToWriter(this, writer);
24332
+ return writer.getResultBuffer();
24333
+ };
24334
+
24335
+
24336
+ /**
24337
+ * Serializes the given message to binary data (in protobuf wire
24338
+ * format), writing to the given BinaryWriter.
24339
+ * @param {!proto.game.CashBackListResponse} message
24340
+ * @param {!jspb.BinaryWriter} writer
24341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24342
+ */
24343
+ proto.game.CashBackListResponse.serializeBinaryToWriter = function(message, writer) {
24344
+ var f = undefined;
24345
+ f = message.getData();
24346
+ if (f != null) {
24347
+ writer.writeMessage(
24348
+ 1,
24349
+ f,
24350
+ proto.game.CashBackListItem.serializeBinaryToWriter
24351
+ );
24352
+ }
24353
+ };
24354
+
24355
+
24356
+ /**
24357
+ * optional CashBackListItem data = 1;
24358
+ * @return {?proto.game.CashBackListItem}
24359
+ */
24360
+ proto.game.CashBackListResponse.prototype.getData = function() {
24361
+ return /** @type{?proto.game.CashBackListItem} */ (
24362
+ jspb.Message.getWrapperField(this, proto.game.CashBackListItem, 1));
24363
+ };
24364
+
24365
+
24366
+ /**
24367
+ * @param {?proto.game.CashBackListItem|undefined} value
24368
+ * @return {!proto.game.CashBackListResponse} returns this
24369
+ */
24370
+ proto.game.CashBackListResponse.prototype.setData = function(value) {
24371
+ return jspb.Message.setWrapperField(this, 1, value);
24372
+ };
24373
+
24374
+
24375
+ /**
24376
+ * Clears the message field making it undefined.
24377
+ * @return {!proto.game.CashBackListResponse} returns this
24378
+ */
24379
+ proto.game.CashBackListResponse.prototype.clearData = function() {
24380
+ return this.setData(undefined);
24381
+ };
24382
+
24383
+
24384
+ /**
24385
+ * Returns whether this field is set.
24386
+ * @return {boolean}
24387
+ */
24388
+ proto.game.CashBackListResponse.prototype.hasData = function() {
24389
+ return jspb.Message.getField(this, 1) != null;
24390
+ };
24391
+
24392
+
24393
+
24394
+ /**
24395
+ * List of repeated fields within this message type.
24396
+ * @private {!Array<number>}
24397
+ * @const
24398
+ */
24399
+ proto.game.CashBackListItemsResponse.repeatedFields_ = [1];
24400
+
24401
+
24402
+
24403
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24404
+ /**
24405
+ * Creates an object representation of this proto.
24406
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24407
+ * Optional fields that are not set will be set to undefined.
24408
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24409
+ * For the list of reserved names please see:
24410
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24411
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24412
+ * JSPB instance for transitional soy proto support:
24413
+ * http://goto/soy-param-migration
24414
+ * @return {!Object}
24415
+ */
24416
+ proto.game.CashBackListItemsResponse.prototype.toObject = function(opt_includeInstance) {
24417
+ return proto.game.CashBackListItemsResponse.toObject(opt_includeInstance, this);
24418
+ };
24419
+
24420
+
24421
+ /**
24422
+ * Static version of the {@see toObject} method.
24423
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24424
+ * the JSPB instance for transitional soy proto support:
24425
+ * http://goto/soy-param-migration
24426
+ * @param {!proto.game.CashBackListItemsResponse} msg The msg instance to transform.
24427
+ * @return {!Object}
24428
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24429
+ */
24430
+ proto.game.CashBackListItemsResponse.toObject = function(includeInstance, msg) {
24431
+ var f, obj = {
24432
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
24433
+ proto.game.CashBackListItem.toObject, includeInstance),
24434
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
24435
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
24436
+ };
24437
+
24438
+ if (includeInstance) {
24439
+ obj.$jspbMessageInstance = msg;
24440
+ }
24441
+ return obj;
24442
+ };
24443
+ }
24444
+
24445
+
24446
+ /**
24447
+ * Deserializes binary data (in protobuf wire format).
24448
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24449
+ * @return {!proto.game.CashBackListItemsResponse}
24450
+ */
24451
+ proto.game.CashBackListItemsResponse.deserializeBinary = function(bytes) {
24452
+ var reader = new jspb.BinaryReader(bytes);
24453
+ var msg = new proto.game.CashBackListItemsResponse;
24454
+ return proto.game.CashBackListItemsResponse.deserializeBinaryFromReader(msg, reader);
24455
+ };
24456
+
24457
+
24458
+ /**
24459
+ * Deserializes binary data (in protobuf wire format) from the
24460
+ * given reader into the given message object.
24461
+ * @param {!proto.game.CashBackListItemsResponse} msg The message object to deserialize into.
24462
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24463
+ * @return {!proto.game.CashBackListItemsResponse}
24464
+ */
24465
+ proto.game.CashBackListItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
24466
+ while (reader.nextField()) {
24467
+ if (reader.isEndGroup()) {
24468
+ break;
24469
+ }
24470
+ var field = reader.getFieldNumber();
24471
+ switch (field) {
24472
+ case 1:
24473
+ var value = new proto.game.CashBackListItem;
24474
+ reader.readMessage(value,proto.game.CashBackListItem.deserializeBinaryFromReader);
24475
+ msg.addItems(value);
24476
+ break;
24477
+ case 2:
24478
+ var value = /** @type {number} */ (reader.readInt32());
24479
+ msg.setTotalPages(value);
24480
+ break;
24481
+ case 3:
24482
+ var value = /** @type {number} */ (reader.readInt32());
24483
+ msg.setTotalItems(value);
24484
+ break;
24485
+ default:
24486
+ reader.skipField();
24487
+ break;
24488
+ }
24489
+ }
24490
+ return msg;
24491
+ };
24492
+
24493
+
24494
+ /**
24495
+ * Serializes the message to binary data (in protobuf wire format).
24496
+ * @return {!Uint8Array}
24497
+ */
24498
+ proto.game.CashBackListItemsResponse.prototype.serializeBinary = function() {
24499
+ var writer = new jspb.BinaryWriter();
24500
+ proto.game.CashBackListItemsResponse.serializeBinaryToWriter(this, writer);
24501
+ return writer.getResultBuffer();
24502
+ };
24503
+
24504
+
24505
+ /**
24506
+ * Serializes the given message to binary data (in protobuf wire
24507
+ * format), writing to the given BinaryWriter.
24508
+ * @param {!proto.game.CashBackListItemsResponse} message
24509
+ * @param {!jspb.BinaryWriter} writer
24510
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24511
+ */
24512
+ proto.game.CashBackListItemsResponse.serializeBinaryToWriter = function(message, writer) {
24513
+ var f = undefined;
24514
+ f = message.getItemsList();
24515
+ if (f.length > 0) {
24516
+ writer.writeRepeatedMessage(
24517
+ 1,
24518
+ f,
24519
+ proto.game.CashBackListItem.serializeBinaryToWriter
24520
+ );
24521
+ }
24522
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
24523
+ if (f != null) {
24524
+ writer.writeInt32(
24525
+ 2,
24526
+ f
24527
+ );
24528
+ }
24529
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
24530
+ if (f != null) {
24531
+ writer.writeInt32(
24532
+ 3,
24533
+ f
24534
+ );
24535
+ }
24536
+ };
24537
+
24538
+
24539
+ /**
24540
+ * repeated CashBackListItem items = 1;
24541
+ * @return {!Array<!proto.game.CashBackListItem>}
24542
+ */
24543
+ proto.game.CashBackListItemsResponse.prototype.getItemsList = function() {
24544
+ return /** @type{!Array<!proto.game.CashBackListItem>} */ (
24545
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashBackListItem, 1));
24546
+ };
24547
+
24548
+
24549
+ /**
24550
+ * @param {!Array<!proto.game.CashBackListItem>} value
24551
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24552
+ */
24553
+ proto.game.CashBackListItemsResponse.prototype.setItemsList = function(value) {
24554
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
24555
+ };
24556
+
24557
+
24558
+ /**
24559
+ * @param {!proto.game.CashBackListItem=} opt_value
24560
+ * @param {number=} opt_index
24561
+ * @return {!proto.game.CashBackListItem}
24562
+ */
24563
+ proto.game.CashBackListItemsResponse.prototype.addItems = function(opt_value, opt_index) {
24564
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CashBackListItem, opt_index);
24565
+ };
24566
+
24567
+
24568
+ /**
24569
+ * Clears the list making it empty but non-null.
24570
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24571
+ */
24572
+ proto.game.CashBackListItemsResponse.prototype.clearItemsList = function() {
24573
+ return this.setItemsList([]);
24574
+ };
24575
+
24576
+
24577
+ /**
24578
+ * optional int32 total_pages = 2;
24579
+ * @return {number}
24580
+ */
24581
+ proto.game.CashBackListItemsResponse.prototype.getTotalPages = function() {
24582
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24583
+ };
24584
+
24585
+
24586
+ /**
24587
+ * @param {number} value
24588
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24589
+ */
24590
+ proto.game.CashBackListItemsResponse.prototype.setTotalPages = function(value) {
24591
+ return jspb.Message.setField(this, 2, value);
24592
+ };
24593
+
24594
+
24595
+ /**
24596
+ * Clears the field making it undefined.
24597
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24598
+ */
24599
+ proto.game.CashBackListItemsResponse.prototype.clearTotalPages = function() {
24600
+ return jspb.Message.setField(this, 2, undefined);
24601
+ };
24602
+
24603
+
24604
+ /**
24605
+ * Returns whether this field is set.
24606
+ * @return {boolean}
24607
+ */
24608
+ proto.game.CashBackListItemsResponse.prototype.hasTotalPages = function() {
24609
+ return jspb.Message.getField(this, 2) != null;
24610
+ };
24611
+
24612
+
24613
+ /**
24614
+ * optional int32 total_items = 3;
24615
+ * @return {number}
24616
+ */
24617
+ proto.game.CashBackListItemsResponse.prototype.getTotalItems = function() {
24618
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
24619
+ };
24620
+
24621
+
24622
+ /**
24623
+ * @param {number} value
24624
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24625
+ */
24626
+ proto.game.CashBackListItemsResponse.prototype.setTotalItems = function(value) {
24627
+ return jspb.Message.setField(this, 3, value);
24628
+ };
24629
+
24630
+
24631
+ /**
24632
+ * Clears the field making it undefined.
24633
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24634
+ */
24635
+ proto.game.CashBackListItemsResponse.prototype.clearTotalItems = function() {
24636
+ return jspb.Message.setField(this, 3, undefined);
24637
+ };
24638
+
24639
+
24640
+ /**
24641
+ * Returns whether this field is set.
24642
+ * @return {boolean}
24643
+ */
24644
+ proto.game.CashBackListItemsResponse.prototype.hasTotalItems = function() {
24645
+ return jspb.Message.getField(this, 3) != null;
24646
+ };
24647
+
24648
+
24649
+
24650
+
24651
+
23217
24652
  if (jspb.Message.GENERATE_TO_OBJECT) {
23218
24653
  /**
23219
24654
  * Creates an object representation of this proto.