Class SourceEventsResponse.Builder

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

    public static final class SourceEventsResponse.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<SourceEventsResponse.Builder>
    implements SourceEventsResponseOrBuilder
     The response to the SourceEventsRequest. It consists either of an event (with its corresponding sequence) or a
     consistency marker. The consistency marker should be used in a following AppendEventsRequest related to the criteria used in the SourceEventsRequest this response originates from. 
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.SourceEventsResponse
    • 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<SourceEventsResponse.Builder>
      • clear

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

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

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

        public SourceEventsResponse 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<SourceEventsResponse.Builder>
      • mergeFrom

        public SourceEventsResponse.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<SourceEventsResponse.Builder>
        Throws:
        IOException
      • hasEvent

        public boolean hasEvent()
         The event matching the criteria with its corresponding sequence. 
         
        .io.axoniq.axonserver.grpc.event.dcb.SequencedEvent event = 1;
        Specified by:
        hasEvent in interface SourceEventsResponseOrBuilder
        Returns:
        Whether the event field is set.
      • getEvent

        public SequencedEvent getEvent()
         The event matching the criteria with its corresponding sequence. 
         
        .io.axoniq.axonserver.grpc.event.dcb.SequencedEvent event = 1;
        Specified by:
        getEvent in interface SourceEventsResponseOrBuilder
        Returns:
        The event.
      • setEvent

        public SourceEventsResponse.Builder setEvent​(SequencedEvent value)
         The event matching the criteria with its corresponding sequence. 
         
        .io.axoniq.axonserver.grpc.event.dcb.SequencedEvent event = 1;
      • mergeEvent

        public SourceEventsResponse.Builder mergeEvent​(SequencedEvent value)
         The event matching the criteria with its corresponding sequence. 
         
        .io.axoniq.axonserver.grpc.event.dcb.SequencedEvent event = 1;
      • clearEvent

        public SourceEventsResponse.Builder clearEvent()
         The event matching the criteria with its corresponding sequence. 
         
        .io.axoniq.axonserver.grpc.event.dcb.SequencedEvent event = 1;
      • getEventBuilder

        public SequencedEvent.Builder getEventBuilder()
         The event matching the criteria with its corresponding sequence. 
         
        .io.axoniq.axonserver.grpc.event.dcb.SequencedEvent event = 1;
      • hasConsistencyMarker

        public boolean hasConsistencyMarker()
         The consistency marker to be used for the following append related to the same criteria. 
         
        int64 consistency_marker = 2;
        Specified by:
        hasConsistencyMarker in interface SourceEventsResponseOrBuilder
        Returns:
        Whether the consistencyMarker field is set.
      • getConsistencyMarker

        public long getConsistencyMarker()
         The consistency marker to be used for the following append related to the same criteria. 
         
        int64 consistency_marker = 2;
        Specified by:
        getConsistencyMarker in interface SourceEventsResponseOrBuilder
        Returns:
        The consistencyMarker.
      • setConsistencyMarker

        public SourceEventsResponse.Builder setConsistencyMarker​(long value)
         The consistency marker to be used for the following append related to the same criteria. 
         
        int64 consistency_marker = 2;
        Parameters:
        value - The consistencyMarker to set.
        Returns:
        This builder for chaining.
      • clearConsistencyMarker

        public SourceEventsResponse.Builder clearConsistencyMarker()
         The consistency marker to be used for the following append related to the same criteria. 
         
        int64 consistency_marker = 2;
        Returns:
        This builder for chaining.