protobuf-platform 1.0.51 → 1.0.53
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 +2 -2
- package/game/game_grpc_pb.js +1 -1
- package/game/game_pb.js +21 -3
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -6,7 +6,7 @@ service Game {
|
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
7
|
rpc getMediaResource(GetFileRequest) returns (stream File);
|
8
8
|
//Categories
|
9
|
-
rpc createSingleCategory(CategoryRequest) returns (CategoryResponse);
|
9
|
+
rpc createSingleCategory(stream CategoryRequest) returns (CategoryResponse);
|
10
10
|
rpc readSingleCategory(GetCategoryRequest) returns (CategoryResponse);
|
11
11
|
rpc updateSingleCategory(stream CategoryRequest) returns (CategoryResponse);
|
12
12
|
rpc deleteSingleCategory(GetCategoryRequest) returns (CategoryStatusResponse);
|
@@ -35,7 +35,7 @@ message CategoryRequest {
|
|
35
35
|
}
|
36
36
|
}
|
37
37
|
message CategoryItemRequest {
|
38
|
-
int32 id = 1;
|
38
|
+
optional int32 id = 1;
|
39
39
|
optional string title = 2;
|
40
40
|
optional string slug = 3;
|
41
41
|
optional string description = 4;
|
package/game/game_grpc_pb.js
CHANGED
@@ -141,7 +141,7 @@ var GameService = exports.GameService = {
|
|
141
141
|
// Categories
|
142
142
|
createSingleCategory: {
|
143
143
|
path: '/game.Game/createSingleCategory',
|
144
|
-
requestStream:
|
144
|
+
requestStream: true,
|
145
145
|
responseStream: false,
|
146
146
|
requestType: game_pb.CategoryRequest,
|
147
147
|
responseType: game_pb.CategoryResponse,
|
package/game/game_pb.js
CHANGED
@@ -1608,8 +1608,8 @@ proto.game.CategoryItemRequest.prototype.serializeBinary = function() {
|
|
1608
1608
|
*/
|
1609
1609
|
proto.game.CategoryItemRequest.serializeBinaryToWriter = function(message, writer) {
|
1610
1610
|
var f = undefined;
|
1611
|
-
f =
|
1612
|
-
if (f
|
1611
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1612
|
+
if (f != null) {
|
1613
1613
|
writer.writeInt32(
|
1614
1614
|
1,
|
1615
1615
|
f
|
@@ -1674,7 +1674,25 @@ proto.game.CategoryItemRequest.prototype.getId = function() {
|
|
1674
1674
|
* @return {!proto.game.CategoryItemRequest} returns this
|
1675
1675
|
*/
|
1676
1676
|
proto.game.CategoryItemRequest.prototype.setId = function(value) {
|
1677
|
-
return jspb.Message.
|
1677
|
+
return jspb.Message.setField(this, 1, value);
|
1678
|
+
};
|
1679
|
+
|
1680
|
+
|
1681
|
+
/**
|
1682
|
+
* Clears the field making it undefined.
|
1683
|
+
* @return {!proto.game.CategoryItemRequest} returns this
|
1684
|
+
*/
|
1685
|
+
proto.game.CategoryItemRequest.prototype.clearId = function() {
|
1686
|
+
return jspb.Message.setField(this, 1, undefined);
|
1687
|
+
};
|
1688
|
+
|
1689
|
+
|
1690
|
+
/**
|
1691
|
+
* Returns whether this field is set.
|
1692
|
+
* @return {boolean}
|
1693
|
+
*/
|
1694
|
+
proto.game.CategoryItemRequest.prototype.hasId = function() {
|
1695
|
+
return jspb.Message.getField(this, 1) != null;
|
1678
1696
|
};
|
1679
1697
|
|
1680
1698
|
|