Package s2.v1alpha

Class AppendOutput.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, AppendOutputOrBuilder
    Enclosing class:
    AppendOutput

    public static final class AppendOutput.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<AppendOutput.Builder>
    implements AppendOutputOrBuilder
     Output from append response.
     
    Protobuf type s2.v1alpha.AppendOutput
    • 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<AppendOutput.Builder>
      • clear

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

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

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

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

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

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

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

        public long getStartSeqNum()
         Sequence number of first record appended.
         
        uint64 start_seq_num = 1;
        Specified by:
        getStartSeqNum in interface AppendOutputOrBuilder
        Returns:
        The startSeqNum.
      • setStartSeqNum

        public AppendOutput.Builder setStartSeqNum​(long value)
         Sequence number of first record appended.
         
        uint64 start_seq_num = 1;
        Parameters:
        value - The startSeqNum to set.
        Returns:
        This builder for chaining.
      • clearStartSeqNum

        public AppendOutput.Builder clearStartSeqNum()
         Sequence number of first record appended.
         
        uint64 start_seq_num = 1;
        Returns:
        This builder for chaining.
      • getStartTimestamp

        public long getStartTimestamp()
         Timestamp of the first record appended.
         
        uint64 start_timestamp = 4;
        Specified by:
        getStartTimestamp in interface AppendOutputOrBuilder
        Returns:
        The startTimestamp.
      • setStartTimestamp

        public AppendOutput.Builder setStartTimestamp​(long value)
         Timestamp of the first record appended.
         
        uint64 start_timestamp = 4;
        Parameters:
        value - The startTimestamp to set.
        Returns:
        This builder for chaining.
      • clearStartTimestamp

        public AppendOutput.Builder clearStartTimestamp()
         Timestamp of the first record appended.
         
        uint64 start_timestamp = 4;
        Returns:
        This builder for chaining.
      • getEndSeqNum

        public long getEndSeqNum()
         Sequence number of last record appended + 1.
         `end_seq_num - start_seq_num` will be the number of records in the batch.
         
        uint64 end_seq_num = 2;
        Specified by:
        getEndSeqNum in interface AppendOutputOrBuilder
        Returns:
        The endSeqNum.
      • setEndSeqNum

        public AppendOutput.Builder setEndSeqNum​(long value)
         Sequence number of last record appended + 1.
         `end_seq_num - start_seq_num` will be the number of records in the batch.
         
        uint64 end_seq_num = 2;
        Parameters:
        value - The endSeqNum to set.
        Returns:
        This builder for chaining.
      • clearEndSeqNum

        public AppendOutput.Builder clearEndSeqNum()
         Sequence number of last record appended + 1.
         `end_seq_num - start_seq_num` will be the number of records in the batch.
         
        uint64 end_seq_num = 2;
        Returns:
        This builder for chaining.
      • getEndTimestamp

        public long getEndTimestamp()
         Timestamp of the last record appended.
         
        uint64 end_timestamp = 5;
        Specified by:
        getEndTimestamp in interface AppendOutputOrBuilder
        Returns:
        The endTimestamp.
      • setEndTimestamp

        public AppendOutput.Builder setEndTimestamp​(long value)
         Timestamp of the last record appended.
         
        uint64 end_timestamp = 5;
        Parameters:
        value - The endTimestamp to set.
        Returns:
        This builder for chaining.
      • clearEndTimestamp

        public AppendOutput.Builder clearEndTimestamp()
         Timestamp of the last record appended.
         
        uint64 end_timestamp = 5;
        Returns:
        This builder for chaining.
      • getNextSeqNum

        public long getNextSeqNum()
         Tail of the stream, i.e. sequence number that will be assigned to the next record.
         This can be greater than `end_seq_num` in case of concurrent appends.
         
        uint64 next_seq_num = 3;
        Specified by:
        getNextSeqNum in interface AppendOutputOrBuilder
        Returns:
        The nextSeqNum.
      • setNextSeqNum

        public AppendOutput.Builder setNextSeqNum​(long value)
         Tail of the stream, i.e. sequence number that will be assigned to the next record.
         This can be greater than `end_seq_num` in case of concurrent appends.
         
        uint64 next_seq_num = 3;
        Parameters:
        value - The nextSeqNum to set.
        Returns:
        This builder for chaining.
      • clearNextSeqNum

        public AppendOutput.Builder clearNextSeqNum()
         Tail of the stream, i.e. sequence number that will be assigned to the next record.
         This can be greater than `end_seq_num` in case of concurrent appends.
         
        uint64 next_seq_num = 3;
        Returns:
        This builder for chaining.
      • getLastTimestamp

        public long getLastTimestamp()
         Timestamp of the last durable record on the stream.
         
        uint64 last_timestamp = 6;
        Specified by:
        getLastTimestamp in interface AppendOutputOrBuilder
        Returns:
        The lastTimestamp.
      • setLastTimestamp

        public AppendOutput.Builder setLastTimestamp​(long value)
         Timestamp of the last durable record on the stream.
         
        uint64 last_timestamp = 6;
        Parameters:
        value - The lastTimestamp to set.
        Returns:
        This builder for chaining.
      • clearLastTimestamp

        public AppendOutput.Builder clearLastTimestamp()
         Timestamp of the last durable record on the stream.
         
        uint64 last_timestamp = 6;
        Returns:
        This builder for chaining.