protobuf-platform 1.2.564 → 1.2.565

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.2.564",
3
+ "version": "1.2.565",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -207,6 +207,8 @@ message ContentItem {
207
207
  optional int32 tournament_id = 2;
208
208
  optional string locale = 3;
209
209
  optional string content = 4;
210
+ optional string title = 5;
211
+ optional string description = 6;
210
212
  }
211
213
  message TournamentContentRequest {
212
214
  int32 tournament_id = 1;
@@ -9522,7 +9522,9 @@ proto.tournament.ContentItem.toObject = function(includeInstance, msg) {
9522
9522
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
9523
9523
  tournamentId: jspb.Message.getFieldWithDefault(msg, 2, 0),
9524
9524
  locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
9525
- content: jspb.Message.getFieldWithDefault(msg, 4, "")
9525
+ content: jspb.Message.getFieldWithDefault(msg, 4, ""),
9526
+ title: jspb.Message.getFieldWithDefault(msg, 5, ""),
9527
+ description: jspb.Message.getFieldWithDefault(msg, 6, "")
9526
9528
  };
9527
9529
 
9528
9530
  if (includeInstance) {
@@ -9575,6 +9577,14 @@ proto.tournament.ContentItem.deserializeBinaryFromReader = function(msg, reader)
9575
9577
  var value = /** @type {string} */ (reader.readString());
9576
9578
  msg.setContent(value);
9577
9579
  break;
9580
+ case 5:
9581
+ var value = /** @type {string} */ (reader.readString());
9582
+ msg.setTitle(value);
9583
+ break;
9584
+ case 6:
9585
+ var value = /** @type {string} */ (reader.readString());
9586
+ msg.setDescription(value);
9587
+ break;
9578
9588
  default:
9579
9589
  reader.skipField();
9580
9590
  break;
@@ -9632,6 +9642,20 @@ proto.tournament.ContentItem.serializeBinaryToWriter = function(message, writer)
9632
9642
  f
9633
9643
  );
9634
9644
  }
9645
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9646
+ if (f != null) {
9647
+ writer.writeString(
9648
+ 5,
9649
+ f
9650
+ );
9651
+ }
9652
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
9653
+ if (f != null) {
9654
+ writer.writeString(
9655
+ 6,
9656
+ f
9657
+ );
9658
+ }
9635
9659
  };
9636
9660
 
9637
9661
 
@@ -9779,6 +9803,78 @@ proto.tournament.ContentItem.prototype.hasContent = function() {
9779
9803
  };
9780
9804
 
9781
9805
 
9806
+ /**
9807
+ * optional string title = 5;
9808
+ * @return {string}
9809
+ */
9810
+ proto.tournament.ContentItem.prototype.getTitle = function() {
9811
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9812
+ };
9813
+
9814
+
9815
+ /**
9816
+ * @param {string} value
9817
+ * @return {!proto.tournament.ContentItem} returns this
9818
+ */
9819
+ proto.tournament.ContentItem.prototype.setTitle = function(value) {
9820
+ return jspb.Message.setField(this, 5, value);
9821
+ };
9822
+
9823
+
9824
+ /**
9825
+ * Clears the field making it undefined.
9826
+ * @return {!proto.tournament.ContentItem} returns this
9827
+ */
9828
+ proto.tournament.ContentItem.prototype.clearTitle = function() {
9829
+ return jspb.Message.setField(this, 5, undefined);
9830
+ };
9831
+
9832
+
9833
+ /**
9834
+ * Returns whether this field is set.
9835
+ * @return {boolean}
9836
+ */
9837
+ proto.tournament.ContentItem.prototype.hasTitle = function() {
9838
+ return jspb.Message.getField(this, 5) != null;
9839
+ };
9840
+
9841
+
9842
+ /**
9843
+ * optional string description = 6;
9844
+ * @return {string}
9845
+ */
9846
+ proto.tournament.ContentItem.prototype.getDescription = function() {
9847
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
9848
+ };
9849
+
9850
+
9851
+ /**
9852
+ * @param {string} value
9853
+ * @return {!proto.tournament.ContentItem} returns this
9854
+ */
9855
+ proto.tournament.ContentItem.prototype.setDescription = function(value) {
9856
+ return jspb.Message.setField(this, 6, value);
9857
+ };
9858
+
9859
+
9860
+ /**
9861
+ * Clears the field making it undefined.
9862
+ * @return {!proto.tournament.ContentItem} returns this
9863
+ */
9864
+ proto.tournament.ContentItem.prototype.clearDescription = function() {
9865
+ return jspb.Message.setField(this, 6, undefined);
9866
+ };
9867
+
9868
+
9869
+ /**
9870
+ * Returns whether this field is set.
9871
+ * @return {boolean}
9872
+ */
9873
+ proto.tournament.ContentItem.prototype.hasDescription = function() {
9874
+ return jspb.Message.getField(this, 6) != null;
9875
+ };
9876
+
9877
+
9782
9878
 
9783
9879
 
9784
9880