Class Event.Builder

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

    public static final class Event.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
    implements EventOrBuilder
     Message containing the information of an Event 
     
    Protobuf type io.axoniq.axonserver.grpc.event.Event
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
      • clear

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

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

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

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

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

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

        public Event.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<Event.Builder>
        Throws:
        IOException
      • 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.
      • setMessageIdentifier

        public Event.Builder setMessageIdentifier​(String value)
         The unique identifier of this event 
         
        string message_identifier = 1;
        Parameters:
        value - The messageIdentifier to set.
        Returns:
        This builder for chaining.
      • clearMessageIdentifier

        public Event.Builder clearMessageIdentifier()
         The unique identifier of this event 
         
        string message_identifier = 1;
        Returns:
        This builder for chaining.
      • setMessageIdentifierBytes

        public Event.Builder setMessageIdentifierBytes​(com.google.protobuf.ByteString value)
         The unique identifier of this event 
         
        string message_identifier = 1;
        Parameters:
        value - The bytes for messageIdentifier to set.
        Returns:
        This builder for chaining.
      • 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.
      • setAggregateIdentifier

        public Event.Builder setAggregateIdentifier​(String value)
         The identifier of the Aggregate instance that published this event, if any 
         
        string aggregate_identifier = 2;
        Parameters:
        value - The aggregateIdentifier to set.
        Returns:
        This builder for chaining.
      • clearAggregateIdentifier

        public Event.Builder clearAggregateIdentifier()
         The identifier of the Aggregate instance that published this event, if any 
         
        string aggregate_identifier = 2;
        Returns:
        This builder for chaining.
      • setAggregateIdentifierBytes

        public Event.Builder setAggregateIdentifierBytes​(com.google.protobuf.ByteString value)
         The identifier of the Aggregate instance that published this event, if any 
         
        string aggregate_identifier = 2;
        Parameters:
        value - The bytes for aggregateIdentifier to set.
        Returns:
        This builder for chaining.
      • 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.
      • setAggregateSequenceNumber

        public Event.Builder setAggregateSequenceNumber​(long value)
         The sequence number of the Event in the Aggregate instance that published it, if any 
         
        int64 aggregate_sequence_number = 3;
        Parameters:
        value - The aggregateSequenceNumber to set.
        Returns:
        This builder for chaining.
      • clearAggregateSequenceNumber

        public Event.Builder clearAggregateSequenceNumber()
         The sequence number of the Event in the Aggregate instance that published it, if any 
         
        int64 aggregate_sequence_number = 3;
        Returns:
        This builder for chaining.
      • 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.
      • setAggregateType

        public Event.Builder setAggregateType​(String value)
         The Type of the Aggregate instance that published this Event, if any 
         
        string aggregate_type = 4;
        Parameters:
        value - The aggregateType to set.
        Returns:
        This builder for chaining.
      • clearAggregateType

        public Event.Builder clearAggregateType()
         The Type of the Aggregate instance that published this Event, if any 
         
        string aggregate_type = 4;
        Returns:
        This builder for chaining.
      • setAggregateTypeBytes

        public Event.Builder setAggregateTypeBytes​(com.google.protobuf.ByteString value)
         The Type of the Aggregate instance that published this Event, if any 
         
        string aggregate_type = 4;
        Parameters:
        value - The bytes for aggregateType to set.
        Returns:
        This builder for chaining.
      • getTimestamp

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

        public Event.Builder setTimestamp​(long value)
         The timestamp of the Event 
         
        int64 timestamp = 5;
        Parameters:
        value - The timestamp to set.
        Returns:
        This builder for chaining.
      • clearTimestamp

        public Event.Builder clearTimestamp()
         The timestamp of the Event 
         
        int64 timestamp = 5;
        Returns:
        This builder for chaining.
      • 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.
      • setPayload

        public Event.Builder setPayload​(SerializedObject value)
         The Payload of the Event 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 6;
      • mergePayload

        public Event.Builder mergePayload​(SerializedObject value)
         The Payload of the Event 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 6;
      • clearPayload

        public Event.Builder clearPayload()
         The Payload of the Event 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 6;
      • getPayloadBuilder

        public SerializedObject.Builder getPayloadBuilder()
         The Payload of the Event 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 6;
      • 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
      • removeMetaData

        public Event.Builder removeMetaData​(String key)
         The Meta Data of the Event 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
      • putMetaData

        public Event.Builder putMetaData​(String key,
                                         MetaDataValue value)
         The Meta Data of the Event 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
      • putAllMetaData

        public Event.Builder putAllMetaData​(Map<String,​MetaDataValue> values)
         The Meta Data of the Event 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
      • putMetaDataBuilderIfAbsent

        public MetaDataValue.Builder putMetaDataBuilderIfAbsent​(String key)
         The Meta Data of the Event 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7;
      • 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.
      • setSnapshot

        public Event.Builder setSnapshot​(boolean value)
         Flag indicating whether the Event is a snapshot Event 
         
        bool snapshot = 8;
        Parameters:
        value - The snapshot to set.
        Returns:
        This builder for chaining.
      • clearSnapshot

        public Event.Builder clearSnapshot()
         Flag indicating whether the Event is a snapshot Event 
         
        bool snapshot = 8;
        Returns:
        This builder for chaining.