Class AppendEventsResponse

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AppendEventsResponseOrBuilder, Serializable

    @Generated
    public final class AppendEventsResponse
    extends com.google.protobuf.GeneratedMessage
    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
    See Also:
    Serialized Form
    • Field Detail

      • SEQUENCE_OF_THE_FIRST_EVENT_FIELD_NUMBER

        public static final int SEQUENCE_OF_THE_FIRST_EVENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRANSACTION_SIZE_FIELD_NUMBER

        public static final int TRANSACTION_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONSISTENCY_MARKER_FIELD_NUMBER

        public static final int CONSISTENCY_MARKER_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • getDescriptor

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

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static AppendEventsResponse parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AppendEventsResponse parseFrom​(ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AppendEventsResponse parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AppendEventsResponse parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AppendEventsResponse parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AppendEventsResponse parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected AppendEventsResponse.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

        public com.google.protobuf.Parser<AppendEventsResponse> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

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