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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
    • clear

      public CheckDebugTrace.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CheckDebugTrace.Builder>
    • getDefaultInstanceForType

      public CheckDebugTrace getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CheckDebugTrace build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CheckDebugTrace buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CheckDebugTrace.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckDebugTrace.Builder>
    • mergeFrom

      public CheckDebugTrace.Builder mergeFrom(CheckDebugTrace other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckDebugTrace.Builder>
      Throws:
      IOException
    • getResolutionCase

      public CheckDebugTrace.ResolutionCase getResolutionCase()
      Specified by:
      getResolutionCase in interface CheckDebugTraceOrBuilder
    • clearResolution

      public CheckDebugTrace.Builder 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 interface CheckDebugTraceOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public ObjectReference getResource()
       resource holds the resource on which the Check was performed.
       
      .authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
      Specified by:
      getResource in interface CheckDebugTraceOrBuilder
      Returns:
      The resource.
    • setResource

      public CheckDebugTrace.Builder setResource(ObjectReference value)
       resource holds the resource on which the Check was performed.
       
      .authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
    • setResource

      public CheckDebugTrace.Builder setResource(ObjectReference.Builder builderForValue)
       resource holds the resource on which the Check was performed.
       
      .authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
    • mergeResource

      public CheckDebugTrace.Builder mergeResource(ObjectReference value)
       resource holds the resource on which the Check was performed.
       
      .authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
    • clearResource

      public CheckDebugTrace.Builder clearResource()
       resource holds the resource on which the Check was performed.
       
      .authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
    • getResourceBuilder

      public ObjectReference.Builder getResourceBuilder()
       resource holds the resource on which the Check was performed.
       
      .authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
    • getResourceOrBuilder

      public ObjectReferenceOrBuilder getResourceOrBuilder()
       resource holds the resource on which the Check was performed.
       
      .authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
      Specified by:
      getResourceOrBuilder in interface CheckDebugTraceOrBuilder
    • getPermission

      public String getPermission()
       permission holds the name of the permission or relation on which the Check was performed.
       
      string permission = 2;
      Specified by:
      getPermission in interface CheckDebugTraceOrBuilder
      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 interface CheckDebugTraceOrBuilder
      Returns:
      The bytes for permission.
    • setPermission

      public CheckDebugTrace.Builder setPermission(String value)
       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

      public CheckDebugTrace.Builder 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

      public CheckDebugTrace.Builder setPermissionBytes(com.google.protobuf.ByteString value)
       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 interface CheckDebugTraceOrBuilder
      Returns:
      The enum numeric value on the wire for permissionType.
    • setPermissionTypeValue

      public CheckDebugTrace.Builder setPermissionTypeValue(int value)
       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

      public CheckDebugTrace.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 interface CheckDebugTraceOrBuilder
      Returns:
      The permissionType.
    • setPermissionType

      public CheckDebugTrace.Builder setPermissionType(CheckDebugTrace.PermissionType value)
       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

      public CheckDebugTrace.Builder 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 interface CheckDebugTraceOrBuilder
      Returns:
      Whether the subject field is set.
    • getSubject

      public SubjectReference 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 interface CheckDebugTraceOrBuilder
      Returns:
      The subject.
    • setSubject

      public CheckDebugTrace.Builder setSubject(SubjectReference value)
       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

      public CheckDebugTrace.Builder setSubject(SubjectReference.Builder builderForValue)
       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

      public CheckDebugTrace.Builder mergeSubject(SubjectReference value)
       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

      public CheckDebugTrace.Builder 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

      public SubjectReference.Builder 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

      public SubjectReferenceOrBuilder 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 interface CheckDebugTraceOrBuilder
    • 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 interface CheckDebugTraceOrBuilder
      Returns:
      The enum numeric value on the wire for result.
    • setResultValue

      public CheckDebugTrace.Builder setResultValue(int value)
       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

      public CheckDebugTrace.Permissionship getResult()
       result holds the result of the Check call.
       
      .authzed.api.v1.CheckDebugTrace.Permissionship result = 5 [(.validate.rules) = { ... }
      Specified by:
      getResult in interface CheckDebugTraceOrBuilder
      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

      public CheckDebugTrace.Builder 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 interface CheckDebugTraceOrBuilder
      Returns:
      Whether the caveatEvaluationInfo field is set.
    • getCaveatEvaluationInfo

      public CaveatEvalInfo 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 interface CheckDebugTraceOrBuilder
      Returns:
      The caveatEvaluationInfo.
    • setCaveatEvaluationInfo

      public CheckDebugTrace.Builder setCaveatEvaluationInfo(CaveatEvalInfo value)
       caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
       
      .authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
    • setCaveatEvaluationInfo

      public CheckDebugTrace.Builder setCaveatEvaluationInfo(CaveatEvalInfo.Builder builderForValue)
       caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
       
      .authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
    • mergeCaveatEvaluationInfo

      public CheckDebugTrace.Builder mergeCaveatEvaluationInfo(CaveatEvalInfo value)
       caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
       
      .authzed.api.v1.CaveatEvalInfo caveat_evaluation_info = 8;
    • clearCaveatEvaluationInfo

      public CheckDebugTrace.Builder 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

      public CaveatEvalInfo.Builder 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

      public CaveatEvalInfoOrBuilder 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 interface CheckDebugTraceOrBuilder
    • hasDuration

      public boolean hasDuration()
       duration holds the time spent executing this Check operation.
       
      .google.protobuf.Duration duration = 9;
      Specified by:
      hasDuration in interface CheckDebugTraceOrBuilder
      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 interface CheckDebugTraceOrBuilder
      Returns:
      The duration.
    • setDuration

      public CheckDebugTrace.Builder setDuration(com.google.protobuf.Duration value)
       duration holds the time spent executing this Check operation.
       
      .google.protobuf.Duration duration = 9;
    • setDuration

      public CheckDebugTrace.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       duration holds the time spent executing this Check operation.
       
      .google.protobuf.Duration duration = 9;
    • mergeDuration

      public CheckDebugTrace.Builder mergeDuration(com.google.protobuf.Duration value)
       duration holds the time spent executing this Check operation.
       
      .google.protobuf.Duration duration = 9;
    • clearDuration

      public CheckDebugTrace.Builder 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 interface CheckDebugTraceOrBuilder
    • 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 interface CheckDebugTraceOrBuilder
      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 interface CheckDebugTraceOrBuilder
      Returns:
      The wasCachedResult.
    • setWasCachedResult

      public CheckDebugTrace.Builder setWasCachedResult(boolean value)
       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

      public CheckDebugTrace.Builder 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 interface CheckDebugTraceOrBuilder
      Returns:
      Whether the subProblems field is set.
    • getSubProblems

      public CheckDebugTrace.SubProblems 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 interface CheckDebugTraceOrBuilder
      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

      public CheckDebugTrace.Builder setSubProblems(CheckDebugTrace.SubProblems.Builder builderForValue)
       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

      public CheckDebugTrace.Builder mergeSubProblems(CheckDebugTrace.SubProblems value)
       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

      public CheckDebugTrace.Builder 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

      public CheckDebugTrace.SubProblems.Builder 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

      public CheckDebugTrace.SubProblemsOrBuilder 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 interface CheckDebugTraceOrBuilder