protobuf-platform 1.2.239 → 1.2.240

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
@@ -560,6 +560,7 @@ message InitGameSessionV2Request {
560
560
  optional string user_device = 11;
561
561
  optional string user_session_id = 12;
562
562
  optional string user_ip = 13;
563
+ optional uint64 selected_tournament_id = 14;
563
564
  }
564
565
  message InitDemoGameSessionRequest {
565
566
  string game_slug = 1;
@@ -574,6 +575,17 @@ message GetGameConfigCheckRequest {
574
575
  string game_slug = 2;
575
576
  int32 user_id = 3;
576
577
  }
578
+ message ActiveUserTournament {
579
+ int32 tournament_id = 1;
580
+ string title = 2;
581
+ optional string image = 3;
582
+ optional string image_cdn = 4;
583
+ optional string slug = 5;
584
+ optional string status = 6;
585
+ optional bool can_activated = 7;
586
+ optional string user_status = 8;
587
+ optional uint32 finished_in_milliseconds = 9;
588
+ }
577
589
  message ActiveWageringUserBonus {
578
590
  int32 user_bonus_id = 1;
579
591
  string title = 2;
@@ -595,6 +607,7 @@ message GameConfigCheckResponse {
595
607
  bool is_mobile = 7;
596
608
  bool has_lobby = 8;
597
609
  repeated ActiveWageringUserBonus bonuses = 9;
610
+ repeated ActiveUserTournament tournaments = 10;
598
611
  }
599
612
  message InitGameSessionResponse {
600
613
  string game_url = 1;
package/game/game_pb.js CHANGED
@@ -21,6 +21,7 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.game.ActiveUserTournament', null, global);
24
25
  goog.exportSymbol('proto.game.ActiveWageringUserBonus', null, global);
25
26
  goog.exportSymbol('proto.game.CashBackListGamesItem', null, global);
26
27
  goog.exportSymbol('proto.game.CashBackListGamesRequest', null, global);
@@ -1681,6 +1682,27 @@ if (goog.DEBUG && !COMPILED) {
1681
1682
  */
1682
1683
  proto.game.GetGameConfigCheckRequest.displayName = 'proto.game.GetGameConfigCheckRequest';
1683
1684
  }
1685
+ /**
1686
+ * Generated by JsPbCodeGenerator.
1687
+ * @param {Array=} opt_data Optional initial data array, typically from a
1688
+ * server response, or constructed directly in Javascript. The array is used
1689
+ * in place and becomes part of the constructed object. It is not cloned.
1690
+ * If no data is provided, the constructed object will be empty, but still
1691
+ * valid.
1692
+ * @extends {jspb.Message}
1693
+ * @constructor
1694
+ */
1695
+ proto.game.ActiveUserTournament = function(opt_data) {
1696
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1697
+ };
1698
+ goog.inherits(proto.game.ActiveUserTournament, jspb.Message);
1699
+ if (goog.DEBUG && !COMPILED) {
1700
+ /**
1701
+ * @public
1702
+ * @override
1703
+ */
1704
+ proto.game.ActiveUserTournament.displayName = 'proto.game.ActiveUserTournament';
1705
+ }
1684
1706
  /**
1685
1707
  * Generated by JsPbCodeGenerator.
1686
1708
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -22915,7 +22937,8 @@ proto.game.InitGameSessionV2Request.toObject = function(includeInstance, msg) {
22915
22937
  language: jspb.Message.getFieldWithDefault(msg, 10, ""),
22916
22938
  userDevice: jspb.Message.getFieldWithDefault(msg, 11, ""),
22917
22939
  userSessionId: jspb.Message.getFieldWithDefault(msg, 12, ""),
22918
- userIp: jspb.Message.getFieldWithDefault(msg, 13, "")
22940
+ userIp: jspb.Message.getFieldWithDefault(msg, 13, ""),
22941
+ selectedTournamentId: jspb.Message.getFieldWithDefault(msg, 14, 0)
22919
22942
  };
22920
22943
 
22921
22944
  if (includeInstance) {
@@ -23004,6 +23027,10 @@ proto.game.InitGameSessionV2Request.deserializeBinaryFromReader = function(msg,
23004
23027
  var value = /** @type {string} */ (reader.readString());
23005
23028
  msg.setUserIp(value);
23006
23029
  break;
23030
+ case 14:
23031
+ var value = /** @type {number} */ (reader.readUint64());
23032
+ msg.setSelectedTournamentId(value);
23033
+ break;
23007
23034
  default:
23008
23035
  reader.skipField();
23009
23036
  break;
@@ -23124,6 +23151,13 @@ proto.game.InitGameSessionV2Request.serializeBinaryToWriter = function(message,
23124
23151
  f
23125
23152
  );
23126
23153
  }
23154
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
23155
+ if (f != null) {
23156
+ writer.writeUint64(
23157
+ 14,
23158
+ f
23159
+ );
23160
+ }
23127
23161
  };
23128
23162
 
23129
23163
 
@@ -23487,6 +23521,42 @@ proto.game.InitGameSessionV2Request.prototype.hasUserIp = function() {
23487
23521
  };
23488
23522
 
23489
23523
 
23524
+ /**
23525
+ * optional uint64 selected_tournament_id = 14;
23526
+ * @return {number}
23527
+ */
23528
+ proto.game.InitGameSessionV2Request.prototype.getSelectedTournamentId = function() {
23529
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
23530
+ };
23531
+
23532
+
23533
+ /**
23534
+ * @param {number} value
23535
+ * @return {!proto.game.InitGameSessionV2Request} returns this
23536
+ */
23537
+ proto.game.InitGameSessionV2Request.prototype.setSelectedTournamentId = function(value) {
23538
+ return jspb.Message.setField(this, 14, value);
23539
+ };
23540
+
23541
+
23542
+ /**
23543
+ * Clears the field making it undefined.
23544
+ * @return {!proto.game.InitGameSessionV2Request} returns this
23545
+ */
23546
+ proto.game.InitGameSessionV2Request.prototype.clearSelectedTournamentId = function() {
23547
+ return jspb.Message.setField(this, 14, undefined);
23548
+ };
23549
+
23550
+
23551
+ /**
23552
+ * Returns whether this field is set.
23553
+ * @return {boolean}
23554
+ */
23555
+ proto.game.InitGameSessionV2Request.prototype.hasSelectedTournamentId = function() {
23556
+ return jspb.Message.getField(this, 14) != null;
23557
+ };
23558
+
23559
+
23490
23560
 
23491
23561
 
23492
23562
 
@@ -24030,6 +24100,502 @@ proto.game.GetGameConfigCheckRequest.prototype.setUserId = function(value) {
24030
24100
 
24031
24101
 
24032
24102
 
24103
+
24104
+
24105
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24106
+ /**
24107
+ * Creates an object representation of this proto.
24108
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24109
+ * Optional fields that are not set will be set to undefined.
24110
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24111
+ * For the list of reserved names please see:
24112
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24113
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24114
+ * JSPB instance for transitional soy proto support:
24115
+ * http://goto/soy-param-migration
24116
+ * @return {!Object}
24117
+ */
24118
+ proto.game.ActiveUserTournament.prototype.toObject = function(opt_includeInstance) {
24119
+ return proto.game.ActiveUserTournament.toObject(opt_includeInstance, this);
24120
+ };
24121
+
24122
+
24123
+ /**
24124
+ * Static version of the {@see toObject} method.
24125
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24126
+ * the JSPB instance for transitional soy proto support:
24127
+ * http://goto/soy-param-migration
24128
+ * @param {!proto.game.ActiveUserTournament} msg The msg instance to transform.
24129
+ * @return {!Object}
24130
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24131
+ */
24132
+ proto.game.ActiveUserTournament.toObject = function(includeInstance, msg) {
24133
+ var f, obj = {
24134
+ tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
24135
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
24136
+ image: jspb.Message.getFieldWithDefault(msg, 3, ""),
24137
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 4, ""),
24138
+ slug: jspb.Message.getFieldWithDefault(msg, 5, ""),
24139
+ status: jspb.Message.getFieldWithDefault(msg, 6, ""),
24140
+ canActivated: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
24141
+ userStatus: jspb.Message.getFieldWithDefault(msg, 8, ""),
24142
+ finishedInMilliseconds: jspb.Message.getFieldWithDefault(msg, 9, 0)
24143
+ };
24144
+
24145
+ if (includeInstance) {
24146
+ obj.$jspbMessageInstance = msg;
24147
+ }
24148
+ return obj;
24149
+ };
24150
+ }
24151
+
24152
+
24153
+ /**
24154
+ * Deserializes binary data (in protobuf wire format).
24155
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24156
+ * @return {!proto.game.ActiveUserTournament}
24157
+ */
24158
+ proto.game.ActiveUserTournament.deserializeBinary = function(bytes) {
24159
+ var reader = new jspb.BinaryReader(bytes);
24160
+ var msg = new proto.game.ActiveUserTournament;
24161
+ return proto.game.ActiveUserTournament.deserializeBinaryFromReader(msg, reader);
24162
+ };
24163
+
24164
+
24165
+ /**
24166
+ * Deserializes binary data (in protobuf wire format) from the
24167
+ * given reader into the given message object.
24168
+ * @param {!proto.game.ActiveUserTournament} msg The message object to deserialize into.
24169
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24170
+ * @return {!proto.game.ActiveUserTournament}
24171
+ */
24172
+ proto.game.ActiveUserTournament.deserializeBinaryFromReader = function(msg, reader) {
24173
+ while (reader.nextField()) {
24174
+ if (reader.isEndGroup()) {
24175
+ break;
24176
+ }
24177
+ var field = reader.getFieldNumber();
24178
+ switch (field) {
24179
+ case 1:
24180
+ var value = /** @type {number} */ (reader.readInt32());
24181
+ msg.setTournamentId(value);
24182
+ break;
24183
+ case 2:
24184
+ var value = /** @type {string} */ (reader.readString());
24185
+ msg.setTitle(value);
24186
+ break;
24187
+ case 3:
24188
+ var value = /** @type {string} */ (reader.readString());
24189
+ msg.setImage(value);
24190
+ break;
24191
+ case 4:
24192
+ var value = /** @type {string} */ (reader.readString());
24193
+ msg.setImageCdn(value);
24194
+ break;
24195
+ case 5:
24196
+ var value = /** @type {string} */ (reader.readString());
24197
+ msg.setSlug(value);
24198
+ break;
24199
+ case 6:
24200
+ var value = /** @type {string} */ (reader.readString());
24201
+ msg.setStatus(value);
24202
+ break;
24203
+ case 7:
24204
+ var value = /** @type {boolean} */ (reader.readBool());
24205
+ msg.setCanActivated(value);
24206
+ break;
24207
+ case 8:
24208
+ var value = /** @type {string} */ (reader.readString());
24209
+ msg.setUserStatus(value);
24210
+ break;
24211
+ case 9:
24212
+ var value = /** @type {number} */ (reader.readUint32());
24213
+ msg.setFinishedInMilliseconds(value);
24214
+ break;
24215
+ default:
24216
+ reader.skipField();
24217
+ break;
24218
+ }
24219
+ }
24220
+ return msg;
24221
+ };
24222
+
24223
+
24224
+ /**
24225
+ * Serializes the message to binary data (in protobuf wire format).
24226
+ * @return {!Uint8Array}
24227
+ */
24228
+ proto.game.ActiveUserTournament.prototype.serializeBinary = function() {
24229
+ var writer = new jspb.BinaryWriter();
24230
+ proto.game.ActiveUserTournament.serializeBinaryToWriter(this, writer);
24231
+ return writer.getResultBuffer();
24232
+ };
24233
+
24234
+
24235
+ /**
24236
+ * Serializes the given message to binary data (in protobuf wire
24237
+ * format), writing to the given BinaryWriter.
24238
+ * @param {!proto.game.ActiveUserTournament} message
24239
+ * @param {!jspb.BinaryWriter} writer
24240
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24241
+ */
24242
+ proto.game.ActiveUserTournament.serializeBinaryToWriter = function(message, writer) {
24243
+ var f = undefined;
24244
+ f = message.getTournamentId();
24245
+ if (f !== 0) {
24246
+ writer.writeInt32(
24247
+ 1,
24248
+ f
24249
+ );
24250
+ }
24251
+ f = message.getTitle();
24252
+ if (f.length > 0) {
24253
+ writer.writeString(
24254
+ 2,
24255
+ f
24256
+ );
24257
+ }
24258
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
24259
+ if (f != null) {
24260
+ writer.writeString(
24261
+ 3,
24262
+ f
24263
+ );
24264
+ }
24265
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
24266
+ if (f != null) {
24267
+ writer.writeString(
24268
+ 4,
24269
+ f
24270
+ );
24271
+ }
24272
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
24273
+ if (f != null) {
24274
+ writer.writeString(
24275
+ 5,
24276
+ f
24277
+ );
24278
+ }
24279
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
24280
+ if (f != null) {
24281
+ writer.writeString(
24282
+ 6,
24283
+ f
24284
+ );
24285
+ }
24286
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 7));
24287
+ if (f != null) {
24288
+ writer.writeBool(
24289
+ 7,
24290
+ f
24291
+ );
24292
+ }
24293
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
24294
+ if (f != null) {
24295
+ writer.writeString(
24296
+ 8,
24297
+ f
24298
+ );
24299
+ }
24300
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
24301
+ if (f != null) {
24302
+ writer.writeUint32(
24303
+ 9,
24304
+ f
24305
+ );
24306
+ }
24307
+ };
24308
+
24309
+
24310
+ /**
24311
+ * optional int32 tournament_id = 1;
24312
+ * @return {number}
24313
+ */
24314
+ proto.game.ActiveUserTournament.prototype.getTournamentId = function() {
24315
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24316
+ };
24317
+
24318
+
24319
+ /**
24320
+ * @param {number} value
24321
+ * @return {!proto.game.ActiveUserTournament} returns this
24322
+ */
24323
+ proto.game.ActiveUserTournament.prototype.setTournamentId = function(value) {
24324
+ return jspb.Message.setProto3IntField(this, 1, value);
24325
+ };
24326
+
24327
+
24328
+ /**
24329
+ * optional string title = 2;
24330
+ * @return {string}
24331
+ */
24332
+ proto.game.ActiveUserTournament.prototype.getTitle = function() {
24333
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24334
+ };
24335
+
24336
+
24337
+ /**
24338
+ * @param {string} value
24339
+ * @return {!proto.game.ActiveUserTournament} returns this
24340
+ */
24341
+ proto.game.ActiveUserTournament.prototype.setTitle = function(value) {
24342
+ return jspb.Message.setProto3StringField(this, 2, value);
24343
+ };
24344
+
24345
+
24346
+ /**
24347
+ * optional string image = 3;
24348
+ * @return {string}
24349
+ */
24350
+ proto.game.ActiveUserTournament.prototype.getImage = function() {
24351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24352
+ };
24353
+
24354
+
24355
+ /**
24356
+ * @param {string} value
24357
+ * @return {!proto.game.ActiveUserTournament} returns this
24358
+ */
24359
+ proto.game.ActiveUserTournament.prototype.setImage = function(value) {
24360
+ return jspb.Message.setField(this, 3, value);
24361
+ };
24362
+
24363
+
24364
+ /**
24365
+ * Clears the field making it undefined.
24366
+ * @return {!proto.game.ActiveUserTournament} returns this
24367
+ */
24368
+ proto.game.ActiveUserTournament.prototype.clearImage = function() {
24369
+ return jspb.Message.setField(this, 3, undefined);
24370
+ };
24371
+
24372
+
24373
+ /**
24374
+ * Returns whether this field is set.
24375
+ * @return {boolean}
24376
+ */
24377
+ proto.game.ActiveUserTournament.prototype.hasImage = function() {
24378
+ return jspb.Message.getField(this, 3) != null;
24379
+ };
24380
+
24381
+
24382
+ /**
24383
+ * optional string image_cdn = 4;
24384
+ * @return {string}
24385
+ */
24386
+ proto.game.ActiveUserTournament.prototype.getImageCdn = function() {
24387
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
24388
+ };
24389
+
24390
+
24391
+ /**
24392
+ * @param {string} value
24393
+ * @return {!proto.game.ActiveUserTournament} returns this
24394
+ */
24395
+ proto.game.ActiveUserTournament.prototype.setImageCdn = function(value) {
24396
+ return jspb.Message.setField(this, 4, value);
24397
+ };
24398
+
24399
+
24400
+ /**
24401
+ * Clears the field making it undefined.
24402
+ * @return {!proto.game.ActiveUserTournament} returns this
24403
+ */
24404
+ proto.game.ActiveUserTournament.prototype.clearImageCdn = function() {
24405
+ return jspb.Message.setField(this, 4, undefined);
24406
+ };
24407
+
24408
+
24409
+ /**
24410
+ * Returns whether this field is set.
24411
+ * @return {boolean}
24412
+ */
24413
+ proto.game.ActiveUserTournament.prototype.hasImageCdn = function() {
24414
+ return jspb.Message.getField(this, 4) != null;
24415
+ };
24416
+
24417
+
24418
+ /**
24419
+ * optional string slug = 5;
24420
+ * @return {string}
24421
+ */
24422
+ proto.game.ActiveUserTournament.prototype.getSlug = function() {
24423
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
24424
+ };
24425
+
24426
+
24427
+ /**
24428
+ * @param {string} value
24429
+ * @return {!proto.game.ActiveUserTournament} returns this
24430
+ */
24431
+ proto.game.ActiveUserTournament.prototype.setSlug = function(value) {
24432
+ return jspb.Message.setField(this, 5, value);
24433
+ };
24434
+
24435
+
24436
+ /**
24437
+ * Clears the field making it undefined.
24438
+ * @return {!proto.game.ActiveUserTournament} returns this
24439
+ */
24440
+ proto.game.ActiveUserTournament.prototype.clearSlug = function() {
24441
+ return jspb.Message.setField(this, 5, undefined);
24442
+ };
24443
+
24444
+
24445
+ /**
24446
+ * Returns whether this field is set.
24447
+ * @return {boolean}
24448
+ */
24449
+ proto.game.ActiveUserTournament.prototype.hasSlug = function() {
24450
+ return jspb.Message.getField(this, 5) != null;
24451
+ };
24452
+
24453
+
24454
+ /**
24455
+ * optional string status = 6;
24456
+ * @return {string}
24457
+ */
24458
+ proto.game.ActiveUserTournament.prototype.getStatus = function() {
24459
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
24460
+ };
24461
+
24462
+
24463
+ /**
24464
+ * @param {string} value
24465
+ * @return {!proto.game.ActiveUserTournament} returns this
24466
+ */
24467
+ proto.game.ActiveUserTournament.prototype.setStatus = function(value) {
24468
+ return jspb.Message.setField(this, 6, value);
24469
+ };
24470
+
24471
+
24472
+ /**
24473
+ * Clears the field making it undefined.
24474
+ * @return {!proto.game.ActiveUserTournament} returns this
24475
+ */
24476
+ proto.game.ActiveUserTournament.prototype.clearStatus = function() {
24477
+ return jspb.Message.setField(this, 6, undefined);
24478
+ };
24479
+
24480
+
24481
+ /**
24482
+ * Returns whether this field is set.
24483
+ * @return {boolean}
24484
+ */
24485
+ proto.game.ActiveUserTournament.prototype.hasStatus = function() {
24486
+ return jspb.Message.getField(this, 6) != null;
24487
+ };
24488
+
24489
+
24490
+ /**
24491
+ * optional bool can_activated = 7;
24492
+ * @return {boolean}
24493
+ */
24494
+ proto.game.ActiveUserTournament.prototype.getCanActivated = function() {
24495
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
24496
+ };
24497
+
24498
+
24499
+ /**
24500
+ * @param {boolean} value
24501
+ * @return {!proto.game.ActiveUserTournament} returns this
24502
+ */
24503
+ proto.game.ActiveUserTournament.prototype.setCanActivated = function(value) {
24504
+ return jspb.Message.setField(this, 7, value);
24505
+ };
24506
+
24507
+
24508
+ /**
24509
+ * Clears the field making it undefined.
24510
+ * @return {!proto.game.ActiveUserTournament} returns this
24511
+ */
24512
+ proto.game.ActiveUserTournament.prototype.clearCanActivated = function() {
24513
+ return jspb.Message.setField(this, 7, undefined);
24514
+ };
24515
+
24516
+
24517
+ /**
24518
+ * Returns whether this field is set.
24519
+ * @return {boolean}
24520
+ */
24521
+ proto.game.ActiveUserTournament.prototype.hasCanActivated = function() {
24522
+ return jspb.Message.getField(this, 7) != null;
24523
+ };
24524
+
24525
+
24526
+ /**
24527
+ * optional string user_status = 8;
24528
+ * @return {string}
24529
+ */
24530
+ proto.game.ActiveUserTournament.prototype.getUserStatus = function() {
24531
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
24532
+ };
24533
+
24534
+
24535
+ /**
24536
+ * @param {string} value
24537
+ * @return {!proto.game.ActiveUserTournament} returns this
24538
+ */
24539
+ proto.game.ActiveUserTournament.prototype.setUserStatus = function(value) {
24540
+ return jspb.Message.setField(this, 8, value);
24541
+ };
24542
+
24543
+
24544
+ /**
24545
+ * Clears the field making it undefined.
24546
+ * @return {!proto.game.ActiveUserTournament} returns this
24547
+ */
24548
+ proto.game.ActiveUserTournament.prototype.clearUserStatus = function() {
24549
+ return jspb.Message.setField(this, 8, undefined);
24550
+ };
24551
+
24552
+
24553
+ /**
24554
+ * Returns whether this field is set.
24555
+ * @return {boolean}
24556
+ */
24557
+ proto.game.ActiveUserTournament.prototype.hasUserStatus = function() {
24558
+ return jspb.Message.getField(this, 8) != null;
24559
+ };
24560
+
24561
+
24562
+ /**
24563
+ * optional uint32 finished_in_milliseconds = 9;
24564
+ * @return {number}
24565
+ */
24566
+ proto.game.ActiveUserTournament.prototype.getFinishedInMilliseconds = function() {
24567
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
24568
+ };
24569
+
24570
+
24571
+ /**
24572
+ * @param {number} value
24573
+ * @return {!proto.game.ActiveUserTournament} returns this
24574
+ */
24575
+ proto.game.ActiveUserTournament.prototype.setFinishedInMilliseconds = function(value) {
24576
+ return jspb.Message.setField(this, 9, value);
24577
+ };
24578
+
24579
+
24580
+ /**
24581
+ * Clears the field making it undefined.
24582
+ * @return {!proto.game.ActiveUserTournament} returns this
24583
+ */
24584
+ proto.game.ActiveUserTournament.prototype.clearFinishedInMilliseconds = function() {
24585
+ return jspb.Message.setField(this, 9, undefined);
24586
+ };
24587
+
24588
+
24589
+ /**
24590
+ * Returns whether this field is set.
24591
+ * @return {boolean}
24592
+ */
24593
+ proto.game.ActiveUserTournament.prototype.hasFinishedInMilliseconds = function() {
24594
+ return jspb.Message.getField(this, 9) != null;
24595
+ };
24596
+
24597
+
24598
+
24033
24599
  /**
24034
24600
  * List of repeated fields within this message type.
24035
24601
  * @private {!Array<number>}
@@ -24431,7 +24997,7 @@ proto.game.ActiveWageringUserBonus.prototype.setWagerGamesListId = function(valu
24431
24997
  * @private {!Array<number>}
24432
24998
  * @const
24433
24999
  */
24434
- proto.game.GameConfigCheckResponse.repeatedFields_ = [9];
25000
+ proto.game.GameConfigCheckResponse.repeatedFields_ = [9,10];
24435
25001
 
24436
25002
 
24437
25003
 
@@ -24473,7 +25039,9 @@ proto.game.GameConfigCheckResponse.toObject = function(includeInstance, msg) {
24473
25039
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
24474
25040
  hasLobby: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
24475
25041
  bonusesList: jspb.Message.toObjectList(msg.getBonusesList(),
24476
- proto.game.ActiveWageringUserBonus.toObject, includeInstance)
25042
+ proto.game.ActiveWageringUserBonus.toObject, includeInstance),
25043
+ tournamentsList: jspb.Message.toObjectList(msg.getTournamentsList(),
25044
+ proto.game.ActiveUserTournament.toObject, includeInstance)
24477
25045
  };
24478
25046
 
24479
25047
  if (includeInstance) {
@@ -24547,6 +25115,11 @@ proto.game.GameConfigCheckResponse.deserializeBinaryFromReader = function(msg, r
24547
25115
  reader.readMessage(value,proto.game.ActiveWageringUserBonus.deserializeBinaryFromReader);
24548
25116
  msg.addBonuses(value);
24549
25117
  break;
25118
+ case 10:
25119
+ var value = new proto.game.ActiveUserTournament;
25120
+ reader.readMessage(value,proto.game.ActiveUserTournament.deserializeBinaryFromReader);
25121
+ msg.addTournaments(value);
25122
+ break;
24550
25123
  default:
24551
25124
  reader.skipField();
24552
25125
  break;
@@ -24640,6 +25213,14 @@ proto.game.GameConfigCheckResponse.serializeBinaryToWriter = function(message, w
24640
25213
  proto.game.ActiveWageringUserBonus.serializeBinaryToWriter
24641
25214
  );
24642
25215
  }
25216
+ f = message.getTournamentsList();
25217
+ if (f.length > 0) {
25218
+ writer.writeRepeatedMessage(
25219
+ 10,
25220
+ f,
25221
+ proto.game.ActiveUserTournament.serializeBinaryToWriter
25222
+ );
25223
+ }
24643
25224
  };
24644
25225
 
24645
25226
 
@@ -24825,6 +25406,44 @@ proto.game.GameConfigCheckResponse.prototype.clearBonusesList = function() {
24825
25406
  };
24826
25407
 
24827
25408
 
25409
+ /**
25410
+ * repeated ActiveUserTournament tournaments = 10;
25411
+ * @return {!Array<!proto.game.ActiveUserTournament>}
25412
+ */
25413
+ proto.game.GameConfigCheckResponse.prototype.getTournamentsList = function() {
25414
+ return /** @type{!Array<!proto.game.ActiveUserTournament>} */ (
25415
+ jspb.Message.getRepeatedWrapperField(this, proto.game.ActiveUserTournament, 10));
25416
+ };
25417
+
25418
+
25419
+ /**
25420
+ * @param {!Array<!proto.game.ActiveUserTournament>} value
25421
+ * @return {!proto.game.GameConfigCheckResponse} returns this
25422
+ */
25423
+ proto.game.GameConfigCheckResponse.prototype.setTournamentsList = function(value) {
25424
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
25425
+ };
25426
+
25427
+
25428
+ /**
25429
+ * @param {!proto.game.ActiveUserTournament=} opt_value
25430
+ * @param {number=} opt_index
25431
+ * @return {!proto.game.ActiveUserTournament}
25432
+ */
25433
+ proto.game.GameConfigCheckResponse.prototype.addTournaments = function(opt_value, opt_index) {
25434
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.game.ActiveUserTournament, opt_index);
25435
+ };
25436
+
25437
+
25438
+ /**
25439
+ * Clears the list making it empty but non-null.
25440
+ * @return {!proto.game.GameConfigCheckResponse} returns this
25441
+ */
25442
+ proto.game.GameConfigCheckResponse.prototype.clearTournamentsList = function() {
25443
+ return this.setTournamentsList([]);
25444
+ };
25445
+
25446
+
24828
25447
 
24829
25448
 
24830
25449
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.239",
3
+ "version": "1.2.240",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,6 +22,7 @@ service Tournament {
22
22
  rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
23
23
  rpc getTournamentsForUser(PaginationRequest) returns (UserTournamentItemsResponse);
24
24
  rpc getSingleTournamentForUser(UserTournamentRequest) returns (UserTournamentItem);
25
+ rpc getActiveUserTournaments(ActiveUserTournamentsRequest) returns (UserTournamentItemsResponse);
25
26
  rpc attachUserToTournament(UserTournamentRequest) returns (TournamentStatusResponse);
26
27
  }
27
28
  //Technical
@@ -212,3 +213,9 @@ message UserTournamentRequest {
212
213
  optional int32 user_id = 4;
213
214
  optional int32 tournament_id = 5;
214
215
  }
216
+ message ActiveUserTournamentsRequest {
217
+ int32 user_id = 1;
218
+ repeated int32 tournament_ids = 2;
219
+ optional string currency = 3;
220
+ optional string locale = 4;
221
+ }
@@ -4,6 +4,17 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var tournament_pb = require('./tournament_pb.js');
6
6
 
7
+ function serialize_tournament_ActiveUserTournamentsRequest(arg) {
8
+ if (!(arg instanceof tournament_pb.ActiveUserTournamentsRequest)) {
9
+ throw new Error('Expected argument of type tournament.ActiveUserTournamentsRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_tournament_ActiveUserTournamentsRequest(buffer_arg) {
15
+ return tournament_pb.ActiveUserTournamentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
7
18
  function serialize_tournament_File(arg) {
8
19
  if (!(arg instanceof tournament_pb.File)) {
9
20
  throw new Error('Expected argument of type tournament.File');
@@ -415,6 +426,17 @@ readListTournamentStatuses: {
415
426
  responseSerialize: serialize_tournament_UserTournamentItem,
416
427
  responseDeserialize: deserialize_tournament_UserTournamentItem,
417
428
  },
429
+ getActiveUserTournaments: {
430
+ path: '/tournament.Tournament/getActiveUserTournaments',
431
+ requestStream: false,
432
+ responseStream: false,
433
+ requestType: tournament_pb.ActiveUserTournamentsRequest,
434
+ responseType: tournament_pb.UserTournamentItemsResponse,
435
+ requestSerialize: serialize_tournament_ActiveUserTournamentsRequest,
436
+ requestDeserialize: deserialize_tournament_ActiveUserTournamentsRequest,
437
+ responseSerialize: serialize_tournament_UserTournamentItemsResponse,
438
+ responseDeserialize: deserialize_tournament_UserTournamentItemsResponse,
439
+ },
418
440
  attachUserToTournament: {
419
441
  path: '/tournament.Tournament/attachUserToTournament',
420
442
  requestStream: false,
@@ -22,6 +22,7 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.tournament.ActivationRuleItem', null, global);
25
+ goog.exportSymbol('proto.tournament.ActiveUserTournamentsRequest', null, global);
25
26
  goog.exportSymbol('proto.tournament.ContentItem', null, global);
26
27
  goog.exportSymbol('proto.tournament.File', null, global);
27
28
  goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
@@ -660,6 +661,27 @@ if (goog.DEBUG && !COMPILED) {
660
661
  */
661
662
  proto.tournament.UserTournamentRequest.displayName = 'proto.tournament.UserTournamentRequest';
662
663
  }
664
+ /**
665
+ * Generated by JsPbCodeGenerator.
666
+ * @param {Array=} opt_data Optional initial data array, typically from a
667
+ * server response, or constructed directly in Javascript. The array is used
668
+ * in place and becomes part of the constructed object. It is not cloned.
669
+ * If no data is provided, the constructed object will be empty, but still
670
+ * valid.
671
+ * @extends {jspb.Message}
672
+ * @constructor
673
+ */
674
+ proto.tournament.ActiveUserTournamentsRequest = function(opt_data) {
675
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.ActiveUserTournamentsRequest.repeatedFields_, null);
676
+ };
677
+ goog.inherits(proto.tournament.ActiveUserTournamentsRequest, jspb.Message);
678
+ if (goog.DEBUG && !COMPILED) {
679
+ /**
680
+ * @public
681
+ * @override
682
+ */
683
+ proto.tournament.ActiveUserTournamentsRequest.displayName = 'proto.tournament.ActiveUserTournamentsRequest';
684
+ }
663
685
 
664
686
 
665
687
 
@@ -9862,4 +9884,288 @@ proto.tournament.UserTournamentRequest.prototype.hasTournamentId = function() {
9862
9884
  };
9863
9885
 
9864
9886
 
9887
+
9888
+ /**
9889
+ * List of repeated fields within this message type.
9890
+ * @private {!Array<number>}
9891
+ * @const
9892
+ */
9893
+ proto.tournament.ActiveUserTournamentsRequest.repeatedFields_ = [2];
9894
+
9895
+
9896
+
9897
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9898
+ /**
9899
+ * Creates an object representation of this proto.
9900
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9901
+ * Optional fields that are not set will be set to undefined.
9902
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9903
+ * For the list of reserved names please see:
9904
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9905
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9906
+ * JSPB instance for transitional soy proto support:
9907
+ * http://goto/soy-param-migration
9908
+ * @return {!Object}
9909
+ */
9910
+ proto.tournament.ActiveUserTournamentsRequest.prototype.toObject = function(opt_includeInstance) {
9911
+ return proto.tournament.ActiveUserTournamentsRequest.toObject(opt_includeInstance, this);
9912
+ };
9913
+
9914
+
9915
+ /**
9916
+ * Static version of the {@see toObject} method.
9917
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9918
+ * the JSPB instance for transitional soy proto support:
9919
+ * http://goto/soy-param-migration
9920
+ * @param {!proto.tournament.ActiveUserTournamentsRequest} msg The msg instance to transform.
9921
+ * @return {!Object}
9922
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9923
+ */
9924
+ proto.tournament.ActiveUserTournamentsRequest.toObject = function(includeInstance, msg) {
9925
+ var f, obj = {
9926
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
9927
+ tournamentIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
9928
+ currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
9929
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
9930
+ };
9931
+
9932
+ if (includeInstance) {
9933
+ obj.$jspbMessageInstance = msg;
9934
+ }
9935
+ return obj;
9936
+ };
9937
+ }
9938
+
9939
+
9940
+ /**
9941
+ * Deserializes binary data (in protobuf wire format).
9942
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9943
+ * @return {!proto.tournament.ActiveUserTournamentsRequest}
9944
+ */
9945
+ proto.tournament.ActiveUserTournamentsRequest.deserializeBinary = function(bytes) {
9946
+ var reader = new jspb.BinaryReader(bytes);
9947
+ var msg = new proto.tournament.ActiveUserTournamentsRequest;
9948
+ return proto.tournament.ActiveUserTournamentsRequest.deserializeBinaryFromReader(msg, reader);
9949
+ };
9950
+
9951
+
9952
+ /**
9953
+ * Deserializes binary data (in protobuf wire format) from the
9954
+ * given reader into the given message object.
9955
+ * @param {!proto.tournament.ActiveUserTournamentsRequest} msg The message object to deserialize into.
9956
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9957
+ * @return {!proto.tournament.ActiveUserTournamentsRequest}
9958
+ */
9959
+ proto.tournament.ActiveUserTournamentsRequest.deserializeBinaryFromReader = function(msg, reader) {
9960
+ while (reader.nextField()) {
9961
+ if (reader.isEndGroup()) {
9962
+ break;
9963
+ }
9964
+ var field = reader.getFieldNumber();
9965
+ switch (field) {
9966
+ case 1:
9967
+ var value = /** @type {number} */ (reader.readInt32());
9968
+ msg.setUserId(value);
9969
+ break;
9970
+ case 2:
9971
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
9972
+ for (var i = 0; i < values.length; i++) {
9973
+ msg.addTournamentIds(values[i]);
9974
+ }
9975
+ break;
9976
+ case 3:
9977
+ var value = /** @type {string} */ (reader.readString());
9978
+ msg.setCurrency(value);
9979
+ break;
9980
+ case 4:
9981
+ var value = /** @type {string} */ (reader.readString());
9982
+ msg.setLocale(value);
9983
+ break;
9984
+ default:
9985
+ reader.skipField();
9986
+ break;
9987
+ }
9988
+ }
9989
+ return msg;
9990
+ };
9991
+
9992
+
9993
+ /**
9994
+ * Serializes the message to binary data (in protobuf wire format).
9995
+ * @return {!Uint8Array}
9996
+ */
9997
+ proto.tournament.ActiveUserTournamentsRequest.prototype.serializeBinary = function() {
9998
+ var writer = new jspb.BinaryWriter();
9999
+ proto.tournament.ActiveUserTournamentsRequest.serializeBinaryToWriter(this, writer);
10000
+ return writer.getResultBuffer();
10001
+ };
10002
+
10003
+
10004
+ /**
10005
+ * Serializes the given message to binary data (in protobuf wire
10006
+ * format), writing to the given BinaryWriter.
10007
+ * @param {!proto.tournament.ActiveUserTournamentsRequest} message
10008
+ * @param {!jspb.BinaryWriter} writer
10009
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10010
+ */
10011
+ proto.tournament.ActiveUserTournamentsRequest.serializeBinaryToWriter = function(message, writer) {
10012
+ var f = undefined;
10013
+ f = message.getUserId();
10014
+ if (f !== 0) {
10015
+ writer.writeInt32(
10016
+ 1,
10017
+ f
10018
+ );
10019
+ }
10020
+ f = message.getTournamentIdsList();
10021
+ if (f.length > 0) {
10022
+ writer.writePackedInt32(
10023
+ 2,
10024
+ f
10025
+ );
10026
+ }
10027
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
10028
+ if (f != null) {
10029
+ writer.writeString(
10030
+ 3,
10031
+ f
10032
+ );
10033
+ }
10034
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
10035
+ if (f != null) {
10036
+ writer.writeString(
10037
+ 4,
10038
+ f
10039
+ );
10040
+ }
10041
+ };
10042
+
10043
+
10044
+ /**
10045
+ * optional int32 user_id = 1;
10046
+ * @return {number}
10047
+ */
10048
+ proto.tournament.ActiveUserTournamentsRequest.prototype.getUserId = function() {
10049
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10050
+ };
10051
+
10052
+
10053
+ /**
10054
+ * @param {number} value
10055
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10056
+ */
10057
+ proto.tournament.ActiveUserTournamentsRequest.prototype.setUserId = function(value) {
10058
+ return jspb.Message.setProto3IntField(this, 1, value);
10059
+ };
10060
+
10061
+
10062
+ /**
10063
+ * repeated int32 tournament_ids = 2;
10064
+ * @return {!Array<number>}
10065
+ */
10066
+ proto.tournament.ActiveUserTournamentsRequest.prototype.getTournamentIdsList = function() {
10067
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
10068
+ };
10069
+
10070
+
10071
+ /**
10072
+ * @param {!Array<number>} value
10073
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10074
+ */
10075
+ proto.tournament.ActiveUserTournamentsRequest.prototype.setTournamentIdsList = function(value) {
10076
+ return jspb.Message.setField(this, 2, value || []);
10077
+ };
10078
+
10079
+
10080
+ /**
10081
+ * @param {number} value
10082
+ * @param {number=} opt_index
10083
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10084
+ */
10085
+ proto.tournament.ActiveUserTournamentsRequest.prototype.addTournamentIds = function(value, opt_index) {
10086
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
10087
+ };
10088
+
10089
+
10090
+ /**
10091
+ * Clears the list making it empty but non-null.
10092
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10093
+ */
10094
+ proto.tournament.ActiveUserTournamentsRequest.prototype.clearTournamentIdsList = function() {
10095
+ return this.setTournamentIdsList([]);
10096
+ };
10097
+
10098
+
10099
+ /**
10100
+ * optional string currency = 3;
10101
+ * @return {string}
10102
+ */
10103
+ proto.tournament.ActiveUserTournamentsRequest.prototype.getCurrency = function() {
10104
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10105
+ };
10106
+
10107
+
10108
+ /**
10109
+ * @param {string} value
10110
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10111
+ */
10112
+ proto.tournament.ActiveUserTournamentsRequest.prototype.setCurrency = function(value) {
10113
+ return jspb.Message.setField(this, 3, value);
10114
+ };
10115
+
10116
+
10117
+ /**
10118
+ * Clears the field making it undefined.
10119
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10120
+ */
10121
+ proto.tournament.ActiveUserTournamentsRequest.prototype.clearCurrency = function() {
10122
+ return jspb.Message.setField(this, 3, undefined);
10123
+ };
10124
+
10125
+
10126
+ /**
10127
+ * Returns whether this field is set.
10128
+ * @return {boolean}
10129
+ */
10130
+ proto.tournament.ActiveUserTournamentsRequest.prototype.hasCurrency = function() {
10131
+ return jspb.Message.getField(this, 3) != null;
10132
+ };
10133
+
10134
+
10135
+ /**
10136
+ * optional string locale = 4;
10137
+ * @return {string}
10138
+ */
10139
+ proto.tournament.ActiveUserTournamentsRequest.prototype.getLocale = function() {
10140
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
10141
+ };
10142
+
10143
+
10144
+ /**
10145
+ * @param {string} value
10146
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10147
+ */
10148
+ proto.tournament.ActiveUserTournamentsRequest.prototype.setLocale = function(value) {
10149
+ return jspb.Message.setField(this, 4, value);
10150
+ };
10151
+
10152
+
10153
+ /**
10154
+ * Clears the field making it undefined.
10155
+ * @return {!proto.tournament.ActiveUserTournamentsRequest} returns this
10156
+ */
10157
+ proto.tournament.ActiveUserTournamentsRequest.prototype.clearLocale = function() {
10158
+ return jspb.Message.setField(this, 4, undefined);
10159
+ };
10160
+
10161
+
10162
+ /**
10163
+ * Returns whether this field is set.
10164
+ * @return {boolean}
10165
+ */
10166
+ proto.tournament.ActiveUserTournamentsRequest.prototype.hasLocale = function() {
10167
+ return jspb.Message.getField(this, 4) != null;
10168
+ };
10169
+
10170
+
9865
10171
  goog.object.extend(exports, proto.tournament);