protobuf-platform 1.0.36 → 1.0.38
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 -3
- package/game/game_pb.js +37 -10
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -26,13 +26,13 @@ message CategoryItem {
|
|
26
26
|
}
|
27
27
|
//Category CRUD | Requests
|
28
28
|
message CategoryRequest {
|
29
|
-
|
29
|
+
oneof request {
|
30
30
|
CategoryItemRequest category_data = 1;
|
31
31
|
File file = 2;
|
32
|
-
|
32
|
+
}
|
33
33
|
}
|
34
34
|
message File {
|
35
|
-
bytes media =
|
35
|
+
bytes media = 1;
|
36
36
|
}
|
37
37
|
message CategoryItemRequest {
|
38
38
|
int32 id = 1;
|
package/game/game_pb.js
CHANGED
@@ -25,6 +25,7 @@ goog.exportSymbol('proto.game.CategoryItem', null, global);
|
|
25
25
|
goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
|
26
26
|
goog.exportSymbol('proto.game.CategoryListResponse', null, global);
|
27
27
|
goog.exportSymbol('proto.game.CategoryRequest', null, global);
|
28
|
+
goog.exportSymbol('proto.game.CategoryRequest.RequestCase', null, global);
|
28
29
|
goog.exportSymbol('proto.game.CategoryResponse', null, global);
|
29
30
|
goog.exportSymbol('proto.game.CategoryStatusResponse', null, global);
|
30
31
|
goog.exportSymbol('proto.game.File', null, global);
|
@@ -106,7 +107,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
106
107
|
* @constructor
|
107
108
|
*/
|
108
109
|
proto.game.CategoryRequest = function(opt_data) {
|
109
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
110
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.game.CategoryRequest.oneofGroups_);
|
110
111
|
};
|
111
112
|
goog.inherits(proto.game.CategoryRequest, jspb.Message);
|
112
113
|
if (goog.DEBUG && !COMPILED) {
|
@@ -912,6 +913,32 @@ proto.game.CategoryItem.prototype.hasImagePath = function() {
|
|
912
913
|
|
913
914
|
|
914
915
|
|
916
|
+
/**
|
917
|
+
* Oneof group definitions for this message. Each group defines the field
|
918
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
919
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
920
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
921
|
+
* @private {!Array<!Array<number>>}
|
922
|
+
* @const
|
923
|
+
*/
|
924
|
+
proto.game.CategoryRequest.oneofGroups_ = [[1,2]];
|
925
|
+
|
926
|
+
/**
|
927
|
+
* @enum {number}
|
928
|
+
*/
|
929
|
+
proto.game.CategoryRequest.RequestCase = {
|
930
|
+
REQUEST_NOT_SET: 0,
|
931
|
+
CATEGORY_DATA: 1,
|
932
|
+
FILE: 2
|
933
|
+
};
|
934
|
+
|
935
|
+
/**
|
936
|
+
* @return {proto.game.CategoryRequest.RequestCase}
|
937
|
+
*/
|
938
|
+
proto.game.CategoryRequest.prototype.getRequestCase = function() {
|
939
|
+
return /** @type {proto.game.CategoryRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.game.CategoryRequest.oneofGroups_[0]));
|
940
|
+
};
|
941
|
+
|
915
942
|
|
916
943
|
|
917
944
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -1054,7 +1081,7 @@ proto.game.CategoryRequest.prototype.getCategoryData = function() {
|
|
1054
1081
|
* @return {!proto.game.CategoryRequest} returns this
|
1055
1082
|
*/
|
1056
1083
|
proto.game.CategoryRequest.prototype.setCategoryData = function(value) {
|
1057
|
-
return jspb.Message.
|
1084
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1058
1085
|
};
|
1059
1086
|
|
1060
1087
|
|
@@ -1091,7 +1118,7 @@ proto.game.CategoryRequest.prototype.getFile = function() {
|
|
1091
1118
|
* @return {!proto.game.CategoryRequest} returns this
|
1092
1119
|
*/
|
1093
1120
|
proto.game.CategoryRequest.prototype.setFile = function(value) {
|
1094
|
-
return jspb.Message.
|
1121
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.game.CategoryRequest.oneofGroups_[0], value);
|
1095
1122
|
};
|
1096
1123
|
|
1097
1124
|
|
@@ -1182,7 +1209,7 @@ proto.game.File.deserializeBinaryFromReader = function(msg, reader) {
|
|
1182
1209
|
}
|
1183
1210
|
var field = reader.getFieldNumber();
|
1184
1211
|
switch (field) {
|
1185
|
-
case
|
1212
|
+
case 1:
|
1186
1213
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1187
1214
|
msg.setMedia(value);
|
1188
1215
|
break;
|
@@ -1218,7 +1245,7 @@ proto.game.File.serializeBinaryToWriter = function(message, writer) {
|
|
1218
1245
|
f = message.getMedia_asU8();
|
1219
1246
|
if (f.length > 0) {
|
1220
1247
|
writer.writeBytes(
|
1221
|
-
|
1248
|
+
1,
|
1222
1249
|
f
|
1223
1250
|
);
|
1224
1251
|
}
|
@@ -1226,16 +1253,16 @@ proto.game.File.serializeBinaryToWriter = function(message, writer) {
|
|
1226
1253
|
|
1227
1254
|
|
1228
1255
|
/**
|
1229
|
-
* optional bytes media =
|
1256
|
+
* optional bytes media = 1;
|
1230
1257
|
* @return {!(string|Uint8Array)}
|
1231
1258
|
*/
|
1232
1259
|
proto.game.File.prototype.getMedia = function() {
|
1233
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this,
|
1260
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1234
1261
|
};
|
1235
1262
|
|
1236
1263
|
|
1237
1264
|
/**
|
1238
|
-
* optional bytes media =
|
1265
|
+
* optional bytes media = 1;
|
1239
1266
|
* This is a type-conversion wrapper around `getMedia()`
|
1240
1267
|
* @return {string}
|
1241
1268
|
*/
|
@@ -1246,7 +1273,7 @@ proto.game.File.prototype.getMedia_asB64 = function() {
|
|
1246
1273
|
|
1247
1274
|
|
1248
1275
|
/**
|
1249
|
-
* optional bytes media =
|
1276
|
+
* optional bytes media = 1;
|
1250
1277
|
* Note that Uint8Array is not supported on all browsers.
|
1251
1278
|
* @see http://caniuse.com/Uint8Array
|
1252
1279
|
* This is a type-conversion wrapper around `getMedia()`
|
@@ -1263,7 +1290,7 @@ proto.game.File.prototype.getMedia_asU8 = function() {
|
|
1263
1290
|
* @return {!proto.game.File} returns this
|
1264
1291
|
*/
|
1265
1292
|
proto.game.File.prototype.setMedia = function(value) {
|
1266
|
-
return jspb.Message.setProto3BytesField(this,
|
1293
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
1267
1294
|
};
|
1268
1295
|
|
1269
1296
|
|