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 setslimit 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.boolean
completed_members is a boolean flag that indicates that the cursor has reached the end of the permission setsstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getLimit()
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 cursorstarting_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.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.boolean
hasToken()
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) 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 setssetLimit
(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, 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 classcom.google.protobuf.GeneratedMessage.Builder<Cursor.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Cursor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Cursor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Cursor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getLimit
in 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:
hasToken
in 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:
getToken
in 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:
getTokenOrBuilder
in interfaceCursorOrBuilder
-
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 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:
getCompletedMembers
in 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:
getStartingKey
in 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:
getStartingKeyBytes
in 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.
-