Package s2.v1
Class ReadBatch.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<ReadBatch.Builder>
-
- s2.v1.ReadBatch.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
,ReadBatchOrBuilder
- Enclosing class:
- ReadBatch
public static final class ReadBatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReadBatch.Builder> implements ReadBatchOrBuilder
Success response message to a Read request.
Protobuf types2.v1.ReadBatch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadBatch.Builder
addAllRecords(java.lang.Iterable<? extends SequencedRecord> values)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
addRecords(int index, SequencedRecord value)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
addRecords(int index, SequencedRecord.Builder builderForValue)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
addRecords(SequencedRecord value)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
addRecords(SequencedRecord.Builder builderForValue)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.SequencedRecord.Builder
addRecordsBuilder()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.SequencedRecord.Builder
addRecordsBuilder(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch
build()
ReadBatch
buildPartial()
ReadBatch.Builder
clear()
ReadBatch.Builder
clearRecords()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
clearTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.ReadBatch
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
SequencedRecord
getRecords(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.SequencedRecord.Builder
getRecordsBuilder(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.java.util.List<SequencedRecord.Builder>
getRecordsBuilderList()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.int
getRecordsCount()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.java.util.List<SequencedRecord>
getRecordsList()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.SequencedRecordOrBuilder
getRecordsOrBuilder(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.java.util.List<? extends SequencedRecordOrBuilder>
getRecordsOrBuilderList()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.StreamPosition
getTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.StreamPosition.Builder
getTailBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.StreamPositionOrBuilder
getTailOrBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.boolean
hasTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ReadBatch.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ReadBatch.Builder
mergeFrom(com.google.protobuf.Message other)
ReadBatch.Builder
mergeFrom(ReadBatch other)
ReadBatch.Builder
mergeTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.ReadBatch.Builder
removeRecords(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
setRecords(int index, SequencedRecord value)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
setRecords(int index, SequencedRecord.Builder builderForValue)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.ReadBatch.Builder
setTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.ReadBatch.Builder
setTail(StreamPosition.Builder builderForValue)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.-
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<ReadBatch.Builder>
-
clear
public ReadBatch.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<ReadBatch.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<ReadBatch.Builder>
-
getDefaultInstanceForType
public ReadBatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadBatch build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadBatch buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ReadBatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReadBatch.Builder>
-
mergeFrom
public ReadBatch.Builder mergeFrom(ReadBatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ReadBatch.Builder>
-
mergeFrom
public ReadBatch.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<ReadBatch.Builder>
- Throws:
java.io.IOException
-
getRecordsList
public java.util.List<SequencedRecord> getRecordsList()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
- Specified by:
getRecordsList
in interfaceReadBatchOrBuilder
-
getRecordsCount
public int getRecordsCount()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
- Specified by:
getRecordsCount
in interfaceReadBatchOrBuilder
-
getRecords
public SequencedRecord getRecords(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
- Specified by:
getRecords
in interfaceReadBatchOrBuilder
-
setRecords
public ReadBatch.Builder setRecords(int index, SequencedRecord value)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
setRecords
public ReadBatch.Builder setRecords(int index, SequencedRecord.Builder builderForValue)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(SequencedRecord value)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(int index, SequencedRecord value)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(SequencedRecord.Builder builderForValue)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(int index, SequencedRecord.Builder builderForValue)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
addAllRecords
public ReadBatch.Builder addAllRecords(java.lang.Iterable<? extends SequencedRecord> values)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
clearRecords
public ReadBatch.Builder clearRecords()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
removeRecords
public ReadBatch.Builder removeRecords(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
getRecordsBuilder
public SequencedRecord.Builder getRecordsBuilder(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
getRecordsOrBuilder
public SequencedRecordOrBuilder getRecordsOrBuilder(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
- Specified by:
getRecordsOrBuilder
in interfaceReadBatchOrBuilder
-
getRecordsOrBuilderList
public java.util.List<? extends SequencedRecordOrBuilder> getRecordsOrBuilderList()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
- Specified by:
getRecordsOrBuilderList
in interfaceReadBatchOrBuilder
-
addRecordsBuilder
public SequencedRecord.Builder addRecordsBuilder()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecordsBuilder
public SequencedRecord.Builder addRecordsBuilder(int index)
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
getRecordsBuilderList
public java.util.List<SequencedRecord.Builder> getRecordsBuilderList()
Records that are durably sequenced on the stream, retrieved based on the requested criteria.
repeated .s2.v1.SequencedRecord records = 1;
-
hasTail
public boolean hasTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
- Specified by:
hasTail
in interfaceReadBatchOrBuilder
- Returns:
- Whether the tail field is set.
-
getTail
public StreamPosition getTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
- Specified by:
getTail
in interfaceReadBatchOrBuilder
- Returns:
- The tail.
-
setTail
public ReadBatch.Builder setTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
-
setTail
public ReadBatch.Builder setTail(StreamPosition.Builder builderForValue)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
-
mergeTail
public ReadBatch.Builder mergeTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
-
clearTail
public ReadBatch.Builder clearTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
-
getTailBuilder
public StreamPosition.Builder getTailBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
-
getTailOrBuilder
public StreamPositionOrBuilder getTailOrBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record. This will only be present when reading recent records.
optional .s2.v1.StreamPosition tail = 2;
- Specified by:
getTailOrBuilder
in interfaceReadBatchOrBuilder
-
-