protobuf-platform 1.2.245 → 1.2.246

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.245",
3
+ "version": "1.2.246",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -248,10 +248,16 @@ message GetOnlineTournamentInfoRequest {
248
248
 
249
249
  message OnlineTournamentInfoResponse {
250
250
  uint64 tournament_id = 1;
251
- uint64 end_in_milliseconds = 2; // countdown timer value in ms, always >= 0
252
- repeated RewardItem rewards_places = 3; // all reward places for podium rendering
253
- repeated TournamentLeaderboardUserItem top20 = 4; // top 20 snapshot (rank is 1-based)
254
- optional TournamentLeaderboardUserItem me = 5; // MUST be returned by backend even if not in top20
251
+ optional string title = 2;
252
+ optional string description = 3;
253
+ optional int32 current_members_count = 4;
254
+ optional int32 max_members_count = 5;
255
+ optional string image = 6;
256
+ optional string image_cdn = 7;
257
+ uint64 end_in_milliseconds = 8; // countdown timer value in ms, always >= 0
258
+ repeated RewardItem rewards_places = 9; // all reward places for podium rendering
259
+ repeated TournamentLeaderboardUserItem top20 = 10; // top 20 snapshot (rank is 1-based)
260
+ optional TournamentLeaderboardUserItem me = 11; // MUST be returned by backend even if not in top20
255
261
  }
256
262
 
257
263
  message ResolveAutoTournamentForGameSessionRequest {
@@ -11115,7 +11115,7 @@ proto.tournament.GetOnlineTournamentInfoRequest.prototype.setUserId = function(v
11115
11115
  * @private {!Array<number>}
11116
11116
  * @const
11117
11117
  */
11118
- proto.tournament.OnlineTournamentInfoResponse.repeatedFields_ = [3,4];
11118
+ proto.tournament.OnlineTournamentInfoResponse.repeatedFields_ = [9,10];
11119
11119
 
11120
11120
 
11121
11121
 
@@ -11149,7 +11149,13 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.toObject = function(opt_
11149
11149
  proto.tournament.OnlineTournamentInfoResponse.toObject = function(includeInstance, msg) {
11150
11150
  var f, obj = {
11151
11151
  tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
11152
- endInMilliseconds: jspb.Message.getFieldWithDefault(msg, 2, 0),
11152
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
11153
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
11154
+ currentMembersCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
11155
+ maxMembersCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
11156
+ image: jspb.Message.getFieldWithDefault(msg, 6, ""),
11157
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
11158
+ endInMilliseconds: jspb.Message.getFieldWithDefault(msg, 8, 0),
11153
11159
  rewardsPlacesList: jspb.Message.toObjectList(msg.getRewardsPlacesList(),
11154
11160
  proto.tournament.RewardItem.toObject, includeInstance),
11155
11161
  top20List: jspb.Message.toObjectList(msg.getTop20List(),
@@ -11196,20 +11202,44 @@ proto.tournament.OnlineTournamentInfoResponse.deserializeBinaryFromReader = func
11196
11202
  msg.setTournamentId(value);
11197
11203
  break;
11198
11204
  case 2:
11205
+ var value = /** @type {string} */ (reader.readString());
11206
+ msg.setTitle(value);
11207
+ break;
11208
+ case 3:
11209
+ var value = /** @type {string} */ (reader.readString());
11210
+ msg.setDescription(value);
11211
+ break;
11212
+ case 4:
11213
+ var value = /** @type {number} */ (reader.readInt32());
11214
+ msg.setCurrentMembersCount(value);
11215
+ break;
11216
+ case 5:
11217
+ var value = /** @type {number} */ (reader.readInt32());
11218
+ msg.setMaxMembersCount(value);
11219
+ break;
11220
+ case 6:
11221
+ var value = /** @type {string} */ (reader.readString());
11222
+ msg.setImage(value);
11223
+ break;
11224
+ case 7:
11225
+ var value = /** @type {string} */ (reader.readString());
11226
+ msg.setImageCdn(value);
11227
+ break;
11228
+ case 8:
11199
11229
  var value = /** @type {number} */ (reader.readUint64());
11200
11230
  msg.setEndInMilliseconds(value);
11201
11231
  break;
11202
- case 3:
11232
+ case 9:
11203
11233
  var value = new proto.tournament.RewardItem;
11204
11234
  reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
11205
11235
  msg.addRewardsPlaces(value);
11206
11236
  break;
11207
- case 4:
11237
+ case 10:
11208
11238
  var value = new proto.tournament.TournamentLeaderboardUserItem;
11209
11239
  reader.readMessage(value,proto.tournament.TournamentLeaderboardUserItem.deserializeBinaryFromReader);
11210
11240
  msg.addTop20(value);
11211
11241
  break;
11212
- case 5:
11242
+ case 11:
11213
11243
  var value = new proto.tournament.TournamentLeaderboardUserItem;
11214
11244
  reader.readMessage(value,proto.tournament.TournamentLeaderboardUserItem.deserializeBinaryFromReader);
11215
11245
  msg.setMe(value);
@@ -11250,17 +11280,59 @@ proto.tournament.OnlineTournamentInfoResponse.serializeBinaryToWriter = function
11250
11280
  f
11251
11281
  );
11252
11282
  }
11283
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
11284
+ if (f != null) {
11285
+ writer.writeString(
11286
+ 2,
11287
+ f
11288
+ );
11289
+ }
11290
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
11291
+ if (f != null) {
11292
+ writer.writeString(
11293
+ 3,
11294
+ f
11295
+ );
11296
+ }
11297
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
11298
+ if (f != null) {
11299
+ writer.writeInt32(
11300
+ 4,
11301
+ f
11302
+ );
11303
+ }
11304
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
11305
+ if (f != null) {
11306
+ writer.writeInt32(
11307
+ 5,
11308
+ f
11309
+ );
11310
+ }
11311
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
11312
+ if (f != null) {
11313
+ writer.writeString(
11314
+ 6,
11315
+ f
11316
+ );
11317
+ }
11318
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
11319
+ if (f != null) {
11320
+ writer.writeString(
11321
+ 7,
11322
+ f
11323
+ );
11324
+ }
11253
11325
  f = message.getEndInMilliseconds();
11254
11326
  if (f !== 0) {
11255
11327
  writer.writeUint64(
11256
- 2,
11328
+ 8,
11257
11329
  f
11258
11330
  );
11259
11331
  }
11260
11332
  f = message.getRewardsPlacesList();
11261
11333
  if (f.length > 0) {
11262
11334
  writer.writeRepeatedMessage(
11263
- 3,
11335
+ 9,
11264
11336
  f,
11265
11337
  proto.tournament.RewardItem.serializeBinaryToWriter
11266
11338
  );
@@ -11268,7 +11340,7 @@ proto.tournament.OnlineTournamentInfoResponse.serializeBinaryToWriter = function
11268
11340
  f = message.getTop20List();
11269
11341
  if (f.length > 0) {
11270
11342
  writer.writeRepeatedMessage(
11271
- 4,
11343
+ 10,
11272
11344
  f,
11273
11345
  proto.tournament.TournamentLeaderboardUserItem.serializeBinaryToWriter
11274
11346
  );
@@ -11276,7 +11348,7 @@ proto.tournament.OnlineTournamentInfoResponse.serializeBinaryToWriter = function
11276
11348
  f = message.getMe();
11277
11349
  if (f != null) {
11278
11350
  writer.writeMessage(
11279
- 5,
11351
+ 11,
11280
11352
  f,
11281
11353
  proto.tournament.TournamentLeaderboardUserItem.serializeBinaryToWriter
11282
11354
  );
@@ -11303,11 +11375,227 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.setTournamentId = functi
11303
11375
 
11304
11376
 
11305
11377
  /**
11306
- * optional uint64 end_in_milliseconds = 2;
11378
+ * optional string title = 2;
11379
+ * @return {string}
11380
+ */
11381
+ proto.tournament.OnlineTournamentInfoResponse.prototype.getTitle = function() {
11382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11383
+ };
11384
+
11385
+
11386
+ /**
11387
+ * @param {string} value
11388
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11389
+ */
11390
+ proto.tournament.OnlineTournamentInfoResponse.prototype.setTitle = function(value) {
11391
+ return jspb.Message.setField(this, 2, value);
11392
+ };
11393
+
11394
+
11395
+ /**
11396
+ * Clears the field making it undefined.
11397
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11398
+ */
11399
+ proto.tournament.OnlineTournamentInfoResponse.prototype.clearTitle = function() {
11400
+ return jspb.Message.setField(this, 2, undefined);
11401
+ };
11402
+
11403
+
11404
+ /**
11405
+ * Returns whether this field is set.
11406
+ * @return {boolean}
11407
+ */
11408
+ proto.tournament.OnlineTournamentInfoResponse.prototype.hasTitle = function() {
11409
+ return jspb.Message.getField(this, 2) != null;
11410
+ };
11411
+
11412
+
11413
+ /**
11414
+ * optional string description = 3;
11415
+ * @return {string}
11416
+ */
11417
+ proto.tournament.OnlineTournamentInfoResponse.prototype.getDescription = function() {
11418
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11419
+ };
11420
+
11421
+
11422
+ /**
11423
+ * @param {string} value
11424
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11425
+ */
11426
+ proto.tournament.OnlineTournamentInfoResponse.prototype.setDescription = function(value) {
11427
+ return jspb.Message.setField(this, 3, value);
11428
+ };
11429
+
11430
+
11431
+ /**
11432
+ * Clears the field making it undefined.
11433
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11434
+ */
11435
+ proto.tournament.OnlineTournamentInfoResponse.prototype.clearDescription = function() {
11436
+ return jspb.Message.setField(this, 3, undefined);
11437
+ };
11438
+
11439
+
11440
+ /**
11441
+ * Returns whether this field is set.
11442
+ * @return {boolean}
11443
+ */
11444
+ proto.tournament.OnlineTournamentInfoResponse.prototype.hasDescription = function() {
11445
+ return jspb.Message.getField(this, 3) != null;
11446
+ };
11447
+
11448
+
11449
+ /**
11450
+ * optional int32 current_members_count = 4;
11451
+ * @return {number}
11452
+ */
11453
+ proto.tournament.OnlineTournamentInfoResponse.prototype.getCurrentMembersCount = function() {
11454
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
11455
+ };
11456
+
11457
+
11458
+ /**
11459
+ * @param {number} value
11460
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11461
+ */
11462
+ proto.tournament.OnlineTournamentInfoResponse.prototype.setCurrentMembersCount = function(value) {
11463
+ return jspb.Message.setField(this, 4, value);
11464
+ };
11465
+
11466
+
11467
+ /**
11468
+ * Clears the field making it undefined.
11469
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11470
+ */
11471
+ proto.tournament.OnlineTournamentInfoResponse.prototype.clearCurrentMembersCount = function() {
11472
+ return jspb.Message.setField(this, 4, undefined);
11473
+ };
11474
+
11475
+
11476
+ /**
11477
+ * Returns whether this field is set.
11478
+ * @return {boolean}
11479
+ */
11480
+ proto.tournament.OnlineTournamentInfoResponse.prototype.hasCurrentMembersCount = function() {
11481
+ return jspb.Message.getField(this, 4) != null;
11482
+ };
11483
+
11484
+
11485
+ /**
11486
+ * optional int32 max_members_count = 5;
11487
+ * @return {number}
11488
+ */
11489
+ proto.tournament.OnlineTournamentInfoResponse.prototype.getMaxMembersCount = function() {
11490
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
11491
+ };
11492
+
11493
+
11494
+ /**
11495
+ * @param {number} value
11496
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11497
+ */
11498
+ proto.tournament.OnlineTournamentInfoResponse.prototype.setMaxMembersCount = function(value) {
11499
+ return jspb.Message.setField(this, 5, value);
11500
+ };
11501
+
11502
+
11503
+ /**
11504
+ * Clears the field making it undefined.
11505
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11506
+ */
11507
+ proto.tournament.OnlineTournamentInfoResponse.prototype.clearMaxMembersCount = function() {
11508
+ return jspb.Message.setField(this, 5, undefined);
11509
+ };
11510
+
11511
+
11512
+ /**
11513
+ * Returns whether this field is set.
11514
+ * @return {boolean}
11515
+ */
11516
+ proto.tournament.OnlineTournamentInfoResponse.prototype.hasMaxMembersCount = function() {
11517
+ return jspb.Message.getField(this, 5) != null;
11518
+ };
11519
+
11520
+
11521
+ /**
11522
+ * optional string image = 6;
11523
+ * @return {string}
11524
+ */
11525
+ proto.tournament.OnlineTournamentInfoResponse.prototype.getImage = function() {
11526
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
11527
+ };
11528
+
11529
+
11530
+ /**
11531
+ * @param {string} value
11532
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11533
+ */
11534
+ proto.tournament.OnlineTournamentInfoResponse.prototype.setImage = function(value) {
11535
+ return jspb.Message.setField(this, 6, value);
11536
+ };
11537
+
11538
+
11539
+ /**
11540
+ * Clears the field making it undefined.
11541
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11542
+ */
11543
+ proto.tournament.OnlineTournamentInfoResponse.prototype.clearImage = function() {
11544
+ return jspb.Message.setField(this, 6, undefined);
11545
+ };
11546
+
11547
+
11548
+ /**
11549
+ * Returns whether this field is set.
11550
+ * @return {boolean}
11551
+ */
11552
+ proto.tournament.OnlineTournamentInfoResponse.prototype.hasImage = function() {
11553
+ return jspb.Message.getField(this, 6) != null;
11554
+ };
11555
+
11556
+
11557
+ /**
11558
+ * optional string image_cdn = 7;
11559
+ * @return {string}
11560
+ */
11561
+ proto.tournament.OnlineTournamentInfoResponse.prototype.getImageCdn = function() {
11562
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11563
+ };
11564
+
11565
+
11566
+ /**
11567
+ * @param {string} value
11568
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11569
+ */
11570
+ proto.tournament.OnlineTournamentInfoResponse.prototype.setImageCdn = function(value) {
11571
+ return jspb.Message.setField(this, 7, value);
11572
+ };
11573
+
11574
+
11575
+ /**
11576
+ * Clears the field making it undefined.
11577
+ * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11578
+ */
11579
+ proto.tournament.OnlineTournamentInfoResponse.prototype.clearImageCdn = function() {
11580
+ return jspb.Message.setField(this, 7, undefined);
11581
+ };
11582
+
11583
+
11584
+ /**
11585
+ * Returns whether this field is set.
11586
+ * @return {boolean}
11587
+ */
11588
+ proto.tournament.OnlineTournamentInfoResponse.prototype.hasImageCdn = function() {
11589
+ return jspb.Message.getField(this, 7) != null;
11590
+ };
11591
+
11592
+
11593
+ /**
11594
+ * optional uint64 end_in_milliseconds = 8;
11307
11595
  * @return {number}
11308
11596
  */
11309
11597
  proto.tournament.OnlineTournamentInfoResponse.prototype.getEndInMilliseconds = function() {
11310
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11598
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
11311
11599
  };
11312
11600
 
11313
11601
 
@@ -11316,17 +11604,17 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.getEndInMilliseconds = f
11316
11604
  * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11317
11605
  */
11318
11606
  proto.tournament.OnlineTournamentInfoResponse.prototype.setEndInMilliseconds = function(value) {
11319
- return jspb.Message.setProto3IntField(this, 2, value);
11607
+ return jspb.Message.setProto3IntField(this, 8, value);
11320
11608
  };
11321
11609
 
11322
11610
 
11323
11611
  /**
11324
- * repeated RewardItem rewards_places = 3;
11612
+ * repeated RewardItem rewards_places = 9;
11325
11613
  * @return {!Array<!proto.tournament.RewardItem>}
11326
11614
  */
11327
11615
  proto.tournament.OnlineTournamentInfoResponse.prototype.getRewardsPlacesList = function() {
11328
11616
  return /** @type{!Array<!proto.tournament.RewardItem>} */ (
11329
- jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 3));
11617
+ jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 9));
11330
11618
  };
11331
11619
 
11332
11620
 
@@ -11335,7 +11623,7 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.getRewardsPlacesList = f
11335
11623
  * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11336
11624
  */
11337
11625
  proto.tournament.OnlineTournamentInfoResponse.prototype.setRewardsPlacesList = function(value) {
11338
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
11626
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
11339
11627
  };
11340
11628
 
11341
11629
 
@@ -11345,7 +11633,7 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.setRewardsPlacesList = f
11345
11633
  * @return {!proto.tournament.RewardItem}
11346
11634
  */
11347
11635
  proto.tournament.OnlineTournamentInfoResponse.prototype.addRewardsPlaces = function(opt_value, opt_index) {
11348
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.tournament.RewardItem, opt_index);
11636
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.tournament.RewardItem, opt_index);
11349
11637
  };
11350
11638
 
11351
11639
 
@@ -11359,12 +11647,12 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.clearRewardsPlacesList =
11359
11647
 
11360
11648
 
11361
11649
  /**
11362
- * repeated TournamentLeaderboardUserItem top20 = 4;
11650
+ * repeated TournamentLeaderboardUserItem top20 = 10;
11363
11651
  * @return {!Array<!proto.tournament.TournamentLeaderboardUserItem>}
11364
11652
  */
11365
11653
  proto.tournament.OnlineTournamentInfoResponse.prototype.getTop20List = function() {
11366
11654
  return /** @type{!Array<!proto.tournament.TournamentLeaderboardUserItem>} */ (
11367
- jspb.Message.getRepeatedWrapperField(this, proto.tournament.TournamentLeaderboardUserItem, 4));
11655
+ jspb.Message.getRepeatedWrapperField(this, proto.tournament.TournamentLeaderboardUserItem, 10));
11368
11656
  };
11369
11657
 
11370
11658
 
@@ -11373,7 +11661,7 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.getTop20List = function(
11373
11661
  * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11374
11662
  */
11375
11663
  proto.tournament.OnlineTournamentInfoResponse.prototype.setTop20List = function(value) {
11376
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
11664
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
11377
11665
  };
11378
11666
 
11379
11667
 
@@ -11383,7 +11671,7 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.setTop20List = function(
11383
11671
  * @return {!proto.tournament.TournamentLeaderboardUserItem}
11384
11672
  */
11385
11673
  proto.tournament.OnlineTournamentInfoResponse.prototype.addTop20 = function(opt_value, opt_index) {
11386
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.tournament.TournamentLeaderboardUserItem, opt_index);
11674
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.tournament.TournamentLeaderboardUserItem, opt_index);
11387
11675
  };
11388
11676
 
11389
11677
 
@@ -11397,12 +11685,12 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.clearTop20List = functio
11397
11685
 
11398
11686
 
11399
11687
  /**
11400
- * optional TournamentLeaderboardUserItem me = 5;
11688
+ * optional TournamentLeaderboardUserItem me = 11;
11401
11689
  * @return {?proto.tournament.TournamentLeaderboardUserItem}
11402
11690
  */
11403
11691
  proto.tournament.OnlineTournamentInfoResponse.prototype.getMe = function() {
11404
11692
  return /** @type{?proto.tournament.TournamentLeaderboardUserItem} */ (
11405
- jspb.Message.getWrapperField(this, proto.tournament.TournamentLeaderboardUserItem, 5));
11693
+ jspb.Message.getWrapperField(this, proto.tournament.TournamentLeaderboardUserItem, 11));
11406
11694
  };
11407
11695
 
11408
11696
 
@@ -11411,7 +11699,7 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.getMe = function() {
11411
11699
  * @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
11412
11700
  */
11413
11701
  proto.tournament.OnlineTournamentInfoResponse.prototype.setMe = function(value) {
11414
- return jspb.Message.setWrapperField(this, 5, value);
11702
+ return jspb.Message.setWrapperField(this, 11, value);
11415
11703
  };
11416
11704
 
11417
11705
 
@@ -11429,7 +11717,7 @@ proto.tournament.OnlineTournamentInfoResponse.prototype.clearMe = function() {
11429
11717
  * @return {boolean}
11430
11718
  */
11431
11719
  proto.tournament.OnlineTournamentInfoResponse.prototype.hasMe = function() {
11432
- return jspb.Message.getField(this, 5) != null;
11720
+ return jspb.Message.getField(this, 11) != null;
11433
11721
  };
11434
11722
 
11435
11723