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

public final class CheckPermissionResponse extends com.google.protobuf.GeneratedMessage implements CheckPermissionResponseOrBuilder
Protobuf type authzed.api.v1.CheckPermissionResponse
See Also:
  • 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:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static CheckPermissionResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CheckPermissionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CheckPermissionResponse parseDelimitedFrom(InputStream input) throws IOException
      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

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

      public static CheckPermissionResponse.Builder newBuilder()
    • newBuilder

      public static CheckPermissionResponse.Builder newBuilder(CheckPermissionResponse prototype)
    • toBuilder

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

      protected CheckPermissionResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CheckPermissionResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CheckPermissionResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<CheckPermissionResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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