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