Package com.authzed.api.materialize.v0
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 TypeMethodDescriptionbuild()clear()completed_members is a boolean flag that indicates that the cursor has reached the end of the permission setscursor is a string-encoded internal materialize cursor.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 cursorstarting_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.booleancompleted_members is a boolean flag that indicates that the cursor has reached the end of the permission setscursor is a string-encoded internal materialize cursor.com.google.protobuf.ByteStringcursor is a string-encoded internal materialize cursor.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetLimit()limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested.intstarting_index is an offset of the permission set represented by this cursorstarting_key is a string cursor used by some backends to resume the stream from a specific point.com.google.protobuf.ByteStringstarting_key is a string cursor used by some backends to resume the stream from a specific point.getToken()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.booleanhasToken()token is the snapshot revision at which the cursor was computed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeToken(ZedToken value) 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 setscursor is a string-encoded internal materialize cursor.setCursorBytes(com.google.protobuf.ByteString value) cursor is a string-encoded internal materialize cursor.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 cursorsetStartingKey(String value) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Cursor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Cursor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Cursor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cursor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getLimitin interfaceCursorOrBuilder- Returns:
- The limit.
-
setLimit
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
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:
hasTokenin interfaceCursorOrBuilder- Returns:
- Whether the token field is set.
-
getToken
token is the snapshot revision at which the cursor was computed.
.authzed.api.v1.ZedToken token = 4;- Specified by:
getTokenin interfaceCursorOrBuilder- Returns:
- The token.
-
setToken
token is the snapshot revision at which the cursor was computed.
.authzed.api.v1.ZedToken token = 4; -
setToken
token is the snapshot revision at which the cursor was computed.
.authzed.api.v1.ZedToken token = 4; -
mergeToken
token is the snapshot revision at which the cursor was computed.
.authzed.api.v1.ZedToken token = 4; -
clearToken
token is the snapshot revision at which the cursor was computed.
.authzed.api.v1.ZedToken token = 4; -
getTokenBuilder
token is the snapshot revision at which the cursor was computed.
.authzed.api.v1.ZedToken token = 4; -
getTokenOrBuilder
token is the snapshot revision at which the cursor was computed.
.authzed.api.v1.ZedToken token = 4;- Specified by:
getTokenOrBuilderin interfaceCursorOrBuilder
-
getStartingIndex
public int getStartingIndex()starting_index is an offset of the permission set represented by this cursor
uint32 starting_index = 5;- Specified by:
getStartingIndexin interfaceCursorOrBuilder- Returns:
- The startingIndex.
-
setStartingIndex
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
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:
getCompletedMembersin interfaceCursorOrBuilder- Returns:
- The completedMembers.
-
setCompletedMembers
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
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
starting_key is a string cursor used by some backends to resume the stream from a specific point.
string starting_key = 7;- Specified by:
getStartingKeyin interfaceCursorOrBuilder- 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:
getStartingKeyBytesin interfaceCursorOrBuilder- Returns:
- The bytes for startingKey.
-
setStartingKey
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
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
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.
-
getCursor
cursor is a string-encoded internal materialize cursor.
string cursor = 8;- Specified by:
getCursorin interfaceCursorOrBuilder- Returns:
- The cursor.
-
getCursorBytes
public com.google.protobuf.ByteString getCursorBytes()cursor is a string-encoded internal materialize cursor.
string cursor = 8;- Specified by:
getCursorBytesin interfaceCursorOrBuilder- Returns:
- The bytes for cursor.
-
setCursor
cursor is a string-encoded internal materialize cursor.
string cursor = 8;- Parameters:
value- The cursor to set.- Returns:
- This builder for chaining.
-
clearCursor
cursor is a string-encoded internal materialize cursor.
string cursor = 8;- Returns:
- This builder for chaining.
-
setCursorBytes
cursor is a string-encoded internal materialize cursor.
string cursor = 8;- Parameters:
value- The bytes for cursor to set.- Returns:
- This builder for chaining.
-