Class SourceEventsRequest.Builder

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

    public static final class SourceEventsRequest.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<SourceEventsRequest.Builder>
    implements SourceEventsRequestOrBuilder
     The request to source events from the event store. It results in a finite stream of events completed by
     the event store. It may also be cancelled by the client. Only events matching the given criteria
     (a provided list of criterions) will be present in the stream. The stream is capped by the HEAD of the event store. 
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.SourceEventsRequest
    • 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<SourceEventsRequest.Builder>
      • clear

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

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

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

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

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

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

        public SourceEventsRequest.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<SourceEventsRequest.Builder>
        Throws:
        IOException
      • getFromSequence

        public long getFromSequence()
         An inclusive sequence of the first event to be included in the resulting stream. 
         
        int64 from_sequence = 1;
        Specified by:
        getFromSequence in interface SourceEventsRequestOrBuilder
        Returns:
        The fromSequence.
      • setFromSequence

        public SourceEventsRequest.Builder setFromSequence​(long value)
         An inclusive sequence of the first event to be included in the resulting stream. 
         
        int64 from_sequence = 1;
        Parameters:
        value - The fromSequence to set.
        Returns:
        This builder for chaining.
      • clearFromSequence

        public SourceEventsRequest.Builder clearFromSequence()
         An inclusive sequence of the first event to be included in the resulting stream. 
         
        int64 from_sequence = 1;
        Returns:
        This builder for chaining.
      • getCriterionList

        public List<Criterion> getCriterionList()
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterionList in interface SourceEventsRequestOrBuilder
      • getCriterionCount

        public int getCriterionCount()
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterionCount in interface SourceEventsRequestOrBuilder
      • getCriterion

        public Criterion getCriterion​(int index)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterion in interface SourceEventsRequestOrBuilder
      • setCriterion

        public SourceEventsRequest.Builder setCriterion​(int index,
                                                        Criterion value)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • setCriterion

        public SourceEventsRequest.Builder setCriterion​(int index,
                                                        Criterion.Builder builderForValue)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public SourceEventsRequest.Builder addCriterion​(Criterion value)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public SourceEventsRequest.Builder addCriterion​(int index,
                                                        Criterion value)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public SourceEventsRequest.Builder addCriterion​(Criterion.Builder builderForValue)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public SourceEventsRequest.Builder addCriterion​(int index,
                                                        Criterion.Builder builderForValue)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addAllCriterion

        public SourceEventsRequest.Builder addAllCriterion​(Iterable<? extends Criterion> values)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • clearCriterion

        public SourceEventsRequest.Builder clearCriterion()
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • removeCriterion

        public SourceEventsRequest.Builder removeCriterion​(int index)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • getCriterionBuilder

        public Criterion.Builder getCriterionBuilder​(int index)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • getCriterionOrBuilder

        public CriterionOrBuilder getCriterionOrBuilder​(int index)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterionOrBuilder in interface SourceEventsRequestOrBuilder
      • addCriterionBuilder

        public Criterion.Builder addCriterionBuilder()
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterionBuilder

        public Criterion.Builder addCriterionBuilder​(int index)
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • getCriterionBuilderList

        public List<Criterion.Builder> getCriterionBuilderList()
         The criteria consisting of the list of criterions. If at least one of these criterions is met,
         the criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;