protobuf-platform 1.0.98 → 1.0.99

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,9 +62,11 @@ 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
+ optional string game_title = 4;
66
+ repeated int32 category_ids = 5;
67
+ repeated int32 collection_ids = 6;
68
+ repeated int32 tag_ids = 7;
69
+ repeated string geos = 8;
68
70
  }
69
71
  //Media
70
72
  message File { bytes media = 1; }
package/game/game_pb.js CHANGED
@@ -1867,7 +1867,7 @@ proto.game.PaginationRequest.prototype.hasGameSearchParams = function() {
1867
1867
  * @private {!Array<number>}
1868
1868
  * @const
1869
1869
  */
1870
- proto.game.GameSearchRequest.repeatedFields_ = [4,5,6];
1870
+ proto.game.GameSearchRequest.repeatedFields_ = [5,6,7,8];
1871
1871
 
1872
1872
 
1873
1873
 
@@ -1903,9 +1903,11 @@ proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
1903
1903
  isActive: jspb.Message.getFieldWithDefault(msg, 1, 0),
1904
1904
  isDeactivated: jspb.Message.getFieldWithDefault(msg, 2, 0),
1905
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
1906
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 4, ""),
1907
+ categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
1908
+ collectionIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
1909
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
1910
+ geosList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
1909
1911
  };
1910
1912
 
1911
1913
  if (includeInstance) {
@@ -1955,23 +1957,31 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
1955
1957
  msg.setHasCategory(value);
1956
1958
  break;
1957
1959
  case 4:
1960
+ var value = /** @type {string} */ (reader.readString());
1961
+ msg.setGameTitle(value);
1962
+ break;
1963
+ case 5:
1958
1964
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1959
1965
  for (var i = 0; i < values.length; i++) {
1960
1966
  msg.addCategoryIds(values[i]);
1961
1967
  }
1962
1968
  break;
1963
- case 5:
1969
+ case 6:
1964
1970
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1965
1971
  for (var i = 0; i < values.length; i++) {
1966
1972
  msg.addCollectionIds(values[i]);
1967
1973
  }
1968
1974
  break;
1969
- case 6:
1975
+ case 7:
1970
1976
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1971
1977
  for (var i = 0; i < values.length; i++) {
1972
1978
  msg.addTagIds(values[i]);
1973
1979
  }
1974
1980
  break;
1981
+ case 8:
1982
+ var value = /** @type {string} */ (reader.readString());
1983
+ msg.addGeos(value);
1984
+ break;
1975
1985
  default:
1976
1986
  reader.skipField();
1977
1987
  break;
@@ -2022,24 +2032,38 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
2022
2032
  f
2023
2033
  );
2024
2034
  }
2035
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2036
+ if (f != null) {
2037
+ writer.writeString(
2038
+ 4,
2039
+ f
2040
+ );
2041
+ }
2025
2042
  f = message.getCategoryIdsList();
2026
2043
  if (f.length > 0) {
2027
2044
  writer.writePackedInt32(
2028
- 4,
2045
+ 5,
2029
2046
  f
2030
2047
  );
2031
2048
  }
2032
2049
  f = message.getCollectionIdsList();
2033
2050
  if (f.length > 0) {
2034
2051
  writer.writePackedInt32(
2035
- 5,
2052
+ 6,
2036
2053
  f
2037
2054
  );
2038
2055
  }
2039
2056
  f = message.getTagIdsList();
2040
2057
  if (f.length > 0) {
2041
2058
  writer.writePackedInt32(
2042
- 6,
2059
+ 7,
2060
+ f
2061
+ );
2062
+ }
2063
+ f = message.getGeosList();
2064
+ if (f.length > 0) {
2065
+ writer.writeRepeatedString(
2066
+ 8,
2043
2067
  f
2044
2068
  );
2045
2069
  }
@@ -2155,11 +2179,47 @@ proto.game.GameSearchRequest.prototype.hasHasCategory = function() {
2155
2179
 
2156
2180
 
2157
2181
  /**
2158
- * repeated int32 category_ids = 4;
2182
+ * optional string game_title = 4;
2183
+ * @return {string}
2184
+ */
2185
+ proto.game.GameSearchRequest.prototype.getGameTitle = function() {
2186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * @param {string} value
2192
+ * @return {!proto.game.GameSearchRequest} returns this
2193
+ */
2194
+ proto.game.GameSearchRequest.prototype.setGameTitle = function(value) {
2195
+ return jspb.Message.setField(this, 4, value);
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * Clears the field making it undefined.
2201
+ * @return {!proto.game.GameSearchRequest} returns this
2202
+ */
2203
+ proto.game.GameSearchRequest.prototype.clearGameTitle = function() {
2204
+ return jspb.Message.setField(this, 4, undefined);
2205
+ };
2206
+
2207
+
2208
+ /**
2209
+ * Returns whether this field is set.
2210
+ * @return {boolean}
2211
+ */
2212
+ proto.game.GameSearchRequest.prototype.hasGameTitle = function() {
2213
+ return jspb.Message.getField(this, 4) != null;
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * repeated int32 category_ids = 5;
2159
2219
  * @return {!Array<number>}
2160
2220
  */
2161
2221
  proto.game.GameSearchRequest.prototype.getCategoryIdsList = function() {
2162
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
2222
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
2163
2223
  };
2164
2224
 
2165
2225
 
@@ -2168,7 +2228,7 @@ proto.game.GameSearchRequest.prototype.getCategoryIdsList = function() {
2168
2228
  * @return {!proto.game.GameSearchRequest} returns this
2169
2229
  */
2170
2230
  proto.game.GameSearchRequest.prototype.setCategoryIdsList = function(value) {
2171
- return jspb.Message.setField(this, 4, value || []);
2231
+ return jspb.Message.setField(this, 5, value || []);
2172
2232
  };
2173
2233
 
2174
2234
 
@@ -2178,7 +2238,7 @@ proto.game.GameSearchRequest.prototype.setCategoryIdsList = function(value) {
2178
2238
  * @return {!proto.game.GameSearchRequest} returns this
2179
2239
  */
2180
2240
  proto.game.GameSearchRequest.prototype.addCategoryIds = function(value, opt_index) {
2181
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
2241
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
2182
2242
  };
2183
2243
 
2184
2244
 
@@ -2192,11 +2252,11 @@ proto.game.GameSearchRequest.prototype.clearCategoryIdsList = function() {
2192
2252
 
2193
2253
 
2194
2254
  /**
2195
- * repeated int32 collection_ids = 5;
2255
+ * repeated int32 collection_ids = 6;
2196
2256
  * @return {!Array<number>}
2197
2257
  */
2198
2258
  proto.game.GameSearchRequest.prototype.getCollectionIdsList = function() {
2199
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
2259
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 6));
2200
2260
  };
2201
2261
 
2202
2262
 
@@ -2205,7 +2265,7 @@ proto.game.GameSearchRequest.prototype.getCollectionIdsList = function() {
2205
2265
  * @return {!proto.game.GameSearchRequest} returns this
2206
2266
  */
2207
2267
  proto.game.GameSearchRequest.prototype.setCollectionIdsList = function(value) {
2208
- return jspb.Message.setField(this, 5, value || []);
2268
+ return jspb.Message.setField(this, 6, value || []);
2209
2269
  };
2210
2270
 
2211
2271
 
@@ -2215,7 +2275,7 @@ proto.game.GameSearchRequest.prototype.setCollectionIdsList = function(value) {
2215
2275
  * @return {!proto.game.GameSearchRequest} returns this
2216
2276
  */
2217
2277
  proto.game.GameSearchRequest.prototype.addCollectionIds = function(value, opt_index) {
2218
- return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
2278
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
2219
2279
  };
2220
2280
 
2221
2281
 
@@ -2229,11 +2289,11 @@ proto.game.GameSearchRequest.prototype.clearCollectionIdsList = function() {
2229
2289
 
2230
2290
 
2231
2291
  /**
2232
- * repeated int32 tag_ids = 6;
2292
+ * repeated int32 tag_ids = 7;
2233
2293
  * @return {!Array<number>}
2234
2294
  */
2235
2295
  proto.game.GameSearchRequest.prototype.getTagIdsList = function() {
2236
- return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 6));
2296
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 7));
2237
2297
  };
2238
2298
 
2239
2299
 
@@ -2242,7 +2302,7 @@ proto.game.GameSearchRequest.prototype.getTagIdsList = function() {
2242
2302
  * @return {!proto.game.GameSearchRequest} returns this
2243
2303
  */
2244
2304
  proto.game.GameSearchRequest.prototype.setTagIdsList = function(value) {
2245
- return jspb.Message.setField(this, 6, value || []);
2305
+ return jspb.Message.setField(this, 7, value || []);
2246
2306
  };
2247
2307
 
2248
2308
 
@@ -2252,7 +2312,7 @@ proto.game.GameSearchRequest.prototype.setTagIdsList = function(value) {
2252
2312
  * @return {!proto.game.GameSearchRequest} returns this
2253
2313
  */
2254
2314
  proto.game.GameSearchRequest.prototype.addTagIds = function(value, opt_index) {
2255
- return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
2315
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
2256
2316
  };
2257
2317
 
2258
2318
 
@@ -2265,6 +2325,43 @@ proto.game.GameSearchRequest.prototype.clearTagIdsList = function() {
2265
2325
  };
2266
2326
 
2267
2327
 
2328
+ /**
2329
+ * repeated string geos = 8;
2330
+ * @return {!Array<string>}
2331
+ */
2332
+ proto.game.GameSearchRequest.prototype.getGeosList = function() {
2333
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * @param {!Array<string>} value
2339
+ * @return {!proto.game.GameSearchRequest} returns this
2340
+ */
2341
+ proto.game.GameSearchRequest.prototype.setGeosList = function(value) {
2342
+ return jspb.Message.setField(this, 8, value || []);
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * @param {string} value
2348
+ * @param {number=} opt_index
2349
+ * @return {!proto.game.GameSearchRequest} returns this
2350
+ */
2351
+ proto.game.GameSearchRequest.prototype.addGeos = function(value, opt_index) {
2352
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
2353
+ };
2354
+
2355
+
2356
+ /**
2357
+ * Clears the list making it empty but non-null.
2358
+ * @return {!proto.game.GameSearchRequest} returns this
2359
+ */
2360
+ proto.game.GameSearchRequest.prototype.clearGeosList = function() {
2361
+ return this.setGeosList([]);
2362
+ };
2363
+
2364
+
2268
2365
 
2269
2366
 
2270
2367
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {