类 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
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, EventOrBuilder
封闭类:
Event

public static final class Event.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder
Protobuf type skywalking.v3.Event
  • 方法详细资料

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      覆盖:
      internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      覆盖:
      internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clear

      public Event.Builder clear()
      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • getDefaultInstanceForType

      public Event getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
    • build

      public Event build()
      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Event buildPartial()
      指定者:
      buildPartial 在接口中 com.google.protobuf.Message.Builder
      指定者:
      buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
    • clone

      public Event.Builder clone()
      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • setField

      public Event.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      setField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clearField

      public Event.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      指定者:
      clearField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clearOneof

      public Event.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      指定者:
      clearOneof 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • setRepeatedField

      public Event.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      指定者:
      setRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • addRepeatedField

      public Event.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      addRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(Event other)
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Event.Builder>
      抛出:
      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;
      指定者:
      getUuid 在接口中 EventOrBuilder
      返回:
      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;
      指定者:
      getUuidBytes 在接口中 EventOrBuilder
      返回:
      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;
      参数:
      value - The uuid to set.
      返回:
      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;
      返回:
      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;
      参数:
      value - The bytes for uuid to set.
      返回:
      This builder for chaining.
    • hasSource

      public boolean hasSource()
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
      指定者:
      hasSource 在接口中 EventOrBuilder
      返回:
      Whether the source field is set.
    • getSource

      public Source getSource()
       The source object that the event occurs on.
       
      .skywalking.v3.Source source = 2;
      指定者:
      getSource 在接口中 EventOrBuilder
      返回:
      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;
      指定者:
      getSourceOrBuilder 在接口中 EventOrBuilder
    • getName

      public String getName()
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      指定者:
      getName 在接口中 EventOrBuilder
      返回:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      指定者:
      getNameBytes 在接口中 EventOrBuilder
      返回:
      The bytes for name.
    • setName

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

      public Event.Builder clearName()
       The name of the event. For example, `Reboot`, `Upgrade` etc.
       
      string name = 3;
      返回:
      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;
      参数:
      value - The bytes for name to set.
      返回:
      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;
      指定者:
      getTypeValue 在接口中 EventOrBuilder
      返回:
      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;
      参数:
      value - The enum numeric value on the wire for type to set.
      返回:
      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;
      指定者:
      getType 在接口中 EventOrBuilder
      返回:
      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;
      参数:
      value - The type to set.
      返回:
      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;
      返回:
      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;
      指定者:
      getMessage 在接口中 EventOrBuilder
      返回:
      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;
      指定者:
      getMessageBytes 在接口中 EventOrBuilder
      返回:
      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;
      参数:
      value - The message to set.
      返回:
      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;
      返回:
      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;
      参数:
      value - The bytes for message to set.
      返回:
      This builder for chaining.
    • getParametersCount

      public int getParametersCount()
      从接口复制的说明: EventOrBuilder
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      指定者:
      getParametersCount 在接口中 EventOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      指定者:
      containsParameters 在接口中 EventOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      已过时。
      Use getParametersMap() instead.
      指定者:
      getParameters 在接口中 EventOrBuilder
    • getParametersMap

      public Map<String,String> getParametersMap()
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      指定者:
      getParametersMap 在接口中 EventOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      指定者:
      getParametersOrDefault 在接口中 EventOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       The parameters in the `message` field.
       
      map<string, string> parameters = 6;
      指定者:
      getParametersOrThrow 在接口中 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()
      已过时。
      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;
      指定者:
      getStartTime 在接口中 EventOrBuilder
      返回:
      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;
      参数:
      value - The startTime to set.
      返回:
      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;
      返回:
      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;
      指定者:
      getEndTime 在接口中 EventOrBuilder
      返回:
      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;
      参数:
      value - The endTime to set.
      返回:
      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;
      返回:
      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;
      指定者:
      getLayer 在接口中 EventOrBuilder
      返回:
      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;
      指定者:
      getLayerBytes 在接口中 EventOrBuilder
      返回:
      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;
      参数:
      value - The layer to set.
      返回:
      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;
      返回:
      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;
      参数:
      value - The bytes for layer to set.
      返回:
      This builder for chaining.
    • setUnknownFields

      public final Event.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      setUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • mergeUnknownFields

      public final Event.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>