protobuf-platform 1.0.141 → 1.0.143

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
@@ -298,6 +298,8 @@ message GameItem {
298
298
  optional int32 lines_count = 18;
299
299
  optional string collections = 19;
300
300
  optional string tags = 20;
301
+ optional bool is_top = 21;
302
+ optional bool is_vip = 22;
301
303
  }
302
304
  //Game CRUD | Requests
303
305
  message GameRequest {
@@ -320,6 +322,8 @@ message GameItemRequest {
320
322
  optional string type = 11;
321
323
  optional string file_name = 12;
322
324
  optional string file_type = 13;
325
+ optional int32 is_top = 14;
326
+ optional int32 is_vip = 15;
323
327
 
324
328
  }
325
329
  message GetGameRequest {
package/game/game_pb.js CHANGED
@@ -11549,7 +11549,9 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
11549
11549
  reelsCount: jspb.Message.getFieldWithDefault(msg, 17, 0),
11550
11550
  linesCount: jspb.Message.getFieldWithDefault(msg, 18, 0),
11551
11551
  collections: jspb.Message.getFieldWithDefault(msg, 19, ""),
11552
- tags: jspb.Message.getFieldWithDefault(msg, 20, "")
11552
+ tags: jspb.Message.getFieldWithDefault(msg, 20, ""),
11553
+ isTop: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
11554
+ isVip: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
11553
11555
  };
11554
11556
 
11555
11557
  if (includeInstance) {
@@ -11667,6 +11669,14 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
11667
11669
  var value = /** @type {string} */ (reader.readString());
11668
11670
  msg.setTags(value);
11669
11671
  break;
11672
+ case 21:
11673
+ var value = /** @type {boolean} */ (reader.readBool());
11674
+ msg.setIsTop(value);
11675
+ break;
11676
+ case 22:
11677
+ var value = /** @type {boolean} */ (reader.readBool());
11678
+ msg.setIsVip(value);
11679
+ break;
11670
11680
  default:
11671
11681
  reader.skipField();
11672
11682
  break;
@@ -11837,6 +11847,20 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
11837
11847
  f
11838
11848
  );
11839
11849
  }
11850
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 21));
11851
+ if (f != null) {
11852
+ writer.writeBool(
11853
+ 21,
11854
+ f
11855
+ );
11856
+ }
11857
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 22));
11858
+ if (f != null) {
11859
+ writer.writeBool(
11860
+ 22,
11861
+ f
11862
+ );
11863
+ }
11840
11864
  };
11841
11865
 
11842
11866
 
@@ -12561,6 +12585,78 @@ proto.game.GameItem.prototype.hasTags = function() {
12561
12585
  };
12562
12586
 
12563
12587
 
12588
+ /**
12589
+ * optional bool is_top = 21;
12590
+ * @return {boolean}
12591
+ */
12592
+ proto.game.GameItem.prototype.getIsTop = function() {
12593
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
12594
+ };
12595
+
12596
+
12597
+ /**
12598
+ * @param {boolean} value
12599
+ * @return {!proto.game.GameItem} returns this
12600
+ */
12601
+ proto.game.GameItem.prototype.setIsTop = function(value) {
12602
+ return jspb.Message.setField(this, 21, value);
12603
+ };
12604
+
12605
+
12606
+ /**
12607
+ * Clears the field making it undefined.
12608
+ * @return {!proto.game.GameItem} returns this
12609
+ */
12610
+ proto.game.GameItem.prototype.clearIsTop = function() {
12611
+ return jspb.Message.setField(this, 21, undefined);
12612
+ };
12613
+
12614
+
12615
+ /**
12616
+ * Returns whether this field is set.
12617
+ * @return {boolean}
12618
+ */
12619
+ proto.game.GameItem.prototype.hasIsTop = function() {
12620
+ return jspb.Message.getField(this, 21) != null;
12621
+ };
12622
+
12623
+
12624
+ /**
12625
+ * optional bool is_vip = 22;
12626
+ * @return {boolean}
12627
+ */
12628
+ proto.game.GameItem.prototype.getIsVip = function() {
12629
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false));
12630
+ };
12631
+
12632
+
12633
+ /**
12634
+ * @param {boolean} value
12635
+ * @return {!proto.game.GameItem} returns this
12636
+ */
12637
+ proto.game.GameItem.prototype.setIsVip = function(value) {
12638
+ return jspb.Message.setField(this, 22, value);
12639
+ };
12640
+
12641
+
12642
+ /**
12643
+ * Clears the field making it undefined.
12644
+ * @return {!proto.game.GameItem} returns this
12645
+ */
12646
+ proto.game.GameItem.prototype.clearIsVip = function() {
12647
+ return jspb.Message.setField(this, 22, undefined);
12648
+ };
12649
+
12650
+
12651
+ /**
12652
+ * Returns whether this field is set.
12653
+ * @return {boolean}
12654
+ */
12655
+ proto.game.GameItem.prototype.hasIsVip = function() {
12656
+ return jspb.Message.getField(this, 22) != null;
12657
+ };
12658
+
12659
+
12564
12660
 
12565
12661
  /**
12566
12662
  * Oneof group definitions for this message. Each group defines the field
@@ -12833,7 +12929,9 @@ proto.game.GameItemRequest.toObject = function(includeInstance, msg) {
12833
12929
  hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0),
12834
12930
  type: jspb.Message.getFieldWithDefault(msg, 11, ""),
12835
12931
  fileName: jspb.Message.getFieldWithDefault(msg, 12, ""),
12836
- fileType: jspb.Message.getFieldWithDefault(msg, 13, "")
12932
+ fileType: jspb.Message.getFieldWithDefault(msg, 13, ""),
12933
+ isTop: jspb.Message.getFieldWithDefault(msg, 14, 0),
12934
+ isVip: jspb.Message.getFieldWithDefault(msg, 15, 0)
12837
12935
  };
12838
12936
 
12839
12937
  if (includeInstance) {
@@ -12923,6 +13021,14 @@ proto.game.GameItemRequest.deserializeBinaryFromReader = function(msg, reader) {
12923
13021
  var value = /** @type {string} */ (reader.readString());
12924
13022
  msg.setFileType(value);
12925
13023
  break;
13024
+ case 14:
13025
+ var value = /** @type {number} */ (reader.readInt32());
13026
+ msg.setIsTop(value);
13027
+ break;
13028
+ case 15:
13029
+ var value = /** @type {number} */ (reader.readInt32());
13030
+ msg.setIsVip(value);
13031
+ break;
12926
13032
  default:
12927
13033
  reader.skipField();
12928
13034
  break;
@@ -13044,6 +13150,20 @@ proto.game.GameItemRequest.serializeBinaryToWriter = function(message, writer) {
13044
13150
  f
13045
13151
  );
13046
13152
  }
13153
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
13154
+ if (f != null) {
13155
+ writer.writeInt32(
13156
+ 14,
13157
+ f
13158
+ );
13159
+ }
13160
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
13161
+ if (f != null) {
13162
+ writer.writeInt32(
13163
+ 15,
13164
+ f
13165
+ );
13166
+ }
13047
13167
  };
13048
13168
 
13049
13169
 
@@ -13516,6 +13636,78 @@ proto.game.GameItemRequest.prototype.hasFileType = function() {
13516
13636
  };
13517
13637
 
13518
13638
 
13639
+ /**
13640
+ * optional int32 is_top = 14;
13641
+ * @return {number}
13642
+ */
13643
+ proto.game.GameItemRequest.prototype.getIsTop = function() {
13644
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
13645
+ };
13646
+
13647
+
13648
+ /**
13649
+ * @param {number} value
13650
+ * @return {!proto.game.GameItemRequest} returns this
13651
+ */
13652
+ proto.game.GameItemRequest.prototype.setIsTop = function(value) {
13653
+ return jspb.Message.setField(this, 14, value);
13654
+ };
13655
+
13656
+
13657
+ /**
13658
+ * Clears the field making it undefined.
13659
+ * @return {!proto.game.GameItemRequest} returns this
13660
+ */
13661
+ proto.game.GameItemRequest.prototype.clearIsTop = function() {
13662
+ return jspb.Message.setField(this, 14, undefined);
13663
+ };
13664
+
13665
+
13666
+ /**
13667
+ * Returns whether this field is set.
13668
+ * @return {boolean}
13669
+ */
13670
+ proto.game.GameItemRequest.prototype.hasIsTop = function() {
13671
+ return jspb.Message.getField(this, 14) != null;
13672
+ };
13673
+
13674
+
13675
+ /**
13676
+ * optional int32 is_vip = 15;
13677
+ * @return {number}
13678
+ */
13679
+ proto.game.GameItemRequest.prototype.getIsVip = function() {
13680
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
13681
+ };
13682
+
13683
+
13684
+ /**
13685
+ * @param {number} value
13686
+ * @return {!proto.game.GameItemRequest} returns this
13687
+ */
13688
+ proto.game.GameItemRequest.prototype.setIsVip = function(value) {
13689
+ return jspb.Message.setField(this, 15, value);
13690
+ };
13691
+
13692
+
13693
+ /**
13694
+ * Clears the field making it undefined.
13695
+ * @return {!proto.game.GameItemRequest} returns this
13696
+ */
13697
+ proto.game.GameItemRequest.prototype.clearIsVip = function() {
13698
+ return jspb.Message.setField(this, 15, undefined);
13699
+ };
13700
+
13701
+
13702
+ /**
13703
+ * Returns whether this field is set.
13704
+ * @return {boolean}
13705
+ */
13706
+ proto.game.GameItemRequest.prototype.hasIsVip = function() {
13707
+ return jspb.Message.getField(this, 15) != null;
13708
+ };
13709
+
13710
+
13519
13711
 
13520
13712
 
13521
13713
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.141",
3
+ "version": "1.0.143",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {