Class LookupResourcesRequest.Builder

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

public static final class LookupResourcesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<LookupResourcesRequest.Builder> implements LookupResourcesRequestOrBuilder
 LookupResourcesRequest performs a lookup of all resources of a particular
 kind on which the subject has the specified permission or the relation in
 which the subject exists, streaming back the IDs of those resources.
 
Protobuf type authzed.api.v1.LookupResourcesRequest
  • 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<LookupResourcesRequest.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<LookupResourcesRequest.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<LookupResourcesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LookupResourcesRequest.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<LookupResourcesRequest.Builder>
      Throws:
      IOException
    • hasConsistency

      public boolean hasConsistency()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      hasConsistency in interface LookupResourcesRequestOrBuilder
      Returns:
      Whether the consistency field is set.
    • getConsistency

      public Consistency getConsistency()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      getConsistency in interface LookupResourcesRequestOrBuilder
      Returns:
      The consistency.
    • setConsistency

      public LookupResourcesRequest.Builder setConsistency(Consistency value)
      .authzed.api.v1.Consistency consistency = 1;
    • setConsistency

      public LookupResourcesRequest.Builder setConsistency(Consistency.Builder builderForValue)
      .authzed.api.v1.Consistency consistency = 1;
    • mergeConsistency

      public LookupResourcesRequest.Builder mergeConsistency(Consistency value)
      .authzed.api.v1.Consistency consistency = 1;
    • clearConsistency

      public LookupResourcesRequest.Builder clearConsistency()
      .authzed.api.v1.Consistency consistency = 1;
    • getConsistencyBuilder

      public Consistency.Builder getConsistencyBuilder()
      .authzed.api.v1.Consistency consistency = 1;
    • getConsistencyOrBuilder

      public ConsistencyOrBuilder getConsistencyOrBuilder()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      getConsistencyOrBuilder in interface LookupResourcesRequestOrBuilder
    • getResourceObjectType

      public String getResourceObjectType()
       resource_object_type is the type of resource object for which the IDs will
       be returned.
       
      string resource_object_type = 2 [(.validate.rules) = { ... }
      Specified by:
      getResourceObjectType in interface LookupResourcesRequestOrBuilder
      Returns:
      The resourceObjectType.
    • getResourceObjectTypeBytes

      public com.google.protobuf.ByteString getResourceObjectTypeBytes()
       resource_object_type is the type of resource object for which the IDs will
       be returned.
       
      string resource_object_type = 2 [(.validate.rules) = { ... }
      Specified by:
      getResourceObjectTypeBytes in interface LookupResourcesRequestOrBuilder
      Returns:
      The bytes for resourceObjectType.
    • setResourceObjectType

      public LookupResourcesRequest.Builder setResourceObjectType(String value)
       resource_object_type is the type of resource object for which the IDs will
       be returned.
       
      string resource_object_type = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The resourceObjectType to set.
      Returns:
      This builder for chaining.
    • clearResourceObjectType

      public LookupResourcesRequest.Builder clearResourceObjectType()
       resource_object_type is the type of resource object for which the IDs will
       be returned.
       
      string resource_object_type = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setResourceObjectTypeBytes

      public LookupResourcesRequest.Builder setResourceObjectTypeBytes(com.google.protobuf.ByteString value)
       resource_object_type is the type of resource object for which the IDs will
       be returned.
       
      string resource_object_type = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for resourceObjectType to set.
      Returns:
      This builder for chaining.
    • getPermission

      public String getPermission()
       permission is the name of the permission or relation for which the subject
       must Check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Specified by:
      getPermission in interface LookupResourcesRequestOrBuilder
      Returns:
      The permission.
    • getPermissionBytes

      public com.google.protobuf.ByteString getPermissionBytes()
       permission is the name of the permission or relation for which the subject
       must Check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Specified by:
      getPermissionBytes in interface LookupResourcesRequestOrBuilder
      Returns:
      The bytes for permission.
    • setPermission

      public LookupResourcesRequest.Builder setPermission(String value)
       permission is the name of the permission or relation for which the subject
       must Check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The permission to set.
      Returns:
      This builder for chaining.
    • clearPermission

      public LookupResourcesRequest.Builder clearPermission()
       permission is the name of the permission or relation for which the subject
       must Check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setPermissionBytes

      public LookupResourcesRequest.Builder setPermissionBytes(com.google.protobuf.ByteString value)
       permission is the name of the permission or relation for which the subject
       must Check.
       
      string permission = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for permission to set.
      Returns:
      This builder for chaining.
    • hasSubject

      public boolean hasSubject()
       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
      Specified by:
      hasSubject in interface LookupResourcesRequestOrBuilder
      Returns:
      Whether the subject field is set.
    • getSubject

      public SubjectReference getSubject()
       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
      Specified by:
      getSubject in interface LookupResourcesRequestOrBuilder
      Returns:
      The subject.
    • setSubject

       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • setSubject

      public LookupResourcesRequest.Builder setSubject(SubjectReference.Builder builderForValue)
       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • mergeSubject

      public LookupResourcesRequest.Builder mergeSubject(SubjectReference value)
       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • clearSubject

      public LookupResourcesRequest.Builder clearSubject()
       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • getSubjectBuilder

      public SubjectReference.Builder getSubjectBuilder()
       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
    • getSubjectOrBuilder

      public SubjectReferenceOrBuilder getSubjectOrBuilder()
       subject is the subject with access to the resources.
       
      .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
      Specified by:
      getSubjectOrBuilder in interface LookupResourcesRequestOrBuilder
    • hasContext

      public boolean hasContext()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
      Specified by:
      hasContext in interface LookupResourcesRequestOrBuilder
      Returns:
      Whether the context field is set.
    • getContext

      public com.google.protobuf.Struct getContext()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
      Specified by:
      getContext in interface LookupResourcesRequestOrBuilder
      Returns:
      The context.
    • setContext

      public LookupResourcesRequest.Builder setContext(com.google.protobuf.Struct value)
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • setContext

      public LookupResourcesRequest.Builder setContext(com.google.protobuf.Struct.Builder builderForValue)
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • mergeContext

      public LookupResourcesRequest.Builder mergeContext(com.google.protobuf.Struct value)
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • clearContext

      public LookupResourcesRequest.Builder clearContext()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • getContextBuilder

      public com.google.protobuf.Struct.Builder getContextBuilder()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
    • getContextOrBuilder

      public com.google.protobuf.StructOrBuilder getContextOrBuilder()
       context consists of named values that are injected into the caveat evaluation context
       
      .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
      Specified by:
      getContextOrBuilder in interface LookupResourcesRequestOrBuilder
    • getOptionalLimit

      public int getOptionalLimit()
       optional_limit, if non-zero, specifies the limit on the number of resources to return
       before the stream is closed on the server side. By default, the stream will continue
       resolving resources until exhausted or the stream is closed due to the client or a
       network issue.
       
      uint32 optional_limit = 6 [(.validate.rules) = { ... }
      Specified by:
      getOptionalLimit in interface LookupResourcesRequestOrBuilder
      Returns:
      The optionalLimit.
    • setOptionalLimit

      public LookupResourcesRequest.Builder setOptionalLimit(int value)
       optional_limit, if non-zero, specifies the limit on the number of resources to return
       before the stream is closed on the server side. By default, the stream will continue
       resolving resources until exhausted or the stream is closed due to the client or a
       network issue.
       
      uint32 optional_limit = 6 [(.validate.rules) = { ... }
      Parameters:
      value - The optionalLimit to set.
      Returns:
      This builder for chaining.
    • clearOptionalLimit

      public LookupResourcesRequest.Builder clearOptionalLimit()
       optional_limit, if non-zero, specifies the limit on the number of resources to return
       before the stream is closed on the server side. By default, the stream will continue
       resolving resources until exhausted or the stream is closed due to the client or a
       network issue.
       
      uint32 optional_limit = 6 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • hasOptionalCursor

      public boolean hasOptionalCursor()
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
      Specified by:
      hasOptionalCursor in interface LookupResourcesRequestOrBuilder
      Returns:
      Whether the optionalCursor field is set.
    • getOptionalCursor

      public Cursor getOptionalCursor()
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
      Specified by:
      getOptionalCursor in interface LookupResourcesRequestOrBuilder
      Returns:
      The optionalCursor.
    • setOptionalCursor

      public LookupResourcesRequest.Builder setOptionalCursor(Cursor value)
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
    • setOptionalCursor

      public LookupResourcesRequest.Builder setOptionalCursor(Cursor.Builder builderForValue)
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
    • mergeOptionalCursor

      public LookupResourcesRequest.Builder mergeOptionalCursor(Cursor value)
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
    • clearOptionalCursor

      public LookupResourcesRequest.Builder clearOptionalCursor()
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
    • getOptionalCursorBuilder

      public Cursor.Builder getOptionalCursorBuilder()
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
    • getOptionalCursorOrBuilder

      public CursorOrBuilder getOptionalCursorOrBuilder()
       optional_cursor, if specified, indicates the cursor after which results should resume being returned.
       The cursor can be found on the LookupResourcesResponse object.
       
      .authzed.api.v1.Cursor optional_cursor = 7;
      Specified by:
      getOptionalCursorOrBuilder in interface LookupResourcesRequestOrBuilder