Package com.authzed.api.v1
Class CheckDebugTrace
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.authzed.api.v1.CheckDebugTrace
- All Implemented Interfaces:
CheckDebugTraceOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class CheckDebugTrace
extends com.google.protobuf.GeneratedMessage
implements CheckDebugTraceOrBuilder
CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission API call.Protobuf type
authzed.api.v1.CheckDebugTrace
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission API call.static enum
Protobuf enumauthzed.api.v1.CheckDebugTrace.Permissionship
static enum
Protobuf enumauthzed.api.v1.CheckDebugTrace.PermissionType
static enum
static final class
Protobuf typeauthzed.api.v1.CheckDebugTrace.SubProblems
static interface
Nested 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.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.static CheckDebugTrace
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Duration
duration holds the time spent executing this Check operation.com.google.protobuf.DurationOrBuilder
duration holds the time spent executing this Check operation.com.google.protobuf.Parser<CheckDebugTrace>
permission holds the name of the permission or relation on which the Check was performed.com.google.protobuf.ByteString
permission holds the name of the permission or relation on which the Check was performed.permission_type holds information indicating whether it was a permission or relation.int
permission_type holds information indicating whether it was a permission or relation.resource holds the resource on which the Check was performed.resource holds the resource on which the Check was performed.result holds the result of the Check call.int
result holds the result of the Check call.int
subject holds the subject on which the Check was performed.subject holds the subject on which the Check was performed.sub_problems holds the sub problems that were executed to resolve the answer to this Check.sub_problems holds the sub problems that were executed to resolve the answer to this Check.boolean
was_cached_result, if true, indicates that the result was found in the cache and returned directly.boolean
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.boolean
duration holds the time spent executing this Check operation.int
hashCode()
boolean
resource holds the resource on which the Check was performed.boolean
subject holds the subject on which the Check was performed.boolean
sub_problems holds the sub problems that were executed to resolve the answer to this Check.boolean
was_cached_result, if true, indicates that the result was found in the cache and returned directly.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static CheckDebugTrace.Builder
static CheckDebugTrace.Builder
newBuilder
(CheckDebugTrace prototype) protected CheckDebugTrace.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static CheckDebugTrace
parseDelimitedFrom
(InputStream input) static CheckDebugTrace
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckDebugTrace
parseFrom
(byte[] data) static CheckDebugTrace
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckDebugTrace
parseFrom
(com.google.protobuf.ByteString data) static CheckDebugTrace
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckDebugTrace
parseFrom
(com.google.protobuf.CodedInputStream input) static CheckDebugTrace
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckDebugTrace
parseFrom
(InputStream input) static CheckDebugTrace
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckDebugTrace
parseFrom
(ByteBuffer data) static CheckDebugTrace
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CheckDebugTrace>
parser()
void
writeTo
(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, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
PERMISSION_FIELD_NUMBER
public static final int PERMISSION_FIELD_NUMBER- See Also:
-
PERMISSION_TYPE_FIELD_NUMBER
public static final int PERMISSION_TYPE_FIELD_NUMBER- See Also:
-
SUBJECT_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER- See Also:
-
RESULT_FIELD_NUMBER
public static final int RESULT_FIELD_NUMBER- See Also:
-
CAVEAT_EVALUATION_INFO_FIELD_NUMBER
public static final int CAVEAT_EVALUATION_INFO_FIELD_NUMBER- See Also:
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER- See Also:
-
WAS_CACHED_RESULT_FIELD_NUMBER
public static final int WAS_CACHED_RESULT_FIELD_NUMBER- See Also:
-
SUB_PROBLEMS_FIELD_NUMBER
public static final int SUB_PROBLEMS_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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getResolutionCase
- Specified by:
getResolutionCase
in interfaceCheckDebugTraceOrBuilder
-
hasResource
public boolean hasResource()resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
- Specified by:
hasResource
in interfaceCheckDebugTraceOrBuilder
- Returns:
- Whether the resource field is set.
-
getResource
resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
- Specified by:
getResource
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The resource.
-
getResourceOrBuilder
resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
- Specified by:
getResourceOrBuilder
in interfaceCheckDebugTraceOrBuilder
-
getPermission
permission holds the name of the permission or relation on which the Check was performed.
string permission = 2;
- Specified by:
getPermission
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()permission holds the name of the permission or relation on which the Check was performed.
string permission = 2;
- Specified by:
getPermissionBytes
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The bytes for permission.
-
getPermissionTypeValue
public int getPermissionTypeValue()permission_type holds information indicating whether it was a permission or relation.
.authzed.api.v1.CheckDebugTrace.PermissionType permission_type = 3 [(.validate.rules) = { ... }
- Specified by:
getPermissionTypeValue
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The enum numeric value on the wire for permissionType.
-
getPermissionType
permission_type holds information indicating whether it was a permission or relation.
.authzed.api.v1.CheckDebugTrace.PermissionType permission_type = 3 [(.validate.rules) = { ... }
- Specified by:
getPermissionType
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The permissionType.
-
hasSubject
public boolean hasSubject()subject holds the subject on which the Check was performed. This will be static across all calls within the same Check tree.
.authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
- Specified by:
hasSubject
in interfaceCheckDebugTraceOrBuilder
- Returns:
- Whether the subject field is set.
-
getSubject
subject holds the subject on which the Check was performed. This will be static across all calls within the same Check tree.
.authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
- Specified by:
getSubject
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The subject.
-
getSubjectOrBuilder
subject holds the subject on which the Check was performed. This will be static across all calls within the same Check tree.
.authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
- Specified by:
getSubjectOrBuilder
in interfaceCheckDebugTraceOrBuilder
-
getResultValue
public int getResultValue()result holds the result of the Check call.
.authzed.api.v1.CheckDebugTrace.Permissionship result = 5 [(.validate.rules) = { ... }
- Specified by:
getResultValue
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The enum numeric value on the wire for result.
-
getResult
result holds the result of the Check call.
.authzed.api.v1.CheckDebugTrace.Permissionship result = 5 [(.validate.rules) = { ... }
- Specified by:
getResult
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The result.
-
hasCaveatEvaluationInfo
public boolean hasCaveatEvaluationInfo()caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
- Specified by:
hasCaveatEvaluationInfo
in interfaceCheckDebugTraceOrBuilder
- Returns:
- Whether the caveatEvaluationInfo field is set.
-
getCaveatEvaluationInfo
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
- Specified by:
getCaveatEvaluationInfo
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The caveatEvaluationInfo.
-
getCaveatEvaluationInfoOrBuilder
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
- Specified by:
getCaveatEvaluationInfoOrBuilder
in interfaceCheckDebugTraceOrBuilder
-
hasDuration
public boolean hasDuration()duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
- Specified by:
hasDuration
in interfaceCheckDebugTraceOrBuilder
- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
- Specified by:
getDuration
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The duration.
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
- Specified by:
getDurationOrBuilder
in interfaceCheckDebugTraceOrBuilder
-
hasWasCachedResult
public boolean hasWasCachedResult()was_cached_result, if true, indicates that the result was found in the cache and returned directly.
bool was_cached_result = 6;
- Specified by:
hasWasCachedResult
in interfaceCheckDebugTraceOrBuilder
- Returns:
- Whether the wasCachedResult field is set.
-
getWasCachedResult
public boolean getWasCachedResult()was_cached_result, if true, indicates that the result was found in the cache and returned directly.
bool was_cached_result = 6;
- Specified by:
getWasCachedResult
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The wasCachedResult.
-
hasSubProblems
public boolean hasSubProblems()sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list and a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation.
.authzed.api.v1.CheckDebugTrace.SubProblems sub_problems = 7;
- Specified by:
hasSubProblems
in interfaceCheckDebugTraceOrBuilder
- Returns:
- Whether the subProblems field is set.
-
getSubProblems
sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list and a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation.
.authzed.api.v1.CheckDebugTrace.SubProblems sub_problems = 7;
- Specified by:
getSubProblems
in interfaceCheckDebugTraceOrBuilder
- Returns:
- The subProblems.
-
getSubProblemsOrBuilder
sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list and a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation.
.authzed.api.v1.CheckDebugTrace.SubProblems sub_problems = 7;
- Specified by:
getSubProblemsOrBuilder
in interfaceCheckDebugTraceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CheckDebugTrace parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckDebugTrace parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckDebugTrace parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckDebugTrace parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckDebugTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckDebugTrace parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CheckDebugTrace parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CheckDebugTrace parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CheckDebugTrace parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CheckDebugTrace parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CheckDebugTrace.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-