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
,Cloneable
,ReadOutputOrBuilder
- Enclosing class:
- ReadOutput
public static final class ReadOutput.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReadOutput.Builder>
implements ReadOutputOrBuilder
Output from read response.Protobuf type
s2.v1alpha.ReadOutput
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
Batch of records.Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller.Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger.getBatch()
Batch of records.Batch of records.Batch of records.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller.long
Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger.boolean
hasBatch()
Batch of records.boolean
Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller.boolean
Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeBatch
(SequencedRecordBatch value) Batch of records.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ReadOutput other) setBatch
(SequencedRecordBatch value) Batch of records.setBatch
(SequencedRecordBatch.Builder builderForValue) Batch of records.setFirstSeqNum
(long value) Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller.setNextSeqNum
(long value) Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger.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<ReadOutput.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<ReadOutput.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<ReadOutput.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<ReadOutput.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ReadOutput.Builder>
-
mergeFrom
public ReadOutput.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<ReadOutput.Builder>
- Throws:
IOException
-
getOutputCase
- Specified by:
getOutputCase
in interfaceReadOutputOrBuilder
-
clearOutput
-
hasBatch
public boolean hasBatch()Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
- Specified by:
hasBatch
in interfaceReadOutputOrBuilder
- Returns:
- Whether the batch field is set.
-
getBatch
Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
- Specified by:
getBatch
in interfaceReadOutputOrBuilder
- Returns:
- The batch.
-
setBatch
Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
setBatch
Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
mergeBatch
Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
clearBatch
Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
getBatchBuilder
Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
-
getBatchOrBuilder
Batch of records. This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record that could have been returned would violate the limit.
.s2.v1alpha.SequencedRecordBatch batch = 1;
- Specified by:
getBatchOrBuilder
in interfaceReadOutputOrBuilder
-
hasFirstSeqNum
public boolean hasFirstSeqNum()Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller. If returned in a streaming read session, this will be a terminal reply, to signal that there is uncertainty about whether some records may be omitted. The client can re-establish the session starting at this sequence number.
uint64 first_seq_num = 2;
- Specified by:
hasFirstSeqNum
in interfaceReadOutputOrBuilder
- Returns:
- Whether the firstSeqNum field is set.
-
getFirstSeqNum
public long getFirstSeqNum()Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller. If returned in a streaming read session, this will be a terminal reply, to signal that there is uncertainty about whether some records may be omitted. The client can re-establish the session starting at this sequence number.
uint64 first_seq_num = 2;
- Specified by:
getFirstSeqNum
in interfaceReadOutputOrBuilder
- Returns:
- The firstSeqNum.
-
setFirstSeqNum
Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller. If returned in a streaming read session, this will be a terminal reply, to signal that there is uncertainty about whether some records may be omitted. The client can re-establish the session starting at this sequence number.
uint64 first_seq_num = 2;
- Parameters:
value
- The firstSeqNum to set.- Returns:
- This builder for chaining.
-
clearFirstSeqNum
Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller. If returned in a streaming read session, this will be a terminal reply, to signal that there is uncertainty about whether some records may be omitted. The client can re-establish the session starting at this sequence number.
uint64 first_seq_num = 2;
- Returns:
- This builder for chaining.
-
hasNextSeqNum
public boolean hasNextSeqNum()Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger. If returned in a streaming read session, this will be a terminal reply.
uint64 next_seq_num = 3;
- Specified by:
hasNextSeqNum
in interfaceReadOutputOrBuilder
- Returns:
- Whether the nextSeqNum field is set.
-
getNextSeqNum
public long getNextSeqNum()Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger. If returned in a streaming read session, this will be a terminal reply.
uint64 next_seq_num = 3;
- Specified by:
getNextSeqNum
in interfaceReadOutputOrBuilder
- Returns:
- The nextSeqNum.
-
setNextSeqNum
Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger. If returned in a streaming read session, this will be a terminal reply.
uint64 next_seq_num = 3;
- Parameters:
value
- The nextSeqNum to set.- Returns:
- This builder for chaining.
-
clearNextSeqNum
Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger. If returned in a streaming read session, this will be a terminal reply.
uint64 next_seq_num = 3;
- Returns:
- This builder for chaining.
-