public static final class Event.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder
skywalking.v3.Event| Modifier and Type | Method and Description |
|---|---|
Event.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Event |
build() |
Event |
buildPartial() |
Event.Builder |
clear() |
Event.Builder |
clearEndTime()
The end time (in milliseconds) of the event.
|
Event.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Event.Builder |
clearLayer()
[Required] Since 9.0.0
Name of the layer to which the event belongs.
|
Event.Builder |
clearMessage()
The detail of the event that describes why this event happened.
|
Event.Builder |
clearName()
The name of the event.
|
Event.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Event.Builder |
clearParameters() |
Event.Builder |
clearSource()
The source object that the event occurs on.
|
Event.Builder |
clearStartTime()
The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.
|
Event.Builder |
clearType()
The type of the event.
|
Event.Builder |
clearUuid()
Unique ID of the event.
|
Event.Builder |
clone() |
boolean |
containsParameters(String key)
The parameters in the `message` field.
|
Event |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getEndTime()
The end time (in milliseconds) of the event.
|
String |
getLayer()
[Required] Since 9.0.0
Name of the layer to which the event belongs.
|
com.google.protobuf.ByteString |
getLayerBytes()
[Required] Since 9.0.0
Name of the layer to which the event belongs.
|
String |
getMessage()
The detail of the event that describes why this event happened.
|
com.google.protobuf.ByteString |
getMessageBytes()
The detail of the event that describes why this event happened.
|
Map<String,String> |
getMutableParameters()
Deprecated.
|
String |
getName()
The name of the event.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the event.
|
Map<String,String> |
getParameters()
Deprecated.
|
int |
getParametersCount()
The parameters in the `message` field.
|
Map<String,String> |
getParametersMap()
The parameters in the `message` field.
|
String |
getParametersOrDefault(String key,
String defaultValue)
The parameters in the `message` field.
|
String |
getParametersOrThrow(String key)
The parameters in the `message` field.
|
Source |
getSource()
The source object that the event occurs on.
|
Source.Builder |
getSourceBuilder()
The source object that the event occurs on.
|
SourceOrBuilder |
getSourceOrBuilder()
The source object that the event occurs on.
|
long |
getStartTime()
The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.
|
Type |
getType()
The type of the event.
|
int |
getTypeValue()
The type of the event.
|
String |
getUuid()
Unique ID of the event.
|
com.google.protobuf.ByteString |
getUuidBytes()
Unique ID of the event.
|
boolean |
hasSource()
The source object that the event occurs on.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Event.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Event.Builder |
mergeFrom(Event other) |
Event.Builder |
mergeFrom(com.google.protobuf.Message other) |
Event.Builder |
mergeSource(Source value)
The source object that the event occurs on.
|
Event.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Event.Builder |
putAllParameters(Map<String,String> values)
The parameters in the `message` field.
|
Event.Builder |
putParameters(String key,
String value)
The parameters in the `message` field.
|
Event.Builder |
removeParameters(String key)
The parameters in the `message` field.
|
Event.Builder |
setEndTime(long value)
The end time (in milliseconds) of the event.
|
Event.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Event.Builder |
setLayer(String value)
[Required] Since 9.0.0
Name of the layer to which the event belongs.
|
Event.Builder |
setLayerBytes(com.google.protobuf.ByteString value)
[Required] Since 9.0.0
Name of the layer to which the event belongs.
|
Event.Builder |
setMessage(String value)
The detail of the event that describes why this event happened.
|
Event.Builder |
setMessageBytes(com.google.protobuf.ByteString value)
The detail of the event that describes why this event happened.
|
Event.Builder |
setName(String value)
The name of the event.
|
Event.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the event.
|
Event.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Event.Builder |
setSource(Source.Builder builderForValue)
The source object that the event occurs on.
|
Event.Builder |
setSource(Source value)
The source object that the event occurs on.
|
Event.Builder |
setStartTime(long value)
The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.
|
Event.Builder |
setType(Type value)
The type of the event.
|
Event.Builder |
setTypeValue(int value)
The type of the event.
|
Event.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Event.Builder |
setUuid(String value)
Unique ID of the event.
|
Event.Builder |
setUuidBytes(com.google.protobuf.ByteString value)
Unique ID of the event.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Event build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Event buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Event.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>public Event.Builder mergeFrom(Event other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public Event.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>IOExceptionpublic 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 in interface EventOrBuilderpublic 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 in interface EventOrBuilderpublic 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.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;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.public boolean hasSource()
The source object that the event occurs on.
.skywalking.v3.Source source = 2;hasSource in interface EventOrBuilderpublic Source getSource()
The source object that the event occurs on.
.skywalking.v3.Source source = 2;getSource in interface EventOrBuilderpublic Event.Builder setSource(Source value)
The source object that the event occurs on.
.skywalking.v3.Source source = 2;public Event.Builder setSource(Source.Builder builderForValue)
The source object that the event occurs on.
.skywalking.v3.Source source = 2;public Event.Builder mergeSource(Source value)
The source object that the event occurs on.
.skywalking.v3.Source source = 2;public Event.Builder clearSource()
The source object that the event occurs on.
.skywalking.v3.Source source = 2;public Source.Builder getSourceBuilder()
The source object that the event occurs on.
.skywalking.v3.Source source = 2;public SourceOrBuilder getSourceOrBuilder()
The source object that the event occurs on.
.skywalking.v3.Source source = 2;getSourceOrBuilder in interface EventOrBuilderpublic String getName()
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;getName in interface EventOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;getNameBytes in interface EventOrBuilderpublic Event.Builder setName(String value)
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;value - The name to set.public Event.Builder clearName()
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;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.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 in interface EventOrBuilderpublic 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.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 in interface EventOrBuilderpublic 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.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;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 in interface EventOrBuilderpublic 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 in interface EventOrBuilderpublic 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.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;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.public int getParametersCount()
EventOrBuilderThe parameters in the `message` field.
map<string, string> parameters = 6;getParametersCount in interface EventOrBuilderpublic boolean containsParameters(String key)
The parameters in the `message` field.
map<string, string> parameters = 6;containsParameters in interface EventOrBuilder@Deprecated public Map<String,String> getParameters()
getParametersMap() instead.getParameters in interface EventOrBuilderpublic Map<String,String> getParametersMap()
The parameters in the `message` field.
map<string, string> parameters = 6;getParametersMap in interface EventOrBuilderpublic String getParametersOrDefault(String key, String defaultValue)
The parameters in the `message` field.
map<string, string> parameters = 6;getParametersOrDefault in interface EventOrBuilderpublic String getParametersOrThrow(String key)
The parameters in the `message` field.
map<string, string> parameters = 6;getParametersOrThrow in interface EventOrBuilderpublic Event.Builder clearParameters()
public Event.Builder removeParameters(String key)
The parameters in the `message` field.
map<string, string> parameters = 6;@Deprecated public Map<String,String> getMutableParameters()
public Event.Builder putParameters(String key, String value)
The parameters in the `message` field.
map<string, string> parameters = 6;public Event.Builder putAllParameters(Map<String,String> values)
The parameters in the `message` field.
map<string, string> parameters = 6;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 in interface EventOrBuilderpublic 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.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;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 in interface EventOrBuilderpublic 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.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;public String getLayer()
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;getLayer in interface EventOrBuilderpublic com.google.protobuf.ByteString getLayerBytes()
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;getLayerBytes in interface EventOrBuilderpublic 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.public Event.Builder clearLayer()
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;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.public final Event.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>public final Event.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>Copyright © 2022 The Apache Software Foundation. All rights reserved.