Class CheckPermissionResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CheckPermissionResponse.Builder>
com.authzed.api.v1.CheckPermissionResponse.Builder
All Implemented Interfaces:
CheckPermissionResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CheckPermissionResponse

public static final class CheckPermissionResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<CheckPermissionResponse.Builder> implements CheckPermissionResponseOrBuilder
Protobuf type authzed.api.v1.CheckPermissionResponse
  • 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<CheckPermissionResponse.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<CheckPermissionResponse.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<CheckPermissionResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public CheckPermissionResponse.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<CheckPermissionResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CheckPermissionResponse.Builder>
    • mergeFrom

      public CheckPermissionResponse.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<CheckPermissionResponse.Builder>
      Throws:
      IOException
    • hasCheckedAt

      public boolean hasCheckedAt()
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
      Specified by:
      hasCheckedAt in interface CheckPermissionResponseOrBuilder
      Returns:
      Whether the checkedAt field is set.
    • getCheckedAt

      public ZedToken getCheckedAt()
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
      Specified by:
      getCheckedAt in interface CheckPermissionResponseOrBuilder
      Returns:
      The checkedAt.
    • setCheckedAt

      public CheckPermissionResponse.Builder setCheckedAt(ZedToken value)
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
    • setCheckedAt

      public CheckPermissionResponse.Builder setCheckedAt(ZedToken.Builder builderForValue)
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
    • mergeCheckedAt

      public CheckPermissionResponse.Builder mergeCheckedAt(ZedToken value)
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
    • clearCheckedAt

      public CheckPermissionResponse.Builder clearCheckedAt()
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
    • getCheckedAtBuilder

      public ZedToken.Builder getCheckedAtBuilder()
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
    • getCheckedAtOrBuilder

      public ZedTokenOrBuilder getCheckedAtOrBuilder()
      .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
      Specified by:
      getCheckedAtOrBuilder in interface CheckPermissionResponseOrBuilder
    • 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:
      getPermissionshipValue in interface CheckPermissionResponseOrBuilder
      Returns:
      The enum numeric value on the wire for permissionship.
    • setPermissionshipValue

      public CheckPermissionResponse.Builder setPermissionshipValue(int value)
       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) = { ... }
      Parameters:
      value - The enum numeric value on the wire for permissionship to set.
      Returns:
      This builder for chaining.
    • getPermissionship

      public CheckPermissionResponse.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:
      getPermissionship in interface CheckPermissionResponseOrBuilder
      Returns:
      The permissionship.
    • setPermissionship

       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) = { ... }
      Parameters:
      value - The permissionship to set.
      Returns:
      This builder for chaining.
    • clearPermissionship

      public CheckPermissionResponse.Builder clearPermissionship()
       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) = { ... }
      Returns:
      This builder for chaining.
    • 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:
      hasPartialCaveatInfo in interface CheckPermissionResponseOrBuilder
      Returns:
      Whether the partialCaveatInfo field is set.
    • getPartialCaveatInfo

      public PartialCaveatInfo getPartialCaveatInfo()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
      Specified by:
      getPartialCaveatInfo in interface CheckPermissionResponseOrBuilder
      Returns:
      The partialCaveatInfo.
    • setPartialCaveatInfo

      public CheckPermissionResponse.Builder setPartialCaveatInfo(PartialCaveatInfo value)
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • setPartialCaveatInfo

      public CheckPermissionResponse.Builder setPartialCaveatInfo(PartialCaveatInfo.Builder builderForValue)
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • mergePartialCaveatInfo

      public CheckPermissionResponse.Builder mergePartialCaveatInfo(PartialCaveatInfo value)
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • clearPartialCaveatInfo

      public CheckPermissionResponse.Builder clearPartialCaveatInfo()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • getPartialCaveatInfoBuilder

      public PartialCaveatInfo.Builder getPartialCaveatInfoBuilder()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
    • getPartialCaveatInfoOrBuilder

      public PartialCaveatInfoOrBuilder getPartialCaveatInfoOrBuilder()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
      Specified by:
      getPartialCaveatInfoOrBuilder in interface CheckPermissionResponseOrBuilder
    • hasDebugTrace

      public boolean hasDebugTrace()
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
      Specified by:
      hasDebugTrace in interface CheckPermissionResponseOrBuilder
      Returns:
      Whether the debugTrace field is set.
    • getDebugTrace

      public DebugInformation getDebugTrace()
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
      Specified by:
      getDebugTrace in interface CheckPermissionResponseOrBuilder
      Returns:
      The debugTrace.
    • setDebugTrace

      public CheckPermissionResponse.Builder setDebugTrace(DebugInformation value)
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
    • setDebugTrace

      public CheckPermissionResponse.Builder setDebugTrace(DebugInformation.Builder builderForValue)
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
    • mergeDebugTrace

      public CheckPermissionResponse.Builder mergeDebugTrace(DebugInformation value)
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
    • clearDebugTrace

      public CheckPermissionResponse.Builder clearDebugTrace()
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
    • getDebugTraceBuilder

      public DebugInformation.Builder getDebugTraceBuilder()
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
    • getDebugTraceOrBuilder

      public DebugInformationOrBuilder getDebugTraceOrBuilder()
       debug_trace is the debugging trace of this check, if requested.
       
      .authzed.api.v1.DebugInformation debug_trace = 4;
      Specified by:
      getDebugTraceOrBuilder in interface CheckPermissionResponseOrBuilder