Class LookupResourcesResponse.Builder

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

public static final class LookupResourcesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<LookupResourcesResponse.Builder> implements LookupResourcesResponseOrBuilder
 LookupResourcesResponse contains a single matching resource object ID for the
 requested object type, permission, and subject.
 
Protobuf type authzed.api.v1.LookupResourcesResponse
  • 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<LookupResourcesResponse.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<LookupResourcesResponse.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<LookupResourcesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LookupResourcesResponse.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<LookupResourcesResponse.Builder>
      Throws:
      IOException
    • 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.
    • setLookedUpAt

      public LookupResourcesResponse.Builder setLookedUpAt(ZedToken value)
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
    • setLookedUpAt

      public LookupResourcesResponse.Builder setLookedUpAt(ZedToken.Builder builderForValue)
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
    • mergeLookedUpAt

      public LookupResourcesResponse.Builder mergeLookedUpAt(ZedToken value)
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
    • clearLookedUpAt

      public LookupResourcesResponse.Builder clearLookedUpAt()
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
    • getLookedUpAtBuilder

      public ZedToken.Builder getLookedUpAtBuilder()
       looked_up_at is the ZedToken at which the resource was found.
       
      .authzed.api.v1.ZedToken looked_up_at = 1;
    • 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.
    • setResourceObjectId

      public LookupResourcesResponse.Builder setResourceObjectId(String value)
       resource_object_id is the object ID of the found resource.
       
      string resource_object_id = 2;
      Parameters:
      value - The resourceObjectId to set.
      Returns:
      This builder for chaining.
    • clearResourceObjectId

      public LookupResourcesResponse.Builder clearResourceObjectId()
       resource_object_id is the object ID of the found resource.
       
      string resource_object_id = 2;
      Returns:
      This builder for chaining.
    • setResourceObjectIdBytes

      public LookupResourcesResponse.Builder setResourceObjectIdBytes(com.google.protobuf.ByteString value)
       resource_object_id is the object ID of the found resource.
       
      string resource_object_id = 2;
      Parameters:
      value - The bytes for resourceObjectId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPermissionshipValue

      public LookupResourcesResponse.Builder setPermissionshipValue(int value)
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for permissionship to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPermissionship

      public LookupResourcesResponse.Builder setPermissionship(LookupPermissionship value)
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The permissionship to set.
      Returns:
      This builder for chaining.
    • clearPermissionship

      public LookupResourcesResponse.Builder clearPermissionship()
       permissionship indicates whether the response was partially evaluated or not
       
      .authzed.api.v1.LookupPermissionship permissionship = 3 [(.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 = 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.
    • setPartialCaveatInfo

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

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

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

      public LookupResourcesResponse.Builder clearPartialCaveatInfo()
       partial_caveat_info holds information of a partially-evaluated caveated response
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4 [(.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 = 4 [(.validate.rules) = { ... }
    • 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.
    • setAfterResultCursor

      public LookupResourcesResponse.Builder setAfterResultCursor(Cursor value)
       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;
    • setAfterResultCursor

      public LookupResourcesResponse.Builder setAfterResultCursor(Cursor.Builder builderForValue)
       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;
    • mergeAfterResultCursor

      public LookupResourcesResponse.Builder mergeAfterResultCursor(Cursor value)
       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;
    • clearAfterResultCursor

      public LookupResourcesResponse.Builder clearAfterResultCursor()
       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;
    • getAfterResultCursorBuilder

      public Cursor.Builder getAfterResultCursorBuilder()
       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;
    • 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