Class Event.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
com.heroiclabs.satori.api.Event.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, EventOrBuilder, Cloneable
Enclosing class:
Event

public static final class Event.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder
 A single event. Usually, but not necessarily, part of a batch.
 
Protobuf type satori.api.Event
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clear

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

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

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

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

      public Event.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • setField

      public Event.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clearField

      public Event.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clearOneof

      public Event.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • setRepeatedField

      public Event.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • addRepeatedField

      public Event.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • mergeFrom

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

      public Event.Builder mergeFrom(Event other)
    • isInitialized

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

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

      public String getName()
       Event name.
       
      string name = 1;
      Specified by:
      getName in interface EventOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Event name.
       
      string name = 1;
      Specified by:
      getNameBytes in interface EventOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Event.Builder setName(String value)
       Event name.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Event.Builder clearName()
       Event name.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Event.Builder setNameBytes(com.google.protobuf.ByteString value)
       Event name.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getId

      public String getId()
       Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.
       If not supplied the server will assign a randomly generated unique event identifier.
       
      string id = 2;
      Specified by:
      getId in interface EventOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.
       If not supplied the server will assign a randomly generated unique event identifier.
       
      string id = 2;
      Specified by:
      getIdBytes in interface EventOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Event.Builder setId(String value)
       Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.
       If not supplied the server will assign a randomly generated unique event identifier.
       
      string id = 2;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Event.Builder clearId()
       Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.
       If not supplied the server will assign a randomly generated unique event identifier.
       
      string id = 2;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Event.Builder setIdBytes(com.google.protobuf.ByteString value)
       Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.
       If not supplied the server will assign a randomly generated unique event identifier.
       
      string id = 2;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: EventOrBuilder
       Event metadata, if any.
       
      map<string, string> metadata = 3;
      Specified by:
      getMetadataCount in interface EventOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Event metadata, if any.
       
      map<string, string> metadata = 3;
      Specified by:
      containsMetadata in interface EventOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface EventOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Event metadata, if any.
       
      map<string, string> metadata = 3;
      Specified by:
      getMetadataMap in interface EventOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Event metadata, if any.
       
      map<string, string> metadata = 3;
      Specified by:
      getMetadataOrDefault in interface EventOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Event metadata, if any.
       
      map<string, string> metadata = 3;
      Specified by:
      getMetadataOrThrow in interface EventOrBuilder
    • clearMetadata

      public Event.Builder clearMetadata()
    • removeMetadata

      public Event.Builder removeMetadata(String key)
       Event metadata, if any.
       
      map<string, string> metadata = 3;
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public Event.Builder putMetadata(String key, String value)
       Event metadata, if any.
       
      map<string, string> metadata = 3;
    • putAllMetadata

      public Event.Builder putAllMetadata(Map<String,String> values)
       Event metadata, if any.
       
      map<string, string> metadata = 3;
    • getValue

      public String getValue()
       Optional value.
       
      string value = 4;
      Specified by:
      getValue in interface EventOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Optional value.
       
      string value = 4;
      Specified by:
      getValueBytes in interface EventOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public Event.Builder setValue(String value)
       Optional value.
       
      string value = 4;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Event.Builder clearValue()
       Optional value.
       
      string value = 4;
      Returns:
      This builder for chaining.
    • setValueBytes

      public Event.Builder setValueBytes(com.google.protobuf.ByteString value)
       Optional value.
       
      string value = 4;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • hasTimestamp

      public boolean hasTimestamp()
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
      Specified by:
      hasTimestamp in interface EventOrBuilder
      Returns:
      Whether the timestamp field is set.
    • getTimestamp

      public Timestamp getTimestamp()
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
      Specified by:
      getTimestamp in interface EventOrBuilder
      Returns:
      The timestamp.
    • setTimestamp

      public Event.Builder setTimestamp(Timestamp value)
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
    • setTimestamp

      public Event.Builder setTimestamp(Timestamp.Builder builderForValue)
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
    • mergeTimestamp

      public Event.Builder mergeTimestamp(Timestamp value)
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
    • clearTimestamp

      public Event.Builder clearTimestamp()
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
    • getTimestampBuilder

      public Timestamp.Builder getTimestampBuilder()
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
    • getTimestampOrBuilder

      public TimestampOrBuilder getTimestampOrBuilder()
       The time when the event was triggered on the producer side.
       
      .google.protobuf.Timestamp timestamp = 5;
      Specified by:
      getTimestampOrBuilder in interface EventOrBuilder
    • setUnknownFields

      public final Event.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • mergeUnknownFields

      public final Event.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>