protobuf-platform 1.0.52 → 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 CHANGED
@@ -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_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 = message.getId();
1612
- if (f !== 0) {
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.setProto3IntField(this, 1, value);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {