protobuf-platform 1.0.197 → 1.0.199
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/cms/cms.proto
CHANGED
@@ -30,6 +30,8 @@ message PongResponse { string pong = 1; }
|
|
30
30
|
message PaginationRequest {
|
31
31
|
int32 limit = 1;
|
32
32
|
int32 offset = 2;
|
33
|
+
optional int32 is_active = 3;
|
34
|
+
optional string geo = 4;
|
33
35
|
}
|
34
36
|
//Media
|
35
37
|
message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
|
package/cms/cms_pb.js
CHANGED
@@ -843,7 +843,9 @@ proto.cms.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
843
843
|
proto.cms.PaginationRequest.toObject = function(includeInstance, msg) {
|
844
844
|
var f, obj = {
|
845
845
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
846
|
-
offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
846
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
847
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
848
|
+
geo: jspb.Message.getFieldWithDefault(msg, 4, "")
|
847
849
|
};
|
848
850
|
|
849
851
|
if (includeInstance) {
|
@@ -888,6 +890,14 @@ proto.cms.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
888
890
|
var value = /** @type {number} */ (reader.readInt32());
|
889
891
|
msg.setOffset(value);
|
890
892
|
break;
|
893
|
+
case 3:
|
894
|
+
var value = /** @type {number} */ (reader.readInt32());
|
895
|
+
msg.setIsActive(value);
|
896
|
+
break;
|
897
|
+
case 4:
|
898
|
+
var value = /** @type {string} */ (reader.readString());
|
899
|
+
msg.setGeo(value);
|
900
|
+
break;
|
891
901
|
default:
|
892
902
|
reader.skipField();
|
893
903
|
break;
|
@@ -931,6 +941,20 @@ proto.cms.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
931
941
|
f
|
932
942
|
);
|
933
943
|
}
|
944
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
945
|
+
if (f != null) {
|
946
|
+
writer.writeInt32(
|
947
|
+
3,
|
948
|
+
f
|
949
|
+
);
|
950
|
+
}
|
951
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
952
|
+
if (f != null) {
|
953
|
+
writer.writeString(
|
954
|
+
4,
|
955
|
+
f
|
956
|
+
);
|
957
|
+
}
|
934
958
|
};
|
935
959
|
|
936
960
|
|
@@ -970,6 +994,78 @@ proto.cms.PaginationRequest.prototype.setOffset = function(value) {
|
|
970
994
|
};
|
971
995
|
|
972
996
|
|
997
|
+
/**
|
998
|
+
* optional int32 is_active = 3;
|
999
|
+
* @return {number}
|
1000
|
+
*/
|
1001
|
+
proto.cms.PaginationRequest.prototype.getIsActive = function() {
|
1002
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1003
|
+
};
|
1004
|
+
|
1005
|
+
|
1006
|
+
/**
|
1007
|
+
* @param {number} value
|
1008
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
1009
|
+
*/
|
1010
|
+
proto.cms.PaginationRequest.prototype.setIsActive = function(value) {
|
1011
|
+
return jspb.Message.setField(this, 3, value);
|
1012
|
+
};
|
1013
|
+
|
1014
|
+
|
1015
|
+
/**
|
1016
|
+
* Clears the field making it undefined.
|
1017
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
1018
|
+
*/
|
1019
|
+
proto.cms.PaginationRequest.prototype.clearIsActive = function() {
|
1020
|
+
return jspb.Message.setField(this, 3, undefined);
|
1021
|
+
};
|
1022
|
+
|
1023
|
+
|
1024
|
+
/**
|
1025
|
+
* Returns whether this field is set.
|
1026
|
+
* @return {boolean}
|
1027
|
+
*/
|
1028
|
+
proto.cms.PaginationRequest.prototype.hasIsActive = function() {
|
1029
|
+
return jspb.Message.getField(this, 3) != null;
|
1030
|
+
};
|
1031
|
+
|
1032
|
+
|
1033
|
+
/**
|
1034
|
+
* optional string geo = 4;
|
1035
|
+
* @return {string}
|
1036
|
+
*/
|
1037
|
+
proto.cms.PaginationRequest.prototype.getGeo = function() {
|
1038
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1039
|
+
};
|
1040
|
+
|
1041
|
+
|
1042
|
+
/**
|
1043
|
+
* @param {string} value
|
1044
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
1045
|
+
*/
|
1046
|
+
proto.cms.PaginationRequest.prototype.setGeo = function(value) {
|
1047
|
+
return jspb.Message.setField(this, 4, value);
|
1048
|
+
};
|
1049
|
+
|
1050
|
+
|
1051
|
+
/**
|
1052
|
+
* Clears the field making it undefined.
|
1053
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
1054
|
+
*/
|
1055
|
+
proto.cms.PaginationRequest.prototype.clearGeo = function() {
|
1056
|
+
return jspb.Message.setField(this, 4, undefined);
|
1057
|
+
};
|
1058
|
+
|
1059
|
+
|
1060
|
+
/**
|
1061
|
+
* Returns whether this field is set.
|
1062
|
+
* @return {boolean}
|
1063
|
+
*/
|
1064
|
+
proto.cms.PaginationRequest.prototype.hasGeo = function() {
|
1065
|
+
return jspb.Message.getField(this, 4) != null;
|
1066
|
+
};
|
1067
|
+
|
1068
|
+
|
973
1069
|
|
974
1070
|
|
975
1071
|
|
@@ -15,7 +15,7 @@ service Notification {
|
|
15
15
|
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
16
16
|
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
17
17
|
rpc getNotificationsCountForUser(NotificationSearchRequest) returns (UserNotificationsCountResponse);
|
18
|
-
rpc markUserNotification(NotificationSearchRequest) returns (
|
18
|
+
rpc markUserNotification(NotificationSearchRequest) returns (UserNotificationsCountResponse);
|
19
19
|
}
|
20
20
|
|
21
21
|
message PingRequest { string ping = 1; }
|
@@ -277,11 +277,11 @@ sendNotificationToUsers: {
|
|
277
277
|
requestStream: false,
|
278
278
|
responseStream: false,
|
279
279
|
requestType: notification_pb.NotificationSearchRequest,
|
280
|
-
responseType: notification_pb.
|
280
|
+
responseType: notification_pb.UserNotificationsCountResponse,
|
281
281
|
requestSerialize: serialize_notification_NotificationSearchRequest,
|
282
282
|
requestDeserialize: deserialize_notification_NotificationSearchRequest,
|
283
|
-
responseSerialize:
|
284
|
-
responseDeserialize:
|
283
|
+
responseSerialize: serialize_notification_UserNotificationsCountResponse,
|
284
|
+
responseDeserialize: deserialize_notification_UserNotificationsCountResponse,
|
285
285
|
},
|
286
286
|
};
|
287
287
|
|