protobuf-platform 1.0.76 → 1.0.77

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
@@ -63,6 +63,7 @@ message CategoryItem {
63
63
  optional string description = 4;
64
64
  optional int32 is_active = 5;
65
65
  optional string image = 6;
66
+ optional int32 count_of_collections = 7;
66
67
  }
67
68
  //Category CRUD | Requests
68
69
  message CategoryRequest {
@@ -105,6 +106,7 @@ message CollectionItem {
105
106
  optional string description = 5;
106
107
  optional int32 is_active = 6;
107
108
  optional string image = 7;
109
+ optional int32 count_of_games = 8;
108
110
  }
109
111
  //Collection CRUD | Requests
110
112
  message CollectionRequest {
@@ -152,6 +154,7 @@ message TagItem {
152
154
  optional string description = 4;
153
155
  optional int32 is_active = 5;
154
156
  optional string image = 6;
157
+ optional int32 count_of_games = 7;
155
158
  }
156
159
  //Tag CRUD | Requests
157
160
  message TagRequest {
package/game/game_pb.js CHANGED
@@ -1963,7 +1963,8 @@ proto.game.CategoryItem.toObject = function(includeInstance, msg) {
1963
1963
  slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
1964
1964
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
1965
1965
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
1966
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
1966
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
1967
+ countOfCollections: jspb.Message.getFieldWithDefault(msg, 7, 0)
1967
1968
  };
1968
1969
 
1969
1970
  if (includeInstance) {
@@ -2024,6 +2025,10 @@ proto.game.CategoryItem.deserializeBinaryFromReader = function(msg, reader) {
2024
2025
  var value = /** @type {string} */ (reader.readString());
2025
2026
  msg.setImage(value);
2026
2027
  break;
2028
+ case 7:
2029
+ var value = /** @type {number} */ (reader.readInt32());
2030
+ msg.setCountOfCollections(value);
2031
+ break;
2027
2032
  default:
2028
2033
  reader.skipField();
2029
2034
  break;
@@ -2095,6 +2100,13 @@ proto.game.CategoryItem.serializeBinaryToWriter = function(message, writer) {
2095
2100
  f
2096
2101
  );
2097
2102
  }
2103
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
2104
+ if (f != null) {
2105
+ writer.writeInt32(
2106
+ 7,
2107
+ f
2108
+ );
2109
+ }
2098
2110
  };
2099
2111
 
2100
2112
 
@@ -2314,6 +2326,42 @@ proto.game.CategoryItem.prototype.hasImage = function() {
2314
2326
  };
2315
2327
 
2316
2328
 
2329
+ /**
2330
+ * optional int32 count_of_collections = 7;
2331
+ * @return {number}
2332
+ */
2333
+ proto.game.CategoryItem.prototype.getCountOfCollections = function() {
2334
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2335
+ };
2336
+
2337
+
2338
+ /**
2339
+ * @param {number} value
2340
+ * @return {!proto.game.CategoryItem} returns this
2341
+ */
2342
+ proto.game.CategoryItem.prototype.setCountOfCollections = function(value) {
2343
+ return jspb.Message.setField(this, 7, value);
2344
+ };
2345
+
2346
+
2347
+ /**
2348
+ * Clears the field making it undefined.
2349
+ * @return {!proto.game.CategoryItem} returns this
2350
+ */
2351
+ proto.game.CategoryItem.prototype.clearCountOfCollections = function() {
2352
+ return jspb.Message.setField(this, 7, undefined);
2353
+ };
2354
+
2355
+
2356
+ /**
2357
+ * Returns whether this field is set.
2358
+ * @return {boolean}
2359
+ */
2360
+ proto.game.CategoryItem.prototype.hasCountOfCollections = function() {
2361
+ return jspb.Message.getField(this, 7) != null;
2362
+ };
2363
+
2364
+
2317
2365
 
2318
2366
  /**
2319
2367
  * Oneof group definitions for this message. Each group defines the field
@@ -3683,7 +3731,8 @@ proto.game.CollectionItem.toObject = function(includeInstance, msg) {
3683
3731
  slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
3684
3732
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
3685
3733
  isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
3686
- image: jspb.Message.getFieldWithDefault(msg, 7, "")
3734
+ image: jspb.Message.getFieldWithDefault(msg, 7, ""),
3735
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
3687
3736
  };
3688
3737
 
3689
3738
  if (includeInstance) {
@@ -3749,6 +3798,10 @@ proto.game.CollectionItem.deserializeBinaryFromReader = function(msg, reader) {
3749
3798
  var value = /** @type {string} */ (reader.readString());
3750
3799
  msg.setImage(value);
3751
3800
  break;
3801
+ case 8:
3802
+ var value = /** @type {number} */ (reader.readInt32());
3803
+ msg.setCountOfGames(value);
3804
+ break;
3752
3805
  default:
3753
3806
  reader.skipField();
3754
3807
  break;
@@ -3828,6 +3881,13 @@ proto.game.CollectionItem.serializeBinaryToWriter = function(message, writer) {
3828
3881
  f
3829
3882
  );
3830
3883
  }
3884
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
3885
+ if (f != null) {
3886
+ writer.writeInt32(
3887
+ 8,
3888
+ f
3889
+ );
3890
+ }
3831
3891
  };
3832
3892
 
3833
3893
 
@@ -4084,6 +4144,42 @@ proto.game.CollectionItem.prototype.hasImage = function() {
4084
4144
  };
4085
4145
 
4086
4146
 
4147
+ /**
4148
+ * optional int32 count_of_games = 8;
4149
+ * @return {number}
4150
+ */
4151
+ proto.game.CollectionItem.prototype.getCountOfGames = function() {
4152
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
4153
+ };
4154
+
4155
+
4156
+ /**
4157
+ * @param {number} value
4158
+ * @return {!proto.game.CollectionItem} returns this
4159
+ */
4160
+ proto.game.CollectionItem.prototype.setCountOfGames = function(value) {
4161
+ return jspb.Message.setField(this, 8, value);
4162
+ };
4163
+
4164
+
4165
+ /**
4166
+ * Clears the field making it undefined.
4167
+ * @return {!proto.game.CollectionItem} returns this
4168
+ */
4169
+ proto.game.CollectionItem.prototype.clearCountOfGames = function() {
4170
+ return jspb.Message.setField(this, 8, undefined);
4171
+ };
4172
+
4173
+
4174
+ /**
4175
+ * Returns whether this field is set.
4176
+ * @return {boolean}
4177
+ */
4178
+ proto.game.CollectionItem.prototype.hasCountOfGames = function() {
4179
+ return jspb.Message.getField(this, 8) != null;
4180
+ };
4181
+
4182
+
4087
4183
 
4088
4184
  /**
4089
4185
  * Oneof group definitions for this message. Each group defines the field
@@ -5708,7 +5804,8 @@ proto.game.TagItem.toObject = function(includeInstance, msg) {
5708
5804
  slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
5709
5805
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
5710
5806
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
5711
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
5807
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
5808
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 7, 0)
5712
5809
  };
5713
5810
 
5714
5811
  if (includeInstance) {
@@ -5769,6 +5866,10 @@ proto.game.TagItem.deserializeBinaryFromReader = function(msg, reader) {
5769
5866
  var value = /** @type {string} */ (reader.readString());
5770
5867
  msg.setImage(value);
5771
5868
  break;
5869
+ case 7:
5870
+ var value = /** @type {number} */ (reader.readInt32());
5871
+ msg.setCountOfGames(value);
5872
+ break;
5772
5873
  default:
5773
5874
  reader.skipField();
5774
5875
  break;
@@ -5840,6 +5941,13 @@ proto.game.TagItem.serializeBinaryToWriter = function(message, writer) {
5840
5941
  f
5841
5942
  );
5842
5943
  }
5944
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
5945
+ if (f != null) {
5946
+ writer.writeInt32(
5947
+ 7,
5948
+ f
5949
+ );
5950
+ }
5843
5951
  };
5844
5952
 
5845
5953
 
@@ -6059,6 +6167,42 @@ proto.game.TagItem.prototype.hasImage = function() {
6059
6167
  };
6060
6168
 
6061
6169
 
6170
+ /**
6171
+ * optional int32 count_of_games = 7;
6172
+ * @return {number}
6173
+ */
6174
+ proto.game.TagItem.prototype.getCountOfGames = function() {
6175
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
6176
+ };
6177
+
6178
+
6179
+ /**
6180
+ * @param {number} value
6181
+ * @return {!proto.game.TagItem} returns this
6182
+ */
6183
+ proto.game.TagItem.prototype.setCountOfGames = function(value) {
6184
+ return jspb.Message.setField(this, 7, value);
6185
+ };
6186
+
6187
+
6188
+ /**
6189
+ * Clears the field making it undefined.
6190
+ * @return {!proto.game.TagItem} returns this
6191
+ */
6192
+ proto.game.TagItem.prototype.clearCountOfGames = function() {
6193
+ return jspb.Message.setField(this, 7, undefined);
6194
+ };
6195
+
6196
+
6197
+ /**
6198
+ * Returns whether this field is set.
6199
+ * @return {boolean}
6200
+ */
6201
+ proto.game.TagItem.prototype.hasCountOfGames = function() {
6202
+ return jspb.Message.getField(this, 7) != null;
6203
+ };
6204
+
6205
+
6062
6206
 
6063
6207
  /**
6064
6208
  * Oneof group definitions for this message. Each group defines the field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {