protobuf-platform 1.0.290 → 1.0.292

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,12 @@ 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);
29
+ goog.exportSymbol('proto.game.CashBackSearchRequest', null, global);
24
30
  goog.exportSymbol('proto.game.CategoryItem', null, global);
25
31
  goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
26
32
  goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
@@ -62,6 +68,7 @@ goog.exportSymbol('proto.game.GamesBunchRequest', null, global);
62
68
  goog.exportSymbol('proto.game.GamesIds', null, global);
63
69
  goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
64
70
  goog.exportSymbol('proto.game.GamesUuids', null, global);
71
+ goog.exportSymbol('proto.game.GetCashBackListRequest', null, global);
65
72
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
66
73
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
67
74
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
@@ -218,6 +225,27 @@ if (goog.DEBUG && !COMPILED) {
218
225
  */
219
226
  proto.game.WagerSearchRequest.displayName = 'proto.game.WagerSearchRequest';
220
227
  }
228
+ /**
229
+ * Generated by JsPbCodeGenerator.
230
+ * @param {Array=} opt_data Optional initial data array, typically from a
231
+ * server response, or constructed directly in Javascript. The array is used
232
+ * in place and becomes part of the constructed object. It is not cloned.
233
+ * If no data is provided, the constructed object will be empty, but still
234
+ * valid.
235
+ * @extends {jspb.Message}
236
+ * @constructor
237
+ */
238
+ proto.game.CashBackSearchRequest = function(opt_data) {
239
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackSearchRequest.repeatedFields_, null);
240
+ };
241
+ goog.inherits(proto.game.CashBackSearchRequest, jspb.Message);
242
+ if (goog.DEBUG && !COMPILED) {
243
+ /**
244
+ * @public
245
+ * @override
246
+ */
247
+ proto.game.CashBackSearchRequest.displayName = 'proto.game.CashBackSearchRequest';
248
+ }
221
249
  /**
222
250
  * Generated by JsPbCodeGenerator.
223
251
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1835,6 +1863,132 @@ if (goog.DEBUG && !COMPILED) {
1835
1863
  */
1836
1864
  proto.game.WagerListItemsResponse.displayName = 'proto.game.WagerListItemsResponse';
1837
1865
  }
1866
+ /**
1867
+ * Generated by JsPbCodeGenerator.
1868
+ * @param {Array=} opt_data Optional initial data array, typically from a
1869
+ * server response, or constructed directly in Javascript. The array is used
1870
+ * in place and becomes part of the constructed object. It is not cloned.
1871
+ * If no data is provided, the constructed object will be empty, but still
1872
+ * valid.
1873
+ * @extends {jspb.Message}
1874
+ * @constructor
1875
+ */
1876
+ proto.game.GetCashBackListRequest = function(opt_data) {
1877
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1878
+ };
1879
+ goog.inherits(proto.game.GetCashBackListRequest, jspb.Message);
1880
+ if (goog.DEBUG && !COMPILED) {
1881
+ /**
1882
+ * @public
1883
+ * @override
1884
+ */
1885
+ proto.game.GetCashBackListRequest.displayName = 'proto.game.GetCashBackListRequest';
1886
+ }
1887
+ /**
1888
+ * Generated by JsPbCodeGenerator.
1889
+ * @param {Array=} opt_data Optional initial data array, typically from a
1890
+ * server response, or constructed directly in Javascript. The array is used
1891
+ * in place and becomes part of the constructed object. It is not cloned.
1892
+ * If no data is provided, the constructed object will be empty, but still
1893
+ * valid.
1894
+ * @extends {jspb.Message}
1895
+ * @constructor
1896
+ */
1897
+ proto.game.CashBackListRequest = function(opt_data) {
1898
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1899
+ };
1900
+ goog.inherits(proto.game.CashBackListRequest, jspb.Message);
1901
+ if (goog.DEBUG && !COMPILED) {
1902
+ /**
1903
+ * @public
1904
+ * @override
1905
+ */
1906
+ proto.game.CashBackListRequest.displayName = 'proto.game.CashBackListRequest';
1907
+ }
1908
+ /**
1909
+ * Generated by JsPbCodeGenerator.
1910
+ * @param {Array=} opt_data Optional initial data array, typically from a
1911
+ * server response, or constructed directly in Javascript. The array is used
1912
+ * in place and becomes part of the constructed object. It is not cloned.
1913
+ * If no data is provided, the constructed object will be empty, but still
1914
+ * valid.
1915
+ * @extends {jspb.Message}
1916
+ * @constructor
1917
+ */
1918
+ proto.game.CashBackListGamesRequest = function(opt_data) {
1919
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListGamesRequest.repeatedFields_, null);
1920
+ };
1921
+ goog.inherits(proto.game.CashBackListGamesRequest, jspb.Message);
1922
+ if (goog.DEBUG && !COMPILED) {
1923
+ /**
1924
+ * @public
1925
+ * @override
1926
+ */
1927
+ proto.game.CashBackListGamesRequest.displayName = 'proto.game.CashBackListGamesRequest';
1928
+ }
1929
+ /**
1930
+ * Generated by JsPbCodeGenerator.
1931
+ * @param {Array=} opt_data Optional initial data array, typically from a
1932
+ * server response, or constructed directly in Javascript. The array is used
1933
+ * in place and becomes part of the constructed object. It is not cloned.
1934
+ * If no data is provided, the constructed object will be empty, but still
1935
+ * valid.
1936
+ * @extends {jspb.Message}
1937
+ * @constructor
1938
+ */
1939
+ proto.game.CashBackListItem = function(opt_data) {
1940
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1941
+ };
1942
+ goog.inherits(proto.game.CashBackListItem, jspb.Message);
1943
+ if (goog.DEBUG && !COMPILED) {
1944
+ /**
1945
+ * @public
1946
+ * @override
1947
+ */
1948
+ proto.game.CashBackListItem.displayName = 'proto.game.CashBackListItem';
1949
+ }
1950
+ /**
1951
+ * Generated by JsPbCodeGenerator.
1952
+ * @param {Array=} opt_data Optional initial data array, typically from a
1953
+ * server response, or constructed directly in Javascript. The array is used
1954
+ * in place and becomes part of the constructed object. It is not cloned.
1955
+ * If no data is provided, the constructed object will be empty, but still
1956
+ * valid.
1957
+ * @extends {jspb.Message}
1958
+ * @constructor
1959
+ */
1960
+ proto.game.CashBackListResponse = function(opt_data) {
1961
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1962
+ };
1963
+ goog.inherits(proto.game.CashBackListResponse, jspb.Message);
1964
+ if (goog.DEBUG && !COMPILED) {
1965
+ /**
1966
+ * @public
1967
+ * @override
1968
+ */
1969
+ proto.game.CashBackListResponse.displayName = 'proto.game.CashBackListResponse';
1970
+ }
1971
+ /**
1972
+ * Generated by JsPbCodeGenerator.
1973
+ * @param {Array=} opt_data Optional initial data array, typically from a
1974
+ * server response, or constructed directly in Javascript. The array is used
1975
+ * in place and becomes part of the constructed object. It is not cloned.
1976
+ * If no data is provided, the constructed object will be empty, but still
1977
+ * valid.
1978
+ * @extends {jspb.Message}
1979
+ * @constructor
1980
+ */
1981
+ proto.game.CashBackListItemsResponse = function(opt_data) {
1982
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListItemsResponse.repeatedFields_, null);
1983
+ };
1984
+ goog.inherits(proto.game.CashBackListItemsResponse, jspb.Message);
1985
+ if (goog.DEBUG && !COMPILED) {
1986
+ /**
1987
+ * @public
1988
+ * @override
1989
+ */
1990
+ proto.game.CashBackListItemsResponse.displayName = 'proto.game.CashBackListItemsResponse';
1991
+ }
1838
1992
  /**
1839
1993
  * Generated by JsPbCodeGenerator.
1840
1994
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2236,7 +2390,8 @@ proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
2236
2390
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
2237
2391
  adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
2238
2392
  gameSearchParams: (f = msg.getGameSearchParams()) && proto.game.GameSearchRequest.toObject(includeInstance, f),
2239
- wagerSearchParams: (f = msg.getWagerSearchParams()) && proto.game.WagerSearchRequest.toObject(includeInstance, f)
2393
+ wagerSearchParams: (f = msg.getWagerSearchParams()) && proto.game.WagerSearchRequest.toObject(includeInstance, f),
2394
+ cashBackSearchParams: (f = msg.getCashBackSearchParams()) && proto.game.CashBackSearchRequest.toObject(includeInstance, f)
2240
2395
  };
2241
2396
 
2242
2397
  if (includeInstance) {
@@ -2295,6 +2450,11 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
2295
2450
  reader.readMessage(value,proto.game.WagerSearchRequest.deserializeBinaryFromReader);
2296
2451
  msg.setWagerSearchParams(value);
2297
2452
  break;
2453
+ case 6:
2454
+ var value = new proto.game.CashBackSearchRequest;
2455
+ reader.readMessage(value,proto.game.CashBackSearchRequest.deserializeBinaryFromReader);
2456
+ msg.setCashBackSearchParams(value);
2457
+ break;
2298
2458
  default:
2299
2459
  reader.skipField();
2300
2460
  break;
@@ -2361,6 +2521,14 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
2361
2521
  proto.game.WagerSearchRequest.serializeBinaryToWriter
2362
2522
  );
2363
2523
  }
2524
+ f = message.getCashBackSearchParams();
2525
+ if (f != null) {
2526
+ writer.writeMessage(
2527
+ 6,
2528
+ f,
2529
+ proto.game.CashBackSearchRequest.serializeBinaryToWriter
2530
+ );
2531
+ }
2364
2532
  };
2365
2533
 
2366
2534
 
@@ -2510,6 +2678,43 @@ proto.game.PaginationRequest.prototype.hasWagerSearchParams = function() {
2510
2678
  };
2511
2679
 
2512
2680
 
2681
+ /**
2682
+ * optional CashBackSearchRequest cash_back_search_params = 6;
2683
+ * @return {?proto.game.CashBackSearchRequest}
2684
+ */
2685
+ proto.game.PaginationRequest.prototype.getCashBackSearchParams = function() {
2686
+ return /** @type{?proto.game.CashBackSearchRequest} */ (
2687
+ jspb.Message.getWrapperField(this, proto.game.CashBackSearchRequest, 6));
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * @param {?proto.game.CashBackSearchRequest|undefined} value
2693
+ * @return {!proto.game.PaginationRequest} returns this
2694
+ */
2695
+ proto.game.PaginationRequest.prototype.setCashBackSearchParams = function(value) {
2696
+ return jspb.Message.setWrapperField(this, 6, value);
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * Clears the message field making it undefined.
2702
+ * @return {!proto.game.PaginationRequest} returns this
2703
+ */
2704
+ proto.game.PaginationRequest.prototype.clearCashBackSearchParams = function() {
2705
+ return this.setCashBackSearchParams(undefined);
2706
+ };
2707
+
2708
+
2709
+ /**
2710
+ * Returns whether this field is set.
2711
+ * @return {boolean}
2712
+ */
2713
+ proto.game.PaginationRequest.prototype.hasCashBackSearchParams = function() {
2714
+ return jspb.Message.getField(this, 6) != null;
2715
+ };
2716
+
2717
+
2513
2718
 
2514
2719
  /**
2515
2720
  * List of repeated fields within this message type.
@@ -3509,6 +3714,13 @@ proto.game.WagerSearchRequest.prototype.clearWagerIdsList = function() {
3509
3714
 
3510
3715
 
3511
3716
 
3717
+ /**
3718
+ * List of repeated fields within this message type.
3719
+ * @private {!Array<number>}
3720
+ * @const
3721
+ */
3722
+ proto.game.CashBackSearchRequest.repeatedFields_ = [3];
3723
+
3512
3724
 
3513
3725
 
3514
3726
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3524,8 +3736,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3524
3736
  * http://goto/soy-param-migration
3525
3737
  * @return {!Object}
3526
3738
  */
3527
- proto.game.File.prototype.toObject = function(opt_includeInstance) {
3528
- return proto.game.File.toObject(opt_includeInstance, this);
3739
+ proto.game.CashBackSearchRequest.prototype.toObject = function(opt_includeInstance) {
3740
+ return proto.game.CashBackSearchRequest.toObject(opt_includeInstance, this);
3529
3741
  };
3530
3742
 
3531
3743
 
@@ -3534,13 +3746,15 @@ proto.game.File.prototype.toObject = function(opt_includeInstance) {
3534
3746
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3535
3747
  * the JSPB instance for transitional soy proto support:
3536
3748
  * http://goto/soy-param-migration
3537
- * @param {!proto.game.File} msg The msg instance to transform.
3749
+ * @param {!proto.game.CashBackSearchRequest} msg The msg instance to transform.
3538
3750
  * @return {!Object}
3539
3751
  * @suppress {unusedLocalVariables} f is only used for nested messages
3540
3752
  */
3541
- proto.game.File.toObject = function(includeInstance, msg) {
3753
+ proto.game.CashBackSearchRequest.toObject = function(includeInstance, msg) {
3542
3754
  var f, obj = {
3543
- media: msg.getMedia_asB64()
3755
+ cashbackId: jspb.Message.getFieldWithDefault(msg, 1, 0),
3756
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
3757
+ cashbackIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3544
3758
  };
3545
3759
 
3546
3760
  if (includeInstance) {
@@ -3554,23 +3768,23 @@ proto.game.File.toObject = function(includeInstance, msg) {
3554
3768
  /**
3555
3769
  * Deserializes binary data (in protobuf wire format).
3556
3770
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3557
- * @return {!proto.game.File}
3771
+ * @return {!proto.game.CashBackSearchRequest}
3558
3772
  */
3559
- proto.game.File.deserializeBinary = function(bytes) {
3773
+ proto.game.CashBackSearchRequest.deserializeBinary = function(bytes) {
3560
3774
  var reader = new jspb.BinaryReader(bytes);
3561
- var msg = new proto.game.File;
3562
- return proto.game.File.deserializeBinaryFromReader(msg, reader);
3775
+ var msg = new proto.game.CashBackSearchRequest;
3776
+ return proto.game.CashBackSearchRequest.deserializeBinaryFromReader(msg, reader);
3563
3777
  };
3564
3778
 
3565
3779
 
3566
3780
  /**
3567
3781
  * Deserializes binary data (in protobuf wire format) from the
3568
3782
  * given reader into the given message object.
3569
- * @param {!proto.game.File} msg The message object to deserialize into.
3783
+ * @param {!proto.game.CashBackSearchRequest} msg The message object to deserialize into.
3570
3784
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3571
- * @return {!proto.game.File}
3785
+ * @return {!proto.game.CashBackSearchRequest}
3572
3786
  */
3573
- proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
3787
+ proto.game.CashBackSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
3574
3788
  while (reader.nextField()) {
3575
3789
  if (reader.isEndGroup()) {
3576
3790
  break;
@@ -3578,8 +3792,18 @@ proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
3578
3792
  var field = reader.getFieldNumber();
3579
3793
  switch (field) {
3580
3794
  case 1:
3581
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
3582
- msg.setMedia(value);
3795
+ var value = /** @type {number} */ (reader.readInt32());
3796
+ msg.setCashbackId(value);
3797
+ break;
3798
+ case 2:
3799
+ var value = /** @type {string} */ (reader.readString());
3800
+ msg.setGameTitle(value);
3801
+ break;
3802
+ case 3:
3803
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
3804
+ for (var i = 0; i < values.length; i++) {
3805
+ msg.addCashbackIds(values[i]);
3806
+ }
3583
3807
  break;
3584
3808
  default:
3585
3809
  reader.skipField();
@@ -3594,9 +3818,9 @@ proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
3594
3818
  * Serializes the message to binary data (in protobuf wire format).
3595
3819
  * @return {!Uint8Array}
3596
3820
  */
3597
- proto.game.File.prototype.serializeBinary = function() {
3821
+ proto.game.CashBackSearchRequest.prototype.serializeBinary = function() {
3598
3822
  var writer = new jspb.BinaryWriter();
3599
- proto.game.File.serializeBinaryToWriter(this, writer);
3823
+ proto.game.CashBackSearchRequest.serializeBinaryToWriter(this, writer);
3600
3824
  return writer.getResultBuffer();
3601
3825
  };
3602
3826
 
@@ -3604,70 +3828,305 @@ proto.game.File.prototype.serializeBinary = function() {
3604
3828
  /**
3605
3829
  * Serializes the given message to binary data (in protobuf wire
3606
3830
  * format), writing to the given BinaryWriter.
3607
- * @param {!proto.game.File} message
3831
+ * @param {!proto.game.CashBackSearchRequest} message
3608
3832
  * @param {!jspb.BinaryWriter} writer
3609
3833
  * @suppress {unusedLocalVariables} f is only used for nested messages
3610
3834
  */
3611
- proto.game.File.serializeBinaryToWriter = function(message, writer) {
3835
+ proto.game.CashBackSearchRequest.serializeBinaryToWriter = function(message, writer) {
3612
3836
  var f = undefined;
3613
- f = message.getMedia_asU8();
3614
- if (f.length > 0) {
3615
- writer.writeBytes(
3837
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
3838
+ if (f != null) {
3839
+ writer.writeInt32(
3616
3840
  1,
3617
3841
  f
3618
3842
  );
3619
3843
  }
3844
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3845
+ if (f != null) {
3846
+ writer.writeString(
3847
+ 2,
3848
+ f
3849
+ );
3850
+ }
3851
+ f = message.getCashbackIdsList();
3852
+ if (f.length > 0) {
3853
+ writer.writePackedInt32(
3854
+ 3,
3855
+ f
3856
+ );
3857
+ }
3620
3858
  };
3621
3859
 
3622
3860
 
3623
3861
  /**
3624
- * optional bytes media = 1;
3625
- * @return {!(string|Uint8Array)}
3862
+ * optional int32 cashback_id = 1;
3863
+ * @return {number}
3626
3864
  */
3627
- proto.game.File.prototype.getMedia = function() {
3628
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3865
+ proto.game.CashBackSearchRequest.prototype.getCashbackId = function() {
3866
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3629
3867
  };
3630
3868
 
3631
3869
 
3632
3870
  /**
3633
- * optional bytes media = 1;
3634
- * This is a type-conversion wrapper around `getMedia()`
3635
- * @return {string}
3871
+ * @param {number} value
3872
+ * @return {!proto.game.CashBackSearchRequest} returns this
3636
3873
  */
3637
- proto.game.File.prototype.getMedia_asB64 = function() {
3638
- return /** @type {string} */ (jspb.Message.bytesAsB64(
3639
- this.getMedia()));
3874
+ proto.game.CashBackSearchRequest.prototype.setCashbackId = function(value) {
3875
+ return jspb.Message.setField(this, 1, value);
3640
3876
  };
3641
3877
 
3642
3878
 
3643
3879
  /**
3644
- * optional bytes media = 1;
3645
- * Note that Uint8Array is not supported on all browsers.
3646
- * @see http://caniuse.com/Uint8Array
3647
- * This is a type-conversion wrapper around `getMedia()`
3648
- * @return {!Uint8Array}
3880
+ * Clears the field making it undefined.
3881
+ * @return {!proto.game.CashBackSearchRequest} returns this
3649
3882
  */
3650
- proto.game.File.prototype.getMedia_asU8 = function() {
3651
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3652
- this.getMedia()));
3883
+ proto.game.CashBackSearchRequest.prototype.clearCashbackId = function() {
3884
+ return jspb.Message.setField(this, 1, undefined);
3653
3885
  };
3654
3886
 
3655
3887
 
3656
3888
  /**
3657
- * @param {!(string|Uint8Array)} value
3658
- * @return {!proto.game.File} returns this
3889
+ * Returns whether this field is set.
3890
+ * @return {boolean}
3659
3891
  */
3660
- proto.game.File.prototype.setMedia = function(value) {
3661
- return jspb.Message.setProto3BytesField(this, 1, value);
3892
+ proto.game.CashBackSearchRequest.prototype.hasCashbackId = function() {
3893
+ return jspb.Message.getField(this, 1) != null;
3662
3894
  };
3663
3895
 
3664
3896
 
3897
+ /**
3898
+ * optional string game_title = 2;
3899
+ * @return {string}
3900
+ */
3901
+ proto.game.CashBackSearchRequest.prototype.getGameTitle = function() {
3902
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3903
+ };
3904
+
3665
3905
 
3906
+ /**
3907
+ * @param {string} value
3908
+ * @return {!proto.game.CashBackSearchRequest} returns this
3909
+ */
3910
+ proto.game.CashBackSearchRequest.prototype.setGameTitle = function(value) {
3911
+ return jspb.Message.setField(this, 2, value);
3912
+ };
3666
3913
 
3667
3914
 
3668
- if (jspb.Message.GENERATE_TO_OBJECT) {
3669
3915
  /**
3670
- * Creates an object representation of this proto.
3916
+ * Clears the field making it undefined.
3917
+ * @return {!proto.game.CashBackSearchRequest} returns this
3918
+ */
3919
+ proto.game.CashBackSearchRequest.prototype.clearGameTitle = function() {
3920
+ return jspb.Message.setField(this, 2, undefined);
3921
+ };
3922
+
3923
+
3924
+ /**
3925
+ * Returns whether this field is set.
3926
+ * @return {boolean}
3927
+ */
3928
+ proto.game.CashBackSearchRequest.prototype.hasGameTitle = function() {
3929
+ return jspb.Message.getField(this, 2) != null;
3930
+ };
3931
+
3932
+
3933
+ /**
3934
+ * repeated int32 cashback_ids = 3;
3935
+ * @return {!Array<number>}
3936
+ */
3937
+ proto.game.CashBackSearchRequest.prototype.getCashbackIdsList = function() {
3938
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * @param {!Array<number>} value
3944
+ * @return {!proto.game.CashBackSearchRequest} returns this
3945
+ */
3946
+ proto.game.CashBackSearchRequest.prototype.setCashbackIdsList = function(value) {
3947
+ return jspb.Message.setField(this, 3, value || []);
3948
+ };
3949
+
3950
+
3951
+ /**
3952
+ * @param {number} value
3953
+ * @param {number=} opt_index
3954
+ * @return {!proto.game.CashBackSearchRequest} returns this
3955
+ */
3956
+ proto.game.CashBackSearchRequest.prototype.addCashbackIds = function(value, opt_index) {
3957
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
3958
+ };
3959
+
3960
+
3961
+ /**
3962
+ * Clears the list making it empty but non-null.
3963
+ * @return {!proto.game.CashBackSearchRequest} returns this
3964
+ */
3965
+ proto.game.CashBackSearchRequest.prototype.clearCashbackIdsList = function() {
3966
+ return this.setCashbackIdsList([]);
3967
+ };
3968
+
3969
+
3970
+
3971
+
3972
+
3973
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3974
+ /**
3975
+ * Creates an object representation of this proto.
3976
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3977
+ * Optional fields that are not set will be set to undefined.
3978
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3979
+ * For the list of reserved names please see:
3980
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3981
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3982
+ * JSPB instance for transitional soy proto support:
3983
+ * http://goto/soy-param-migration
3984
+ * @return {!Object}
3985
+ */
3986
+ proto.game.File.prototype.toObject = function(opt_includeInstance) {
3987
+ return proto.game.File.toObject(opt_includeInstance, this);
3988
+ };
3989
+
3990
+
3991
+ /**
3992
+ * Static version of the {@see toObject} method.
3993
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3994
+ * the JSPB instance for transitional soy proto support:
3995
+ * http://goto/soy-param-migration
3996
+ * @param {!proto.game.File} msg The msg instance to transform.
3997
+ * @return {!Object}
3998
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3999
+ */
4000
+ proto.game.File.toObject = function(includeInstance, msg) {
4001
+ var f, obj = {
4002
+ media: msg.getMedia_asB64()
4003
+ };
4004
+
4005
+ if (includeInstance) {
4006
+ obj.$jspbMessageInstance = msg;
4007
+ }
4008
+ return obj;
4009
+ };
4010
+ }
4011
+
4012
+
4013
+ /**
4014
+ * Deserializes binary data (in protobuf wire format).
4015
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4016
+ * @return {!proto.game.File}
4017
+ */
4018
+ proto.game.File.deserializeBinary = function(bytes) {
4019
+ var reader = new jspb.BinaryReader(bytes);
4020
+ var msg = new proto.game.File;
4021
+ return proto.game.File.deserializeBinaryFromReader(msg, reader);
4022
+ };
4023
+
4024
+
4025
+ /**
4026
+ * Deserializes binary data (in protobuf wire format) from the
4027
+ * given reader into the given message object.
4028
+ * @param {!proto.game.File} msg The message object to deserialize into.
4029
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4030
+ * @return {!proto.game.File}
4031
+ */
4032
+ proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
4033
+ while (reader.nextField()) {
4034
+ if (reader.isEndGroup()) {
4035
+ break;
4036
+ }
4037
+ var field = reader.getFieldNumber();
4038
+ switch (field) {
4039
+ case 1:
4040
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
4041
+ msg.setMedia(value);
4042
+ break;
4043
+ default:
4044
+ reader.skipField();
4045
+ break;
4046
+ }
4047
+ }
4048
+ return msg;
4049
+ };
4050
+
4051
+
4052
+ /**
4053
+ * Serializes the message to binary data (in protobuf wire format).
4054
+ * @return {!Uint8Array}
4055
+ */
4056
+ proto.game.File.prototype.serializeBinary = function() {
4057
+ var writer = new jspb.BinaryWriter();
4058
+ proto.game.File.serializeBinaryToWriter(this, writer);
4059
+ return writer.getResultBuffer();
4060
+ };
4061
+
4062
+
4063
+ /**
4064
+ * Serializes the given message to binary data (in protobuf wire
4065
+ * format), writing to the given BinaryWriter.
4066
+ * @param {!proto.game.File} message
4067
+ * @param {!jspb.BinaryWriter} writer
4068
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4069
+ */
4070
+ proto.game.File.serializeBinaryToWriter = function(message, writer) {
4071
+ var f = undefined;
4072
+ f = message.getMedia_asU8();
4073
+ if (f.length > 0) {
4074
+ writer.writeBytes(
4075
+ 1,
4076
+ f
4077
+ );
4078
+ }
4079
+ };
4080
+
4081
+
4082
+ /**
4083
+ * optional bytes media = 1;
4084
+ * @return {!(string|Uint8Array)}
4085
+ */
4086
+ proto.game.File.prototype.getMedia = function() {
4087
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4088
+ };
4089
+
4090
+
4091
+ /**
4092
+ * optional bytes media = 1;
4093
+ * This is a type-conversion wrapper around `getMedia()`
4094
+ * @return {string}
4095
+ */
4096
+ proto.game.File.prototype.getMedia_asB64 = function() {
4097
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
4098
+ this.getMedia()));
4099
+ };
4100
+
4101
+
4102
+ /**
4103
+ * optional bytes media = 1;
4104
+ * Note that Uint8Array is not supported on all browsers.
4105
+ * @see http://caniuse.com/Uint8Array
4106
+ * This is a type-conversion wrapper around `getMedia()`
4107
+ * @return {!Uint8Array}
4108
+ */
4109
+ proto.game.File.prototype.getMedia_asU8 = function() {
4110
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
4111
+ this.getMedia()));
4112
+ };
4113
+
4114
+
4115
+ /**
4116
+ * @param {!(string|Uint8Array)} value
4117
+ * @return {!proto.game.File} returns this
4118
+ */
4119
+ proto.game.File.prototype.setMedia = function(value) {
4120
+ return jspb.Message.setProto3BytesField(this, 1, value);
4121
+ };
4122
+
4123
+
4124
+
4125
+
4126
+
4127
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4128
+ /**
4129
+ * Creates an object representation of this proto.
3671
4130
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
3672
4131
  * Optional fields that are not set will be set to undefined.
3673
4132
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
@@ -23214,6 +23673,1309 @@ proto.game.WagerListItemsResponse.prototype.hasTotalItems = function() {
23214
23673
 
23215
23674
 
23216
23675
 
23676
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23677
+ /**
23678
+ * Creates an object representation of this proto.
23679
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23680
+ * Optional fields that are not set will be set to undefined.
23681
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23682
+ * For the list of reserved names please see:
23683
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23684
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23685
+ * JSPB instance for transitional soy proto support:
23686
+ * http://goto/soy-param-migration
23687
+ * @return {!Object}
23688
+ */
23689
+ proto.game.GetCashBackListRequest.prototype.toObject = function(opt_includeInstance) {
23690
+ return proto.game.GetCashBackListRequest.toObject(opt_includeInstance, this);
23691
+ };
23692
+
23693
+
23694
+ /**
23695
+ * Static version of the {@see toObject} method.
23696
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23697
+ * the JSPB instance for transitional soy proto support:
23698
+ * http://goto/soy-param-migration
23699
+ * @param {!proto.game.GetCashBackListRequest} msg The msg instance to transform.
23700
+ * @return {!Object}
23701
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23702
+ */
23703
+ proto.game.GetCashBackListRequest.toObject = function(includeInstance, msg) {
23704
+ var f, obj = {
23705
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23706
+ onlyGames: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
23707
+ };
23708
+
23709
+ if (includeInstance) {
23710
+ obj.$jspbMessageInstance = msg;
23711
+ }
23712
+ return obj;
23713
+ };
23714
+ }
23715
+
23716
+
23717
+ /**
23718
+ * Deserializes binary data (in protobuf wire format).
23719
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23720
+ * @return {!proto.game.GetCashBackListRequest}
23721
+ */
23722
+ proto.game.GetCashBackListRequest.deserializeBinary = function(bytes) {
23723
+ var reader = new jspb.BinaryReader(bytes);
23724
+ var msg = new proto.game.GetCashBackListRequest;
23725
+ return proto.game.GetCashBackListRequest.deserializeBinaryFromReader(msg, reader);
23726
+ };
23727
+
23728
+
23729
+ /**
23730
+ * Deserializes binary data (in protobuf wire format) from the
23731
+ * given reader into the given message object.
23732
+ * @param {!proto.game.GetCashBackListRequest} msg The message object to deserialize into.
23733
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23734
+ * @return {!proto.game.GetCashBackListRequest}
23735
+ */
23736
+ proto.game.GetCashBackListRequest.deserializeBinaryFromReader = function(msg, reader) {
23737
+ while (reader.nextField()) {
23738
+ if (reader.isEndGroup()) {
23739
+ break;
23740
+ }
23741
+ var field = reader.getFieldNumber();
23742
+ switch (field) {
23743
+ case 1:
23744
+ var value = /** @type {number} */ (reader.readInt32());
23745
+ msg.setId(value);
23746
+ break;
23747
+ case 2:
23748
+ var value = /** @type {boolean} */ (reader.readBool());
23749
+ msg.setOnlyGames(value);
23750
+ break;
23751
+ default:
23752
+ reader.skipField();
23753
+ break;
23754
+ }
23755
+ }
23756
+ return msg;
23757
+ };
23758
+
23759
+
23760
+ /**
23761
+ * Serializes the message to binary data (in protobuf wire format).
23762
+ * @return {!Uint8Array}
23763
+ */
23764
+ proto.game.GetCashBackListRequest.prototype.serializeBinary = function() {
23765
+ var writer = new jspb.BinaryWriter();
23766
+ proto.game.GetCashBackListRequest.serializeBinaryToWriter(this, writer);
23767
+ return writer.getResultBuffer();
23768
+ };
23769
+
23770
+
23771
+ /**
23772
+ * Serializes the given message to binary data (in protobuf wire
23773
+ * format), writing to the given BinaryWriter.
23774
+ * @param {!proto.game.GetCashBackListRequest} message
23775
+ * @param {!jspb.BinaryWriter} writer
23776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23777
+ */
23778
+ proto.game.GetCashBackListRequest.serializeBinaryToWriter = function(message, writer) {
23779
+ var f = undefined;
23780
+ f = message.getId();
23781
+ if (f !== 0) {
23782
+ writer.writeInt32(
23783
+ 1,
23784
+ f
23785
+ );
23786
+ }
23787
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
23788
+ if (f != null) {
23789
+ writer.writeBool(
23790
+ 2,
23791
+ f
23792
+ );
23793
+ }
23794
+ };
23795
+
23796
+
23797
+ /**
23798
+ * optional int32 id = 1;
23799
+ * @return {number}
23800
+ */
23801
+ proto.game.GetCashBackListRequest.prototype.getId = function() {
23802
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23803
+ };
23804
+
23805
+
23806
+ /**
23807
+ * @param {number} value
23808
+ * @return {!proto.game.GetCashBackListRequest} returns this
23809
+ */
23810
+ proto.game.GetCashBackListRequest.prototype.setId = function(value) {
23811
+ return jspb.Message.setProto3IntField(this, 1, value);
23812
+ };
23813
+
23814
+
23815
+ /**
23816
+ * optional bool only_games = 2;
23817
+ * @return {boolean}
23818
+ */
23819
+ proto.game.GetCashBackListRequest.prototype.getOnlyGames = function() {
23820
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
23821
+ };
23822
+
23823
+
23824
+ /**
23825
+ * @param {boolean} value
23826
+ * @return {!proto.game.GetCashBackListRequest} returns this
23827
+ */
23828
+ proto.game.GetCashBackListRequest.prototype.setOnlyGames = function(value) {
23829
+ return jspb.Message.setField(this, 2, value);
23830
+ };
23831
+
23832
+
23833
+ /**
23834
+ * Clears the field making it undefined.
23835
+ * @return {!proto.game.GetCashBackListRequest} returns this
23836
+ */
23837
+ proto.game.GetCashBackListRequest.prototype.clearOnlyGames = function() {
23838
+ return jspb.Message.setField(this, 2, undefined);
23839
+ };
23840
+
23841
+
23842
+ /**
23843
+ * Returns whether this field is set.
23844
+ * @return {boolean}
23845
+ */
23846
+ proto.game.GetCashBackListRequest.prototype.hasOnlyGames = function() {
23847
+ return jspb.Message.getField(this, 2) != null;
23848
+ };
23849
+
23850
+
23851
+
23852
+
23853
+
23854
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23855
+ /**
23856
+ * Creates an object representation of this proto.
23857
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23858
+ * Optional fields that are not set will be set to undefined.
23859
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23860
+ * For the list of reserved names please see:
23861
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23862
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23863
+ * JSPB instance for transitional soy proto support:
23864
+ * http://goto/soy-param-migration
23865
+ * @return {!Object}
23866
+ */
23867
+ proto.game.CashBackListRequest.prototype.toObject = function(opt_includeInstance) {
23868
+ return proto.game.CashBackListRequest.toObject(opt_includeInstance, this);
23869
+ };
23870
+
23871
+
23872
+ /**
23873
+ * Static version of the {@see toObject} method.
23874
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23875
+ * the JSPB instance for transitional soy proto support:
23876
+ * http://goto/soy-param-migration
23877
+ * @param {!proto.game.CashBackListRequest} msg The msg instance to transform.
23878
+ * @return {!Object}
23879
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23880
+ */
23881
+ proto.game.CashBackListRequest.toObject = function(includeInstance, msg) {
23882
+ var f, obj = {
23883
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23884
+ cashbackId: jspb.Message.getFieldWithDefault(msg, 2, 0),
23885
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
23886
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
23887
+ };
23888
+
23889
+ if (includeInstance) {
23890
+ obj.$jspbMessageInstance = msg;
23891
+ }
23892
+ return obj;
23893
+ };
23894
+ }
23895
+
23896
+
23897
+ /**
23898
+ * Deserializes binary data (in protobuf wire format).
23899
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23900
+ * @return {!proto.game.CashBackListRequest}
23901
+ */
23902
+ proto.game.CashBackListRequest.deserializeBinary = function(bytes) {
23903
+ var reader = new jspb.BinaryReader(bytes);
23904
+ var msg = new proto.game.CashBackListRequest;
23905
+ return proto.game.CashBackListRequest.deserializeBinaryFromReader(msg, reader);
23906
+ };
23907
+
23908
+
23909
+ /**
23910
+ * Deserializes binary data (in protobuf wire format) from the
23911
+ * given reader into the given message object.
23912
+ * @param {!proto.game.CashBackListRequest} msg The message object to deserialize into.
23913
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23914
+ * @return {!proto.game.CashBackListRequest}
23915
+ */
23916
+ proto.game.CashBackListRequest.deserializeBinaryFromReader = function(msg, reader) {
23917
+ while (reader.nextField()) {
23918
+ if (reader.isEndGroup()) {
23919
+ break;
23920
+ }
23921
+ var field = reader.getFieldNumber();
23922
+ switch (field) {
23923
+ case 1:
23924
+ var value = /** @type {number} */ (reader.readInt32());
23925
+ msg.setId(value);
23926
+ break;
23927
+ case 2:
23928
+ var value = /** @type {number} */ (reader.readInt32());
23929
+ msg.setCashbackId(value);
23930
+ break;
23931
+ case 3:
23932
+ var value = /** @type {string} */ (reader.readString());
23933
+ msg.setTitle(value);
23934
+ break;
23935
+ case 4:
23936
+ var value = /** @type {string} */ (reader.readString());
23937
+ msg.setDescription(value);
23938
+ break;
23939
+ default:
23940
+ reader.skipField();
23941
+ break;
23942
+ }
23943
+ }
23944
+ return msg;
23945
+ };
23946
+
23947
+
23948
+ /**
23949
+ * Serializes the message to binary data (in protobuf wire format).
23950
+ * @return {!Uint8Array}
23951
+ */
23952
+ proto.game.CashBackListRequest.prototype.serializeBinary = function() {
23953
+ var writer = new jspb.BinaryWriter();
23954
+ proto.game.CashBackListRequest.serializeBinaryToWriter(this, writer);
23955
+ return writer.getResultBuffer();
23956
+ };
23957
+
23958
+
23959
+ /**
23960
+ * Serializes the given message to binary data (in protobuf wire
23961
+ * format), writing to the given BinaryWriter.
23962
+ * @param {!proto.game.CashBackListRequest} message
23963
+ * @param {!jspb.BinaryWriter} writer
23964
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23965
+ */
23966
+ proto.game.CashBackListRequest.serializeBinaryToWriter = function(message, writer) {
23967
+ var f = undefined;
23968
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
23969
+ if (f != null) {
23970
+ writer.writeInt32(
23971
+ 1,
23972
+ f
23973
+ );
23974
+ }
23975
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
23976
+ if (f != null) {
23977
+ writer.writeInt32(
23978
+ 2,
23979
+ f
23980
+ );
23981
+ }
23982
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
23983
+ if (f != null) {
23984
+ writer.writeString(
23985
+ 3,
23986
+ f
23987
+ );
23988
+ }
23989
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
23990
+ if (f != null) {
23991
+ writer.writeString(
23992
+ 4,
23993
+ f
23994
+ );
23995
+ }
23996
+ };
23997
+
23998
+
23999
+ /**
24000
+ * optional int32 id = 1;
24001
+ * @return {number}
24002
+ */
24003
+ proto.game.CashBackListRequest.prototype.getId = function() {
24004
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24005
+ };
24006
+
24007
+
24008
+ /**
24009
+ * @param {number} value
24010
+ * @return {!proto.game.CashBackListRequest} returns this
24011
+ */
24012
+ proto.game.CashBackListRequest.prototype.setId = function(value) {
24013
+ return jspb.Message.setField(this, 1, value);
24014
+ };
24015
+
24016
+
24017
+ /**
24018
+ * Clears the field making it undefined.
24019
+ * @return {!proto.game.CashBackListRequest} returns this
24020
+ */
24021
+ proto.game.CashBackListRequest.prototype.clearId = function() {
24022
+ return jspb.Message.setField(this, 1, undefined);
24023
+ };
24024
+
24025
+
24026
+ /**
24027
+ * Returns whether this field is set.
24028
+ * @return {boolean}
24029
+ */
24030
+ proto.game.CashBackListRequest.prototype.hasId = function() {
24031
+ return jspb.Message.getField(this, 1) != null;
24032
+ };
24033
+
24034
+
24035
+ /**
24036
+ * optional int32 cashback_id = 2;
24037
+ * @return {number}
24038
+ */
24039
+ proto.game.CashBackListRequest.prototype.getCashbackId = function() {
24040
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24041
+ };
24042
+
24043
+
24044
+ /**
24045
+ * @param {number} value
24046
+ * @return {!proto.game.CashBackListRequest} returns this
24047
+ */
24048
+ proto.game.CashBackListRequest.prototype.setCashbackId = function(value) {
24049
+ return jspb.Message.setField(this, 2, value);
24050
+ };
24051
+
24052
+
24053
+ /**
24054
+ * Clears the field making it undefined.
24055
+ * @return {!proto.game.CashBackListRequest} returns this
24056
+ */
24057
+ proto.game.CashBackListRequest.prototype.clearCashbackId = function() {
24058
+ return jspb.Message.setField(this, 2, undefined);
24059
+ };
24060
+
24061
+
24062
+ /**
24063
+ * Returns whether this field is set.
24064
+ * @return {boolean}
24065
+ */
24066
+ proto.game.CashBackListRequest.prototype.hasCashbackId = function() {
24067
+ return jspb.Message.getField(this, 2) != null;
24068
+ };
24069
+
24070
+
24071
+ /**
24072
+ * optional string title = 3;
24073
+ * @return {string}
24074
+ */
24075
+ proto.game.CashBackListRequest.prototype.getTitle = function() {
24076
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24077
+ };
24078
+
24079
+
24080
+ /**
24081
+ * @param {string} value
24082
+ * @return {!proto.game.CashBackListRequest} returns this
24083
+ */
24084
+ proto.game.CashBackListRequest.prototype.setTitle = function(value) {
24085
+ return jspb.Message.setField(this, 3, value);
24086
+ };
24087
+
24088
+
24089
+ /**
24090
+ * Clears the field making it undefined.
24091
+ * @return {!proto.game.CashBackListRequest} returns this
24092
+ */
24093
+ proto.game.CashBackListRequest.prototype.clearTitle = function() {
24094
+ return jspb.Message.setField(this, 3, undefined);
24095
+ };
24096
+
24097
+
24098
+ /**
24099
+ * Returns whether this field is set.
24100
+ * @return {boolean}
24101
+ */
24102
+ proto.game.CashBackListRequest.prototype.hasTitle = function() {
24103
+ return jspb.Message.getField(this, 3) != null;
24104
+ };
24105
+
24106
+
24107
+ /**
24108
+ * optional string description = 4;
24109
+ * @return {string}
24110
+ */
24111
+ proto.game.CashBackListRequest.prototype.getDescription = function() {
24112
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
24113
+ };
24114
+
24115
+
24116
+ /**
24117
+ * @param {string} value
24118
+ * @return {!proto.game.CashBackListRequest} returns this
24119
+ */
24120
+ proto.game.CashBackListRequest.prototype.setDescription = function(value) {
24121
+ return jspb.Message.setField(this, 4, value);
24122
+ };
24123
+
24124
+
24125
+ /**
24126
+ * Clears the field making it undefined.
24127
+ * @return {!proto.game.CashBackListRequest} returns this
24128
+ */
24129
+ proto.game.CashBackListRequest.prototype.clearDescription = function() {
24130
+ return jspb.Message.setField(this, 4, undefined);
24131
+ };
24132
+
24133
+
24134
+ /**
24135
+ * Returns whether this field is set.
24136
+ * @return {boolean}
24137
+ */
24138
+ proto.game.CashBackListRequest.prototype.hasDescription = function() {
24139
+ return jspb.Message.getField(this, 4) != null;
24140
+ };
24141
+
24142
+
24143
+
24144
+ /**
24145
+ * List of repeated fields within this message type.
24146
+ * @private {!Array<number>}
24147
+ * @const
24148
+ */
24149
+ proto.game.CashBackListGamesRequest.repeatedFields_ = [2];
24150
+
24151
+
24152
+
24153
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24154
+ /**
24155
+ * Creates an object representation of this proto.
24156
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24157
+ * Optional fields that are not set will be set to undefined.
24158
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24159
+ * For the list of reserved names please see:
24160
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24161
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24162
+ * JSPB instance for transitional soy proto support:
24163
+ * http://goto/soy-param-migration
24164
+ * @return {!Object}
24165
+ */
24166
+ proto.game.CashBackListGamesRequest.prototype.toObject = function(opt_includeInstance) {
24167
+ return proto.game.CashBackListGamesRequest.toObject(opt_includeInstance, this);
24168
+ };
24169
+
24170
+
24171
+ /**
24172
+ * Static version of the {@see toObject} method.
24173
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24174
+ * the JSPB instance for transitional soy proto support:
24175
+ * http://goto/soy-param-migration
24176
+ * @param {!proto.game.CashBackListGamesRequest} msg The msg instance to transform.
24177
+ * @return {!Object}
24178
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24179
+ */
24180
+ proto.game.CashBackListGamesRequest.toObject = function(includeInstance, msg) {
24181
+ var f, obj = {
24182
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
24183
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
24184
+ };
24185
+
24186
+ if (includeInstance) {
24187
+ obj.$jspbMessageInstance = msg;
24188
+ }
24189
+ return obj;
24190
+ };
24191
+ }
24192
+
24193
+
24194
+ /**
24195
+ * Deserializes binary data (in protobuf wire format).
24196
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24197
+ * @return {!proto.game.CashBackListGamesRequest}
24198
+ */
24199
+ proto.game.CashBackListGamesRequest.deserializeBinary = function(bytes) {
24200
+ var reader = new jspb.BinaryReader(bytes);
24201
+ var msg = new proto.game.CashBackListGamesRequest;
24202
+ return proto.game.CashBackListGamesRequest.deserializeBinaryFromReader(msg, reader);
24203
+ };
24204
+
24205
+
24206
+ /**
24207
+ * Deserializes binary data (in protobuf wire format) from the
24208
+ * given reader into the given message object.
24209
+ * @param {!proto.game.CashBackListGamesRequest} msg The message object to deserialize into.
24210
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24211
+ * @return {!proto.game.CashBackListGamesRequest}
24212
+ */
24213
+ proto.game.CashBackListGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
24214
+ while (reader.nextField()) {
24215
+ if (reader.isEndGroup()) {
24216
+ break;
24217
+ }
24218
+ var field = reader.getFieldNumber();
24219
+ switch (field) {
24220
+ case 1:
24221
+ var value = /** @type {number} */ (reader.readInt32());
24222
+ msg.setId(value);
24223
+ break;
24224
+ case 2:
24225
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
24226
+ for (var i = 0; i < values.length; i++) {
24227
+ msg.addGameIds(values[i]);
24228
+ }
24229
+ break;
24230
+ default:
24231
+ reader.skipField();
24232
+ break;
24233
+ }
24234
+ }
24235
+ return msg;
24236
+ };
24237
+
24238
+
24239
+ /**
24240
+ * Serializes the message to binary data (in protobuf wire format).
24241
+ * @return {!Uint8Array}
24242
+ */
24243
+ proto.game.CashBackListGamesRequest.prototype.serializeBinary = function() {
24244
+ var writer = new jspb.BinaryWriter();
24245
+ proto.game.CashBackListGamesRequest.serializeBinaryToWriter(this, writer);
24246
+ return writer.getResultBuffer();
24247
+ };
24248
+
24249
+
24250
+ /**
24251
+ * Serializes the given message to binary data (in protobuf wire
24252
+ * format), writing to the given BinaryWriter.
24253
+ * @param {!proto.game.CashBackListGamesRequest} message
24254
+ * @param {!jspb.BinaryWriter} writer
24255
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24256
+ */
24257
+ proto.game.CashBackListGamesRequest.serializeBinaryToWriter = function(message, writer) {
24258
+ var f = undefined;
24259
+ f = message.getId();
24260
+ if (f !== 0) {
24261
+ writer.writeInt32(
24262
+ 1,
24263
+ f
24264
+ );
24265
+ }
24266
+ f = message.getGameIdsList();
24267
+ if (f.length > 0) {
24268
+ writer.writePackedInt32(
24269
+ 2,
24270
+ f
24271
+ );
24272
+ }
24273
+ };
24274
+
24275
+
24276
+ /**
24277
+ * optional int32 id = 1;
24278
+ * @return {number}
24279
+ */
24280
+ proto.game.CashBackListGamesRequest.prototype.getId = function() {
24281
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24282
+ };
24283
+
24284
+
24285
+ /**
24286
+ * @param {number} value
24287
+ * @return {!proto.game.CashBackListGamesRequest} returns this
24288
+ */
24289
+ proto.game.CashBackListGamesRequest.prototype.setId = function(value) {
24290
+ return jspb.Message.setProto3IntField(this, 1, value);
24291
+ };
24292
+
24293
+
24294
+ /**
24295
+ * repeated int32 game_ids = 2;
24296
+ * @return {!Array<number>}
24297
+ */
24298
+ proto.game.CashBackListGamesRequest.prototype.getGameIdsList = function() {
24299
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
24300
+ };
24301
+
24302
+
24303
+ /**
24304
+ * @param {!Array<number>} value
24305
+ * @return {!proto.game.CashBackListGamesRequest} returns this
24306
+ */
24307
+ proto.game.CashBackListGamesRequest.prototype.setGameIdsList = function(value) {
24308
+ return jspb.Message.setField(this, 2, value || []);
24309
+ };
24310
+
24311
+
24312
+ /**
24313
+ * @param {number} value
24314
+ * @param {number=} opt_index
24315
+ * @return {!proto.game.CashBackListGamesRequest} returns this
24316
+ */
24317
+ proto.game.CashBackListGamesRequest.prototype.addGameIds = function(value, opt_index) {
24318
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
24319
+ };
24320
+
24321
+
24322
+ /**
24323
+ * Clears the list making it empty but non-null.
24324
+ * @return {!proto.game.CashBackListGamesRequest} returns this
24325
+ */
24326
+ proto.game.CashBackListGamesRequest.prototype.clearGameIdsList = function() {
24327
+ return this.setGameIdsList([]);
24328
+ };
24329
+
24330
+
24331
+
24332
+
24333
+
24334
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24335
+ /**
24336
+ * Creates an object representation of this proto.
24337
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24338
+ * Optional fields that are not set will be set to undefined.
24339
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24340
+ * For the list of reserved names please see:
24341
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24342
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24343
+ * JSPB instance for transitional soy proto support:
24344
+ * http://goto/soy-param-migration
24345
+ * @return {!Object}
24346
+ */
24347
+ proto.game.CashBackListItem.prototype.toObject = function(opt_includeInstance) {
24348
+ return proto.game.CashBackListItem.toObject(opt_includeInstance, this);
24349
+ };
24350
+
24351
+
24352
+ /**
24353
+ * Static version of the {@see toObject} method.
24354
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24355
+ * the JSPB instance for transitional soy proto support:
24356
+ * http://goto/soy-param-migration
24357
+ * @param {!proto.game.CashBackListItem} msg The msg instance to transform.
24358
+ * @return {!Object}
24359
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24360
+ */
24361
+ proto.game.CashBackListItem.toObject = function(includeInstance, msg) {
24362
+ var f, obj = {
24363
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
24364
+ cashbackId: jspb.Message.getFieldWithDefault(msg, 2, 0),
24365
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
24366
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
24367
+ };
24368
+
24369
+ if (includeInstance) {
24370
+ obj.$jspbMessageInstance = msg;
24371
+ }
24372
+ return obj;
24373
+ };
24374
+ }
24375
+
24376
+
24377
+ /**
24378
+ * Deserializes binary data (in protobuf wire format).
24379
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24380
+ * @return {!proto.game.CashBackListItem}
24381
+ */
24382
+ proto.game.CashBackListItem.deserializeBinary = function(bytes) {
24383
+ var reader = new jspb.BinaryReader(bytes);
24384
+ var msg = new proto.game.CashBackListItem;
24385
+ return proto.game.CashBackListItem.deserializeBinaryFromReader(msg, reader);
24386
+ };
24387
+
24388
+
24389
+ /**
24390
+ * Deserializes binary data (in protobuf wire format) from the
24391
+ * given reader into the given message object.
24392
+ * @param {!proto.game.CashBackListItem} msg The message object to deserialize into.
24393
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24394
+ * @return {!proto.game.CashBackListItem}
24395
+ */
24396
+ proto.game.CashBackListItem.deserializeBinaryFromReader = function(msg, reader) {
24397
+ while (reader.nextField()) {
24398
+ if (reader.isEndGroup()) {
24399
+ break;
24400
+ }
24401
+ var field = reader.getFieldNumber();
24402
+ switch (field) {
24403
+ case 1:
24404
+ var value = /** @type {number} */ (reader.readInt32());
24405
+ msg.setId(value);
24406
+ break;
24407
+ case 2:
24408
+ var value = /** @type {number} */ (reader.readInt32());
24409
+ msg.setCashbackId(value);
24410
+ break;
24411
+ case 3:
24412
+ var value = /** @type {string} */ (reader.readString());
24413
+ msg.setTitle(value);
24414
+ break;
24415
+ case 4:
24416
+ var value = /** @type {string} */ (reader.readString());
24417
+ msg.setDescription(value);
24418
+ break;
24419
+ default:
24420
+ reader.skipField();
24421
+ break;
24422
+ }
24423
+ }
24424
+ return msg;
24425
+ };
24426
+
24427
+
24428
+ /**
24429
+ * Serializes the message to binary data (in protobuf wire format).
24430
+ * @return {!Uint8Array}
24431
+ */
24432
+ proto.game.CashBackListItem.prototype.serializeBinary = function() {
24433
+ var writer = new jspb.BinaryWriter();
24434
+ proto.game.CashBackListItem.serializeBinaryToWriter(this, writer);
24435
+ return writer.getResultBuffer();
24436
+ };
24437
+
24438
+
24439
+ /**
24440
+ * Serializes the given message to binary data (in protobuf wire
24441
+ * format), writing to the given BinaryWriter.
24442
+ * @param {!proto.game.CashBackListItem} message
24443
+ * @param {!jspb.BinaryWriter} writer
24444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24445
+ */
24446
+ proto.game.CashBackListItem.serializeBinaryToWriter = function(message, writer) {
24447
+ var f = undefined;
24448
+ f = message.getId();
24449
+ if (f !== 0) {
24450
+ writer.writeInt32(
24451
+ 1,
24452
+ f
24453
+ );
24454
+ }
24455
+ f = message.getCashbackId();
24456
+ if (f !== 0) {
24457
+ writer.writeInt32(
24458
+ 2,
24459
+ f
24460
+ );
24461
+ }
24462
+ f = message.getTitle();
24463
+ if (f.length > 0) {
24464
+ writer.writeString(
24465
+ 3,
24466
+ f
24467
+ );
24468
+ }
24469
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
24470
+ if (f != null) {
24471
+ writer.writeString(
24472
+ 4,
24473
+ f
24474
+ );
24475
+ }
24476
+ };
24477
+
24478
+
24479
+ /**
24480
+ * optional int32 id = 1;
24481
+ * @return {number}
24482
+ */
24483
+ proto.game.CashBackListItem.prototype.getId = function() {
24484
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24485
+ };
24486
+
24487
+
24488
+ /**
24489
+ * @param {number} value
24490
+ * @return {!proto.game.CashBackListItem} returns this
24491
+ */
24492
+ proto.game.CashBackListItem.prototype.setId = function(value) {
24493
+ return jspb.Message.setProto3IntField(this, 1, value);
24494
+ };
24495
+
24496
+
24497
+ /**
24498
+ * optional int32 cashback_id = 2;
24499
+ * @return {number}
24500
+ */
24501
+ proto.game.CashBackListItem.prototype.getCashbackId = function() {
24502
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24503
+ };
24504
+
24505
+
24506
+ /**
24507
+ * @param {number} value
24508
+ * @return {!proto.game.CashBackListItem} returns this
24509
+ */
24510
+ proto.game.CashBackListItem.prototype.setCashbackId = function(value) {
24511
+ return jspb.Message.setProto3IntField(this, 2, value);
24512
+ };
24513
+
24514
+
24515
+ /**
24516
+ * optional string title = 3;
24517
+ * @return {string}
24518
+ */
24519
+ proto.game.CashBackListItem.prototype.getTitle = function() {
24520
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24521
+ };
24522
+
24523
+
24524
+ /**
24525
+ * @param {string} value
24526
+ * @return {!proto.game.CashBackListItem} returns this
24527
+ */
24528
+ proto.game.CashBackListItem.prototype.setTitle = function(value) {
24529
+ return jspb.Message.setProto3StringField(this, 3, value);
24530
+ };
24531
+
24532
+
24533
+ /**
24534
+ * optional string description = 4;
24535
+ * @return {string}
24536
+ */
24537
+ proto.game.CashBackListItem.prototype.getDescription = function() {
24538
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
24539
+ };
24540
+
24541
+
24542
+ /**
24543
+ * @param {string} value
24544
+ * @return {!proto.game.CashBackListItem} returns this
24545
+ */
24546
+ proto.game.CashBackListItem.prototype.setDescription = function(value) {
24547
+ return jspb.Message.setField(this, 4, value);
24548
+ };
24549
+
24550
+
24551
+ /**
24552
+ * Clears the field making it undefined.
24553
+ * @return {!proto.game.CashBackListItem} returns this
24554
+ */
24555
+ proto.game.CashBackListItem.prototype.clearDescription = function() {
24556
+ return jspb.Message.setField(this, 4, undefined);
24557
+ };
24558
+
24559
+
24560
+ /**
24561
+ * Returns whether this field is set.
24562
+ * @return {boolean}
24563
+ */
24564
+ proto.game.CashBackListItem.prototype.hasDescription = function() {
24565
+ return jspb.Message.getField(this, 4) != null;
24566
+ };
24567
+
24568
+
24569
+
24570
+
24571
+
24572
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24573
+ /**
24574
+ * Creates an object representation of this proto.
24575
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24576
+ * Optional fields that are not set will be set to undefined.
24577
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24578
+ * For the list of reserved names please see:
24579
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24580
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24581
+ * JSPB instance for transitional soy proto support:
24582
+ * http://goto/soy-param-migration
24583
+ * @return {!Object}
24584
+ */
24585
+ proto.game.CashBackListResponse.prototype.toObject = function(opt_includeInstance) {
24586
+ return proto.game.CashBackListResponse.toObject(opt_includeInstance, this);
24587
+ };
24588
+
24589
+
24590
+ /**
24591
+ * Static version of the {@see toObject} method.
24592
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24593
+ * the JSPB instance for transitional soy proto support:
24594
+ * http://goto/soy-param-migration
24595
+ * @param {!proto.game.CashBackListResponse} msg The msg instance to transform.
24596
+ * @return {!Object}
24597
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24598
+ */
24599
+ proto.game.CashBackListResponse.toObject = function(includeInstance, msg) {
24600
+ var f, obj = {
24601
+ data: (f = msg.getData()) && proto.game.CashBackListItem.toObject(includeInstance, f)
24602
+ };
24603
+
24604
+ if (includeInstance) {
24605
+ obj.$jspbMessageInstance = msg;
24606
+ }
24607
+ return obj;
24608
+ };
24609
+ }
24610
+
24611
+
24612
+ /**
24613
+ * Deserializes binary data (in protobuf wire format).
24614
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24615
+ * @return {!proto.game.CashBackListResponse}
24616
+ */
24617
+ proto.game.CashBackListResponse.deserializeBinary = function(bytes) {
24618
+ var reader = new jspb.BinaryReader(bytes);
24619
+ var msg = new proto.game.CashBackListResponse;
24620
+ return proto.game.CashBackListResponse.deserializeBinaryFromReader(msg, reader);
24621
+ };
24622
+
24623
+
24624
+ /**
24625
+ * Deserializes binary data (in protobuf wire format) from the
24626
+ * given reader into the given message object.
24627
+ * @param {!proto.game.CashBackListResponse} msg The message object to deserialize into.
24628
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24629
+ * @return {!proto.game.CashBackListResponse}
24630
+ */
24631
+ proto.game.CashBackListResponse.deserializeBinaryFromReader = function(msg, reader) {
24632
+ while (reader.nextField()) {
24633
+ if (reader.isEndGroup()) {
24634
+ break;
24635
+ }
24636
+ var field = reader.getFieldNumber();
24637
+ switch (field) {
24638
+ case 1:
24639
+ var value = new proto.game.CashBackListItem;
24640
+ reader.readMessage(value,proto.game.CashBackListItem.deserializeBinaryFromReader);
24641
+ msg.setData(value);
24642
+ break;
24643
+ default:
24644
+ reader.skipField();
24645
+ break;
24646
+ }
24647
+ }
24648
+ return msg;
24649
+ };
24650
+
24651
+
24652
+ /**
24653
+ * Serializes the message to binary data (in protobuf wire format).
24654
+ * @return {!Uint8Array}
24655
+ */
24656
+ proto.game.CashBackListResponse.prototype.serializeBinary = function() {
24657
+ var writer = new jspb.BinaryWriter();
24658
+ proto.game.CashBackListResponse.serializeBinaryToWriter(this, writer);
24659
+ return writer.getResultBuffer();
24660
+ };
24661
+
24662
+
24663
+ /**
24664
+ * Serializes the given message to binary data (in protobuf wire
24665
+ * format), writing to the given BinaryWriter.
24666
+ * @param {!proto.game.CashBackListResponse} message
24667
+ * @param {!jspb.BinaryWriter} writer
24668
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24669
+ */
24670
+ proto.game.CashBackListResponse.serializeBinaryToWriter = function(message, writer) {
24671
+ var f = undefined;
24672
+ f = message.getData();
24673
+ if (f != null) {
24674
+ writer.writeMessage(
24675
+ 1,
24676
+ f,
24677
+ proto.game.CashBackListItem.serializeBinaryToWriter
24678
+ );
24679
+ }
24680
+ };
24681
+
24682
+
24683
+ /**
24684
+ * optional CashBackListItem data = 1;
24685
+ * @return {?proto.game.CashBackListItem}
24686
+ */
24687
+ proto.game.CashBackListResponse.prototype.getData = function() {
24688
+ return /** @type{?proto.game.CashBackListItem} */ (
24689
+ jspb.Message.getWrapperField(this, proto.game.CashBackListItem, 1));
24690
+ };
24691
+
24692
+
24693
+ /**
24694
+ * @param {?proto.game.CashBackListItem|undefined} value
24695
+ * @return {!proto.game.CashBackListResponse} returns this
24696
+ */
24697
+ proto.game.CashBackListResponse.prototype.setData = function(value) {
24698
+ return jspb.Message.setWrapperField(this, 1, value);
24699
+ };
24700
+
24701
+
24702
+ /**
24703
+ * Clears the message field making it undefined.
24704
+ * @return {!proto.game.CashBackListResponse} returns this
24705
+ */
24706
+ proto.game.CashBackListResponse.prototype.clearData = function() {
24707
+ return this.setData(undefined);
24708
+ };
24709
+
24710
+
24711
+ /**
24712
+ * Returns whether this field is set.
24713
+ * @return {boolean}
24714
+ */
24715
+ proto.game.CashBackListResponse.prototype.hasData = function() {
24716
+ return jspb.Message.getField(this, 1) != null;
24717
+ };
24718
+
24719
+
24720
+
24721
+ /**
24722
+ * List of repeated fields within this message type.
24723
+ * @private {!Array<number>}
24724
+ * @const
24725
+ */
24726
+ proto.game.CashBackListItemsResponse.repeatedFields_ = [1];
24727
+
24728
+
24729
+
24730
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24731
+ /**
24732
+ * Creates an object representation of this proto.
24733
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24734
+ * Optional fields that are not set will be set to undefined.
24735
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24736
+ * For the list of reserved names please see:
24737
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24738
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24739
+ * JSPB instance for transitional soy proto support:
24740
+ * http://goto/soy-param-migration
24741
+ * @return {!Object}
24742
+ */
24743
+ proto.game.CashBackListItemsResponse.prototype.toObject = function(opt_includeInstance) {
24744
+ return proto.game.CashBackListItemsResponse.toObject(opt_includeInstance, this);
24745
+ };
24746
+
24747
+
24748
+ /**
24749
+ * Static version of the {@see toObject} method.
24750
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24751
+ * the JSPB instance for transitional soy proto support:
24752
+ * http://goto/soy-param-migration
24753
+ * @param {!proto.game.CashBackListItemsResponse} msg The msg instance to transform.
24754
+ * @return {!Object}
24755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24756
+ */
24757
+ proto.game.CashBackListItemsResponse.toObject = function(includeInstance, msg) {
24758
+ var f, obj = {
24759
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
24760
+ proto.game.CashBackListItem.toObject, includeInstance),
24761
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
24762
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
24763
+ };
24764
+
24765
+ if (includeInstance) {
24766
+ obj.$jspbMessageInstance = msg;
24767
+ }
24768
+ return obj;
24769
+ };
24770
+ }
24771
+
24772
+
24773
+ /**
24774
+ * Deserializes binary data (in protobuf wire format).
24775
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24776
+ * @return {!proto.game.CashBackListItemsResponse}
24777
+ */
24778
+ proto.game.CashBackListItemsResponse.deserializeBinary = function(bytes) {
24779
+ var reader = new jspb.BinaryReader(bytes);
24780
+ var msg = new proto.game.CashBackListItemsResponse;
24781
+ return proto.game.CashBackListItemsResponse.deserializeBinaryFromReader(msg, reader);
24782
+ };
24783
+
24784
+
24785
+ /**
24786
+ * Deserializes binary data (in protobuf wire format) from the
24787
+ * given reader into the given message object.
24788
+ * @param {!proto.game.CashBackListItemsResponse} msg The message object to deserialize into.
24789
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24790
+ * @return {!proto.game.CashBackListItemsResponse}
24791
+ */
24792
+ proto.game.CashBackListItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
24793
+ while (reader.nextField()) {
24794
+ if (reader.isEndGroup()) {
24795
+ break;
24796
+ }
24797
+ var field = reader.getFieldNumber();
24798
+ switch (field) {
24799
+ case 1:
24800
+ var value = new proto.game.CashBackListItem;
24801
+ reader.readMessage(value,proto.game.CashBackListItem.deserializeBinaryFromReader);
24802
+ msg.addItems(value);
24803
+ break;
24804
+ case 2:
24805
+ var value = /** @type {number} */ (reader.readInt32());
24806
+ msg.setTotalPages(value);
24807
+ break;
24808
+ case 3:
24809
+ var value = /** @type {number} */ (reader.readInt32());
24810
+ msg.setTotalItems(value);
24811
+ break;
24812
+ default:
24813
+ reader.skipField();
24814
+ break;
24815
+ }
24816
+ }
24817
+ return msg;
24818
+ };
24819
+
24820
+
24821
+ /**
24822
+ * Serializes the message to binary data (in protobuf wire format).
24823
+ * @return {!Uint8Array}
24824
+ */
24825
+ proto.game.CashBackListItemsResponse.prototype.serializeBinary = function() {
24826
+ var writer = new jspb.BinaryWriter();
24827
+ proto.game.CashBackListItemsResponse.serializeBinaryToWriter(this, writer);
24828
+ return writer.getResultBuffer();
24829
+ };
24830
+
24831
+
24832
+ /**
24833
+ * Serializes the given message to binary data (in protobuf wire
24834
+ * format), writing to the given BinaryWriter.
24835
+ * @param {!proto.game.CashBackListItemsResponse} message
24836
+ * @param {!jspb.BinaryWriter} writer
24837
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24838
+ */
24839
+ proto.game.CashBackListItemsResponse.serializeBinaryToWriter = function(message, writer) {
24840
+ var f = undefined;
24841
+ f = message.getItemsList();
24842
+ if (f.length > 0) {
24843
+ writer.writeRepeatedMessage(
24844
+ 1,
24845
+ f,
24846
+ proto.game.CashBackListItem.serializeBinaryToWriter
24847
+ );
24848
+ }
24849
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
24850
+ if (f != null) {
24851
+ writer.writeInt32(
24852
+ 2,
24853
+ f
24854
+ );
24855
+ }
24856
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
24857
+ if (f != null) {
24858
+ writer.writeInt32(
24859
+ 3,
24860
+ f
24861
+ );
24862
+ }
24863
+ };
24864
+
24865
+
24866
+ /**
24867
+ * repeated CashBackListItem items = 1;
24868
+ * @return {!Array<!proto.game.CashBackListItem>}
24869
+ */
24870
+ proto.game.CashBackListItemsResponse.prototype.getItemsList = function() {
24871
+ return /** @type{!Array<!proto.game.CashBackListItem>} */ (
24872
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashBackListItem, 1));
24873
+ };
24874
+
24875
+
24876
+ /**
24877
+ * @param {!Array<!proto.game.CashBackListItem>} value
24878
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24879
+ */
24880
+ proto.game.CashBackListItemsResponse.prototype.setItemsList = function(value) {
24881
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
24882
+ };
24883
+
24884
+
24885
+ /**
24886
+ * @param {!proto.game.CashBackListItem=} opt_value
24887
+ * @param {number=} opt_index
24888
+ * @return {!proto.game.CashBackListItem}
24889
+ */
24890
+ proto.game.CashBackListItemsResponse.prototype.addItems = function(opt_value, opt_index) {
24891
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CashBackListItem, opt_index);
24892
+ };
24893
+
24894
+
24895
+ /**
24896
+ * Clears the list making it empty but non-null.
24897
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24898
+ */
24899
+ proto.game.CashBackListItemsResponse.prototype.clearItemsList = function() {
24900
+ return this.setItemsList([]);
24901
+ };
24902
+
24903
+
24904
+ /**
24905
+ * optional int32 total_pages = 2;
24906
+ * @return {number}
24907
+ */
24908
+ proto.game.CashBackListItemsResponse.prototype.getTotalPages = function() {
24909
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24910
+ };
24911
+
24912
+
24913
+ /**
24914
+ * @param {number} value
24915
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24916
+ */
24917
+ proto.game.CashBackListItemsResponse.prototype.setTotalPages = function(value) {
24918
+ return jspb.Message.setField(this, 2, value);
24919
+ };
24920
+
24921
+
24922
+ /**
24923
+ * Clears the field making it undefined.
24924
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24925
+ */
24926
+ proto.game.CashBackListItemsResponse.prototype.clearTotalPages = function() {
24927
+ return jspb.Message.setField(this, 2, undefined);
24928
+ };
24929
+
24930
+
24931
+ /**
24932
+ * Returns whether this field is set.
24933
+ * @return {boolean}
24934
+ */
24935
+ proto.game.CashBackListItemsResponse.prototype.hasTotalPages = function() {
24936
+ return jspb.Message.getField(this, 2) != null;
24937
+ };
24938
+
24939
+
24940
+ /**
24941
+ * optional int32 total_items = 3;
24942
+ * @return {number}
24943
+ */
24944
+ proto.game.CashBackListItemsResponse.prototype.getTotalItems = function() {
24945
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
24946
+ };
24947
+
24948
+
24949
+ /**
24950
+ * @param {number} value
24951
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24952
+ */
24953
+ proto.game.CashBackListItemsResponse.prototype.setTotalItems = function(value) {
24954
+ return jspb.Message.setField(this, 3, value);
24955
+ };
24956
+
24957
+
24958
+ /**
24959
+ * Clears the field making it undefined.
24960
+ * @return {!proto.game.CashBackListItemsResponse} returns this
24961
+ */
24962
+ proto.game.CashBackListItemsResponse.prototype.clearTotalItems = function() {
24963
+ return jspb.Message.setField(this, 3, undefined);
24964
+ };
24965
+
24966
+
24967
+ /**
24968
+ * Returns whether this field is set.
24969
+ * @return {boolean}
24970
+ */
24971
+ proto.game.CashBackListItemsResponse.prototype.hasTotalItems = function() {
24972
+ return jspb.Message.getField(this, 3) != null;
24973
+ };
24974
+
24975
+
24976
+
24977
+
24978
+
23217
24979
  if (jspb.Message.GENERATE_TO_OBJECT) {
23218
24980
  /**
23219
24981
  * Creates an object representation of this proto.