protobuf-platform 1.2.654 → 1.2.655
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 +10 -0
- package/bonus/bonus_pb.js +406 -2
- package/loyalty/loyalty.proto +15 -0
- package/loyalty/loyalty_pb.js +805 -84
- package/package.json +1 -1
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.loyalty.LevelItemsResponse', null, global);
|
|
|
36
36
|
goog.exportSymbol('proto.loyalty.LevelRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.loyalty.LevelRequest.RequestCase', null, global);
|
|
38
38
|
goog.exportSymbol('proto.loyalty.LevelResponse', null, global);
|
|
39
|
+
goog.exportSymbol('proto.loyalty.LevelRewardBonus', null, global);
|
|
40
|
+
goog.exportSymbol('proto.loyalty.LevelRewardBonusReward', null, global);
|
|
39
41
|
goog.exportSymbol('proto.loyalty.LevelRewardCashback', null, global);
|
|
40
42
|
goog.exportSymbol('proto.loyalty.LevelRewardItem', null, global);
|
|
41
43
|
goog.exportSymbol('proto.loyalty.LevelRewardRequest', null, global);
|
|
@@ -269,6 +271,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
269
271
|
*/
|
|
270
272
|
proto.loyalty.LevelRewardCashback.displayName = 'proto.loyalty.LevelRewardCashback';
|
|
271
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Generated by JsPbCodeGenerator.
|
|
276
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
277
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
278
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
279
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
280
|
+
* valid.
|
|
281
|
+
* @extends {jspb.Message}
|
|
282
|
+
* @constructor
|
|
283
|
+
*/
|
|
284
|
+
proto.loyalty.LevelRewardBonusReward = function(opt_data) {
|
|
285
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
286
|
+
};
|
|
287
|
+
goog.inherits(proto.loyalty.LevelRewardBonusReward, jspb.Message);
|
|
288
|
+
if (goog.DEBUG && !COMPILED) {
|
|
289
|
+
/**
|
|
290
|
+
* @public
|
|
291
|
+
* @override
|
|
292
|
+
*/
|
|
293
|
+
proto.loyalty.LevelRewardBonusReward.displayName = 'proto.loyalty.LevelRewardBonusReward';
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Generated by JsPbCodeGenerator.
|
|
297
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
298
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
299
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
300
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
301
|
+
* valid.
|
|
302
|
+
* @extends {jspb.Message}
|
|
303
|
+
* @constructor
|
|
304
|
+
*/
|
|
305
|
+
proto.loyalty.LevelRewardBonus = function(opt_data) {
|
|
306
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LevelRewardBonus.repeatedFields_, null);
|
|
307
|
+
};
|
|
308
|
+
goog.inherits(proto.loyalty.LevelRewardBonus, jspb.Message);
|
|
309
|
+
if (goog.DEBUG && !COMPILED) {
|
|
310
|
+
/**
|
|
311
|
+
* @public
|
|
312
|
+
* @override
|
|
313
|
+
*/
|
|
314
|
+
proto.loyalty.LevelRewardBonus.displayName = 'proto.loyalty.LevelRewardBonus';
|
|
315
|
+
}
|
|
272
316
|
/**
|
|
273
317
|
* Generated by JsPbCodeGenerator.
|
|
274
318
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2760,7 +2804,8 @@ proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
|
|
|
2760
2804
|
mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
2761
2805
|
portraitImage: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
2762
2806
|
portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
2763
|
-
pointsRequired: jspb.Message.getFieldWithDefault(msg, 16, 0)
|
|
2807
|
+
pointsRequired: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
2808
|
+
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 17, "")
|
|
2764
2809
|
};
|
|
2765
2810
|
|
|
2766
2811
|
if (includeInstance) {
|
|
@@ -2863,6 +2908,10 @@ proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2863
2908
|
var value = /** @type {number} */ (reader.readInt32());
|
|
2864
2909
|
msg.setPointsRequired(value);
|
|
2865
2910
|
break;
|
|
2911
|
+
case 17:
|
|
2912
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2913
|
+
msg.setTotalLevelUpAmount(value);
|
|
2914
|
+
break;
|
|
2866
2915
|
default:
|
|
2867
2916
|
reader.skipField();
|
|
2868
2917
|
break;
|
|
@@ -3006,6 +3055,13 @@ proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
3006
3055
|
f
|
|
3007
3056
|
);
|
|
3008
3057
|
}
|
|
3058
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 17));
|
|
3059
|
+
if (f != null) {
|
|
3060
|
+
writer.writeString(
|
|
3061
|
+
17,
|
|
3062
|
+
f
|
|
3063
|
+
);
|
|
3064
|
+
}
|
|
3009
3065
|
};
|
|
3010
3066
|
|
|
3011
3067
|
|
|
@@ -3589,6 +3645,42 @@ proto.loyalty.LevelItem.prototype.hasPointsRequired = function() {
|
|
|
3589
3645
|
};
|
|
3590
3646
|
|
|
3591
3647
|
|
|
3648
|
+
/**
|
|
3649
|
+
* optional string total_level_up_amount = 17;
|
|
3650
|
+
* @return {string}
|
|
3651
|
+
*/
|
|
3652
|
+
proto.loyalty.LevelItem.prototype.getTotalLevelUpAmount = function() {
|
|
3653
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
3654
|
+
};
|
|
3655
|
+
|
|
3656
|
+
|
|
3657
|
+
/**
|
|
3658
|
+
* @param {string} value
|
|
3659
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
3660
|
+
*/
|
|
3661
|
+
proto.loyalty.LevelItem.prototype.setTotalLevelUpAmount = function(value) {
|
|
3662
|
+
return jspb.Message.setField(this, 17, value);
|
|
3663
|
+
};
|
|
3664
|
+
|
|
3665
|
+
|
|
3666
|
+
/**
|
|
3667
|
+
* Clears the field making it undefined.
|
|
3668
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
3669
|
+
*/
|
|
3670
|
+
proto.loyalty.LevelItem.prototype.clearTotalLevelUpAmount = function() {
|
|
3671
|
+
return jspb.Message.setField(this, 17, undefined);
|
|
3672
|
+
};
|
|
3673
|
+
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* Returns whether this field is set.
|
|
3677
|
+
* @return {boolean}
|
|
3678
|
+
*/
|
|
3679
|
+
proto.loyalty.LevelItem.prototype.hasTotalLevelUpAmount = function() {
|
|
3680
|
+
return jspb.Message.getField(this, 17) != null;
|
|
3681
|
+
};
|
|
3682
|
+
|
|
3683
|
+
|
|
3592
3684
|
|
|
3593
3685
|
|
|
3594
3686
|
|
|
@@ -3677,79 +3769,508 @@ proto.loyalty.LevelRewardTranslationItem.deserializeBinaryFromReader = function(
|
|
|
3677
3769
|
|
|
3678
3770
|
|
|
3679
3771
|
/**
|
|
3680
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3681
|
-
* @return {!Uint8Array}
|
|
3772
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3773
|
+
* @return {!Uint8Array}
|
|
3774
|
+
*/
|
|
3775
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.serializeBinary = function() {
|
|
3776
|
+
var writer = new jspb.BinaryWriter();
|
|
3777
|
+
proto.loyalty.LevelRewardTranslationItem.serializeBinaryToWriter(this, writer);
|
|
3778
|
+
return writer.getResultBuffer();
|
|
3779
|
+
};
|
|
3780
|
+
|
|
3781
|
+
|
|
3782
|
+
/**
|
|
3783
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3784
|
+
* format), writing to the given BinaryWriter.
|
|
3785
|
+
* @param {!proto.loyalty.LevelRewardTranslationItem} message
|
|
3786
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3787
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3788
|
+
*/
|
|
3789
|
+
proto.loyalty.LevelRewardTranslationItem.serializeBinaryToWriter = function(message, writer) {
|
|
3790
|
+
var f = undefined;
|
|
3791
|
+
f = message.getLocale();
|
|
3792
|
+
if (f.length > 0) {
|
|
3793
|
+
writer.writeString(
|
|
3794
|
+
1,
|
|
3795
|
+
f
|
|
3796
|
+
);
|
|
3797
|
+
}
|
|
3798
|
+
f = message.getValue();
|
|
3799
|
+
if (f.length > 0) {
|
|
3800
|
+
writer.writeString(
|
|
3801
|
+
2,
|
|
3802
|
+
f
|
|
3803
|
+
);
|
|
3804
|
+
}
|
|
3805
|
+
};
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
/**
|
|
3809
|
+
* optional string locale = 1;
|
|
3810
|
+
* @return {string}
|
|
3811
|
+
*/
|
|
3812
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.getLocale = function() {
|
|
3813
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3814
|
+
};
|
|
3815
|
+
|
|
3816
|
+
|
|
3817
|
+
/**
|
|
3818
|
+
* @param {string} value
|
|
3819
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem} returns this
|
|
3820
|
+
*/
|
|
3821
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.setLocale = function(value) {
|
|
3822
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3823
|
+
};
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
/**
|
|
3827
|
+
* optional string value = 2;
|
|
3828
|
+
* @return {string}
|
|
3829
|
+
*/
|
|
3830
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.getValue = function() {
|
|
3831
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3832
|
+
};
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* @param {string} value
|
|
3837
|
+
* @return {!proto.loyalty.LevelRewardTranslationItem} returns this
|
|
3838
|
+
*/
|
|
3839
|
+
proto.loyalty.LevelRewardTranslationItem.prototype.setValue = function(value) {
|
|
3840
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3841
|
+
};
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
|
|
3845
|
+
|
|
3846
|
+
|
|
3847
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3848
|
+
/**
|
|
3849
|
+
* Creates an object representation of this proto.
|
|
3850
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3851
|
+
* Optional fields that are not set will be set to undefined.
|
|
3852
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3853
|
+
* For the list of reserved names please see:
|
|
3854
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3855
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3856
|
+
* JSPB instance for transitional soy proto support:
|
|
3857
|
+
* http://goto/soy-param-migration
|
|
3858
|
+
* @return {!Object}
|
|
3859
|
+
*/
|
|
3860
|
+
proto.loyalty.LevelRewardCashback.prototype.toObject = function(opt_includeInstance) {
|
|
3861
|
+
return proto.loyalty.LevelRewardCashback.toObject(opt_includeInstance, this);
|
|
3862
|
+
};
|
|
3863
|
+
|
|
3864
|
+
|
|
3865
|
+
/**
|
|
3866
|
+
* Static version of the {@see toObject} method.
|
|
3867
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3868
|
+
* the JSPB instance for transitional soy proto support:
|
|
3869
|
+
* http://goto/soy-param-migration
|
|
3870
|
+
* @param {!proto.loyalty.LevelRewardCashback} msg The msg instance to transform.
|
|
3871
|
+
* @return {!Object}
|
|
3872
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3873
|
+
*/
|
|
3874
|
+
proto.loyalty.LevelRewardCashback.toObject = function(includeInstance, msg) {
|
|
3875
|
+
var f, obj = {
|
|
3876
|
+
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
3877
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3878
|
+
};
|
|
3879
|
+
|
|
3880
|
+
if (includeInstance) {
|
|
3881
|
+
obj.$jspbMessageInstance = msg;
|
|
3882
|
+
}
|
|
3883
|
+
return obj;
|
|
3884
|
+
};
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
|
|
3888
|
+
/**
|
|
3889
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3890
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3891
|
+
* @return {!proto.loyalty.LevelRewardCashback}
|
|
3892
|
+
*/
|
|
3893
|
+
proto.loyalty.LevelRewardCashback.deserializeBinary = function(bytes) {
|
|
3894
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3895
|
+
var msg = new proto.loyalty.LevelRewardCashback;
|
|
3896
|
+
return proto.loyalty.LevelRewardCashback.deserializeBinaryFromReader(msg, reader);
|
|
3897
|
+
};
|
|
3898
|
+
|
|
3899
|
+
|
|
3900
|
+
/**
|
|
3901
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3902
|
+
* given reader into the given message object.
|
|
3903
|
+
* @param {!proto.loyalty.LevelRewardCashback} msg The message object to deserialize into.
|
|
3904
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3905
|
+
* @return {!proto.loyalty.LevelRewardCashback}
|
|
3906
|
+
*/
|
|
3907
|
+
proto.loyalty.LevelRewardCashback.deserializeBinaryFromReader = function(msg, reader) {
|
|
3908
|
+
while (reader.nextField()) {
|
|
3909
|
+
if (reader.isEndGroup()) {
|
|
3910
|
+
break;
|
|
3911
|
+
}
|
|
3912
|
+
var field = reader.getFieldNumber();
|
|
3913
|
+
switch (field) {
|
|
3914
|
+
case 1:
|
|
3915
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
3916
|
+
msg.setPercentage(value);
|
|
3917
|
+
break;
|
|
3918
|
+
case 2:
|
|
3919
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3920
|
+
msg.setCurrency(value);
|
|
3921
|
+
break;
|
|
3922
|
+
default:
|
|
3923
|
+
reader.skipField();
|
|
3924
|
+
break;
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
return msg;
|
|
3928
|
+
};
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
/**
|
|
3932
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3933
|
+
* @return {!Uint8Array}
|
|
3934
|
+
*/
|
|
3935
|
+
proto.loyalty.LevelRewardCashback.prototype.serializeBinary = function() {
|
|
3936
|
+
var writer = new jspb.BinaryWriter();
|
|
3937
|
+
proto.loyalty.LevelRewardCashback.serializeBinaryToWriter(this, writer);
|
|
3938
|
+
return writer.getResultBuffer();
|
|
3939
|
+
};
|
|
3940
|
+
|
|
3941
|
+
|
|
3942
|
+
/**
|
|
3943
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3944
|
+
* format), writing to the given BinaryWriter.
|
|
3945
|
+
* @param {!proto.loyalty.LevelRewardCashback} message
|
|
3946
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3947
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3948
|
+
*/
|
|
3949
|
+
proto.loyalty.LevelRewardCashback.serializeBinaryToWriter = function(message, writer) {
|
|
3950
|
+
var f = undefined;
|
|
3951
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
3952
|
+
if (f != null) {
|
|
3953
|
+
writer.writeFloat(
|
|
3954
|
+
1,
|
|
3955
|
+
f
|
|
3956
|
+
);
|
|
3957
|
+
}
|
|
3958
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
3959
|
+
if (f != null) {
|
|
3960
|
+
writer.writeString(
|
|
3961
|
+
2,
|
|
3962
|
+
f
|
|
3963
|
+
);
|
|
3964
|
+
}
|
|
3965
|
+
};
|
|
3966
|
+
|
|
3967
|
+
|
|
3968
|
+
/**
|
|
3969
|
+
* optional float percentage = 1;
|
|
3970
|
+
* @return {number}
|
|
3971
|
+
*/
|
|
3972
|
+
proto.loyalty.LevelRewardCashback.prototype.getPercentage = function() {
|
|
3973
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
3974
|
+
};
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
/**
|
|
3978
|
+
* @param {number} value
|
|
3979
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
3980
|
+
*/
|
|
3981
|
+
proto.loyalty.LevelRewardCashback.prototype.setPercentage = function(value) {
|
|
3982
|
+
return jspb.Message.setField(this, 1, value);
|
|
3983
|
+
};
|
|
3984
|
+
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* Clears the field making it undefined.
|
|
3988
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
3989
|
+
*/
|
|
3990
|
+
proto.loyalty.LevelRewardCashback.prototype.clearPercentage = function() {
|
|
3991
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
3992
|
+
};
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
/**
|
|
3996
|
+
* Returns whether this field is set.
|
|
3997
|
+
* @return {boolean}
|
|
3998
|
+
*/
|
|
3999
|
+
proto.loyalty.LevelRewardCashback.prototype.hasPercentage = function() {
|
|
4000
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4001
|
+
};
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
/**
|
|
4005
|
+
* optional string currency = 2;
|
|
4006
|
+
* @return {string}
|
|
4007
|
+
*/
|
|
4008
|
+
proto.loyalty.LevelRewardCashback.prototype.getCurrency = function() {
|
|
4009
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4010
|
+
};
|
|
4011
|
+
|
|
4012
|
+
|
|
4013
|
+
/**
|
|
4014
|
+
* @param {string} value
|
|
4015
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
4016
|
+
*/
|
|
4017
|
+
proto.loyalty.LevelRewardCashback.prototype.setCurrency = function(value) {
|
|
4018
|
+
return jspb.Message.setField(this, 2, value);
|
|
4019
|
+
};
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* Clears the field making it undefined.
|
|
4024
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
4025
|
+
*/
|
|
4026
|
+
proto.loyalty.LevelRewardCashback.prototype.clearCurrency = function() {
|
|
4027
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
4028
|
+
};
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
/**
|
|
4032
|
+
* Returns whether this field is set.
|
|
4033
|
+
* @return {boolean}
|
|
4034
|
+
*/
|
|
4035
|
+
proto.loyalty.LevelRewardCashback.prototype.hasCurrency = function() {
|
|
4036
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4037
|
+
};
|
|
4038
|
+
|
|
4039
|
+
|
|
4040
|
+
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4044
|
+
/**
|
|
4045
|
+
* Creates an object representation of this proto.
|
|
4046
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4047
|
+
* Optional fields that are not set will be set to undefined.
|
|
4048
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4049
|
+
* For the list of reserved names please see:
|
|
4050
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4051
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4052
|
+
* JSPB instance for transitional soy proto support:
|
|
4053
|
+
* http://goto/soy-param-migration
|
|
4054
|
+
* @return {!Object}
|
|
4055
|
+
*/
|
|
4056
|
+
proto.loyalty.LevelRewardBonusReward.prototype.toObject = function(opt_includeInstance) {
|
|
4057
|
+
return proto.loyalty.LevelRewardBonusReward.toObject(opt_includeInstance, this);
|
|
4058
|
+
};
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
/**
|
|
4062
|
+
* Static version of the {@see toObject} method.
|
|
4063
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4064
|
+
* the JSPB instance for transitional soy proto support:
|
|
4065
|
+
* http://goto/soy-param-migration
|
|
4066
|
+
* @param {!proto.loyalty.LevelRewardBonusReward} msg The msg instance to transform.
|
|
4067
|
+
* @return {!Object}
|
|
4068
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4069
|
+
*/
|
|
4070
|
+
proto.loyalty.LevelRewardBonusReward.toObject = function(includeInstance, msg) {
|
|
4071
|
+
var f, obj = {
|
|
4072
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4073
|
+
amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4074
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4075
|
+
};
|
|
4076
|
+
|
|
4077
|
+
if (includeInstance) {
|
|
4078
|
+
obj.$jspbMessageInstance = msg;
|
|
4079
|
+
}
|
|
4080
|
+
return obj;
|
|
4081
|
+
};
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
|
|
4085
|
+
/**
|
|
4086
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4087
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4088
|
+
* @return {!proto.loyalty.LevelRewardBonusReward}
|
|
4089
|
+
*/
|
|
4090
|
+
proto.loyalty.LevelRewardBonusReward.deserializeBinary = function(bytes) {
|
|
4091
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4092
|
+
var msg = new proto.loyalty.LevelRewardBonusReward;
|
|
4093
|
+
return proto.loyalty.LevelRewardBonusReward.deserializeBinaryFromReader(msg, reader);
|
|
4094
|
+
};
|
|
4095
|
+
|
|
4096
|
+
|
|
4097
|
+
/**
|
|
4098
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4099
|
+
* given reader into the given message object.
|
|
4100
|
+
* @param {!proto.loyalty.LevelRewardBonusReward} msg The message object to deserialize into.
|
|
4101
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4102
|
+
* @return {!proto.loyalty.LevelRewardBonusReward}
|
|
4103
|
+
*/
|
|
4104
|
+
proto.loyalty.LevelRewardBonusReward.deserializeBinaryFromReader = function(msg, reader) {
|
|
4105
|
+
while (reader.nextField()) {
|
|
4106
|
+
if (reader.isEndGroup()) {
|
|
4107
|
+
break;
|
|
4108
|
+
}
|
|
4109
|
+
var field = reader.getFieldNumber();
|
|
4110
|
+
switch (field) {
|
|
4111
|
+
case 1:
|
|
4112
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4113
|
+
msg.setType(value);
|
|
4114
|
+
break;
|
|
4115
|
+
case 2:
|
|
4116
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4117
|
+
msg.setAmount(value);
|
|
4118
|
+
break;
|
|
4119
|
+
case 3:
|
|
4120
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4121
|
+
msg.setCurrency(value);
|
|
4122
|
+
break;
|
|
4123
|
+
default:
|
|
4124
|
+
reader.skipField();
|
|
4125
|
+
break;
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
return msg;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4134
|
+
* @return {!Uint8Array}
|
|
4135
|
+
*/
|
|
4136
|
+
proto.loyalty.LevelRewardBonusReward.prototype.serializeBinary = function() {
|
|
4137
|
+
var writer = new jspb.BinaryWriter();
|
|
4138
|
+
proto.loyalty.LevelRewardBonusReward.serializeBinaryToWriter(this, writer);
|
|
4139
|
+
return writer.getResultBuffer();
|
|
4140
|
+
};
|
|
4141
|
+
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4145
|
+
* format), writing to the given BinaryWriter.
|
|
4146
|
+
* @param {!proto.loyalty.LevelRewardBonusReward} message
|
|
4147
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4148
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4149
|
+
*/
|
|
4150
|
+
proto.loyalty.LevelRewardBonusReward.serializeBinaryToWriter = function(message, writer) {
|
|
4151
|
+
var f = undefined;
|
|
4152
|
+
f = message.getType();
|
|
4153
|
+
if (f.length > 0) {
|
|
4154
|
+
writer.writeString(
|
|
4155
|
+
1,
|
|
4156
|
+
f
|
|
4157
|
+
);
|
|
4158
|
+
}
|
|
4159
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
4160
|
+
if (f != null) {
|
|
4161
|
+
writer.writeString(
|
|
4162
|
+
2,
|
|
4163
|
+
f
|
|
4164
|
+
);
|
|
4165
|
+
}
|
|
4166
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
4167
|
+
if (f != null) {
|
|
4168
|
+
writer.writeString(
|
|
4169
|
+
3,
|
|
4170
|
+
f
|
|
4171
|
+
);
|
|
4172
|
+
}
|
|
4173
|
+
};
|
|
4174
|
+
|
|
4175
|
+
|
|
4176
|
+
/**
|
|
4177
|
+
* optional string type = 1;
|
|
4178
|
+
* @return {string}
|
|
4179
|
+
*/
|
|
4180
|
+
proto.loyalty.LevelRewardBonusReward.prototype.getType = function() {
|
|
4181
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4182
|
+
};
|
|
4183
|
+
|
|
4184
|
+
|
|
4185
|
+
/**
|
|
4186
|
+
* @param {string} value
|
|
4187
|
+
* @return {!proto.loyalty.LevelRewardBonusReward} returns this
|
|
4188
|
+
*/
|
|
4189
|
+
proto.loyalty.LevelRewardBonusReward.prototype.setType = function(value) {
|
|
4190
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4191
|
+
};
|
|
4192
|
+
|
|
4193
|
+
|
|
4194
|
+
/**
|
|
4195
|
+
* optional string amount = 2;
|
|
4196
|
+
* @return {string}
|
|
4197
|
+
*/
|
|
4198
|
+
proto.loyalty.LevelRewardBonusReward.prototype.getAmount = function() {
|
|
4199
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4200
|
+
};
|
|
4201
|
+
|
|
4202
|
+
|
|
4203
|
+
/**
|
|
4204
|
+
* @param {string} value
|
|
4205
|
+
* @return {!proto.loyalty.LevelRewardBonusReward} returns this
|
|
4206
|
+
*/
|
|
4207
|
+
proto.loyalty.LevelRewardBonusReward.prototype.setAmount = function(value) {
|
|
4208
|
+
return jspb.Message.setField(this, 2, value);
|
|
4209
|
+
};
|
|
4210
|
+
|
|
4211
|
+
|
|
4212
|
+
/**
|
|
4213
|
+
* Clears the field making it undefined.
|
|
4214
|
+
* @return {!proto.loyalty.LevelRewardBonusReward} returns this
|
|
3682
4215
|
*/
|
|
3683
|
-
proto.loyalty.
|
|
3684
|
-
|
|
3685
|
-
proto.loyalty.LevelRewardTranslationItem.serializeBinaryToWriter(this, writer);
|
|
3686
|
-
return writer.getResultBuffer();
|
|
4216
|
+
proto.loyalty.LevelRewardBonusReward.prototype.clearAmount = function() {
|
|
4217
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
3687
4218
|
};
|
|
3688
4219
|
|
|
3689
4220
|
|
|
3690
4221
|
/**
|
|
3691
|
-
*
|
|
3692
|
-
*
|
|
3693
|
-
* @param {!proto.loyalty.LevelRewardTranslationItem} message
|
|
3694
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3695
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4222
|
+
* Returns whether this field is set.
|
|
4223
|
+
* @return {boolean}
|
|
3696
4224
|
*/
|
|
3697
|
-
proto.loyalty.
|
|
3698
|
-
|
|
3699
|
-
f = message.getLocale();
|
|
3700
|
-
if (f.length > 0) {
|
|
3701
|
-
writer.writeString(
|
|
3702
|
-
1,
|
|
3703
|
-
f
|
|
3704
|
-
);
|
|
3705
|
-
}
|
|
3706
|
-
f = message.getValue();
|
|
3707
|
-
if (f.length > 0) {
|
|
3708
|
-
writer.writeString(
|
|
3709
|
-
2,
|
|
3710
|
-
f
|
|
3711
|
-
);
|
|
3712
|
-
}
|
|
4225
|
+
proto.loyalty.LevelRewardBonusReward.prototype.hasAmount = function() {
|
|
4226
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3713
4227
|
};
|
|
3714
4228
|
|
|
3715
4229
|
|
|
3716
4230
|
/**
|
|
3717
|
-
* optional string
|
|
4231
|
+
* optional string currency = 3;
|
|
3718
4232
|
* @return {string}
|
|
3719
4233
|
*/
|
|
3720
|
-
proto.loyalty.
|
|
3721
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
4234
|
+
proto.loyalty.LevelRewardBonusReward.prototype.getCurrency = function() {
|
|
4235
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3722
4236
|
};
|
|
3723
4237
|
|
|
3724
4238
|
|
|
3725
4239
|
/**
|
|
3726
4240
|
* @param {string} value
|
|
3727
|
-
* @return {!proto.loyalty.
|
|
4241
|
+
* @return {!proto.loyalty.LevelRewardBonusReward} returns this
|
|
3728
4242
|
*/
|
|
3729
|
-
proto.loyalty.
|
|
3730
|
-
return jspb.Message.
|
|
4243
|
+
proto.loyalty.LevelRewardBonusReward.prototype.setCurrency = function(value) {
|
|
4244
|
+
return jspb.Message.setField(this, 3, value);
|
|
3731
4245
|
};
|
|
3732
4246
|
|
|
3733
4247
|
|
|
3734
4248
|
/**
|
|
3735
|
-
*
|
|
3736
|
-
* @return {
|
|
4249
|
+
* Clears the field making it undefined.
|
|
4250
|
+
* @return {!proto.loyalty.LevelRewardBonusReward} returns this
|
|
3737
4251
|
*/
|
|
3738
|
-
proto.loyalty.
|
|
3739
|
-
return
|
|
4252
|
+
proto.loyalty.LevelRewardBonusReward.prototype.clearCurrency = function() {
|
|
4253
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
3740
4254
|
};
|
|
3741
4255
|
|
|
3742
4256
|
|
|
3743
4257
|
/**
|
|
3744
|
-
*
|
|
3745
|
-
* @return {
|
|
4258
|
+
* Returns whether this field is set.
|
|
4259
|
+
* @return {boolean}
|
|
3746
4260
|
*/
|
|
3747
|
-
proto.loyalty.
|
|
3748
|
-
return jspb.Message.
|
|
4261
|
+
proto.loyalty.LevelRewardBonusReward.prototype.hasCurrency = function() {
|
|
4262
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3749
4263
|
};
|
|
3750
4264
|
|
|
3751
4265
|
|
|
3752
4266
|
|
|
4267
|
+
/**
|
|
4268
|
+
* List of repeated fields within this message type.
|
|
4269
|
+
* @private {!Array<number>}
|
|
4270
|
+
* @const
|
|
4271
|
+
*/
|
|
4272
|
+
proto.loyalty.LevelRewardBonus.repeatedFields_ = [3];
|
|
4273
|
+
|
|
3753
4274
|
|
|
3754
4275
|
|
|
3755
4276
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3765,8 +4286,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3765
4286
|
* http://goto/soy-param-migration
|
|
3766
4287
|
* @return {!Object}
|
|
3767
4288
|
*/
|
|
3768
|
-
proto.loyalty.
|
|
3769
|
-
return proto.loyalty.
|
|
4289
|
+
proto.loyalty.LevelRewardBonus.prototype.toObject = function(opt_includeInstance) {
|
|
4290
|
+
return proto.loyalty.LevelRewardBonus.toObject(opt_includeInstance, this);
|
|
3770
4291
|
};
|
|
3771
4292
|
|
|
3772
4293
|
|
|
@@ -3775,14 +4296,16 @@ proto.loyalty.LevelRewardCashback.prototype.toObject = function(opt_includeInsta
|
|
|
3775
4296
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3776
4297
|
* the JSPB instance for transitional soy proto support:
|
|
3777
4298
|
* http://goto/soy-param-migration
|
|
3778
|
-
* @param {!proto.loyalty.
|
|
4299
|
+
* @param {!proto.loyalty.LevelRewardBonus} msg The msg instance to transform.
|
|
3779
4300
|
* @return {!Object}
|
|
3780
4301
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3781
4302
|
*/
|
|
3782
|
-
proto.loyalty.
|
|
4303
|
+
proto.loyalty.LevelRewardBonus.toObject = function(includeInstance, msg) {
|
|
3783
4304
|
var f, obj = {
|
|
3784
|
-
|
|
3785
|
-
|
|
4305
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4306
|
+
cadence: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4307
|
+
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
4308
|
+
proto.loyalty.LevelRewardBonusReward.toObject, includeInstance)
|
|
3786
4309
|
};
|
|
3787
4310
|
|
|
3788
4311
|
if (includeInstance) {
|
|
@@ -3796,23 +4319,23 @@ proto.loyalty.LevelRewardCashback.toObject = function(includeInstance, msg) {
|
|
|
3796
4319
|
/**
|
|
3797
4320
|
* Deserializes binary data (in protobuf wire format).
|
|
3798
4321
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3799
|
-
* @return {!proto.loyalty.
|
|
4322
|
+
* @return {!proto.loyalty.LevelRewardBonus}
|
|
3800
4323
|
*/
|
|
3801
|
-
proto.loyalty.
|
|
4324
|
+
proto.loyalty.LevelRewardBonus.deserializeBinary = function(bytes) {
|
|
3802
4325
|
var reader = new jspb.BinaryReader(bytes);
|
|
3803
|
-
var msg = new proto.loyalty.
|
|
3804
|
-
return proto.loyalty.
|
|
4326
|
+
var msg = new proto.loyalty.LevelRewardBonus;
|
|
4327
|
+
return proto.loyalty.LevelRewardBonus.deserializeBinaryFromReader(msg, reader);
|
|
3805
4328
|
};
|
|
3806
4329
|
|
|
3807
4330
|
|
|
3808
4331
|
/**
|
|
3809
4332
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3810
4333
|
* given reader into the given message object.
|
|
3811
|
-
* @param {!proto.loyalty.
|
|
4334
|
+
* @param {!proto.loyalty.LevelRewardBonus} msg The message object to deserialize into.
|
|
3812
4335
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3813
|
-
* @return {!proto.loyalty.
|
|
4336
|
+
* @return {!proto.loyalty.LevelRewardBonus}
|
|
3814
4337
|
*/
|
|
3815
|
-
proto.loyalty.
|
|
4338
|
+
proto.loyalty.LevelRewardBonus.deserializeBinaryFromReader = function(msg, reader) {
|
|
3816
4339
|
while (reader.nextField()) {
|
|
3817
4340
|
if (reader.isEndGroup()) {
|
|
3818
4341
|
break;
|
|
@@ -3820,12 +4343,17 @@ proto.loyalty.LevelRewardCashback.deserializeBinaryFromReader = function(msg, re
|
|
|
3820
4343
|
var field = reader.getFieldNumber();
|
|
3821
4344
|
switch (field) {
|
|
3822
4345
|
case 1:
|
|
3823
|
-
var value = /** @type {
|
|
3824
|
-
msg.
|
|
4346
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4347
|
+
msg.setType(value);
|
|
3825
4348
|
break;
|
|
3826
4349
|
case 2:
|
|
3827
4350
|
var value = /** @type {string} */ (reader.readString());
|
|
3828
|
-
msg.
|
|
4351
|
+
msg.setCadence(value);
|
|
4352
|
+
break;
|
|
4353
|
+
case 3:
|
|
4354
|
+
var value = new proto.loyalty.LevelRewardBonusReward;
|
|
4355
|
+
reader.readMessage(value,proto.loyalty.LevelRewardBonusReward.deserializeBinaryFromReader);
|
|
4356
|
+
msg.addRewards(value);
|
|
3829
4357
|
break;
|
|
3830
4358
|
default:
|
|
3831
4359
|
reader.skipField();
|
|
@@ -3840,9 +4368,9 @@ proto.loyalty.LevelRewardCashback.deserializeBinaryFromReader = function(msg, re
|
|
|
3840
4368
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3841
4369
|
* @return {!Uint8Array}
|
|
3842
4370
|
*/
|
|
3843
|
-
proto.loyalty.
|
|
4371
|
+
proto.loyalty.LevelRewardBonus.prototype.serializeBinary = function() {
|
|
3844
4372
|
var writer = new jspb.BinaryWriter();
|
|
3845
|
-
proto.loyalty.
|
|
4373
|
+
proto.loyalty.LevelRewardBonus.serializeBinaryToWriter(this, writer);
|
|
3846
4374
|
return writer.getResultBuffer();
|
|
3847
4375
|
};
|
|
3848
4376
|
|
|
@@ -3850,15 +4378,15 @@ proto.loyalty.LevelRewardCashback.prototype.serializeBinary = function() {
|
|
|
3850
4378
|
/**
|
|
3851
4379
|
* Serializes the given message to binary data (in protobuf wire
|
|
3852
4380
|
* format), writing to the given BinaryWriter.
|
|
3853
|
-
* @param {!proto.loyalty.
|
|
4381
|
+
* @param {!proto.loyalty.LevelRewardBonus} message
|
|
3854
4382
|
* @param {!jspb.BinaryWriter} writer
|
|
3855
4383
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3856
4384
|
*/
|
|
3857
|
-
proto.loyalty.
|
|
4385
|
+
proto.loyalty.LevelRewardBonus.serializeBinaryToWriter = function(message, writer) {
|
|
3858
4386
|
var f = undefined;
|
|
3859
|
-
f = /** @type {
|
|
4387
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
3860
4388
|
if (f != null) {
|
|
3861
|
-
writer.
|
|
4389
|
+
writer.writeString(
|
|
3862
4390
|
1,
|
|
3863
4391
|
f
|
|
3864
4392
|
);
|
|
@@ -3870,32 +4398,40 @@ proto.loyalty.LevelRewardCashback.serializeBinaryToWriter = function(message, wr
|
|
|
3870
4398
|
f
|
|
3871
4399
|
);
|
|
3872
4400
|
}
|
|
4401
|
+
f = message.getRewardsList();
|
|
4402
|
+
if (f.length > 0) {
|
|
4403
|
+
writer.writeRepeatedMessage(
|
|
4404
|
+
3,
|
|
4405
|
+
f,
|
|
4406
|
+
proto.loyalty.LevelRewardBonusReward.serializeBinaryToWriter
|
|
4407
|
+
);
|
|
4408
|
+
}
|
|
3873
4409
|
};
|
|
3874
4410
|
|
|
3875
4411
|
|
|
3876
4412
|
/**
|
|
3877
|
-
* optional
|
|
3878
|
-
* @return {
|
|
4413
|
+
* optional string type = 1;
|
|
4414
|
+
* @return {string}
|
|
3879
4415
|
*/
|
|
3880
|
-
proto.loyalty.
|
|
3881
|
-
return /** @type {
|
|
4416
|
+
proto.loyalty.LevelRewardBonus.prototype.getType = function() {
|
|
4417
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3882
4418
|
};
|
|
3883
4419
|
|
|
3884
4420
|
|
|
3885
4421
|
/**
|
|
3886
|
-
* @param {
|
|
3887
|
-
* @return {!proto.loyalty.
|
|
4422
|
+
* @param {string} value
|
|
4423
|
+
* @return {!proto.loyalty.LevelRewardBonus} returns this
|
|
3888
4424
|
*/
|
|
3889
|
-
proto.loyalty.
|
|
4425
|
+
proto.loyalty.LevelRewardBonus.prototype.setType = function(value) {
|
|
3890
4426
|
return jspb.Message.setField(this, 1, value);
|
|
3891
4427
|
};
|
|
3892
4428
|
|
|
3893
4429
|
|
|
3894
4430
|
/**
|
|
3895
4431
|
* Clears the field making it undefined.
|
|
3896
|
-
* @return {!proto.loyalty.
|
|
4432
|
+
* @return {!proto.loyalty.LevelRewardBonus} returns this
|
|
3897
4433
|
*/
|
|
3898
|
-
proto.loyalty.
|
|
4434
|
+
proto.loyalty.LevelRewardBonus.prototype.clearType = function() {
|
|
3899
4435
|
return jspb.Message.setField(this, 1, undefined);
|
|
3900
4436
|
};
|
|
3901
4437
|
|
|
@@ -3904,34 +4440,34 @@ proto.loyalty.LevelRewardCashback.prototype.clearPercentage = function() {
|
|
|
3904
4440
|
* Returns whether this field is set.
|
|
3905
4441
|
* @return {boolean}
|
|
3906
4442
|
*/
|
|
3907
|
-
proto.loyalty.
|
|
4443
|
+
proto.loyalty.LevelRewardBonus.prototype.hasType = function() {
|
|
3908
4444
|
return jspb.Message.getField(this, 1) != null;
|
|
3909
4445
|
};
|
|
3910
4446
|
|
|
3911
4447
|
|
|
3912
4448
|
/**
|
|
3913
|
-
* optional string
|
|
4449
|
+
* optional string cadence = 2;
|
|
3914
4450
|
* @return {string}
|
|
3915
4451
|
*/
|
|
3916
|
-
proto.loyalty.
|
|
4452
|
+
proto.loyalty.LevelRewardBonus.prototype.getCadence = function() {
|
|
3917
4453
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3918
4454
|
};
|
|
3919
4455
|
|
|
3920
4456
|
|
|
3921
4457
|
/**
|
|
3922
4458
|
* @param {string} value
|
|
3923
|
-
* @return {!proto.loyalty.
|
|
4459
|
+
* @return {!proto.loyalty.LevelRewardBonus} returns this
|
|
3924
4460
|
*/
|
|
3925
|
-
proto.loyalty.
|
|
4461
|
+
proto.loyalty.LevelRewardBonus.prototype.setCadence = function(value) {
|
|
3926
4462
|
return jspb.Message.setField(this, 2, value);
|
|
3927
4463
|
};
|
|
3928
4464
|
|
|
3929
4465
|
|
|
3930
4466
|
/**
|
|
3931
4467
|
* Clears the field making it undefined.
|
|
3932
|
-
* @return {!proto.loyalty.
|
|
4468
|
+
* @return {!proto.loyalty.LevelRewardBonus} returns this
|
|
3933
4469
|
*/
|
|
3934
|
-
proto.loyalty.
|
|
4470
|
+
proto.loyalty.LevelRewardBonus.prototype.clearCadence = function() {
|
|
3935
4471
|
return jspb.Message.setField(this, 2, undefined);
|
|
3936
4472
|
};
|
|
3937
4473
|
|
|
@@ -3940,11 +4476,49 @@ proto.loyalty.LevelRewardCashback.prototype.clearCurrency = function() {
|
|
|
3940
4476
|
* Returns whether this field is set.
|
|
3941
4477
|
* @return {boolean}
|
|
3942
4478
|
*/
|
|
3943
|
-
proto.loyalty.
|
|
4479
|
+
proto.loyalty.LevelRewardBonus.prototype.hasCadence = function() {
|
|
3944
4480
|
return jspb.Message.getField(this, 2) != null;
|
|
3945
4481
|
};
|
|
3946
4482
|
|
|
3947
4483
|
|
|
4484
|
+
/**
|
|
4485
|
+
* repeated LevelRewardBonusReward rewards = 3;
|
|
4486
|
+
* @return {!Array<!proto.loyalty.LevelRewardBonusReward>}
|
|
4487
|
+
*/
|
|
4488
|
+
proto.loyalty.LevelRewardBonus.prototype.getRewardsList = function() {
|
|
4489
|
+
return /** @type{!Array<!proto.loyalty.LevelRewardBonusReward>} */ (
|
|
4490
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelRewardBonusReward, 3));
|
|
4491
|
+
};
|
|
4492
|
+
|
|
4493
|
+
|
|
4494
|
+
/**
|
|
4495
|
+
* @param {!Array<!proto.loyalty.LevelRewardBonusReward>} value
|
|
4496
|
+
* @return {!proto.loyalty.LevelRewardBonus} returns this
|
|
4497
|
+
*/
|
|
4498
|
+
proto.loyalty.LevelRewardBonus.prototype.setRewardsList = function(value) {
|
|
4499
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
4500
|
+
};
|
|
4501
|
+
|
|
4502
|
+
|
|
4503
|
+
/**
|
|
4504
|
+
* @param {!proto.loyalty.LevelRewardBonusReward=} opt_value
|
|
4505
|
+
* @param {number=} opt_index
|
|
4506
|
+
* @return {!proto.loyalty.LevelRewardBonusReward}
|
|
4507
|
+
*/
|
|
4508
|
+
proto.loyalty.LevelRewardBonus.prototype.addRewards = function(opt_value, opt_index) {
|
|
4509
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.loyalty.LevelRewardBonusReward, opt_index);
|
|
4510
|
+
};
|
|
4511
|
+
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* Clears the list making it empty but non-null.
|
|
4515
|
+
* @return {!proto.loyalty.LevelRewardBonus} returns this
|
|
4516
|
+
*/
|
|
4517
|
+
proto.loyalty.LevelRewardBonus.prototype.clearRewardsList = function() {
|
|
4518
|
+
return this.setRewardsList([]);
|
|
4519
|
+
};
|
|
4520
|
+
|
|
4521
|
+
|
|
3948
4522
|
|
|
3949
4523
|
/**
|
|
3950
4524
|
* List of repeated fields within this message type.
|
|
@@ -3997,7 +4571,8 @@ proto.loyalty.LevelRewardItem.toObject = function(includeInstance, msg) {
|
|
|
3997
4571
|
imageCdn: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
3998
4572
|
amount: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
3999
4573
|
isAvailable: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
4000
|
-
cashback: (f = msg.getCashback()) && proto.loyalty.LevelRewardCashback.toObject(includeInstance, f)
|
|
4574
|
+
cashback: (f = msg.getCashback()) && proto.loyalty.LevelRewardCashback.toObject(includeInstance, f),
|
|
4575
|
+
bonus: (f = msg.getBonus()) && proto.loyalty.LevelRewardBonus.toObject(includeInstance, f)
|
|
4001
4576
|
};
|
|
4002
4577
|
|
|
4003
4578
|
if (includeInstance) {
|
|
@@ -4088,6 +4663,11 @@ proto.loyalty.LevelRewardItem.deserializeBinaryFromReader = function(msg, reader
|
|
|
4088
4663
|
reader.readMessage(value,proto.loyalty.LevelRewardCashback.deserializeBinaryFromReader);
|
|
4089
4664
|
msg.setCashback(value);
|
|
4090
4665
|
break;
|
|
4666
|
+
case 14:
|
|
4667
|
+
var value = new proto.loyalty.LevelRewardBonus;
|
|
4668
|
+
reader.readMessage(value,proto.loyalty.LevelRewardBonus.deserializeBinaryFromReader);
|
|
4669
|
+
msg.setBonus(value);
|
|
4670
|
+
break;
|
|
4091
4671
|
default:
|
|
4092
4672
|
reader.skipField();
|
|
4093
4673
|
break;
|
|
@@ -4210,6 +4790,14 @@ proto.loyalty.LevelRewardItem.serializeBinaryToWriter = function(message, writer
|
|
|
4210
4790
|
proto.loyalty.LevelRewardCashback.serializeBinaryToWriter
|
|
4211
4791
|
);
|
|
4212
4792
|
}
|
|
4793
|
+
f = message.getBonus();
|
|
4794
|
+
if (f != null) {
|
|
4795
|
+
writer.writeMessage(
|
|
4796
|
+
14,
|
|
4797
|
+
f,
|
|
4798
|
+
proto.loyalty.LevelRewardBonus.serializeBinaryToWriter
|
|
4799
|
+
);
|
|
4800
|
+
}
|
|
4213
4801
|
};
|
|
4214
4802
|
|
|
4215
4803
|
|
|
@@ -4648,6 +5236,43 @@ proto.loyalty.LevelRewardItem.prototype.hasCashback = function() {
|
|
|
4648
5236
|
};
|
|
4649
5237
|
|
|
4650
5238
|
|
|
5239
|
+
/**
|
|
5240
|
+
* optional LevelRewardBonus bonus = 14;
|
|
5241
|
+
* @return {?proto.loyalty.LevelRewardBonus}
|
|
5242
|
+
*/
|
|
5243
|
+
proto.loyalty.LevelRewardItem.prototype.getBonus = function() {
|
|
5244
|
+
return /** @type{?proto.loyalty.LevelRewardBonus} */ (
|
|
5245
|
+
jspb.Message.getWrapperField(this, proto.loyalty.LevelRewardBonus, 14));
|
|
5246
|
+
};
|
|
5247
|
+
|
|
5248
|
+
|
|
5249
|
+
/**
|
|
5250
|
+
* @param {?proto.loyalty.LevelRewardBonus|undefined} value
|
|
5251
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
5252
|
+
*/
|
|
5253
|
+
proto.loyalty.LevelRewardItem.prototype.setBonus = function(value) {
|
|
5254
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
5255
|
+
};
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
/**
|
|
5259
|
+
* Clears the message field making it undefined.
|
|
5260
|
+
* @return {!proto.loyalty.LevelRewardItem} returns this
|
|
5261
|
+
*/
|
|
5262
|
+
proto.loyalty.LevelRewardItem.prototype.clearBonus = function() {
|
|
5263
|
+
return this.setBonus(undefined);
|
|
5264
|
+
};
|
|
5265
|
+
|
|
5266
|
+
|
|
5267
|
+
/**
|
|
5268
|
+
* Returns whether this field is set.
|
|
5269
|
+
* @return {boolean}
|
|
5270
|
+
*/
|
|
5271
|
+
proto.loyalty.LevelRewardItem.prototype.hasBonus = function() {
|
|
5272
|
+
return jspb.Message.getField(this, 14) != null;
|
|
5273
|
+
};
|
|
5274
|
+
|
|
5275
|
+
|
|
4651
5276
|
|
|
4652
5277
|
/**
|
|
4653
5278
|
* List of repeated fields within this message type.
|
|
@@ -5473,7 +6098,8 @@ proto.loyalty.LevelItemRequest.toObject = function(includeInstance, msg) {
|
|
|
5473
6098
|
removeDesktopImage: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
5474
6099
|
removeMobileImage: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
5475
6100
|
removePortraitImage: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
5476
|
-
pointsRequired: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
6101
|
+
pointsRequired: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
6102
|
+
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
5477
6103
|
};
|
|
5478
6104
|
|
|
5479
6105
|
if (includeInstance) {
|
|
@@ -5558,6 +6184,10 @@ proto.loyalty.LevelItemRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
5558
6184
|
var value = /** @type {number} */ (reader.readInt32());
|
|
5559
6185
|
msg.setPointsRequired(value);
|
|
5560
6186
|
break;
|
|
6187
|
+
case 13:
|
|
6188
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6189
|
+
msg.setTotalLevelUpAmount(value);
|
|
6190
|
+
break;
|
|
5561
6191
|
default:
|
|
5562
6192
|
reader.skipField();
|
|
5563
6193
|
break;
|
|
@@ -5671,6 +6301,13 @@ proto.loyalty.LevelItemRequest.serializeBinaryToWriter = function(message, write
|
|
|
5671
6301
|
f
|
|
5672
6302
|
);
|
|
5673
6303
|
}
|
|
6304
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 13));
|
|
6305
|
+
if (f != null) {
|
|
6306
|
+
writer.writeString(
|
|
6307
|
+
13,
|
|
6308
|
+
f
|
|
6309
|
+
);
|
|
6310
|
+
}
|
|
5674
6311
|
};
|
|
5675
6312
|
|
|
5676
6313
|
|
|
@@ -6106,6 +6743,42 @@ proto.loyalty.LevelItemRequest.prototype.hasPointsRequired = function() {
|
|
|
6106
6743
|
};
|
|
6107
6744
|
|
|
6108
6745
|
|
|
6746
|
+
/**
|
|
6747
|
+
* optional string total_level_up_amount = 13;
|
|
6748
|
+
* @return {string}
|
|
6749
|
+
*/
|
|
6750
|
+
proto.loyalty.LevelItemRequest.prototype.getTotalLevelUpAmount = function() {
|
|
6751
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
6752
|
+
};
|
|
6753
|
+
|
|
6754
|
+
|
|
6755
|
+
/**
|
|
6756
|
+
* @param {string} value
|
|
6757
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
6758
|
+
*/
|
|
6759
|
+
proto.loyalty.LevelItemRequest.prototype.setTotalLevelUpAmount = function(value) {
|
|
6760
|
+
return jspb.Message.setField(this, 13, value);
|
|
6761
|
+
};
|
|
6762
|
+
|
|
6763
|
+
|
|
6764
|
+
/**
|
|
6765
|
+
* Clears the field making it undefined.
|
|
6766
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
6767
|
+
*/
|
|
6768
|
+
proto.loyalty.LevelItemRequest.prototype.clearTotalLevelUpAmount = function() {
|
|
6769
|
+
return jspb.Message.setField(this, 13, undefined);
|
|
6770
|
+
};
|
|
6771
|
+
|
|
6772
|
+
|
|
6773
|
+
/**
|
|
6774
|
+
* Returns whether this field is set.
|
|
6775
|
+
* @return {boolean}
|
|
6776
|
+
*/
|
|
6777
|
+
proto.loyalty.LevelItemRequest.prototype.hasTotalLevelUpAmount = function() {
|
|
6778
|
+
return jspb.Message.getField(this, 13) != null;
|
|
6779
|
+
};
|
|
6780
|
+
|
|
6781
|
+
|
|
6109
6782
|
|
|
6110
6783
|
|
|
6111
6784
|
|
|
@@ -11366,7 +12039,8 @@ proto.loyalty.UserLoyaltyResponse.toObject = function(includeInstance, msg) {
|
|
|
11366
12039
|
nextImage: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
11367
12040
|
nextImageCdn: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
11368
12041
|
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
11369
|
-
proto.loyalty.LevelRewardItem.toObject, includeInstance)
|
|
12042
|
+
proto.loyalty.LevelRewardItem.toObject, includeInstance),
|
|
12043
|
+
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 18, "")
|
|
11370
12044
|
};
|
|
11371
12045
|
|
|
11372
12046
|
if (includeInstance) {
|
|
@@ -11472,6 +12146,10 @@ proto.loyalty.UserLoyaltyResponse.deserializeBinaryFromReader = function(msg, re
|
|
|
11472
12146
|
reader.readMessage(value,proto.loyalty.LevelRewardItem.deserializeBinaryFromReader);
|
|
11473
12147
|
msg.addRewards(value);
|
|
11474
12148
|
break;
|
|
12149
|
+
case 18:
|
|
12150
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12151
|
+
msg.setTotalLevelUpAmount(value);
|
|
12152
|
+
break;
|
|
11475
12153
|
default:
|
|
11476
12154
|
reader.skipField();
|
|
11477
12155
|
break;
|
|
@@ -11621,6 +12299,13 @@ proto.loyalty.UserLoyaltyResponse.serializeBinaryToWriter = function(message, wr
|
|
|
11621
12299
|
proto.loyalty.LevelRewardItem.serializeBinaryToWriter
|
|
11622
12300
|
);
|
|
11623
12301
|
}
|
|
12302
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 18));
|
|
12303
|
+
if (f != null) {
|
|
12304
|
+
writer.writeString(
|
|
12305
|
+
18,
|
|
12306
|
+
f
|
|
12307
|
+
);
|
|
12308
|
+
}
|
|
11624
12309
|
};
|
|
11625
12310
|
|
|
11626
12311
|
|
|
@@ -12238,6 +12923,42 @@ proto.loyalty.UserLoyaltyResponse.prototype.clearRewardsList = function() {
|
|
|
12238
12923
|
};
|
|
12239
12924
|
|
|
12240
12925
|
|
|
12926
|
+
/**
|
|
12927
|
+
* optional string total_level_up_amount = 18;
|
|
12928
|
+
* @return {string}
|
|
12929
|
+
*/
|
|
12930
|
+
proto.loyalty.UserLoyaltyResponse.prototype.getTotalLevelUpAmount = function() {
|
|
12931
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
|
|
12932
|
+
};
|
|
12933
|
+
|
|
12934
|
+
|
|
12935
|
+
/**
|
|
12936
|
+
* @param {string} value
|
|
12937
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
12938
|
+
*/
|
|
12939
|
+
proto.loyalty.UserLoyaltyResponse.prototype.setTotalLevelUpAmount = function(value) {
|
|
12940
|
+
return jspb.Message.setField(this, 18, value);
|
|
12941
|
+
};
|
|
12942
|
+
|
|
12943
|
+
|
|
12944
|
+
/**
|
|
12945
|
+
* Clears the field making it undefined.
|
|
12946
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
12947
|
+
*/
|
|
12948
|
+
proto.loyalty.UserLoyaltyResponse.prototype.clearTotalLevelUpAmount = function() {
|
|
12949
|
+
return jspb.Message.setField(this, 18, undefined);
|
|
12950
|
+
};
|
|
12951
|
+
|
|
12952
|
+
|
|
12953
|
+
/**
|
|
12954
|
+
* Returns whether this field is set.
|
|
12955
|
+
* @return {boolean}
|
|
12956
|
+
*/
|
|
12957
|
+
proto.loyalty.UserLoyaltyResponse.prototype.hasTotalLevelUpAmount = function() {
|
|
12958
|
+
return jspb.Message.getField(this, 18) != null;
|
|
12959
|
+
};
|
|
12960
|
+
|
|
12961
|
+
|
|
12241
12962
|
|
|
12242
12963
|
|
|
12243
12964
|
|