protobuf-platform 1.0.126 → 1.0.127

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
@@ -445,6 +445,7 @@ message WagerListRequest {
445
445
  optional string title = 2;
446
446
  optional string description = 3;
447
447
  optional bool is_active = 4;
448
+ optional float contribution = 5;
448
449
  }
449
450
  message WagerListGamesRequest {
450
451
  int32 id = 1;
@@ -452,6 +453,10 @@ message WagerListGamesRequest {
452
453
  }
453
454
  message WagerListItem {
454
455
  int32 id = 1;
456
+ string title = 2;
457
+ float contribution = 3;
458
+ optional string description = 4;
459
+ optional bool is_active = 5;
455
460
  }
456
461
  message WagerListResponse {
457
462
  WagerListItem data = 1;
package/game/game_pb.js CHANGED
@@ -18394,7 +18394,8 @@ proto.game.WagerListRequest.toObject = function(includeInstance, msg) {
18394
18394
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18395
18395
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
18396
18396
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
18397
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
18397
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
18398
+ contribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
18398
18399
  };
18399
18400
 
18400
18401
  if (includeInstance) {
@@ -18447,6 +18448,10 @@ proto.game.WagerListRequest.deserializeBinaryFromReader = function(msg, reader)
18447
18448
  var value = /** @type {boolean} */ (reader.readBool());
18448
18449
  msg.setIsActive(value);
18449
18450
  break;
18451
+ case 5:
18452
+ var value = /** @type {number} */ (reader.readFloat());
18453
+ msg.setContribution(value);
18454
+ break;
18450
18455
  default:
18451
18456
  reader.skipField();
18452
18457
  break;
@@ -18504,6 +18509,13 @@ proto.game.WagerListRequest.serializeBinaryToWriter = function(message, writer)
18504
18509
  f
18505
18510
  );
18506
18511
  }
18512
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
18513
+ if (f != null) {
18514
+ writer.writeFloat(
18515
+ 5,
18516
+ f
18517
+ );
18518
+ }
18507
18519
  };
18508
18520
 
18509
18521
 
@@ -18651,6 +18663,42 @@ proto.game.WagerListRequest.prototype.hasIsActive = function() {
18651
18663
  };
18652
18664
 
18653
18665
 
18666
+ /**
18667
+ * optional float contribution = 5;
18668
+ * @return {number}
18669
+ */
18670
+ proto.game.WagerListRequest.prototype.getContribution = function() {
18671
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
18672
+ };
18673
+
18674
+
18675
+ /**
18676
+ * @param {number} value
18677
+ * @return {!proto.game.WagerListRequest} returns this
18678
+ */
18679
+ proto.game.WagerListRequest.prototype.setContribution = function(value) {
18680
+ return jspb.Message.setField(this, 5, value);
18681
+ };
18682
+
18683
+
18684
+ /**
18685
+ * Clears the field making it undefined.
18686
+ * @return {!proto.game.WagerListRequest} returns this
18687
+ */
18688
+ proto.game.WagerListRequest.prototype.clearContribution = function() {
18689
+ return jspb.Message.setField(this, 5, undefined);
18690
+ };
18691
+
18692
+
18693
+ /**
18694
+ * Returns whether this field is set.
18695
+ * @return {boolean}
18696
+ */
18697
+ proto.game.WagerListRequest.prototype.hasContribution = function() {
18698
+ return jspb.Message.getField(this, 5) != null;
18699
+ };
18700
+
18701
+
18654
18702
 
18655
18703
  /**
18656
18704
  * List of repeated fields within this message type.
@@ -18871,7 +18919,11 @@ proto.game.WagerListItem.prototype.toObject = function(opt_includeInstance) {
18871
18919
  */
18872
18920
  proto.game.WagerListItem.toObject = function(includeInstance, msg) {
18873
18921
  var f, obj = {
18874
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
18922
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18923
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
18924
+ contribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
18925
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
18926
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
18875
18927
  };
18876
18928
 
18877
18929
  if (includeInstance) {
@@ -18912,6 +18964,22 @@ proto.game.WagerListItem.deserializeBinaryFromReader = function(msg, reader) {
18912
18964
  var value = /** @type {number} */ (reader.readInt32());
18913
18965
  msg.setId(value);
18914
18966
  break;
18967
+ case 2:
18968
+ var value = /** @type {string} */ (reader.readString());
18969
+ msg.setTitle(value);
18970
+ break;
18971
+ case 3:
18972
+ var value = /** @type {number} */ (reader.readFloat());
18973
+ msg.setContribution(value);
18974
+ break;
18975
+ case 4:
18976
+ var value = /** @type {string} */ (reader.readString());
18977
+ msg.setDescription(value);
18978
+ break;
18979
+ case 5:
18980
+ var value = /** @type {boolean} */ (reader.readBool());
18981
+ msg.setIsActive(value);
18982
+ break;
18915
18983
  default:
18916
18984
  reader.skipField();
18917
18985
  break;
@@ -18948,6 +19016,34 @@ proto.game.WagerListItem.serializeBinaryToWriter = function(message, writer) {
18948
19016
  f
18949
19017
  );
18950
19018
  }
19019
+ f = message.getTitle();
19020
+ if (f.length > 0) {
19021
+ writer.writeString(
19022
+ 2,
19023
+ f
19024
+ );
19025
+ }
19026
+ f = message.getContribution();
19027
+ if (f !== 0.0) {
19028
+ writer.writeFloat(
19029
+ 3,
19030
+ f
19031
+ );
19032
+ }
19033
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
19034
+ if (f != null) {
19035
+ writer.writeString(
19036
+ 4,
19037
+ f
19038
+ );
19039
+ }
19040
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
19041
+ if (f != null) {
19042
+ writer.writeBool(
19043
+ 5,
19044
+ f
19045
+ );
19046
+ }
18951
19047
  };
18952
19048
 
18953
19049
 
@@ -18969,6 +19065,114 @@ proto.game.WagerListItem.prototype.setId = function(value) {
18969
19065
  };
18970
19066
 
18971
19067
 
19068
+ /**
19069
+ * optional string title = 2;
19070
+ * @return {string}
19071
+ */
19072
+ proto.game.WagerListItem.prototype.getTitle = function() {
19073
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
19074
+ };
19075
+
19076
+
19077
+ /**
19078
+ * @param {string} value
19079
+ * @return {!proto.game.WagerListItem} returns this
19080
+ */
19081
+ proto.game.WagerListItem.prototype.setTitle = function(value) {
19082
+ return jspb.Message.setProto3StringField(this, 2, value);
19083
+ };
19084
+
19085
+
19086
+ /**
19087
+ * optional float contribution = 3;
19088
+ * @return {number}
19089
+ */
19090
+ proto.game.WagerListItem.prototype.getContribution = function() {
19091
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
19092
+ };
19093
+
19094
+
19095
+ /**
19096
+ * @param {number} value
19097
+ * @return {!proto.game.WagerListItem} returns this
19098
+ */
19099
+ proto.game.WagerListItem.prototype.setContribution = function(value) {
19100
+ return jspb.Message.setProto3FloatField(this, 3, value);
19101
+ };
19102
+
19103
+
19104
+ /**
19105
+ * optional string description = 4;
19106
+ * @return {string}
19107
+ */
19108
+ proto.game.WagerListItem.prototype.getDescription = function() {
19109
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
19110
+ };
19111
+
19112
+
19113
+ /**
19114
+ * @param {string} value
19115
+ * @return {!proto.game.WagerListItem} returns this
19116
+ */
19117
+ proto.game.WagerListItem.prototype.setDescription = function(value) {
19118
+ return jspb.Message.setField(this, 4, value);
19119
+ };
19120
+
19121
+
19122
+ /**
19123
+ * Clears the field making it undefined.
19124
+ * @return {!proto.game.WagerListItem} returns this
19125
+ */
19126
+ proto.game.WagerListItem.prototype.clearDescription = function() {
19127
+ return jspb.Message.setField(this, 4, undefined);
19128
+ };
19129
+
19130
+
19131
+ /**
19132
+ * Returns whether this field is set.
19133
+ * @return {boolean}
19134
+ */
19135
+ proto.game.WagerListItem.prototype.hasDescription = function() {
19136
+ return jspb.Message.getField(this, 4) != null;
19137
+ };
19138
+
19139
+
19140
+ /**
19141
+ * optional bool is_active = 5;
19142
+ * @return {boolean}
19143
+ */
19144
+ proto.game.WagerListItem.prototype.getIsActive = function() {
19145
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
19146
+ };
19147
+
19148
+
19149
+ /**
19150
+ * @param {boolean} value
19151
+ * @return {!proto.game.WagerListItem} returns this
19152
+ */
19153
+ proto.game.WagerListItem.prototype.setIsActive = function(value) {
19154
+ return jspb.Message.setField(this, 5, value);
19155
+ };
19156
+
19157
+
19158
+ /**
19159
+ * Clears the field making it undefined.
19160
+ * @return {!proto.game.WagerListItem} returns this
19161
+ */
19162
+ proto.game.WagerListItem.prototype.clearIsActive = function() {
19163
+ return jspb.Message.setField(this, 5, undefined);
19164
+ };
19165
+
19166
+
19167
+ /**
19168
+ * Returns whether this field is set.
19169
+ * @return {boolean}
19170
+ */
19171
+ proto.game.WagerListItem.prototype.hasIsActive = function() {
19172
+ return jspb.Message.getField(this, 5) != null;
19173
+ };
19174
+
19175
+
18972
19176
 
18973
19177
 
18974
19178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.126",
3
+ "version": "1.0.127",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {