Package s2.v1alpha

Class ReadOutput.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, ReadOutputOrBuilder
    Enclosing class:
    ReadOutput

    public static final class ReadOutput.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ReadOutput.Builder>
    implements ReadOutputOrBuilder
     Output of a read.
     
    Protobuf type s2.v1alpha.ReadOutput
    • 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<ReadOutput.Builder>
      • clear

        public ReadOutput.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<ReadOutput.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<ReadOutput.Builder>
      • getDefaultInstanceForType

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

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

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

        public ReadOutput.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<ReadOutput.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ReadOutput.Builder>
      • mergeFrom

        public ReadOutput.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<ReadOutput.Builder>
        Throws:
        java.io.IOException
      • hasBatch

        public boolean hasBatch()
         Batch of records.
         It can only be empty when not in a session context,
         if the request cannot be satisfied without violating its limit.
         
        .s2.v1alpha.SequencedRecordBatch batch = 1;
        Specified by:
        hasBatch in interface ReadOutputOrBuilder
        Returns:
        Whether the batch field is set.
      • getBatch

        public SequencedRecordBatch getBatch()
         Batch of records.
         It can only be empty when not in a session context,
         if the request cannot be satisfied without violating its limit.
         
        .s2.v1alpha.SequencedRecordBatch batch = 1;
        Specified by:
        getBatch in interface ReadOutputOrBuilder
        Returns:
        The batch.
      • setBatch

        public ReadOutput.Builder setBatch​(SequencedRecordBatch value)
         Batch of records.
         It can only be empty when not in a session context,
         if the request cannot be satisfied without violating its limit.
         
        .s2.v1alpha.SequencedRecordBatch batch = 1;
      • setBatch

        public ReadOutput.Builder setBatch​(SequencedRecordBatch.Builder builderForValue)
         Batch of records.
         It can only be empty when not in a session context,
         if the request cannot be satisfied without violating its limit.
         
        .s2.v1alpha.SequencedRecordBatch batch = 1;
      • mergeBatch

        public ReadOutput.Builder mergeBatch​(SequencedRecordBatch value)
         Batch of records.
         It can only be empty when not in a session context,
         if the request cannot be satisfied without violating its limit.
         
        .s2.v1alpha.SequencedRecordBatch batch = 1;
      • clearBatch

        public ReadOutput.Builder clearBatch()
         Batch of records.
         It can only be empty when not in a session context,
         if the request cannot be satisfied without violating its limit.
         
        .s2.v1alpha.SequencedRecordBatch batch = 1;
      • getBatchBuilder

        public SequencedRecordBatch.Builder getBatchBuilder()
         Batch of records.
         It can only be empty when not in a session context,
         if the request cannot be satisfied without violating its limit.
         
        .s2.v1alpha.SequencedRecordBatch batch = 1;
      • hasNextSeqNum

        public boolean hasNextSeqNum()
         Tail of the stream, i.e. sequence number that will be assigned to the next record.
         It will be returned if the requested starting position is greater than the tail,
         or only in case of a limited read, equal to it.
         It will also be returned if there are no records on the stream between the
         requested starting position and the tail.
         
        uint64 next_seq_num = 3;
        Specified by:
        hasNextSeqNum in interface ReadOutputOrBuilder
        Returns:
        Whether the nextSeqNum field is set.
      • getNextSeqNum

        public long getNextSeqNum()
         Tail of the stream, i.e. sequence number that will be assigned to the next record.
         It will be returned if the requested starting position is greater than the tail,
         or only in case of a limited read, equal to it.
         It will also be returned if there are no records on the stream between the
         requested starting position and the tail.
         
        uint64 next_seq_num = 3;
        Specified by:
        getNextSeqNum in interface ReadOutputOrBuilder
        Returns:
        The nextSeqNum.
      • setNextSeqNum

        public ReadOutput.Builder setNextSeqNum​(long value)
         Tail of the stream, i.e. sequence number that will be assigned to the next record.
         It will be returned if the requested starting position is greater than the tail,
         or only in case of a limited read, equal to it.
         It will also be returned if there are no records on the stream between the
         requested starting position and the tail.
         
        uint64 next_seq_num = 3;
        Parameters:
        value - The nextSeqNum to set.
        Returns:
        This builder for chaining.
      • clearNextSeqNum

        public ReadOutput.Builder clearNextSeqNum()
         Tail of the stream, i.e. sequence number that will be assigned to the next record.
         It will be returned if the requested starting position is greater than the tail,
         or only in case of a limited read, equal to it.
         It will also be returned if there are no records on the stream between the
         requested starting position and the tail.
         
        uint64 next_seq_num = 3;
        Returns:
        This builder for chaining.