protobuf-platform 1.0.98 → 1.0.100
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 +8 -6
- package/game/game_pb.js +142 -45
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -59,12 +59,14 @@ message PingRequest { string ping = 1; }
|
|
59
59
|
message PongResponse { string pong = 1; }
|
60
60
|
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional GameSearchRequest game_search_params = 3; }
|
61
61
|
message GameSearchRequest {
|
62
|
-
optional
|
63
|
-
optional
|
64
|
-
optional
|
65
|
-
|
66
|
-
repeated int32
|
67
|
-
repeated int32
|
62
|
+
optional bool is_active = 1;
|
63
|
+
optional bool is_deactivated = 2;
|
64
|
+
optional bool 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;
|
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_ = [
|
1870
|
+
proto.game.GameSearchRequest.repeatedFields_ = [5,6,7,8];
|
1871
1871
|
|
1872
1872
|
|
1873
1873
|
|
@@ -1900,12 +1900,14 @@ proto.game.GameSearchRequest.prototype.toObject = function(opt_includeInstance)
|
|
1900
1900
|
*/
|
1901
1901
|
proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
|
1902
1902
|
var f, obj = {
|
1903
|
-
isActive: jspb.Message.
|
1904
|
-
isDeactivated: jspb.Message.
|
1905
|
-
hasCategory: jspb.Message.
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1903
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
1904
|
+
isDeactivated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
1905
|
+
hasCategory: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
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) {
|
@@ -1943,35 +1945,43 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
1943
1945
|
var field = reader.getFieldNumber();
|
1944
1946
|
switch (field) {
|
1945
1947
|
case 1:
|
1946
|
-
var value = /** @type {
|
1948
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
1947
1949
|
msg.setIsActive(value);
|
1948
1950
|
break;
|
1949
1951
|
case 2:
|
1950
|
-
var value = /** @type {
|
1952
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
1951
1953
|
msg.setIsDeactivated(value);
|
1952
1954
|
break;
|
1953
1955
|
case 3:
|
1954
|
-
var value = /** @type {
|
1956
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
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
|
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
|
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;
|
@@ -2001,45 +2011,59 @@ proto.game.GameSearchRequest.prototype.serializeBinary = function() {
|
|
2001
2011
|
*/
|
2002
2012
|
proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
2003
2013
|
var f = undefined;
|
2004
|
-
f = /** @type {
|
2014
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
|
2005
2015
|
if (f != null) {
|
2006
|
-
writer.
|
2016
|
+
writer.writeBool(
|
2007
2017
|
1,
|
2008
2018
|
f
|
2009
2019
|
);
|
2010
2020
|
}
|
2011
|
-
f = /** @type {
|
2021
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
2012
2022
|
if (f != null) {
|
2013
|
-
writer.
|
2023
|
+
writer.writeBool(
|
2014
2024
|
2,
|
2015
2025
|
f
|
2016
2026
|
);
|
2017
2027
|
}
|
2018
|
-
f = /** @type {
|
2028
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
2019
2029
|
if (f != null) {
|
2020
|
-
writer.
|
2030
|
+
writer.writeBool(
|
2021
2031
|
3,
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
}
|
@@ -2047,16 +2071,16 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
|
|
2047
2071
|
|
2048
2072
|
|
2049
2073
|
/**
|
2050
|
-
* optional
|
2051
|
-
* @return {
|
2074
|
+
* optional bool is_active = 1;
|
2075
|
+
* @return {boolean}
|
2052
2076
|
*/
|
2053
2077
|
proto.game.GameSearchRequest.prototype.getIsActive = function() {
|
2054
|
-
return /** @type {
|
2078
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
2055
2079
|
};
|
2056
2080
|
|
2057
2081
|
|
2058
2082
|
/**
|
2059
|
-
* @param {
|
2083
|
+
* @param {boolean} value
|
2060
2084
|
* @return {!proto.game.GameSearchRequest} returns this
|
2061
2085
|
*/
|
2062
2086
|
proto.game.GameSearchRequest.prototype.setIsActive = function(value) {
|
@@ -2083,16 +2107,16 @@ proto.game.GameSearchRequest.prototype.hasIsActive = function() {
|
|
2083
2107
|
|
2084
2108
|
|
2085
2109
|
/**
|
2086
|
-
* optional
|
2087
|
-
* @return {
|
2110
|
+
* optional bool is_deactivated = 2;
|
2111
|
+
* @return {boolean}
|
2088
2112
|
*/
|
2089
2113
|
proto.game.GameSearchRequest.prototype.getIsDeactivated = function() {
|
2090
|
-
return /** @type {
|
2114
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
2091
2115
|
};
|
2092
2116
|
|
2093
2117
|
|
2094
2118
|
/**
|
2095
|
-
* @param {
|
2119
|
+
* @param {boolean} value
|
2096
2120
|
* @return {!proto.game.GameSearchRequest} returns this
|
2097
2121
|
*/
|
2098
2122
|
proto.game.GameSearchRequest.prototype.setIsDeactivated = function(value) {
|
@@ -2119,16 +2143,16 @@ proto.game.GameSearchRequest.prototype.hasIsDeactivated = function() {
|
|
2119
2143
|
|
2120
2144
|
|
2121
2145
|
/**
|
2122
|
-
* optional
|
2123
|
-
* @return {
|
2146
|
+
* optional bool has_category = 3;
|
2147
|
+
* @return {boolean}
|
2124
2148
|
*/
|
2125
2149
|
proto.game.GameSearchRequest.prototype.getHasCategory = function() {
|
2126
|
-
return /** @type {
|
2150
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
2127
2151
|
};
|
2128
2152
|
|
2129
2153
|
|
2130
2154
|
/**
|
2131
|
-
* @param {
|
2155
|
+
* @param {boolean} value
|
2132
2156
|
* @return {!proto.game.GameSearchRequest} returns this
|
2133
2157
|
*/
|
2134
2158
|
proto.game.GameSearchRequest.prototype.setHasCategory = function(value) {
|
@@ -2155,11 +2179,47 @@ proto.game.GameSearchRequest.prototype.hasHasCategory = function() {
|
|
2155
2179
|
|
2156
2180
|
|
2157
2181
|
/**
|
2158
|
-
*
|
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,
|
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,
|
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,
|
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 =
|
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,
|
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,
|
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,
|
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 =
|
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,
|
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,
|
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,
|
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
|
|