protobuf-platform 1.1.61 → 1.1.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -43,7 +43,7 @@ message UserSearchRequest {
43
43
  }
44
44
  message SearchRequest {
45
45
  optional string title = 1;
46
- optional int32 status_id = 2;
46
+ repeated int32 status_ids = 2;
47
47
  optional int32 is_active = 3;
48
48
  repeated string currencies = 4;
49
49
  }
@@ -1868,7 +1868,7 @@ proto.tournament.UserSearchRequest.prototype.hasLocale = function() {
1868
1868
  * @private {!Array<number>}
1869
1869
  * @const
1870
1870
  */
1871
- proto.tournament.SearchRequest.repeatedFields_ = [4];
1871
+ proto.tournament.SearchRequest.repeatedFields_ = [2,4];
1872
1872
 
1873
1873
 
1874
1874
 
@@ -1902,7 +1902,7 @@ proto.tournament.SearchRequest.prototype.toObject = function(opt_includeInstance
1902
1902
  proto.tournament.SearchRequest.toObject = function(includeInstance, msg) {
1903
1903
  var f, obj = {
1904
1904
  title: jspb.Message.getFieldWithDefault(msg, 1, ""),
1905
- statusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
1905
+ statusIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
1906
1906
  isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
1907
1907
  currenciesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
1908
1908
  };
@@ -1946,8 +1946,10 @@ proto.tournament.SearchRequest.deserializeBinaryFromReader = function(msg, reade
1946
1946
  msg.setTitle(value);
1947
1947
  break;
1948
1948
  case 2:
1949
- var value = /** @type {number} */ (reader.readInt32());
1950
- msg.setStatusId(value);
1949
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1950
+ for (var i = 0; i < values.length; i++) {
1951
+ msg.addStatusIds(values[i]);
1952
+ }
1951
1953
  break;
1952
1954
  case 3:
1953
1955
  var value = /** @type {number} */ (reader.readInt32());
@@ -1993,9 +1995,9 @@ proto.tournament.SearchRequest.serializeBinaryToWriter = function(message, write
1993
1995
  f
1994
1996
  );
1995
1997
  }
1996
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
1997
- if (f != null) {
1998
- writer.writeInt32(
1998
+ f = message.getStatusIdsList();
1999
+ if (f.length > 0) {
2000
+ writer.writePackedInt32(
1999
2001
  2,
2000
2002
  f
2001
2003
  );
@@ -2054,38 +2056,39 @@ proto.tournament.SearchRequest.prototype.hasTitle = function() {
2054
2056
 
2055
2057
 
2056
2058
  /**
2057
- * optional int32 status_id = 2;
2058
- * @return {number}
2059
+ * repeated int32 status_ids = 2;
2060
+ * @return {!Array<number>}
2059
2061
  */
2060
- proto.tournament.SearchRequest.prototype.getStatusId = function() {
2061
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2062
+ proto.tournament.SearchRequest.prototype.getStatusIdsList = function() {
2063
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
2062
2064
  };
2063
2065
 
2064
2066
 
2065
2067
  /**
2066
- * @param {number} value
2068
+ * @param {!Array<number>} value
2067
2069
  * @return {!proto.tournament.SearchRequest} returns this
2068
2070
  */
2069
- proto.tournament.SearchRequest.prototype.setStatusId = function(value) {
2070
- return jspb.Message.setField(this, 2, value);
2071
+ proto.tournament.SearchRequest.prototype.setStatusIdsList = function(value) {
2072
+ return jspb.Message.setField(this, 2, value || []);
2071
2073
  };
2072
2074
 
2073
2075
 
2074
2076
  /**
2075
- * Clears the field making it undefined.
2077
+ * @param {number} value
2078
+ * @param {number=} opt_index
2076
2079
  * @return {!proto.tournament.SearchRequest} returns this
2077
2080
  */
2078
- proto.tournament.SearchRequest.prototype.clearStatusId = function() {
2079
- return jspb.Message.setField(this, 2, undefined);
2081
+ proto.tournament.SearchRequest.prototype.addStatusIds = function(value, opt_index) {
2082
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2080
2083
  };
2081
2084
 
2082
2085
 
2083
2086
  /**
2084
- * Returns whether this field is set.
2085
- * @return {boolean}
2087
+ * Clears the list making it empty but non-null.
2088
+ * @return {!proto.tournament.SearchRequest} returns this
2086
2089
  */
2087
- proto.tournament.SearchRequest.prototype.hasStatusId = function() {
2088
- return jspb.Message.getField(this, 2) != null;
2090
+ proto.tournament.SearchRequest.prototype.clearStatusIdsList = function() {
2091
+ return this.setStatusIdsList([]);
2089
2092
  };
2090
2093
 
2091
2094