protobuf-platform 1.2.399 → 1.2.400
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 +9 -0
- package/bonus/bonus_grpc_pb.js +22 -0
- package/bonus/bonus_pb.js +356 -0
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
|
@@ -23,6 +23,7 @@ service Bonus {
|
|
|
23
23
|
rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
24
24
|
rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
25
25
|
rpc activateUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
26
|
+
rpc applyUserPromocodeToUserBonus(ApplyUserPromocodeToUserBonusRequest) returns (BonusStatusResponse);
|
|
26
27
|
rpc getUserBonuses(PaginationRequest) returns (UserBonusItemsResponse);
|
|
27
28
|
rpc checkBonusForUser(GetUserBonusRequest) returns (UserBonusItem);
|
|
28
29
|
rpc getUserBonusesHistory(PaginationRequest) returns (UserBonusItemsResponse);
|
|
@@ -329,6 +330,14 @@ message GetUserBonusRequest {
|
|
|
329
330
|
optional bool is_mobile = 11;
|
|
330
331
|
optional string promo_code = 12;
|
|
331
332
|
}
|
|
333
|
+
message ApplyUserPromocodeToUserBonusRequest {
|
|
334
|
+
int32 user_id = 1;
|
|
335
|
+
int32 user_bonus_id = 2;
|
|
336
|
+
string promo_code = 3;
|
|
337
|
+
optional string currency = 4;
|
|
338
|
+
optional string country = 5;
|
|
339
|
+
optional string locale = 6;
|
|
340
|
+
}
|
|
332
341
|
message UserBonusItemsResponse {
|
|
333
342
|
repeated UserBonusItem items = 1;
|
|
334
343
|
optional int32 total_pages = 2;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -15,6 +15,17 @@ function deserialize_bonus_ActiveWageringUserBonusesResponse(buffer_arg) {
|
|
|
15
15
|
return bonus_pb.ActiveWageringUserBonusesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
function serialize_bonus_ApplyUserPromocodeToUserBonusRequest(arg) {
|
|
19
|
+
if (!(arg instanceof bonus_pb.ApplyUserPromocodeToUserBonusRequest)) {
|
|
20
|
+
throw new Error('Expected argument of type bonus.ApplyUserPromocodeToUserBonusRequest');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_bonus_ApplyUserPromocodeToUserBonusRequest(buffer_arg) {
|
|
26
|
+
return bonus_pb.ApplyUserPromocodeToUserBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
18
29
|
function serialize_bonus_BonusActivationRulesRequest(arg) {
|
|
19
30
|
if (!(arg instanceof bonus_pb.BonusActivationRulesRequest)) {
|
|
20
31
|
throw new Error('Expected argument of type bonus.BonusActivationRulesRequest');
|
|
@@ -613,6 +624,17 @@ claimUserBonus: {
|
|
|
613
624
|
responseSerialize: serialize_bonus_BonusStatusResponse,
|
|
614
625
|
responseDeserialize: deserialize_bonus_BonusStatusResponse,
|
|
615
626
|
},
|
|
627
|
+
applyUserPromocodeToUserBonus: {
|
|
628
|
+
path: '/bonus.Bonus/applyUserPromocodeToUserBonus',
|
|
629
|
+
requestStream: false,
|
|
630
|
+
responseStream: false,
|
|
631
|
+
requestType: bonus_pb.ApplyUserPromocodeToUserBonusRequest,
|
|
632
|
+
responseType: bonus_pb.BonusStatusResponse,
|
|
633
|
+
requestSerialize: serialize_bonus_ApplyUserPromocodeToUserBonusRequest,
|
|
634
|
+
requestDeserialize: deserialize_bonus_ApplyUserPromocodeToUserBonusRequest,
|
|
635
|
+
responseSerialize: serialize_bonus_BonusStatusResponse,
|
|
636
|
+
responseDeserialize: deserialize_bonus_BonusStatusResponse,
|
|
637
|
+
},
|
|
616
638
|
getUserBonuses: {
|
|
617
639
|
path: '/bonus.Bonus/getUserBonuses',
|
|
618
640
|
requestStream: false,
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -24,6 +24,7 @@ var global = (function() {
|
|
|
24
24
|
goog.exportSymbol('proto.bonus.ActivationRule', null, global);
|
|
25
25
|
goog.exportSymbol('proto.bonus.ActiveWageringUserBonusItem', null, global);
|
|
26
26
|
goog.exportSymbol('proto.bonus.ActiveWageringUserBonusesResponse', null, global);
|
|
27
|
+
goog.exportSymbol('proto.bonus.ApplyUserPromocodeToUserBonusRequest', null, global);
|
|
27
28
|
goog.exportSymbol('proto.bonus.BetsRange', null, global);
|
|
28
29
|
goog.exportSymbol('proto.bonus.BonusActivationRulesRequest', null, global);
|
|
29
30
|
goog.exportSymbol('proto.bonus.BonusBetRangesRequest', null, global);
|
|
@@ -747,6 +748,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
747
748
|
*/
|
|
748
749
|
proto.bonus.GetUserBonusRequest.displayName = 'proto.bonus.GetUserBonusRequest';
|
|
749
750
|
}
|
|
751
|
+
/**
|
|
752
|
+
* Generated by JsPbCodeGenerator.
|
|
753
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
754
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
755
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
756
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
757
|
+
* valid.
|
|
758
|
+
* @extends {jspb.Message}
|
|
759
|
+
* @constructor
|
|
760
|
+
*/
|
|
761
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest = function(opt_data) {
|
|
762
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
763
|
+
};
|
|
764
|
+
goog.inherits(proto.bonus.ApplyUserPromocodeToUserBonusRequest, jspb.Message);
|
|
765
|
+
if (goog.DEBUG && !COMPILED) {
|
|
766
|
+
/**
|
|
767
|
+
* @public
|
|
768
|
+
* @override
|
|
769
|
+
*/
|
|
770
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.displayName = 'proto.bonus.ApplyUserPromocodeToUserBonusRequest';
|
|
771
|
+
}
|
|
750
772
|
/**
|
|
751
773
|
* Generated by JsPbCodeGenerator.
|
|
752
774
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -14530,6 +14552,340 @@ proto.bonus.GetUserBonusRequest.prototype.hasPromoCode = function() {
|
|
|
14530
14552
|
|
|
14531
14553
|
|
|
14532
14554
|
|
|
14555
|
+
|
|
14556
|
+
|
|
14557
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14558
|
+
/**
|
|
14559
|
+
* Creates an object representation of this proto.
|
|
14560
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14561
|
+
* Optional fields that are not set will be set to undefined.
|
|
14562
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14563
|
+
* For the list of reserved names please see:
|
|
14564
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14565
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14566
|
+
* JSPB instance for transitional soy proto support:
|
|
14567
|
+
* http://goto/soy-param-migration
|
|
14568
|
+
* @return {!Object}
|
|
14569
|
+
*/
|
|
14570
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
14571
|
+
return proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject(opt_includeInstance, this);
|
|
14572
|
+
};
|
|
14573
|
+
|
|
14574
|
+
|
|
14575
|
+
/**
|
|
14576
|
+
* Static version of the {@see toObject} method.
|
|
14577
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14578
|
+
* the JSPB instance for transitional soy proto support:
|
|
14579
|
+
* http://goto/soy-param-migration
|
|
14580
|
+
* @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The msg instance to transform.
|
|
14581
|
+
* @return {!Object}
|
|
14582
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14583
|
+
*/
|
|
14584
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.toObject = function(includeInstance, msg) {
|
|
14585
|
+
var f, obj = {
|
|
14586
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
14587
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
14588
|
+
promoCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14589
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
14590
|
+
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
14591
|
+
locale: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
14592
|
+
};
|
|
14593
|
+
|
|
14594
|
+
if (includeInstance) {
|
|
14595
|
+
obj.$jspbMessageInstance = msg;
|
|
14596
|
+
}
|
|
14597
|
+
return obj;
|
|
14598
|
+
};
|
|
14599
|
+
}
|
|
14600
|
+
|
|
14601
|
+
|
|
14602
|
+
/**
|
|
14603
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14604
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14605
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
|
|
14606
|
+
*/
|
|
14607
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinary = function(bytes) {
|
|
14608
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14609
|
+
var msg = new proto.bonus.ApplyUserPromocodeToUserBonusRequest;
|
|
14610
|
+
return proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader(msg, reader);
|
|
14611
|
+
};
|
|
14612
|
+
|
|
14613
|
+
|
|
14614
|
+
/**
|
|
14615
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14616
|
+
* given reader into the given message object.
|
|
14617
|
+
* @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} msg The message object to deserialize into.
|
|
14618
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14619
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest}
|
|
14620
|
+
*/
|
|
14621
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
14622
|
+
while (reader.nextField()) {
|
|
14623
|
+
if (reader.isEndGroup()) {
|
|
14624
|
+
break;
|
|
14625
|
+
}
|
|
14626
|
+
var field = reader.getFieldNumber();
|
|
14627
|
+
switch (field) {
|
|
14628
|
+
case 1:
|
|
14629
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14630
|
+
msg.setUserId(value);
|
|
14631
|
+
break;
|
|
14632
|
+
case 2:
|
|
14633
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14634
|
+
msg.setUserBonusId(value);
|
|
14635
|
+
break;
|
|
14636
|
+
case 3:
|
|
14637
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14638
|
+
msg.setPromoCode(value);
|
|
14639
|
+
break;
|
|
14640
|
+
case 4:
|
|
14641
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14642
|
+
msg.setCurrency(value);
|
|
14643
|
+
break;
|
|
14644
|
+
case 5:
|
|
14645
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14646
|
+
msg.setCountry(value);
|
|
14647
|
+
break;
|
|
14648
|
+
case 6:
|
|
14649
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14650
|
+
msg.setLocale(value);
|
|
14651
|
+
break;
|
|
14652
|
+
default:
|
|
14653
|
+
reader.skipField();
|
|
14654
|
+
break;
|
|
14655
|
+
}
|
|
14656
|
+
}
|
|
14657
|
+
return msg;
|
|
14658
|
+
};
|
|
14659
|
+
|
|
14660
|
+
|
|
14661
|
+
/**
|
|
14662
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14663
|
+
* @return {!Uint8Array}
|
|
14664
|
+
*/
|
|
14665
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.serializeBinary = function() {
|
|
14666
|
+
var writer = new jspb.BinaryWriter();
|
|
14667
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter(this, writer);
|
|
14668
|
+
return writer.getResultBuffer();
|
|
14669
|
+
};
|
|
14670
|
+
|
|
14671
|
+
|
|
14672
|
+
/**
|
|
14673
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
14674
|
+
* format), writing to the given BinaryWriter.
|
|
14675
|
+
* @param {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} message
|
|
14676
|
+
* @param {!jspb.BinaryWriter} writer
|
|
14677
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14678
|
+
*/
|
|
14679
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
14680
|
+
var f = undefined;
|
|
14681
|
+
f = message.getUserId();
|
|
14682
|
+
if (f !== 0) {
|
|
14683
|
+
writer.writeInt32(
|
|
14684
|
+
1,
|
|
14685
|
+
f
|
|
14686
|
+
);
|
|
14687
|
+
}
|
|
14688
|
+
f = message.getUserBonusId();
|
|
14689
|
+
if (f !== 0) {
|
|
14690
|
+
writer.writeInt32(
|
|
14691
|
+
2,
|
|
14692
|
+
f
|
|
14693
|
+
);
|
|
14694
|
+
}
|
|
14695
|
+
f = message.getPromoCode();
|
|
14696
|
+
if (f.length > 0) {
|
|
14697
|
+
writer.writeString(
|
|
14698
|
+
3,
|
|
14699
|
+
f
|
|
14700
|
+
);
|
|
14701
|
+
}
|
|
14702
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
14703
|
+
if (f != null) {
|
|
14704
|
+
writer.writeString(
|
|
14705
|
+
4,
|
|
14706
|
+
f
|
|
14707
|
+
);
|
|
14708
|
+
}
|
|
14709
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
14710
|
+
if (f != null) {
|
|
14711
|
+
writer.writeString(
|
|
14712
|
+
5,
|
|
14713
|
+
f
|
|
14714
|
+
);
|
|
14715
|
+
}
|
|
14716
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
14717
|
+
if (f != null) {
|
|
14718
|
+
writer.writeString(
|
|
14719
|
+
6,
|
|
14720
|
+
f
|
|
14721
|
+
);
|
|
14722
|
+
}
|
|
14723
|
+
};
|
|
14724
|
+
|
|
14725
|
+
|
|
14726
|
+
/**
|
|
14727
|
+
* optional int32 user_id = 1;
|
|
14728
|
+
* @return {number}
|
|
14729
|
+
*/
|
|
14730
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserId = function() {
|
|
14731
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
14732
|
+
};
|
|
14733
|
+
|
|
14734
|
+
|
|
14735
|
+
/**
|
|
14736
|
+
* @param {number} value
|
|
14737
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14738
|
+
*/
|
|
14739
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserId = function(value) {
|
|
14740
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
14741
|
+
};
|
|
14742
|
+
|
|
14743
|
+
|
|
14744
|
+
/**
|
|
14745
|
+
* optional int32 user_bonus_id = 2;
|
|
14746
|
+
* @return {number}
|
|
14747
|
+
*/
|
|
14748
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getUserBonusId = function() {
|
|
14749
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
14750
|
+
};
|
|
14751
|
+
|
|
14752
|
+
|
|
14753
|
+
/**
|
|
14754
|
+
* @param {number} value
|
|
14755
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14756
|
+
*/
|
|
14757
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setUserBonusId = function(value) {
|
|
14758
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
14759
|
+
};
|
|
14760
|
+
|
|
14761
|
+
|
|
14762
|
+
/**
|
|
14763
|
+
* optional string promo_code = 3;
|
|
14764
|
+
* @return {string}
|
|
14765
|
+
*/
|
|
14766
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getPromoCode = function() {
|
|
14767
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
14768
|
+
};
|
|
14769
|
+
|
|
14770
|
+
|
|
14771
|
+
/**
|
|
14772
|
+
* @param {string} value
|
|
14773
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14774
|
+
*/
|
|
14775
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setPromoCode = function(value) {
|
|
14776
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
14777
|
+
};
|
|
14778
|
+
|
|
14779
|
+
|
|
14780
|
+
/**
|
|
14781
|
+
* optional string currency = 4;
|
|
14782
|
+
* @return {string}
|
|
14783
|
+
*/
|
|
14784
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCurrency = function() {
|
|
14785
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
14786
|
+
};
|
|
14787
|
+
|
|
14788
|
+
|
|
14789
|
+
/**
|
|
14790
|
+
* @param {string} value
|
|
14791
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14792
|
+
*/
|
|
14793
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCurrency = function(value) {
|
|
14794
|
+
return jspb.Message.setField(this, 4, value);
|
|
14795
|
+
};
|
|
14796
|
+
|
|
14797
|
+
|
|
14798
|
+
/**
|
|
14799
|
+
* Clears the field making it undefined.
|
|
14800
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14801
|
+
*/
|
|
14802
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCurrency = function() {
|
|
14803
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
14804
|
+
};
|
|
14805
|
+
|
|
14806
|
+
|
|
14807
|
+
/**
|
|
14808
|
+
* Returns whether this field is set.
|
|
14809
|
+
* @return {boolean}
|
|
14810
|
+
*/
|
|
14811
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCurrency = function() {
|
|
14812
|
+
return jspb.Message.getField(this, 4) != null;
|
|
14813
|
+
};
|
|
14814
|
+
|
|
14815
|
+
|
|
14816
|
+
/**
|
|
14817
|
+
* optional string country = 5;
|
|
14818
|
+
* @return {string}
|
|
14819
|
+
*/
|
|
14820
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getCountry = function() {
|
|
14821
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
14822
|
+
};
|
|
14823
|
+
|
|
14824
|
+
|
|
14825
|
+
/**
|
|
14826
|
+
* @param {string} value
|
|
14827
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14828
|
+
*/
|
|
14829
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setCountry = function(value) {
|
|
14830
|
+
return jspb.Message.setField(this, 5, value);
|
|
14831
|
+
};
|
|
14832
|
+
|
|
14833
|
+
|
|
14834
|
+
/**
|
|
14835
|
+
* Clears the field making it undefined.
|
|
14836
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14837
|
+
*/
|
|
14838
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearCountry = function() {
|
|
14839
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
14840
|
+
};
|
|
14841
|
+
|
|
14842
|
+
|
|
14843
|
+
/**
|
|
14844
|
+
* Returns whether this field is set.
|
|
14845
|
+
* @return {boolean}
|
|
14846
|
+
*/
|
|
14847
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasCountry = function() {
|
|
14848
|
+
return jspb.Message.getField(this, 5) != null;
|
|
14849
|
+
};
|
|
14850
|
+
|
|
14851
|
+
|
|
14852
|
+
/**
|
|
14853
|
+
* optional string locale = 6;
|
|
14854
|
+
* @return {string}
|
|
14855
|
+
*/
|
|
14856
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.getLocale = function() {
|
|
14857
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
14858
|
+
};
|
|
14859
|
+
|
|
14860
|
+
|
|
14861
|
+
/**
|
|
14862
|
+
* @param {string} value
|
|
14863
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14864
|
+
*/
|
|
14865
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.setLocale = function(value) {
|
|
14866
|
+
return jspb.Message.setField(this, 6, value);
|
|
14867
|
+
};
|
|
14868
|
+
|
|
14869
|
+
|
|
14870
|
+
/**
|
|
14871
|
+
* Clears the field making it undefined.
|
|
14872
|
+
* @return {!proto.bonus.ApplyUserPromocodeToUserBonusRequest} returns this
|
|
14873
|
+
*/
|
|
14874
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.clearLocale = function() {
|
|
14875
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
14876
|
+
};
|
|
14877
|
+
|
|
14878
|
+
|
|
14879
|
+
/**
|
|
14880
|
+
* Returns whether this field is set.
|
|
14881
|
+
* @return {boolean}
|
|
14882
|
+
*/
|
|
14883
|
+
proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasLocale = function() {
|
|
14884
|
+
return jspb.Message.getField(this, 6) != null;
|
|
14885
|
+
};
|
|
14886
|
+
|
|
14887
|
+
|
|
14888
|
+
|
|
14533
14889
|
/**
|
|
14534
14890
|
* List of repeated fields within this message type.
|
|
14535
14891
|
* @private {!Array<number>}
|