Class ConsistencyCondition.Builder

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

    public static final class ConsistencyCondition.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ConsistencyCondition.Builder>
    implements ConsistencyConditionOrBuilder
     The condition for an AppendEventsRequest. Consists of the consistency marker and the criteria
     (a list of criterions). 
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition
    • 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<ConsistencyCondition.Builder>
      • clear

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

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

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

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

        public ConsistencyCondition.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<ConsistencyCondition.Builder>
        Throws:
        IOException
      • getConsistencyMarker

        public long getConsistencyMarker()
         The sequence used to start checking for the consistency of an append. If there are events with a sequence greater
         or equal than the consistency marker and those are matching the given criteria, the condition is not met and the transaction
         is rejected. Otherwise, it is accepted. 
         
        int64 consistency_marker = 1;
        Specified by:
        getConsistencyMarker in interface ConsistencyConditionOrBuilder
        Returns:
        The consistencyMarker.
      • setConsistencyMarker

        public ConsistencyCondition.Builder setConsistencyMarker​(long value)
         The sequence used to start checking for the consistency of an append. If there are events with a sequence greater
         or equal than the consistency marker and those are matching the given criteria, the condition is not met and the transaction
         is rejected. Otherwise, it is accepted. 
         
        int64 consistency_marker = 1;
        Parameters:
        value - The consistencyMarker to set.
        Returns:
        This builder for chaining.
      • clearConsistencyMarker

        public ConsistencyCondition.Builder clearConsistencyMarker()
         The sequence used to start checking for the consistency of an append. If there are events with a sequence greater
         or equal than the consistency marker and those are matching the given criteria, the condition is not met and the transaction
         is rejected. Otherwise, it is accepted. 
         
        int64 consistency_marker = 1;
        Returns:
        This builder for chaining.
      • getCriterionList

        public List<Criterion> getCriterionList()
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterionList in interface ConsistencyConditionOrBuilder
      • getCriterionCount

        public int getCriterionCount()
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterionCount in interface ConsistencyConditionOrBuilder
      • getCriterion

        public Criterion getCriterion​(int index)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterion in interface ConsistencyConditionOrBuilder
      • setCriterion

        public ConsistencyCondition.Builder setCriterion​(int index,
                                                         Criterion value)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • setCriterion

        public ConsistencyCondition.Builder setCriterion​(int index,
                                                         Criterion.Builder builderForValue)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public ConsistencyCondition.Builder addCriterion​(Criterion value)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public ConsistencyCondition.Builder addCriterion​(int index,
                                                         Criterion value)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public ConsistencyCondition.Builder addCriterion​(Criterion.Builder builderForValue)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterion

        public ConsistencyCondition.Builder addCriterion​(int index,
                                                         Criterion.Builder builderForValue)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addAllCriterion

        public ConsistencyCondition.Builder addAllCriterion​(Iterable<? extends Criterion> values)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • clearCriterion

        public ConsistencyCondition.Builder clearCriterion()
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • removeCriterion

        public ConsistencyCondition.Builder removeCriterion​(int index)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • getCriterionBuilder

        public Criterion.Builder getCriterionBuilder​(int index)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • getCriterionOrBuilder

        public CriterionOrBuilder getCriterionOrBuilder​(int index)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
        Specified by:
        getCriterionOrBuilder in interface ConsistencyConditionOrBuilder
      • addCriterionBuilder

        public Criterion.Builder addCriterionBuilder()
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • addCriterionBuilder

        public Criterion.Builder addCriterionBuilder​(int index)
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;
      • getCriterionBuilderList

        public List<Criterion.Builder> getCriterionBuilderList()
         The criteria. Consists of a list of criterions. If a single criterion is met, the whole criteria is met. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Criterion criterion = 2;