Package s2.v1alpha
Class ReadOutput.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<ReadOutput.Builder>
-
- s2.v1alpha.ReadOutput.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,ReadOutputOrBuilder
- Enclosing class:
- ReadOutput
public static final class ReadOutput.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReadOutput.Builder> implements ReadOutputOrBuilder
Output of a read.
Protobuf types2.v1alpha.ReadOutput
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadOutputbuild()ReadOutputbuildPartial()ReadOutput.Builderclear()ReadOutput.BuilderclearBatch()Batch of records.ReadOutput.BuilderclearNextSeqNum()Tail of the stream, i.e.ReadOutput.BuilderclearOutput()SequencedRecordBatchgetBatch()Batch of records.SequencedRecordBatch.BuildergetBatchBuilder()Batch of records.SequencedRecordBatchOrBuildergetBatchOrBuilder()Batch of records.ReadOutputgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetNextSeqNum()Tail of the stream, i.e.ReadOutput.OutputCasegetOutputCase()booleanhasBatch()Batch of records.booleanhasNextSeqNum()Tail of the stream, i.e.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ReadOutput.BuildermergeBatch(SequencedRecordBatch value)Batch of records.ReadOutput.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ReadOutput.BuildermergeFrom(com.google.protobuf.Message other)ReadOutput.BuildermergeFrom(ReadOutput other)ReadOutput.BuildersetBatch(SequencedRecordBatch value)Batch of records.ReadOutput.BuildersetBatch(SequencedRecordBatch.Builder builderForValue)Batch of records.ReadOutput.BuildersetNextSeqNum(long value)Tail of the stream, i.e.-
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<ReadOutput.Builder>
-
clear
public ReadOutput.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<ReadOutput.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<ReadOutput.Builder>
-
getDefaultInstanceForType
public ReadOutput getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadOutput build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadOutput buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ReadOutput.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadOutput.Builder>
-
mergeFrom
public ReadOutput.Builder mergeFrom(ReadOutput other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReadOutput.Builder>
-
mergeFrom
public ReadOutput.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<ReadOutput.Builder>- Throws:
java.io.IOException
-
getOutputCase
public ReadOutput.OutputCase getOutputCase()
- Specified by:
getOutputCasein interfaceReadOutputOrBuilder
-
clearOutput
public ReadOutput.Builder clearOutput()
-
hasBatch
public boolean hasBatch()
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;- Specified by:
hasBatchin interfaceReadOutputOrBuilder- Returns:
- Whether the batch field is set.
-
getBatch
public SequencedRecordBatch getBatch()
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;- Specified by:
getBatchin interfaceReadOutputOrBuilder- Returns:
- The batch.
-
setBatch
public ReadOutput.Builder setBatch(SequencedRecordBatch value)
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
setBatch
public ReadOutput.Builder setBatch(SequencedRecordBatch.Builder builderForValue)
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
mergeBatch
public ReadOutput.Builder mergeBatch(SequencedRecordBatch value)
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
clearBatch
public ReadOutput.Builder clearBatch()
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
getBatchBuilder
public SequencedRecordBatch.Builder getBatchBuilder()
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
getBatchOrBuilder
public SequencedRecordBatchOrBuilder getBatchOrBuilder()
Batch of records. It can only be empty when not in a session context, if the request cannot be satisfied without violating its limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;- Specified by:
getBatchOrBuilderin interfaceReadOutputOrBuilder
-
hasNextSeqNum
public boolean hasNextSeqNum()
Tail of the stream, i.e. sequence number that will be assigned to the next record. It will be returned if the requested starting position is greater than the tail, or only in case of a limited read, equal to it. It will also be returned if there are no records on the stream between the requested starting position and the tail.
uint64 next_seq_num = 3;- Specified by:
hasNextSeqNumin interfaceReadOutputOrBuilder- Returns:
- Whether the nextSeqNum field is set.
-
getNextSeqNum
public long getNextSeqNum()
Tail of the stream, i.e. sequence number that will be assigned to the next record. It will be returned if the requested starting position is greater than the tail, or only in case of a limited read, equal to it. It will also be returned if there are no records on the stream between the requested starting position and the tail.
uint64 next_seq_num = 3;- Specified by:
getNextSeqNumin interfaceReadOutputOrBuilder- Returns:
- The nextSeqNum.
-
setNextSeqNum
public ReadOutput.Builder setNextSeqNum(long value)
Tail of the stream, i.e. sequence number that will be assigned to the next record. It will be returned if the requested starting position is greater than the tail, or only in case of a limited read, equal to it. It will also be returned if there are no records on the stream between the requested starting position and the tail.
uint64 next_seq_num = 3;- Parameters:
value- The nextSeqNum to set.- Returns:
- This builder for chaining.
-
clearNextSeqNum
public ReadOutput.Builder clearNextSeqNum()
Tail of the stream, i.e. sequence number that will be assigned to the next record. It will be returned if the requested starting position is greater than the tail, or only in case of a limited read, equal to it. It will also be returned if there are no records on the stream between the requested starting position and the tail.
uint64 next_seq_num = 3;- Returns:
- This builder for chaining.
-
-