protobuf-platform 1.0.76 → 1.0.78

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.proto CHANGED
@@ -51,7 +51,12 @@ service Game {
51
51
 
52
52
  message PingRequest { string ping = 1; }
53
53
  message PongResponse { string pong = 1; }
54
- message PaginationRequest { int32 limit = 1; int32 offset = 2; }
54
+ message PaginationRequest { int32 limit = 1; int32 offset = 2; optional GameSearchRequest game_search_params = 3; }
55
+ message GameSearchRequest {
56
+ optional int32 is_active = 1;
57
+ optional int32 is_deactivated = 2;
58
+ optional int32 has_category = 3;
59
+ }
55
60
  //Media
56
61
  message File { bytes media = 1; }
57
62
  message GetFileRequest { string file_name = 1; string instance_type = 2; }
@@ -63,6 +68,7 @@ message CategoryItem {
63
68
  optional string description = 4;
64
69
  optional int32 is_active = 5;
65
70
  optional string image = 6;
71
+ optional int32 count_of_collections = 7;
66
72
  }
67
73
  //Category CRUD | Requests
68
74
  message CategoryRequest {
@@ -105,6 +111,7 @@ message CollectionItem {
105
111
  optional string description = 5;
106
112
  optional int32 is_active = 6;
107
113
  optional string image = 7;
114
+ optional int32 count_of_games = 8;
108
115
  }
109
116
  //Collection CRUD | Requests
110
117
  message CollectionRequest {
@@ -152,6 +159,7 @@ message TagItem {
152
159
  optional string description = 4;
153
160
  optional int32 is_active = 5;
154
161
  optional string image = 6;
162
+ optional int32 count_of_games = 7;
155
163
  }
156
164
  //Tag CRUD | Requests
157
165
  message TagRequest {
package/game/game_pb.js CHANGED
@@ -43,6 +43,7 @@ goog.exportSymbol('proto.game.GameItemsResponse', null, global);
43
43
  goog.exportSymbol('proto.game.GameRequest', null, global);
44
44
  goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
45
45
  goog.exportSymbol('proto.game.GameResponse', null, global);
46
+ goog.exportSymbol('proto.game.GameSearchRequest', null, global);
46
47
  goog.exportSymbol('proto.game.GameStatusResponse', null, global);
47
48
  goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
48
49
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
@@ -142,6 +143,27 @@ if (goog.DEBUG && !COMPILED) {
142
143
  */
143
144
  proto.game.PaginationRequest.displayName = 'proto.game.PaginationRequest';
144
145
  }
146
+ /**
147
+ * Generated by JsPbCodeGenerator.
148
+ * @param {Array=} opt_data Optional initial data array, typically from a
149
+ * server response, or constructed directly in Javascript. The array is used
150
+ * in place and becomes part of the constructed object. It is not cloned.
151
+ * If no data is provided, the constructed object will be empty, but still
152
+ * valid.
153
+ * @extends {jspb.Message}
154
+ * @constructor
155
+ */
156
+ proto.game.GameSearchRequest = function(opt_data) {
157
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
158
+ };
159
+ goog.inherits(proto.game.GameSearchRequest, jspb.Message);
160
+ if (goog.DEBUG && !COMPILED) {
161
+ /**
162
+ * @public
163
+ * @override
164
+ */
165
+ proto.game.GameSearchRequest.displayName = 'proto.game.GameSearchRequest';
166
+ }
145
167
  /**
146
168
  * Generated by JsPbCodeGenerator.
147
169
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1485,7 +1507,8 @@ proto.game.PaginationRequest.prototype.toObject = function(opt_includeInstance)
1485
1507
  proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
1486
1508
  var f, obj = {
1487
1509
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1488
- offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
1510
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1511
+ gameSearchParams: (f = msg.getGameSearchParams()) && proto.game.GameSearchRequest.toObject(includeInstance, f)
1489
1512
  };
1490
1513
 
1491
1514
  if (includeInstance) {
@@ -1530,6 +1553,11 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
1530
1553
  var value = /** @type {number} */ (reader.readInt32());
1531
1554
  msg.setOffset(value);
1532
1555
  break;
1556
+ case 3:
1557
+ var value = new proto.game.GameSearchRequest;
1558
+ reader.readMessage(value,proto.game.GameSearchRequest.deserializeBinaryFromReader);
1559
+ msg.setGameSearchParams(value);
1560
+ break;
1533
1561
  default:
1534
1562
  reader.skipField();
1535
1563
  break;
@@ -1573,6 +1601,14 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
1573
1601
  f
1574
1602
  );
1575
1603
  }
1604
+ f = message.getGameSearchParams();
1605
+ if (f != null) {
1606
+ writer.writeMessage(
1607
+ 3,
1608
+ f,
1609
+ proto.game.GameSearchRequest.serializeBinaryToWriter
1610
+ );
1611
+ }
1576
1612
  };
1577
1613
 
1578
1614
 
@@ -1612,6 +1648,287 @@ proto.game.PaginationRequest.prototype.setOffset = function(value) {
1612
1648
  };
1613
1649
 
1614
1650
 
1651
+ /**
1652
+ * optional GameSearchRequest game_search_params = 3;
1653
+ * @return {?proto.game.GameSearchRequest}
1654
+ */
1655
+ proto.game.PaginationRequest.prototype.getGameSearchParams = function() {
1656
+ return /** @type{?proto.game.GameSearchRequest} */ (
1657
+ jspb.Message.getWrapperField(this, proto.game.GameSearchRequest, 3));
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * @param {?proto.game.GameSearchRequest|undefined} value
1663
+ * @return {!proto.game.PaginationRequest} returns this
1664
+ */
1665
+ proto.game.PaginationRequest.prototype.setGameSearchParams = function(value) {
1666
+ return jspb.Message.setWrapperField(this, 3, value);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * Clears the message field making it undefined.
1672
+ * @return {!proto.game.PaginationRequest} returns this
1673
+ */
1674
+ proto.game.PaginationRequest.prototype.clearGameSearchParams = function() {
1675
+ return this.setGameSearchParams(undefined);
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * Returns whether this field is set.
1681
+ * @return {boolean}
1682
+ */
1683
+ proto.game.PaginationRequest.prototype.hasGameSearchParams = function() {
1684
+ return jspb.Message.getField(this, 3) != null;
1685
+ };
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1692
+ /**
1693
+ * Creates an object representation of this proto.
1694
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1695
+ * Optional fields that are not set will be set to undefined.
1696
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1697
+ * For the list of reserved names please see:
1698
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1699
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1700
+ * JSPB instance for transitional soy proto support:
1701
+ * http://goto/soy-param-migration
1702
+ * @return {!Object}
1703
+ */
1704
+ proto.game.GameSearchRequest.prototype.toObject = function(opt_includeInstance) {
1705
+ return proto.game.GameSearchRequest.toObject(opt_includeInstance, this);
1706
+ };
1707
+
1708
+
1709
+ /**
1710
+ * Static version of the {@see toObject} method.
1711
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1712
+ * the JSPB instance for transitional soy proto support:
1713
+ * http://goto/soy-param-migration
1714
+ * @param {!proto.game.GameSearchRequest} msg The msg instance to transform.
1715
+ * @return {!Object}
1716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1717
+ */
1718
+ proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
1719
+ var f, obj = {
1720
+ isActive: jspb.Message.getFieldWithDefault(msg, 1, 0),
1721
+ isDeactivated: jspb.Message.getFieldWithDefault(msg, 2, 0),
1722
+ hasCategory: jspb.Message.getFieldWithDefault(msg, 3, 0)
1723
+ };
1724
+
1725
+ if (includeInstance) {
1726
+ obj.$jspbMessageInstance = msg;
1727
+ }
1728
+ return obj;
1729
+ };
1730
+ }
1731
+
1732
+
1733
+ /**
1734
+ * Deserializes binary data (in protobuf wire format).
1735
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1736
+ * @return {!proto.game.GameSearchRequest}
1737
+ */
1738
+ proto.game.GameSearchRequest.deserializeBinary = function(bytes) {
1739
+ var reader = new jspb.BinaryReader(bytes);
1740
+ var msg = new proto.game.GameSearchRequest;
1741
+ return proto.game.GameSearchRequest.deserializeBinaryFromReader(msg, reader);
1742
+ };
1743
+
1744
+
1745
+ /**
1746
+ * Deserializes binary data (in protobuf wire format) from the
1747
+ * given reader into the given message object.
1748
+ * @param {!proto.game.GameSearchRequest} msg The message object to deserialize into.
1749
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1750
+ * @return {!proto.game.GameSearchRequest}
1751
+ */
1752
+ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1753
+ while (reader.nextField()) {
1754
+ if (reader.isEndGroup()) {
1755
+ break;
1756
+ }
1757
+ var field = reader.getFieldNumber();
1758
+ switch (field) {
1759
+ case 1:
1760
+ var value = /** @type {number} */ (reader.readInt32());
1761
+ msg.setIsActive(value);
1762
+ break;
1763
+ case 2:
1764
+ var value = /** @type {number} */ (reader.readInt32());
1765
+ msg.setIsDeactivated(value);
1766
+ break;
1767
+ case 3:
1768
+ var value = /** @type {number} */ (reader.readInt32());
1769
+ msg.setHasCategory(value);
1770
+ break;
1771
+ default:
1772
+ reader.skipField();
1773
+ break;
1774
+ }
1775
+ }
1776
+ return msg;
1777
+ };
1778
+
1779
+
1780
+ /**
1781
+ * Serializes the message to binary data (in protobuf wire format).
1782
+ * @return {!Uint8Array}
1783
+ */
1784
+ proto.game.GameSearchRequest.prototype.serializeBinary = function() {
1785
+ var writer = new jspb.BinaryWriter();
1786
+ proto.game.GameSearchRequest.serializeBinaryToWriter(this, writer);
1787
+ return writer.getResultBuffer();
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * Serializes the given message to binary data (in protobuf wire
1793
+ * format), writing to the given BinaryWriter.
1794
+ * @param {!proto.game.GameSearchRequest} message
1795
+ * @param {!jspb.BinaryWriter} writer
1796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1797
+ */
1798
+ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer) {
1799
+ var f = undefined;
1800
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1801
+ if (f != null) {
1802
+ writer.writeInt32(
1803
+ 1,
1804
+ f
1805
+ );
1806
+ }
1807
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
1808
+ if (f != null) {
1809
+ writer.writeInt32(
1810
+ 2,
1811
+ f
1812
+ );
1813
+ }
1814
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
1815
+ if (f != null) {
1816
+ writer.writeInt32(
1817
+ 3,
1818
+ f
1819
+ );
1820
+ }
1821
+ };
1822
+
1823
+
1824
+ /**
1825
+ * optional int32 is_active = 1;
1826
+ * @return {number}
1827
+ */
1828
+ proto.game.GameSearchRequest.prototype.getIsActive = function() {
1829
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * @param {number} value
1835
+ * @return {!proto.game.GameSearchRequest} returns this
1836
+ */
1837
+ proto.game.GameSearchRequest.prototype.setIsActive = function(value) {
1838
+ return jspb.Message.setField(this, 1, value);
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * Clears the field making it undefined.
1844
+ * @return {!proto.game.GameSearchRequest} returns this
1845
+ */
1846
+ proto.game.GameSearchRequest.prototype.clearIsActive = function() {
1847
+ return jspb.Message.setField(this, 1, undefined);
1848
+ };
1849
+
1850
+
1851
+ /**
1852
+ * Returns whether this field is set.
1853
+ * @return {boolean}
1854
+ */
1855
+ proto.game.GameSearchRequest.prototype.hasIsActive = function() {
1856
+ return jspb.Message.getField(this, 1) != null;
1857
+ };
1858
+
1859
+
1860
+ /**
1861
+ * optional int32 is_deactivated = 2;
1862
+ * @return {number}
1863
+ */
1864
+ proto.game.GameSearchRequest.prototype.getIsDeactivated = function() {
1865
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1866
+ };
1867
+
1868
+
1869
+ /**
1870
+ * @param {number} value
1871
+ * @return {!proto.game.GameSearchRequest} returns this
1872
+ */
1873
+ proto.game.GameSearchRequest.prototype.setIsDeactivated = function(value) {
1874
+ return jspb.Message.setField(this, 2, value);
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * Clears the field making it undefined.
1880
+ * @return {!proto.game.GameSearchRequest} returns this
1881
+ */
1882
+ proto.game.GameSearchRequest.prototype.clearIsDeactivated = function() {
1883
+ return jspb.Message.setField(this, 2, undefined);
1884
+ };
1885
+
1886
+
1887
+ /**
1888
+ * Returns whether this field is set.
1889
+ * @return {boolean}
1890
+ */
1891
+ proto.game.GameSearchRequest.prototype.hasIsDeactivated = function() {
1892
+ return jspb.Message.getField(this, 2) != null;
1893
+ };
1894
+
1895
+
1896
+ /**
1897
+ * optional int32 has_category = 3;
1898
+ * @return {number}
1899
+ */
1900
+ proto.game.GameSearchRequest.prototype.getHasCategory = function() {
1901
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1902
+ };
1903
+
1904
+
1905
+ /**
1906
+ * @param {number} value
1907
+ * @return {!proto.game.GameSearchRequest} returns this
1908
+ */
1909
+ proto.game.GameSearchRequest.prototype.setHasCategory = function(value) {
1910
+ return jspb.Message.setField(this, 3, value);
1911
+ };
1912
+
1913
+
1914
+ /**
1915
+ * Clears the field making it undefined.
1916
+ * @return {!proto.game.GameSearchRequest} returns this
1917
+ */
1918
+ proto.game.GameSearchRequest.prototype.clearHasCategory = function() {
1919
+ return jspb.Message.setField(this, 3, undefined);
1920
+ };
1921
+
1922
+
1923
+ /**
1924
+ * Returns whether this field is set.
1925
+ * @return {boolean}
1926
+ */
1927
+ proto.game.GameSearchRequest.prototype.hasHasCategory = function() {
1928
+ return jspb.Message.getField(this, 3) != null;
1929
+ };
1930
+
1931
+
1615
1932
 
1616
1933
 
1617
1934
 
@@ -1963,7 +2280,8 @@ proto.game.CategoryItem.toObject = function(includeInstance, msg) {
1963
2280
  slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
1964
2281
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
1965
2282
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
1966
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
2283
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
2284
+ countOfCollections: jspb.Message.getFieldWithDefault(msg, 7, 0)
1967
2285
  };
1968
2286
 
1969
2287
  if (includeInstance) {
@@ -2024,6 +2342,10 @@ proto.game.CategoryItem.deserializeBinaryFromReader = function(msg, reader) {
2024
2342
  var value = /** @type {string} */ (reader.readString());
2025
2343
  msg.setImage(value);
2026
2344
  break;
2345
+ case 7:
2346
+ var value = /** @type {number} */ (reader.readInt32());
2347
+ msg.setCountOfCollections(value);
2348
+ break;
2027
2349
  default:
2028
2350
  reader.skipField();
2029
2351
  break;
@@ -2095,6 +2417,13 @@ proto.game.CategoryItem.serializeBinaryToWriter = function(message, writer) {
2095
2417
  f
2096
2418
  );
2097
2419
  }
2420
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
2421
+ if (f != null) {
2422
+ writer.writeInt32(
2423
+ 7,
2424
+ f
2425
+ );
2426
+ }
2098
2427
  };
2099
2428
 
2100
2429
 
@@ -2314,6 +2643,42 @@ proto.game.CategoryItem.prototype.hasImage = function() {
2314
2643
  };
2315
2644
 
2316
2645
 
2646
+ /**
2647
+ * optional int32 count_of_collections = 7;
2648
+ * @return {number}
2649
+ */
2650
+ proto.game.CategoryItem.prototype.getCountOfCollections = function() {
2651
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2652
+ };
2653
+
2654
+
2655
+ /**
2656
+ * @param {number} value
2657
+ * @return {!proto.game.CategoryItem} returns this
2658
+ */
2659
+ proto.game.CategoryItem.prototype.setCountOfCollections = function(value) {
2660
+ return jspb.Message.setField(this, 7, value);
2661
+ };
2662
+
2663
+
2664
+ /**
2665
+ * Clears the field making it undefined.
2666
+ * @return {!proto.game.CategoryItem} returns this
2667
+ */
2668
+ proto.game.CategoryItem.prototype.clearCountOfCollections = function() {
2669
+ return jspb.Message.setField(this, 7, undefined);
2670
+ };
2671
+
2672
+
2673
+ /**
2674
+ * Returns whether this field is set.
2675
+ * @return {boolean}
2676
+ */
2677
+ proto.game.CategoryItem.prototype.hasCountOfCollections = function() {
2678
+ return jspb.Message.getField(this, 7) != null;
2679
+ };
2680
+
2681
+
2317
2682
 
2318
2683
  /**
2319
2684
  * Oneof group definitions for this message. Each group defines the field
@@ -3683,7 +4048,8 @@ proto.game.CollectionItem.toObject = function(includeInstance, msg) {
3683
4048
  slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
3684
4049
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
3685
4050
  isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
3686
- image: jspb.Message.getFieldWithDefault(msg, 7, "")
4051
+ image: jspb.Message.getFieldWithDefault(msg, 7, ""),
4052
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
3687
4053
  };
3688
4054
 
3689
4055
  if (includeInstance) {
@@ -3749,6 +4115,10 @@ proto.game.CollectionItem.deserializeBinaryFromReader = function(msg, reader) {
3749
4115
  var value = /** @type {string} */ (reader.readString());
3750
4116
  msg.setImage(value);
3751
4117
  break;
4118
+ case 8:
4119
+ var value = /** @type {number} */ (reader.readInt32());
4120
+ msg.setCountOfGames(value);
4121
+ break;
3752
4122
  default:
3753
4123
  reader.skipField();
3754
4124
  break;
@@ -3828,6 +4198,13 @@ proto.game.CollectionItem.serializeBinaryToWriter = function(message, writer) {
3828
4198
  f
3829
4199
  );
3830
4200
  }
4201
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
4202
+ if (f != null) {
4203
+ writer.writeInt32(
4204
+ 8,
4205
+ f
4206
+ );
4207
+ }
3831
4208
  };
3832
4209
 
3833
4210
 
@@ -4084,6 +4461,42 @@ proto.game.CollectionItem.prototype.hasImage = function() {
4084
4461
  };
4085
4462
 
4086
4463
 
4464
+ /**
4465
+ * optional int32 count_of_games = 8;
4466
+ * @return {number}
4467
+ */
4468
+ proto.game.CollectionItem.prototype.getCountOfGames = function() {
4469
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
4470
+ };
4471
+
4472
+
4473
+ /**
4474
+ * @param {number} value
4475
+ * @return {!proto.game.CollectionItem} returns this
4476
+ */
4477
+ proto.game.CollectionItem.prototype.setCountOfGames = function(value) {
4478
+ return jspb.Message.setField(this, 8, value);
4479
+ };
4480
+
4481
+
4482
+ /**
4483
+ * Clears the field making it undefined.
4484
+ * @return {!proto.game.CollectionItem} returns this
4485
+ */
4486
+ proto.game.CollectionItem.prototype.clearCountOfGames = function() {
4487
+ return jspb.Message.setField(this, 8, undefined);
4488
+ };
4489
+
4490
+
4491
+ /**
4492
+ * Returns whether this field is set.
4493
+ * @return {boolean}
4494
+ */
4495
+ proto.game.CollectionItem.prototype.hasCountOfGames = function() {
4496
+ return jspb.Message.getField(this, 8) != null;
4497
+ };
4498
+
4499
+
4087
4500
 
4088
4501
  /**
4089
4502
  * Oneof group definitions for this message. Each group defines the field
@@ -5708,7 +6121,8 @@ proto.game.TagItem.toObject = function(includeInstance, msg) {
5708
6121
  slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
5709
6122
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
5710
6123
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
5711
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
6124
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
6125
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 7, 0)
5712
6126
  };
5713
6127
 
5714
6128
  if (includeInstance) {
@@ -5769,6 +6183,10 @@ proto.game.TagItem.deserializeBinaryFromReader = function(msg, reader) {
5769
6183
  var value = /** @type {string} */ (reader.readString());
5770
6184
  msg.setImage(value);
5771
6185
  break;
6186
+ case 7:
6187
+ var value = /** @type {number} */ (reader.readInt32());
6188
+ msg.setCountOfGames(value);
6189
+ break;
5772
6190
  default:
5773
6191
  reader.skipField();
5774
6192
  break;
@@ -5840,6 +6258,13 @@ proto.game.TagItem.serializeBinaryToWriter = function(message, writer) {
5840
6258
  f
5841
6259
  );
5842
6260
  }
6261
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
6262
+ if (f != null) {
6263
+ writer.writeInt32(
6264
+ 7,
6265
+ f
6266
+ );
6267
+ }
5843
6268
  };
5844
6269
 
5845
6270
 
@@ -6059,6 +6484,42 @@ proto.game.TagItem.prototype.hasImage = function() {
6059
6484
  };
6060
6485
 
6061
6486
 
6487
+ /**
6488
+ * optional int32 count_of_games = 7;
6489
+ * @return {number}
6490
+ */
6491
+ proto.game.TagItem.prototype.getCountOfGames = function() {
6492
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
6493
+ };
6494
+
6495
+
6496
+ /**
6497
+ * @param {number} value
6498
+ * @return {!proto.game.TagItem} returns this
6499
+ */
6500
+ proto.game.TagItem.prototype.setCountOfGames = function(value) {
6501
+ return jspb.Message.setField(this, 7, value);
6502
+ };
6503
+
6504
+
6505
+ /**
6506
+ * Clears the field making it undefined.
6507
+ * @return {!proto.game.TagItem} returns this
6508
+ */
6509
+ proto.game.TagItem.prototype.clearCountOfGames = function() {
6510
+ return jspb.Message.setField(this, 7, undefined);
6511
+ };
6512
+
6513
+
6514
+ /**
6515
+ * Returns whether this field is set.
6516
+ * @return {boolean}
6517
+ */
6518
+ proto.game.TagItem.prototype.hasCountOfGames = function() {
6519
+ return jspb.Message.getField(this, 7) != null;
6520
+ };
6521
+
6522
+
6062
6523
 
6063
6524
  /**
6064
6525
  * Oneof group definitions for this message. Each group defines the field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {