Class AppendEventsRequest.Builder

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

    public static final class AppendEventsRequest.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<AppendEventsRequest.Builder>
    implements AppendEventsRequestOrBuilder
     The message representing the request to append events to the event store. 
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.AppendEventsRequest
    • 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<AppendEventsRequest.Builder>
      • clear

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

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

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

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

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

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

        public AppendEventsRequest.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<AppendEventsRequest.Builder>
        Throws:
        IOException
      • hasCondition

        public boolean hasCondition()
         The condition used to check the validity of this request. If omitted, events will be appended unconditionally. 
         
        .io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition condition = 1;
        Specified by:
        hasCondition in interface AppendEventsRequestOrBuilder
        Returns:
        Whether the condition field is set.
      • getCondition

        public ConsistencyCondition getCondition()
         The condition used to check the validity of this request. If omitted, events will be appended unconditionally. 
         
        .io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition condition = 1;
        Specified by:
        getCondition in interface AppendEventsRequestOrBuilder
        Returns:
        The condition.
      • setCondition

        public AppendEventsRequest.Builder setCondition​(ConsistencyCondition value)
         The condition used to check the validity of this request. If omitted, events will be appended unconditionally. 
         
        .io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition condition = 1;
      • setCondition

        public AppendEventsRequest.Builder setCondition​(ConsistencyCondition.Builder builderForValue)
         The condition used to check the validity of this request. If omitted, events will be appended unconditionally. 
         
        .io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition condition = 1;
      • mergeCondition

        public AppendEventsRequest.Builder mergeCondition​(ConsistencyCondition value)
         The condition used to check the validity of this request. If omitted, events will be appended unconditionally. 
         
        .io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition condition = 1;
      • clearCondition

        public AppendEventsRequest.Builder clearCondition()
         The condition used to check the validity of this request. If omitted, events will be appended unconditionally. 
         
        .io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition condition = 1;
      • getConditionBuilder

        public ConsistencyCondition.Builder getConditionBuilder()
         The condition used to check the validity of this request. If omitted, events will be appended unconditionally. 
         
        .io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition condition = 1;
      • getEventList

        public List<TaggedEvent> getEventList()
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
        Specified by:
        getEventList in interface AppendEventsRequestOrBuilder
      • getEventCount

        public int getEventCount()
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
        Specified by:
        getEventCount in interface AppendEventsRequestOrBuilder
      • getEvent

        public TaggedEvent getEvent​(int index)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
        Specified by:
        getEvent in interface AppendEventsRequestOrBuilder
      • setEvent

        public AppendEventsRequest.Builder setEvent​(int index,
                                                    TaggedEvent value)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • setEvent

        public AppendEventsRequest.Builder setEvent​(int index,
                                                    TaggedEvent.Builder builderForValue)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • addEvent

        public AppendEventsRequest.Builder addEvent​(TaggedEvent value)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • addEvent

        public AppendEventsRequest.Builder addEvent​(int index,
                                                    TaggedEvent value)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • addEvent

        public AppendEventsRequest.Builder addEvent​(TaggedEvent.Builder builderForValue)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • addEvent

        public AppendEventsRequest.Builder addEvent​(int index,
                                                    TaggedEvent.Builder builderForValue)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • addAllEvent

        public AppendEventsRequest.Builder addAllEvent​(Iterable<? extends TaggedEvent> values)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • clearEvent

        public AppendEventsRequest.Builder clearEvent()
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • removeEvent

        public AppendEventsRequest.Builder removeEvent​(int index)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • getEventBuilder

        public TaggedEvent.Builder getEventBuilder​(int index)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • getEventOrBuilder

        public TaggedEventOrBuilder getEventOrBuilder​(int index)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
        Specified by:
        getEventOrBuilder in interface AppendEventsRequestOrBuilder
      • getEventOrBuilderList

        public List<? extends TaggedEventOrBuilder> getEventOrBuilderList()
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
        Specified by:
        getEventOrBuilderList in interface AppendEventsRequestOrBuilder
      • addEventBuilder

        public TaggedEvent.Builder addEventBuilder()
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • addEventBuilder

        public TaggedEvent.Builder addEventBuilder​(int index)
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;
      • getEventBuilderList

        public List<TaggedEvent.Builder> getEventBuilderList()
         A list of tagged events to be appended to the event store if the condition is met.
         These events are considered as a transaction - they are either all appended or none of them are appended.
         The event store will index the events based on provided tags for future faster retrieval. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.TaggedEvent event = 2;