Package com.authzed.api.v1
Class CheckPermissionRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.authzed.api.v1.CheckPermissionRequest
- All Implemented Interfaces:
- CheckPermissionRequestOrBuilder,- com.google.protobuf.Message,- com.google.protobuf.MessageLite,- com.google.protobuf.MessageLiteOrBuilder,- com.google.protobuf.MessageOrBuilder,- Serializable
@Generated
public final class CheckPermissionRequest
extends com.google.protobuf.GeneratedMessage
implements CheckPermissionRequestOrBuilder
CheckPermissionRequest issues a check on whether a subject has a permission or is a member of a relation, on a specific resource.Protobuf type
authzed.api.v1.CheckPermissionRequest- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classCheckPermissionRequest issues a check on whether a subject has a permission or is a member of a relation, on a specific resource.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessagecom.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessagecom.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLitecom.google.protobuf.AbstractMessageLite.InternalOneOfEnum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessagealwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessagememoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLitememoizedHashCode
- 
Method SummaryModifier and TypeMethodDescriptionboolean.authzed.api.v1.Consistency consistency = 1;.authzed.api.v1.Consistency consistency = 1;com.google.protobuf.Structcontext consists of named values that are injected into the caveat evaluation contextcom.google.protobuf.StructOrBuildercontext consists of named values that are injected into the caveat evaluation contextstatic CheckPermissionRequeststatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<CheckPermissionRequest>permission is the name of the permission (or relation) on which to execute the check.com.google.protobuf.ByteStringpermission is the name of the permission (or relation) on which to execute the check.resource is the resource on which to check the permission or relation.resource is the resource on which to check the permission or relation.intsubject is the subject that will be checked for the permission or relation.subject is the subject that will be checked for the permission or relation.booleanwith_tracing, if true, indicates that the response should include a debug trace.boolean.authzed.api.v1.Consistency consistency = 1;booleancontext consists of named values that are injected into the caveat evaluation contextinthashCode()booleanresource is the resource on which to check the permission or relation.booleansubject is the subject that will be checked for the permission or relation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(CheckPermissionRequest prototype) protected CheckPermissionRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CheckPermissionRequestparseDelimitedFrom(InputStream input) static CheckPermissionRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionRequestparseFrom(byte[] data) static CheckPermissionRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionRequestparseFrom(com.google.protobuf.ByteString data) static CheckPermissionRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionRequestparseFrom(com.google.protobuf.CodedInputStream input) static CheckPermissionRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionRequestparseFrom(InputStream input) static CheckPermissionRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionRequestparseFrom(ByteBuffer data) static CheckPermissionRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CheckPermissionRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessagecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessagefindInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLiteaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLitetoByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilderfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
- 
Field Details- 
CONSISTENCY_FIELD_NUMBERpublic static final int CONSISTENCY_FIELD_NUMBER- See Also:
 
- 
RESOURCE_FIELD_NUMBERpublic static final int RESOURCE_FIELD_NUMBER- See Also:
 
- 
PERMISSION_FIELD_NUMBERpublic static final int PERMISSION_FIELD_NUMBER- See Also:
 
- 
SUBJECT_FIELD_NUMBERpublic static final int SUBJECT_FIELD_NUMBER- See Also:
 
- 
CONTEXT_FIELD_NUMBERpublic static final int CONTEXT_FIELD_NUMBER- See Also:
 
- 
WITH_TRACING_FIELD_NUMBERpublic static final int WITH_TRACING_FIELD_NUMBER- See Also:
 
 
- 
- 
Method Details- 
getDescriptorpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
- 
internalGetFieldAccessorTableprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
- internalGetFieldAccessorTablein class- com.google.protobuf.GeneratedMessage
 
- 
hasConsistencypublic boolean hasConsistency().authzed.api.v1.Consistency consistency = 1;- Specified by:
- hasConsistencyin interface- CheckPermissionRequestOrBuilder
- Returns:
- Whether the consistency field is set.
 
- 
getConsistency.authzed.api.v1.Consistency consistency = 1;- Specified by:
- getConsistencyin interface- CheckPermissionRequestOrBuilder
- Returns:
- The consistency.
 
- 
getConsistencyOrBuilder.authzed.api.v1.Consistency consistency = 1;- Specified by:
- getConsistencyOrBuilderin interface- CheckPermissionRequestOrBuilder
 
- 
hasResourcepublic boolean hasResource()resource is the resource on which to check the permission or relation. .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
- hasResourcein interface- CheckPermissionRequestOrBuilder
- Returns:
- Whether the resource field is set.
 
- 
getResourceresource is the resource on which to check the permission or relation. .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
- getResourcein interface- CheckPermissionRequestOrBuilder
- Returns:
- The resource.
 
- 
getResourceOrBuilderresource is the resource on which to check the permission or relation. .authzed.api.v1.ObjectReference resource = 2 [(.validate.rules) = { ... }- Specified by:
- getResourceOrBuilderin interface- CheckPermissionRequestOrBuilder
 
- 
getPermissionpermission is the name of the permission (or relation) on which to execute the check. string permission = 3 [(.validate.rules) = { ... }- Specified by:
- getPermissionin interface- CheckPermissionRequestOrBuilder
- Returns:
- The permission.
 
- 
getPermissionBytespublic com.google.protobuf.ByteString getPermissionBytes()permission is the name of the permission (or relation) on which to execute the check. string permission = 3 [(.validate.rules) = { ... }- Specified by:
- getPermissionBytesin interface- CheckPermissionRequestOrBuilder
- Returns:
- The bytes for permission.
 
- 
hasSubjectpublic boolean hasSubject()subject is the subject that will be checked for the permission or relation. .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }- Specified by:
- hasSubjectin interface- CheckPermissionRequestOrBuilder
- Returns:
- Whether the subject field is set.
 
- 
getSubjectsubject is the subject that will be checked for the permission or relation. .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }- Specified by:
- getSubjectin interface- CheckPermissionRequestOrBuilder
- Returns:
- The subject.
 
- 
getSubjectOrBuildersubject is the subject that will be checked for the permission or relation. .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }- Specified by:
- getSubjectOrBuilderin interface- CheckPermissionRequestOrBuilder
 
- 
hasContextpublic boolean hasContext()context consists of named values that are injected into the caveat evaluation context .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }- Specified by:
- hasContextin interface- CheckPermissionRequestOrBuilder
- Returns:
- Whether the context field is set.
 
- 
getContextpublic com.google.protobuf.Struct getContext()context consists of named values that are injected into the caveat evaluation context .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }- Specified by:
- getContextin interface- CheckPermissionRequestOrBuilder
- Returns:
- The context.
 
- 
getContextOrBuilderpublic com.google.protobuf.StructOrBuilder getContextOrBuilder()context consists of named values that are injected into the caveat evaluation context .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }- Specified by:
- getContextOrBuilderin interface- CheckPermissionRequestOrBuilder
 
- 
getWithTracingpublic boolean getWithTracing()with_tracing, if true, indicates that the response should include a debug trace. This can be useful for debugging and performance analysis, but adds a small amount of compute overhead to the request. bool with_tracing = 6;- Specified by:
- getWithTracingin interface- CheckPermissionRequestOrBuilder
- Returns:
- The withTracing.
 
- 
isInitializedpublic final boolean isInitialized()- Specified by:
- isInitializedin interface- com.google.protobuf.MessageLiteOrBuilder
- Overrides:
- isInitializedin class- com.google.protobuf.GeneratedMessage
 
- 
writeTo- Specified by:
- writeToin interface- com.google.protobuf.MessageLite
- Overrides:
- writeToin class- com.google.protobuf.GeneratedMessage
- Throws:
- IOException
 
- 
getSerializedSizepublic int getSerializedSize()- Specified by:
- getSerializedSizein interface- com.google.protobuf.MessageLite
- Overrides:
- getSerializedSizein class- com.google.protobuf.GeneratedMessage
 
- 
equals- Specified by:
- equalsin interface- com.google.protobuf.Message
- Overrides:
- equalsin class- com.google.protobuf.AbstractMessage
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- com.google.protobuf.Message
- Overrides:
- hashCodein class- com.google.protobuf.AbstractMessage
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
- 
parseFrom- Throws:
- IOException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
- IOException
 
- 
parseDelimitedFrom- Throws:
- IOException
 
- 
parseDelimitedFrompublic static CheckPermissionRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
- IOException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
- IOException
 
- 
parseFrompublic static CheckPermissionRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
- IOException
 
- 
newBuilderForType- Specified by:
- newBuilderForTypein interface- com.google.protobuf.Message
- Specified by:
- newBuilderForTypein interface- com.google.protobuf.MessageLite
 
- 
newBuilder
- 
newBuilder
- 
toBuilder- Specified by:
- toBuilderin interface- com.google.protobuf.Message
- Specified by:
- toBuilderin interface- com.google.protobuf.MessageLite
 
- 
newBuilderForTypeprotected CheckPermissionRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
- newBuilderForTypein class- com.google.protobuf.AbstractMessage
 
- 
getDefaultInstance
- 
parser
- 
getParserForType- Specified by:
- getParserForTypein interface- com.google.protobuf.Message
- Specified by:
- getParserForTypein interface- com.google.protobuf.MessageLite
- Overrides:
- getParserForTypein class- com.google.protobuf.GeneratedMessage
 
- 
getDefaultInstanceForType- Specified by:
- getDefaultInstanceForTypein interface- com.google.protobuf.MessageLiteOrBuilder
- Specified by:
- getDefaultInstanceForTypein interface- com.google.protobuf.MessageOrBuilder
 
 
-