protobuf-platform 1.2.35 → 1.2.37

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/bet/bet.proto CHANGED
@@ -17,6 +17,8 @@ service Bet {
17
17
  rpc axiomGetBets(AxiomGetBetsRequest) returns (AxiomBetsResponse);
18
18
  rpc axiomCreateBet(AxiomCreateBetRequest) returns (AxiomBetStatusResponse);
19
19
  rpc axiomProcessBet(AxiomProcessBetRequest) returns (AxiomBetStatusResponse);
20
+ //Games aggregation
21
+ rpc getWinRates(PaginationRequest) returns (WinRatesResponse);
20
22
  }
21
23
 
22
24
  message PingRequest { string ping = 1; }
@@ -81,6 +83,7 @@ message UserBetItem {
81
83
  optional string round_id = 13;
82
84
  optional string created = 14;
83
85
  optional string user_device = 15;
86
+ optional float multiplier = 16;
84
87
  }
85
88
  message BetsHistoryResponse {
86
89
  repeated UserBetItem items = 1;
@@ -149,4 +152,19 @@ message AxiomProcessBetRequest {
149
152
  }
150
153
  message AxiomBetStatusResponse {
151
154
  string status = 1;
155
+ }
156
+ //Win Rates
157
+ message WinRateItem {
158
+ float amount = 1;
159
+ string game_title = 2;
160
+ string game_image = 3;
161
+ string game_provider = 4;
162
+ string user_nickname = 5;
163
+ string currency = 6;
164
+ float multiplier = 7;
165
+ }
166
+ message WinRatesResponse {
167
+ repeated WinRateItem items = 1;
168
+ optional int32 total_pages = 2;
169
+ optional int32 total_items = 3;
152
170
  }
@@ -191,6 +191,17 @@ function deserialize_bet_SegmentedUserResponse(buffer_arg) {
191
191
  return bet_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
192
192
  }
193
193
 
194
+ function serialize_bet_WinRatesResponse(arg) {
195
+ if (!(arg instanceof bet_pb.WinRatesResponse)) {
196
+ throw new Error('Expected argument of type bet.WinRatesResponse');
197
+ }
198
+ return Buffer.from(arg.serializeBinary());
199
+ }
200
+
201
+ function deserialize_bet_WinRatesResponse(buffer_arg) {
202
+ return bet_pb.WinRatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
203
+ }
204
+
194
205
 
195
206
  var BetService = exports.BetService = {
196
207
  checkConnection: {
@@ -297,6 +308,18 @@ axiomGetAuthHash: {
297
308
  responseSerialize: serialize_bet_AxiomBetStatusResponse,
298
309
  responseDeserialize: deserialize_bet_AxiomBetStatusResponse,
299
310
  },
311
+ // Games aggregation
312
+ getWinRates: {
313
+ path: '/bet.Bet/getWinRates',
314
+ requestStream: false,
315
+ responseStream: false,
316
+ requestType: bet_pb.PaginationRequest,
317
+ responseType: bet_pb.WinRatesResponse,
318
+ requestSerialize: serialize_bet_PaginationRequest,
319
+ requestDeserialize: deserialize_bet_PaginationRequest,
320
+ responseSerialize: serialize_bet_WinRatesResponse,
321
+ responseDeserialize: deserialize_bet_WinRatesResponse,
322
+ },
300
323
  };
301
324
 
302
325
  exports.BetClient = grpc.makeGenericClientConstructor(BetService, 'Bet');
package/bet/bet_pb.js CHANGED
@@ -41,6 +41,8 @@ goog.exportSymbol('proto.bet.SegmentedUserRequest', null, global);
41
41
  goog.exportSymbol('proto.bet.SegmentedUserResponse', null, global);
42
42
  goog.exportSymbol('proto.bet.UserBetItem', null, global);
43
43
  goog.exportSymbol('proto.bet.UserSearchRequest', null, global);
44
+ goog.exportSymbol('proto.bet.WinRateItem', null, global);
45
+ goog.exportSymbol('proto.bet.WinRatesResponse', null, global);
44
46
  /**
45
47
  * Generated by JsPbCodeGenerator.
46
48
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -461,6 +463,48 @@ if (goog.DEBUG && !COMPILED) {
461
463
  */
462
464
  proto.bet.AxiomBetStatusResponse.displayName = 'proto.bet.AxiomBetStatusResponse';
463
465
  }
466
+ /**
467
+ * Generated by JsPbCodeGenerator.
468
+ * @param {Array=} opt_data Optional initial data array, typically from a
469
+ * server response, or constructed directly in Javascript. The array is used
470
+ * in place and becomes part of the constructed object. It is not cloned.
471
+ * If no data is provided, the constructed object will be empty, but still
472
+ * valid.
473
+ * @extends {jspb.Message}
474
+ * @constructor
475
+ */
476
+ proto.bet.WinRateItem = function(opt_data) {
477
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
478
+ };
479
+ goog.inherits(proto.bet.WinRateItem, jspb.Message);
480
+ if (goog.DEBUG && !COMPILED) {
481
+ /**
482
+ * @public
483
+ * @override
484
+ */
485
+ proto.bet.WinRateItem.displayName = 'proto.bet.WinRateItem';
486
+ }
487
+ /**
488
+ * Generated by JsPbCodeGenerator.
489
+ * @param {Array=} opt_data Optional initial data array, typically from a
490
+ * server response, or constructed directly in Javascript. The array is used
491
+ * in place and becomes part of the constructed object. It is not cloned.
492
+ * If no data is provided, the constructed object will be empty, but still
493
+ * valid.
494
+ * @extends {jspb.Message}
495
+ * @constructor
496
+ */
497
+ proto.bet.WinRatesResponse = function(opt_data) {
498
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.WinRatesResponse.repeatedFields_, null);
499
+ };
500
+ goog.inherits(proto.bet.WinRatesResponse, jspb.Message);
501
+ if (goog.DEBUG && !COMPILED) {
502
+ /**
503
+ * @public
504
+ * @override
505
+ */
506
+ proto.bet.WinRatesResponse.displayName = 'proto.bet.WinRatesResponse';
507
+ }
464
508
 
465
509
 
466
510
 
@@ -2965,7 +3009,8 @@ proto.bet.UserBetItem.toObject = function(includeInstance, msg) {
2965
3009
  sessionId: jspb.Message.getFieldWithDefault(msg, 12, ""),
2966
3010
  roundId: jspb.Message.getFieldWithDefault(msg, 13, ""),
2967
3011
  created: jspb.Message.getFieldWithDefault(msg, 14, ""),
2968
- userDevice: jspb.Message.getFieldWithDefault(msg, 15, "")
3012
+ userDevice: jspb.Message.getFieldWithDefault(msg, 15, ""),
3013
+ multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0)
2969
3014
  };
2970
3015
 
2971
3016
  if (includeInstance) {
@@ -3062,6 +3107,10 @@ proto.bet.UserBetItem.deserializeBinaryFromReader = function(msg, reader) {
3062
3107
  var value = /** @type {string} */ (reader.readString());
3063
3108
  msg.setUserDevice(value);
3064
3109
  break;
3110
+ case 16:
3111
+ var value = /** @type {number} */ (reader.readFloat());
3112
+ msg.setMultiplier(value);
3113
+ break;
3065
3114
  default:
3066
3115
  reader.skipField();
3067
3116
  break;
@@ -3196,6 +3245,13 @@ proto.bet.UserBetItem.serializeBinaryToWriter = function(message, writer) {
3196
3245
  f
3197
3246
  );
3198
3247
  }
3248
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
3249
+ if (f != null) {
3250
+ writer.writeFloat(
3251
+ 16,
3252
+ f
3253
+ );
3254
+ }
3199
3255
  };
3200
3256
 
3201
3257
 
@@ -3577,6 +3633,42 @@ proto.bet.UserBetItem.prototype.hasUserDevice = function() {
3577
3633
  };
3578
3634
 
3579
3635
 
3636
+ /**
3637
+ * optional float multiplier = 16;
3638
+ * @return {number}
3639
+ */
3640
+ proto.bet.UserBetItem.prototype.getMultiplier = function() {
3641
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
3642
+ };
3643
+
3644
+
3645
+ /**
3646
+ * @param {number} value
3647
+ * @return {!proto.bet.UserBetItem} returns this
3648
+ */
3649
+ proto.bet.UserBetItem.prototype.setMultiplier = function(value) {
3650
+ return jspb.Message.setField(this, 16, value);
3651
+ };
3652
+
3653
+
3654
+ /**
3655
+ * Clears the field making it undefined.
3656
+ * @return {!proto.bet.UserBetItem} returns this
3657
+ */
3658
+ proto.bet.UserBetItem.prototype.clearMultiplier = function() {
3659
+ return jspb.Message.setField(this, 16, undefined);
3660
+ };
3661
+
3662
+
3663
+ /**
3664
+ * Returns whether this field is set.
3665
+ * @return {boolean}
3666
+ */
3667
+ proto.bet.UserBetItem.prototype.hasMultiplier = function() {
3668
+ return jspb.Message.getField(this, 16) != null;
3669
+ };
3670
+
3671
+
3580
3672
 
3581
3673
  /**
3582
3674
  * List of repeated fields within this message type.
@@ -6495,4 +6587,570 @@ proto.bet.AxiomBetStatusResponse.prototype.setStatus = function(value) {
6495
6587
  };
6496
6588
 
6497
6589
 
6590
+
6591
+
6592
+
6593
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6594
+ /**
6595
+ * Creates an object representation of this proto.
6596
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6597
+ * Optional fields that are not set will be set to undefined.
6598
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6599
+ * For the list of reserved names please see:
6600
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6601
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6602
+ * JSPB instance for transitional soy proto support:
6603
+ * http://goto/soy-param-migration
6604
+ * @return {!Object}
6605
+ */
6606
+ proto.bet.WinRateItem.prototype.toObject = function(opt_includeInstance) {
6607
+ return proto.bet.WinRateItem.toObject(opt_includeInstance, this);
6608
+ };
6609
+
6610
+
6611
+ /**
6612
+ * Static version of the {@see toObject} method.
6613
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6614
+ * the JSPB instance for transitional soy proto support:
6615
+ * http://goto/soy-param-migration
6616
+ * @param {!proto.bet.WinRateItem} msg The msg instance to transform.
6617
+ * @return {!Object}
6618
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6619
+ */
6620
+ proto.bet.WinRateItem.toObject = function(includeInstance, msg) {
6621
+ var f, obj = {
6622
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
6623
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
6624
+ gameImage: jspb.Message.getFieldWithDefault(msg, 3, ""),
6625
+ gameProvider: jspb.Message.getFieldWithDefault(msg, 4, ""),
6626
+ userNickname: jspb.Message.getFieldWithDefault(msg, 5, ""),
6627
+ currency: jspb.Message.getFieldWithDefault(msg, 6, ""),
6628
+ multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
6629
+ };
6630
+
6631
+ if (includeInstance) {
6632
+ obj.$jspbMessageInstance = msg;
6633
+ }
6634
+ return obj;
6635
+ };
6636
+ }
6637
+
6638
+
6639
+ /**
6640
+ * Deserializes binary data (in protobuf wire format).
6641
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6642
+ * @return {!proto.bet.WinRateItem}
6643
+ */
6644
+ proto.bet.WinRateItem.deserializeBinary = function(bytes) {
6645
+ var reader = new jspb.BinaryReader(bytes);
6646
+ var msg = new proto.bet.WinRateItem;
6647
+ return proto.bet.WinRateItem.deserializeBinaryFromReader(msg, reader);
6648
+ };
6649
+
6650
+
6651
+ /**
6652
+ * Deserializes binary data (in protobuf wire format) from the
6653
+ * given reader into the given message object.
6654
+ * @param {!proto.bet.WinRateItem} msg The message object to deserialize into.
6655
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6656
+ * @return {!proto.bet.WinRateItem}
6657
+ */
6658
+ proto.bet.WinRateItem.deserializeBinaryFromReader = function(msg, reader) {
6659
+ while (reader.nextField()) {
6660
+ if (reader.isEndGroup()) {
6661
+ break;
6662
+ }
6663
+ var field = reader.getFieldNumber();
6664
+ switch (field) {
6665
+ case 1:
6666
+ var value = /** @type {number} */ (reader.readFloat());
6667
+ msg.setAmount(value);
6668
+ break;
6669
+ case 2:
6670
+ var value = /** @type {string} */ (reader.readString());
6671
+ msg.setGameTitle(value);
6672
+ break;
6673
+ case 3:
6674
+ var value = /** @type {string} */ (reader.readString());
6675
+ msg.setGameImage(value);
6676
+ break;
6677
+ case 4:
6678
+ var value = /** @type {string} */ (reader.readString());
6679
+ msg.setGameProvider(value);
6680
+ break;
6681
+ case 5:
6682
+ var value = /** @type {string} */ (reader.readString());
6683
+ msg.setUserNickname(value);
6684
+ break;
6685
+ case 6:
6686
+ var value = /** @type {string} */ (reader.readString());
6687
+ msg.setCurrency(value);
6688
+ break;
6689
+ case 7:
6690
+ var value = /** @type {number} */ (reader.readFloat());
6691
+ msg.setMultiplier(value);
6692
+ break;
6693
+ default:
6694
+ reader.skipField();
6695
+ break;
6696
+ }
6697
+ }
6698
+ return msg;
6699
+ };
6700
+
6701
+
6702
+ /**
6703
+ * Serializes the message to binary data (in protobuf wire format).
6704
+ * @return {!Uint8Array}
6705
+ */
6706
+ proto.bet.WinRateItem.prototype.serializeBinary = function() {
6707
+ var writer = new jspb.BinaryWriter();
6708
+ proto.bet.WinRateItem.serializeBinaryToWriter(this, writer);
6709
+ return writer.getResultBuffer();
6710
+ };
6711
+
6712
+
6713
+ /**
6714
+ * Serializes the given message to binary data (in protobuf wire
6715
+ * format), writing to the given BinaryWriter.
6716
+ * @param {!proto.bet.WinRateItem} message
6717
+ * @param {!jspb.BinaryWriter} writer
6718
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6719
+ */
6720
+ proto.bet.WinRateItem.serializeBinaryToWriter = function(message, writer) {
6721
+ var f = undefined;
6722
+ f = message.getAmount();
6723
+ if (f !== 0.0) {
6724
+ writer.writeFloat(
6725
+ 1,
6726
+ f
6727
+ );
6728
+ }
6729
+ f = message.getGameTitle();
6730
+ if (f.length > 0) {
6731
+ writer.writeString(
6732
+ 2,
6733
+ f
6734
+ );
6735
+ }
6736
+ f = message.getGameImage();
6737
+ if (f.length > 0) {
6738
+ writer.writeString(
6739
+ 3,
6740
+ f
6741
+ );
6742
+ }
6743
+ f = message.getGameProvider();
6744
+ if (f.length > 0) {
6745
+ writer.writeString(
6746
+ 4,
6747
+ f
6748
+ );
6749
+ }
6750
+ f = message.getUserNickname();
6751
+ if (f.length > 0) {
6752
+ writer.writeString(
6753
+ 5,
6754
+ f
6755
+ );
6756
+ }
6757
+ f = message.getCurrency();
6758
+ if (f.length > 0) {
6759
+ writer.writeString(
6760
+ 6,
6761
+ f
6762
+ );
6763
+ }
6764
+ f = message.getMultiplier();
6765
+ if (f !== 0.0) {
6766
+ writer.writeFloat(
6767
+ 7,
6768
+ f
6769
+ );
6770
+ }
6771
+ };
6772
+
6773
+
6774
+ /**
6775
+ * optional float amount = 1;
6776
+ * @return {number}
6777
+ */
6778
+ proto.bet.WinRateItem.prototype.getAmount = function() {
6779
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
6780
+ };
6781
+
6782
+
6783
+ /**
6784
+ * @param {number} value
6785
+ * @return {!proto.bet.WinRateItem} returns this
6786
+ */
6787
+ proto.bet.WinRateItem.prototype.setAmount = function(value) {
6788
+ return jspb.Message.setProto3FloatField(this, 1, value);
6789
+ };
6790
+
6791
+
6792
+ /**
6793
+ * optional string game_title = 2;
6794
+ * @return {string}
6795
+ */
6796
+ proto.bet.WinRateItem.prototype.getGameTitle = function() {
6797
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6798
+ };
6799
+
6800
+
6801
+ /**
6802
+ * @param {string} value
6803
+ * @return {!proto.bet.WinRateItem} returns this
6804
+ */
6805
+ proto.bet.WinRateItem.prototype.setGameTitle = function(value) {
6806
+ return jspb.Message.setProto3StringField(this, 2, value);
6807
+ };
6808
+
6809
+
6810
+ /**
6811
+ * optional string game_image = 3;
6812
+ * @return {string}
6813
+ */
6814
+ proto.bet.WinRateItem.prototype.getGameImage = function() {
6815
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6816
+ };
6817
+
6818
+
6819
+ /**
6820
+ * @param {string} value
6821
+ * @return {!proto.bet.WinRateItem} returns this
6822
+ */
6823
+ proto.bet.WinRateItem.prototype.setGameImage = function(value) {
6824
+ return jspb.Message.setProto3StringField(this, 3, value);
6825
+ };
6826
+
6827
+
6828
+ /**
6829
+ * optional string game_provider = 4;
6830
+ * @return {string}
6831
+ */
6832
+ proto.bet.WinRateItem.prototype.getGameProvider = function() {
6833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6834
+ };
6835
+
6836
+
6837
+ /**
6838
+ * @param {string} value
6839
+ * @return {!proto.bet.WinRateItem} returns this
6840
+ */
6841
+ proto.bet.WinRateItem.prototype.setGameProvider = function(value) {
6842
+ return jspb.Message.setProto3StringField(this, 4, value);
6843
+ };
6844
+
6845
+
6846
+ /**
6847
+ * optional string user_nickname = 5;
6848
+ * @return {string}
6849
+ */
6850
+ proto.bet.WinRateItem.prototype.getUserNickname = function() {
6851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6852
+ };
6853
+
6854
+
6855
+ /**
6856
+ * @param {string} value
6857
+ * @return {!proto.bet.WinRateItem} returns this
6858
+ */
6859
+ proto.bet.WinRateItem.prototype.setUserNickname = function(value) {
6860
+ return jspb.Message.setProto3StringField(this, 5, value);
6861
+ };
6862
+
6863
+
6864
+ /**
6865
+ * optional string currency = 6;
6866
+ * @return {string}
6867
+ */
6868
+ proto.bet.WinRateItem.prototype.getCurrency = function() {
6869
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6870
+ };
6871
+
6872
+
6873
+ /**
6874
+ * @param {string} value
6875
+ * @return {!proto.bet.WinRateItem} returns this
6876
+ */
6877
+ proto.bet.WinRateItem.prototype.setCurrency = function(value) {
6878
+ return jspb.Message.setProto3StringField(this, 6, value);
6879
+ };
6880
+
6881
+
6882
+ /**
6883
+ * optional float multiplier = 7;
6884
+ * @return {number}
6885
+ */
6886
+ proto.bet.WinRateItem.prototype.getMultiplier = function() {
6887
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
6888
+ };
6889
+
6890
+
6891
+ /**
6892
+ * @param {number} value
6893
+ * @return {!proto.bet.WinRateItem} returns this
6894
+ */
6895
+ proto.bet.WinRateItem.prototype.setMultiplier = function(value) {
6896
+ return jspb.Message.setProto3FloatField(this, 7, value);
6897
+ };
6898
+
6899
+
6900
+
6901
+ /**
6902
+ * List of repeated fields within this message type.
6903
+ * @private {!Array<number>}
6904
+ * @const
6905
+ */
6906
+ proto.bet.WinRatesResponse.repeatedFields_ = [1];
6907
+
6908
+
6909
+
6910
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6911
+ /**
6912
+ * Creates an object representation of this proto.
6913
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6914
+ * Optional fields that are not set will be set to undefined.
6915
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6916
+ * For the list of reserved names please see:
6917
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6918
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6919
+ * JSPB instance for transitional soy proto support:
6920
+ * http://goto/soy-param-migration
6921
+ * @return {!Object}
6922
+ */
6923
+ proto.bet.WinRatesResponse.prototype.toObject = function(opt_includeInstance) {
6924
+ return proto.bet.WinRatesResponse.toObject(opt_includeInstance, this);
6925
+ };
6926
+
6927
+
6928
+ /**
6929
+ * Static version of the {@see toObject} method.
6930
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6931
+ * the JSPB instance for transitional soy proto support:
6932
+ * http://goto/soy-param-migration
6933
+ * @param {!proto.bet.WinRatesResponse} msg The msg instance to transform.
6934
+ * @return {!Object}
6935
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6936
+ */
6937
+ proto.bet.WinRatesResponse.toObject = function(includeInstance, msg) {
6938
+ var f, obj = {
6939
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
6940
+ proto.bet.WinRateItem.toObject, includeInstance),
6941
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
6942
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
6943
+ };
6944
+
6945
+ if (includeInstance) {
6946
+ obj.$jspbMessageInstance = msg;
6947
+ }
6948
+ return obj;
6949
+ };
6950
+ }
6951
+
6952
+
6953
+ /**
6954
+ * Deserializes binary data (in protobuf wire format).
6955
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6956
+ * @return {!proto.bet.WinRatesResponse}
6957
+ */
6958
+ proto.bet.WinRatesResponse.deserializeBinary = function(bytes) {
6959
+ var reader = new jspb.BinaryReader(bytes);
6960
+ var msg = new proto.bet.WinRatesResponse;
6961
+ return proto.bet.WinRatesResponse.deserializeBinaryFromReader(msg, reader);
6962
+ };
6963
+
6964
+
6965
+ /**
6966
+ * Deserializes binary data (in protobuf wire format) from the
6967
+ * given reader into the given message object.
6968
+ * @param {!proto.bet.WinRatesResponse} msg The message object to deserialize into.
6969
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6970
+ * @return {!proto.bet.WinRatesResponse}
6971
+ */
6972
+ proto.bet.WinRatesResponse.deserializeBinaryFromReader = function(msg, reader) {
6973
+ while (reader.nextField()) {
6974
+ if (reader.isEndGroup()) {
6975
+ break;
6976
+ }
6977
+ var field = reader.getFieldNumber();
6978
+ switch (field) {
6979
+ case 1:
6980
+ var value = new proto.bet.WinRateItem;
6981
+ reader.readMessage(value,proto.bet.WinRateItem.deserializeBinaryFromReader);
6982
+ msg.addItems(value);
6983
+ break;
6984
+ case 2:
6985
+ var value = /** @type {number} */ (reader.readInt32());
6986
+ msg.setTotalPages(value);
6987
+ break;
6988
+ case 3:
6989
+ var value = /** @type {number} */ (reader.readInt32());
6990
+ msg.setTotalItems(value);
6991
+ break;
6992
+ default:
6993
+ reader.skipField();
6994
+ break;
6995
+ }
6996
+ }
6997
+ return msg;
6998
+ };
6999
+
7000
+
7001
+ /**
7002
+ * Serializes the message to binary data (in protobuf wire format).
7003
+ * @return {!Uint8Array}
7004
+ */
7005
+ proto.bet.WinRatesResponse.prototype.serializeBinary = function() {
7006
+ var writer = new jspb.BinaryWriter();
7007
+ proto.bet.WinRatesResponse.serializeBinaryToWriter(this, writer);
7008
+ return writer.getResultBuffer();
7009
+ };
7010
+
7011
+
7012
+ /**
7013
+ * Serializes the given message to binary data (in protobuf wire
7014
+ * format), writing to the given BinaryWriter.
7015
+ * @param {!proto.bet.WinRatesResponse} message
7016
+ * @param {!jspb.BinaryWriter} writer
7017
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7018
+ */
7019
+ proto.bet.WinRatesResponse.serializeBinaryToWriter = function(message, writer) {
7020
+ var f = undefined;
7021
+ f = message.getItemsList();
7022
+ if (f.length > 0) {
7023
+ writer.writeRepeatedMessage(
7024
+ 1,
7025
+ f,
7026
+ proto.bet.WinRateItem.serializeBinaryToWriter
7027
+ );
7028
+ }
7029
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
7030
+ if (f != null) {
7031
+ writer.writeInt32(
7032
+ 2,
7033
+ f
7034
+ );
7035
+ }
7036
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
7037
+ if (f != null) {
7038
+ writer.writeInt32(
7039
+ 3,
7040
+ f
7041
+ );
7042
+ }
7043
+ };
7044
+
7045
+
7046
+ /**
7047
+ * repeated WinRateItem items = 1;
7048
+ * @return {!Array<!proto.bet.WinRateItem>}
7049
+ */
7050
+ proto.bet.WinRatesResponse.prototype.getItemsList = function() {
7051
+ return /** @type{!Array<!proto.bet.WinRateItem>} */ (
7052
+ jspb.Message.getRepeatedWrapperField(this, proto.bet.WinRateItem, 1));
7053
+ };
7054
+
7055
+
7056
+ /**
7057
+ * @param {!Array<!proto.bet.WinRateItem>} value
7058
+ * @return {!proto.bet.WinRatesResponse} returns this
7059
+ */
7060
+ proto.bet.WinRatesResponse.prototype.setItemsList = function(value) {
7061
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
7062
+ };
7063
+
7064
+
7065
+ /**
7066
+ * @param {!proto.bet.WinRateItem=} opt_value
7067
+ * @param {number=} opt_index
7068
+ * @return {!proto.bet.WinRateItem}
7069
+ */
7070
+ proto.bet.WinRatesResponse.prototype.addItems = function(opt_value, opt_index) {
7071
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.WinRateItem, opt_index);
7072
+ };
7073
+
7074
+
7075
+ /**
7076
+ * Clears the list making it empty but non-null.
7077
+ * @return {!proto.bet.WinRatesResponse} returns this
7078
+ */
7079
+ proto.bet.WinRatesResponse.prototype.clearItemsList = function() {
7080
+ return this.setItemsList([]);
7081
+ };
7082
+
7083
+
7084
+ /**
7085
+ * optional int32 total_pages = 2;
7086
+ * @return {number}
7087
+ */
7088
+ proto.bet.WinRatesResponse.prototype.getTotalPages = function() {
7089
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7090
+ };
7091
+
7092
+
7093
+ /**
7094
+ * @param {number} value
7095
+ * @return {!proto.bet.WinRatesResponse} returns this
7096
+ */
7097
+ proto.bet.WinRatesResponse.prototype.setTotalPages = function(value) {
7098
+ return jspb.Message.setField(this, 2, value);
7099
+ };
7100
+
7101
+
7102
+ /**
7103
+ * Clears the field making it undefined.
7104
+ * @return {!proto.bet.WinRatesResponse} returns this
7105
+ */
7106
+ proto.bet.WinRatesResponse.prototype.clearTotalPages = function() {
7107
+ return jspb.Message.setField(this, 2, undefined);
7108
+ };
7109
+
7110
+
7111
+ /**
7112
+ * Returns whether this field is set.
7113
+ * @return {boolean}
7114
+ */
7115
+ proto.bet.WinRatesResponse.prototype.hasTotalPages = function() {
7116
+ return jspb.Message.getField(this, 2) != null;
7117
+ };
7118
+
7119
+
7120
+ /**
7121
+ * optional int32 total_items = 3;
7122
+ * @return {number}
7123
+ */
7124
+ proto.bet.WinRatesResponse.prototype.getTotalItems = function() {
7125
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7126
+ };
7127
+
7128
+
7129
+ /**
7130
+ * @param {number} value
7131
+ * @return {!proto.bet.WinRatesResponse} returns this
7132
+ */
7133
+ proto.bet.WinRatesResponse.prototype.setTotalItems = function(value) {
7134
+ return jspb.Message.setField(this, 3, value);
7135
+ };
7136
+
7137
+
7138
+ /**
7139
+ * Clears the field making it undefined.
7140
+ * @return {!proto.bet.WinRatesResponse} returns this
7141
+ */
7142
+ proto.bet.WinRatesResponse.prototype.clearTotalItems = function() {
7143
+ return jspb.Message.setField(this, 3, undefined);
7144
+ };
7145
+
7146
+
7147
+ /**
7148
+ * Returns whether this field is set.
7149
+ * @return {boolean}
7150
+ */
7151
+ proto.bet.WinRatesResponse.prototype.hasTotalItems = function() {
7152
+ return jspb.Message.getField(this, 3) != null;
7153
+ };
7154
+
7155
+
6498
7156
  goog.object.extend(exports, proto.bet);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -18,6 +18,7 @@ service User {
18
18
  rpc updateUserPassword(UserPasswordRequest) returns (UserStatusResponse);
19
19
  rpc setUserSelfExclusion(UserRequest) returns (UserStatusResponse);
20
20
  rpc updateUserBalanceAfterAction(UserActionRequest) returns (UserActionResponse);
21
+ rpc readListPoorUsers(PaginationRequest) returns (UsersResponse);
21
22
  //Segments
22
23
  rpc createSingleSegment(SegmentRequest) returns (SegmentResponse);
23
24
  rpc readSingleSegment(GetSegmentRequest) returns (SegmentResponse);
@@ -713,6 +713,17 @@ readListUsers: {
713
713
  responseSerialize: serialize_user_UserActionResponse,
714
714
  responseDeserialize: deserialize_user_UserActionResponse,
715
715
  },
716
+ readListPoorUsers: {
717
+ path: '/user.User/readListPoorUsers',
718
+ requestStream: false,
719
+ responseStream: false,
720
+ requestType: user_pb.PaginationRequest,
721
+ responseType: user_pb.UsersResponse,
722
+ requestSerialize: serialize_user_PaginationRequest,
723
+ requestDeserialize: deserialize_user_PaginationRequest,
724
+ responseSerialize: serialize_user_UsersResponse,
725
+ responseDeserialize: deserialize_user_UsersResponse,
726
+ },
716
727
  // Segments
717
728
  createSingleSegment: {
718
729
  path: '/user.User/createSingleSegment',