protobuf-platform 1.0.188 → 1.0.189
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 +1 -1
- package/user/user.proto +1 -0
- package/user/user_pb.js +49 -1
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -101,6 +101,7 @@ message UserDataResponse {
|
|
101
101
|
optional string category = 21;
|
102
102
|
optional string created = 22;
|
103
103
|
optional UserLoyaltyItem loyalty = 23;
|
104
|
+
optional int32 notifications_count = 24;
|
104
105
|
}
|
105
106
|
message UsersResponse {
|
106
107
|
repeated UserDataResponse items = 1;
|
package/user/user_pb.js
CHANGED
@@ -2844,7 +2844,8 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
|
|
2844
2844
|
riskStatus: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
2845
2845
|
category: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
2846
2846
|
created: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
2847
|
-
loyalty: (f = msg.getLoyalty()) && proto.user.UserLoyaltyItem.toObject(includeInstance, f)
|
2847
|
+
loyalty: (f = msg.getLoyalty()) && proto.user.UserLoyaltyItem.toObject(includeInstance, f),
|
2848
|
+
notificationsCount: jspb.Message.getFieldWithDefault(msg, 24, 0)
|
2848
2849
|
};
|
2849
2850
|
|
2850
2851
|
if (includeInstance) {
|
@@ -2974,6 +2975,10 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
2974
2975
|
reader.readMessage(value,proto.user.UserLoyaltyItem.deserializeBinaryFromReader);
|
2975
2976
|
msg.setLoyalty(value);
|
2976
2977
|
break;
|
2978
|
+
case 24:
|
2979
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2980
|
+
msg.setNotificationsCount(value);
|
2981
|
+
break;
|
2977
2982
|
default:
|
2978
2983
|
reader.skipField();
|
2979
2984
|
break;
|
@@ -3165,6 +3170,13 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
|
|
3165
3170
|
proto.user.UserLoyaltyItem.serializeBinaryToWriter
|
3166
3171
|
);
|
3167
3172
|
}
|
3173
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 24));
|
3174
|
+
if (f != null) {
|
3175
|
+
writer.writeInt32(
|
3176
|
+
24,
|
3177
|
+
f
|
3178
|
+
);
|
3179
|
+
}
|
3168
3180
|
};
|
3169
3181
|
|
3170
3182
|
|
@@ -3961,6 +3973,42 @@ proto.user.UserDataResponse.prototype.hasLoyalty = function() {
|
|
3961
3973
|
};
|
3962
3974
|
|
3963
3975
|
|
3976
|
+
/**
|
3977
|
+
* optional int32 notifications_count = 24;
|
3978
|
+
* @return {number}
|
3979
|
+
*/
|
3980
|
+
proto.user.UserDataResponse.prototype.getNotificationsCount = function() {
|
3981
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0));
|
3982
|
+
};
|
3983
|
+
|
3984
|
+
|
3985
|
+
/**
|
3986
|
+
* @param {number} value
|
3987
|
+
* @return {!proto.user.UserDataResponse} returns this
|
3988
|
+
*/
|
3989
|
+
proto.user.UserDataResponse.prototype.setNotificationsCount = function(value) {
|
3990
|
+
return jspb.Message.setField(this, 24, value);
|
3991
|
+
};
|
3992
|
+
|
3993
|
+
|
3994
|
+
/**
|
3995
|
+
* Clears the field making it undefined.
|
3996
|
+
* @return {!proto.user.UserDataResponse} returns this
|
3997
|
+
*/
|
3998
|
+
proto.user.UserDataResponse.prototype.clearNotificationsCount = function() {
|
3999
|
+
return jspb.Message.setField(this, 24, undefined);
|
4000
|
+
};
|
4001
|
+
|
4002
|
+
|
4003
|
+
/**
|
4004
|
+
* Returns whether this field is set.
|
4005
|
+
* @return {boolean}
|
4006
|
+
*/
|
4007
|
+
proto.user.UserDataResponse.prototype.hasNotificationsCount = function() {
|
4008
|
+
return jspb.Message.getField(this, 24) != null;
|
4009
|
+
};
|
4010
|
+
|
4011
|
+
|
3964
4012
|
|
3965
4013
|
/**
|
3966
4014
|
* List of repeated fields within this message type.
|