protobuf-platform 1.0.97 → 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 +5 -0
- package/game/game_pb.js +259 -2
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -62,6 +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
|
+
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;
|
65
70
|
}
|
66
71
|
//Media
|
67
72
|
message File { bytes media = 1; }
|
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,
|
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_ = [5,6,7,8];
|
1871
|
+
|
1865
1872
|
|
1866
1873
|
|
1867
1874
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -1895,7 +1902,12 @@ 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
|
+
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
|
1899
1911
|
};
|
1900
1912
|
|
1901
1913
|
if (includeInstance) {
|
@@ -1944,6 +1956,32 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
1944
1956
|
var value = /** @type {number} */ (reader.readInt32());
|
1945
1957
|
msg.setHasCategory(value);
|
1946
1958
|
break;
|
1959
|
+
case 4:
|
1960
|
+
var value = /** @type {string} */ (reader.readString());
|
1961
|
+
msg.setGameTitle(value);
|
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.addCategoryIds(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.addCollectionIds(values[i]);
|
1973
|
+
}
|
1974
|
+
break;
|
1975
|
+
case 7:
|
1976
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
1977
|
+
for (var i = 0; i < values.length; i++) {
|
1978
|
+
msg.addTagIds(values[i]);
|
1979
|
+
}
|
1980
|
+
break;
|
1981
|
+
case 8:
|
1982
|
+
var value = /** @type {string} */ (reader.readString());
|
1983
|
+
msg.addGeos(value);
|
1984
|
+
break;
|
1947
1985
|
default:
|
1948
1986
|
reader.skipField();
|
1949
1987
|
break;
|
@@ -1994,6 +2032,41 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
|
|
1994
2032
|
f
|
1995
2033
|
);
|
1996
2034
|
}
|
2035
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
2036
|
+
if (f != null) {
|
2037
|
+
writer.writeString(
|
2038
|
+
4,
|
2039
|
+
f
|
2040
|
+
);
|
2041
|
+
}
|
2042
|
+
f = message.getCategoryIdsList();
|
2043
|
+
if (f.length > 0) {
|
2044
|
+
writer.writePackedInt32(
|
2045
|
+
5,
|
2046
|
+
f
|
2047
|
+
);
|
2048
|
+
}
|
2049
|
+
f = message.getCollectionIdsList();
|
2050
|
+
if (f.length > 0) {
|
2051
|
+
writer.writePackedInt32(
|
2052
|
+
6,
|
2053
|
+
f
|
2054
|
+
);
|
2055
|
+
}
|
2056
|
+
f = message.getTagIdsList();
|
2057
|
+
if (f.length > 0) {
|
2058
|
+
writer.writePackedInt32(
|
2059
|
+
7,
|
2060
|
+
f
|
2061
|
+
);
|
2062
|
+
}
|
2063
|
+
f = message.getGeosList();
|
2064
|
+
if (f.length > 0) {
|
2065
|
+
writer.writeRepeatedString(
|
2066
|
+
8,
|
2067
|
+
f
|
2068
|
+
);
|
2069
|
+
}
|
1997
2070
|
};
|
1998
2071
|
|
1999
2072
|
|
@@ -2105,6 +2178,190 @@ proto.game.GameSearchRequest.prototype.hasHasCategory = function() {
|
|
2105
2178
|
};
|
2106
2179
|
|
2107
2180
|
|
2181
|
+
/**
|
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;
|
2219
|
+
* @return {!Array<number>}
|
2220
|
+
*/
|
2221
|
+
proto.game.GameSearchRequest.prototype.getCategoryIdsList = function() {
|
2222
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
|
2223
|
+
};
|
2224
|
+
|
2225
|
+
|
2226
|
+
/**
|
2227
|
+
* @param {!Array<number>} value
|
2228
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2229
|
+
*/
|
2230
|
+
proto.game.GameSearchRequest.prototype.setCategoryIdsList = function(value) {
|
2231
|
+
return jspb.Message.setField(this, 5, value || []);
|
2232
|
+
};
|
2233
|
+
|
2234
|
+
|
2235
|
+
/**
|
2236
|
+
* @param {number} value
|
2237
|
+
* @param {number=} opt_index
|
2238
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2239
|
+
*/
|
2240
|
+
proto.game.GameSearchRequest.prototype.addCategoryIds = function(value, opt_index) {
|
2241
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
2242
|
+
};
|
2243
|
+
|
2244
|
+
|
2245
|
+
/**
|
2246
|
+
* Clears the list making it empty but non-null.
|
2247
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2248
|
+
*/
|
2249
|
+
proto.game.GameSearchRequest.prototype.clearCategoryIdsList = function() {
|
2250
|
+
return this.setCategoryIdsList([]);
|
2251
|
+
};
|
2252
|
+
|
2253
|
+
|
2254
|
+
/**
|
2255
|
+
* repeated int32 collection_ids = 6;
|
2256
|
+
* @return {!Array<number>}
|
2257
|
+
*/
|
2258
|
+
proto.game.GameSearchRequest.prototype.getCollectionIdsList = function() {
|
2259
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 6));
|
2260
|
+
};
|
2261
|
+
|
2262
|
+
|
2263
|
+
/**
|
2264
|
+
* @param {!Array<number>} value
|
2265
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2266
|
+
*/
|
2267
|
+
proto.game.GameSearchRequest.prototype.setCollectionIdsList = function(value) {
|
2268
|
+
return jspb.Message.setField(this, 6, value || []);
|
2269
|
+
};
|
2270
|
+
|
2271
|
+
|
2272
|
+
/**
|
2273
|
+
* @param {number} value
|
2274
|
+
* @param {number=} opt_index
|
2275
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2276
|
+
*/
|
2277
|
+
proto.game.GameSearchRequest.prototype.addCollectionIds = function(value, opt_index) {
|
2278
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
2279
|
+
};
|
2280
|
+
|
2281
|
+
|
2282
|
+
/**
|
2283
|
+
* Clears the list making it empty but non-null.
|
2284
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2285
|
+
*/
|
2286
|
+
proto.game.GameSearchRequest.prototype.clearCollectionIdsList = function() {
|
2287
|
+
return this.setCollectionIdsList([]);
|
2288
|
+
};
|
2289
|
+
|
2290
|
+
|
2291
|
+
/**
|
2292
|
+
* repeated int32 tag_ids = 7;
|
2293
|
+
* @return {!Array<number>}
|
2294
|
+
*/
|
2295
|
+
proto.game.GameSearchRequest.prototype.getTagIdsList = function() {
|
2296
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 7));
|
2297
|
+
};
|
2298
|
+
|
2299
|
+
|
2300
|
+
/**
|
2301
|
+
* @param {!Array<number>} value
|
2302
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2303
|
+
*/
|
2304
|
+
proto.game.GameSearchRequest.prototype.setTagIdsList = function(value) {
|
2305
|
+
return jspb.Message.setField(this, 7, value || []);
|
2306
|
+
};
|
2307
|
+
|
2308
|
+
|
2309
|
+
/**
|
2310
|
+
* @param {number} value
|
2311
|
+
* @param {number=} opt_index
|
2312
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2313
|
+
*/
|
2314
|
+
proto.game.GameSearchRequest.prototype.addTagIds = function(value, opt_index) {
|
2315
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
2316
|
+
};
|
2317
|
+
|
2318
|
+
|
2319
|
+
/**
|
2320
|
+
* Clears the list making it empty but non-null.
|
2321
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
2322
|
+
*/
|
2323
|
+
proto.game.GameSearchRequest.prototype.clearTagIdsList = function() {
|
2324
|
+
return this.setTagIdsList([]);
|
2325
|
+
};
|
2326
|
+
|
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
|
+
|
2108
2365
|
|
2109
2366
|
|
2110
2367
|
|