Class Umadb.Event.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Umadb.Event.Builder>
com.google.protobuf.GeneratedMessage.Builder<Umadb.Event.Builder>
umadb.v1.Umadb.Event.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Umadb.EventOrBuilder
Enclosing class:
Umadb.Event

public static final class Umadb.Event.Builder extends com.google.protobuf.GeneratedMessage.Builder<Umadb.Event.Builder> implements Umadb.EventOrBuilder
Represents a discrete state change, fact, or action within the system.
Protobuf type umadb.v1.Event
  • 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.Event.Builder>
    • clear

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

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

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

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

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

      public Umadb.Event.Builder mergeFrom(Umadb.Event other)
    • isInitialized

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

      public Umadb.Event.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.Event.Builder>
      Throws:
      IOException
    • getEventType

      public String getEventType()
      The domain type or schema identifier of the event (e.g., 'UserCreated').
      
      string event_type = 1;
      Specified by:
      getEventType in interface Umadb.EventOrBuilder
      Returns:
      The eventType.
    • getEventTypeBytes

      public com.google.protobuf.ByteString getEventTypeBytes()
      The domain type or schema identifier of the event (e.g., 'UserCreated').
      
      string event_type = 1;
      Specified by:
      getEventTypeBytes in interface Umadb.EventOrBuilder
      Returns:
      The bytes for eventType.
    • setEventType

      public Umadb.Event.Builder setEventType(String value)
      The domain type or schema identifier of the event (e.g., 'UserCreated').
      
      string event_type = 1;
      Parameters:
      value - The eventType to set.
      Returns:
      This builder for chaining.
    • clearEventType

      public Umadb.Event.Builder clearEventType()
      The domain type or schema identifier of the event (e.g., 'UserCreated').
      
      string event_type = 1;
      Returns:
      This builder for chaining.
    • setEventTypeBytes

      public Umadb.Event.Builder setEventTypeBytes(com.google.protobuf.ByteString value)
      The domain type or schema identifier of the event (e.g., 'UserCreated').
      
      string event_type = 1;
      Parameters:
      value - The bytes for eventType to set.
      Returns:
      This builder for chaining.
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Specified by:
      getTagsList in interface Umadb.EventOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Specified by:
      getTagsCount in interface Umadb.EventOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Specified by:
      getTags in interface Umadb.EventOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Specified by:
      getTagsBytes in interface Umadb.EventOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public Umadb.Event.Builder setTags(int index, String value)
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public Umadb.Event.Builder addTags(String value)
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public Umadb.Event.Builder addAllTags(Iterable<String> values)
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public Umadb.Event.Builder clearTags()
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public Umadb.Event.Builder addTagsBytes(com.google.protobuf.ByteString value)
      Indexed labels used for filtering and categorizing events.
      
      repeated string tags = 2;
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • getData

      public com.google.protobuf.ByteString getData()
      The serialized payload of the event (e.g., JSON, Protobuf).
      
      bytes data = 3;
      Specified by:
      getData in interface Umadb.EventOrBuilder
      Returns:
      The data.
    • setData

      public Umadb.Event.Builder setData(com.google.protobuf.ByteString value)
      The serialized payload of the event (e.g., JSON, Protobuf).
      
      bytes data = 3;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public Umadb.Event.Builder clearData()
      The serialized payload of the event (e.g., JSON, Protobuf).
      
      bytes data = 3;
      Returns:
      This builder for chaining.
    • getUuid

      public String getUuid()
      A universally unique identifier for the event, useful for idempotency and deduplication.
      
      string uuid = 4;
      Specified by:
      getUuid in interface Umadb.EventOrBuilder
      Returns:
      The uuid.
    • getUuidBytes

      public com.google.protobuf.ByteString getUuidBytes()
      A universally unique identifier for the event, useful for idempotency and deduplication.
      
      string uuid = 4;
      Specified by:
      getUuidBytes in interface Umadb.EventOrBuilder
      Returns:
      The bytes for uuid.
    • setUuid

      public Umadb.Event.Builder setUuid(String value)
      A universally unique identifier for the event, useful for idempotency and deduplication.
      
      string uuid = 4;
      Parameters:
      value - The uuid to set.
      Returns:
      This builder for chaining.
    • clearUuid

      public Umadb.Event.Builder clearUuid()
      A universally unique identifier for the event, useful for idempotency and deduplication.
      
      string uuid = 4;
      Returns:
      This builder for chaining.
    • setUuidBytes

      public Umadb.Event.Builder setUuidBytes(com.google.protobuf.ByteString value)
      A universally unique identifier for the event, useful for idempotency and deduplication.
      
      string uuid = 4;
      Parameters:
      value - The bytes for uuid to set.
      Returns:
      This builder for chaining.
    • getMetadataList

      public List<Umadb.MetadataEntry> getMetadataList()
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
      Specified by:
      getMetadataList in interface Umadb.EventOrBuilder
    • getMetadataCount

      public int getMetadataCount()
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
      Specified by:
      getMetadataCount in interface Umadb.EventOrBuilder
    • getMetadata

      public Umadb.MetadataEntry getMetadata(int index)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
      Specified by:
      getMetadata in interface Umadb.EventOrBuilder
    • setMetadata

      public Umadb.Event.Builder setMetadata(int index, Umadb.MetadataEntry value)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • setMetadata

      public Umadb.Event.Builder setMetadata(int index, Umadb.MetadataEntry.Builder builderForValue)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • addMetadata

      public Umadb.Event.Builder addMetadata(Umadb.MetadataEntry value)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • addMetadata

      public Umadb.Event.Builder addMetadata(int index, Umadb.MetadataEntry value)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • addMetadata

      public Umadb.Event.Builder addMetadata(Umadb.MetadataEntry.Builder builderForValue)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • addMetadata

      public Umadb.Event.Builder addMetadata(int index, Umadb.MetadataEntry.Builder builderForValue)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • addAllMetadata

      public Umadb.Event.Builder addAllMetadata(Iterable<? extends Umadb.MetadataEntry> values)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • clearMetadata

      public Umadb.Event.Builder clearMetadata()
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • removeMetadata

      public Umadb.Event.Builder removeMetadata(int index)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • getMetadataBuilder

      public Umadb.MetadataEntry.Builder getMetadataBuilder(int index)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • getMetadataOrBuilder

      public Umadb.MetadataEntryOrBuilder getMetadataOrBuilder(int index)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
      Specified by:
      getMetadataOrBuilder in interface Umadb.EventOrBuilder
    • getMetadataOrBuilderList

      public List<? extends Umadb.MetadataEntryOrBuilder> getMetadataOrBuilderList()
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
      Specified by:
      getMetadataOrBuilderList in interface Umadb.EventOrBuilder
    • addMetadataBuilder

      public Umadb.MetadataEntry.Builder addMetadataBuilder()
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • addMetadataBuilder

      public Umadb.MetadataEntry.Builder addMetadataBuilder(int index)
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;
    • getMetadataBuilderList

      public List<Umadb.MetadataEntry.Builder> getMetadataBuilderList()
      Additional context or headers (e.g., correlation IDs, user agents) not part of the core payload.
      
      repeated .umadb.v1.MetadataEntry metadata = 5;