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
,java.lang.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 types2.v1alpha.ReadSessionRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadSessionRequest
build()
ReadSessionRequest
buildPartial()
ReadSessionRequest.Builder
clear()
ReadSessionRequest.Builder
clearLimit()
Limit on how many records can be returned.ReadSessionRequest.Builder
clearStartSeqNum()
Starting sequence number (inclusive).ReadSessionRequest.Builder
clearStream()
Stream name.ReadSessionRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ReadLimit
getLimit()
Limit on how many records can be returned.ReadLimit.Builder
getLimitBuilder()
Limit on how many records can be returned.ReadLimitOrBuilder
getLimitOrBuilder()
Limit on how many records can be returned.long
getStartSeqNum()
Starting sequence number (inclusive).java.lang.String
getStream()
Stream name.com.google.protobuf.ByteString
getStreamBytes()
Stream name.boolean
hasLimit()
Limit on how many records can be returned.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ReadSessionRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ReadSessionRequest.Builder
mergeFrom(com.google.protobuf.Message other)
ReadSessionRequest.Builder
mergeFrom(ReadSessionRequest other)
ReadSessionRequest.Builder
mergeLimit(ReadLimit value)
Limit on how many records can be returned.ReadSessionRequest.Builder
setLimit(ReadLimit value)
Limit on how many records can be returned.ReadSessionRequest.Builder
setLimit(ReadLimit.Builder builderForValue)
Limit on how many records can be returned.ReadSessionRequest.Builder
setStartSeqNum(long value)
Starting sequence number (inclusive).ReadSessionRequest.Builder
setStream(java.lang.String value)
Stream name.ReadSessionRequest.Builder
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
-
-
-
-
Method Detail
-
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
public 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
public ReadSessionRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadSessionRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadSessionRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ReadSessionRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReadSessionRequest.Builder>
-
mergeFrom
public ReadSessionRequest.Builder mergeFrom(ReadSessionRequest other)
-
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 java.io.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:
java.io.IOException
-
getStream
public java.lang.String 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
public ReadSessionRequest.Builder setStream(java.lang.String value)
Stream name.
string stream = 1;
- Parameters:
value
- The stream to set.- Returns:
- This builder for chaining.
-
clearStream
public ReadSessionRequest.Builder clearStream()
Stream name.
string stream = 1;
- Returns:
- This builder for chaining.
-
setStreamBytes
public ReadSessionRequest.Builder setStreamBytes(com.google.protobuf.ByteString value)
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
public ReadSessionRequest.Builder setStartSeqNum(long value)
Starting sequence number (inclusive).
uint64 start_seq_num = 2;
- Parameters:
value
- The startSeqNum to set.- Returns:
- This builder for chaining.
-
clearStartSeqNum
public ReadSessionRequest.Builder 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
public ReadLimit 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
public ReadSessionRequest.Builder setLimit(ReadLimit value)
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
public ReadSessionRequest.Builder setLimit(ReadLimit.Builder builderForValue)
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
public ReadSessionRequest.Builder mergeLimit(ReadLimit value)
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
public ReadSessionRequest.Builder 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
public ReadLimit.Builder 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
public ReadLimitOrBuilder 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
-
-