protobuf-platform 1.0.24 → 1.0.26
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 -6
- package/game/game_pb.js +103 -104
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -26,16 +26,15 @@ message CategoryItem {
|
|
26
26
|
}
|
27
27
|
//Category CRUD | Requests
|
28
28
|
message CategoryRequest {
|
29
|
-
|
30
|
-
optional string slug = 3;
|
31
|
-
optional string description = 4;
|
32
|
-
optional int32 is_active = 5;
|
33
29
|
oneof request {
|
34
30
|
int32 id = 1;
|
35
31
|
string title = 2;
|
36
|
-
MetaDataFile metadata =
|
37
|
-
File file = 7;
|
32
|
+
MetaDataFile metadata = 3;
|
38
33
|
}
|
34
|
+
optional string slug = 4;
|
35
|
+
optional string description = 5;
|
36
|
+
optional int32 is_active = 6;
|
37
|
+
optional File file = 7;
|
39
38
|
}
|
40
39
|
message GetCategoryRequest {
|
41
40
|
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_ = [[1,2,
|
924
|
+
proto.game.CategoryRequest.oneofGroups_ = [[1,2,3]];
|
925
925
|
|
926
926
|
/**
|
927
927
|
* @enum {number}
|
@@ -930,8 +930,7 @@ proto.game.CategoryRequest.RequestCase = {
|
|
930
930
|
REQUEST_NOT_SET: 0,
|
931
931
|
ID: 1,
|
932
932
|
TITLE: 2,
|
933
|
-
METADATA:
|
934
|
-
FILE: 7
|
933
|
+
METADATA: 3
|
935
934
|
};
|
936
935
|
|
937
936
|
/**
|
@@ -972,12 +971,12 @@ proto.game.CategoryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
972
971
|
*/
|
973
972
|
proto.game.CategoryRequest.toObject = function(includeInstance, msg) {
|
974
973
|
var f, obj = {
|
975
|
-
slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
976
|
-
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
977
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
978
974
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
979
975
|
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
980
976
|
metadata: (f = msg.getMetadata()) && proto.game.MetaDataFile.toObject(includeInstance, f),
|
977
|
+
slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
978
|
+
description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
979
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
981
980
|
file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
|
982
981
|
};
|
983
982
|
|
@@ -1015,18 +1014,6 @@ proto.game.CategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1015
1014
|
}
|
1016
1015
|
var field = reader.getFieldNumber();
|
1017
1016
|
switch (field) {
|
1018
|
-
case 3:
|
1019
|
-
var value = /** @type {string} */ (reader.readString());
|
1020
|
-
msg.setSlug(value);
|
1021
|
-
break;
|
1022
|
-
case 4:
|
1023
|
-
var value = /** @type {string} */ (reader.readString());
|
1024
|
-
msg.setDescription(value);
|
1025
|
-
break;
|
1026
|
-
case 5:
|
1027
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1028
|
-
msg.setIsActive(value);
|
1029
|
-
break;
|
1030
1017
|
case 1:
|
1031
1018
|
var value = /** @type {number} */ (reader.readInt32());
|
1032
1019
|
msg.setId(value);
|
@@ -1035,11 +1022,23 @@ proto.game.CategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1035
1022
|
var value = /** @type {string} */ (reader.readString());
|
1036
1023
|
msg.setTitle(value);
|
1037
1024
|
break;
|
1038
|
-
case
|
1025
|
+
case 3:
|
1039
1026
|
var value = new proto.game.MetaDataFile;
|
1040
1027
|
reader.readMessage(value,proto.game.MetaDataFile.deserializeBinaryFromReader);
|
1041
1028
|
msg.setMetadata(value);
|
1042
1029
|
break;
|
1030
|
+
case 4:
|
1031
|
+
var value = /** @type {string} */ (reader.readString());
|
1032
|
+
msg.setSlug(value);
|
1033
|
+
break;
|
1034
|
+
case 5:
|
1035
|
+
var value = /** @type {string} */ (reader.readString());
|
1036
|
+
msg.setDescription(value);
|
1037
|
+
break;
|
1038
|
+
case 6:
|
1039
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1040
|
+
msg.setIsActive(value);
|
1041
|
+
break;
|
1043
1042
|
case 7:
|
1044
1043
|
var value = new proto.game.File;
|
1045
1044
|
reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
|
@@ -1074,47 +1073,47 @@ proto.game.CategoryRequest.prototype.serializeBinary = function() {
|
|
1074
1073
|
*/
|
1075
1074
|
proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
1076
1075
|
var f = undefined;
|
1077
|
-
f = /** @type {
|
1076
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1078
1077
|
if (f != null) {
|
1079
|
-
writer.
|
1080
|
-
|
1078
|
+
writer.writeInt32(
|
1079
|
+
1,
|
1081
1080
|
f
|
1082
1081
|
);
|
1083
1082
|
}
|
1084
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1083
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1085
1084
|
if (f != null) {
|
1086
1085
|
writer.writeString(
|
1087
|
-
|
1086
|
+
2,
|
1088
1087
|
f
|
1089
1088
|
);
|
1090
1089
|
}
|
1091
|
-
f =
|
1090
|
+
f = message.getMetadata();
|
1092
1091
|
if (f != null) {
|
1093
|
-
writer.
|
1094
|
-
|
1095
|
-
f
|
1092
|
+
writer.writeMessage(
|
1093
|
+
3,
|
1094
|
+
f,
|
1095
|
+
proto.game.MetaDataFile.serializeBinaryToWriter
|
1096
1096
|
);
|
1097
1097
|
}
|
1098
|
-
f = /** @type {
|
1098
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1099
1099
|
if (f != null) {
|
1100
|
-
writer.
|
1101
|
-
|
1100
|
+
writer.writeString(
|
1101
|
+
4,
|
1102
1102
|
f
|
1103
1103
|
);
|
1104
1104
|
}
|
1105
|
-
f = /** @type {string} */ (jspb.Message.getField(message,
|
1105
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
1106
1106
|
if (f != null) {
|
1107
1107
|
writer.writeString(
|
1108
|
-
|
1108
|
+
5,
|
1109
1109
|
f
|
1110
1110
|
);
|
1111
1111
|
}
|
1112
|
-
f =
|
1112
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
1113
1113
|
if (f != null) {
|
1114
|
-
writer.
|
1114
|
+
writer.writeInt32(
|
1115
1115
|
6,
|
1116
|
-
f
|
1117
|
-
proto.game.MetaDataFile.serializeBinaryToWriter
|
1116
|
+
f
|
1118
1117
|
);
|
1119
1118
|
}
|
1120
1119
|
f = message.getFile();
|
@@ -1129,20 +1128,20 @@ proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1129
1128
|
|
1130
1129
|
|
1131
1130
|
/**
|
1132
|
-
* optional
|
1133
|
-
* @return {
|
1131
|
+
* optional int32 id = 1;
|
1132
|
+
* @return {number}
|
1134
1133
|
*/
|
1135
|
-
proto.game.CategoryRequest.prototype.
|
1136
|
-
return /** @type {
|
1134
|
+
proto.game.CategoryRequest.prototype.getId = function() {
|
1135
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1137
1136
|
};
|
1138
1137
|
|
1139
1138
|
|
1140
1139
|
/**
|
1141
|
-
* @param {
|
1140
|
+
* @param {number} value
|
1142
1141
|
* @return {!proto.game.CategoryRequest} returns this
|
1143
1142
|
*/
|
1144
|
-
proto.game.CategoryRequest.prototype.
|
1145
|
-
return jspb.Message.
|
1143
|
+
proto.game.CategoryRequest.prototype.setId = function(value) {
|
1144
|
+
return jspb.Message.setOneofField(this, 1, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1146
1145
|
};
|
1147
1146
|
|
1148
1147
|
|
@@ -1150,8 +1149,8 @@ proto.game.CategoryRequest.prototype.setSlug = function(value) {
|
|
1150
1149
|
* Clears the field making it undefined.
|
1151
1150
|
* @return {!proto.game.CategoryRequest} returns this
|
1152
1151
|
*/
|
1153
|
-
proto.game.CategoryRequest.prototype.
|
1154
|
-
return jspb.Message.
|
1152
|
+
proto.game.CategoryRequest.prototype.clearId = function() {
|
1153
|
+
return jspb.Message.setOneofField(this, 1, proto.game.CategoryRequest.oneofGroups_[0], undefined);
|
1155
1154
|
};
|
1156
1155
|
|
1157
1156
|
|
@@ -1159,17 +1158,17 @@ proto.game.CategoryRequest.prototype.clearSlug = function() {
|
|
1159
1158
|
* Returns whether this field is set.
|
1160
1159
|
* @return {boolean}
|
1161
1160
|
*/
|
1162
|
-
proto.game.CategoryRequest.prototype.
|
1163
|
-
return jspb.Message.getField(this,
|
1161
|
+
proto.game.CategoryRequest.prototype.hasId = function() {
|
1162
|
+
return jspb.Message.getField(this, 1) != null;
|
1164
1163
|
};
|
1165
1164
|
|
1166
1165
|
|
1167
1166
|
/**
|
1168
|
-
* optional string
|
1167
|
+
* optional string title = 2;
|
1169
1168
|
* @return {string}
|
1170
1169
|
*/
|
1171
|
-
proto.game.CategoryRequest.prototype.
|
1172
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1170
|
+
proto.game.CategoryRequest.prototype.getTitle = function() {
|
1171
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1173
1172
|
};
|
1174
1173
|
|
1175
1174
|
|
@@ -1177,8 +1176,8 @@ proto.game.CategoryRequest.prototype.getDescription = function() {
|
|
1177
1176
|
* @param {string} value
|
1178
1177
|
* @return {!proto.game.CategoryRequest} returns this
|
1179
1178
|
*/
|
1180
|
-
proto.game.CategoryRequest.prototype.
|
1181
|
-
return jspb.Message.
|
1179
|
+
proto.game.CategoryRequest.prototype.setTitle = function(value) {
|
1180
|
+
return jspb.Message.setOneofField(this, 2, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1182
1181
|
};
|
1183
1182
|
|
1184
1183
|
|
@@ -1186,8 +1185,8 @@ proto.game.CategoryRequest.prototype.setDescription = function(value) {
|
|
1186
1185
|
* Clears the field making it undefined.
|
1187
1186
|
* @return {!proto.game.CategoryRequest} returns this
|
1188
1187
|
*/
|
1189
|
-
proto.game.CategoryRequest.prototype.
|
1190
|
-
return jspb.Message.
|
1188
|
+
proto.game.CategoryRequest.prototype.clearTitle = function() {
|
1189
|
+
return jspb.Message.setOneofField(this, 2, proto.game.CategoryRequest.oneofGroups_[0], undefined);
|
1191
1190
|
};
|
1192
1191
|
|
1193
1192
|
|
@@ -1195,35 +1194,36 @@ proto.game.CategoryRequest.prototype.clearDescription = function() {
|
|
1195
1194
|
* Returns whether this field is set.
|
1196
1195
|
* @return {boolean}
|
1197
1196
|
*/
|
1198
|
-
proto.game.CategoryRequest.prototype.
|
1199
|
-
return jspb.Message.getField(this,
|
1197
|
+
proto.game.CategoryRequest.prototype.hasTitle = function() {
|
1198
|
+
return jspb.Message.getField(this, 2) != null;
|
1200
1199
|
};
|
1201
1200
|
|
1202
1201
|
|
1203
1202
|
/**
|
1204
|
-
* optional
|
1205
|
-
* @return {
|
1203
|
+
* optional MetaDataFile metadata = 3;
|
1204
|
+
* @return {?proto.game.MetaDataFile}
|
1206
1205
|
*/
|
1207
|
-
proto.game.CategoryRequest.prototype.
|
1208
|
-
return /** @type
|
1206
|
+
proto.game.CategoryRequest.prototype.getMetadata = function() {
|
1207
|
+
return /** @type{?proto.game.MetaDataFile} */ (
|
1208
|
+
jspb.Message.getWrapperField(this, proto.game.MetaDataFile, 3));
|
1209
1209
|
};
|
1210
1210
|
|
1211
1211
|
|
1212
1212
|
/**
|
1213
|
-
* @param {
|
1213
|
+
* @param {?proto.game.MetaDataFile|undefined} value
|
1214
1214
|
* @return {!proto.game.CategoryRequest} returns this
|
1215
|
-
|
1216
|
-
proto.game.CategoryRequest.prototype.
|
1217
|
-
return jspb.Message.
|
1215
|
+
*/
|
1216
|
+
proto.game.CategoryRequest.prototype.setMetadata = function(value) {
|
1217
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1218
1218
|
};
|
1219
1219
|
|
1220
1220
|
|
1221
1221
|
/**
|
1222
|
-
* Clears the field making it undefined.
|
1222
|
+
* Clears the message field making it undefined.
|
1223
1223
|
* @return {!proto.game.CategoryRequest} returns this
|
1224
1224
|
*/
|
1225
|
-
proto.game.CategoryRequest.prototype.
|
1226
|
-
return
|
1225
|
+
proto.game.CategoryRequest.prototype.clearMetadata = function() {
|
1226
|
+
return this.setMetadata(undefined);
|
1227
1227
|
};
|
1228
1228
|
|
1229
1229
|
|
@@ -1231,26 +1231,26 @@ proto.game.CategoryRequest.prototype.clearIsActive = function() {
|
|
1231
1231
|
* Returns whether this field is set.
|
1232
1232
|
* @return {boolean}
|
1233
1233
|
*/
|
1234
|
-
proto.game.CategoryRequest.prototype.
|
1235
|
-
return jspb.Message.getField(this,
|
1234
|
+
proto.game.CategoryRequest.prototype.hasMetadata = function() {
|
1235
|
+
return jspb.Message.getField(this, 3) != null;
|
1236
1236
|
};
|
1237
1237
|
|
1238
1238
|
|
1239
1239
|
/**
|
1240
|
-
* optional
|
1241
|
-
* @return {
|
1240
|
+
* optional string slug = 4;
|
1241
|
+
* @return {string}
|
1242
1242
|
*/
|
1243
|
-
proto.game.CategoryRequest.prototype.
|
1244
|
-
return /** @type {
|
1243
|
+
proto.game.CategoryRequest.prototype.getSlug = function() {
|
1244
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1245
1245
|
};
|
1246
1246
|
|
1247
1247
|
|
1248
1248
|
/**
|
1249
|
-
* @param {
|
1249
|
+
* @param {string} value
|
1250
1250
|
* @return {!proto.game.CategoryRequest} returns this
|
1251
1251
|
*/
|
1252
|
-
proto.game.CategoryRequest.prototype.
|
1253
|
-
return jspb.Message.
|
1252
|
+
proto.game.CategoryRequest.prototype.setSlug = function(value) {
|
1253
|
+
return jspb.Message.setField(this, 4, value);
|
1254
1254
|
};
|
1255
1255
|
|
1256
1256
|
|
@@ -1258,8 +1258,8 @@ proto.game.CategoryRequest.prototype.setId = function(value) {
|
|
1258
1258
|
* Clears the field making it undefined.
|
1259
1259
|
* @return {!proto.game.CategoryRequest} returns this
|
1260
1260
|
*/
|
1261
|
-
proto.game.CategoryRequest.prototype.
|
1262
|
-
return jspb.Message.
|
1261
|
+
proto.game.CategoryRequest.prototype.clearSlug = function() {
|
1262
|
+
return jspb.Message.setField(this, 4, undefined);
|
1263
1263
|
};
|
1264
1264
|
|
1265
1265
|
|
@@ -1267,17 +1267,17 @@ proto.game.CategoryRequest.prototype.clearId = function() {
|
|
1267
1267
|
* Returns whether this field is set.
|
1268
1268
|
* @return {boolean}
|
1269
1269
|
*/
|
1270
|
-
proto.game.CategoryRequest.prototype.
|
1271
|
-
return jspb.Message.getField(this,
|
1270
|
+
proto.game.CategoryRequest.prototype.hasSlug = function() {
|
1271
|
+
return jspb.Message.getField(this, 4) != null;
|
1272
1272
|
};
|
1273
1273
|
|
1274
1274
|
|
1275
1275
|
/**
|
1276
|
-
* optional string
|
1276
|
+
* optional string description = 5;
|
1277
1277
|
* @return {string}
|
1278
1278
|
*/
|
1279
|
-
proto.game.CategoryRequest.prototype.
|
1280
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
1279
|
+
proto.game.CategoryRequest.prototype.getDescription = function() {
|
1280
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1281
1281
|
};
|
1282
1282
|
|
1283
1283
|
|
@@ -1285,8 +1285,8 @@ proto.game.CategoryRequest.prototype.getTitle = function() {
|
|
1285
1285
|
* @param {string} value
|
1286
1286
|
* @return {!proto.game.CategoryRequest} returns this
|
1287
1287
|
*/
|
1288
|
-
proto.game.CategoryRequest.prototype.
|
1289
|
-
return jspb.Message.
|
1288
|
+
proto.game.CategoryRequest.prototype.setDescription = function(value) {
|
1289
|
+
return jspb.Message.setField(this, 5, value);
|
1290
1290
|
};
|
1291
1291
|
|
1292
1292
|
|
@@ -1294,8 +1294,8 @@ proto.game.CategoryRequest.prototype.setTitle = function(value) {
|
|
1294
1294
|
* Clears the field making it undefined.
|
1295
1295
|
* @return {!proto.game.CategoryRequest} returns this
|
1296
1296
|
*/
|
1297
|
-
proto.game.CategoryRequest.prototype.
|
1298
|
-
return jspb.Message.
|
1297
|
+
proto.game.CategoryRequest.prototype.clearDescription = function() {
|
1298
|
+
return jspb.Message.setField(this, 5, undefined);
|
1299
1299
|
};
|
1300
1300
|
|
1301
1301
|
|
@@ -1303,36 +1303,35 @@ proto.game.CategoryRequest.prototype.clearTitle = function() {
|
|
1303
1303
|
* Returns whether this field is set.
|
1304
1304
|
* @return {boolean}
|
1305
1305
|
*/
|
1306
|
-
proto.game.CategoryRequest.prototype.
|
1307
|
-
return jspb.Message.getField(this,
|
1306
|
+
proto.game.CategoryRequest.prototype.hasDescription = function() {
|
1307
|
+
return jspb.Message.getField(this, 5) != null;
|
1308
1308
|
};
|
1309
1309
|
|
1310
1310
|
|
1311
1311
|
/**
|
1312
|
-
* optional
|
1313
|
-
* @return {
|
1312
|
+
* optional int32 is_active = 6;
|
1313
|
+
* @return {number}
|
1314
1314
|
*/
|
1315
|
-
proto.game.CategoryRequest.prototype.
|
1316
|
-
return /** @type{
|
1317
|
-
jspb.Message.getWrapperField(this, proto.game.MetaDataFile, 6));
|
1315
|
+
proto.game.CategoryRequest.prototype.getIsActive = function() {
|
1316
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
1318
1317
|
};
|
1319
1318
|
|
1320
1319
|
|
1321
1320
|
/**
|
1322
|
-
* @param {
|
1321
|
+
* @param {number} value
|
1323
1322
|
* @return {!proto.game.CategoryRequest} returns this
|
1324
|
-
*/
|
1325
|
-
proto.game.CategoryRequest.prototype.
|
1326
|
-
return jspb.Message.
|
1323
|
+
*/
|
1324
|
+
proto.game.CategoryRequest.prototype.setIsActive = function(value) {
|
1325
|
+
return jspb.Message.setField(this, 6, value);
|
1327
1326
|
};
|
1328
1327
|
|
1329
1328
|
|
1330
1329
|
/**
|
1331
|
-
* Clears the
|
1330
|
+
* Clears the field making it undefined.
|
1332
1331
|
* @return {!proto.game.CategoryRequest} returns this
|
1333
1332
|
*/
|
1334
|
-
proto.game.CategoryRequest.prototype.
|
1335
|
-
return
|
1333
|
+
proto.game.CategoryRequest.prototype.clearIsActive = function() {
|
1334
|
+
return jspb.Message.setField(this, 6, undefined);
|
1336
1335
|
};
|
1337
1336
|
|
1338
1337
|
|
@@ -1340,7 +1339,7 @@ proto.game.CategoryRequest.prototype.clearMetadata = function() {
|
|
1340
1339
|
* Returns whether this field is set.
|
1341
1340
|
* @return {boolean}
|
1342
1341
|
*/
|
1343
|
-
proto.game.CategoryRequest.prototype.
|
1342
|
+
proto.game.CategoryRequest.prototype.hasIsActive = function() {
|
1344
1343
|
return jspb.Message.getField(this, 6) != null;
|
1345
1344
|
};
|
1346
1345
|
|
@@ -1360,7 +1359,7 @@ proto.game.CategoryRequest.prototype.getFile = function() {
|
|
1360
1359
|
* @return {!proto.game.CategoryRequest} returns this
|
1361
1360
|
*/
|
1362
1361
|
proto.game.CategoryRequest.prototype.setFile = function(value) {
|
1363
|
-
return jspb.Message.
|
1362
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
1364
1363
|
};
|
1365
1364
|
|
1366
1365
|
|