Class ConsistencyCondition.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<ConsistencyCondition.Builder>
-
- io.axoniq.axonserver.grpc.event.dcb.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 typeio.axoniq.axonserver.grpc.event.dcb.ConsistencyCondition
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ConsistencyCondition.Builder>
-
clear
public ConsistencyCondition.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ConsistencyCondition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ConsistencyCondition.Builder>
-
getDefaultInstanceForType
public ConsistencyCondition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConsistencyCondition build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConsistencyCondition buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ConsistencyCondition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConsistencyCondition.Builder>
-
mergeFrom
public ConsistencyCondition.Builder mergeFrom(ConsistencyCondition other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getConsistencyMarkerin interfaceConsistencyConditionOrBuilder- 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:
getCriterionListin interfaceConsistencyConditionOrBuilder
-
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:
getCriterionCountin interfaceConsistencyConditionOrBuilder
-
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:
getCriterionin interfaceConsistencyConditionOrBuilder
-
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:
getCriterionOrBuilderin interfaceConsistencyConditionOrBuilder
-
getCriterionOrBuilderList
public List<? extends CriterionOrBuilder> getCriterionOrBuilderList()
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:
getCriterionOrBuilderListin interfaceConsistencyConditionOrBuilder
-
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;
-
-