Class Event

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

    @Generated
    public final class Event
    extends com.google.protobuf.GeneratedMessage
    implements EventOrBuilder
     Message containing the information of an Event 
     
    Protobuf type io.axoniq.axonserver.grpc.event.Event
    See Also:
    Serialized Form
    • Field Detail

      • MESSAGE_IDENTIFIER_FIELD_NUMBER

        public static final int MESSAGE_IDENTIFIER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AGGREGATE_IDENTIFIER_FIELD_NUMBER

        public static final int AGGREGATE_IDENTIFIER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AGGREGATE_SEQUENCE_NUMBER_FIELD_NUMBER

        public static final int AGGREGATE_SEQUENCE_NUMBER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AGGREGATE_TYPE_FIELD_NUMBER

        public static final int AGGREGATE_TYPE_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
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • getMessageIdentifier

        public String getMessageIdentifier()
         The unique identifier of this event 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifier in interface EventOrBuilder
        Returns:
        The messageIdentifier.
      • getMessageIdentifierBytes

        public com.google.protobuf.ByteString getMessageIdentifierBytes()
         The unique identifier of this event 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifierBytes in interface EventOrBuilder
        Returns:
        The bytes for messageIdentifier.
      • getAggregateIdentifier

        public String getAggregateIdentifier()
         The identifier of the Aggregate instance that published this event, if any 
         
        string aggregate_identifier = 2;
        Specified by:
        getAggregateIdentifier in interface EventOrBuilder
        Returns:
        The aggregateIdentifier.
      • getAggregateIdentifierBytes

        public com.google.protobuf.ByteString getAggregateIdentifierBytes()
         The identifier of the Aggregate instance that published this event, if any 
         
        string aggregate_identifier = 2;
        Specified by:
        getAggregateIdentifierBytes in interface EventOrBuilder
        Returns:
        The bytes for aggregateIdentifier.
      • getAggregateSequenceNumber

        public long getAggregateSequenceNumber()
         The sequence number of the Event in the Aggregate instance that published it, if any 
         
        int64 aggregate_sequence_number = 3;
        Specified by:
        getAggregateSequenceNumber in interface EventOrBuilder
        Returns:
        The aggregateSequenceNumber.
      • getAggregateType

        public String getAggregateType()
         The Type of the Aggregate instance that published this Event, if any 
         
        string aggregate_type = 4;
        Specified by:
        getAggregateType in interface EventOrBuilder
        Returns:
        The aggregateType.
      • getAggregateTypeBytes

        public com.google.protobuf.ByteString getAggregateTypeBytes()
         The Type of the Aggregate instance that published this Event, if any 
         
        string aggregate_type = 4;
        Specified by:
        getAggregateTypeBytes in interface EventOrBuilder
        Returns:
        The bytes for aggregateType.
      • getTimestamp

        public long getTimestamp()
         The timestamp of the Event 
         
        int64 timestamp = 5;
        Specified by:
        getTimestamp in interface EventOrBuilder
        Returns:
        The timestamp.
      • hasPayload

        public boolean hasPayload()
         The Payload of the Event 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 6;
        Specified by:
        hasPayload in interface EventOrBuilder
        Returns:
        Whether the payload field is set.
      • getPayload

        public SerializedObject getPayload()
         The Payload of the Event 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 6;
        Specified by:
        getPayload in interface EventOrBuilder
        Returns:
        The payload.
      • getMetaDataCount

        public int getMetaDataCount()
        Description copied from interface: EventOrBuilder
         The Meta Data of the Event 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
        Specified by:
        getMetaDataCount in interface EventOrBuilder
      • containsMetaData

        public boolean containsMetaData​(String key)
         The Meta Data of the Event 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
        Specified by:
        containsMetaData in interface EventOrBuilder
      • getSnapshot

        public boolean getSnapshot()
         Flag indicating whether the Event is a snapshot Event 
         
        bool snapshot = 8;
        Specified by:
        getSnapshot in interface EventOrBuilder
        Returns:
        The snapshot.
      • 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 Event parseFrom​(ByteBuffer data)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static Event parseFrom​(com.google.protobuf.CodedInputStream input,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public static Event getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Event> parser()
      • getParserForType

        public com.google.protobuf.Parser<Event> 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 Event getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder