Class AppendEventsResponse.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AppendEventsResponseOrBuilder, Cloneable
    Enclosing class:
    AppendEventsResponse

    public static final class AppendEventsResponse.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<AppendEventsResponse.Builder>
    implements AppendEventsResponseOrBuilder
     The response of a successful append events request. If there was an issue with the append events request,
     the stream will complete with an error. 
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.AppendEventsResponse
    • 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<AppendEventsResponse.Builder>
      • clear

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

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

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

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

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

        public AppendEventsResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws 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<AppendEventsResponse.Builder>
        Throws:
        IOException
      • getSequenceOfTheFirstEvent

        public long getSequenceOfTheFirstEvent()
         The sequence of the first event stored in the event store.
         Corresponding to the list of events (a transaction) passed in the AppendEventsRequest. 
         
        int64 sequence_of_the_first_event = 1;
        Specified by:
        getSequenceOfTheFirstEvent in interface AppendEventsResponseOrBuilder
        Returns:
        The sequenceOfTheFirstEvent.
      • setSequenceOfTheFirstEvent

        public AppendEventsResponse.Builder setSequenceOfTheFirstEvent​(long value)
         The sequence of the first event stored in the event store.
         Corresponding to the list of events (a transaction) passed in the AppendEventsRequest. 
         
        int64 sequence_of_the_first_event = 1;
        Parameters:
        value - The sequenceOfTheFirstEvent to set.
        Returns:
        This builder for chaining.
      • clearSequenceOfTheFirstEvent

        public AppendEventsResponse.Builder clearSequenceOfTheFirstEvent()
         The sequence of the first event stored in the event store.
         Corresponding to the list of events (a transaction) passed in the AppendEventsRequest. 
         
        int64 sequence_of_the_first_event = 1;
        Returns:
        This builder for chaining.
      • getTransactionSize

        public int getTransactionSize()
         The number of events appended. Matches the number of events passed in the AppendEventsRequest. 
         
        int32 transaction_size = 2;
        Specified by:
        getTransactionSize in interface AppendEventsResponseOrBuilder
        Returns:
        The transactionSize.
      • setTransactionSize

        public AppendEventsResponse.Builder setTransactionSize​(int value)
         The number of events appended. Matches the number of events passed in the AppendEventsRequest. 
         
        int32 transaction_size = 2;
        Parameters:
        value - The transactionSize to set.
        Returns:
        This builder for chaining.
      • clearTransactionSize

        public AppendEventsResponse.Builder clearTransactionSize()
         The number of events appended. Matches the number of events passed in the AppendEventsRequest. 
         
        int32 transaction_size = 2;
        Returns:
        This builder for chaining.
      • getConsistencyMarker

        public long getConsistencyMarker()
         The consistency marker which may be used for a subsequent append events requests. Do note that during the time this
         consistency marker may get far behind the head of the event store which will increase the time needed for the append
         events request to be validated. If you don't plan to do subsequent append events requests in a "short" period of time,
         use the Source RPC to refresh the consistency marker. 
         
        int64 consistency_marker = 3;
        Specified by:
        getConsistencyMarker in interface AppendEventsResponseOrBuilder
        Returns:
        The consistencyMarker.
      • setConsistencyMarker

        public AppendEventsResponse.Builder setConsistencyMarker​(long value)
         The consistency marker which may be used for a subsequent append events requests. Do note that during the time this
         consistency marker may get far behind the head of the event store which will increase the time needed for the append
         events request to be validated. If you don't plan to do subsequent append events requests in a "short" period of time,
         use the Source RPC to refresh the consistency marker. 
         
        int64 consistency_marker = 3;
        Parameters:
        value - The consistencyMarker to set.
        Returns:
        This builder for chaining.
      • clearConsistencyMarker

        public AppendEventsResponse.Builder clearConsistencyMarker()
         The consistency marker which may be used for a subsequent append events requests. Do note that during the time this
         consistency marker may get far behind the head of the event store which will increase the time needed for the append
         events request to be validated. If you don't plan to do subsequent append events requests in a "short" period of time,
         use the Source RPC to refresh the consistency marker. 
         
        int64 consistency_marker = 3;
        Returns:
        This builder for chaining.