protobuf-platform 1.0.27 → 1.0.28
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 +6 -5
- package/game/game_pb.js +90 -41
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -29,12 +29,13 @@ message CategoryRequest {
|
|
29
29
|
oneof request {
|
30
30
|
string title = 2;
|
31
31
|
MetaDataFile metadata = 3;
|
32
|
+
int32 category_id = 4;
|
32
33
|
}
|
33
|
-
int32 id =
|
34
|
-
optional string slug =
|
35
|
-
optional string description =
|
36
|
-
optional int32 is_active =
|
37
|
-
optional File file =
|
34
|
+
int32 id = 5;
|
35
|
+
optional string slug = 6;
|
36
|
+
optional string description = 7;
|
37
|
+
optional int32 is_active = 8;
|
38
|
+
optional File file = 9;
|
38
39
|
}
|
39
40
|
message GetCategoryRequest {
|
40
41
|
int32 id = 1;
|
package/game/game_pb.js
CHANGED
@@ -921,7 +921,7 @@ proto.game.CategoryItem.prototype.hasImagePath = function() {
|
|
921
921
|
* @private {!Array<!Array<number>>}
|
922
922
|
* @const
|
923
923
|
*/
|
924
|
-
proto.game.CategoryRequest.oneofGroups_ = [[2,3]];
|
924
|
+
proto.game.CategoryRequest.oneofGroups_ = [[2,3,4]];
|
925
925
|
|
926
926
|
/**
|
927
927
|
* @enum {number}
|
@@ -929,7 +929,8 @@ proto.game.CategoryRequest.oneofGroups_ = [[2,3]];
|
|
929
929
|
proto.game.CategoryRequest.RequestCase = {
|
930
930
|
REQUEST_NOT_SET: 0,
|
931
931
|
TITLE: 2,
|
932
|
-
METADATA: 3
|
932
|
+
METADATA: 3,
|
933
|
+
CATEGORY_ID: 4
|
933
934
|
};
|
934
935
|
|
935
936
|
/**
|
@@ -972,10 +973,11 @@ proto.game.CategoryRequest.toObject = function(includeInstance, msg) {
|
|
972
973
|
var f, obj = {
|
973
974
|
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
974
975
|
metadata: (f = msg.getMetadata()) && proto.game.MetaDataFile.toObject(includeInstance, f),
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
976
|
+
categoryId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
977
|
+
id: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
978
|
+
slug: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
979
|
+
description: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
980
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
979
981
|
file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
|
980
982
|
};
|
981
983
|
|
@@ -1022,23 +1024,27 @@ proto.game.CategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1022
1024
|
reader.readMessage(value,proto.game.MetaDataFile.deserializeBinaryFromReader);
|
1023
1025
|
msg.setMetadata(value);
|
1024
1026
|
break;
|
1025
|
-
case
|
1027
|
+
case 4:
|
1028
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1029
|
+
msg.setCategoryId(value);
|
1030
|
+
break;
|
1031
|
+
case 5:
|
1026
1032
|
var value = /** @type {number} */ (reader.readInt32());
|
1027
1033
|
msg.setId(value);
|
1028
1034
|
break;
|
1029
|
-
case
|
1035
|
+
case 6:
|
1030
1036
|
var value = /** @type {string} */ (reader.readString());
|
1031
1037
|
msg.setSlug(value);
|
1032
1038
|
break;
|
1033
|
-
case
|
1039
|
+
case 7:
|
1034
1040
|
var value = /** @type {string} */ (reader.readString());
|
1035
1041
|
msg.setDescription(value);
|
1036
1042
|
break;
|
1037
|
-
case
|
1043
|
+
case 8:
|
1038
1044
|
var value = /** @type {number} */ (reader.readInt32());
|
1039
1045
|
msg.setIsActive(value);
|
1040
1046
|
break;
|
1041
|
-
case
|
1047
|
+
case 9:
|
1042
1048
|
var value = new proto.game.File;
|
1043
1049
|
reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
|
1044
1050
|
msg.setFile(value);
|
@@ -1087,38 +1093,45 @@ proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1087
1093
|
proto.game.MetaDataFile.serializeBinaryToWriter
|
1088
1094
|
);
|
1089
1095
|
}
|
1096
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
1097
|
+
if (f != null) {
|
1098
|
+
writer.writeInt32(
|
1099
|
+
4,
|
1100
|
+
f
|
1101
|
+
);
|
1102
|
+
}
|
1090
1103
|
f = message.getId();
|
1091
1104
|
if (f !== 0) {
|
1092
1105
|
writer.writeInt32(
|
1093
|
-
|
1106
|
+
5,
|
1094
1107
|
f
|
1095
1108
|
);
|
1096
1109
|
}
|
1097
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1110
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1098
1111
|
if (f != null) {
|
1099
1112
|
writer.writeString(
|
1100
|
-
|
1113
|
+
6,
|
1101
1114
|
f
|
1102
1115
|
);
|
1103
1116
|
}
|
1104
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1117
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1105
1118
|
if (f != null) {
|
1106
1119
|
writer.writeString(
|
1107
|
-
|
1120
|
+
7,
|
1108
1121
|
f
|
1109
1122
|
);
|
1110
1123
|
}
|
1111
|
-
f = /** @type {number} */ (jspb.Message.getField(message,
|
1124
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
1112
1125
|
if (f != null) {
|
1113
1126
|
writer.writeInt32(
|
1114
|
-
|
1127
|
+
8,
|
1115
1128
|
f
|
1116
1129
|
);
|
1117
1130
|
}
|
1118
1131
|
f = message.getFile();
|
1119
1132
|
if (f != null) {
|
1120
1133
|
writer.writeMessage(
|
1121
|
-
|
1134
|
+
9,
|
1122
1135
|
f,
|
1123
1136
|
proto.game.File.serializeBinaryToWriter
|
1124
1137
|
);
|
@@ -1200,11 +1213,47 @@ proto.game.CategoryRequest.prototype.hasMetadata = function() {
|
|
1200
1213
|
|
1201
1214
|
|
1202
1215
|
/**
|
1203
|
-
* optional int32
|
1216
|
+
* optional int32 category_id = 4;
|
1217
|
+
* @return {number}
|
1218
|
+
*/
|
1219
|
+
proto.game.CategoryRequest.prototype.getCategoryId = function() {
|
1220
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
1221
|
+
};
|
1222
|
+
|
1223
|
+
|
1224
|
+
/**
|
1225
|
+
* @param {number} value
|
1226
|
+
* @return {!proto.game.CategoryRequest} returns this
|
1227
|
+
*/
|
1228
|
+
proto.game.CategoryRequest.prototype.setCategoryId = function(value) {
|
1229
|
+
return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1230
|
+
};
|
1231
|
+
|
1232
|
+
|
1233
|
+
/**
|
1234
|
+
* Clears the field making it undefined.
|
1235
|
+
* @return {!proto.game.CategoryRequest} returns this
|
1236
|
+
*/
|
1237
|
+
proto.game.CategoryRequest.prototype.clearCategoryId = function() {
|
1238
|
+
return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], undefined);
|
1239
|
+
};
|
1240
|
+
|
1241
|
+
|
1242
|
+
/**
|
1243
|
+
* Returns whether this field is set.
|
1244
|
+
* @return {boolean}
|
1245
|
+
*/
|
1246
|
+
proto.game.CategoryRequest.prototype.hasCategoryId = function() {
|
1247
|
+
return jspb.Message.getField(this, 4) != null;
|
1248
|
+
};
|
1249
|
+
|
1250
|
+
|
1251
|
+
/**
|
1252
|
+
* optional int32 id = 5;
|
1204
1253
|
* @return {number}
|
1205
1254
|
*/
|
1206
1255
|
proto.game.CategoryRequest.prototype.getId = function() {
|
1207
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
1256
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1208
1257
|
};
|
1209
1258
|
|
1210
1259
|
|
@@ -1213,16 +1262,16 @@ proto.game.CategoryRequest.prototype.getId = function() {
|
|
1213
1262
|
* @return {!proto.game.CategoryRequest} returns this
|
1214
1263
|
*/
|
1215
1264
|
proto.game.CategoryRequest.prototype.setId = function(value) {
|
1216
|
-
return jspb.Message.setProto3IntField(this,
|
1265
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
1217
1266
|
};
|
1218
1267
|
|
1219
1268
|
|
1220
1269
|
/**
|
1221
|
-
* optional string slug =
|
1270
|
+
* optional string slug = 6;
|
1222
1271
|
* @return {string}
|
1223
1272
|
*/
|
1224
1273
|
proto.game.CategoryRequest.prototype.getSlug = function() {
|
1225
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1274
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1226
1275
|
};
|
1227
1276
|
|
1228
1277
|
|
@@ -1231,7 +1280,7 @@ proto.game.CategoryRequest.prototype.getSlug = function() {
|
|
1231
1280
|
* @return {!proto.game.CategoryRequest} returns this
|
1232
1281
|
*/
|
1233
1282
|
proto.game.CategoryRequest.prototype.setSlug = function(value) {
|
1234
|
-
return jspb.Message.setField(this,
|
1283
|
+
return jspb.Message.setField(this, 6, value);
|
1235
1284
|
};
|
1236
1285
|
|
1237
1286
|
|
@@ -1240,7 +1289,7 @@ proto.game.CategoryRequest.prototype.setSlug = function(value) {
|
|
1240
1289
|
* @return {!proto.game.CategoryRequest} returns this
|
1241
1290
|
*/
|
1242
1291
|
proto.game.CategoryRequest.prototype.clearSlug = function() {
|
1243
|
-
return jspb.Message.setField(this,
|
1292
|
+
return jspb.Message.setField(this, 6, undefined);
|
1244
1293
|
};
|
1245
1294
|
|
1246
1295
|
|
@@ -1249,16 +1298,16 @@ proto.game.CategoryRequest.prototype.clearSlug = function() {
|
|
1249
1298
|
* @return {boolean}
|
1250
1299
|
*/
|
1251
1300
|
proto.game.CategoryRequest.prototype.hasSlug = function() {
|
1252
|
-
return jspb.Message.getField(this,
|
1301
|
+
return jspb.Message.getField(this, 6) != null;
|
1253
1302
|
};
|
1254
1303
|
|
1255
1304
|
|
1256
1305
|
/**
|
1257
|
-
* optional string description =
|
1306
|
+
* optional string description = 7;
|
1258
1307
|
* @return {string}
|
1259
1308
|
*/
|
1260
1309
|
proto.game.CategoryRequest.prototype.getDescription = function() {
|
1261
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1310
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1262
1311
|
};
|
1263
1312
|
|
1264
1313
|
|
@@ -1267,7 +1316,7 @@ proto.game.CategoryRequest.prototype.getDescription = function() {
|
|
1267
1316
|
* @return {!proto.game.CategoryRequest} returns this
|
1268
1317
|
*/
|
1269
1318
|
proto.game.CategoryRequest.prototype.setDescription = function(value) {
|
1270
|
-
return jspb.Message.setField(this,
|
1319
|
+
return jspb.Message.setField(this, 7, value);
|
1271
1320
|
};
|
1272
1321
|
|
1273
1322
|
|
@@ -1276,7 +1325,7 @@ proto.game.CategoryRequest.prototype.setDescription = function(value) {
|
|
1276
1325
|
* @return {!proto.game.CategoryRequest} returns this
|
1277
1326
|
*/
|
1278
1327
|
proto.game.CategoryRequest.prototype.clearDescription = function() {
|
1279
|
-
return jspb.Message.setField(this,
|
1328
|
+
return jspb.Message.setField(this, 7, undefined);
|
1280
1329
|
};
|
1281
1330
|
|
1282
1331
|
|
@@ -1285,16 +1334,16 @@ proto.game.CategoryRequest.prototype.clearDescription = function() {
|
|
1285
1334
|
* @return {boolean}
|
1286
1335
|
*/
|
1287
1336
|
proto.game.CategoryRequest.prototype.hasDescription = function() {
|
1288
|
-
return jspb.Message.getField(this,
|
1337
|
+
return jspb.Message.getField(this, 7) != null;
|
1289
1338
|
};
|
1290
1339
|
|
1291
1340
|
|
1292
1341
|
/**
|
1293
|
-
* optional int32 is_active =
|
1342
|
+
* optional int32 is_active = 8;
|
1294
1343
|
* @return {number}
|
1295
1344
|
*/
|
1296
1345
|
proto.game.CategoryRequest.prototype.getIsActive = function() {
|
1297
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
1346
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
1298
1347
|
};
|
1299
1348
|
|
1300
1349
|
|
@@ -1303,7 +1352,7 @@ proto.game.CategoryRequest.prototype.getIsActive = function() {
|
|
1303
1352
|
* @return {!proto.game.CategoryRequest} returns this
|
1304
1353
|
*/
|
1305
1354
|
proto.game.CategoryRequest.prototype.setIsActive = function(value) {
|
1306
|
-
return jspb.Message.setField(this,
|
1355
|
+
return jspb.Message.setField(this, 8, value);
|
1307
1356
|
};
|
1308
1357
|
|
1309
1358
|
|
@@ -1312,7 +1361,7 @@ proto.game.CategoryRequest.prototype.setIsActive = function(value) {
|
|
1312
1361
|
* @return {!proto.game.CategoryRequest} returns this
|
1313
1362
|
*/
|
1314
1363
|
proto.game.CategoryRequest.prototype.clearIsActive = function() {
|
1315
|
-
return jspb.Message.setField(this,
|
1364
|
+
return jspb.Message.setField(this, 8, undefined);
|
1316
1365
|
};
|
1317
1366
|
|
1318
1367
|
|
@@ -1321,17 +1370,17 @@ proto.game.CategoryRequest.prototype.clearIsActive = function() {
|
|
1321
1370
|
* @return {boolean}
|
1322
1371
|
*/
|
1323
1372
|
proto.game.CategoryRequest.prototype.hasIsActive = function() {
|
1324
|
-
return jspb.Message.getField(this,
|
1373
|
+
return jspb.Message.getField(this, 8) != null;
|
1325
1374
|
};
|
1326
1375
|
|
1327
1376
|
|
1328
1377
|
/**
|
1329
|
-
* optional File file =
|
1378
|
+
* optional File file = 9;
|
1330
1379
|
* @return {?proto.game.File}
|
1331
1380
|
*/
|
1332
1381
|
proto.game.CategoryRequest.prototype.getFile = function() {
|
1333
1382
|
return /** @type{?proto.game.File} */ (
|
1334
|
-
jspb.Message.getWrapperField(this, proto.game.File,
|
1383
|
+
jspb.Message.getWrapperField(this, proto.game.File, 9));
|
1335
1384
|
};
|
1336
1385
|
|
1337
1386
|
|
@@ -1340,7 +1389,7 @@ proto.game.CategoryRequest.prototype.getFile = function() {
|
|
1340
1389
|
* @return {!proto.game.CategoryRequest} returns this
|
1341
1390
|
*/
|
1342
1391
|
proto.game.CategoryRequest.prototype.setFile = function(value) {
|
1343
|
-
return jspb.Message.setWrapperField(this,
|
1392
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
1344
1393
|
};
|
1345
1394
|
|
1346
1395
|
|
@@ -1358,7 +1407,7 @@ proto.game.CategoryRequest.prototype.clearFile = function() {
|
|
1358
1407
|
* @return {boolean}
|
1359
1408
|
*/
|
1360
1409
|
proto.game.CategoryRequest.prototype.hasFile = function() {
|
1361
|
-
return jspb.Message.getField(this,
|
1410
|
+
return jspb.Message.getField(this, 9) != null;
|
1362
1411
|
};
|
1363
1412
|
|
1364
1413
|
|