protobuf-platform 1.2.647 → 1.2.648
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/loyalty/loyalty.proto +1 -0
- package/loyalty/loyalty_pb.js +62 -2
- package/package.json +1 -1
package/loyalty/loyalty.proto
CHANGED
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -762,7 +762,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
762
762
|
* @constructor
|
|
763
763
|
*/
|
|
764
764
|
proto.loyalty.UserLoyaltyResponse = function(opt_data) {
|
|
765
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
765
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.UserLoyaltyResponse.repeatedFields_, null);
|
|
766
766
|
};
|
|
767
767
|
goog.inherits(proto.loyalty.UserLoyaltyResponse, jspb.Message);
|
|
768
768
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -10744,6 +10744,13 @@ proto.loyalty.GetUserLoyaltyRequest.prototype.hasOffset = function() {
|
|
|
10744
10744
|
|
|
10745
10745
|
|
|
10746
10746
|
|
|
10747
|
+
/**
|
|
10748
|
+
* List of repeated fields within this message type.
|
|
10749
|
+
* @private {!Array<number>}
|
|
10750
|
+
* @const
|
|
10751
|
+
*/
|
|
10752
|
+
proto.loyalty.UserLoyaltyResponse.repeatedFields_ = [17];
|
|
10753
|
+
|
|
10747
10754
|
|
|
10748
10755
|
|
|
10749
10756
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -10790,7 +10797,9 @@ proto.loyalty.UserLoyaltyResponse.toObject = function(includeInstance, msg) {
|
|
|
10790
10797
|
nextPointsToComplete: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
10791
10798
|
nextTitle: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
10792
10799
|
nextImage: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
10793
|
-
nextImageCdn: jspb.Message.getFieldWithDefault(msg, 16, "")
|
|
10800
|
+
nextImageCdn: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
10801
|
+
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
10802
|
+
proto.loyalty.LevelRewardItem.toObject, includeInstance)
|
|
10794
10803
|
};
|
|
10795
10804
|
|
|
10796
10805
|
if (includeInstance) {
|
|
@@ -10891,6 +10900,11 @@ proto.loyalty.UserLoyaltyResponse.deserializeBinaryFromReader = function(msg, re
|
|
|
10891
10900
|
var value = /** @type {string} */ (reader.readString());
|
|
10892
10901
|
msg.setNextImageCdn(value);
|
|
10893
10902
|
break;
|
|
10903
|
+
case 17:
|
|
10904
|
+
var value = new proto.loyalty.LevelRewardItem;
|
|
10905
|
+
reader.readMessage(value,proto.loyalty.LevelRewardItem.deserializeBinaryFromReader);
|
|
10906
|
+
msg.addRewards(value);
|
|
10907
|
+
break;
|
|
10894
10908
|
default:
|
|
10895
10909
|
reader.skipField();
|
|
10896
10910
|
break;
|
|
@@ -11032,6 +11046,14 @@ proto.loyalty.UserLoyaltyResponse.serializeBinaryToWriter = function(message, wr
|
|
|
11032
11046
|
f
|
|
11033
11047
|
);
|
|
11034
11048
|
}
|
|
11049
|
+
f = message.getRewardsList();
|
|
11050
|
+
if (f.length > 0) {
|
|
11051
|
+
writer.writeRepeatedMessage(
|
|
11052
|
+
17,
|
|
11053
|
+
f,
|
|
11054
|
+
proto.loyalty.LevelRewardItem.serializeBinaryToWriter
|
|
11055
|
+
);
|
|
11056
|
+
}
|
|
11035
11057
|
};
|
|
11036
11058
|
|
|
11037
11059
|
|
|
@@ -11611,6 +11633,44 @@ proto.loyalty.UserLoyaltyResponse.prototype.hasNextImageCdn = function() {
|
|
|
11611
11633
|
};
|
|
11612
11634
|
|
|
11613
11635
|
|
|
11636
|
+
/**
|
|
11637
|
+
* repeated LevelRewardItem rewards = 17;
|
|
11638
|
+
* @return {!Array<!proto.loyalty.LevelRewardItem>}
|
|
11639
|
+
*/
|
|
11640
|
+
proto.loyalty.UserLoyaltyResponse.prototype.getRewardsList = function() {
|
|
11641
|
+
return /** @type{!Array<!proto.loyalty.LevelRewardItem>} */ (
|
|
11642
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelRewardItem, 17));
|
|
11643
|
+
};
|
|
11644
|
+
|
|
11645
|
+
|
|
11646
|
+
/**
|
|
11647
|
+
* @param {!Array<!proto.loyalty.LevelRewardItem>} value
|
|
11648
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
11649
|
+
*/
|
|
11650
|
+
proto.loyalty.UserLoyaltyResponse.prototype.setRewardsList = function(value) {
|
|
11651
|
+
return jspb.Message.setRepeatedWrapperField(this, 17, value);
|
|
11652
|
+
};
|
|
11653
|
+
|
|
11654
|
+
|
|
11655
|
+
/**
|
|
11656
|
+
* @param {!proto.loyalty.LevelRewardItem=} opt_value
|
|
11657
|
+
* @param {number=} opt_index
|
|
11658
|
+
* @return {!proto.loyalty.LevelRewardItem}
|
|
11659
|
+
*/
|
|
11660
|
+
proto.loyalty.UserLoyaltyResponse.prototype.addRewards = function(opt_value, opt_index) {
|
|
11661
|
+
return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.loyalty.LevelRewardItem, opt_index);
|
|
11662
|
+
};
|
|
11663
|
+
|
|
11664
|
+
|
|
11665
|
+
/**
|
|
11666
|
+
* Clears the list making it empty but non-null.
|
|
11667
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
11668
|
+
*/
|
|
11669
|
+
proto.loyalty.UserLoyaltyResponse.prototype.clearRewardsList = function() {
|
|
11670
|
+
return this.setRewardsList([]);
|
|
11671
|
+
};
|
|
11672
|
+
|
|
11673
|
+
|
|
11614
11674
|
|
|
11615
11675
|
|
|
11616
11676
|
|