Class Event.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
org.apache.skywalking.apm.network.event.v3.Event.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, EventOrBuilder
Enclosing class:
Event

public static final class Event.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder
Protobuf type skywalking.v3.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
    • getUuid

      public String getUuid()
       Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the
       start time with the end time of the same event.
       
      string uuid = 1;
      Specified by:
      getUuid in interface EventOrBuilder
      Returns:
      The uuid.
    • getUuidBytes

      public com.google.protobuf.ByteString getUuidBytes()
       Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the
       start time with the end time of the same event.
       
      string uuid = 1;
      Specified by:
      getUuidBytes in interface EventOrBuilder
      Returns:
      The bytes for uuid.
    • setUuid

      public Event.Builder setUuid(String value)
       Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the
       start time with the end time of the same event.
       
      string uuid = 1;
      Parameters:
      value - The uuid to set.
      Returns:
      This builder for chaining.
    • clearUuid

      public Event.Builder clearUuid()
       Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the
       start time with the end time of the same event.
       
      string uuid = 1;
      Returns:
      This builder for chaining.
    • setUuidBytes

      public Event.Builder setUuidBytes(com.google.protobuf.ByteString value)
       Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the
       start time with the end time of the same event.
       
      string uuid = 1;
      Parameters:
      value - The bytes for uuid to set.
      Returns:
      This builder for chaining.
    • hasSource

      public boolean hasSource()
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
      Specified by:
      hasSource in interface EventOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public Source getSource()
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
      Specified by:
      getSource in interface EventOrBuilder
      Returns:
      The source.
    • setSource

      public Event.Builder setSource(Source value)
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
    • setSource

      public Event.Builder setSource(Source.Builder builderForValue)
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
    • mergeSource

      public Event.Builder mergeSource(Source value)
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
    • clearSource

      public Event.Builder clearSource()
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
    • getSourceBuilder

      public Source.Builder getSourceBuilder()
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
    • getSourceOrBuilder

      public SourceOrBuilder getSourceOrBuilder()
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
      Specified by:
      getSourceOrBuilder in interface EventOrBuilder
    • getName

      public String getName()
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      Specified by:
      getName in interface EventOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      Specified by:
      getNameBytes in interface EventOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Event.Builder setName(String value)
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Event.Builder clearName()
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Event.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations,
       while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
       
      .skywalking.v3.Type type = 4;
      Specified by:
      getTypeValue in interface EventOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Event.Builder setTypeValue(int value)
       The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations,
       while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
       
      .skywalking.v3.Type type = 4;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Type getType()
       The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations,
       while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
       
      .skywalking.v3.Type type = 4;
      Specified by:
      getType in interface EventOrBuilder
      Returns:
      The type.
    • setType

      public Event.Builder setType(Type value)
       The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations,
       while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
       
      .skywalking.v3.Type type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Event.Builder clearType()
       The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations,
       while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified.
       
      .skywalking.v3.Type type = 4;
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
       The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported.
       Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`.
       It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.
       
      string message = 5;
      Specified by:
      getMessage in interface EventOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported.
       Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`.
       It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.
       
      string message = 5;
      Specified by:
      getMessageBytes in interface EventOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public Event.Builder setMessage(String value)
       The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported.
       Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`.
       It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.
       
      string message = 5;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public Event.Builder clearMessage()
       The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported.
       Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`.
       It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.
       
      string message = 5;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public Event.Builder setMessageBytes(com.google.protobuf.ByteString value)
       The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported.
       Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`.
       It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace.
       
      string message = 5;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getParametersCount

      public int getParametersCount()
      Description copied from interface: EventOrBuilder
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      Specified by:
      getParametersCount in interface EventOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      Specified by:
      containsParameters in interface EventOrBuilder
    • getParameters

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

      public Map<String,String> getParametersMap()
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      Specified by:
      getParametersMap in interface EventOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      Specified by:
      getParametersOrDefault in interface EventOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      Specified by:
      getParametersOrThrow in interface EventOrBuilder
    • clearParameters

      public Event.Builder clearParameters()
    • removeParameters

      public Event.Builder removeParameters(String key)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
    • getMutableParameters

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

      public Event.Builder putParameters(String key, String value)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
    • putAllParameters

      public Event.Builder putAllParameters(Map<String,String> values)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
    • getStartTime

      public long getStartTime()
       The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.
       This field is mandatory when an event occurs.
       
      int64 startTime = 7;
      Specified by:
      getStartTime in interface EventOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Event.Builder setStartTime(long value)
       The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.
       This field is mandatory when an event occurs.
       
      int64 startTime = 7;
      Parameters:
      value - The startTime to set.
      Returns:
      This builder for chaining.
    • clearStartTime

      public Event.Builder clearStartTime()
       The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.
       This field is mandatory when an event occurs.
       
      int64 startTime = 7;
      Returns:
      This builder for chaining.
    • getEndTime

      public long getEndTime()
       The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC.
       This field may be empty if the event has not stopped yet, otherwise it should be a valid timestamp after `startTime`.
       
      int64 endTime = 8;
      Specified by:
      getEndTime in interface EventOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public Event.Builder setEndTime(long value)
       The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC.
       This field may be empty if the event has not stopped yet, otherwise it should be a valid timestamp after `startTime`.
       
      int64 endTime = 8;
      Parameters:
      value - The endTime to set.
      Returns:
      This builder for chaining.
    • clearEndTime

      public Event.Builder clearEndTime()
       The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC.
       This field may be empty if the event has not stopped yet, otherwise it should be a valid timestamp after `startTime`.
       
      int64 endTime = 8;
      Returns:
      This builder for chaining.
    • getLayer

      public String getLayer()
       [Required] Since 9.0.0
       Name of the layer to which the event belongs.
       
      string layer = 9;
      Specified by:
      getLayer in interface EventOrBuilder
      Returns:
      The layer.
    • getLayerBytes

      public com.google.protobuf.ByteString getLayerBytes()
       [Required] Since 9.0.0
       Name of the layer to which the event belongs.
       
      string layer = 9;
      Specified by:
      getLayerBytes in interface EventOrBuilder
      Returns:
      The bytes for layer.
    • setLayer

      public Event.Builder setLayer(String value)
       [Required] Since 9.0.0
       Name of the layer to which the event belongs.
       
      string layer = 9;
      Parameters:
      value - The layer to set.
      Returns:
      This builder for chaining.
    • clearLayer

      public Event.Builder clearLayer()
       [Required] Since 9.0.0
       Name of the layer to which the event belongs.
       
      string layer = 9;
      Returns:
      This builder for chaining.
    • setLayerBytes

      public Event.Builder setLayerBytes(com.google.protobuf.ByteString value)
       [Required] Since 9.0.0
       Name of the layer to which the event belongs.
       
      string layer = 9;
      Parameters:
      value - The bytes for layer to set.
      Returns:
      This builder for chaining.
    • 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>