protobuf-platform 1.0.96 → 1.0.98

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
@@ -62,6 +62,9 @@ message GameSearchRequest {
62
62
  optional int32 is_active = 1;
63
63
  optional int32 is_deactivated = 2;
64
64
  optional int32 has_category = 3;
65
+ repeated int32 category_ids = 4;
66
+ repeated int32 collection_ids = 5;
67
+ repeated int32 tag_ids = 6;
65
68
  }
66
69
  //Media
67
70
  message File { bytes media = 1; }
@@ -212,6 +215,7 @@ message ProviderItem {
212
215
  optional string description = 4;
213
216
  optional int32 is_active = 5;
214
217
  optional string image = 6;
218
+ optional int32 count_of_games = 7;
215
219
  }
216
220
  //Provider CRUD | Requests
217
221
  message ProviderRequest {
package/game/game_pb.js CHANGED
@@ -162,7 +162,7 @@ if (goog.DEBUG && !COMPILED) {
162
162
  * @constructor
163
163
  */
164
164
  proto.game.GameSearchRequest = function(opt_data) {
165
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
165
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GameSearchRequest.repeatedFields_, null);
166
166
  };
167
167
  goog.inherits(proto.game.GameSearchRequest, jspb.Message);
168
168
  if (goog.DEBUG && !COMPILED) {
@@ -1862,6 +1862,13 @@ proto.game.PaginationRequest.prototype.hasGameSearchParams = function() {
1862
1862
 
1863
1863
 
1864
1864
 
1865
+ /**
1866
+ * List of repeated fields within this message type.
1867
+ * @private {!Array<number>}
1868
+ * @const
1869
+ */
1870
+ proto.game.GameSearchRequest.repeatedFields_ = [4,5,6];
1871
+
1865
1872
 
1866
1873
 
1867
1874
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1895,7 +1902,10 @@ proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
1895
1902
  var f, obj = {
1896
1903
  isActive: jspb.Message.getFieldWithDefault(msg, 1, 0),
1897
1904
  isDeactivated: jspb.Message.getFieldWithDefault(msg, 2, 0),
1898
- hasCategory: jspb.Message.getFieldWithDefault(msg, 3, 0)
1905
+ hasCategory: jspb.Message.getFieldWithDefault(msg, 3, 0),
1906
+ categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
1907
+ collectionIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
1908
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
1899
1909
  };
1900
1910
 
1901
1911
  if (includeInstance) {
@@ -1944,6 +1954,24 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
1944
1954
  var value = /** @type {number} */ (reader.readInt32());
1945
1955
  msg.setHasCategory(value);
1946
1956
  break;
1957
+ case 4:
1958
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1959
+ for (var i = 0; i < values.length; i++) {
1960
+ msg.addCategoryIds(values[i]);
1961
+ }
1962
+ break;
1963
+ case 5:
1964
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1965
+ for (var i = 0; i < values.length; i++) {
1966
+ msg.addCollectionIds(values[i]);
1967
+ }
1968
+ break;
1969
+ case 6:
1970
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1971
+ for (var i = 0; i < values.length; i++) {
1972
+ msg.addTagIds(values[i]);
1973
+ }
1974
+ break;
1947
1975
  default:
1948
1976
  reader.skipField();
1949
1977
  break;
@@ -1994,6 +2022,27 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
1994
2022
  f
1995
2023
  );
1996
2024
  }
2025
+ f = message.getCategoryIdsList();
2026
+ if (f.length > 0) {
2027
+ writer.writePackedInt32(
2028
+ 4,
2029
+ f
2030
+ );
2031
+ }
2032
+ f = message.getCollectionIdsList();
2033
+ if (f.length > 0) {
2034
+ writer.writePackedInt32(
2035
+ 5,
2036
+ f
2037
+ );
2038
+ }
2039
+ f = message.getTagIdsList();
2040
+ if (f.length > 0) {
2041
+ writer.writePackedInt32(
2042
+ 6,
2043
+ f
2044
+ );
2045
+ }
1997
2046
  };
1998
2047
 
1999
2048
 
@@ -2105,6 +2154,117 @@ proto.game.GameSearchRequest.prototype.hasHasCategory = function() {
2105
2154
  };
2106
2155
 
2107
2156
 
2157
+ /**
2158
+ * repeated int32 category_ids = 4;
2159
+ * @return {!Array<number>}
2160
+ */
2161
+ proto.game.GameSearchRequest.prototype.getCategoryIdsList = function() {
2162
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
2163
+ };
2164
+
2165
+
2166
+ /**
2167
+ * @param {!Array<number>} value
2168
+ * @return {!proto.game.GameSearchRequest} returns this
2169
+ */
2170
+ proto.game.GameSearchRequest.prototype.setCategoryIdsList = function(value) {
2171
+ return jspb.Message.setField(this, 4, value || []);
2172
+ };
2173
+
2174
+
2175
+ /**
2176
+ * @param {number} value
2177
+ * @param {number=} opt_index
2178
+ * @return {!proto.game.GameSearchRequest} returns this
2179
+ */
2180
+ proto.game.GameSearchRequest.prototype.addCategoryIds = function(value, opt_index) {
2181
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
2182
+ };
2183
+
2184
+
2185
+ /**
2186
+ * Clears the list making it empty but non-null.
2187
+ * @return {!proto.game.GameSearchRequest} returns this
2188
+ */
2189
+ proto.game.GameSearchRequest.prototype.clearCategoryIdsList = function() {
2190
+ return this.setCategoryIdsList([]);
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * repeated int32 collection_ids = 5;
2196
+ * @return {!Array<number>}
2197
+ */
2198
+ proto.game.GameSearchRequest.prototype.getCollectionIdsList = function() {
2199
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
2200
+ };
2201
+
2202
+
2203
+ /**
2204
+ * @param {!Array<number>} value
2205
+ * @return {!proto.game.GameSearchRequest} returns this
2206
+ */
2207
+ proto.game.GameSearchRequest.prototype.setCollectionIdsList = function(value) {
2208
+ return jspb.Message.setField(this, 5, value || []);
2209
+ };
2210
+
2211
+
2212
+ /**
2213
+ * @param {number} value
2214
+ * @param {number=} opt_index
2215
+ * @return {!proto.game.GameSearchRequest} returns this
2216
+ */
2217
+ proto.game.GameSearchRequest.prototype.addCollectionIds = function(value, opt_index) {
2218
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
2219
+ };
2220
+
2221
+
2222
+ /**
2223
+ * Clears the list making it empty but non-null.
2224
+ * @return {!proto.game.GameSearchRequest} returns this
2225
+ */
2226
+ proto.game.GameSearchRequest.prototype.clearCollectionIdsList = function() {
2227
+ return this.setCollectionIdsList([]);
2228
+ };
2229
+
2230
+
2231
+ /**
2232
+ * repeated int32 tag_ids = 6;
2233
+ * @return {!Array<number>}
2234
+ */
2235
+ proto.game.GameSearchRequest.prototype.getTagIdsList = function() {
2236
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 6));
2237
+ };
2238
+
2239
+
2240
+ /**
2241
+ * @param {!Array<number>} value
2242
+ * @return {!proto.game.GameSearchRequest} returns this
2243
+ */
2244
+ proto.game.GameSearchRequest.prototype.setTagIdsList = function(value) {
2245
+ return jspb.Message.setField(this, 6, value || []);
2246
+ };
2247
+
2248
+
2249
+ /**
2250
+ * @param {number} value
2251
+ * @param {number=} opt_index
2252
+ * @return {!proto.game.GameSearchRequest} returns this
2253
+ */
2254
+ proto.game.GameSearchRequest.prototype.addTagIds = function(value, opt_index) {
2255
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
2256
+ };
2257
+
2258
+
2259
+ /**
2260
+ * Clears the list making it empty but non-null.
2261
+ * @return {!proto.game.GameSearchRequest} returns this
2262
+ */
2263
+ proto.game.GameSearchRequest.prototype.clearTagIdsList = function() {
2264
+ return this.setTagIdsList([]);
2265
+ };
2266
+
2267
+
2108
2268
 
2109
2269
 
2110
2270
 
@@ -8272,7 +8432,8 @@ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
8272
8432
  slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
8273
8433
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
8274
8434
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
8275
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
8435
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
8436
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 7, 0)
8276
8437
  };
8277
8438
 
8278
8439
  if (includeInstance) {
@@ -8333,6 +8494,10 @@ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
8333
8494
  var value = /** @type {string} */ (reader.readString());
8334
8495
  msg.setImage(value);
8335
8496
  break;
8497
+ case 7:
8498
+ var value = /** @type {number} */ (reader.readInt32());
8499
+ msg.setCountOfGames(value);
8500
+ break;
8336
8501
  default:
8337
8502
  reader.skipField();
8338
8503
  break;
@@ -8404,6 +8569,13 @@ proto.game.ProviderItem.serializeBinaryToWriter = function(message, writer) {
8404
8569
  f
8405
8570
  );
8406
8571
  }
8572
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
8573
+ if (f != null) {
8574
+ writer.writeInt32(
8575
+ 7,
8576
+ f
8577
+ );
8578
+ }
8407
8579
  };
8408
8580
 
8409
8581
 
@@ -8623,6 +8795,42 @@ proto.game.ProviderItem.prototype.hasImage = function() {
8623
8795
  };
8624
8796
 
8625
8797
 
8798
+ /**
8799
+ * optional int32 count_of_games = 7;
8800
+ * @return {number}
8801
+ */
8802
+ proto.game.ProviderItem.prototype.getCountOfGames = function() {
8803
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
8804
+ };
8805
+
8806
+
8807
+ /**
8808
+ * @param {number} value
8809
+ * @return {!proto.game.ProviderItem} returns this
8810
+ */
8811
+ proto.game.ProviderItem.prototype.setCountOfGames = function(value) {
8812
+ return jspb.Message.setField(this, 7, value);
8813
+ };
8814
+
8815
+
8816
+ /**
8817
+ * Clears the field making it undefined.
8818
+ * @return {!proto.game.ProviderItem} returns this
8819
+ */
8820
+ proto.game.ProviderItem.prototype.clearCountOfGames = function() {
8821
+ return jspb.Message.setField(this, 7, undefined);
8822
+ };
8823
+
8824
+
8825
+ /**
8826
+ * Returns whether this field is set.
8827
+ * @return {boolean}
8828
+ */
8829
+ proto.game.ProviderItem.prototype.hasCountOfGames = function() {
8830
+ return jspb.Message.getField(this, 7) != null;
8831
+ };
8832
+
8833
+
8626
8834
 
8627
8835
  /**
8628
8836
  * 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.96",
3
+ "version": "1.0.98",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {