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