protobuf-platform 1.0.216 → 1.0.217

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
@@ -369,13 +369,14 @@ message GameGeo {
369
369
  bool is_accepted = 2;
370
370
  }
371
371
  message GamesBunchRequest {
372
- optional int32 is_active = 1;
373
- optional int32 is_deactivated = 2;
374
- optional int32 is_mobile = 3;
375
- optional int32 is_top = 4;
376
- optional int32 is_vip = 5;
377
- optional int32 has_demo = 6;
378
- optional int32 has_free_spins = 7;
372
+ repeated int32 game_ids = 1;
373
+ optional int32 is_active = 2;
374
+ optional int32 is_deactivated = 3;
375
+ optional int32 is_mobile = 4;
376
+ optional int32 is_top = 5;
377
+ optional int32 is_vip = 6;
378
+ optional int32 has_demo = 7;
379
+ optional int32 has_free_spins = 8;
379
380
  }
380
381
  //Game CRUD | Responses
381
382
  message GameResponse {
package/game/game_pb.js CHANGED
@@ -1191,7 +1191,7 @@ if (goog.DEBUG && !COMPILED) {
1191
1191
  * @constructor
1192
1192
  */
1193
1193
  proto.game.GamesBunchRequest = function(opt_data) {
1194
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1194
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GamesBunchRequest.repeatedFields_, null);
1195
1195
  };
1196
1196
  goog.inherits(proto.game.GamesBunchRequest, jspb.Message);
1197
1197
  if (goog.DEBUG && !COMPILED) {
@@ -15270,6 +15270,13 @@ proto.game.GameGeo.prototype.setIsAccepted = function(value) {
15270
15270
 
15271
15271
 
15272
15272
 
15273
+ /**
15274
+ * List of repeated fields within this message type.
15275
+ * @private {!Array<number>}
15276
+ * @const
15277
+ */
15278
+ proto.game.GamesBunchRequest.repeatedFields_ = [1];
15279
+
15273
15280
 
15274
15281
 
15275
15282
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -15301,13 +15308,14 @@ proto.game.GamesBunchRequest.prototype.toObject = function(opt_includeInstance)
15301
15308
  */
15302
15309
  proto.game.GamesBunchRequest.toObject = function(includeInstance, msg) {
15303
15310
  var f, obj = {
15304
- isActive: jspb.Message.getFieldWithDefault(msg, 1, 0),
15305
- isDeactivated: jspb.Message.getFieldWithDefault(msg, 2, 0),
15306
- isMobile: jspb.Message.getFieldWithDefault(msg, 3, 0),
15307
- isTop: jspb.Message.getFieldWithDefault(msg, 4, 0),
15308
- isVip: jspb.Message.getFieldWithDefault(msg, 5, 0),
15309
- hasDemo: jspb.Message.getFieldWithDefault(msg, 6, 0),
15310
- hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 7, 0)
15311
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
15312
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
15313
+ isDeactivated: jspb.Message.getFieldWithDefault(msg, 3, 0),
15314
+ isMobile: jspb.Message.getFieldWithDefault(msg, 4, 0),
15315
+ isTop: jspb.Message.getFieldWithDefault(msg, 5, 0),
15316
+ isVip: jspb.Message.getFieldWithDefault(msg, 6, 0),
15317
+ hasDemo: jspb.Message.getFieldWithDefault(msg, 7, 0),
15318
+ hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 8, 0)
15311
15319
  };
15312
15320
 
15313
15321
  if (includeInstance) {
@@ -15345,30 +15353,36 @@ proto.game.GamesBunchRequest.deserializeBinaryFromReader = function(msg, reader)
15345
15353
  var field = reader.getFieldNumber();
15346
15354
  switch (field) {
15347
15355
  case 1:
15356
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
15357
+ for (var i = 0; i < values.length; i++) {
15358
+ msg.addGameIds(values[i]);
15359
+ }
15360
+ break;
15361
+ case 2:
15348
15362
  var value = /** @type {number} */ (reader.readInt32());
15349
15363
  msg.setIsActive(value);
15350
15364
  break;
15351
- case 2:
15365
+ case 3:
15352
15366
  var value = /** @type {number} */ (reader.readInt32());
15353
15367
  msg.setIsDeactivated(value);
15354
15368
  break;
15355
- case 3:
15369
+ case 4:
15356
15370
  var value = /** @type {number} */ (reader.readInt32());
15357
15371
  msg.setIsMobile(value);
15358
15372
  break;
15359
- case 4:
15373
+ case 5:
15360
15374
  var value = /** @type {number} */ (reader.readInt32());
15361
15375
  msg.setIsTop(value);
15362
15376
  break;
15363
- case 5:
15377
+ case 6:
15364
15378
  var value = /** @type {number} */ (reader.readInt32());
15365
15379
  msg.setIsVip(value);
15366
15380
  break;
15367
- case 6:
15381
+ case 7:
15368
15382
  var value = /** @type {number} */ (reader.readInt32());
15369
15383
  msg.setHasDemo(value);
15370
15384
  break;
15371
- case 7:
15385
+ case 8:
15372
15386
  var value = /** @type {number} */ (reader.readInt32());
15373
15387
  msg.setHasFreeSpins(value);
15374
15388
  break;
@@ -15401,9 +15415,9 @@ proto.game.GamesBunchRequest.prototype.serializeBinary = function() {
15401
15415
  */
15402
15416
  proto.game.GamesBunchRequest.serializeBinaryToWriter = function(message, writer) {
15403
15417
  var f = undefined;
15404
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
15405
- if (f != null) {
15406
- writer.writeInt32(
15418
+ f = message.getGameIdsList();
15419
+ if (f.length > 0) {
15420
+ writer.writePackedInt32(
15407
15421
  1,
15408
15422
  f
15409
15423
  );
@@ -15450,15 +15464,59 @@ proto.game.GamesBunchRequest.serializeBinaryToWriter = function(message, writer)
15450
15464
  f
15451
15465
  );
15452
15466
  }
15467
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
15468
+ if (f != null) {
15469
+ writer.writeInt32(
15470
+ 8,
15471
+ f
15472
+ );
15473
+ }
15453
15474
  };
15454
15475
 
15455
15476
 
15456
15477
  /**
15457
- * optional int32 is_active = 1;
15478
+ * repeated int32 game_ids = 1;
15479
+ * @return {!Array<number>}
15480
+ */
15481
+ proto.game.GamesBunchRequest.prototype.getGameIdsList = function() {
15482
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
15483
+ };
15484
+
15485
+
15486
+ /**
15487
+ * @param {!Array<number>} value
15488
+ * @return {!proto.game.GamesBunchRequest} returns this
15489
+ */
15490
+ proto.game.GamesBunchRequest.prototype.setGameIdsList = function(value) {
15491
+ return jspb.Message.setField(this, 1, value || []);
15492
+ };
15493
+
15494
+
15495
+ /**
15496
+ * @param {number} value
15497
+ * @param {number=} opt_index
15498
+ * @return {!proto.game.GamesBunchRequest} returns this
15499
+ */
15500
+ proto.game.GamesBunchRequest.prototype.addGameIds = function(value, opt_index) {
15501
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
15502
+ };
15503
+
15504
+
15505
+ /**
15506
+ * Clears the list making it empty but non-null.
15507
+ * @return {!proto.game.GamesBunchRequest} returns this
15508
+ */
15509
+ proto.game.GamesBunchRequest.prototype.clearGameIdsList = function() {
15510
+ return this.setGameIdsList([]);
15511
+ };
15512
+
15513
+
15514
+ /**
15515
+ * optional int32 is_active = 2;
15458
15516
  * @return {number}
15459
15517
  */
15460
15518
  proto.game.GamesBunchRequest.prototype.getIsActive = function() {
15461
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15519
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15462
15520
  };
15463
15521
 
15464
15522
 
@@ -15467,7 +15525,7 @@ proto.game.GamesBunchRequest.prototype.getIsActive = function() {
15467
15525
  * @return {!proto.game.GamesBunchRequest} returns this
15468
15526
  */
15469
15527
  proto.game.GamesBunchRequest.prototype.setIsActive = function(value) {
15470
- return jspb.Message.setField(this, 1, value);
15528
+ return jspb.Message.setField(this, 2, value);
15471
15529
  };
15472
15530
 
15473
15531
 
@@ -15476,7 +15534,7 @@ proto.game.GamesBunchRequest.prototype.setIsActive = function(value) {
15476
15534
  * @return {!proto.game.GamesBunchRequest} returns this
15477
15535
  */
15478
15536
  proto.game.GamesBunchRequest.prototype.clearIsActive = function() {
15479
- return jspb.Message.setField(this, 1, undefined);
15537
+ return jspb.Message.setField(this, 2, undefined);
15480
15538
  };
15481
15539
 
15482
15540
 
@@ -15485,16 +15543,16 @@ proto.game.GamesBunchRequest.prototype.clearIsActive = function() {
15485
15543
  * @return {boolean}
15486
15544
  */
15487
15545
  proto.game.GamesBunchRequest.prototype.hasIsActive = function() {
15488
- return jspb.Message.getField(this, 1) != null;
15546
+ return jspb.Message.getField(this, 2) != null;
15489
15547
  };
15490
15548
 
15491
15549
 
15492
15550
  /**
15493
- * optional int32 is_deactivated = 2;
15551
+ * optional int32 is_deactivated = 3;
15494
15552
  * @return {number}
15495
15553
  */
15496
15554
  proto.game.GamesBunchRequest.prototype.getIsDeactivated = function() {
15497
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15555
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
15498
15556
  };
15499
15557
 
15500
15558
 
@@ -15503,7 +15561,7 @@ proto.game.GamesBunchRequest.prototype.getIsDeactivated = function() {
15503
15561
  * @return {!proto.game.GamesBunchRequest} returns this
15504
15562
  */
15505
15563
  proto.game.GamesBunchRequest.prototype.setIsDeactivated = function(value) {
15506
- return jspb.Message.setField(this, 2, value);
15564
+ return jspb.Message.setField(this, 3, value);
15507
15565
  };
15508
15566
 
15509
15567
 
@@ -15512,7 +15570,7 @@ proto.game.GamesBunchRequest.prototype.setIsDeactivated = function(value) {
15512
15570
  * @return {!proto.game.GamesBunchRequest} returns this
15513
15571
  */
15514
15572
  proto.game.GamesBunchRequest.prototype.clearIsDeactivated = function() {
15515
- return jspb.Message.setField(this, 2, undefined);
15573
+ return jspb.Message.setField(this, 3, undefined);
15516
15574
  };
15517
15575
 
15518
15576
 
@@ -15521,16 +15579,16 @@ proto.game.GamesBunchRequest.prototype.clearIsDeactivated = function() {
15521
15579
  * @return {boolean}
15522
15580
  */
15523
15581
  proto.game.GamesBunchRequest.prototype.hasIsDeactivated = function() {
15524
- return jspb.Message.getField(this, 2) != null;
15582
+ return jspb.Message.getField(this, 3) != null;
15525
15583
  };
15526
15584
 
15527
15585
 
15528
15586
  /**
15529
- * optional int32 is_mobile = 3;
15587
+ * optional int32 is_mobile = 4;
15530
15588
  * @return {number}
15531
15589
  */
15532
15590
  proto.game.GamesBunchRequest.prototype.getIsMobile = function() {
15533
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
15591
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15534
15592
  };
15535
15593
 
15536
15594
 
@@ -15539,7 +15597,7 @@ proto.game.GamesBunchRequest.prototype.getIsMobile = function() {
15539
15597
  * @return {!proto.game.GamesBunchRequest} returns this
15540
15598
  */
15541
15599
  proto.game.GamesBunchRequest.prototype.setIsMobile = function(value) {
15542
- return jspb.Message.setField(this, 3, value);
15600
+ return jspb.Message.setField(this, 4, value);
15543
15601
  };
15544
15602
 
15545
15603
 
@@ -15548,7 +15606,7 @@ proto.game.GamesBunchRequest.prototype.setIsMobile = function(value) {
15548
15606
  * @return {!proto.game.GamesBunchRequest} returns this
15549
15607
  */
15550
15608
  proto.game.GamesBunchRequest.prototype.clearIsMobile = function() {
15551
- return jspb.Message.setField(this, 3, undefined);
15609
+ return jspb.Message.setField(this, 4, undefined);
15552
15610
  };
15553
15611
 
15554
15612
 
@@ -15557,16 +15615,16 @@ proto.game.GamesBunchRequest.prototype.clearIsMobile = function() {
15557
15615
  * @return {boolean}
15558
15616
  */
15559
15617
  proto.game.GamesBunchRequest.prototype.hasIsMobile = function() {
15560
- return jspb.Message.getField(this, 3) != null;
15618
+ return jspb.Message.getField(this, 4) != null;
15561
15619
  };
15562
15620
 
15563
15621
 
15564
15622
  /**
15565
- * optional int32 is_top = 4;
15623
+ * optional int32 is_top = 5;
15566
15624
  * @return {number}
15567
15625
  */
15568
15626
  proto.game.GamesBunchRequest.prototype.getIsTop = function() {
15569
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15627
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
15570
15628
  };
15571
15629
 
15572
15630
 
@@ -15575,7 +15633,7 @@ proto.game.GamesBunchRequest.prototype.getIsTop = function() {
15575
15633
  * @return {!proto.game.GamesBunchRequest} returns this
15576
15634
  */
15577
15635
  proto.game.GamesBunchRequest.prototype.setIsTop = function(value) {
15578
- return jspb.Message.setField(this, 4, value);
15636
+ return jspb.Message.setField(this, 5, value);
15579
15637
  };
15580
15638
 
15581
15639
 
@@ -15584,7 +15642,7 @@ proto.game.GamesBunchRequest.prototype.setIsTop = function(value) {
15584
15642
  * @return {!proto.game.GamesBunchRequest} returns this
15585
15643
  */
15586
15644
  proto.game.GamesBunchRequest.prototype.clearIsTop = function() {
15587
- return jspb.Message.setField(this, 4, undefined);
15645
+ return jspb.Message.setField(this, 5, undefined);
15588
15646
  };
15589
15647
 
15590
15648
 
@@ -15593,16 +15651,16 @@ proto.game.GamesBunchRequest.prototype.clearIsTop = function() {
15593
15651
  * @return {boolean}
15594
15652
  */
15595
15653
  proto.game.GamesBunchRequest.prototype.hasIsTop = function() {
15596
- return jspb.Message.getField(this, 4) != null;
15654
+ return jspb.Message.getField(this, 5) != null;
15597
15655
  };
15598
15656
 
15599
15657
 
15600
15658
  /**
15601
- * optional int32 is_vip = 5;
15659
+ * optional int32 is_vip = 6;
15602
15660
  * @return {number}
15603
15661
  */
15604
15662
  proto.game.GamesBunchRequest.prototype.getIsVip = function() {
15605
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
15663
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
15606
15664
  };
15607
15665
 
15608
15666
 
@@ -15611,7 +15669,7 @@ proto.game.GamesBunchRequest.prototype.getIsVip = function() {
15611
15669
  * @return {!proto.game.GamesBunchRequest} returns this
15612
15670
  */
15613
15671
  proto.game.GamesBunchRequest.prototype.setIsVip = function(value) {
15614
- return jspb.Message.setField(this, 5, value);
15672
+ return jspb.Message.setField(this, 6, value);
15615
15673
  };
15616
15674
 
15617
15675
 
@@ -15620,7 +15678,7 @@ proto.game.GamesBunchRequest.prototype.setIsVip = function(value) {
15620
15678
  * @return {!proto.game.GamesBunchRequest} returns this
15621
15679
  */
15622
15680
  proto.game.GamesBunchRequest.prototype.clearIsVip = function() {
15623
- return jspb.Message.setField(this, 5, undefined);
15681
+ return jspb.Message.setField(this, 6, undefined);
15624
15682
  };
15625
15683
 
15626
15684
 
@@ -15629,16 +15687,16 @@ proto.game.GamesBunchRequest.prototype.clearIsVip = function() {
15629
15687
  * @return {boolean}
15630
15688
  */
15631
15689
  proto.game.GamesBunchRequest.prototype.hasIsVip = function() {
15632
- return jspb.Message.getField(this, 5) != null;
15690
+ return jspb.Message.getField(this, 6) != null;
15633
15691
  };
15634
15692
 
15635
15693
 
15636
15694
  /**
15637
- * optional int32 has_demo = 6;
15695
+ * optional int32 has_demo = 7;
15638
15696
  * @return {number}
15639
15697
  */
15640
15698
  proto.game.GamesBunchRequest.prototype.getHasDemo = function() {
15641
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
15699
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
15642
15700
  };
15643
15701
 
15644
15702
 
@@ -15647,7 +15705,7 @@ proto.game.GamesBunchRequest.prototype.getHasDemo = function() {
15647
15705
  * @return {!proto.game.GamesBunchRequest} returns this
15648
15706
  */
15649
15707
  proto.game.GamesBunchRequest.prototype.setHasDemo = function(value) {
15650
- return jspb.Message.setField(this, 6, value);
15708
+ return jspb.Message.setField(this, 7, value);
15651
15709
  };
15652
15710
 
15653
15711
 
@@ -15656,7 +15714,7 @@ proto.game.GamesBunchRequest.prototype.setHasDemo = function(value) {
15656
15714
  * @return {!proto.game.GamesBunchRequest} returns this
15657
15715
  */
15658
15716
  proto.game.GamesBunchRequest.prototype.clearHasDemo = function() {
15659
- return jspb.Message.setField(this, 6, undefined);
15717
+ return jspb.Message.setField(this, 7, undefined);
15660
15718
  };
15661
15719
 
15662
15720
 
@@ -15665,16 +15723,16 @@ proto.game.GamesBunchRequest.prototype.clearHasDemo = function() {
15665
15723
  * @return {boolean}
15666
15724
  */
15667
15725
  proto.game.GamesBunchRequest.prototype.hasHasDemo = function() {
15668
- return jspb.Message.getField(this, 6) != null;
15726
+ return jspb.Message.getField(this, 7) != null;
15669
15727
  };
15670
15728
 
15671
15729
 
15672
15730
  /**
15673
- * optional int32 has_free_spins = 7;
15731
+ * optional int32 has_free_spins = 8;
15674
15732
  * @return {number}
15675
15733
  */
15676
15734
  proto.game.GamesBunchRequest.prototype.getHasFreeSpins = function() {
15677
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
15735
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
15678
15736
  };
15679
15737
 
15680
15738
 
@@ -15683,7 +15741,7 @@ proto.game.GamesBunchRequest.prototype.getHasFreeSpins = function() {
15683
15741
  * @return {!proto.game.GamesBunchRequest} returns this
15684
15742
  */
15685
15743
  proto.game.GamesBunchRequest.prototype.setHasFreeSpins = function(value) {
15686
- return jspb.Message.setField(this, 7, value);
15744
+ return jspb.Message.setField(this, 8, value);
15687
15745
  };
15688
15746
 
15689
15747
 
@@ -15692,7 +15750,7 @@ proto.game.GamesBunchRequest.prototype.setHasFreeSpins = function(value) {
15692
15750
  * @return {!proto.game.GamesBunchRequest} returns this
15693
15751
  */
15694
15752
  proto.game.GamesBunchRequest.prototype.clearHasFreeSpins = function() {
15695
- return jspb.Message.setField(this, 7, undefined);
15753
+ return jspb.Message.setField(this, 8, undefined);
15696
15754
  };
15697
15755
 
15698
15756
 
@@ -15701,7 +15759,7 @@ proto.game.GamesBunchRequest.prototype.clearHasFreeSpins = function() {
15701
15759
  * @return {boolean}
15702
15760
  */
15703
15761
  proto.game.GamesBunchRequest.prototype.hasHasFreeSpins = function() {
15704
- return jspb.Message.getField(this, 7) != null;
15762
+ return jspb.Message.getField(this, 8) != null;
15705
15763
  };
15706
15764
 
15707
15765
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.216",
3
+ "version": "1.0.217",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {