protobuf-platform 1.0.26 → 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 +113 -83
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -27,14 +27,15 @@ message CategoryItem {
|
|
27
27
|
//Category CRUD | Requests
|
28
28
|
message CategoryRequest {
|
29
29
|
oneof request {
|
30
|
-
int32 id = 1;
|
31
30
|
string title = 2;
|
32
31
|
MetaDataFile metadata = 3;
|
32
|
+
int32 category_id = 4;
|
33
33
|
}
|
34
|
-
|
35
|
-
optional string
|
36
|
-
optional
|
37
|
-
optional
|
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,16 +921,16 @@ proto.game.CategoryItem.prototype.hasImagePath = function() {
|
|
921
921
|
* @private {!Array<!Array<number>>}
|
922
922
|
* @const
|
923
923
|
*/
|
924
|
-
proto.game.CategoryRequest.oneofGroups_ = [[
|
924
|
+
proto.game.CategoryRequest.oneofGroups_ = [[2,3,4]];
|
925
925
|
|
926
926
|
/**
|
927
927
|
* @enum {number}
|
928
928
|
*/
|
929
929
|
proto.game.CategoryRequest.RequestCase = {
|
930
930
|
REQUEST_NOT_SET: 0,
|
931
|
-
ID: 1,
|
932
931
|
TITLE: 2,
|
933
|
-
METADATA: 3
|
932
|
+
METADATA: 3,
|
933
|
+
CATEGORY_ID: 4
|
934
934
|
};
|
935
935
|
|
936
936
|
/**
|
@@ -971,12 +971,13 @@ proto.game.CategoryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
971
971
|
*/
|
972
972
|
proto.game.CategoryRequest.toObject = function(includeInstance, msg) {
|
973
973
|
var f, obj = {
|
974
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
975
974
|
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
976
975
|
metadata: (f = msg.getMetadata()) && proto.game.MetaDataFile.toObject(includeInstance, f),
|
977
|
-
|
978
|
-
|
979
|
-
|
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),
|
980
981
|
file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
|
981
982
|
};
|
982
983
|
|
@@ -1014,10 +1015,6 @@ proto.game.CategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1014
1015
|
}
|
1015
1016
|
var field = reader.getFieldNumber();
|
1016
1017
|
switch (field) {
|
1017
|
-
case 1:
|
1018
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1019
|
-
msg.setId(value);
|
1020
|
-
break;
|
1021
1018
|
case 2:
|
1022
1019
|
var value = /** @type {string} */ (reader.readString());
|
1023
1020
|
msg.setTitle(value);
|
@@ -1028,18 +1025,26 @@ proto.game.CategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1028
1025
|
msg.setMetadata(value);
|
1029
1026
|
break;
|
1030
1027
|
case 4:
|
1028
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1029
|
+
msg.setCategoryId(value);
|
1030
|
+
break;
|
1031
|
+
case 5:
|
1032
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1033
|
+
msg.setId(value);
|
1034
|
+
break;
|
1035
|
+
case 6:
|
1031
1036
|
var value = /** @type {string} */ (reader.readString());
|
1032
1037
|
msg.setSlug(value);
|
1033
1038
|
break;
|
1034
|
-
case
|
1039
|
+
case 7:
|
1035
1040
|
var value = /** @type {string} */ (reader.readString());
|
1036
1041
|
msg.setDescription(value);
|
1037
1042
|
break;
|
1038
|
-
case
|
1043
|
+
case 8:
|
1039
1044
|
var value = /** @type {number} */ (reader.readInt32());
|
1040
1045
|
msg.setIsActive(value);
|
1041
1046
|
break;
|
1042
|
-
case
|
1047
|
+
case 9:
|
1043
1048
|
var value = new proto.game.File;
|
1044
1049
|
reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
|
1045
1050
|
msg.setFile(value);
|
@@ -1073,13 +1078,6 @@ proto.game.CategoryRequest.prototype.serializeBinary = function() {
|
|
1073
1078
|
*/
|
1074
1079
|
proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
1075
1080
|
var f = undefined;
|
1076
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1077
|
-
if (f != null) {
|
1078
|
-
writer.writeInt32(
|
1079
|
-
1,
|
1080
|
-
f
|
1081
|
-
);
|
1082
|
-
}
|
1083
1081
|
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1084
1082
|
if (f != null) {
|
1085
1083
|
writer.writeString(
|
@@ -1095,31 +1093,45 @@ proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1095
1093
|
proto.game.MetaDataFile.serializeBinaryToWriter
|
1096
1094
|
);
|
1097
1095
|
}
|
1098
|
-
f = /** @type {
|
1096
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
1099
1097
|
if (f != null) {
|
1100
|
-
writer.
|
1098
|
+
writer.writeInt32(
|
1101
1099
|
4,
|
1102
1100
|
f
|
1103
1101
|
);
|
1104
1102
|
}
|
1105
|
-
f =
|
1103
|
+
f = message.getId();
|
1104
|
+
if (f !== 0) {
|
1105
|
+
writer.writeInt32(
|
1106
|
+
5,
|
1107
|
+
f
|
1108
|
+
);
|
1109
|
+
}
|
1110
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1111
|
+
if (f != null) {
|
1112
|
+
writer.writeString(
|
1113
|
+
6,
|
1114
|
+
f
|
1115
|
+
);
|
1116
|
+
}
|
1117
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1106
1118
|
if (f != null) {
|
1107
1119
|
writer.writeString(
|
1108
|
-
|
1120
|
+
7,
|
1109
1121
|
f
|
1110
1122
|
);
|
1111
1123
|
}
|
1112
|
-
f = /** @type {number} */ (jspb.Message.getField(message,
|
1124
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
1113
1125
|
if (f != null) {
|
1114
1126
|
writer.writeInt32(
|
1115
|
-
|
1127
|
+
8,
|
1116
1128
|
f
|
1117
1129
|
);
|
1118
1130
|
}
|
1119
1131
|
f = message.getFile();
|
1120
1132
|
if (f != null) {
|
1121
1133
|
writer.writeMessage(
|
1122
|
-
|
1134
|
+
9,
|
1123
1135
|
f,
|
1124
1136
|
proto.game.File.serializeBinaryToWriter
|
1125
1137
|
);
|
@@ -1127,42 +1139,6 @@ proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1127
1139
|
};
|
1128
1140
|
|
1129
1141
|
|
1130
|
-
/**
|
1131
|
-
* optional int32 id = 1;
|
1132
|
-
* @return {number}
|
1133
|
-
*/
|
1134
|
-
proto.game.CategoryRequest.prototype.getId = function() {
|
1135
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1136
|
-
};
|
1137
|
-
|
1138
|
-
|
1139
|
-
/**
|
1140
|
-
* @param {number} value
|
1141
|
-
* @return {!proto.game.CategoryRequest} returns this
|
1142
|
-
*/
|
1143
|
-
proto.game.CategoryRequest.prototype.setId = function(value) {
|
1144
|
-
return jspb.Message.setOneofField(this, 1, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1145
|
-
};
|
1146
|
-
|
1147
|
-
|
1148
|
-
/**
|
1149
|
-
* Clears the field making it undefined.
|
1150
|
-
* @return {!proto.game.CategoryRequest} returns this
|
1151
|
-
*/
|
1152
|
-
proto.game.CategoryRequest.prototype.clearId = function() {
|
1153
|
-
return jspb.Message.setOneofField(this, 1, proto.game.CategoryRequest.oneofGroups_[0], undefined);
|
1154
|
-
};
|
1155
|
-
|
1156
|
-
|
1157
|
-
/**
|
1158
|
-
* Returns whether this field is set.
|
1159
|
-
* @return {boolean}
|
1160
|
-
*/
|
1161
|
-
proto.game.CategoryRequest.prototype.hasId = function() {
|
1162
|
-
return jspb.Message.getField(this, 1) != null;
|
1163
|
-
};
|
1164
|
-
|
1165
|
-
|
1166
1142
|
/**
|
1167
1143
|
* optional string title = 2;
|
1168
1144
|
* @return {string}
|
@@ -1237,11 +1213,65 @@ proto.game.CategoryRequest.prototype.hasMetadata = function() {
|
|
1237
1213
|
|
1238
1214
|
|
1239
1215
|
/**
|
1240
|
-
* optional
|
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;
|
1253
|
+
* @return {number}
|
1254
|
+
*/
|
1255
|
+
proto.game.CategoryRequest.prototype.getId = function() {
|
1256
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1257
|
+
};
|
1258
|
+
|
1259
|
+
|
1260
|
+
/**
|
1261
|
+
* @param {number} value
|
1262
|
+
* @return {!proto.game.CategoryRequest} returns this
|
1263
|
+
*/
|
1264
|
+
proto.game.CategoryRequest.prototype.setId = function(value) {
|
1265
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
1266
|
+
};
|
1267
|
+
|
1268
|
+
|
1269
|
+
/**
|
1270
|
+
* optional string slug = 6;
|
1241
1271
|
* @return {string}
|
1242
1272
|
*/
|
1243
1273
|
proto.game.CategoryRequest.prototype.getSlug = function() {
|
1244
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1274
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1245
1275
|
};
|
1246
1276
|
|
1247
1277
|
|
@@ -1250,7 +1280,7 @@ proto.game.CategoryRequest.prototype.getSlug = function() {
|
|
1250
1280
|
* @return {!proto.game.CategoryRequest} returns this
|
1251
1281
|
*/
|
1252
1282
|
proto.game.CategoryRequest.prototype.setSlug = function(value) {
|
1253
|
-
return jspb.Message.setField(this,
|
1283
|
+
return jspb.Message.setField(this, 6, value);
|
1254
1284
|
};
|
1255
1285
|
|
1256
1286
|
|
@@ -1259,7 +1289,7 @@ proto.game.CategoryRequest.prototype.setSlug = function(value) {
|
|
1259
1289
|
* @return {!proto.game.CategoryRequest} returns this
|
1260
1290
|
*/
|
1261
1291
|
proto.game.CategoryRequest.prototype.clearSlug = function() {
|
1262
|
-
return jspb.Message.setField(this,
|
1292
|
+
return jspb.Message.setField(this, 6, undefined);
|
1263
1293
|
};
|
1264
1294
|
|
1265
1295
|
|
@@ -1268,16 +1298,16 @@ proto.game.CategoryRequest.prototype.clearSlug = function() {
|
|
1268
1298
|
* @return {boolean}
|
1269
1299
|
*/
|
1270
1300
|
proto.game.CategoryRequest.prototype.hasSlug = function() {
|
1271
|
-
return jspb.Message.getField(this,
|
1301
|
+
return jspb.Message.getField(this, 6) != null;
|
1272
1302
|
};
|
1273
1303
|
|
1274
1304
|
|
1275
1305
|
/**
|
1276
|
-
* optional string description =
|
1306
|
+
* optional string description = 7;
|
1277
1307
|
* @return {string}
|
1278
1308
|
*/
|
1279
1309
|
proto.game.CategoryRequest.prototype.getDescription = function() {
|
1280
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1310
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1281
1311
|
};
|
1282
1312
|
|
1283
1313
|
|
@@ -1286,7 +1316,7 @@ proto.game.CategoryRequest.prototype.getDescription = function() {
|
|
1286
1316
|
* @return {!proto.game.CategoryRequest} returns this
|
1287
1317
|
*/
|
1288
1318
|
proto.game.CategoryRequest.prototype.setDescription = function(value) {
|
1289
|
-
return jspb.Message.setField(this,
|
1319
|
+
return jspb.Message.setField(this, 7, value);
|
1290
1320
|
};
|
1291
1321
|
|
1292
1322
|
|
@@ -1295,7 +1325,7 @@ proto.game.CategoryRequest.prototype.setDescription = function(value) {
|
|
1295
1325
|
* @return {!proto.game.CategoryRequest} returns this
|
1296
1326
|
*/
|
1297
1327
|
proto.game.CategoryRequest.prototype.clearDescription = function() {
|
1298
|
-
return jspb.Message.setField(this,
|
1328
|
+
return jspb.Message.setField(this, 7, undefined);
|
1299
1329
|
};
|
1300
1330
|
|
1301
1331
|
|
@@ -1304,16 +1334,16 @@ proto.game.CategoryRequest.prototype.clearDescription = function() {
|
|
1304
1334
|
* @return {boolean}
|
1305
1335
|
*/
|
1306
1336
|
proto.game.CategoryRequest.prototype.hasDescription = function() {
|
1307
|
-
return jspb.Message.getField(this,
|
1337
|
+
return jspb.Message.getField(this, 7) != null;
|
1308
1338
|
};
|
1309
1339
|
|
1310
1340
|
|
1311
1341
|
/**
|
1312
|
-
* optional int32 is_active =
|
1342
|
+
* optional int32 is_active = 8;
|
1313
1343
|
* @return {number}
|
1314
1344
|
*/
|
1315
1345
|
proto.game.CategoryRequest.prototype.getIsActive = function() {
|
1316
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
1346
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
1317
1347
|
};
|
1318
1348
|
|
1319
1349
|
|
@@ -1322,7 +1352,7 @@ proto.game.CategoryRequest.prototype.getIsActive = function() {
|
|
1322
1352
|
* @return {!proto.game.CategoryRequest} returns this
|
1323
1353
|
*/
|
1324
1354
|
proto.game.CategoryRequest.prototype.setIsActive = function(value) {
|
1325
|
-
return jspb.Message.setField(this,
|
1355
|
+
return jspb.Message.setField(this, 8, value);
|
1326
1356
|
};
|
1327
1357
|
|
1328
1358
|
|
@@ -1331,7 +1361,7 @@ proto.game.CategoryRequest.prototype.setIsActive = function(value) {
|
|
1331
1361
|
* @return {!proto.game.CategoryRequest} returns this
|
1332
1362
|
*/
|
1333
1363
|
proto.game.CategoryRequest.prototype.clearIsActive = function() {
|
1334
|
-
return jspb.Message.setField(this,
|
1364
|
+
return jspb.Message.setField(this, 8, undefined);
|
1335
1365
|
};
|
1336
1366
|
|
1337
1367
|
|
@@ -1340,17 +1370,17 @@ proto.game.CategoryRequest.prototype.clearIsActive = function() {
|
|
1340
1370
|
* @return {boolean}
|
1341
1371
|
*/
|
1342
1372
|
proto.game.CategoryRequest.prototype.hasIsActive = function() {
|
1343
|
-
return jspb.Message.getField(this,
|
1373
|
+
return jspb.Message.getField(this, 8) != null;
|
1344
1374
|
};
|
1345
1375
|
|
1346
1376
|
|
1347
1377
|
/**
|
1348
|
-
* optional File file =
|
1378
|
+
* optional File file = 9;
|
1349
1379
|
* @return {?proto.game.File}
|
1350
1380
|
*/
|
1351
1381
|
proto.game.CategoryRequest.prototype.getFile = function() {
|
1352
1382
|
return /** @type{?proto.game.File} */ (
|
1353
|
-
jspb.Message.getWrapperField(this, proto.game.File,
|
1383
|
+
jspb.Message.getWrapperField(this, proto.game.File, 9));
|
1354
1384
|
};
|
1355
1385
|
|
1356
1386
|
|
@@ -1359,7 +1389,7 @@ proto.game.CategoryRequest.prototype.getFile = function() {
|
|
1359
1389
|
* @return {!proto.game.CategoryRequest} returns this
|
1360
1390
|
*/
|
1361
1391
|
proto.game.CategoryRequest.prototype.setFile = function(value) {
|
1362
|
-
return jspb.Message.setWrapperField(this,
|
1392
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
1363
1393
|
};
|
1364
1394
|
|
1365
1395
|
|
@@ -1377,7 +1407,7 @@ proto.game.CategoryRequest.prototype.clearFile = function() {
|
|
1377
1407
|
* @return {boolean}
|
1378
1408
|
*/
|
1379
1409
|
proto.game.CategoryRequest.prototype.hasFile = function() {
|
1380
|
-
return jspb.Message.getField(this,
|
1410
|
+
return jspb.Message.getField(this, 9) != null;
|
1381
1411
|
};
|
1382
1412
|
|
1383
1413
|
|