Package com.authzed.api.v1
Class CheckDebugTrace.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
com.authzed.api.v1.CheckDebugTrace.Builder
- All Implemented Interfaces:
CheckDebugTraceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CheckDebugTrace
public static final class CheckDebugTrace.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
implements CheckDebugTraceOrBuilder
CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission API call.Protobuf type
authzed.api.v1.CheckDebugTrace
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.duration holds the time spent executing this Check operation.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.resource holds the resource on which the Check was performed.result holds the result of the Check call.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.was_cached_result, if true, indicates that the result was found in the cache and returned directly.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.caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Duration
duration holds the time spent executing this Check operation.com.google.protobuf.Duration.Builder
duration holds the time spent executing this Check operation.com.google.protobuf.DurationOrBuilder
duration holds the time spent executing this Check operation.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.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.subject holds the subject on which the Check was performed.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.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.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
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.mergeDuration
(com.google.protobuf.Duration value) duration holds the time spent executing this Check operation.mergeFrom
(CheckDebugTrace other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeResource
(ObjectReference value) resource holds the resource on which the Check was performed.mergeSubject
(SubjectReference value) 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.caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.setCaveatEvaluationInfo
(CaveatEvalInfo.Builder builderForValue) caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.setDuration
(com.google.protobuf.Duration value) duration holds the time spent executing this Check operation.setDuration
(com.google.protobuf.Duration.Builder builderForValue) duration holds the time spent executing this Check operation.setPermission
(String value) permission holds the name of the permission or relation on which the Check was performed.setPermissionBytes
(com.google.protobuf.ByteString value) 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.setPermissionTypeValue
(int value) permission_type holds information indicating whether it was a permission or relation.setResource
(ObjectReference value) resource holds the resource on which the Check was performed.setResource
(ObjectReference.Builder builderForValue) resource holds the resource on which the Check was performed.result holds the result of the Check call.setResultValue
(int value) result holds the result of the Check call.setSubject
(SubjectReference value) subject holds the subject on which the Check was performed.setSubject
(SubjectReference.Builder builderForValue) 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.setSubProblems
(CheckDebugTrace.SubProblems.Builder builderForValue) sub_problems holds the sub problems that were executed to resolve the answer to this Check.setWasCachedResult
(boolean value) was_cached_result, if true, indicates that the result was found in the cache and returned directly.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<CheckDebugTrace.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CheckDebugTrace.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
-
mergeFrom
public CheckDebugTrace.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CheckDebugTrace.Builder>
- Throws:
IOException
-
getResolutionCase
- Specified by:
getResolutionCase
in interfaceCheckDebugTraceOrBuilder
-
clearResolution
-
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.
-
setResource
resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
setResource
resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
mergeResource
resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
clearResource
resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
getResourceBuilder
resource holds the resource on which the Check was performed.
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
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.
-
setPermission
permission holds the name of the permission or relation on which the Check was performed.
string permission = 2;
- Parameters:
value
- The permission to set.- Returns:
- This builder for chaining.
-
clearPermission
permission holds the name of the permission or relation on which the Check was performed.
string permission = 2;
- Returns:
- This builder for chaining.
-
setPermissionBytes
permission holds the name of the permission or relation on which the Check was performed.
string permission = 2;
- Parameters:
value
- The bytes for permission to set.- Returns:
- This builder for chaining.
-
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.
-
setPermissionTypeValue
permission_type holds information indicating whether it was a permission or relation.
.authzed.api.v1.CheckDebugTrace.PermissionType permission_type = 3 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for permissionType to set.- Returns:
- This builder for chaining.
-
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.
-
setPermissionType
permission_type holds information indicating whether it was a permission or relation.
.authzed.api.v1.CheckDebugTrace.PermissionType permission_type = 3 [(.validate.rules) = { ... }
- Parameters:
value
- The permissionType to set.- Returns:
- This builder for chaining.
-
clearPermissionType
permission_type holds information indicating whether it was a permission or relation.
.authzed.api.v1.CheckDebugTrace.PermissionType permission_type = 3 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
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.
-
setSubject
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) = { ... }
-
setSubject
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) = { ... }
-
mergeSubject
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) = { ... }
-
clearSubject
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) = { ... }
-
getSubjectBuilder
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) = { ... }
-
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.
-
setResultValue
result holds the result of the Check call.
.authzed.api.v1.CheckDebugTrace.Permissionship result = 5 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for result to set.- Returns:
- This builder for chaining.
-
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.
-
setResult
result holds the result of the Check call.
.authzed.api.v1.CheckDebugTrace.Permissionship result = 5 [(.validate.rules) = { ... }
- Parameters:
value
- The result to set.- Returns:
- This builder for chaining.
-
clearResult
result holds the result of the Check call.
.authzed.api.v1.CheckDebugTrace.Permissionship result = 5 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
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.
-
setCaveatEvaluationInfo
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
-
setCaveatEvaluationInfo
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
-
mergeCaveatEvaluationInfo
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
-
clearCaveatEvaluationInfo
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
-
getCaveatEvaluationInfoBuilder
caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
.authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
-
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.
-
setDuration
duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
-
setDuration
duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
-
mergeDuration
duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
-
clearDuration
duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
-
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()duration holds the time spent executing this Check operation.
.google.protobuf.Duration duration = 9;
-
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.
-
setWasCachedResult
was_cached_result, if true, indicates that the result was found in the cache and returned directly.
bool was_cached_result = 6;
- Parameters:
value
- The wasCachedResult to set.- Returns:
- This builder for chaining.
-
clearWasCachedResult
was_cached_result, if true, indicates that the result was found in the cache and returned directly.
bool was_cached_result = 6;
- Returns:
- This builder for chaining.
-
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.
-
setSubProblems
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;
-
setSubProblems
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;
-
mergeSubProblems
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;
-
clearSubProblems
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;
-
getSubProblemsBuilder
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;
-
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
-