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 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 at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
        Specified by:
        getRecordsList in interface ReadBatchOrBuilder
      • getRecordsCount

        public int getRecordsCount()
         Records that are at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
        Specified by:
        getRecordsCount in interface ReadBatchOrBuilder
      • getRecords

        public SequencedRecord getRecords​(int index)
         Records that are at or after the requested start position.
         
        repeated .s2.v1.SequencedRecord records = 1;
        Specified by:
        getRecords in interface ReadBatchOrBuilder
      • 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​(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;
      • 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:
        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 consuming 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 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:
        getTailOrBuilder in interface ReadBatchOrBuilder