protobuf-platform 1.1.33 → 1.1.34

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/bonus/bonus_pb.js CHANGED
@@ -23,6 +23,8 @@ var global = (function() {
23
23
 
24
24
  goog.exportSymbol('proto.bonus.ActivationRule', null, global);
25
25
  goog.exportSymbol('proto.bonus.BetsRange', null, global);
26
+ goog.exportSymbol('proto.bonus.BonusActivationRulesRequest', null, global);
27
+ goog.exportSymbol('proto.bonus.BonusBetRangesRequest', null, global);
26
28
  goog.exportSymbol('proto.bonus.BonusItem', null, global);
27
29
  goog.exportSymbol('proto.bonus.BonusItemRequest', null, global);
28
30
  goog.exportSymbol('proto.bonus.BonusItemsResponse', null, global);
@@ -30,6 +32,7 @@ goog.exportSymbol('proto.bonus.BonusRequest', null, global);
30
32
  goog.exportSymbol('proto.bonus.BonusRequest.RequestCase', null, global);
31
33
  goog.exportSymbol('proto.bonus.BonusResponse', null, global);
32
34
  goog.exportSymbol('proto.bonus.BonusReward', null, global);
35
+ goog.exportSymbol('proto.bonus.BonusRewardsRequest', null, global);
33
36
  goog.exportSymbol('proto.bonus.BonusStatus', null, global);
34
37
  goog.exportSymbol('proto.bonus.BonusStatusResponse', null, global);
35
38
  goog.exportSymbol('proto.bonus.BonusStatusesResponse', null, global);
@@ -173,6 +176,69 @@ if (goog.DEBUG && !COMPILED) {
173
176
  */
174
177
  proto.bonus.BonusRequest.displayName = 'proto.bonus.BonusRequest';
175
178
  }
179
+ /**
180
+ * Generated by JsPbCodeGenerator.
181
+ * @param {Array=} opt_data Optional initial data array, typically from a
182
+ * server response, or constructed directly in Javascript. The array is used
183
+ * in place and becomes part of the constructed object. It is not cloned.
184
+ * If no data is provided, the constructed object will be empty, but still
185
+ * valid.
186
+ * @extends {jspb.Message}
187
+ * @constructor
188
+ */
189
+ proto.bonus.BonusActivationRulesRequest = function(opt_data) {
190
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
191
+ };
192
+ goog.inherits(proto.bonus.BonusActivationRulesRequest, jspb.Message);
193
+ if (goog.DEBUG && !COMPILED) {
194
+ /**
195
+ * @public
196
+ * @override
197
+ */
198
+ proto.bonus.BonusActivationRulesRequest.displayName = 'proto.bonus.BonusActivationRulesRequest';
199
+ }
200
+ /**
201
+ * Generated by JsPbCodeGenerator.
202
+ * @param {Array=} opt_data Optional initial data array, typically from a
203
+ * server response, or constructed directly in Javascript. The array is used
204
+ * in place and becomes part of the constructed object. It is not cloned.
205
+ * If no data is provided, the constructed object will be empty, but still
206
+ * valid.
207
+ * @extends {jspb.Message}
208
+ * @constructor
209
+ */
210
+ proto.bonus.BonusRewardsRequest = function(opt_data) {
211
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
212
+ };
213
+ goog.inherits(proto.bonus.BonusRewardsRequest, jspb.Message);
214
+ if (goog.DEBUG && !COMPILED) {
215
+ /**
216
+ * @public
217
+ * @override
218
+ */
219
+ proto.bonus.BonusRewardsRequest.displayName = 'proto.bonus.BonusRewardsRequest';
220
+ }
221
+ /**
222
+ * Generated by JsPbCodeGenerator.
223
+ * @param {Array=} opt_data Optional initial data array, typically from a
224
+ * server response, or constructed directly in Javascript. The array is used
225
+ * in place and becomes part of the constructed object. It is not cloned.
226
+ * If no data is provided, the constructed object will be empty, but still
227
+ * valid.
228
+ * @extends {jspb.Message}
229
+ * @constructor
230
+ */
231
+ proto.bonus.BonusBetRangesRequest = function(opt_data) {
232
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
233
+ };
234
+ goog.inherits(proto.bonus.BonusBetRangesRequest, jspb.Message);
235
+ if (goog.DEBUG && !COMPILED) {
236
+ /**
237
+ * @public
238
+ * @override
239
+ */
240
+ proto.bonus.BonusBetRangesRequest.displayName = 'proto.bonus.BonusBetRangesRequest';
241
+ }
176
242
  /**
177
243
  * Generated by JsPbCodeGenerator.
178
244
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -247,7 +313,7 @@ if (goog.DEBUG && !COMPILED) {
247
313
  * @constructor
248
314
  */
249
315
  proto.bonus.BonusItemRequest = function(opt_data) {
250
- jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusItemRequest.repeatedFields_, null);
316
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
251
317
  };
252
318
  goog.inherits(proto.bonus.BonusItemRequest, jspb.Message);
253
319
  if (goog.DEBUG && !COMPILED) {
@@ -1601,8 +1667,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1601
1667
  * http://goto/soy-param-migration
1602
1668
  * @return {!Object}
1603
1669
  */
1604
- proto.bonus.ActivationRule.prototype.toObject = function(opt_includeInstance) {
1605
- return proto.bonus.ActivationRule.toObject(opt_includeInstance, this);
1670
+ proto.bonus.BonusActivationRulesRequest.prototype.toObject = function(opt_includeInstance) {
1671
+ return proto.bonus.BonusActivationRulesRequest.toObject(opt_includeInstance, this);
1606
1672
  };
1607
1673
 
1608
1674
 
@@ -1611,15 +1677,16 @@ proto.bonus.ActivationRule.prototype.toObject = function(opt_includeInstance) {
1611
1677
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1612
1678
  * the JSPB instance for transitional soy proto support:
1613
1679
  * http://goto/soy-param-migration
1614
- * @param {!proto.bonus.ActivationRule} msg The msg instance to transform.
1680
+ * @param {!proto.bonus.BonusActivationRulesRequest} msg The msg instance to transform.
1615
1681
  * @return {!Object}
1616
1682
  * @suppress {unusedLocalVariables} f is only used for nested messages
1617
1683
  */
1618
- proto.bonus.ActivationRule.toObject = function(includeInstance, msg) {
1684
+ proto.bonus.BonusActivationRulesRequest.toObject = function(includeInstance, msg) {
1619
1685
  var f, obj = {
1620
- type: jspb.Message.getFieldWithDefault(msg, 1, ""),
1686
+ bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1621
1687
  currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
1622
- config: jspb.Message.getFieldWithDefault(msg, 3, "")
1688
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
1689
+ config: jspb.Message.getFieldWithDefault(msg, 4, "")
1623
1690
  };
1624
1691
 
1625
1692
  if (includeInstance) {
@@ -1633,23 +1700,23 @@ proto.bonus.ActivationRule.toObject = function(includeInstance, msg) {
1633
1700
  /**
1634
1701
  * Deserializes binary data (in protobuf wire format).
1635
1702
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1636
- * @return {!proto.bonus.ActivationRule}
1703
+ * @return {!proto.bonus.BonusActivationRulesRequest}
1637
1704
  */
1638
- proto.bonus.ActivationRule.deserializeBinary = function(bytes) {
1705
+ proto.bonus.BonusActivationRulesRequest.deserializeBinary = function(bytes) {
1639
1706
  var reader = new jspb.BinaryReader(bytes);
1640
- var msg = new proto.bonus.ActivationRule;
1641
- return proto.bonus.ActivationRule.deserializeBinaryFromReader(msg, reader);
1707
+ var msg = new proto.bonus.BonusActivationRulesRequest;
1708
+ return proto.bonus.BonusActivationRulesRequest.deserializeBinaryFromReader(msg, reader);
1642
1709
  };
1643
1710
 
1644
1711
 
1645
1712
  /**
1646
1713
  * Deserializes binary data (in protobuf wire format) from the
1647
1714
  * given reader into the given message object.
1648
- * @param {!proto.bonus.ActivationRule} msg The message object to deserialize into.
1715
+ * @param {!proto.bonus.BonusActivationRulesRequest} msg The message object to deserialize into.
1649
1716
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1650
- * @return {!proto.bonus.ActivationRule}
1717
+ * @return {!proto.bonus.BonusActivationRulesRequest}
1651
1718
  */
1652
- proto.bonus.ActivationRule.deserializeBinaryFromReader = function(msg, reader) {
1719
+ proto.bonus.BonusActivationRulesRequest.deserializeBinaryFromReader = function(msg, reader) {
1653
1720
  while (reader.nextField()) {
1654
1721
  if (reader.isEndGroup()) {
1655
1722
  break;
@@ -1657,14 +1724,18 @@ proto.bonus.ActivationRule.deserializeBinaryFromReader = function(msg, reader) {
1657
1724
  var field = reader.getFieldNumber();
1658
1725
  switch (field) {
1659
1726
  case 1:
1660
- var value = /** @type {string} */ (reader.readString());
1661
- msg.setType(value);
1727
+ var value = /** @type {number} */ (reader.readInt32());
1728
+ msg.setBonusId(value);
1662
1729
  break;
1663
1730
  case 2:
1664
1731
  var value = /** @type {string} */ (reader.readString());
1665
1732
  msg.setCurrency(value);
1666
1733
  break;
1667
1734
  case 3:
1735
+ var value = /** @type {string} */ (reader.readString());
1736
+ msg.setType(value);
1737
+ break;
1738
+ case 4:
1668
1739
  var value = /** @type {string} */ (reader.readString());
1669
1740
  msg.setConfig(value);
1670
1741
  break;
@@ -1681,9 +1752,9 @@ proto.bonus.ActivationRule.deserializeBinaryFromReader = function(msg, reader) {
1681
1752
  * Serializes the message to binary data (in protobuf wire format).
1682
1753
  * @return {!Uint8Array}
1683
1754
  */
1684
- proto.bonus.ActivationRule.prototype.serializeBinary = function() {
1755
+ proto.bonus.BonusActivationRulesRequest.prototype.serializeBinary = function() {
1685
1756
  var writer = new jspb.BinaryWriter();
1686
- proto.bonus.ActivationRule.serializeBinaryToWriter(this, writer);
1757
+ proto.bonus.BonusActivationRulesRequest.serializeBinaryToWriter(this, writer);
1687
1758
  return writer.getResultBuffer();
1688
1759
  };
1689
1760
 
@@ -1691,15 +1762,15 @@ proto.bonus.ActivationRule.prototype.serializeBinary = function() {
1691
1762
  /**
1692
1763
  * Serializes the given message to binary data (in protobuf wire
1693
1764
  * format), writing to the given BinaryWriter.
1694
- * @param {!proto.bonus.ActivationRule} message
1765
+ * @param {!proto.bonus.BonusActivationRulesRequest} message
1695
1766
  * @param {!jspb.BinaryWriter} writer
1696
1767
  * @suppress {unusedLocalVariables} f is only used for nested messages
1697
1768
  */
1698
- proto.bonus.ActivationRule.serializeBinaryToWriter = function(message, writer) {
1769
+ proto.bonus.BonusActivationRulesRequest.serializeBinaryToWriter = function(message, writer) {
1699
1770
  var f = undefined;
1700
- f = message.getType();
1701
- if (f.length > 0) {
1702
- writer.writeString(
1771
+ f = message.getBonusId();
1772
+ if (f !== 0) {
1773
+ writer.writeInt32(
1703
1774
  1,
1704
1775
  f
1705
1776
  );
@@ -1711,31 +1782,38 @@ proto.bonus.ActivationRule.serializeBinaryToWriter = function(message, writer) {
1711
1782
  f
1712
1783
  );
1713
1784
  }
1714
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
1715
- if (f != null) {
1785
+ f = message.getType();
1786
+ if (f.length > 0) {
1716
1787
  writer.writeString(
1717
1788
  3,
1718
1789
  f
1719
1790
  );
1720
1791
  }
1792
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
1793
+ if (f != null) {
1794
+ writer.writeString(
1795
+ 4,
1796
+ f
1797
+ );
1798
+ }
1721
1799
  };
1722
1800
 
1723
1801
 
1724
1802
  /**
1725
- * optional string type = 1;
1726
- * @return {string}
1803
+ * optional int32 bonus_id = 1;
1804
+ * @return {number}
1727
1805
  */
1728
- proto.bonus.ActivationRule.prototype.getType = function() {
1729
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1806
+ proto.bonus.BonusActivationRulesRequest.prototype.getBonusId = function() {
1807
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1730
1808
  };
1731
1809
 
1732
1810
 
1733
1811
  /**
1734
- * @param {string} value
1735
- * @return {!proto.bonus.ActivationRule} returns this
1812
+ * @param {number} value
1813
+ * @return {!proto.bonus.BonusActivationRulesRequest} returns this
1736
1814
  */
1737
- proto.bonus.ActivationRule.prototype.setType = function(value) {
1738
- return jspb.Message.setProto3StringField(this, 1, value);
1815
+ proto.bonus.BonusActivationRulesRequest.prototype.setBonusId = function(value) {
1816
+ return jspb.Message.setProto3IntField(this, 1, value);
1739
1817
  };
1740
1818
 
1741
1819
 
@@ -1743,44 +1821,62 @@ proto.bonus.ActivationRule.prototype.setType = function(value) {
1743
1821
  * optional string currency = 2;
1744
1822
  * @return {string}
1745
1823
  */
1746
- proto.bonus.ActivationRule.prototype.getCurrency = function() {
1824
+ proto.bonus.BonusActivationRulesRequest.prototype.getCurrency = function() {
1747
1825
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1748
1826
  };
1749
1827
 
1750
1828
 
1751
1829
  /**
1752
1830
  * @param {string} value
1753
- * @return {!proto.bonus.ActivationRule} returns this
1831
+ * @return {!proto.bonus.BonusActivationRulesRequest} returns this
1754
1832
  */
1755
- proto.bonus.ActivationRule.prototype.setCurrency = function(value) {
1833
+ proto.bonus.BonusActivationRulesRequest.prototype.setCurrency = function(value) {
1756
1834
  return jspb.Message.setProto3StringField(this, 2, value);
1757
1835
  };
1758
1836
 
1759
1837
 
1760
1838
  /**
1761
- * optional string config = 3;
1839
+ * optional string type = 3;
1762
1840
  * @return {string}
1763
1841
  */
1764
- proto.bonus.ActivationRule.prototype.getConfig = function() {
1842
+ proto.bonus.BonusActivationRulesRequest.prototype.getType = function() {
1765
1843
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1766
1844
  };
1767
1845
 
1768
1846
 
1769
1847
  /**
1770
1848
  * @param {string} value
1771
- * @return {!proto.bonus.ActivationRule} returns this
1849
+ * @return {!proto.bonus.BonusActivationRulesRequest} returns this
1772
1850
  */
1773
- proto.bonus.ActivationRule.prototype.setConfig = function(value) {
1774
- return jspb.Message.setField(this, 3, value);
1851
+ proto.bonus.BonusActivationRulesRequest.prototype.setType = function(value) {
1852
+ return jspb.Message.setProto3StringField(this, 3, value);
1853
+ };
1854
+
1855
+
1856
+ /**
1857
+ * optional string config = 4;
1858
+ * @return {string}
1859
+ */
1860
+ proto.bonus.BonusActivationRulesRequest.prototype.getConfig = function() {
1861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1862
+ };
1863
+
1864
+
1865
+ /**
1866
+ * @param {string} value
1867
+ * @return {!proto.bonus.BonusActivationRulesRequest} returns this
1868
+ */
1869
+ proto.bonus.BonusActivationRulesRequest.prototype.setConfig = function(value) {
1870
+ return jspb.Message.setField(this, 4, value);
1775
1871
  };
1776
1872
 
1777
1873
 
1778
1874
  /**
1779
1875
  * Clears the field making it undefined.
1780
- * @return {!proto.bonus.ActivationRule} returns this
1876
+ * @return {!proto.bonus.BonusActivationRulesRequest} returns this
1781
1877
  */
1782
- proto.bonus.ActivationRule.prototype.clearConfig = function() {
1783
- return jspb.Message.setField(this, 3, undefined);
1878
+ proto.bonus.BonusActivationRulesRequest.prototype.clearConfig = function() {
1879
+ return jspb.Message.setField(this, 4, undefined);
1784
1880
  };
1785
1881
 
1786
1882
 
@@ -1788,8 +1884,8 @@ proto.bonus.ActivationRule.prototype.clearConfig = function() {
1788
1884
  * Returns whether this field is set.
1789
1885
  * @return {boolean}
1790
1886
  */
1791
- proto.bonus.ActivationRule.prototype.hasConfig = function() {
1792
- return jspb.Message.getField(this, 3) != null;
1887
+ proto.bonus.BonusActivationRulesRequest.prototype.hasConfig = function() {
1888
+ return jspb.Message.getField(this, 4) != null;
1793
1889
  };
1794
1890
 
1795
1891
 
@@ -1809,8 +1905,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1809
1905
  * http://goto/soy-param-migration
1810
1906
  * @return {!Object}
1811
1907
  */
1812
- proto.bonus.BonusReward.prototype.toObject = function(opt_includeInstance) {
1813
- return proto.bonus.BonusReward.toObject(opt_includeInstance, this);
1908
+ proto.bonus.BonusRewardsRequest.prototype.toObject = function(opt_includeInstance) {
1909
+ return proto.bonus.BonusRewardsRequest.toObject(opt_includeInstance, this);
1814
1910
  };
1815
1911
 
1816
1912
 
@@ -1819,15 +1915,16 @@ proto.bonus.BonusReward.prototype.toObject = function(opt_includeInstance) {
1819
1915
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1820
1916
  * the JSPB instance for transitional soy proto support:
1821
1917
  * http://goto/soy-param-migration
1822
- * @param {!proto.bonus.BonusReward} msg The msg instance to transform.
1918
+ * @param {!proto.bonus.BonusRewardsRequest} msg The msg instance to transform.
1823
1919
  * @return {!Object}
1824
1920
  * @suppress {unusedLocalVariables} f is only used for nested messages
1825
1921
  */
1826
- proto.bonus.BonusReward.toObject = function(includeInstance, msg) {
1922
+ proto.bonus.BonusRewardsRequest.toObject = function(includeInstance, msg) {
1827
1923
  var f, obj = {
1828
- type: jspb.Message.getFieldWithDefault(msg, 1, ""),
1924
+ bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1829
1925
  currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
1830
- config: jspb.Message.getFieldWithDefault(msg, 3, "")
1926
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
1927
+ config: jspb.Message.getFieldWithDefault(msg, 4, "")
1831
1928
  };
1832
1929
 
1833
1930
  if (includeInstance) {
@@ -1841,23 +1938,23 @@ proto.bonus.BonusReward.toObject = function(includeInstance, msg) {
1841
1938
  /**
1842
1939
  * Deserializes binary data (in protobuf wire format).
1843
1940
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1844
- * @return {!proto.bonus.BonusReward}
1941
+ * @return {!proto.bonus.BonusRewardsRequest}
1845
1942
  */
1846
- proto.bonus.BonusReward.deserializeBinary = function(bytes) {
1943
+ proto.bonus.BonusRewardsRequest.deserializeBinary = function(bytes) {
1847
1944
  var reader = new jspb.BinaryReader(bytes);
1848
- var msg = new proto.bonus.BonusReward;
1849
- return proto.bonus.BonusReward.deserializeBinaryFromReader(msg, reader);
1945
+ var msg = new proto.bonus.BonusRewardsRequest;
1946
+ return proto.bonus.BonusRewardsRequest.deserializeBinaryFromReader(msg, reader);
1850
1947
  };
1851
1948
 
1852
1949
 
1853
1950
  /**
1854
1951
  * Deserializes binary data (in protobuf wire format) from the
1855
1952
  * given reader into the given message object.
1856
- * @param {!proto.bonus.BonusReward} msg The message object to deserialize into.
1953
+ * @param {!proto.bonus.BonusRewardsRequest} msg The message object to deserialize into.
1857
1954
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1858
- * @return {!proto.bonus.BonusReward}
1955
+ * @return {!proto.bonus.BonusRewardsRequest}
1859
1956
  */
1860
- proto.bonus.BonusReward.deserializeBinaryFromReader = function(msg, reader) {
1957
+ proto.bonus.BonusRewardsRequest.deserializeBinaryFromReader = function(msg, reader) {
1861
1958
  while (reader.nextField()) {
1862
1959
  if (reader.isEndGroup()) {
1863
1960
  break;
@@ -1865,14 +1962,18 @@ proto.bonus.BonusReward.deserializeBinaryFromReader = function(msg, reader) {
1865
1962
  var field = reader.getFieldNumber();
1866
1963
  switch (field) {
1867
1964
  case 1:
1868
- var value = /** @type {string} */ (reader.readString());
1869
- msg.setType(value);
1965
+ var value = /** @type {number} */ (reader.readInt32());
1966
+ msg.setBonusId(value);
1870
1967
  break;
1871
1968
  case 2:
1872
1969
  var value = /** @type {string} */ (reader.readString());
1873
1970
  msg.setCurrency(value);
1874
1971
  break;
1875
1972
  case 3:
1973
+ var value = /** @type {string} */ (reader.readString());
1974
+ msg.setType(value);
1975
+ break;
1976
+ case 4:
1876
1977
  var value = /** @type {string} */ (reader.readString());
1877
1978
  msg.setConfig(value);
1878
1979
  break;
@@ -1889,9 +1990,9 @@ proto.bonus.BonusReward.deserializeBinaryFromReader = function(msg, reader) {
1889
1990
  * Serializes the message to binary data (in protobuf wire format).
1890
1991
  * @return {!Uint8Array}
1891
1992
  */
1892
- proto.bonus.BonusReward.prototype.serializeBinary = function() {
1993
+ proto.bonus.BonusRewardsRequest.prototype.serializeBinary = function() {
1893
1994
  var writer = new jspb.BinaryWriter();
1894
- proto.bonus.BonusReward.serializeBinaryToWriter(this, writer);
1995
+ proto.bonus.BonusRewardsRequest.serializeBinaryToWriter(this, writer);
1895
1996
  return writer.getResultBuffer();
1896
1997
  };
1897
1998
 
@@ -1899,15 +2000,15 @@ proto.bonus.BonusReward.prototype.serializeBinary = function() {
1899
2000
  /**
1900
2001
  * Serializes the given message to binary data (in protobuf wire
1901
2002
  * format), writing to the given BinaryWriter.
1902
- * @param {!proto.bonus.BonusReward} message
2003
+ * @param {!proto.bonus.BonusRewardsRequest} message
1903
2004
  * @param {!jspb.BinaryWriter} writer
1904
2005
  * @suppress {unusedLocalVariables} f is only used for nested messages
1905
2006
  */
1906
- proto.bonus.BonusReward.serializeBinaryToWriter = function(message, writer) {
2007
+ proto.bonus.BonusRewardsRequest.serializeBinaryToWriter = function(message, writer) {
1907
2008
  var f = undefined;
1908
- f = message.getType();
1909
- if (f.length > 0) {
1910
- writer.writeString(
2009
+ f = message.getBonusId();
2010
+ if (f !== 0) {
2011
+ writer.writeInt32(
1911
2012
  1,
1912
2013
  f
1913
2014
  );
@@ -1919,31 +2020,38 @@ proto.bonus.BonusReward.serializeBinaryToWriter = function(message, writer) {
1919
2020
  f
1920
2021
  );
1921
2022
  }
1922
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
1923
- if (f != null) {
2023
+ f = message.getType();
2024
+ if (f.length > 0) {
1924
2025
  writer.writeString(
1925
2026
  3,
1926
2027
  f
1927
2028
  );
1928
2029
  }
2030
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2031
+ if (f != null) {
2032
+ writer.writeString(
2033
+ 4,
2034
+ f
2035
+ );
2036
+ }
1929
2037
  };
1930
2038
 
1931
2039
 
1932
2040
  /**
1933
- * optional string type = 1;
1934
- * @return {string}
2041
+ * optional int32 bonus_id = 1;
2042
+ * @return {number}
1935
2043
  */
1936
- proto.bonus.BonusReward.prototype.getType = function() {
1937
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2044
+ proto.bonus.BonusRewardsRequest.prototype.getBonusId = function() {
2045
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1938
2046
  };
1939
2047
 
1940
2048
 
1941
2049
  /**
1942
- * @param {string} value
1943
- * @return {!proto.bonus.BonusReward} returns this
2050
+ * @param {number} value
2051
+ * @return {!proto.bonus.BonusRewardsRequest} returns this
1944
2052
  */
1945
- proto.bonus.BonusReward.prototype.setType = function(value) {
1946
- return jspb.Message.setProto3StringField(this, 1, value);
2053
+ proto.bonus.BonusRewardsRequest.prototype.setBonusId = function(value) {
2054
+ return jspb.Message.setProto3IntField(this, 1, value);
1947
2055
  };
1948
2056
 
1949
2057
 
@@ -1951,44 +2059,62 @@ proto.bonus.BonusReward.prototype.setType = function(value) {
1951
2059
  * optional string currency = 2;
1952
2060
  * @return {string}
1953
2061
  */
1954
- proto.bonus.BonusReward.prototype.getCurrency = function() {
2062
+ proto.bonus.BonusRewardsRequest.prototype.getCurrency = function() {
1955
2063
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1956
2064
  };
1957
2065
 
1958
2066
 
1959
2067
  /**
1960
2068
  * @param {string} value
1961
- * @return {!proto.bonus.BonusReward} returns this
2069
+ * @return {!proto.bonus.BonusRewardsRequest} returns this
1962
2070
  */
1963
- proto.bonus.BonusReward.prototype.setCurrency = function(value) {
2071
+ proto.bonus.BonusRewardsRequest.prototype.setCurrency = function(value) {
1964
2072
  return jspb.Message.setProto3StringField(this, 2, value);
1965
2073
  };
1966
2074
 
1967
2075
 
1968
2076
  /**
1969
- * optional string config = 3;
2077
+ * optional string type = 3;
1970
2078
  * @return {string}
1971
2079
  */
1972
- proto.bonus.BonusReward.prototype.getConfig = function() {
2080
+ proto.bonus.BonusRewardsRequest.prototype.getType = function() {
1973
2081
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1974
2082
  };
1975
2083
 
1976
2084
 
1977
2085
  /**
1978
2086
  * @param {string} value
1979
- * @return {!proto.bonus.BonusReward} returns this
2087
+ * @return {!proto.bonus.BonusRewardsRequest} returns this
1980
2088
  */
1981
- proto.bonus.BonusReward.prototype.setConfig = function(value) {
1982
- return jspb.Message.setField(this, 3, value);
2089
+ proto.bonus.BonusRewardsRequest.prototype.setType = function(value) {
2090
+ return jspb.Message.setProto3StringField(this, 3, value);
2091
+ };
2092
+
2093
+
2094
+ /**
2095
+ * optional string config = 4;
2096
+ * @return {string}
2097
+ */
2098
+ proto.bonus.BonusRewardsRequest.prototype.getConfig = function() {
2099
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2100
+ };
2101
+
2102
+
2103
+ /**
2104
+ * @param {string} value
2105
+ * @return {!proto.bonus.BonusRewardsRequest} returns this
2106
+ */
2107
+ proto.bonus.BonusRewardsRequest.prototype.setConfig = function(value) {
2108
+ return jspb.Message.setField(this, 4, value);
1983
2109
  };
1984
2110
 
1985
2111
 
1986
2112
  /**
1987
2113
  * Clears the field making it undefined.
1988
- * @return {!proto.bonus.BonusReward} returns this
2114
+ * @return {!proto.bonus.BonusRewardsRequest} returns this
1989
2115
  */
1990
- proto.bonus.BonusReward.prototype.clearConfig = function() {
1991
- return jspb.Message.setField(this, 3, undefined);
2116
+ proto.bonus.BonusRewardsRequest.prototype.clearConfig = function() {
2117
+ return jspb.Message.setField(this, 4, undefined);
1992
2118
  };
1993
2119
 
1994
2120
 
@@ -1996,8 +2122,8 @@ proto.bonus.BonusReward.prototype.clearConfig = function() {
1996
2122
  * Returns whether this field is set.
1997
2123
  * @return {boolean}
1998
2124
  */
1999
- proto.bonus.BonusReward.prototype.hasConfig = function() {
2000
- return jspb.Message.getField(this, 3) != null;
2125
+ proto.bonus.BonusRewardsRequest.prototype.hasConfig = function() {
2126
+ return jspb.Message.getField(this, 4) != null;
2001
2127
  };
2002
2128
 
2003
2129
 
@@ -2017,8 +2143,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2017
2143
  * http://goto/soy-param-migration
2018
2144
  * @return {!Object}
2019
2145
  */
2020
- proto.bonus.BetsRange.prototype.toObject = function(opt_includeInstance) {
2021
- return proto.bonus.BetsRange.toObject(opt_includeInstance, this);
2146
+ proto.bonus.BonusBetRangesRequest.prototype.toObject = function(opt_includeInstance) {
2147
+ return proto.bonus.BonusBetRangesRequest.toObject(opt_includeInstance, this);
2022
2148
  };
2023
2149
 
2024
2150
 
@@ -2027,15 +2153,17 @@ proto.bonus.BetsRange.prototype.toObject = function(opt_includeInstance) {
2027
2153
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2028
2154
  * the JSPB instance for transitional soy proto support:
2029
2155
  * http://goto/soy-param-migration
2030
- * @param {!proto.bonus.BetsRange} msg The msg instance to transform.
2156
+ * @param {!proto.bonus.BonusBetRangesRequest} msg The msg instance to transform.
2031
2157
  * @return {!Object}
2032
2158
  * @suppress {unusedLocalVariables} f is only used for nested messages
2033
2159
  */
2034
- proto.bonus.BetsRange.toObject = function(includeInstance, msg) {
2160
+ proto.bonus.BonusBetRangesRequest.toObject = function(includeInstance, msg) {
2035
2161
  var f, obj = {
2036
- currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
2037
- min: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2038
- max: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
2162
+ bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
2163
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
2164
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
2165
+ min: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2166
+ max: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
2039
2167
  };
2040
2168
 
2041
2169
  if (includeInstance) {
@@ -2049,23 +2177,23 @@ proto.bonus.BetsRange.toObject = function(includeInstance, msg) {
2049
2177
  /**
2050
2178
  * Deserializes binary data (in protobuf wire format).
2051
2179
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2052
- * @return {!proto.bonus.BetsRange}
2180
+ * @return {!proto.bonus.BonusBetRangesRequest}
2053
2181
  */
2054
- proto.bonus.BetsRange.deserializeBinary = function(bytes) {
2182
+ proto.bonus.BonusBetRangesRequest.deserializeBinary = function(bytes) {
2055
2183
  var reader = new jspb.BinaryReader(bytes);
2056
- var msg = new proto.bonus.BetsRange;
2057
- return proto.bonus.BetsRange.deserializeBinaryFromReader(msg, reader);
2184
+ var msg = new proto.bonus.BonusBetRangesRequest;
2185
+ return proto.bonus.BonusBetRangesRequest.deserializeBinaryFromReader(msg, reader);
2058
2186
  };
2059
2187
 
2060
2188
 
2061
2189
  /**
2062
2190
  * Deserializes binary data (in protobuf wire format) from the
2063
2191
  * given reader into the given message object.
2064
- * @param {!proto.bonus.BetsRange} msg The message object to deserialize into.
2192
+ * @param {!proto.bonus.BonusBetRangesRequest} msg The message object to deserialize into.
2065
2193
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2066
- * @return {!proto.bonus.BetsRange}
2194
+ * @return {!proto.bonus.BonusBetRangesRequest}
2067
2195
  */
2068
- proto.bonus.BetsRange.deserializeBinaryFromReader = function(msg, reader) {
2196
+ proto.bonus.BonusBetRangesRequest.deserializeBinaryFromReader = function(msg, reader) {
2069
2197
  while (reader.nextField()) {
2070
2198
  if (reader.isEndGroup()) {
2071
2199
  break;
@@ -2073,14 +2201,22 @@ proto.bonus.BetsRange.deserializeBinaryFromReader = function(msg, reader) {
2073
2201
  var field = reader.getFieldNumber();
2074
2202
  switch (field) {
2075
2203
  case 1:
2204
+ var value = /** @type {number} */ (reader.readInt32());
2205
+ msg.setBonusId(value);
2206
+ break;
2207
+ case 2:
2076
2208
  var value = /** @type {string} */ (reader.readString());
2077
2209
  msg.setCurrency(value);
2078
2210
  break;
2079
- case 2:
2211
+ case 3:
2212
+ var value = /** @type {string} */ (reader.readString());
2213
+ msg.setType(value);
2214
+ break;
2215
+ case 4:
2080
2216
  var value = /** @type {number} */ (reader.readFloat());
2081
2217
  msg.setMin(value);
2082
2218
  break;
2083
- case 3:
2219
+ case 5:
2084
2220
  var value = /** @type {number} */ (reader.readFloat());
2085
2221
  msg.setMax(value);
2086
2222
  break;
@@ -2097,9 +2233,9 @@ proto.bonus.BetsRange.deserializeBinaryFromReader = function(msg, reader) {
2097
2233
  * Serializes the message to binary data (in protobuf wire format).
2098
2234
  * @return {!Uint8Array}
2099
2235
  */
2100
- proto.bonus.BetsRange.prototype.serializeBinary = function() {
2236
+ proto.bonus.BonusBetRangesRequest.prototype.serializeBinary = function() {
2101
2237
  var writer = new jspb.BinaryWriter();
2102
- proto.bonus.BetsRange.serializeBinaryToWriter(this, writer);
2238
+ proto.bonus.BonusBetRangesRequest.serializeBinaryToWriter(this, writer);
2103
2239
  return writer.getResultBuffer();
2104
2240
  };
2105
2241
 
@@ -2107,16 +2243,708 @@ proto.bonus.BetsRange.prototype.serializeBinary = function() {
2107
2243
  /**
2108
2244
  * Serializes the given message to binary data (in protobuf wire
2109
2245
  * format), writing to the given BinaryWriter.
2110
- * @param {!proto.bonus.BetsRange} message
2246
+ * @param {!proto.bonus.BonusBetRangesRequest} message
2111
2247
  * @param {!jspb.BinaryWriter} writer
2112
2248
  * @suppress {unusedLocalVariables} f is only used for nested messages
2113
2249
  */
2114
- proto.bonus.BetsRange.serializeBinaryToWriter = function(message, writer) {
2250
+ proto.bonus.BonusBetRangesRequest.serializeBinaryToWriter = function(message, writer) {
2115
2251
  var f = undefined;
2116
- f = message.getCurrency();
2117
- if (f.length > 0) {
2118
- writer.writeString(
2119
- 1,
2252
+ f = message.getBonusId();
2253
+ if (f !== 0) {
2254
+ writer.writeInt32(
2255
+ 1,
2256
+ f
2257
+ );
2258
+ }
2259
+ f = message.getCurrency();
2260
+ if (f.length > 0) {
2261
+ writer.writeString(
2262
+ 2,
2263
+ f
2264
+ );
2265
+ }
2266
+ f = message.getType();
2267
+ if (f.length > 0) {
2268
+ writer.writeString(
2269
+ 3,
2270
+ f
2271
+ );
2272
+ }
2273
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
2274
+ if (f != null) {
2275
+ writer.writeFloat(
2276
+ 4,
2277
+ f
2278
+ );
2279
+ }
2280
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
2281
+ if (f != null) {
2282
+ writer.writeFloat(
2283
+ 5,
2284
+ f
2285
+ );
2286
+ }
2287
+ };
2288
+
2289
+
2290
+ /**
2291
+ * optional int32 bonus_id = 1;
2292
+ * @return {number}
2293
+ */
2294
+ proto.bonus.BonusBetRangesRequest.prototype.getBonusId = function() {
2295
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2296
+ };
2297
+
2298
+
2299
+ /**
2300
+ * @param {number} value
2301
+ * @return {!proto.bonus.BonusBetRangesRequest} returns this
2302
+ */
2303
+ proto.bonus.BonusBetRangesRequest.prototype.setBonusId = function(value) {
2304
+ return jspb.Message.setProto3IntField(this, 1, value);
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * optional string currency = 2;
2310
+ * @return {string}
2311
+ */
2312
+ proto.bonus.BonusBetRangesRequest.prototype.getCurrency = function() {
2313
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * @param {string} value
2319
+ * @return {!proto.bonus.BonusBetRangesRequest} returns this
2320
+ */
2321
+ proto.bonus.BonusBetRangesRequest.prototype.setCurrency = function(value) {
2322
+ return jspb.Message.setProto3StringField(this, 2, value);
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * optional string type = 3;
2328
+ * @return {string}
2329
+ */
2330
+ proto.bonus.BonusBetRangesRequest.prototype.getType = function() {
2331
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2332
+ };
2333
+
2334
+
2335
+ /**
2336
+ * @param {string} value
2337
+ * @return {!proto.bonus.BonusBetRangesRequest} returns this
2338
+ */
2339
+ proto.bonus.BonusBetRangesRequest.prototype.setType = function(value) {
2340
+ return jspb.Message.setProto3StringField(this, 3, value);
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * optional float min = 4;
2346
+ * @return {number}
2347
+ */
2348
+ proto.bonus.BonusBetRangesRequest.prototype.getMin = function() {
2349
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2350
+ };
2351
+
2352
+
2353
+ /**
2354
+ * @param {number} value
2355
+ * @return {!proto.bonus.BonusBetRangesRequest} returns this
2356
+ */
2357
+ proto.bonus.BonusBetRangesRequest.prototype.setMin = function(value) {
2358
+ return jspb.Message.setField(this, 4, value);
2359
+ };
2360
+
2361
+
2362
+ /**
2363
+ * Clears the field making it undefined.
2364
+ * @return {!proto.bonus.BonusBetRangesRequest} returns this
2365
+ */
2366
+ proto.bonus.BonusBetRangesRequest.prototype.clearMin = function() {
2367
+ return jspb.Message.setField(this, 4, undefined);
2368
+ };
2369
+
2370
+
2371
+ /**
2372
+ * Returns whether this field is set.
2373
+ * @return {boolean}
2374
+ */
2375
+ proto.bonus.BonusBetRangesRequest.prototype.hasMin = function() {
2376
+ return jspb.Message.getField(this, 4) != null;
2377
+ };
2378
+
2379
+
2380
+ /**
2381
+ * optional float max = 5;
2382
+ * @return {number}
2383
+ */
2384
+ proto.bonus.BonusBetRangesRequest.prototype.getMax = function() {
2385
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
2386
+ };
2387
+
2388
+
2389
+ /**
2390
+ * @param {number} value
2391
+ * @return {!proto.bonus.BonusBetRangesRequest} returns this
2392
+ */
2393
+ proto.bonus.BonusBetRangesRequest.prototype.setMax = function(value) {
2394
+ return jspb.Message.setField(this, 5, value);
2395
+ };
2396
+
2397
+
2398
+ /**
2399
+ * Clears the field making it undefined.
2400
+ * @return {!proto.bonus.BonusBetRangesRequest} returns this
2401
+ */
2402
+ proto.bonus.BonusBetRangesRequest.prototype.clearMax = function() {
2403
+ return jspb.Message.setField(this, 5, undefined);
2404
+ };
2405
+
2406
+
2407
+ /**
2408
+ * Returns whether this field is set.
2409
+ * @return {boolean}
2410
+ */
2411
+ proto.bonus.BonusBetRangesRequest.prototype.hasMax = function() {
2412
+ return jspb.Message.getField(this, 5) != null;
2413
+ };
2414
+
2415
+
2416
+
2417
+
2418
+
2419
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2420
+ /**
2421
+ * Creates an object representation of this proto.
2422
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2423
+ * Optional fields that are not set will be set to undefined.
2424
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2425
+ * For the list of reserved names please see:
2426
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2427
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2428
+ * JSPB instance for transitional soy proto support:
2429
+ * http://goto/soy-param-migration
2430
+ * @return {!Object}
2431
+ */
2432
+ proto.bonus.ActivationRule.prototype.toObject = function(opt_includeInstance) {
2433
+ return proto.bonus.ActivationRule.toObject(opt_includeInstance, this);
2434
+ };
2435
+
2436
+
2437
+ /**
2438
+ * Static version of the {@see toObject} method.
2439
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2440
+ * the JSPB instance for transitional soy proto support:
2441
+ * http://goto/soy-param-migration
2442
+ * @param {!proto.bonus.ActivationRule} msg The msg instance to transform.
2443
+ * @return {!Object}
2444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2445
+ */
2446
+ proto.bonus.ActivationRule.toObject = function(includeInstance, msg) {
2447
+ var f, obj = {
2448
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
2449
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
2450
+ config: jspb.Message.getFieldWithDefault(msg, 3, "")
2451
+ };
2452
+
2453
+ if (includeInstance) {
2454
+ obj.$jspbMessageInstance = msg;
2455
+ }
2456
+ return obj;
2457
+ };
2458
+ }
2459
+
2460
+
2461
+ /**
2462
+ * Deserializes binary data (in protobuf wire format).
2463
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2464
+ * @return {!proto.bonus.ActivationRule}
2465
+ */
2466
+ proto.bonus.ActivationRule.deserializeBinary = function(bytes) {
2467
+ var reader = new jspb.BinaryReader(bytes);
2468
+ var msg = new proto.bonus.ActivationRule;
2469
+ return proto.bonus.ActivationRule.deserializeBinaryFromReader(msg, reader);
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Deserializes binary data (in protobuf wire format) from the
2475
+ * given reader into the given message object.
2476
+ * @param {!proto.bonus.ActivationRule} msg The message object to deserialize into.
2477
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2478
+ * @return {!proto.bonus.ActivationRule}
2479
+ */
2480
+ proto.bonus.ActivationRule.deserializeBinaryFromReader = function(msg, reader) {
2481
+ while (reader.nextField()) {
2482
+ if (reader.isEndGroup()) {
2483
+ break;
2484
+ }
2485
+ var field = reader.getFieldNumber();
2486
+ switch (field) {
2487
+ case 1:
2488
+ var value = /** @type {string} */ (reader.readString());
2489
+ msg.setType(value);
2490
+ break;
2491
+ case 2:
2492
+ var value = /** @type {string} */ (reader.readString());
2493
+ msg.setCurrency(value);
2494
+ break;
2495
+ case 3:
2496
+ var value = /** @type {string} */ (reader.readString());
2497
+ msg.setConfig(value);
2498
+ break;
2499
+ default:
2500
+ reader.skipField();
2501
+ break;
2502
+ }
2503
+ }
2504
+ return msg;
2505
+ };
2506
+
2507
+
2508
+ /**
2509
+ * Serializes the message to binary data (in protobuf wire format).
2510
+ * @return {!Uint8Array}
2511
+ */
2512
+ proto.bonus.ActivationRule.prototype.serializeBinary = function() {
2513
+ var writer = new jspb.BinaryWriter();
2514
+ proto.bonus.ActivationRule.serializeBinaryToWriter(this, writer);
2515
+ return writer.getResultBuffer();
2516
+ };
2517
+
2518
+
2519
+ /**
2520
+ * Serializes the given message to binary data (in protobuf wire
2521
+ * format), writing to the given BinaryWriter.
2522
+ * @param {!proto.bonus.ActivationRule} message
2523
+ * @param {!jspb.BinaryWriter} writer
2524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2525
+ */
2526
+ proto.bonus.ActivationRule.serializeBinaryToWriter = function(message, writer) {
2527
+ var f = undefined;
2528
+ f = message.getType();
2529
+ if (f.length > 0) {
2530
+ writer.writeString(
2531
+ 1,
2532
+ f
2533
+ );
2534
+ }
2535
+ f = message.getCurrency();
2536
+ if (f.length > 0) {
2537
+ writer.writeString(
2538
+ 2,
2539
+ f
2540
+ );
2541
+ }
2542
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2543
+ if (f != null) {
2544
+ writer.writeString(
2545
+ 3,
2546
+ f
2547
+ );
2548
+ }
2549
+ };
2550
+
2551
+
2552
+ /**
2553
+ * optional string type = 1;
2554
+ * @return {string}
2555
+ */
2556
+ proto.bonus.ActivationRule.prototype.getType = function() {
2557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2558
+ };
2559
+
2560
+
2561
+ /**
2562
+ * @param {string} value
2563
+ * @return {!proto.bonus.ActivationRule} returns this
2564
+ */
2565
+ proto.bonus.ActivationRule.prototype.setType = function(value) {
2566
+ return jspb.Message.setProto3StringField(this, 1, value);
2567
+ };
2568
+
2569
+
2570
+ /**
2571
+ * optional string currency = 2;
2572
+ * @return {string}
2573
+ */
2574
+ proto.bonus.ActivationRule.prototype.getCurrency = function() {
2575
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2576
+ };
2577
+
2578
+
2579
+ /**
2580
+ * @param {string} value
2581
+ * @return {!proto.bonus.ActivationRule} returns this
2582
+ */
2583
+ proto.bonus.ActivationRule.prototype.setCurrency = function(value) {
2584
+ return jspb.Message.setProto3StringField(this, 2, value);
2585
+ };
2586
+
2587
+
2588
+ /**
2589
+ * optional string config = 3;
2590
+ * @return {string}
2591
+ */
2592
+ proto.bonus.ActivationRule.prototype.getConfig = function() {
2593
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2594
+ };
2595
+
2596
+
2597
+ /**
2598
+ * @param {string} value
2599
+ * @return {!proto.bonus.ActivationRule} returns this
2600
+ */
2601
+ proto.bonus.ActivationRule.prototype.setConfig = function(value) {
2602
+ return jspb.Message.setField(this, 3, value);
2603
+ };
2604
+
2605
+
2606
+ /**
2607
+ * Clears the field making it undefined.
2608
+ * @return {!proto.bonus.ActivationRule} returns this
2609
+ */
2610
+ proto.bonus.ActivationRule.prototype.clearConfig = function() {
2611
+ return jspb.Message.setField(this, 3, undefined);
2612
+ };
2613
+
2614
+
2615
+ /**
2616
+ * Returns whether this field is set.
2617
+ * @return {boolean}
2618
+ */
2619
+ proto.bonus.ActivationRule.prototype.hasConfig = function() {
2620
+ return jspb.Message.getField(this, 3) != null;
2621
+ };
2622
+
2623
+
2624
+
2625
+
2626
+
2627
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2628
+ /**
2629
+ * Creates an object representation of this proto.
2630
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2631
+ * Optional fields that are not set will be set to undefined.
2632
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2633
+ * For the list of reserved names please see:
2634
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2635
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2636
+ * JSPB instance for transitional soy proto support:
2637
+ * http://goto/soy-param-migration
2638
+ * @return {!Object}
2639
+ */
2640
+ proto.bonus.BonusReward.prototype.toObject = function(opt_includeInstance) {
2641
+ return proto.bonus.BonusReward.toObject(opt_includeInstance, this);
2642
+ };
2643
+
2644
+
2645
+ /**
2646
+ * Static version of the {@see toObject} method.
2647
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2648
+ * the JSPB instance for transitional soy proto support:
2649
+ * http://goto/soy-param-migration
2650
+ * @param {!proto.bonus.BonusReward} msg The msg instance to transform.
2651
+ * @return {!Object}
2652
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2653
+ */
2654
+ proto.bonus.BonusReward.toObject = function(includeInstance, msg) {
2655
+ var f, obj = {
2656
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
2657
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
2658
+ config: jspb.Message.getFieldWithDefault(msg, 3, "")
2659
+ };
2660
+
2661
+ if (includeInstance) {
2662
+ obj.$jspbMessageInstance = msg;
2663
+ }
2664
+ return obj;
2665
+ };
2666
+ }
2667
+
2668
+
2669
+ /**
2670
+ * Deserializes binary data (in protobuf wire format).
2671
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2672
+ * @return {!proto.bonus.BonusReward}
2673
+ */
2674
+ proto.bonus.BonusReward.deserializeBinary = function(bytes) {
2675
+ var reader = new jspb.BinaryReader(bytes);
2676
+ var msg = new proto.bonus.BonusReward;
2677
+ return proto.bonus.BonusReward.deserializeBinaryFromReader(msg, reader);
2678
+ };
2679
+
2680
+
2681
+ /**
2682
+ * Deserializes binary data (in protobuf wire format) from the
2683
+ * given reader into the given message object.
2684
+ * @param {!proto.bonus.BonusReward} msg The message object to deserialize into.
2685
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2686
+ * @return {!proto.bonus.BonusReward}
2687
+ */
2688
+ proto.bonus.BonusReward.deserializeBinaryFromReader = function(msg, reader) {
2689
+ while (reader.nextField()) {
2690
+ if (reader.isEndGroup()) {
2691
+ break;
2692
+ }
2693
+ var field = reader.getFieldNumber();
2694
+ switch (field) {
2695
+ case 1:
2696
+ var value = /** @type {string} */ (reader.readString());
2697
+ msg.setType(value);
2698
+ break;
2699
+ case 2:
2700
+ var value = /** @type {string} */ (reader.readString());
2701
+ msg.setCurrency(value);
2702
+ break;
2703
+ case 3:
2704
+ var value = /** @type {string} */ (reader.readString());
2705
+ msg.setConfig(value);
2706
+ break;
2707
+ default:
2708
+ reader.skipField();
2709
+ break;
2710
+ }
2711
+ }
2712
+ return msg;
2713
+ };
2714
+
2715
+
2716
+ /**
2717
+ * Serializes the message to binary data (in protobuf wire format).
2718
+ * @return {!Uint8Array}
2719
+ */
2720
+ proto.bonus.BonusReward.prototype.serializeBinary = function() {
2721
+ var writer = new jspb.BinaryWriter();
2722
+ proto.bonus.BonusReward.serializeBinaryToWriter(this, writer);
2723
+ return writer.getResultBuffer();
2724
+ };
2725
+
2726
+
2727
+ /**
2728
+ * Serializes the given message to binary data (in protobuf wire
2729
+ * format), writing to the given BinaryWriter.
2730
+ * @param {!proto.bonus.BonusReward} message
2731
+ * @param {!jspb.BinaryWriter} writer
2732
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2733
+ */
2734
+ proto.bonus.BonusReward.serializeBinaryToWriter = function(message, writer) {
2735
+ var f = undefined;
2736
+ f = message.getType();
2737
+ if (f.length > 0) {
2738
+ writer.writeString(
2739
+ 1,
2740
+ f
2741
+ );
2742
+ }
2743
+ f = message.getCurrency();
2744
+ if (f.length > 0) {
2745
+ writer.writeString(
2746
+ 2,
2747
+ f
2748
+ );
2749
+ }
2750
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2751
+ if (f != null) {
2752
+ writer.writeString(
2753
+ 3,
2754
+ f
2755
+ );
2756
+ }
2757
+ };
2758
+
2759
+
2760
+ /**
2761
+ * optional string type = 1;
2762
+ * @return {string}
2763
+ */
2764
+ proto.bonus.BonusReward.prototype.getType = function() {
2765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2766
+ };
2767
+
2768
+
2769
+ /**
2770
+ * @param {string} value
2771
+ * @return {!proto.bonus.BonusReward} returns this
2772
+ */
2773
+ proto.bonus.BonusReward.prototype.setType = function(value) {
2774
+ return jspb.Message.setProto3StringField(this, 1, value);
2775
+ };
2776
+
2777
+
2778
+ /**
2779
+ * optional string currency = 2;
2780
+ * @return {string}
2781
+ */
2782
+ proto.bonus.BonusReward.prototype.getCurrency = function() {
2783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2784
+ };
2785
+
2786
+
2787
+ /**
2788
+ * @param {string} value
2789
+ * @return {!proto.bonus.BonusReward} returns this
2790
+ */
2791
+ proto.bonus.BonusReward.prototype.setCurrency = function(value) {
2792
+ return jspb.Message.setProto3StringField(this, 2, value);
2793
+ };
2794
+
2795
+
2796
+ /**
2797
+ * optional string config = 3;
2798
+ * @return {string}
2799
+ */
2800
+ proto.bonus.BonusReward.prototype.getConfig = function() {
2801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2802
+ };
2803
+
2804
+
2805
+ /**
2806
+ * @param {string} value
2807
+ * @return {!proto.bonus.BonusReward} returns this
2808
+ */
2809
+ proto.bonus.BonusReward.prototype.setConfig = function(value) {
2810
+ return jspb.Message.setField(this, 3, value);
2811
+ };
2812
+
2813
+
2814
+ /**
2815
+ * Clears the field making it undefined.
2816
+ * @return {!proto.bonus.BonusReward} returns this
2817
+ */
2818
+ proto.bonus.BonusReward.prototype.clearConfig = function() {
2819
+ return jspb.Message.setField(this, 3, undefined);
2820
+ };
2821
+
2822
+
2823
+ /**
2824
+ * Returns whether this field is set.
2825
+ * @return {boolean}
2826
+ */
2827
+ proto.bonus.BonusReward.prototype.hasConfig = function() {
2828
+ return jspb.Message.getField(this, 3) != null;
2829
+ };
2830
+
2831
+
2832
+
2833
+
2834
+
2835
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2836
+ /**
2837
+ * Creates an object representation of this proto.
2838
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2839
+ * Optional fields that are not set will be set to undefined.
2840
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2841
+ * For the list of reserved names please see:
2842
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2843
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2844
+ * JSPB instance for transitional soy proto support:
2845
+ * http://goto/soy-param-migration
2846
+ * @return {!Object}
2847
+ */
2848
+ proto.bonus.BetsRange.prototype.toObject = function(opt_includeInstance) {
2849
+ return proto.bonus.BetsRange.toObject(opt_includeInstance, this);
2850
+ };
2851
+
2852
+
2853
+ /**
2854
+ * Static version of the {@see toObject} method.
2855
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2856
+ * the JSPB instance for transitional soy proto support:
2857
+ * http://goto/soy-param-migration
2858
+ * @param {!proto.bonus.BetsRange} msg The msg instance to transform.
2859
+ * @return {!Object}
2860
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2861
+ */
2862
+ proto.bonus.BetsRange.toObject = function(includeInstance, msg) {
2863
+ var f, obj = {
2864
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
2865
+ min: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2866
+ max: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
2867
+ };
2868
+
2869
+ if (includeInstance) {
2870
+ obj.$jspbMessageInstance = msg;
2871
+ }
2872
+ return obj;
2873
+ };
2874
+ }
2875
+
2876
+
2877
+ /**
2878
+ * Deserializes binary data (in protobuf wire format).
2879
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2880
+ * @return {!proto.bonus.BetsRange}
2881
+ */
2882
+ proto.bonus.BetsRange.deserializeBinary = function(bytes) {
2883
+ var reader = new jspb.BinaryReader(bytes);
2884
+ var msg = new proto.bonus.BetsRange;
2885
+ return proto.bonus.BetsRange.deserializeBinaryFromReader(msg, reader);
2886
+ };
2887
+
2888
+
2889
+ /**
2890
+ * Deserializes binary data (in protobuf wire format) from the
2891
+ * given reader into the given message object.
2892
+ * @param {!proto.bonus.BetsRange} msg The message object to deserialize into.
2893
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2894
+ * @return {!proto.bonus.BetsRange}
2895
+ */
2896
+ proto.bonus.BetsRange.deserializeBinaryFromReader = function(msg, reader) {
2897
+ while (reader.nextField()) {
2898
+ if (reader.isEndGroup()) {
2899
+ break;
2900
+ }
2901
+ var field = reader.getFieldNumber();
2902
+ switch (field) {
2903
+ case 1:
2904
+ var value = /** @type {string} */ (reader.readString());
2905
+ msg.setCurrency(value);
2906
+ break;
2907
+ case 2:
2908
+ var value = /** @type {number} */ (reader.readFloat());
2909
+ msg.setMin(value);
2910
+ break;
2911
+ case 3:
2912
+ var value = /** @type {number} */ (reader.readFloat());
2913
+ msg.setMax(value);
2914
+ break;
2915
+ default:
2916
+ reader.skipField();
2917
+ break;
2918
+ }
2919
+ }
2920
+ return msg;
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * Serializes the message to binary data (in protobuf wire format).
2926
+ * @return {!Uint8Array}
2927
+ */
2928
+ proto.bonus.BetsRange.prototype.serializeBinary = function() {
2929
+ var writer = new jspb.BinaryWriter();
2930
+ proto.bonus.BetsRange.serializeBinaryToWriter(this, writer);
2931
+ return writer.getResultBuffer();
2932
+ };
2933
+
2934
+
2935
+ /**
2936
+ * Serializes the given message to binary data (in protobuf wire
2937
+ * format), writing to the given BinaryWriter.
2938
+ * @param {!proto.bonus.BetsRange} message
2939
+ * @param {!jspb.BinaryWriter} writer
2940
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2941
+ */
2942
+ proto.bonus.BetsRange.serializeBinaryToWriter = function(message, writer) {
2943
+ var f = undefined;
2944
+ f = message.getCurrency();
2945
+ if (f.length > 0) {
2946
+ writer.writeString(
2947
+ 1,
2120
2948
  f
2121
2949
  );
2122
2950
  }
@@ -2192,13 +3020,6 @@ proto.bonus.BetsRange.prototype.setMax = function(value) {
2192
3020
 
2193
3021
 
2194
3022
 
2195
- /**
2196
- * List of repeated fields within this message type.
2197
- * @private {!Array<number>}
2198
- * @const
2199
- */
2200
- proto.bonus.BonusItemRequest.repeatedFields_ = [20,21,22];
2201
-
2202
3023
 
2203
3024
 
2204
3025
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2248,13 +3069,7 @@ proto.bonus.BonusItemRequest.toObject = function(includeInstance, msg) {
2248
3069
  showPreviousAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
2249
3070
  claimPeriodInHours: jspb.Message.getFieldWithDefault(msg, 17, 0),
2250
3071
  activationPeriodInHours: jspb.Message.getFieldWithDefault(msg, 18, 0),
2251
- wageringPeriodInHours: jspb.Message.getFieldWithDefault(msg, 19, 0),
2252
- activationRulesList: jspb.Message.toObjectList(msg.getActivationRulesList(),
2253
- proto.bonus.ActivationRule.toObject, includeInstance),
2254
- rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
2255
- proto.bonus.BonusReward.toObject, includeInstance),
2256
- betsRangeList: jspb.Message.toObjectList(msg.getBetsRangeList(),
2257
- proto.bonus.BetsRange.toObject, includeInstance)
3072
+ wageringPeriodInHours: jspb.Message.getFieldWithDefault(msg, 19, 0)
2258
3073
  };
2259
3074
 
2260
3075
  if (includeInstance) {
@@ -2367,21 +3182,6 @@ proto.bonus.BonusItemRequest.deserializeBinaryFromReader = function(msg, reader)
2367
3182
  var value = /** @type {number} */ (reader.readInt32());
2368
3183
  msg.setWageringPeriodInHours(value);
2369
3184
  break;
2370
- case 20:
2371
- var value = new proto.bonus.ActivationRule;
2372
- reader.readMessage(value,proto.bonus.ActivationRule.deserializeBinaryFromReader);
2373
- msg.addActivationRules(value);
2374
- break;
2375
- case 21:
2376
- var value = new proto.bonus.BonusReward;
2377
- reader.readMessage(value,proto.bonus.BonusReward.deserializeBinaryFromReader);
2378
- msg.addRewards(value);
2379
- break;
2380
- case 22:
2381
- var value = new proto.bonus.BetsRange;
2382
- reader.readMessage(value,proto.bonus.BetsRange.deserializeBinaryFromReader);
2383
- msg.addBetsRange(value);
2384
- break;
2385
3185
  default:
2386
3186
  reader.skipField();
2387
3187
  break;
@@ -2544,30 +3344,6 @@ proto.bonus.BonusItemRequest.serializeBinaryToWriter = function(message, writer)
2544
3344
  f
2545
3345
  );
2546
3346
  }
2547
- f = message.getActivationRulesList();
2548
- if (f.length > 0) {
2549
- writer.writeRepeatedMessage(
2550
- 20,
2551
- f,
2552
- proto.bonus.ActivationRule.serializeBinaryToWriter
2553
- );
2554
- }
2555
- f = message.getRewardsList();
2556
- if (f.length > 0) {
2557
- writer.writeRepeatedMessage(
2558
- 21,
2559
- f,
2560
- proto.bonus.BonusReward.serializeBinaryToWriter
2561
- );
2562
- }
2563
- f = message.getBetsRangeList();
2564
- if (f.length > 0) {
2565
- writer.writeRepeatedMessage(
2566
- 22,
2567
- f,
2568
- proto.bonus.BetsRange.serializeBinaryToWriter
2569
- );
2570
- }
2571
3347
  };
2572
3348
 
2573
3349
 
@@ -3255,120 +4031,6 @@ proto.bonus.BonusItemRequest.prototype.hasWageringPeriodInHours = function() {
3255
4031
  };
3256
4032
 
3257
4033
 
3258
- /**
3259
- * repeated ActivationRule activation_rules = 20;
3260
- * @return {!Array<!proto.bonus.ActivationRule>}
3261
- */
3262
- proto.bonus.BonusItemRequest.prototype.getActivationRulesList = function() {
3263
- return /** @type{!Array<!proto.bonus.ActivationRule>} */ (
3264
- jspb.Message.getRepeatedWrapperField(this, proto.bonus.ActivationRule, 20));
3265
- };
3266
-
3267
-
3268
- /**
3269
- * @param {!Array<!proto.bonus.ActivationRule>} value
3270
- * @return {!proto.bonus.BonusItemRequest} returns this
3271
- */
3272
- proto.bonus.BonusItemRequest.prototype.setActivationRulesList = function(value) {
3273
- return jspb.Message.setRepeatedWrapperField(this, 20, value);
3274
- };
3275
-
3276
-
3277
- /**
3278
- * @param {!proto.bonus.ActivationRule=} opt_value
3279
- * @param {number=} opt_index
3280
- * @return {!proto.bonus.ActivationRule}
3281
- */
3282
- proto.bonus.BonusItemRequest.prototype.addActivationRules = function(opt_value, opt_index) {
3283
- return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.bonus.ActivationRule, opt_index);
3284
- };
3285
-
3286
-
3287
- /**
3288
- * Clears the list making it empty but non-null.
3289
- * @return {!proto.bonus.BonusItemRequest} returns this
3290
- */
3291
- proto.bonus.BonusItemRequest.prototype.clearActivationRulesList = function() {
3292
- return this.setActivationRulesList([]);
3293
- };
3294
-
3295
-
3296
- /**
3297
- * repeated BonusReward rewards = 21;
3298
- * @return {!Array<!proto.bonus.BonusReward>}
3299
- */
3300
- proto.bonus.BonusItemRequest.prototype.getRewardsList = function() {
3301
- return /** @type{!Array<!proto.bonus.BonusReward>} */ (
3302
- jspb.Message.getRepeatedWrapperField(this, proto.bonus.BonusReward, 21));
3303
- };
3304
-
3305
-
3306
- /**
3307
- * @param {!Array<!proto.bonus.BonusReward>} value
3308
- * @return {!proto.bonus.BonusItemRequest} returns this
3309
- */
3310
- proto.bonus.BonusItemRequest.prototype.setRewardsList = function(value) {
3311
- return jspb.Message.setRepeatedWrapperField(this, 21, value);
3312
- };
3313
-
3314
-
3315
- /**
3316
- * @param {!proto.bonus.BonusReward=} opt_value
3317
- * @param {number=} opt_index
3318
- * @return {!proto.bonus.BonusReward}
3319
- */
3320
- proto.bonus.BonusItemRequest.prototype.addRewards = function(opt_value, opt_index) {
3321
- return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.bonus.BonusReward, opt_index);
3322
- };
3323
-
3324
-
3325
- /**
3326
- * Clears the list making it empty but non-null.
3327
- * @return {!proto.bonus.BonusItemRequest} returns this
3328
- */
3329
- proto.bonus.BonusItemRequest.prototype.clearRewardsList = function() {
3330
- return this.setRewardsList([]);
3331
- };
3332
-
3333
-
3334
- /**
3335
- * repeated BetsRange bets_range = 22;
3336
- * @return {!Array<!proto.bonus.BetsRange>}
3337
- */
3338
- proto.bonus.BonusItemRequest.prototype.getBetsRangeList = function() {
3339
- return /** @type{!Array<!proto.bonus.BetsRange>} */ (
3340
- jspb.Message.getRepeatedWrapperField(this, proto.bonus.BetsRange, 22));
3341
- };
3342
-
3343
-
3344
- /**
3345
- * @param {!Array<!proto.bonus.BetsRange>} value
3346
- * @return {!proto.bonus.BonusItemRequest} returns this
3347
- */
3348
- proto.bonus.BonusItemRequest.prototype.setBetsRangeList = function(value) {
3349
- return jspb.Message.setRepeatedWrapperField(this, 22, value);
3350
- };
3351
-
3352
-
3353
- /**
3354
- * @param {!proto.bonus.BetsRange=} opt_value
3355
- * @param {number=} opt_index
3356
- * @return {!proto.bonus.BetsRange}
3357
- */
3358
- proto.bonus.BonusItemRequest.prototype.addBetsRange = function(opt_value, opt_index) {
3359
- return jspb.Message.addToRepeatedWrapperField(this, 22, opt_value, proto.bonus.BetsRange, opt_index);
3360
- };
3361
-
3362
-
3363
- /**
3364
- * Clears the list making it empty but non-null.
3365
- * @return {!proto.bonus.BonusItemRequest} returns this
3366
- */
3367
- proto.bonus.BonusItemRequest.prototype.clearBetsRangeList = function() {
3368
- return this.setBetsRangeList([]);
3369
- };
3370
-
3371
-
3372
4034
 
3373
4035
 
3374
4036