Class LookupPermissionSetsRequest.Builder

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

public static final class LookupPermissionSetsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<LookupPermissionSetsRequest.Builder> implements LookupPermissionSetsRequestOrBuilder
Protobuf type authzed.api.materialize.v0.LookupPermissionSetsRequest
  • 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<LookupPermissionSetsRequest.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<LookupPermissionSetsRequest.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<LookupPermissionSetsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public LookupPermissionSetsRequest.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<LookupPermissionSetsRequest.Builder>
      Throws:
      IOException
    • getLimit

      public int getLimit()
       limit is the number of permission sets to stream over a single LookupPermissionSets. Once the limit is reached,
       the server will close the stream. If more permission sets are available, the consume should open a new stream
       providing optional_starting_after_cursor, using the cursor from the last response.
       
      uint32 limit = 1;
      Specified by:
      getLimit in interface LookupPermissionSetsRequestOrBuilder
      Returns:
      The limit.
    • setLimit

      public LookupPermissionSetsRequest.Builder setLimit(int value)
       limit is the number of permission sets to stream over a single LookupPermissionSets. Once the limit is reached,
       the server will close the stream. If more permission sets are available, the consume should open a new stream
       providing optional_starting_after_cursor, using the cursor from the last response.
       
      uint32 limit = 1;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

       limit is the number of permission sets to stream over a single LookupPermissionSets. Once the limit is reached,
       the server will close the stream. If more permission sets are available, the consume should open a new stream
       providing optional_starting_after_cursor, using the cursor from the last response.
       
      uint32 limit = 1;
      Returns:
      This builder for chaining.
    • hasOptionalAtRevision

      public boolean hasOptionalAtRevision()
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
      Specified by:
      hasOptionalAtRevision in interface LookupPermissionSetsRequestOrBuilder
      Returns:
      Whether the optionalAtRevision field is set.
    • getOptionalAtRevision

      public ZedToken getOptionalAtRevision()
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
      Specified by:
      getOptionalAtRevision in interface LookupPermissionSetsRequestOrBuilder
      Returns:
      The optionalAtRevision.
    • setOptionalAtRevision

      public LookupPermissionSetsRequest.Builder setOptionalAtRevision(ZedToken value)
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
    • setOptionalAtRevision

      public LookupPermissionSetsRequest.Builder setOptionalAtRevision(ZedToken.Builder builderForValue)
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
    • mergeOptionalAtRevision

      public LookupPermissionSetsRequest.Builder mergeOptionalAtRevision(ZedToken value)
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
    • clearOptionalAtRevision

      public LookupPermissionSetsRequest.Builder clearOptionalAtRevision()
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
    • getOptionalAtRevisionBuilder

      public ZedToken.Builder getOptionalAtRevisionBuilder()
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
    • getOptionalAtRevisionOrBuilder

      public ZedTokenOrBuilder getOptionalAtRevisionOrBuilder()
       optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's
       optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always
       takes precedence in defining the revision when present.
       
      .authzed.api.v1.ZedToken optional_at_revision = 2;
      Specified by:
      getOptionalAtRevisionOrBuilder in interface LookupPermissionSetsRequestOrBuilder
    • hasOptionalStartingAfterCursor

      public boolean hasOptionalStartingAfterCursor()
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
      Specified by:
      hasOptionalStartingAfterCursor in interface LookupPermissionSetsRequestOrBuilder
      Returns:
      Whether the optionalStartingAfterCursor field is set.
    • getOptionalStartingAfterCursor

      public Cursor getOptionalStartingAfterCursor()
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
      Specified by:
      getOptionalStartingAfterCursor in interface LookupPermissionSetsRequestOrBuilder
      Returns:
      The optionalStartingAfterCursor.
    • setOptionalStartingAfterCursor

      public LookupPermissionSetsRequest.Builder setOptionalStartingAfterCursor(Cursor value)
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
    • setOptionalStartingAfterCursor

      public LookupPermissionSetsRequest.Builder setOptionalStartingAfterCursor(Cursor.Builder builderForValue)
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
    • mergeOptionalStartingAfterCursor

      public LookupPermissionSetsRequest.Builder mergeOptionalStartingAfterCursor(Cursor value)
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
    • clearOptionalStartingAfterCursor

      public LookupPermissionSetsRequest.Builder clearOptionalStartingAfterCursor()
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
    • getOptionalStartingAfterCursorBuilder

      public Cursor.Builder getOptionalStartingAfterCursorBuilder()
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
    • getOptionalStartingAfterCursorOrBuilder

      public CursorOrBuilder getOptionalStartingAfterCursorOrBuilder()
       optional_starting_after_cursor is used to specify the offset to start streaming permission sets from.
       
      .authzed.api.materialize.v0.Cursor optional_starting_after_cursor = 4;
      Specified by:
      getOptionalStartingAfterCursorOrBuilder in interface LookupPermissionSetsRequestOrBuilder