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