Package com.authzed.api.v1
Class CheckPermissionResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.authzed.api.v1.CheckPermissionResponse
- All Implemented Interfaces:
CheckPermissionResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class CheckPermissionResponse
extends com.google.protobuf.GeneratedMessage
implements CheckPermissionResponseOrBuilder
Protobuf type
authzed.api.v1.CheckPermissionResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeauthzed.api.v1.CheckPermissionResponsestatic enumProtobuf enumauthzed.api.v1.CheckPermissionResponse.PermissionshipNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.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.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionboolean.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ....authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...debug_trace is the debugging trace of this check, if requested.debug_trace is the debugging trace of this check, if requested.static CheckPermissionResponsestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Timestampoptional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).com.google.protobuf.TimestampOrBuilderoptional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).com.google.protobuf.Parser<CheckPermissionResponse>partial_caveat_info holds information of a partially-evaluated caveated responsepartial_caveat_info holds information of a partially-evaluated caveated responsePermissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation.intPermissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation.intboolean.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ...booleandebug_trace is the debugging trace of this check, if requested.inthashCode()booleanoptional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any).booleanpartial_caveat_info holds information of a partially-evaluated caveated responseprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(CheckPermissionResponse prototype) protected CheckPermissionResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CheckPermissionResponseparseDelimitedFrom(InputStream input) static CheckPermissionResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionResponseparseFrom(byte[] data) static CheckPermissionResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionResponseparseFrom(com.google.protobuf.ByteString data) static CheckPermissionResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionResponseparseFrom(com.google.protobuf.CodedInputStream input) static CheckPermissionResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionResponseparseFrom(InputStream input) static CheckPermissionResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckPermissionResponseparseFrom(ByteBuffer data) static CheckPermissionResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CheckPermissionResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, 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.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CHECKED_AT_FIELD_NUMBER
public static final int CHECKED_AT_FIELD_NUMBER- See Also:
-
PERMISSIONSHIP_FIELD_NUMBER
public static final int PERMISSIONSHIP_FIELD_NUMBER- See Also:
-
PARTIAL_CAVEAT_INFO_FIELD_NUMBER
public static final int PARTIAL_CAVEAT_INFO_FIELD_NUMBER- See Also:
-
DEBUG_TRACE_FIELD_NUMBER
public static final int DEBUG_TRACE_FIELD_NUMBER- See Also:
-
OPTIONAL_EXPIRES_AT_FIELD_NUMBER
public static final int OPTIONAL_EXPIRES_AT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasCheckedAt
public boolean hasCheckedAt().authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }- Specified by:
hasCheckedAtin interfaceCheckPermissionResponseOrBuilder- Returns:
- Whether the checkedAt field is set.
-
getCheckedAt
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }- Specified by:
getCheckedAtin interfaceCheckPermissionResponseOrBuilder- Returns:
- The checkedAt.
-
getCheckedAtOrBuilder
.authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }- Specified by:
getCheckedAtOrBuilderin interfaceCheckPermissionResponseOrBuilder
-
getPermissionshipValue
public int getPermissionshipValue()Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation. This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the requested subject is a member of the computed permission set or there exists a relationship with the requested relation from the given resource to the given subject.
.authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }- Specified by:
getPermissionshipValuein interfaceCheckPermissionResponseOrBuilder- Returns:
- The enum numeric value on the wire for permissionship.
-
getPermissionship
Permissionship communicates whether or not the subject has the requested permission or has a relationship with the given resource, over the given relation. This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the requested subject is a member of the computed permission set or there exists a relationship with the requested relation from the given resource to the given subject.
.authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }- Specified by:
getPermissionshipin interfaceCheckPermissionResponseOrBuilder- Returns:
- The permissionship.
-
hasPartialCaveatInfo
public boolean hasPartialCaveatInfo()partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }- Specified by:
hasPartialCaveatInfoin interfaceCheckPermissionResponseOrBuilder- Returns:
- Whether the partialCaveatInfo field is set.
-
getPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }- Specified by:
getPartialCaveatInfoin interfaceCheckPermissionResponseOrBuilder- Returns:
- The partialCaveatInfo.
-
getPartialCaveatInfoOrBuilder
partial_caveat_info holds information of a partially-evaluated caveated response
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }- Specified by:
getPartialCaveatInfoOrBuilderin interfaceCheckPermissionResponseOrBuilder
-
hasDebugTrace
public boolean hasDebugTrace()debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;- Specified by:
hasDebugTracein interfaceCheckPermissionResponseOrBuilder- Returns:
- Whether the debugTrace field is set.
-
getDebugTrace
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;- Specified by:
getDebugTracein interfaceCheckPermissionResponseOrBuilder- Returns:
- The debugTrace.
-
getDebugTraceOrBuilder
debug_trace is the debugging trace of this check, if requested.
.authzed.api.v1.DebugInformation debug_trace = 4;- Specified by:
getDebugTraceOrBuilderin interfaceCheckPermissionResponseOrBuilder
-
hasOptionalExpiresAt
public boolean hasOptionalExpiresAt()optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
hasOptionalExpiresAtin interfaceCheckPermissionResponseOrBuilder- Returns:
- Whether the optionalExpiresAt field is set.
-
getOptionalExpiresAt
public com.google.protobuf.Timestamp getOptionalExpiresAt()optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
getOptionalExpiresAtin interfaceCheckPermissionResponseOrBuilder- Returns:
- The optionalExpiresAt.
-
getOptionalExpiresAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getOptionalExpiresAtOrBuilder()optional_expires_at is the time at which at least one of the relationships used to compute this result, expires (if any). This is *not* related to the caching window.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
getOptionalExpiresAtOrBuilderin interfaceCheckPermissionResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CheckPermissionResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckPermissionResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckPermissionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckPermissionResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckPermissionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckPermissionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CheckPermissionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CheckPermissionResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CheckPermissionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CheckPermissionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CheckPermissionResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-