protobuf-platform 1.0.99 → 1.0.100

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
@@ -59,9 +59,9 @@ message PingRequest { string ping = 1; }
59
59
  message PongResponse { string pong = 1; }
60
60
  message PaginationRequest { int32 limit = 1; int32 offset = 2; optional GameSearchRequest game_search_params = 3; }
61
61
  message GameSearchRequest {
62
- optional int32 is_active = 1;
63
- optional int32 is_deactivated = 2;
64
- optional int32 has_category = 3;
62
+ optional bool is_active = 1;
63
+ optional bool is_deactivated = 2;
64
+ optional bool has_category = 3;
65
65
  optional string game_title = 4;
66
66
  repeated int32 category_ids = 5;
67
67
  repeated int32 collection_ids = 6;
package/game/game_pb.js CHANGED
@@ -1900,9 +1900,9 @@ proto.game.GameSearchRequest.prototype.toObject = function(opt_includeInstance)
1900
1900
  */
1901
1901
  proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
1902
1902
  var f, obj = {
1903
- isActive: jspb.Message.getFieldWithDefault(msg, 1, 0),
1904
- isDeactivated: jspb.Message.getFieldWithDefault(msg, 2, 0),
1905
- hasCategory: jspb.Message.getFieldWithDefault(msg, 3, 0),
1903
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1904
+ isDeactivated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1905
+ hasCategory: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1906
1906
  gameTitle: jspb.Message.getFieldWithDefault(msg, 4, ""),
1907
1907
  categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
1908
1908
  collectionIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
@@ -1945,15 +1945,15 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
1945
1945
  var field = reader.getFieldNumber();
1946
1946
  switch (field) {
1947
1947
  case 1:
1948
- var value = /** @type {number} */ (reader.readInt32());
1948
+ var value = /** @type {boolean} */ (reader.readBool());
1949
1949
  msg.setIsActive(value);
1950
1950
  break;
1951
1951
  case 2:
1952
- var value = /** @type {number} */ (reader.readInt32());
1952
+ var value = /** @type {boolean} */ (reader.readBool());
1953
1953
  msg.setIsDeactivated(value);
1954
1954
  break;
1955
1955
  case 3:
1956
- var value = /** @type {number} */ (reader.readInt32());
1956
+ var value = /** @type {boolean} */ (reader.readBool());
1957
1957
  msg.setHasCategory(value);
1958
1958
  break;
1959
1959
  case 4:
@@ -2011,23 +2011,23 @@ proto.game.GameSearchRequest.prototype.serializeBinary = function() {
2011
2011
  */
2012
2012
  proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer) {
2013
2013
  var f = undefined;
2014
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
2014
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
2015
2015
  if (f != null) {
2016
- writer.writeInt32(
2016
+ writer.writeBool(
2017
2017
  1,
2018
2018
  f
2019
2019
  );
2020
2020
  }
2021
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
2021
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
2022
2022
  if (f != null) {
2023
- writer.writeInt32(
2023
+ writer.writeBool(
2024
2024
  2,
2025
2025
  f
2026
2026
  );
2027
2027
  }
2028
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
2028
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
2029
2029
  if (f != null) {
2030
- writer.writeInt32(
2030
+ writer.writeBool(
2031
2031
  3,
2032
2032
  f
2033
2033
  );
@@ -2071,16 +2071,16 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
2071
2071
 
2072
2072
 
2073
2073
  /**
2074
- * optional int32 is_active = 1;
2075
- * @return {number}
2074
+ * optional bool is_active = 1;
2075
+ * @return {boolean}
2076
2076
  */
2077
2077
  proto.game.GameSearchRequest.prototype.getIsActive = function() {
2078
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2078
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
2079
2079
  };
2080
2080
 
2081
2081
 
2082
2082
  /**
2083
- * @param {number} value
2083
+ * @param {boolean} value
2084
2084
  * @return {!proto.game.GameSearchRequest} returns this
2085
2085
  */
2086
2086
  proto.game.GameSearchRequest.prototype.setIsActive = function(value) {
@@ -2107,16 +2107,16 @@ proto.game.GameSearchRequest.prototype.hasIsActive = function() {
2107
2107
 
2108
2108
 
2109
2109
  /**
2110
- * optional int32 is_deactivated = 2;
2111
- * @return {number}
2110
+ * optional bool is_deactivated = 2;
2111
+ * @return {boolean}
2112
2112
  */
2113
2113
  proto.game.GameSearchRequest.prototype.getIsDeactivated = function() {
2114
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2114
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
2115
2115
  };
2116
2116
 
2117
2117
 
2118
2118
  /**
2119
- * @param {number} value
2119
+ * @param {boolean} value
2120
2120
  * @return {!proto.game.GameSearchRequest} returns this
2121
2121
  */
2122
2122
  proto.game.GameSearchRequest.prototype.setIsDeactivated = function(value) {
@@ -2143,16 +2143,16 @@ proto.game.GameSearchRequest.prototype.hasIsDeactivated = function() {
2143
2143
 
2144
2144
 
2145
2145
  /**
2146
- * optional int32 has_category = 3;
2147
- * @return {number}
2146
+ * optional bool has_category = 3;
2147
+ * @return {boolean}
2148
2148
  */
2149
2149
  proto.game.GameSearchRequest.prototype.getHasCategory = function() {
2150
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2150
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2151
2151
  };
2152
2152
 
2153
2153
 
2154
2154
  /**
2155
- * @param {number} value
2155
+ * @param {boolean} value
2156
2156
  * @return {!proto.game.GameSearchRequest} returns this
2157
2157
  */
2158
2158
  proto.game.GameSearchRequest.prototype.setHasCategory = function(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {