protobuf-platform 1.1.80 → 1.1.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.80",
3
+ "version": "1.1.82",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,6 +30,8 @@ service Payment {
30
30
  rpc userPaymentsInfo(GetUserPaymentsInfoRequest) returns (UserPaymentsInfoResponse);
31
31
  rpc userDepositHistory(GetUserPaymentsInfoRequest) returns (UserDepositItemsResponse);
32
32
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
33
+ //Segmentation
34
+ rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
33
35
  }
34
36
  //Technical
35
37
  message PingRequest { string ping = 1; }
@@ -271,4 +273,23 @@ message UserPaymentMethodsResponse {
271
273
  repeated UserPaymentMethodItem items = 1;
272
274
  optional int32 total_pages = 2;
273
275
  optional int32 total_items = 3;
276
+ }
277
+ //Segmentation
278
+ message SegmentedUserRequest {
279
+ optional float deposit_amount_min = 1;
280
+ optional float deposit_amount_max = 2;
281
+ optional float ftd_amount_min = 3;
282
+ optional float ftd_amount_max = 4;
283
+ optional int32 deposit_count_min = 5;
284
+ optional int32 deposit_count_max = 6;
285
+ optional float deposit_sum_min = 7;
286
+ optional float deposit_sum_max = 8;
287
+ optional float deposit_avg_min = 9;
288
+ optional float deposit_avg_max = 10;
289
+ optional string currency = 11;
290
+ repeated string payment_providers = 12;
291
+ repeated string payment_types = 13;
292
+ }
293
+ message SegmentedUserResponse {
294
+ repeated int32 user_ids = 1;
274
295
  }
@@ -257,6 +257,28 @@ function deserialize_payment_ProviderResponse(buffer_arg) {
257
257
  return payment_pb.ProviderResponse.deserializeBinary(new Uint8Array(buffer_arg));
258
258
  }
259
259
 
260
+ function serialize_payment_SegmentedUserRequest(arg) {
261
+ if (!(arg instanceof payment_pb.SegmentedUserRequest)) {
262
+ throw new Error('Expected argument of type payment.SegmentedUserRequest');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_payment_SegmentedUserRequest(buffer_arg) {
268
+ return payment_pb.SegmentedUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
271
+ function serialize_payment_SegmentedUserResponse(arg) {
272
+ if (!(arg instanceof payment_pb.SegmentedUserResponse)) {
273
+ throw new Error('Expected argument of type payment.SegmentedUserResponse');
274
+ }
275
+ return Buffer.from(arg.serializeBinary());
276
+ }
277
+
278
+ function deserialize_payment_SegmentedUserResponse(buffer_arg) {
279
+ return payment_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
280
+ }
281
+
260
282
  function serialize_payment_UserDepositItemsResponse(arg) {
261
283
  if (!(arg instanceof payment_pb.UserDepositItemsResponse)) {
262
284
  throw new Error('Expected argument of type payment.UserDepositItemsResponse');
@@ -539,6 +561,18 @@ userPaymentsInfo: {
539
561
  responseSerialize: serialize_payment_UserPaymentMethodsResponse,
540
562
  responseDeserialize: deserialize_payment_UserPaymentMethodsResponse,
541
563
  },
564
+ // Segmentation
565
+ getSegmentedUsers: {
566
+ path: '/payment.Payment/getSegmentedUsers',
567
+ requestStream: false,
568
+ responseStream: false,
569
+ requestType: payment_pb.SegmentedUserRequest,
570
+ responseType: payment_pb.SegmentedUserResponse,
571
+ requestSerialize: serialize_payment_SegmentedUserRequest,
572
+ requestDeserialize: deserialize_payment_SegmentedUserRequest,
573
+ responseSerialize: serialize_payment_SegmentedUserResponse,
574
+ responseDeserialize: deserialize_payment_SegmentedUserResponse,
575
+ },
542
576
  };
543
577
 
544
578
  exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
@@ -53,6 +53,8 @@ goog.exportSymbol('proto.payment.ProviderItemsResponse', null, global);
53
53
  goog.exportSymbol('proto.payment.ProviderRequest', null, global);
54
54
  goog.exportSymbol('proto.payment.ProviderRequest.RequestCase', null, global);
55
55
  goog.exportSymbol('proto.payment.ProviderResponse', null, global);
56
+ goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
57
+ goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
56
58
  goog.exportSymbol('proto.payment.UserDepositItem', null, global);
57
59
  goog.exportSymbol('proto.payment.UserDepositItemsResponse', null, global);
58
60
  goog.exportSymbol('proto.payment.UserPaymentMethodItem', null, global);
@@ -793,6 +795,48 @@ if (goog.DEBUG && !COMPILED) {
793
795
  */
794
796
  proto.payment.UserPaymentMethodsResponse.displayName = 'proto.payment.UserPaymentMethodsResponse';
795
797
  }
798
+ /**
799
+ * Generated by JsPbCodeGenerator.
800
+ * @param {Array=} opt_data Optional initial data array, typically from a
801
+ * server response, or constructed directly in Javascript. The array is used
802
+ * in place and becomes part of the constructed object. It is not cloned.
803
+ * If no data is provided, the constructed object will be empty, but still
804
+ * valid.
805
+ * @extends {jspb.Message}
806
+ * @constructor
807
+ */
808
+ proto.payment.SegmentedUserRequest = function(opt_data) {
809
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.SegmentedUserRequest.repeatedFields_, null);
810
+ };
811
+ goog.inherits(proto.payment.SegmentedUserRequest, jspb.Message);
812
+ if (goog.DEBUG && !COMPILED) {
813
+ /**
814
+ * @public
815
+ * @override
816
+ */
817
+ proto.payment.SegmentedUserRequest.displayName = 'proto.payment.SegmentedUserRequest';
818
+ }
819
+ /**
820
+ * Generated by JsPbCodeGenerator.
821
+ * @param {Array=} opt_data Optional initial data array, typically from a
822
+ * server response, or constructed directly in Javascript. The array is used
823
+ * in place and becomes part of the constructed object. It is not cloned.
824
+ * If no data is provided, the constructed object will be empty, but still
825
+ * valid.
826
+ * @extends {jspb.Message}
827
+ * @constructor
828
+ */
829
+ proto.payment.SegmentedUserResponse = function(opt_data) {
830
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.SegmentedUserResponse.repeatedFields_, null);
831
+ };
832
+ goog.inherits(proto.payment.SegmentedUserResponse, jspb.Message);
833
+ if (goog.DEBUG && !COMPILED) {
834
+ /**
835
+ * @public
836
+ * @override
837
+ */
838
+ proto.payment.SegmentedUserResponse.displayName = 'proto.payment.SegmentedUserResponse';
839
+ }
796
840
 
797
841
 
798
842
 
@@ -11585,4 +11629,895 @@ proto.payment.UserPaymentMethodsResponse.prototype.hasTotalItems = function() {
11585
11629
  };
11586
11630
 
11587
11631
 
11632
+
11633
+ /**
11634
+ * List of repeated fields within this message type.
11635
+ * @private {!Array<number>}
11636
+ * @const
11637
+ */
11638
+ proto.payment.SegmentedUserRequest.repeatedFields_ = [12,13];
11639
+
11640
+
11641
+
11642
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11643
+ /**
11644
+ * Creates an object representation of this proto.
11645
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11646
+ * Optional fields that are not set will be set to undefined.
11647
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11648
+ * For the list of reserved names please see:
11649
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11650
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11651
+ * JSPB instance for transitional soy proto support:
11652
+ * http://goto/soy-param-migration
11653
+ * @return {!Object}
11654
+ */
11655
+ proto.payment.SegmentedUserRequest.prototype.toObject = function(opt_includeInstance) {
11656
+ return proto.payment.SegmentedUserRequest.toObject(opt_includeInstance, this);
11657
+ };
11658
+
11659
+
11660
+ /**
11661
+ * Static version of the {@see toObject} method.
11662
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11663
+ * the JSPB instance for transitional soy proto support:
11664
+ * http://goto/soy-param-migration
11665
+ * @param {!proto.payment.SegmentedUserRequest} msg The msg instance to transform.
11666
+ * @return {!Object}
11667
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11668
+ */
11669
+ proto.payment.SegmentedUserRequest.toObject = function(includeInstance, msg) {
11670
+ var f, obj = {
11671
+ depositAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
11672
+ depositAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
11673
+ ftdAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
11674
+ ftdAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
11675
+ depositCountMin: jspb.Message.getFieldWithDefault(msg, 5, 0),
11676
+ depositCountMax: jspb.Message.getFieldWithDefault(msg, 6, 0),
11677
+ depositSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
11678
+ depositSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
11679
+ depositAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
11680
+ depositAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
11681
+ currency: jspb.Message.getFieldWithDefault(msg, 11, ""),
11682
+ paymentProvidersList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
11683
+ paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f
11684
+ };
11685
+
11686
+ if (includeInstance) {
11687
+ obj.$jspbMessageInstance = msg;
11688
+ }
11689
+ return obj;
11690
+ };
11691
+ }
11692
+
11693
+
11694
+ /**
11695
+ * Deserializes binary data (in protobuf wire format).
11696
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11697
+ * @return {!proto.payment.SegmentedUserRequest}
11698
+ */
11699
+ proto.payment.SegmentedUserRequest.deserializeBinary = function(bytes) {
11700
+ var reader = new jspb.BinaryReader(bytes);
11701
+ var msg = new proto.payment.SegmentedUserRequest;
11702
+ return proto.payment.SegmentedUserRequest.deserializeBinaryFromReader(msg, reader);
11703
+ };
11704
+
11705
+
11706
+ /**
11707
+ * Deserializes binary data (in protobuf wire format) from the
11708
+ * given reader into the given message object.
11709
+ * @param {!proto.payment.SegmentedUserRequest} msg The message object to deserialize into.
11710
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11711
+ * @return {!proto.payment.SegmentedUserRequest}
11712
+ */
11713
+ proto.payment.SegmentedUserRequest.deserializeBinaryFromReader = function(msg, reader) {
11714
+ while (reader.nextField()) {
11715
+ if (reader.isEndGroup()) {
11716
+ break;
11717
+ }
11718
+ var field = reader.getFieldNumber();
11719
+ switch (field) {
11720
+ case 1:
11721
+ var value = /** @type {number} */ (reader.readFloat());
11722
+ msg.setDepositAmountMin(value);
11723
+ break;
11724
+ case 2:
11725
+ var value = /** @type {number} */ (reader.readFloat());
11726
+ msg.setDepositAmountMax(value);
11727
+ break;
11728
+ case 3:
11729
+ var value = /** @type {number} */ (reader.readFloat());
11730
+ msg.setFtdAmountMin(value);
11731
+ break;
11732
+ case 4:
11733
+ var value = /** @type {number} */ (reader.readFloat());
11734
+ msg.setFtdAmountMax(value);
11735
+ break;
11736
+ case 5:
11737
+ var value = /** @type {number} */ (reader.readInt32());
11738
+ msg.setDepositCountMin(value);
11739
+ break;
11740
+ case 6:
11741
+ var value = /** @type {number} */ (reader.readInt32());
11742
+ msg.setDepositCountMax(value);
11743
+ break;
11744
+ case 7:
11745
+ var value = /** @type {number} */ (reader.readFloat());
11746
+ msg.setDepositSumMin(value);
11747
+ break;
11748
+ case 8:
11749
+ var value = /** @type {number} */ (reader.readFloat());
11750
+ msg.setDepositSumMax(value);
11751
+ break;
11752
+ case 9:
11753
+ var value = /** @type {number} */ (reader.readFloat());
11754
+ msg.setDepositAvgMin(value);
11755
+ break;
11756
+ case 10:
11757
+ var value = /** @type {number} */ (reader.readFloat());
11758
+ msg.setDepositAvgMax(value);
11759
+ break;
11760
+ case 11:
11761
+ var value = /** @type {string} */ (reader.readString());
11762
+ msg.setCurrency(value);
11763
+ break;
11764
+ case 12:
11765
+ var value = /** @type {string} */ (reader.readString());
11766
+ msg.addPaymentProviders(value);
11767
+ break;
11768
+ case 13:
11769
+ var value = /** @type {string} */ (reader.readString());
11770
+ msg.addPaymentTypes(value);
11771
+ break;
11772
+ default:
11773
+ reader.skipField();
11774
+ break;
11775
+ }
11776
+ }
11777
+ return msg;
11778
+ };
11779
+
11780
+
11781
+ /**
11782
+ * Serializes the message to binary data (in protobuf wire format).
11783
+ * @return {!Uint8Array}
11784
+ */
11785
+ proto.payment.SegmentedUserRequest.prototype.serializeBinary = function() {
11786
+ var writer = new jspb.BinaryWriter();
11787
+ proto.payment.SegmentedUserRequest.serializeBinaryToWriter(this, writer);
11788
+ return writer.getResultBuffer();
11789
+ };
11790
+
11791
+
11792
+ /**
11793
+ * Serializes the given message to binary data (in protobuf wire
11794
+ * format), writing to the given BinaryWriter.
11795
+ * @param {!proto.payment.SegmentedUserRequest} message
11796
+ * @param {!jspb.BinaryWriter} writer
11797
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11798
+ */
11799
+ proto.payment.SegmentedUserRequest.serializeBinaryToWriter = function(message, writer) {
11800
+ var f = undefined;
11801
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
11802
+ if (f != null) {
11803
+ writer.writeFloat(
11804
+ 1,
11805
+ f
11806
+ );
11807
+ }
11808
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
11809
+ if (f != null) {
11810
+ writer.writeFloat(
11811
+ 2,
11812
+ f
11813
+ );
11814
+ }
11815
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
11816
+ if (f != null) {
11817
+ writer.writeFloat(
11818
+ 3,
11819
+ f
11820
+ );
11821
+ }
11822
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
11823
+ if (f != null) {
11824
+ writer.writeFloat(
11825
+ 4,
11826
+ f
11827
+ );
11828
+ }
11829
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
11830
+ if (f != null) {
11831
+ writer.writeInt32(
11832
+ 5,
11833
+ f
11834
+ );
11835
+ }
11836
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
11837
+ if (f != null) {
11838
+ writer.writeInt32(
11839
+ 6,
11840
+ f
11841
+ );
11842
+ }
11843
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
11844
+ if (f != null) {
11845
+ writer.writeFloat(
11846
+ 7,
11847
+ f
11848
+ );
11849
+ }
11850
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
11851
+ if (f != null) {
11852
+ writer.writeFloat(
11853
+ 8,
11854
+ f
11855
+ );
11856
+ }
11857
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
11858
+ if (f != null) {
11859
+ writer.writeFloat(
11860
+ 9,
11861
+ f
11862
+ );
11863
+ }
11864
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
11865
+ if (f != null) {
11866
+ writer.writeFloat(
11867
+ 10,
11868
+ f
11869
+ );
11870
+ }
11871
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
11872
+ if (f != null) {
11873
+ writer.writeString(
11874
+ 11,
11875
+ f
11876
+ );
11877
+ }
11878
+ f = message.getPaymentProvidersList();
11879
+ if (f.length > 0) {
11880
+ writer.writeRepeatedString(
11881
+ 12,
11882
+ f
11883
+ );
11884
+ }
11885
+ f = message.getPaymentTypesList();
11886
+ if (f.length > 0) {
11887
+ writer.writeRepeatedString(
11888
+ 13,
11889
+ f
11890
+ );
11891
+ }
11892
+ };
11893
+
11894
+
11895
+ /**
11896
+ * optional float deposit_amount_min = 1;
11897
+ * @return {number}
11898
+ */
11899
+ proto.payment.SegmentedUserRequest.prototype.getDepositAmountMin = function() {
11900
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
11901
+ };
11902
+
11903
+
11904
+ /**
11905
+ * @param {number} value
11906
+ * @return {!proto.payment.SegmentedUserRequest} returns this
11907
+ */
11908
+ proto.payment.SegmentedUserRequest.prototype.setDepositAmountMin = function(value) {
11909
+ return jspb.Message.setField(this, 1, value);
11910
+ };
11911
+
11912
+
11913
+ /**
11914
+ * Clears the field making it undefined.
11915
+ * @return {!proto.payment.SegmentedUserRequest} returns this
11916
+ */
11917
+ proto.payment.SegmentedUserRequest.prototype.clearDepositAmountMin = function() {
11918
+ return jspb.Message.setField(this, 1, undefined);
11919
+ };
11920
+
11921
+
11922
+ /**
11923
+ * Returns whether this field is set.
11924
+ * @return {boolean}
11925
+ */
11926
+ proto.payment.SegmentedUserRequest.prototype.hasDepositAmountMin = function() {
11927
+ return jspb.Message.getField(this, 1) != null;
11928
+ };
11929
+
11930
+
11931
+ /**
11932
+ * optional float deposit_amount_max = 2;
11933
+ * @return {number}
11934
+ */
11935
+ proto.payment.SegmentedUserRequest.prototype.getDepositAmountMax = function() {
11936
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
11937
+ };
11938
+
11939
+
11940
+ /**
11941
+ * @param {number} value
11942
+ * @return {!proto.payment.SegmentedUserRequest} returns this
11943
+ */
11944
+ proto.payment.SegmentedUserRequest.prototype.setDepositAmountMax = function(value) {
11945
+ return jspb.Message.setField(this, 2, value);
11946
+ };
11947
+
11948
+
11949
+ /**
11950
+ * Clears the field making it undefined.
11951
+ * @return {!proto.payment.SegmentedUserRequest} returns this
11952
+ */
11953
+ proto.payment.SegmentedUserRequest.prototype.clearDepositAmountMax = function() {
11954
+ return jspb.Message.setField(this, 2, undefined);
11955
+ };
11956
+
11957
+
11958
+ /**
11959
+ * Returns whether this field is set.
11960
+ * @return {boolean}
11961
+ */
11962
+ proto.payment.SegmentedUserRequest.prototype.hasDepositAmountMax = function() {
11963
+ return jspb.Message.getField(this, 2) != null;
11964
+ };
11965
+
11966
+
11967
+ /**
11968
+ * optional float ftd_amount_min = 3;
11969
+ * @return {number}
11970
+ */
11971
+ proto.payment.SegmentedUserRequest.prototype.getFtdAmountMin = function() {
11972
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
11973
+ };
11974
+
11975
+
11976
+ /**
11977
+ * @param {number} value
11978
+ * @return {!proto.payment.SegmentedUserRequest} returns this
11979
+ */
11980
+ proto.payment.SegmentedUserRequest.prototype.setFtdAmountMin = function(value) {
11981
+ return jspb.Message.setField(this, 3, value);
11982
+ };
11983
+
11984
+
11985
+ /**
11986
+ * Clears the field making it undefined.
11987
+ * @return {!proto.payment.SegmentedUserRequest} returns this
11988
+ */
11989
+ proto.payment.SegmentedUserRequest.prototype.clearFtdAmountMin = function() {
11990
+ return jspb.Message.setField(this, 3, undefined);
11991
+ };
11992
+
11993
+
11994
+ /**
11995
+ * Returns whether this field is set.
11996
+ * @return {boolean}
11997
+ */
11998
+ proto.payment.SegmentedUserRequest.prototype.hasFtdAmountMin = function() {
11999
+ return jspb.Message.getField(this, 3) != null;
12000
+ };
12001
+
12002
+
12003
+ /**
12004
+ * optional float ftd_amount_max = 4;
12005
+ * @return {number}
12006
+ */
12007
+ proto.payment.SegmentedUserRequest.prototype.getFtdAmountMax = function() {
12008
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
12009
+ };
12010
+
12011
+
12012
+ /**
12013
+ * @param {number} value
12014
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12015
+ */
12016
+ proto.payment.SegmentedUserRequest.prototype.setFtdAmountMax = function(value) {
12017
+ return jspb.Message.setField(this, 4, value);
12018
+ };
12019
+
12020
+
12021
+ /**
12022
+ * Clears the field making it undefined.
12023
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12024
+ */
12025
+ proto.payment.SegmentedUserRequest.prototype.clearFtdAmountMax = function() {
12026
+ return jspb.Message.setField(this, 4, undefined);
12027
+ };
12028
+
12029
+
12030
+ /**
12031
+ * Returns whether this field is set.
12032
+ * @return {boolean}
12033
+ */
12034
+ proto.payment.SegmentedUserRequest.prototype.hasFtdAmountMax = function() {
12035
+ return jspb.Message.getField(this, 4) != null;
12036
+ };
12037
+
12038
+
12039
+ /**
12040
+ * optional int32 deposit_count_min = 5;
12041
+ * @return {number}
12042
+ */
12043
+ proto.payment.SegmentedUserRequest.prototype.getDepositCountMin = function() {
12044
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
12045
+ };
12046
+
12047
+
12048
+ /**
12049
+ * @param {number} value
12050
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12051
+ */
12052
+ proto.payment.SegmentedUserRequest.prototype.setDepositCountMin = function(value) {
12053
+ return jspb.Message.setField(this, 5, value);
12054
+ };
12055
+
12056
+
12057
+ /**
12058
+ * Clears the field making it undefined.
12059
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12060
+ */
12061
+ proto.payment.SegmentedUserRequest.prototype.clearDepositCountMin = function() {
12062
+ return jspb.Message.setField(this, 5, undefined);
12063
+ };
12064
+
12065
+
12066
+ /**
12067
+ * Returns whether this field is set.
12068
+ * @return {boolean}
12069
+ */
12070
+ proto.payment.SegmentedUserRequest.prototype.hasDepositCountMin = function() {
12071
+ return jspb.Message.getField(this, 5) != null;
12072
+ };
12073
+
12074
+
12075
+ /**
12076
+ * optional int32 deposit_count_max = 6;
12077
+ * @return {number}
12078
+ */
12079
+ proto.payment.SegmentedUserRequest.prototype.getDepositCountMax = function() {
12080
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
12081
+ };
12082
+
12083
+
12084
+ /**
12085
+ * @param {number} value
12086
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12087
+ */
12088
+ proto.payment.SegmentedUserRequest.prototype.setDepositCountMax = function(value) {
12089
+ return jspb.Message.setField(this, 6, value);
12090
+ };
12091
+
12092
+
12093
+ /**
12094
+ * Clears the field making it undefined.
12095
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12096
+ */
12097
+ proto.payment.SegmentedUserRequest.prototype.clearDepositCountMax = function() {
12098
+ return jspb.Message.setField(this, 6, undefined);
12099
+ };
12100
+
12101
+
12102
+ /**
12103
+ * Returns whether this field is set.
12104
+ * @return {boolean}
12105
+ */
12106
+ proto.payment.SegmentedUserRequest.prototype.hasDepositCountMax = function() {
12107
+ return jspb.Message.getField(this, 6) != null;
12108
+ };
12109
+
12110
+
12111
+ /**
12112
+ * optional float deposit_sum_min = 7;
12113
+ * @return {number}
12114
+ */
12115
+ proto.payment.SegmentedUserRequest.prototype.getDepositSumMin = function() {
12116
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
12117
+ };
12118
+
12119
+
12120
+ /**
12121
+ * @param {number} value
12122
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12123
+ */
12124
+ proto.payment.SegmentedUserRequest.prototype.setDepositSumMin = function(value) {
12125
+ return jspb.Message.setField(this, 7, value);
12126
+ };
12127
+
12128
+
12129
+ /**
12130
+ * Clears the field making it undefined.
12131
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12132
+ */
12133
+ proto.payment.SegmentedUserRequest.prototype.clearDepositSumMin = function() {
12134
+ return jspb.Message.setField(this, 7, undefined);
12135
+ };
12136
+
12137
+
12138
+ /**
12139
+ * Returns whether this field is set.
12140
+ * @return {boolean}
12141
+ */
12142
+ proto.payment.SegmentedUserRequest.prototype.hasDepositSumMin = function() {
12143
+ return jspb.Message.getField(this, 7) != null;
12144
+ };
12145
+
12146
+
12147
+ /**
12148
+ * optional float deposit_sum_max = 8;
12149
+ * @return {number}
12150
+ */
12151
+ proto.payment.SegmentedUserRequest.prototype.getDepositSumMax = function() {
12152
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
12153
+ };
12154
+
12155
+
12156
+ /**
12157
+ * @param {number} value
12158
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12159
+ */
12160
+ proto.payment.SegmentedUserRequest.prototype.setDepositSumMax = function(value) {
12161
+ return jspb.Message.setField(this, 8, value);
12162
+ };
12163
+
12164
+
12165
+ /**
12166
+ * Clears the field making it undefined.
12167
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12168
+ */
12169
+ proto.payment.SegmentedUserRequest.prototype.clearDepositSumMax = function() {
12170
+ return jspb.Message.setField(this, 8, undefined);
12171
+ };
12172
+
12173
+
12174
+ /**
12175
+ * Returns whether this field is set.
12176
+ * @return {boolean}
12177
+ */
12178
+ proto.payment.SegmentedUserRequest.prototype.hasDepositSumMax = function() {
12179
+ return jspb.Message.getField(this, 8) != null;
12180
+ };
12181
+
12182
+
12183
+ /**
12184
+ * optional float deposit_avg_min = 9;
12185
+ * @return {number}
12186
+ */
12187
+ proto.payment.SegmentedUserRequest.prototype.getDepositAvgMin = function() {
12188
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
12189
+ };
12190
+
12191
+
12192
+ /**
12193
+ * @param {number} value
12194
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12195
+ */
12196
+ proto.payment.SegmentedUserRequest.prototype.setDepositAvgMin = function(value) {
12197
+ return jspb.Message.setField(this, 9, value);
12198
+ };
12199
+
12200
+
12201
+ /**
12202
+ * Clears the field making it undefined.
12203
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12204
+ */
12205
+ proto.payment.SegmentedUserRequest.prototype.clearDepositAvgMin = function() {
12206
+ return jspb.Message.setField(this, 9, undefined);
12207
+ };
12208
+
12209
+
12210
+ /**
12211
+ * Returns whether this field is set.
12212
+ * @return {boolean}
12213
+ */
12214
+ proto.payment.SegmentedUserRequest.prototype.hasDepositAvgMin = function() {
12215
+ return jspb.Message.getField(this, 9) != null;
12216
+ };
12217
+
12218
+
12219
+ /**
12220
+ * optional float deposit_avg_max = 10;
12221
+ * @return {number}
12222
+ */
12223
+ proto.payment.SegmentedUserRequest.prototype.getDepositAvgMax = function() {
12224
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
12225
+ };
12226
+
12227
+
12228
+ /**
12229
+ * @param {number} value
12230
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12231
+ */
12232
+ proto.payment.SegmentedUserRequest.prototype.setDepositAvgMax = function(value) {
12233
+ return jspb.Message.setField(this, 10, value);
12234
+ };
12235
+
12236
+
12237
+ /**
12238
+ * Clears the field making it undefined.
12239
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12240
+ */
12241
+ proto.payment.SegmentedUserRequest.prototype.clearDepositAvgMax = function() {
12242
+ return jspb.Message.setField(this, 10, undefined);
12243
+ };
12244
+
12245
+
12246
+ /**
12247
+ * Returns whether this field is set.
12248
+ * @return {boolean}
12249
+ */
12250
+ proto.payment.SegmentedUserRequest.prototype.hasDepositAvgMax = function() {
12251
+ return jspb.Message.getField(this, 10) != null;
12252
+ };
12253
+
12254
+
12255
+ /**
12256
+ * optional string currency = 11;
12257
+ * @return {string}
12258
+ */
12259
+ proto.payment.SegmentedUserRequest.prototype.getCurrency = function() {
12260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
12261
+ };
12262
+
12263
+
12264
+ /**
12265
+ * @param {string} value
12266
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12267
+ */
12268
+ proto.payment.SegmentedUserRequest.prototype.setCurrency = function(value) {
12269
+ return jspb.Message.setField(this, 11, value);
12270
+ };
12271
+
12272
+
12273
+ /**
12274
+ * Clears the field making it undefined.
12275
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12276
+ */
12277
+ proto.payment.SegmentedUserRequest.prototype.clearCurrency = function() {
12278
+ return jspb.Message.setField(this, 11, undefined);
12279
+ };
12280
+
12281
+
12282
+ /**
12283
+ * Returns whether this field is set.
12284
+ * @return {boolean}
12285
+ */
12286
+ proto.payment.SegmentedUserRequest.prototype.hasCurrency = function() {
12287
+ return jspb.Message.getField(this, 11) != null;
12288
+ };
12289
+
12290
+
12291
+ /**
12292
+ * repeated string payment_providers = 12;
12293
+ * @return {!Array<string>}
12294
+ */
12295
+ proto.payment.SegmentedUserRequest.prototype.getPaymentProvidersList = function() {
12296
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 12));
12297
+ };
12298
+
12299
+
12300
+ /**
12301
+ * @param {!Array<string>} value
12302
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12303
+ */
12304
+ proto.payment.SegmentedUserRequest.prototype.setPaymentProvidersList = function(value) {
12305
+ return jspb.Message.setField(this, 12, value || []);
12306
+ };
12307
+
12308
+
12309
+ /**
12310
+ * @param {string} value
12311
+ * @param {number=} opt_index
12312
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12313
+ */
12314
+ proto.payment.SegmentedUserRequest.prototype.addPaymentProviders = function(value, opt_index) {
12315
+ return jspb.Message.addToRepeatedField(this, 12, value, opt_index);
12316
+ };
12317
+
12318
+
12319
+ /**
12320
+ * Clears the list making it empty but non-null.
12321
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12322
+ */
12323
+ proto.payment.SegmentedUserRequest.prototype.clearPaymentProvidersList = function() {
12324
+ return this.setPaymentProvidersList([]);
12325
+ };
12326
+
12327
+
12328
+ /**
12329
+ * repeated string payment_types = 13;
12330
+ * @return {!Array<string>}
12331
+ */
12332
+ proto.payment.SegmentedUserRequest.prototype.getPaymentTypesList = function() {
12333
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
12334
+ };
12335
+
12336
+
12337
+ /**
12338
+ * @param {!Array<string>} value
12339
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12340
+ */
12341
+ proto.payment.SegmentedUserRequest.prototype.setPaymentTypesList = function(value) {
12342
+ return jspb.Message.setField(this, 13, value || []);
12343
+ };
12344
+
12345
+
12346
+ /**
12347
+ * @param {string} value
12348
+ * @param {number=} opt_index
12349
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12350
+ */
12351
+ proto.payment.SegmentedUserRequest.prototype.addPaymentTypes = function(value, opt_index) {
12352
+ return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
12353
+ };
12354
+
12355
+
12356
+ /**
12357
+ * Clears the list making it empty but non-null.
12358
+ * @return {!proto.payment.SegmentedUserRequest} returns this
12359
+ */
12360
+ proto.payment.SegmentedUserRequest.prototype.clearPaymentTypesList = function() {
12361
+ return this.setPaymentTypesList([]);
12362
+ };
12363
+
12364
+
12365
+
12366
+ /**
12367
+ * List of repeated fields within this message type.
12368
+ * @private {!Array<number>}
12369
+ * @const
12370
+ */
12371
+ proto.payment.SegmentedUserResponse.repeatedFields_ = [1];
12372
+
12373
+
12374
+
12375
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12376
+ /**
12377
+ * Creates an object representation of this proto.
12378
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12379
+ * Optional fields that are not set will be set to undefined.
12380
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12381
+ * For the list of reserved names please see:
12382
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12383
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12384
+ * JSPB instance for transitional soy proto support:
12385
+ * http://goto/soy-param-migration
12386
+ * @return {!Object}
12387
+ */
12388
+ proto.payment.SegmentedUserResponse.prototype.toObject = function(opt_includeInstance) {
12389
+ return proto.payment.SegmentedUserResponse.toObject(opt_includeInstance, this);
12390
+ };
12391
+
12392
+
12393
+ /**
12394
+ * Static version of the {@see toObject} method.
12395
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12396
+ * the JSPB instance for transitional soy proto support:
12397
+ * http://goto/soy-param-migration
12398
+ * @param {!proto.payment.SegmentedUserResponse} msg The msg instance to transform.
12399
+ * @return {!Object}
12400
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12401
+ */
12402
+ proto.payment.SegmentedUserResponse.toObject = function(includeInstance, msg) {
12403
+ var f, obj = {
12404
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
12405
+ };
12406
+
12407
+ if (includeInstance) {
12408
+ obj.$jspbMessageInstance = msg;
12409
+ }
12410
+ return obj;
12411
+ };
12412
+ }
12413
+
12414
+
12415
+ /**
12416
+ * Deserializes binary data (in protobuf wire format).
12417
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12418
+ * @return {!proto.payment.SegmentedUserResponse}
12419
+ */
12420
+ proto.payment.SegmentedUserResponse.deserializeBinary = function(bytes) {
12421
+ var reader = new jspb.BinaryReader(bytes);
12422
+ var msg = new proto.payment.SegmentedUserResponse;
12423
+ return proto.payment.SegmentedUserResponse.deserializeBinaryFromReader(msg, reader);
12424
+ };
12425
+
12426
+
12427
+ /**
12428
+ * Deserializes binary data (in protobuf wire format) from the
12429
+ * given reader into the given message object.
12430
+ * @param {!proto.payment.SegmentedUserResponse} msg The message object to deserialize into.
12431
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12432
+ * @return {!proto.payment.SegmentedUserResponse}
12433
+ */
12434
+ proto.payment.SegmentedUserResponse.deserializeBinaryFromReader = function(msg, reader) {
12435
+ while (reader.nextField()) {
12436
+ if (reader.isEndGroup()) {
12437
+ break;
12438
+ }
12439
+ var field = reader.getFieldNumber();
12440
+ switch (field) {
12441
+ case 1:
12442
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
12443
+ for (var i = 0; i < values.length; i++) {
12444
+ msg.addUserIds(values[i]);
12445
+ }
12446
+ break;
12447
+ default:
12448
+ reader.skipField();
12449
+ break;
12450
+ }
12451
+ }
12452
+ return msg;
12453
+ };
12454
+
12455
+
12456
+ /**
12457
+ * Serializes the message to binary data (in protobuf wire format).
12458
+ * @return {!Uint8Array}
12459
+ */
12460
+ proto.payment.SegmentedUserResponse.prototype.serializeBinary = function() {
12461
+ var writer = new jspb.BinaryWriter();
12462
+ proto.payment.SegmentedUserResponse.serializeBinaryToWriter(this, writer);
12463
+ return writer.getResultBuffer();
12464
+ };
12465
+
12466
+
12467
+ /**
12468
+ * Serializes the given message to binary data (in protobuf wire
12469
+ * format), writing to the given BinaryWriter.
12470
+ * @param {!proto.payment.SegmentedUserResponse} message
12471
+ * @param {!jspb.BinaryWriter} writer
12472
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12473
+ */
12474
+ proto.payment.SegmentedUserResponse.serializeBinaryToWriter = function(message, writer) {
12475
+ var f = undefined;
12476
+ f = message.getUserIdsList();
12477
+ if (f.length > 0) {
12478
+ writer.writePackedInt32(
12479
+ 1,
12480
+ f
12481
+ );
12482
+ }
12483
+ };
12484
+
12485
+
12486
+ /**
12487
+ * repeated int32 user_ids = 1;
12488
+ * @return {!Array<number>}
12489
+ */
12490
+ proto.payment.SegmentedUserResponse.prototype.getUserIdsList = function() {
12491
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
12492
+ };
12493
+
12494
+
12495
+ /**
12496
+ * @param {!Array<number>} value
12497
+ * @return {!proto.payment.SegmentedUserResponse} returns this
12498
+ */
12499
+ proto.payment.SegmentedUserResponse.prototype.setUserIdsList = function(value) {
12500
+ return jspb.Message.setField(this, 1, value || []);
12501
+ };
12502
+
12503
+
12504
+ /**
12505
+ * @param {number} value
12506
+ * @param {number=} opt_index
12507
+ * @return {!proto.payment.SegmentedUserResponse} returns this
12508
+ */
12509
+ proto.payment.SegmentedUserResponse.prototype.addUserIds = function(value, opt_index) {
12510
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
12511
+ };
12512
+
12513
+
12514
+ /**
12515
+ * Clears the list making it empty but non-null.
12516
+ * @return {!proto.payment.SegmentedUserResponse} returns this
12517
+ */
12518
+ proto.payment.SegmentedUserResponse.prototype.clearUserIdsList = function() {
12519
+ return this.setUserIdsList([]);
12520
+ };
12521
+
12522
+
11588
12523
  goog.object.extend(exports, proto.payment);
package/user/user.proto CHANGED
@@ -83,6 +83,7 @@ message SegmentSearchParams {
83
83
  optional string type = 1;
84
84
  optional string geo = 2;
85
85
  optional int32 segment_id = 3;
86
+ optional string currency = 4;
86
87
  }
87
88
  message NoteSearchParams {
88
89
  optional int32 user_id = 2;
package/user/user_pb.js CHANGED
@@ -2783,7 +2783,8 @@ proto.user.SegmentSearchParams.toObject = function(includeInstance, msg) {
2783
2783
  var f, obj = {
2784
2784
  type: jspb.Message.getFieldWithDefault(msg, 1, ""),
2785
2785
  geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
2786
- segmentId: jspb.Message.getFieldWithDefault(msg, 3, 0)
2786
+ segmentId: jspb.Message.getFieldWithDefault(msg, 3, 0),
2787
+ currency: jspb.Message.getFieldWithDefault(msg, 4, "")
2787
2788
  };
2788
2789
 
2789
2790
  if (includeInstance) {
@@ -2832,6 +2833,10 @@ proto.user.SegmentSearchParams.deserializeBinaryFromReader = function(msg, reade
2832
2833
  var value = /** @type {number} */ (reader.readInt32());
2833
2834
  msg.setSegmentId(value);
2834
2835
  break;
2836
+ case 4:
2837
+ var value = /** @type {string} */ (reader.readString());
2838
+ msg.setCurrency(value);
2839
+ break;
2835
2840
  default:
2836
2841
  reader.skipField();
2837
2842
  break;
@@ -2882,6 +2887,13 @@ proto.user.SegmentSearchParams.serializeBinaryToWriter = function(message, write
2882
2887
  f
2883
2888
  );
2884
2889
  }
2890
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2891
+ if (f != null) {
2892
+ writer.writeString(
2893
+ 4,
2894
+ f
2895
+ );
2896
+ }
2885
2897
  };
2886
2898
 
2887
2899
 
@@ -2993,6 +3005,42 @@ proto.user.SegmentSearchParams.prototype.hasSegmentId = function() {
2993
3005
  };
2994
3006
 
2995
3007
 
3008
+ /**
3009
+ * optional string currency = 4;
3010
+ * @return {string}
3011
+ */
3012
+ proto.user.SegmentSearchParams.prototype.getCurrency = function() {
3013
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3014
+ };
3015
+
3016
+
3017
+ /**
3018
+ * @param {string} value
3019
+ * @return {!proto.user.SegmentSearchParams} returns this
3020
+ */
3021
+ proto.user.SegmentSearchParams.prototype.setCurrency = function(value) {
3022
+ return jspb.Message.setField(this, 4, value);
3023
+ };
3024
+
3025
+
3026
+ /**
3027
+ * Clears the field making it undefined.
3028
+ * @return {!proto.user.SegmentSearchParams} returns this
3029
+ */
3030
+ proto.user.SegmentSearchParams.prototype.clearCurrency = function() {
3031
+ return jspb.Message.setField(this, 4, undefined);
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * Returns whether this field is set.
3037
+ * @return {boolean}
3038
+ */
3039
+ proto.user.SegmentSearchParams.prototype.hasCurrency = function() {
3040
+ return jspb.Message.getField(this, 4) != null;
3041
+ };
3042
+
3043
+
2996
3044
 
2997
3045
 
2998
3046