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 Details

    • 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<Umadb.AppendCondition.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<Umadb.AppendCondition.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<Umadb.AppendCondition.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      hasFailIfEventsMatch in interface Umadb.AppendConditionOrBuilder
      Returns:
      Whether the failIfEventsMatch field is set.
    • getFailIfEventsMatch

      public Umadb.Query 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:
      getFailIfEventsMatch in interface Umadb.AppendConditionOrBuilder
      Returns:
      The failIfEventsMatch.
    • setFailIfEventsMatch

      public Umadb.AppendCondition.Builder setFailIfEventsMatch(Umadb.Query value)
      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

      public Umadb.AppendCondition.Builder setFailIfEventsMatch(Umadb.Query.Builder builderForValue)
      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

      public Umadb.AppendCondition.Builder mergeFailIfEventsMatch(Umadb.Query value)
      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

      public Umadb.AppendCondition.Builder 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

      public Umadb.Query.Builder 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

      public Umadb.QueryOrBuilder 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:
      getFailIfEventsMatchOrBuilder in interface Umadb.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:
      hasAfter in interface Umadb.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:
      getAfter in interface Umadb.AppendConditionOrBuilder
      Returns:
      The after.
    • setAfter

      public Umadb.AppendCondition.Builder 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. Used for optimistic concurrency.
      
      optional uint64 after = 2;
      Parameters:
      value - The after to set.
      Returns:
      This builder for chaining.
    • clearAfter

      public Umadb.AppendCondition.Builder 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.