Package s2.v1alpha
Class ReadSessionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReadSessionRequest.Builder>
s2.v1alpha.ReadSessionRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ReadSessionRequestOrBuilder
- Enclosing class:
- ReadSessionRequest
public static final class ReadSessionRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReadSessionRequest.Builder>
implements ReadSessionRequestOrBuilder
Read session request.Protobuf type
s2.v1alpha.ReadSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
Limit on how many records can be returned.Starting sequence number (inclusive).Stream name.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getLimit()
Limit on how many records can be returned.Limit on how many records can be returned.Limit on how many records can be returned.long
Starting sequence number (inclusive).Stream name.com.google.protobuf.ByteString
Stream name.boolean
hasLimit()
Limit on how many records can be returned.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) mergeFrom
(ReadSessionRequest other) mergeLimit
(ReadLimit value) Limit on how many records can be returned.Limit on how many records can be returned.setLimit
(ReadLimit.Builder builderForValue) Limit on how many records can be returned.setStartSeqNum
(long value) Starting sequence number (inclusive).Stream name.setStreamBytes
(com.google.protobuf.ByteString value) Stream name.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<ReadSessionRequest.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<ReadSessionRequest.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<ReadSessionRequest.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<ReadSessionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ReadSessionRequest.Builder>
-
mergeFrom
public ReadSessionRequest.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<ReadSessionRequest.Builder>
- Throws:
IOException
-
getStream
Stream name.
string stream = 1;
- Specified by:
getStream
in interfaceReadSessionRequestOrBuilder
- Returns:
- The stream.
-
getStreamBytes
public com.google.protobuf.ByteString getStreamBytes()Stream name.
string stream = 1;
- Specified by:
getStreamBytes
in interfaceReadSessionRequestOrBuilder
- Returns:
- The bytes for stream.
-
setStream
Stream name.
string stream = 1;
- Parameters:
value
- The stream to set.- Returns:
- This builder for chaining.
-
clearStream
Stream name.
string stream = 1;
- Returns:
- This builder for chaining.
-
setStreamBytes
Stream name.
string stream = 1;
- Parameters:
value
- The bytes for stream to set.- Returns:
- This builder for chaining.
-
getStartSeqNum
public long getStartSeqNum()Starting sequence number (inclusive).
uint64 start_seq_num = 2;
- Specified by:
getStartSeqNum
in interfaceReadSessionRequestOrBuilder
- Returns:
- The startSeqNum.
-
setStartSeqNum
Starting sequence number (inclusive).
uint64 start_seq_num = 2;
- Parameters:
value
- The startSeqNum to set.- Returns:
- This builder for chaining.
-
clearStartSeqNum
Starting sequence number (inclusive).
uint64 start_seq_num = 2;
- Returns:
- This builder for chaining.
-
hasLimit
public boolean hasLimit()Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
- Specified by:
hasLimit
in interfaceReadSessionRequestOrBuilder
- Returns:
- Whether the limit field is set.
-
getLimit
Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
- Specified by:
getLimit
in interfaceReadSessionRequestOrBuilder
- Returns:
- The limit.
-
setLimit
Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
-
setLimit
Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
-
mergeLimit
Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
-
clearLimit
Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
-
getLimitBuilder
Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
-
getLimitOrBuilder
Limit on how many records can be returned. When a limit is specified, the session will be terminated as soon as the limit is met, or when the current tail of the stream is reached -- whichever occurs first. If no limit is specified, the session will remain open after catching up to the tail, and continue tailing as new messages are written to the stream.
.s2.v1alpha.ReadLimit limit = 3;
- Specified by:
getLimitOrBuilder
in interfaceReadSessionRequestOrBuilder
-