Package s2.v1alpha
Interface ReadOutputOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ReadOutput
,ReadOutput.Builder
public interface ReadOutputOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetBatch()
Batch of records.Batch of records.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasBatch
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;
- Returns:
- Whether the batch field is set.
-
getBatch
SequencedRecordBatch 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;
- Returns:
- The batch.
-
getBatchOrBuilder
SequencedRecordBatchOrBuilder 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;
-
hasFirstSeqNum
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;
- Returns:
- Whether the firstSeqNum field is set.
-
getFirstSeqNum
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;
- Returns:
- The firstSeqNum.
-
hasNextSeqNum
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;
- Returns:
- Whether the nextSeqNum field is set.
-
getNextSeqNum
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;
- Returns:
- The nextSeqNum.
-
getOutputCase
ReadOutput.OutputCase getOutputCase()
-