romil
11/24/2022, 12:17 PMmessage CheckPermissionRequest {
Consistency consistency = 1;
// resource is the resource on which to check the permission or relation.
ObjectReference resource = 2 [ (validate.rules).message.required = true ];
// permission is the name of the permission (or relation) on which to execute
// the check.
string permission = 3 [ (validate.rules).string = {
pattern : "^([a-z][a-z0-9_]{1,62}[a-z0-9])?$",
max_bytes : 64,
} ];
// subject is the subject that will be checked for the permission or relation.
SubjectReference subject = 4 [ (validate.rules).message.required = true ];