Class Umadb.AppendCondition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Umadb.AppendCondition.Builder>
com.google.protobuf.GeneratedMessage.Builder<Umadb.AppendCondition.Builder>
umadb.v1.Umadb.AppendCondition.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Umadb.AppendConditionOrBuilder
- Enclosing class:
Umadb.AppendCondition
public static final class Umadb.AppendCondition.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Umadb.AppendCondition.Builder>
implements Umadb.AppendConditionOrBuilder
Concurrency control and conditional checks applied before appending new events.Protobuf type
umadb.v1.AppendCondition-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position.If provided, the append operation will fail if any existing events match this query.longgetAfter()If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf provided, the append operation will fail if any existing events match this query.If provided, the append operation will fail if any existing events match this query.If provided, the append operation will fail if any existing events match this query.booleanhasAfter()If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position.booleanIf provided, the append operation will fail if any existing events match this query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanIf provided, the append operation will fail if any existing events match this query.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Umadb.AppendCondition other) setAfter(long value) If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position.setFailIfEventsMatch(Umadb.Query value) If provided, the append operation will fail if any existing events match this query.setFailIfEventsMatch(Umadb.Query.Builder builderForValue) If provided, the append operation will fail if any existing events match this query.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<Umadb.AppendCondition.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<Umadb.AppendCondition.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<Umadb.AppendCondition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Umadb.AppendCondition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Umadb.AppendCondition.Builder>
-
mergeFrom
public Umadb.AppendCondition.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<Umadb.AppendCondition.Builder>- Throws:
IOException
-
hasFailIfEventsMatch
public boolean hasFailIfEventsMatch()If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1;- Specified by:
hasFailIfEventsMatchin interfaceUmadb.AppendConditionOrBuilder- Returns:
- Whether the failIfEventsMatch field is set.
-
getFailIfEventsMatch
If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1;- Specified by:
getFailIfEventsMatchin interfaceUmadb.AppendConditionOrBuilder- Returns:
- The failIfEventsMatch.
-
setFailIfEventsMatch
If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1; -
setFailIfEventsMatch
If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1; -
mergeFailIfEventsMatch
If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1; -
clearFailIfEventsMatch
If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1; -
getFailIfEventsMatchBuilder
If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1; -
getFailIfEventsMatchOrBuilder
If provided, the append operation will fail if any existing events match this query. Useful for ensuring uniqueness or preventing duplicate state changes.
optional .umadb.v1.Query fail_if_events_match = 1;- Specified by:
getFailIfEventsMatchOrBuilderin interfaceUmadb.AppendConditionOrBuilder
-
hasAfter
public boolean hasAfter()If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position. Used for optimistic concurrency.
optional uint64 after = 2;- Specified by:
hasAfterin interfaceUmadb.AppendConditionOrBuilder- Returns:
- Whether the after field is set.
-
getAfter
public long getAfter()If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position. Used for optimistic concurrency.
optional uint64 after = 2;- Specified by:
getAfterin interfaceUmadb.AppendConditionOrBuilder- Returns:
- The after.
-
setAfter
If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position. Used for optimistic concurrency.
optional uint64 after = 2;- Parameters:
value- The after to set.- Returns:
- This builder for chaining.
-
clearAfter
If provided, the append operation is only valid if the current head of the stream exactly matches (or is greater than) this position. Used for optimistic concurrency.
optional uint64 after = 2;- Returns:
- This builder for chaining.
-