Class LookupResourcesResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.authzed.api.v1.LookupResourcesResponse
All Implemented Interfaces:
LookupResourcesResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class LookupResourcesResponse extends com.google.protobuf.GeneratedMessage implements LookupResourcesResponseOrBuilder
 LookupResourcesResponse contains a single matching resource object ID for the
 requested object type, permission, and subject.
 
Protobuf type authzed.api.v1.LookupResourcesResponse
See Also:
  • Field Details

    • LOOKED_UP_AT_FIELD_NUMBER

      public static final int LOOKED_UP_AT_FIELD_NUMBER
      See Also:
    • RESOURCE_OBJECT_ID_FIELD_NUMBER

      public static final int RESOURCE_OBJECT_ID_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:
    • AFTER_RESULT_CURSOR_FIELD_NUMBER

      public static final int AFTER_RESULT_CURSOR_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
    • hasLookedUpAt

      public boolean hasLookedUpAt()
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
      Specified by:
      hasLookedUpAt in interface LookupResourcesResponseOrBuilder
      Returns:
      Whether the lookedUpAt field is set.
    • getLookedUpAt

      public ZedToken getLookedUpAt()
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
      Specified by:
      getLookedUpAt in interface LookupResourcesResponseOrBuilder
      Returns:
      The lookedUpAt.
    • getLookedUpAtOrBuilder

      public ZedTokenOrBuilder getLookedUpAtOrBuilder()
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
      Specified by:
      getLookedUpAtOrBuilder in interface LookupResourcesResponseOrBuilder
    • getResourceObjectId

      public String getResourceObjectId()
       resource_object_id is the object ID of the found resource.
       
      string resource_object_id = 2;
      Specified by:
      getResourceObjectId in interface LookupResourcesResponseOrBuilder
      Returns:
      The resourceObjectId.
    • getResourceObjectIdBytes

      public com.google.protobuf.ByteString getResourceObjectIdBytes()
       resource_object_id is the object ID of the found resource.
       
      string resource_object_id = 2;
      Specified by:
      getResourceObjectIdBytes in interface LookupResourcesResponseOrBuilder
      Returns:
      The bytes for resourceObjectId.
    • getPermissionshipValue

      public int getPermissionshipValue()
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
      Specified by:
      getPermissionshipValue in interface LookupResourcesResponseOrBuilder
      Returns:
      The enum numeric value on the wire for permissionship.
    • getPermissionship

      public LookupPermissionship getPermissionship()
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
      Specified by:
      getPermissionship in interface LookupResourcesResponseOrBuilder
      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 = 4 [(.validate.rules) = { ... }
      Specified by:
      hasPartialCaveatInfo in interface LookupResourcesResponseOrBuilder
      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 = 4 [(.validate.rules) = { ... }
      Specified by:
      getPartialCaveatInfo in interface LookupResourcesResponseOrBuilder
      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 = 4 [(.validate.rules) = { ... }
      Specified by:
      getPartialCaveatInfoOrBuilder in interface LookupResourcesResponseOrBuilder
    • hasAfterResultCursor

      public boolean hasAfterResultCursor()
       after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 5;
      Specified by:
      hasAfterResultCursor in interface LookupResourcesResponseOrBuilder
      Returns:
      Whether the afterResultCursor field is set.
    • getAfterResultCursor

      public Cursor getAfterResultCursor()
       after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 5;
      Specified by:
      getAfterResultCursor in interface LookupResourcesResponseOrBuilder
      Returns:
      The afterResultCursor.
    • getAfterResultCursorOrBuilder

      public CursorOrBuilder getAfterResultCursorOrBuilder()
       after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 5;
      Specified by:
      getAfterResultCursorOrBuilder in interface LookupResourcesResponseOrBuilder
    • 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 LookupResourcesResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LookupResourcesResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LookupResourcesResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LookupResourcesResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LookupResourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LookupResourcesResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static LookupResourcesResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static LookupResourcesResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LookupResourcesResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static LookupResourcesResponse.Builder newBuilder()
    • newBuilder

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

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

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

      public static LookupResourcesResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<LookupResourcesResponse> 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 LookupResourcesResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder