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