protobuf-platform 1.1.21 → 1.1.22

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.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -175,6 +175,8 @@ message UserTournamentItem {
175
175
  optional string content = 12;
176
176
  optional string slug = 13;
177
177
  optional bool can_activated = 14;
178
+ optional string user_status = 15;
179
+ optional int32 finished_in_milliseconds = 16;
178
180
  }
179
181
  message UserTournamentItemsResponse {
180
182
  repeated UserTournamentItem items = 1;
@@ -7561,7 +7561,9 @@ proto.tournament.UserTournamentItem.toObject = function(includeInstance, msg) {
7561
7561
  proto.tournament.RewardItem.toObject, includeInstance),
7562
7562
  content: jspb.Message.getFieldWithDefault(msg, 12, ""),
7563
7563
  slug: jspb.Message.getFieldWithDefault(msg, 13, ""),
7564
- canActivated: jspb.Message.getBooleanFieldWithDefault(msg, 14, false)
7564
+ canActivated: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
7565
+ userStatus: jspb.Message.getFieldWithDefault(msg, 15, ""),
7566
+ finishedInMilliseconds: jspb.Message.getFieldWithDefault(msg, 16, 0)
7565
7567
  };
7566
7568
 
7567
7569
  if (includeInstance) {
@@ -7656,6 +7658,14 @@ proto.tournament.UserTournamentItem.deserializeBinaryFromReader = function(msg,
7656
7658
  var value = /** @type {boolean} */ (reader.readBool());
7657
7659
  msg.setCanActivated(value);
7658
7660
  break;
7661
+ case 15:
7662
+ var value = /** @type {string} */ (reader.readString());
7663
+ msg.setUserStatus(value);
7664
+ break;
7665
+ case 16:
7666
+ var value = /** @type {number} */ (reader.readInt32());
7667
+ msg.setFinishedInMilliseconds(value);
7668
+ break;
7659
7669
  default:
7660
7670
  reader.skipField();
7661
7671
  break;
@@ -7785,6 +7795,20 @@ proto.tournament.UserTournamentItem.serializeBinaryToWriter = function(message,
7785
7795
  f
7786
7796
  );
7787
7797
  }
7798
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
7799
+ if (f != null) {
7800
+ writer.writeString(
7801
+ 15,
7802
+ f
7803
+ );
7804
+ }
7805
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
7806
+ if (f != null) {
7807
+ writer.writeInt32(
7808
+ 16,
7809
+ f
7810
+ );
7811
+ }
7788
7812
  };
7789
7813
 
7790
7814
 
@@ -8296,6 +8320,78 @@ proto.tournament.UserTournamentItem.prototype.hasCanActivated = function() {
8296
8320
  };
8297
8321
 
8298
8322
 
8323
+ /**
8324
+ * optional string user_status = 15;
8325
+ * @return {string}
8326
+ */
8327
+ proto.tournament.UserTournamentItem.prototype.getUserStatus = function() {
8328
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
8329
+ };
8330
+
8331
+
8332
+ /**
8333
+ * @param {string} value
8334
+ * @return {!proto.tournament.UserTournamentItem} returns this
8335
+ */
8336
+ proto.tournament.UserTournamentItem.prototype.setUserStatus = function(value) {
8337
+ return jspb.Message.setField(this, 15, value);
8338
+ };
8339
+
8340
+
8341
+ /**
8342
+ * Clears the field making it undefined.
8343
+ * @return {!proto.tournament.UserTournamentItem} returns this
8344
+ */
8345
+ proto.tournament.UserTournamentItem.prototype.clearUserStatus = function() {
8346
+ return jspb.Message.setField(this, 15, undefined);
8347
+ };
8348
+
8349
+
8350
+ /**
8351
+ * Returns whether this field is set.
8352
+ * @return {boolean}
8353
+ */
8354
+ proto.tournament.UserTournamentItem.prototype.hasUserStatus = function() {
8355
+ return jspb.Message.getField(this, 15) != null;
8356
+ };
8357
+
8358
+
8359
+ /**
8360
+ * optional int32 finished_in_milliseconds = 16;
8361
+ * @return {number}
8362
+ */
8363
+ proto.tournament.UserTournamentItem.prototype.getFinishedInMilliseconds = function() {
8364
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
8365
+ };
8366
+
8367
+
8368
+ /**
8369
+ * @param {number} value
8370
+ * @return {!proto.tournament.UserTournamentItem} returns this
8371
+ */
8372
+ proto.tournament.UserTournamentItem.prototype.setFinishedInMilliseconds = function(value) {
8373
+ return jspb.Message.setField(this, 16, value);
8374
+ };
8375
+
8376
+
8377
+ /**
8378
+ * Clears the field making it undefined.
8379
+ * @return {!proto.tournament.UserTournamentItem} returns this
8380
+ */
8381
+ proto.tournament.UserTournamentItem.prototype.clearFinishedInMilliseconds = function() {
8382
+ return jspb.Message.setField(this, 16, undefined);
8383
+ };
8384
+
8385
+
8386
+ /**
8387
+ * Returns whether this field is set.
8388
+ * @return {boolean}
8389
+ */
8390
+ proto.tournament.UserTournamentItem.prototype.hasFinishedInMilliseconds = function() {
8391
+ return jspb.Message.getField(this, 16) != null;
8392
+ };
8393
+
8394
+
8299
8395
 
8300
8396
  /**
8301
8397
  * List of repeated fields within this message type.