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.BuilderaddAllRecords(java.lang.Iterable<? extends SequencedRecord> values)Records that are at or after the requested start position.ReadBatch.BuilderaddRecords(int index, SequencedRecord value)Records that are at or after the requested start position.ReadBatch.BuilderaddRecords(int index, SequencedRecord.Builder builderForValue)Records that are at or after the requested start position.ReadBatch.BuilderaddRecords(SequencedRecord value)Records that are at or after the requested start position.ReadBatch.BuilderaddRecords(SequencedRecord.Builder builderForValue)Records that are at or after the requested start position.SequencedRecord.BuilderaddRecordsBuilder()Records that are at or after the requested start position.SequencedRecord.BuilderaddRecordsBuilder(int index)Records that are at or after the requested start position.ReadBatchbuild()ReadBatchbuildPartial()ReadBatch.Builderclear()ReadBatch.BuilderclearRecords()Records that are at or after the requested start position.ReadBatch.BuilderclearTail()Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.ReadBatchgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SequencedRecordgetRecords(int index)Records that are at or after the requested start position.SequencedRecord.BuildergetRecordsBuilder(int index)Records that are at or after the requested start position.java.util.List<SequencedRecord.Builder>getRecordsBuilderList()Records that are at or after the requested start position.intgetRecordsCount()Records that are at or after the requested start position.java.util.List<SequencedRecord>getRecordsList()Records that are at or after the requested start position.SequencedRecordOrBuildergetRecordsOrBuilder(int index)Records that are at or after the requested start position.java.util.List<? extends SequencedRecordOrBuilder>getRecordsOrBuilderList()Records that are at or after the requested start position.StreamPositiongetTail()Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.StreamPosition.BuildergetTailBuilder()Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.StreamPositionOrBuildergetTailOrBuilder()Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.booleanhasTail()Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ReadBatch.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ReadBatch.BuildermergeFrom(com.google.protobuf.Message other)ReadBatch.BuildermergeFrom(ReadBatch other)ReadBatch.BuildermergeTail(StreamPosition value)Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.ReadBatch.BuilderremoveRecords(int index)Records that are at or after the requested start position.ReadBatch.BuildersetRecords(int index, SequencedRecord value)Records that are at or after the requested start position.ReadBatch.BuildersetRecords(int index, SequencedRecord.Builder builderForValue)Records that are at or after the requested start position.ReadBatch.BuildersetTail(StreamPosition value)Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.ReadBatch.BuildersetTail(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReadBatch.Builder>
-
clear
public ReadBatch.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<ReadBatch.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<ReadBatch.Builder>
-
getDefaultInstanceForType
public ReadBatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadBatch build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadBatch buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ReadBatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadBatch.Builder>
-
mergeFrom
public ReadBatch.Builder mergeFrom(ReadBatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadBatch.Builder>- Throws:
java.io.IOException
-
getRecordsList
public java.util.List<SequencedRecord> getRecordsList()
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;- Specified by:
getRecordsListin interfaceReadBatchOrBuilder
-
getRecordsCount
public int getRecordsCount()
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;- Specified by:
getRecordsCountin interfaceReadBatchOrBuilder
-
getRecords
public SequencedRecord getRecords(int index)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;- Specified by:
getRecordsin interfaceReadBatchOrBuilder
-
setRecords
public ReadBatch.Builder setRecords(int index, SequencedRecord value)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
setRecords
public ReadBatch.Builder setRecords(int index, SequencedRecord.Builder builderForValue)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(SequencedRecord value)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(int index, SequencedRecord value)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(SequencedRecord.Builder builderForValue)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecords
public ReadBatch.Builder addRecords(int index, SequencedRecord.Builder builderForValue)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
addAllRecords
public ReadBatch.Builder addAllRecords(java.lang.Iterable<? extends SequencedRecord> values)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
clearRecords
public ReadBatch.Builder clearRecords()
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
removeRecords
public ReadBatch.Builder removeRecords(int index)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
getRecordsBuilder
public SequencedRecord.Builder getRecordsBuilder(int index)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
getRecordsOrBuilder
public SequencedRecordOrBuilder getRecordsOrBuilder(int index)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;- Specified by:
getRecordsOrBuilderin interfaceReadBatchOrBuilder
-
getRecordsOrBuilderList
public java.util.List<? extends SequencedRecordOrBuilder> getRecordsOrBuilderList()
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;- Specified by:
getRecordsOrBuilderListin interfaceReadBatchOrBuilder
-
addRecordsBuilder
public SequencedRecord.Builder addRecordsBuilder()
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
addRecordsBuilder
public SequencedRecord.Builder addRecordsBuilder(int index)
Records that are at or after the requested start position.
repeated .s2.v1.SequencedRecord records = 1;
-
getRecordsBuilderList
public java.util.List<SequencedRecord.Builder> getRecordsBuilderList()
Records that are at or after the requested start position.
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 consuming recent records.
optional .s2.v1.StreamPosition tail = 2;- Specified by:
hasTailin 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 consuming recent records.
optional .s2.v1.StreamPosition tail = 2;- Specified by:
getTailin 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 consuming 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 consuming 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 consuming 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 consuming 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 consuming 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 consuming recent records.
optional .s2.v1.StreamPosition tail = 2;- Specified by:
getTailOrBuilderin interfaceReadBatchOrBuilder
-
-