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 ReadSessionRequestbuild()ReadSessionRequestbuildPartial()ReadSessionRequest.Builderclear()ReadSessionRequest.BuilderclearHeartbeats()Heartbeats can be enabled to monitor end-to-end session health.ReadSessionRequest.BuilderclearLimit()Limit on how many records can be returned.ReadSessionRequest.BuilderclearSeqNum()Sequence number.ReadSessionRequest.BuilderclearStart()ReadSessionRequest.BuilderclearStream()Stream name.ReadSessionRequest.BuilderclearTailOffset()Number of records before the tail, i.e.ReadSessionRequest.BuilderclearTimestamp()Timestamp.ReadSessionRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetHeartbeats()Heartbeats can be enabled to monitor end-to-end session health.ReadLimitgetLimit()Limit on how many records can be returned.ReadLimit.BuildergetLimitBuilder()Limit on how many records can be returned.ReadLimitOrBuildergetLimitOrBuilder()Limit on how many records can be returned.longgetSeqNum()Sequence number.ReadSessionRequest.StartCasegetStartCase()java.lang.StringgetStream()Stream name.com.google.protobuf.ByteStringgetStreamBytes()Stream name.longgetTailOffset()Number of records before the tail, i.e.longgetTimestamp()Timestamp.booleanhasLimit()Limit on how many records can be returned.booleanhasSeqNum()Sequence number.booleanhasTailOffset()Number of records before the tail, i.e.booleanhasTimestamp()Timestamp.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ReadSessionRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ReadSessionRequest.BuildermergeFrom(com.google.protobuf.Message other)ReadSessionRequest.BuildermergeFrom(ReadSessionRequest other)ReadSessionRequest.BuildermergeLimit(ReadLimit value)Limit on how many records can be returned.ReadSessionRequest.BuildersetHeartbeats(boolean value)Heartbeats can be enabled to monitor end-to-end session health.ReadSessionRequest.BuildersetLimit(ReadLimit value)Limit on how many records can be returned.ReadSessionRequest.BuildersetLimit(ReadLimit.Builder builderForValue)Limit on how many records can be returned.ReadSessionRequest.BuildersetSeqNum(long value)Sequence number.ReadSessionRequest.BuildersetStream(java.lang.String value)Stream name.ReadSessionRequest.BuildersetStreamBytes(com.google.protobuf.ByteString value)Stream name.ReadSessionRequest.BuildersetTailOffset(long value)Number of records before the tail, i.e.ReadSessionRequest.BuildersetTimestamp(long value)Timestamp.-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReadSessionRequest.Builder>
-
clear
public ReadSessionRequest.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<ReadSessionRequest.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<ReadSessionRequest.Builder>
-
getDefaultInstanceForType
public ReadSessionRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadSessionRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadSessionRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ReadSessionRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadSessionRequest.Builder>
-
mergeFrom
public ReadSessionRequest.Builder mergeFrom(ReadSessionRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadSessionRequest.Builder>- Throws:
java.io.IOException
-
getStartCase
public ReadSessionRequest.StartCase getStartCase()
- Specified by:
getStartCasein interfaceReadSessionRequestOrBuilder
-
clearStart
public ReadSessionRequest.Builder clearStart()
-
getStream
public java.lang.String getStream()
Stream name.
string stream = 1;- Specified by:
getStreamin interfaceReadSessionRequestOrBuilder- Returns:
- The stream.
-
getStreamBytes
public com.google.protobuf.ByteString getStreamBytes()
Stream name.
string stream = 1;- Specified by:
getStreamBytesin 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.
-
hasSeqNum
public boolean hasSeqNum()
Sequence number.
uint64 seq_num = 2;- Specified by:
hasSeqNumin interfaceReadSessionRequestOrBuilder- Returns:
- Whether the seqNum field is set.
-
getSeqNum
public long getSeqNum()
Sequence number.
uint64 seq_num = 2;- Specified by:
getSeqNumin interfaceReadSessionRequestOrBuilder- Returns:
- The seqNum.
-
setSeqNum
public ReadSessionRequest.Builder setSeqNum(long value)
Sequence number.
uint64 seq_num = 2;- Parameters:
value- The seqNum to set.- Returns:
- This builder for chaining.
-
clearSeqNum
public ReadSessionRequest.Builder clearSeqNum()
Sequence number.
uint64 seq_num = 2;- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()
Timestamp.
uint64 timestamp = 5;- Specified by:
hasTimestampin interfaceReadSessionRequestOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()
Timestamp.
uint64 timestamp = 5;- Specified by:
getTimestampin interfaceReadSessionRequestOrBuilder- Returns:
- The timestamp.
-
setTimestamp
public ReadSessionRequest.Builder setTimestamp(long value)
Timestamp.
uint64 timestamp = 5;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
public ReadSessionRequest.Builder clearTimestamp()
Timestamp.
uint64 timestamp = 5;- Returns:
- This builder for chaining.
-
hasTailOffset
public boolean hasTailOffset()
Number of records before the tail, i.e. the next sequence number.
uint64 tail_offset = 6;- Specified by:
hasTailOffsetin interfaceReadSessionRequestOrBuilder- Returns:
- Whether the tailOffset field is set.
-
getTailOffset
public long getTailOffset()
Number of records before the tail, i.e. the next sequence number.
uint64 tail_offset = 6;- Specified by:
getTailOffsetin interfaceReadSessionRequestOrBuilder- Returns:
- The tailOffset.
-
setTailOffset
public ReadSessionRequest.Builder setTailOffset(long value)
Number of records before the tail, i.e. the next sequence number.
uint64 tail_offset = 6;- Parameters:
value- The tailOffset to set.- Returns:
- This builder for chaining.
-
clearTailOffset
public ReadSessionRequest.Builder clearTailOffset()
Number of records before the tail, i.e. the next sequence number.
uint64 tail_offset = 6;- 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:
hasLimitin 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:
getLimitin 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:
getLimitOrBuilderin interfaceReadSessionRequestOrBuilder
-
getHeartbeats
public boolean getHeartbeats()
Heartbeats can be enabled to monitor end-to-end session health. A heartbeat will be sent when the initial switch to real-time tailing happens, as well as when no records are available at a randomized interval between 5 and 15 seconds.
bool heartbeats = 4;- Specified by:
getHeartbeatsin interfaceReadSessionRequestOrBuilder- Returns:
- The heartbeats.
-
setHeartbeats
public ReadSessionRequest.Builder setHeartbeats(boolean value)
Heartbeats can be enabled to monitor end-to-end session health. A heartbeat will be sent when the initial switch to real-time tailing happens, as well as when no records are available at a randomized interval between 5 and 15 seconds.
bool heartbeats = 4;- Parameters:
value- The heartbeats to set.- Returns:
- This builder for chaining.
-
clearHeartbeats
public ReadSessionRequest.Builder clearHeartbeats()
Heartbeats can be enabled to monitor end-to-end session health. A heartbeat will be sent when the initial switch to real-time tailing happens, as well as when no records are available at a randomized interval between 5 and 15 seconds.
bool heartbeats = 4;- Returns:
- This builder for chaining.
-
-