protobuf-platform 1.2.355 → 1.2.356

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/bonus/bonus.proto CHANGED
@@ -28,6 +28,7 @@ service Bonus {
28
28
  rpc getUserBonusesHistory(PaginationRequest) returns (UserBonusItemsResponse);
29
29
  rpc getDepositEligibleUserBonuses(GetDepositEligibleUserBonusesRequest) returns (DepositEligibleUserBonusesResponse);
30
30
  rpc getActiveWageringUserBonuses(GetActiveWageringUserBonusesRequest) returns (ActiveWageringUserBonusesResponse);
31
+ rpc getCommonUserBonusItems(GetLoggedInUserBonusItemsRequest) returns (GetLoggedInUserBonusItemsResponse);
31
32
  // Validates one selected wagering user bonus for a game wager list and balance type; returns authoritative state for game-service Redis snapshot.
32
33
  rpc validateSelectedWageringUserBonus(ValidateSelectedWageringUserBonusRequest) returns (ValidateSelectedWageringUserBonusResponse);
33
34
  //Common lists
@@ -352,6 +353,20 @@ message ActiveWageringUserBonusItem {
352
353
  repeated string wager_balances = 8;
353
354
  optional int32 wager_games_list_id = 9;
354
355
  }
356
+ message GetLoggedInUserBonusItemsRequest {
357
+ int32 user_id = 1;
358
+ optional string currency = 2;
359
+ optional string country = 3;
360
+ optional string locale = 4;
361
+ optional bool is_mobile = 5;
362
+ }
363
+ message GetLoggedInUserBonusItemsResponse {
364
+ LoggedInUserBonusItems items = 1;
365
+ }
366
+ message LoggedInUserBonusItems {
367
+ repeated UserBonusItem wagering = 1;
368
+ repeated UserBonusItem all = 2;
369
+ }
355
370
  // Validate selected wagering user bonus: request with user, bonus id, wager games list and balance type.
356
371
  message ValidateSelectedWageringUserBonusRequest {
357
372
  int32 user_id = 1;
@@ -246,6 +246,28 @@ function deserialize_bonus_GetFileRequest(buffer_arg) {
246
246
  return bonus_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
247
247
  }
248
248
 
249
+ function serialize_bonus_GetLoggedInUserBonusItemsRequest(arg) {
250
+ if (!(arg instanceof bonus_pb.GetLoggedInUserBonusItemsRequest)) {
251
+ throw new Error('Expected argument of type bonus.GetLoggedInUserBonusItemsRequest');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_bonus_GetLoggedInUserBonusItemsRequest(buffer_arg) {
257
+ return bonus_pb.GetLoggedInUserBonusItemsRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
260
+ function serialize_bonus_GetLoggedInUserBonusItemsResponse(arg) {
261
+ if (!(arg instanceof bonus_pb.GetLoggedInUserBonusItemsResponse)) {
262
+ throw new Error('Expected argument of type bonus.GetLoggedInUserBonusItemsResponse');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_bonus_GetLoggedInUserBonusItemsResponse(buffer_arg) {
268
+ return bonus_pb.GetLoggedInUserBonusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
249
271
  function serialize_bonus_GetUserBonusRequest(arg) {
250
272
  if (!(arg instanceof bonus_pb.GetUserBonusRequest)) {
251
273
  throw new Error('Expected argument of type bonus.GetUserBonusRequest');
@@ -602,6 +624,17 @@ claimUserBonus: {
602
624
  responseSerialize: serialize_bonus_ActiveWageringUserBonusesResponse,
603
625
  responseDeserialize: deserialize_bonus_ActiveWageringUserBonusesResponse,
604
626
  },
627
+ getCommonUserBonusItems: {
628
+ path: '/bonus.Bonus/getCommonUserBonusItems',
629
+ requestStream: false,
630
+ responseStream: false,
631
+ requestType: bonus_pb.GetLoggedInUserBonusItemsRequest,
632
+ responseType: bonus_pb.GetLoggedInUserBonusItemsResponse,
633
+ requestSerialize: serialize_bonus_GetLoggedInUserBonusItemsRequest,
634
+ requestDeserialize: deserialize_bonus_GetLoggedInUserBonusItemsRequest,
635
+ responseSerialize: serialize_bonus_GetLoggedInUserBonusItemsResponse,
636
+ responseDeserialize: deserialize_bonus_GetLoggedInUserBonusItemsResponse,
637
+ },
605
638
  // Validates one selected wagering user bonus for a game wager list and balance type; returns authoritative state for game-service Redis snapshot.
606
639
  validateSelectedWageringUserBonus: {
607
640
  path: '/bonus.Bonus/validateSelectedWageringUserBonus',
package/bonus/bonus_pb.js CHANGED
@@ -57,8 +57,11 @@ goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
57
57
  goog.exportSymbol('proto.bonus.GetBonusTranslationRequest', null, global);
58
58
  goog.exportSymbol('proto.bonus.GetDepositEligibleUserBonusesRequest', null, global);
59
59
  goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
60
+ goog.exportSymbol('proto.bonus.GetLoggedInUserBonusItemsRequest', null, global);
61
+ goog.exportSymbol('proto.bonus.GetLoggedInUserBonusItemsResponse', null, global);
60
62
  goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
61
63
  goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
64
+ goog.exportSymbol('proto.bonus.LoggedInUserBonusItems', null, global);
62
65
  goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
63
66
  goog.exportSymbol('proto.bonus.PingRequest', null, global);
64
67
  goog.exportSymbol('proto.bonus.PongResponse', null, global);
@@ -844,6 +847,69 @@ if (goog.DEBUG && !COMPILED) {
844
847
  */
845
848
  proto.bonus.ActiveWageringUserBonusItem.displayName = 'proto.bonus.ActiveWageringUserBonusItem';
846
849
  }
850
+ /**
851
+ * Generated by JsPbCodeGenerator.
852
+ * @param {Array=} opt_data Optional initial data array, typically from a
853
+ * server response, or constructed directly in Javascript. The array is used
854
+ * in place and becomes part of the constructed object. It is not cloned.
855
+ * If no data is provided, the constructed object will be empty, but still
856
+ * valid.
857
+ * @extends {jspb.Message}
858
+ * @constructor
859
+ */
860
+ proto.bonus.GetLoggedInUserBonusItemsRequest = function(opt_data) {
861
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
862
+ };
863
+ goog.inherits(proto.bonus.GetLoggedInUserBonusItemsRequest, jspb.Message);
864
+ if (goog.DEBUG && !COMPILED) {
865
+ /**
866
+ * @public
867
+ * @override
868
+ */
869
+ proto.bonus.GetLoggedInUserBonusItemsRequest.displayName = 'proto.bonus.GetLoggedInUserBonusItemsRequest';
870
+ }
871
+ /**
872
+ * Generated by JsPbCodeGenerator.
873
+ * @param {Array=} opt_data Optional initial data array, typically from a
874
+ * server response, or constructed directly in Javascript. The array is used
875
+ * in place and becomes part of the constructed object. It is not cloned.
876
+ * If no data is provided, the constructed object will be empty, but still
877
+ * valid.
878
+ * @extends {jspb.Message}
879
+ * @constructor
880
+ */
881
+ proto.bonus.GetLoggedInUserBonusItemsResponse = function(opt_data) {
882
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
883
+ };
884
+ goog.inherits(proto.bonus.GetLoggedInUserBonusItemsResponse, jspb.Message);
885
+ if (goog.DEBUG && !COMPILED) {
886
+ /**
887
+ * @public
888
+ * @override
889
+ */
890
+ proto.bonus.GetLoggedInUserBonusItemsResponse.displayName = 'proto.bonus.GetLoggedInUserBonusItemsResponse';
891
+ }
892
+ /**
893
+ * Generated by JsPbCodeGenerator.
894
+ * @param {Array=} opt_data Optional initial data array, typically from a
895
+ * server response, or constructed directly in Javascript. The array is used
896
+ * in place and becomes part of the constructed object. It is not cloned.
897
+ * If no data is provided, the constructed object will be empty, but still
898
+ * valid.
899
+ * @extends {jspb.Message}
900
+ * @constructor
901
+ */
902
+ proto.bonus.LoggedInUserBonusItems = function(opt_data) {
903
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.LoggedInUserBonusItems.repeatedFields_, null);
904
+ };
905
+ goog.inherits(proto.bonus.LoggedInUserBonusItems, jspb.Message);
906
+ if (goog.DEBUG && !COMPILED) {
907
+ /**
908
+ * @public
909
+ * @override
910
+ */
911
+ proto.bonus.LoggedInUserBonusItems.displayName = 'proto.bonus.LoggedInUserBonusItems';
912
+ }
847
913
  /**
848
914
  * Generated by JsPbCodeGenerator.
849
915
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15406,6 +15472,692 @@ proto.bonus.ActiveWageringUserBonusItem.prototype.hasWagerGamesListId = function
15406
15472
 
15407
15473
 
15408
15474
 
15475
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15476
+ /**
15477
+ * Creates an object representation of this proto.
15478
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15479
+ * Optional fields that are not set will be set to undefined.
15480
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15481
+ * For the list of reserved names please see:
15482
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15483
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15484
+ * JSPB instance for transitional soy proto support:
15485
+ * http://goto/soy-param-migration
15486
+ * @return {!Object}
15487
+ */
15488
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.toObject = function(opt_includeInstance) {
15489
+ return proto.bonus.GetLoggedInUserBonusItemsRequest.toObject(opt_includeInstance, this);
15490
+ };
15491
+
15492
+
15493
+ /**
15494
+ * Static version of the {@see toObject} method.
15495
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15496
+ * the JSPB instance for transitional soy proto support:
15497
+ * http://goto/soy-param-migration
15498
+ * @param {!proto.bonus.GetLoggedInUserBonusItemsRequest} msg The msg instance to transform.
15499
+ * @return {!Object}
15500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15501
+ */
15502
+ proto.bonus.GetLoggedInUserBonusItemsRequest.toObject = function(includeInstance, msg) {
15503
+ var f, obj = {
15504
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
15505
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
15506
+ country: jspb.Message.getFieldWithDefault(msg, 3, ""),
15507
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
15508
+ isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
15509
+ };
15510
+
15511
+ if (includeInstance) {
15512
+ obj.$jspbMessageInstance = msg;
15513
+ }
15514
+ return obj;
15515
+ };
15516
+ }
15517
+
15518
+
15519
+ /**
15520
+ * Deserializes binary data (in protobuf wire format).
15521
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15522
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest}
15523
+ */
15524
+ proto.bonus.GetLoggedInUserBonusItemsRequest.deserializeBinary = function(bytes) {
15525
+ var reader = new jspb.BinaryReader(bytes);
15526
+ var msg = new proto.bonus.GetLoggedInUserBonusItemsRequest;
15527
+ return proto.bonus.GetLoggedInUserBonusItemsRequest.deserializeBinaryFromReader(msg, reader);
15528
+ };
15529
+
15530
+
15531
+ /**
15532
+ * Deserializes binary data (in protobuf wire format) from the
15533
+ * given reader into the given message object.
15534
+ * @param {!proto.bonus.GetLoggedInUserBonusItemsRequest} msg The message object to deserialize into.
15535
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15536
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest}
15537
+ */
15538
+ proto.bonus.GetLoggedInUserBonusItemsRequest.deserializeBinaryFromReader = function(msg, reader) {
15539
+ while (reader.nextField()) {
15540
+ if (reader.isEndGroup()) {
15541
+ break;
15542
+ }
15543
+ var field = reader.getFieldNumber();
15544
+ switch (field) {
15545
+ case 1:
15546
+ var value = /** @type {number} */ (reader.readInt32());
15547
+ msg.setUserId(value);
15548
+ break;
15549
+ case 2:
15550
+ var value = /** @type {string} */ (reader.readString());
15551
+ msg.setCurrency(value);
15552
+ break;
15553
+ case 3:
15554
+ var value = /** @type {string} */ (reader.readString());
15555
+ msg.setCountry(value);
15556
+ break;
15557
+ case 4:
15558
+ var value = /** @type {string} */ (reader.readString());
15559
+ msg.setLocale(value);
15560
+ break;
15561
+ case 5:
15562
+ var value = /** @type {boolean} */ (reader.readBool());
15563
+ msg.setIsMobile(value);
15564
+ break;
15565
+ default:
15566
+ reader.skipField();
15567
+ break;
15568
+ }
15569
+ }
15570
+ return msg;
15571
+ };
15572
+
15573
+
15574
+ /**
15575
+ * Serializes the message to binary data (in protobuf wire format).
15576
+ * @return {!Uint8Array}
15577
+ */
15578
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.serializeBinary = function() {
15579
+ var writer = new jspb.BinaryWriter();
15580
+ proto.bonus.GetLoggedInUserBonusItemsRequest.serializeBinaryToWriter(this, writer);
15581
+ return writer.getResultBuffer();
15582
+ };
15583
+
15584
+
15585
+ /**
15586
+ * Serializes the given message to binary data (in protobuf wire
15587
+ * format), writing to the given BinaryWriter.
15588
+ * @param {!proto.bonus.GetLoggedInUserBonusItemsRequest} message
15589
+ * @param {!jspb.BinaryWriter} writer
15590
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15591
+ */
15592
+ proto.bonus.GetLoggedInUserBonusItemsRequest.serializeBinaryToWriter = function(message, writer) {
15593
+ var f = undefined;
15594
+ f = message.getUserId();
15595
+ if (f !== 0) {
15596
+ writer.writeInt32(
15597
+ 1,
15598
+ f
15599
+ );
15600
+ }
15601
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
15602
+ if (f != null) {
15603
+ writer.writeString(
15604
+ 2,
15605
+ f
15606
+ );
15607
+ }
15608
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
15609
+ if (f != null) {
15610
+ writer.writeString(
15611
+ 3,
15612
+ f
15613
+ );
15614
+ }
15615
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
15616
+ if (f != null) {
15617
+ writer.writeString(
15618
+ 4,
15619
+ f
15620
+ );
15621
+ }
15622
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
15623
+ if (f != null) {
15624
+ writer.writeBool(
15625
+ 5,
15626
+ f
15627
+ );
15628
+ }
15629
+ };
15630
+
15631
+
15632
+ /**
15633
+ * optional int32 user_id = 1;
15634
+ * @return {number}
15635
+ */
15636
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.getUserId = function() {
15637
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15638
+ };
15639
+
15640
+
15641
+ /**
15642
+ * @param {number} value
15643
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15644
+ */
15645
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.setUserId = function(value) {
15646
+ return jspb.Message.setProto3IntField(this, 1, value);
15647
+ };
15648
+
15649
+
15650
+ /**
15651
+ * optional string currency = 2;
15652
+ * @return {string}
15653
+ */
15654
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.getCurrency = function() {
15655
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15656
+ };
15657
+
15658
+
15659
+ /**
15660
+ * @param {string} value
15661
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15662
+ */
15663
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.setCurrency = function(value) {
15664
+ return jspb.Message.setField(this, 2, value);
15665
+ };
15666
+
15667
+
15668
+ /**
15669
+ * Clears the field making it undefined.
15670
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15671
+ */
15672
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.clearCurrency = function() {
15673
+ return jspb.Message.setField(this, 2, undefined);
15674
+ };
15675
+
15676
+
15677
+ /**
15678
+ * Returns whether this field is set.
15679
+ * @return {boolean}
15680
+ */
15681
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.hasCurrency = function() {
15682
+ return jspb.Message.getField(this, 2) != null;
15683
+ };
15684
+
15685
+
15686
+ /**
15687
+ * optional string country = 3;
15688
+ * @return {string}
15689
+ */
15690
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.getCountry = function() {
15691
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15692
+ };
15693
+
15694
+
15695
+ /**
15696
+ * @param {string} value
15697
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15698
+ */
15699
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.setCountry = function(value) {
15700
+ return jspb.Message.setField(this, 3, value);
15701
+ };
15702
+
15703
+
15704
+ /**
15705
+ * Clears the field making it undefined.
15706
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15707
+ */
15708
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.clearCountry = function() {
15709
+ return jspb.Message.setField(this, 3, undefined);
15710
+ };
15711
+
15712
+
15713
+ /**
15714
+ * Returns whether this field is set.
15715
+ * @return {boolean}
15716
+ */
15717
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.hasCountry = function() {
15718
+ return jspb.Message.getField(this, 3) != null;
15719
+ };
15720
+
15721
+
15722
+ /**
15723
+ * optional string locale = 4;
15724
+ * @return {string}
15725
+ */
15726
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.getLocale = function() {
15727
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15728
+ };
15729
+
15730
+
15731
+ /**
15732
+ * @param {string} value
15733
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15734
+ */
15735
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.setLocale = function(value) {
15736
+ return jspb.Message.setField(this, 4, value);
15737
+ };
15738
+
15739
+
15740
+ /**
15741
+ * Clears the field making it undefined.
15742
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15743
+ */
15744
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.clearLocale = function() {
15745
+ return jspb.Message.setField(this, 4, undefined);
15746
+ };
15747
+
15748
+
15749
+ /**
15750
+ * Returns whether this field is set.
15751
+ * @return {boolean}
15752
+ */
15753
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.hasLocale = function() {
15754
+ return jspb.Message.getField(this, 4) != null;
15755
+ };
15756
+
15757
+
15758
+ /**
15759
+ * optional bool is_mobile = 5;
15760
+ * @return {boolean}
15761
+ */
15762
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.getIsMobile = function() {
15763
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
15764
+ };
15765
+
15766
+
15767
+ /**
15768
+ * @param {boolean} value
15769
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15770
+ */
15771
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.setIsMobile = function(value) {
15772
+ return jspb.Message.setField(this, 5, value);
15773
+ };
15774
+
15775
+
15776
+ /**
15777
+ * Clears the field making it undefined.
15778
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsRequest} returns this
15779
+ */
15780
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.clearIsMobile = function() {
15781
+ return jspb.Message.setField(this, 5, undefined);
15782
+ };
15783
+
15784
+
15785
+ /**
15786
+ * Returns whether this field is set.
15787
+ * @return {boolean}
15788
+ */
15789
+ proto.bonus.GetLoggedInUserBonusItemsRequest.prototype.hasIsMobile = function() {
15790
+ return jspb.Message.getField(this, 5) != null;
15791
+ };
15792
+
15793
+
15794
+
15795
+
15796
+
15797
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15798
+ /**
15799
+ * Creates an object representation of this proto.
15800
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15801
+ * Optional fields that are not set will be set to undefined.
15802
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15803
+ * For the list of reserved names please see:
15804
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15805
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15806
+ * JSPB instance for transitional soy proto support:
15807
+ * http://goto/soy-param-migration
15808
+ * @return {!Object}
15809
+ */
15810
+ proto.bonus.GetLoggedInUserBonusItemsResponse.prototype.toObject = function(opt_includeInstance) {
15811
+ return proto.bonus.GetLoggedInUserBonusItemsResponse.toObject(opt_includeInstance, this);
15812
+ };
15813
+
15814
+
15815
+ /**
15816
+ * Static version of the {@see toObject} method.
15817
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15818
+ * the JSPB instance for transitional soy proto support:
15819
+ * http://goto/soy-param-migration
15820
+ * @param {!proto.bonus.GetLoggedInUserBonusItemsResponse} msg The msg instance to transform.
15821
+ * @return {!Object}
15822
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15823
+ */
15824
+ proto.bonus.GetLoggedInUserBonusItemsResponse.toObject = function(includeInstance, msg) {
15825
+ var f, obj = {
15826
+ items: (f = msg.getItems()) && proto.bonus.LoggedInUserBonusItems.toObject(includeInstance, f)
15827
+ };
15828
+
15829
+ if (includeInstance) {
15830
+ obj.$jspbMessageInstance = msg;
15831
+ }
15832
+ return obj;
15833
+ };
15834
+ }
15835
+
15836
+
15837
+ /**
15838
+ * Deserializes binary data (in protobuf wire format).
15839
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15840
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsResponse}
15841
+ */
15842
+ proto.bonus.GetLoggedInUserBonusItemsResponse.deserializeBinary = function(bytes) {
15843
+ var reader = new jspb.BinaryReader(bytes);
15844
+ var msg = new proto.bonus.GetLoggedInUserBonusItemsResponse;
15845
+ return proto.bonus.GetLoggedInUserBonusItemsResponse.deserializeBinaryFromReader(msg, reader);
15846
+ };
15847
+
15848
+
15849
+ /**
15850
+ * Deserializes binary data (in protobuf wire format) from the
15851
+ * given reader into the given message object.
15852
+ * @param {!proto.bonus.GetLoggedInUserBonusItemsResponse} msg The message object to deserialize into.
15853
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15854
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsResponse}
15855
+ */
15856
+ proto.bonus.GetLoggedInUserBonusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
15857
+ while (reader.nextField()) {
15858
+ if (reader.isEndGroup()) {
15859
+ break;
15860
+ }
15861
+ var field = reader.getFieldNumber();
15862
+ switch (field) {
15863
+ case 1:
15864
+ var value = new proto.bonus.LoggedInUserBonusItems;
15865
+ reader.readMessage(value,proto.bonus.LoggedInUserBonusItems.deserializeBinaryFromReader);
15866
+ msg.setItems(value);
15867
+ break;
15868
+ default:
15869
+ reader.skipField();
15870
+ break;
15871
+ }
15872
+ }
15873
+ return msg;
15874
+ };
15875
+
15876
+
15877
+ /**
15878
+ * Serializes the message to binary data (in protobuf wire format).
15879
+ * @return {!Uint8Array}
15880
+ */
15881
+ proto.bonus.GetLoggedInUserBonusItemsResponse.prototype.serializeBinary = function() {
15882
+ var writer = new jspb.BinaryWriter();
15883
+ proto.bonus.GetLoggedInUserBonusItemsResponse.serializeBinaryToWriter(this, writer);
15884
+ return writer.getResultBuffer();
15885
+ };
15886
+
15887
+
15888
+ /**
15889
+ * Serializes the given message to binary data (in protobuf wire
15890
+ * format), writing to the given BinaryWriter.
15891
+ * @param {!proto.bonus.GetLoggedInUserBonusItemsResponse} message
15892
+ * @param {!jspb.BinaryWriter} writer
15893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15894
+ */
15895
+ proto.bonus.GetLoggedInUserBonusItemsResponse.serializeBinaryToWriter = function(message, writer) {
15896
+ var f = undefined;
15897
+ f = message.getItems();
15898
+ if (f != null) {
15899
+ writer.writeMessage(
15900
+ 1,
15901
+ f,
15902
+ proto.bonus.LoggedInUserBonusItems.serializeBinaryToWriter
15903
+ );
15904
+ }
15905
+ };
15906
+
15907
+
15908
+ /**
15909
+ * optional LoggedInUserBonusItems items = 1;
15910
+ * @return {?proto.bonus.LoggedInUserBonusItems}
15911
+ */
15912
+ proto.bonus.GetLoggedInUserBonusItemsResponse.prototype.getItems = function() {
15913
+ return /** @type{?proto.bonus.LoggedInUserBonusItems} */ (
15914
+ jspb.Message.getWrapperField(this, proto.bonus.LoggedInUserBonusItems, 1));
15915
+ };
15916
+
15917
+
15918
+ /**
15919
+ * @param {?proto.bonus.LoggedInUserBonusItems|undefined} value
15920
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsResponse} returns this
15921
+ */
15922
+ proto.bonus.GetLoggedInUserBonusItemsResponse.prototype.setItems = function(value) {
15923
+ return jspb.Message.setWrapperField(this, 1, value);
15924
+ };
15925
+
15926
+
15927
+ /**
15928
+ * Clears the message field making it undefined.
15929
+ * @return {!proto.bonus.GetLoggedInUserBonusItemsResponse} returns this
15930
+ */
15931
+ proto.bonus.GetLoggedInUserBonusItemsResponse.prototype.clearItems = function() {
15932
+ return this.setItems(undefined);
15933
+ };
15934
+
15935
+
15936
+ /**
15937
+ * Returns whether this field is set.
15938
+ * @return {boolean}
15939
+ */
15940
+ proto.bonus.GetLoggedInUserBonusItemsResponse.prototype.hasItems = function() {
15941
+ return jspb.Message.getField(this, 1) != null;
15942
+ };
15943
+
15944
+
15945
+
15946
+ /**
15947
+ * List of repeated fields within this message type.
15948
+ * @private {!Array<number>}
15949
+ * @const
15950
+ */
15951
+ proto.bonus.LoggedInUserBonusItems.repeatedFields_ = [1,2];
15952
+
15953
+
15954
+
15955
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15956
+ /**
15957
+ * Creates an object representation of this proto.
15958
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15959
+ * Optional fields that are not set will be set to undefined.
15960
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15961
+ * For the list of reserved names please see:
15962
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15963
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15964
+ * JSPB instance for transitional soy proto support:
15965
+ * http://goto/soy-param-migration
15966
+ * @return {!Object}
15967
+ */
15968
+ proto.bonus.LoggedInUserBonusItems.prototype.toObject = function(opt_includeInstance) {
15969
+ return proto.bonus.LoggedInUserBonusItems.toObject(opt_includeInstance, this);
15970
+ };
15971
+
15972
+
15973
+ /**
15974
+ * Static version of the {@see toObject} method.
15975
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15976
+ * the JSPB instance for transitional soy proto support:
15977
+ * http://goto/soy-param-migration
15978
+ * @param {!proto.bonus.LoggedInUserBonusItems} msg The msg instance to transform.
15979
+ * @return {!Object}
15980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15981
+ */
15982
+ proto.bonus.LoggedInUserBonusItems.toObject = function(includeInstance, msg) {
15983
+ var f, obj = {
15984
+ wageringList: jspb.Message.toObjectList(msg.getWageringList(),
15985
+ proto.bonus.UserBonusItem.toObject, includeInstance),
15986
+ allList: jspb.Message.toObjectList(msg.getAllList(),
15987
+ proto.bonus.UserBonusItem.toObject, includeInstance)
15988
+ };
15989
+
15990
+ if (includeInstance) {
15991
+ obj.$jspbMessageInstance = msg;
15992
+ }
15993
+ return obj;
15994
+ };
15995
+ }
15996
+
15997
+
15998
+ /**
15999
+ * Deserializes binary data (in protobuf wire format).
16000
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16001
+ * @return {!proto.bonus.LoggedInUserBonusItems}
16002
+ */
16003
+ proto.bonus.LoggedInUserBonusItems.deserializeBinary = function(bytes) {
16004
+ var reader = new jspb.BinaryReader(bytes);
16005
+ var msg = new proto.bonus.LoggedInUserBonusItems;
16006
+ return proto.bonus.LoggedInUserBonusItems.deserializeBinaryFromReader(msg, reader);
16007
+ };
16008
+
16009
+
16010
+ /**
16011
+ * Deserializes binary data (in protobuf wire format) from the
16012
+ * given reader into the given message object.
16013
+ * @param {!proto.bonus.LoggedInUserBonusItems} msg The message object to deserialize into.
16014
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16015
+ * @return {!proto.bonus.LoggedInUserBonusItems}
16016
+ */
16017
+ proto.bonus.LoggedInUserBonusItems.deserializeBinaryFromReader = function(msg, reader) {
16018
+ while (reader.nextField()) {
16019
+ if (reader.isEndGroup()) {
16020
+ break;
16021
+ }
16022
+ var field = reader.getFieldNumber();
16023
+ switch (field) {
16024
+ case 1:
16025
+ var value = new proto.bonus.UserBonusItem;
16026
+ reader.readMessage(value,proto.bonus.UserBonusItem.deserializeBinaryFromReader);
16027
+ msg.addWagering(value);
16028
+ break;
16029
+ case 2:
16030
+ var value = new proto.bonus.UserBonusItem;
16031
+ reader.readMessage(value,proto.bonus.UserBonusItem.deserializeBinaryFromReader);
16032
+ msg.addAll(value);
16033
+ break;
16034
+ default:
16035
+ reader.skipField();
16036
+ break;
16037
+ }
16038
+ }
16039
+ return msg;
16040
+ };
16041
+
16042
+
16043
+ /**
16044
+ * Serializes the message to binary data (in protobuf wire format).
16045
+ * @return {!Uint8Array}
16046
+ */
16047
+ proto.bonus.LoggedInUserBonusItems.prototype.serializeBinary = function() {
16048
+ var writer = new jspb.BinaryWriter();
16049
+ proto.bonus.LoggedInUserBonusItems.serializeBinaryToWriter(this, writer);
16050
+ return writer.getResultBuffer();
16051
+ };
16052
+
16053
+
16054
+ /**
16055
+ * Serializes the given message to binary data (in protobuf wire
16056
+ * format), writing to the given BinaryWriter.
16057
+ * @param {!proto.bonus.LoggedInUserBonusItems} message
16058
+ * @param {!jspb.BinaryWriter} writer
16059
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16060
+ */
16061
+ proto.bonus.LoggedInUserBonusItems.serializeBinaryToWriter = function(message, writer) {
16062
+ var f = undefined;
16063
+ f = message.getWageringList();
16064
+ if (f.length > 0) {
16065
+ writer.writeRepeatedMessage(
16066
+ 1,
16067
+ f,
16068
+ proto.bonus.UserBonusItem.serializeBinaryToWriter
16069
+ );
16070
+ }
16071
+ f = message.getAllList();
16072
+ if (f.length > 0) {
16073
+ writer.writeRepeatedMessage(
16074
+ 2,
16075
+ f,
16076
+ proto.bonus.UserBonusItem.serializeBinaryToWriter
16077
+ );
16078
+ }
16079
+ };
16080
+
16081
+
16082
+ /**
16083
+ * repeated UserBonusItem wagering = 1;
16084
+ * @return {!Array<!proto.bonus.UserBonusItem>}
16085
+ */
16086
+ proto.bonus.LoggedInUserBonusItems.prototype.getWageringList = function() {
16087
+ return /** @type{!Array<!proto.bonus.UserBonusItem>} */ (
16088
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.UserBonusItem, 1));
16089
+ };
16090
+
16091
+
16092
+ /**
16093
+ * @param {!Array<!proto.bonus.UserBonusItem>} value
16094
+ * @return {!proto.bonus.LoggedInUserBonusItems} returns this
16095
+ */
16096
+ proto.bonus.LoggedInUserBonusItems.prototype.setWageringList = function(value) {
16097
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
16098
+ };
16099
+
16100
+
16101
+ /**
16102
+ * @param {!proto.bonus.UserBonusItem=} opt_value
16103
+ * @param {number=} opt_index
16104
+ * @return {!proto.bonus.UserBonusItem}
16105
+ */
16106
+ proto.bonus.LoggedInUserBonusItems.prototype.addWagering = function(opt_value, opt_index) {
16107
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.UserBonusItem, opt_index);
16108
+ };
16109
+
16110
+
16111
+ /**
16112
+ * Clears the list making it empty but non-null.
16113
+ * @return {!proto.bonus.LoggedInUserBonusItems} returns this
16114
+ */
16115
+ proto.bonus.LoggedInUserBonusItems.prototype.clearWageringList = function() {
16116
+ return this.setWageringList([]);
16117
+ };
16118
+
16119
+
16120
+ /**
16121
+ * repeated UserBonusItem all = 2;
16122
+ * @return {!Array<!proto.bonus.UserBonusItem>}
16123
+ */
16124
+ proto.bonus.LoggedInUserBonusItems.prototype.getAllList = function() {
16125
+ return /** @type{!Array<!proto.bonus.UserBonusItem>} */ (
16126
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.UserBonusItem, 2));
16127
+ };
16128
+
16129
+
16130
+ /**
16131
+ * @param {!Array<!proto.bonus.UserBonusItem>} value
16132
+ * @return {!proto.bonus.LoggedInUserBonusItems} returns this
16133
+ */
16134
+ proto.bonus.LoggedInUserBonusItems.prototype.setAllList = function(value) {
16135
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
16136
+ };
16137
+
16138
+
16139
+ /**
16140
+ * @param {!proto.bonus.UserBonusItem=} opt_value
16141
+ * @param {number=} opt_index
16142
+ * @return {!proto.bonus.UserBonusItem}
16143
+ */
16144
+ proto.bonus.LoggedInUserBonusItems.prototype.addAll = function(opt_value, opt_index) {
16145
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bonus.UserBonusItem, opt_index);
16146
+ };
16147
+
16148
+
16149
+ /**
16150
+ * Clears the list making it empty but non-null.
16151
+ * @return {!proto.bonus.LoggedInUserBonusItems} returns this
16152
+ */
16153
+ proto.bonus.LoggedInUserBonusItems.prototype.clearAllList = function() {
16154
+ return this.setAllList([]);
16155
+ };
16156
+
16157
+
16158
+
16159
+
16160
+
15409
16161
  if (jspb.Message.GENERATE_TO_OBJECT) {
15410
16162
  /**
15411
16163
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.355",
3
+ "version": "1.2.356",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {