Class Cursor.Builder

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

public static final class Cursor.Builder extends com.google.protobuf.GeneratedMessage.Builder<Cursor.Builder> implements CursorOrBuilder
Protobuf type authzed.api.materialize.v0.Cursor
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets
    limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested.
    starting_index is an offset of the permission set represented by this cursor
    starting_key is a string cursor used by some backends to resume the stream from a specific point.
    token is the snapshot revision at which the cursor was computed.
    boolean
    completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested.
    int
    starting_index is an offset of the permission set represented by this cursor
    starting_key is a string cursor used by some backends to resume the stream from a specific point.
    com.google.protobuf.ByteString
    starting_key is a string cursor used by some backends to resume the stream from a specific point.
    token is the snapshot revision at which the cursor was computed.
    token is the snapshot revision at which the cursor was computed.
    token is the snapshot revision at which the cursor was computed.
    boolean
    token is the snapshot revision at which the cursor was computed.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    token is the snapshot revision at which the cursor was computed.
    setCompletedMembers(boolean value)
    completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets
    setLimit(int value)
    limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested.
    setStartingIndex(int value)
    starting_index is an offset of the permission set represented by this cursor
    starting_key is a string cursor used by some backends to resume the stream from a specific point.
    setStartingKeyBytes(com.google.protobuf.ByteString value)
    starting_key is a string cursor used by some backends to resume the stream from a specific point.
    token is the snapshot revision at which the cursor was computed.
    setToken(ZedToken.Builder builderForValue)
    token is the snapshot revision at which the cursor was computed.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Cursor.Builder>
    • clear

      public Cursor.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<Cursor.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<Cursor.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Cursor.Builder mergeFrom(Cursor other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Cursor.Builder>
    • mergeFrom

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

      public int getLimit()
       limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested.
       
      uint32 limit = 1;
      Specified by:
      getLimit in interface CursorOrBuilder
      Returns:
      The limit.
    • setLimit

      public Cursor.Builder setLimit(int value)
       limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested.
       
      uint32 limit = 1;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

      public Cursor.Builder clearLimit()
       limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested.
       
      uint32 limit = 1;
      Returns:
      This builder for chaining.
    • hasToken

      public boolean hasToken()
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
      Specified by:
      hasToken in interface CursorOrBuilder
      Returns:
      Whether the token field is set.
    • getToken

      public ZedToken getToken()
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
      Specified by:
      getToken in interface CursorOrBuilder
      Returns:
      The token.
    • setToken

      public Cursor.Builder setToken(ZedToken value)
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
    • setToken

      public Cursor.Builder setToken(ZedToken.Builder builderForValue)
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
    • mergeToken

      public Cursor.Builder mergeToken(ZedToken value)
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
    • clearToken

      public Cursor.Builder clearToken()
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
    • getTokenBuilder

      public ZedToken.Builder getTokenBuilder()
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
    • getTokenOrBuilder

      public ZedTokenOrBuilder getTokenOrBuilder()
       token is the snapshot revision at which the cursor was computed.
       
      .authzed.api.v1.ZedToken token = 4;
      Specified by:
      getTokenOrBuilder in interface CursorOrBuilder
    • getStartingIndex

      public int getStartingIndex()
       starting_index is an offset of the permission set represented by this cursor
       
      uint32 starting_index = 5;
      Specified by:
      getStartingIndex in interface CursorOrBuilder
      Returns:
      The startingIndex.
    • setStartingIndex

      public Cursor.Builder setStartingIndex(int value)
       starting_index is an offset of the permission set represented by this cursor
       
      uint32 starting_index = 5;
      Parameters:
      value - The startingIndex to set.
      Returns:
      This builder for chaining.
    • clearStartingIndex

      public Cursor.Builder clearStartingIndex()
       starting_index is an offset of the permission set represented by this cursor
       
      uint32 starting_index = 5;
      Returns:
      This builder for chaining.
    • getCompletedMembers

      public boolean getCompletedMembers()
       completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets
       
      bool completed_members = 6;
      Specified by:
      getCompletedMembers in interface CursorOrBuilder
      Returns:
      The completedMembers.
    • setCompletedMembers

      public Cursor.Builder setCompletedMembers(boolean value)
       completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets
       
      bool completed_members = 6;
      Parameters:
      value - The completedMembers to set.
      Returns:
      This builder for chaining.
    • clearCompletedMembers

      public Cursor.Builder clearCompletedMembers()
       completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets
       
      bool completed_members = 6;
      Returns:
      This builder for chaining.
    • getStartingKey

      public String getStartingKey()
       starting_key is a string cursor used by some backends to resume the stream from a specific point.
       
      string starting_key = 7;
      Specified by:
      getStartingKey in interface CursorOrBuilder
      Returns:
      The startingKey.
    • getStartingKeyBytes

      public com.google.protobuf.ByteString getStartingKeyBytes()
       starting_key is a string cursor used by some backends to resume the stream from a specific point.
       
      string starting_key = 7;
      Specified by:
      getStartingKeyBytes in interface CursorOrBuilder
      Returns:
      The bytes for startingKey.
    • setStartingKey

      public Cursor.Builder setStartingKey(String value)
       starting_key is a string cursor used by some backends to resume the stream from a specific point.
       
      string starting_key = 7;
      Parameters:
      value - The startingKey to set.
      Returns:
      This builder for chaining.
    • clearStartingKey

      public Cursor.Builder clearStartingKey()
       starting_key is a string cursor used by some backends to resume the stream from a specific point.
       
      string starting_key = 7;
      Returns:
      This builder for chaining.
    • setStartingKeyBytes

      public Cursor.Builder setStartingKeyBytes(com.google.protobuf.ByteString value)
       starting_key is a string cursor used by some backends to resume the stream from a specific point.
       
      string starting_key = 7;
      Parameters:
      value - The bytes for startingKey to set.
      Returns:
      This builder for chaining.