Class IngestedEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
com.buildless.telemetry.IngestedEvent.Builder
All Implemented Interfaces:
IngestedEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IngestedEvent

public static final class IngestedEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder> implements IngestedEventOrBuilder
 ## Telemetry: Event

 Describes the structure of an event which is being processed by the Buildless platform. This structure is used when
 emitting various events back out via webhooks.
 
Protobuf type buildless.telemetry.IngestedEvent
  • Method Details

    • getDescriptor

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

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

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

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

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

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

      public IngestedEvent.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<IngestedEvent.Builder>
    • setField

      public IngestedEvent.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<IngestedEvent.Builder>
    • clearField

      public IngestedEvent.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<IngestedEvent.Builder>
    • clearOneof

      public IngestedEvent.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<IngestedEvent.Builder>
    • setRepeatedField

      public IngestedEvent.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<IngestedEvent.Builder>
    • addRepeatedField

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

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

      public IngestedEvent.Builder mergeFrom(IngestedEvent other)
    • isInitialized

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

      public IngestedEvent.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<IngestedEvent.Builder>
      Throws:
      IOException
    • getCollection

      public String getCollection()
       Specifies the collection to which this event belongs. Named event collections are used for certain types of events
       which are grouped together for reporting purposes.
       
      string collection = 1 [json_name = "collection"];
      Specified by:
      getCollection in interface IngestedEventOrBuilder
      Returns:
      The collection.
    • getCollectionBytes

      public com.google.protobuf.ByteString getCollectionBytes()
       Specifies the collection to which this event belongs. Named event collections are used for certain types of events
       which are grouped together for reporting purposes.
       
      string collection = 1 [json_name = "collection"];
      Specified by:
      getCollectionBytes in interface IngestedEventOrBuilder
      Returns:
      The bytes for collection.
    • setCollection

      public IngestedEvent.Builder setCollection(String value)
       Specifies the collection to which this event belongs. Named event collections are used for certain types of events
       which are grouped together for reporting purposes.
       
      string collection = 1 [json_name = "collection"];
      Parameters:
      value - The collection to set.
      Returns:
      This builder for chaining.
    • clearCollection

      public IngestedEvent.Builder clearCollection()
       Specifies the collection to which this event belongs. Named event collections are used for certain types of events
       which are grouped together for reporting purposes.
       
      string collection = 1 [json_name = "collection"];
      Returns:
      This builder for chaining.
    • setCollectionBytes

      public IngestedEvent.Builder setCollectionBytes(com.google.protobuf.ByteString value)
       Specifies the collection to which this event belongs. Named event collections are used for certain types of events
       which are grouped together for reporting purposes.
       
      string collection = 1 [json_name = "collection"];
      Parameters:
      value - The bytes for collection to set.
      Returns:
      This builder for chaining.
    • getFin

      public boolean getFin()
       Whether this event is a standalone event (`true`), or part of a series (`false`). Only applicable when sending
       streams of events.
       
      bool fin = 2 [json_name = "fin"];
      Specified by:
      getFin in interface IngestedEventOrBuilder
      Returns:
      The fin.
    • setFin

      public IngestedEvent.Builder setFin(boolean value)
       Whether this event is a standalone event (`true`), or part of a series (`false`). Only applicable when sending
       streams of events.
       
      bool fin = 2 [json_name = "fin"];
      Parameters:
      value - The fin to set.
      Returns:
      This builder for chaining.
    • clearFin

      public IngestedEvent.Builder clearFin()
       Whether this event is a standalone event (`true`), or part of a series (`false`). Only applicable when sending
       streams of events.
       
      bool fin = 2 [json_name = "fin"];
      Returns:
      This builder for chaining.
    • getIndex

      public int getIndex()
       Index of this event within the ordinal context of all events sent for a given event stream or session. Only
       applicable in circumstances where events have a natural order.
       
      uint32 index = 3 [json_name = "index"];
      Specified by:
      getIndex in interface IngestedEventOrBuilder
      Returns:
      The index.
    • setIndex

      public IngestedEvent.Builder setIndex(int value)
       Index of this event within the ordinal context of all events sent for a given event stream or session. Only
       applicable in circumstances where events have a natural order.
       
      uint32 index = 3 [json_name = "index"];
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public IngestedEvent.Builder clearIndex()
       Index of this event within the ordinal context of all events sent for a given event stream or session. Only
       applicable in circumstances where events have a natural order.
       
      uint32 index = 3 [json_name = "index"];
      Returns:
      This builder for chaining.
    • getScope

      public String getScope()
       Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This
       value is optional. For example, it may be filled in with a build ID in CI systems.
       
      string scope = 4 [json_name = "scope"];
      Specified by:
      getScope in interface IngestedEventOrBuilder
      Returns:
      The scope.
    • getScopeBytes

      public com.google.protobuf.ByteString getScopeBytes()
       Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This
       value is optional. For example, it may be filled in with a build ID in CI systems.
       
      string scope = 4 [json_name = "scope"];
      Specified by:
      getScopeBytes in interface IngestedEventOrBuilder
      Returns:
      The bytes for scope.
    • setScope

      public IngestedEvent.Builder setScope(String value)
       Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This
       value is optional. For example, it may be filled in with a build ID in CI systems.
       
      string scope = 4 [json_name = "scope"];
      Parameters:
      value - The scope to set.
      Returns:
      This builder for chaining.
    • clearScope

      public IngestedEvent.Builder clearScope()
       Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This
       value is optional. For example, it may be filled in with a build ID in CI systems.
       
      string scope = 4 [json_name = "scope"];
      Returns:
      This builder for chaining.
    • setScopeBytes

      public IngestedEvent.Builder setScopeBytes(com.google.protobuf.ByteString value)
       Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This
       value is optional. For example, it may be filled in with a build ID in CI systems.
       
      string scope = 4 [json_name = "scope"];
      Parameters:
      value - The bytes for scope to set.
      Returns:
      This builder for chaining.
    • getEvent

      public String getEvent()
       Specifies the payload of the event being delivered. This field is required and constitutes the actual content of
       the event which should be validated, enriched, and persisted.
       
      string event = 5 [json_name = "event"];
      Specified by:
      getEvent in interface IngestedEventOrBuilder
      Returns:
      The event.
    • getEventBytes

      public com.google.protobuf.ByteString getEventBytes()
       Specifies the payload of the event being delivered. This field is required and constitutes the actual content of
       the event which should be validated, enriched, and persisted.
       
      string event = 5 [json_name = "event"];
      Specified by:
      getEventBytes in interface IngestedEventOrBuilder
      Returns:
      The bytes for event.
    • setEvent

      public IngestedEvent.Builder setEvent(String value)
       Specifies the payload of the event being delivered. This field is required and constitutes the actual content of
       the event which should be validated, enriched, and persisted.
       
      string event = 5 [json_name = "event"];
      Parameters:
      value - The event to set.
      Returns:
      This builder for chaining.
    • clearEvent

      public IngestedEvent.Builder clearEvent()
       Specifies the payload of the event being delivered. This field is required and constitutes the actual content of
       the event which should be validated, enriched, and persisted.
       
      string event = 5 [json_name = "event"];
      Returns:
      This builder for chaining.
    • setEventBytes

      public IngestedEvent.Builder setEventBytes(com.google.protobuf.ByteString value)
       Specifies the payload of the event being delivered. This field is required and constitutes the actual content of
       the event which should be validated, enriched, and persisted.
       
      string event = 5 [json_name = "event"];
      Parameters:
      value - The bytes for event to set.
      Returns:
      This builder for chaining.
    • getOccurred

      public long getOccurred()
       Specifies the timestamp indicating when this event occurred.
       
      uint64 occurred = 6 [json_name = "occurred"];
      Specified by:
      getOccurred in interface IngestedEventOrBuilder
      Returns:
      The occurred.
    • setOccurred

      public IngestedEvent.Builder setOccurred(long value)
       Specifies the timestamp indicating when this event occurred.
       
      uint64 occurred = 6 [json_name = "occurred"];
      Parameters:
      value - The occurred to set.
      Returns:
      This builder for chaining.
    • clearOccurred

      public IngestedEvent.Builder clearOccurred()
       Specifies the timestamp indicating when this event occurred.
       
      uint64 occurred = 6 [json_name = "occurred"];
      Returns:
      This builder for chaining.
    • getIngested

      public long getIngested()
       Specifies the timestamp indicating when this event was ingested.
       
      uint64 ingested = 7 [json_name = "ingested"];
      Specified by:
      getIngested in interface IngestedEventOrBuilder
      Returns:
      The ingested.
    • setIngested

      public IngestedEvent.Builder setIngested(long value)
       Specifies the timestamp indicating when this event was ingested.
       
      uint64 ingested = 7 [json_name = "ingested"];
      Parameters:
      value - The ingested to set.
      Returns:
      This builder for chaining.
    • clearIngested

      public IngestedEvent.Builder clearIngested()
       Specifies the timestamp indicating when this event was ingested.
       
      uint64 ingested = 7 [json_name = "ingested"];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final IngestedEvent.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<IngestedEvent.Builder>
    • mergeUnknownFields

      public final IngestedEvent.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<IngestedEvent.Builder>