Package s2.v1

Class 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 type s2.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
      • 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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReadBatch.Builder>
      • clear

        public ReadBatch.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<ReadBatch.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ReadBatch.Builder>
      • getDefaultInstanceForType

        public ReadBatch getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ReadBatch build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ReadBatch buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public ReadBatch.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReadBatch.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface ReadBatchOrBuilder
      • 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 interface ReadBatchOrBuilder
      • 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 interface ReadBatchOrBuilder
      • 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;
      • 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 interface ReadBatchOrBuilder
        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 interface ReadBatchOrBuilder
        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 interface ReadBatchOrBuilder