protobuf-platform 1.0.97 → 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 +3 -0
- package/game/game_pb.js +162 -2
- package/package.json +1 -1
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; }
|
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_ = [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
|
|