protobuf-platform 1.1.61 → 1.1.63

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.
@@ -32,6 +32,7 @@ message NotificationSearchRequest {
32
32
  optional string notification_title = 3;
33
33
  repeated int32 notification_ids = 4;
34
34
  optional string type = 5;
35
+ optional int32 is_active = 6;
35
36
  }
36
37
  message UserSearchRequest {
37
38
  int32 user_id = 1;
@@ -960,7 +960,8 @@ proto.notification.NotificationSearchRequest.toObject = function(includeInstance
960
960
  userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
961
961
  notificationTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
962
962
  notificationIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
963
- type: jspb.Message.getFieldWithDefault(msg, 5, "")
963
+ type: jspb.Message.getFieldWithDefault(msg, 5, ""),
964
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
964
965
  };
965
966
 
966
967
  if (includeInstance) {
@@ -1019,6 +1020,10 @@ proto.notification.NotificationSearchRequest.deserializeBinaryFromReader = funct
1019
1020
  var value = /** @type {string} */ (reader.readString());
1020
1021
  msg.setType(value);
1021
1022
  break;
1023
+ case 6:
1024
+ var value = /** @type {number} */ (reader.readInt32());
1025
+ msg.setIsActive(value);
1026
+ break;
1022
1027
  default:
1023
1028
  reader.skipField();
1024
1029
  break;
@@ -1083,6 +1088,13 @@ proto.notification.NotificationSearchRequest.serializeBinaryToWriter = function(
1083
1088
  f
1084
1089
  );
1085
1090
  }
1091
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
1092
+ if (f != null) {
1093
+ writer.writeInt32(
1094
+ 6,
1095
+ f
1096
+ );
1097
+ }
1086
1098
  };
1087
1099
 
1088
1100
 
@@ -1267,6 +1279,42 @@ proto.notification.NotificationSearchRequest.prototype.hasType = function() {
1267
1279
  };
1268
1280
 
1269
1281
 
1282
+ /**
1283
+ * optional int32 is_active = 6;
1284
+ * @return {number}
1285
+ */
1286
+ proto.notification.NotificationSearchRequest.prototype.getIsActive = function() {
1287
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * @param {number} value
1293
+ * @return {!proto.notification.NotificationSearchRequest} returns this
1294
+ */
1295
+ proto.notification.NotificationSearchRequest.prototype.setIsActive = function(value) {
1296
+ return jspb.Message.setField(this, 6, value);
1297
+ };
1298
+
1299
+
1300
+ /**
1301
+ * Clears the field making it undefined.
1302
+ * @return {!proto.notification.NotificationSearchRequest} returns this
1303
+ */
1304
+ proto.notification.NotificationSearchRequest.prototype.clearIsActive = function() {
1305
+ return jspb.Message.setField(this, 6, undefined);
1306
+ };
1307
+
1308
+
1309
+ /**
1310
+ * Returns whether this field is set.
1311
+ * @return {boolean}
1312
+ */
1313
+ proto.notification.NotificationSearchRequest.prototype.hasIsActive = function() {
1314
+ return jspb.Message.getField(this, 6) != null;
1315
+ };
1316
+
1317
+
1270
1318
 
1271
1319
 
1272
1320
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
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