Class Event
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.apache.skywalking.apm.network.event.v3.Event
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,EventOrBuilder
Protobuf type
skywalking.v3.Event- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeskywalking.v3.EventNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParameters(String key) The parameters in the `message` field.booleanstatic Eventstatic final com.google.protobuf.Descriptors.DescriptorlongThe end time (in milliseconds) of the event.getLayer()[Required] Since 9.0.0 Name of the layer to which the event belongs.com.google.protobuf.ByteString[Required] Since 9.0.0 Name of the layer to which the event belongs.The detail of the event that describes why this event happened.com.google.protobuf.ByteStringThe detail of the event that describes why this event happened.getName()The name of the event.com.google.protobuf.ByteStringThe name of the event.Deprecated.intThe parameters in the `message` field.The parameters in the `message` field.getParametersOrDefault(String key, String defaultValue) The parameters in the `message` field.The parameters in the `message` field.com.google.protobuf.Parser<Event>intThe source object that the event occurs on.The source object that the event occurs on.longThe start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC.getType()The type of the event.intThe type of the event.final com.google.protobuf.UnknownFieldSetgetUuid()Unique ID of the event.com.google.protobuf.ByteStringUnique ID of the event.inthashCode()booleanThe source object that the event occurs on.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleanstatic Event.Builderstatic Event.BuildernewBuilder(Event prototype) protected Event.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static EventparseDelimitedFrom(InputStream input) static EventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventparseFrom(byte[] data) static EventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventparseFrom(com.google.protobuf.ByteString data) static EventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventparseFrom(com.google.protobuf.CodedInputStream input) static EventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventparseFrom(InputStream input) static EventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventparseFrom(ByteBuffer data) static EventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Event>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
UUID_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER- See Also:
-
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER- See Also:
-
STARTTIME_FIELD_NUMBER
public static final int STARTTIME_FIELD_NUMBER- See Also:
-
ENDTIME_FIELD_NUMBER
public static final int ENDTIME_FIELD_NUMBER- See Also:
-
LAYER_FIELD_NUMBER
public static final int LAYER_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
getUuidin interfaceEventOrBuilder- 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:
getUuidBytesin interfaceEventOrBuilder- Returns:
- The bytes for uuid.
-
hasSource
public boolean hasSource()The source object that the event occurs on.
.skywalking.v3.Source source = 2;- Specified by:
hasSourcein interfaceEventOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The source object that the event occurs on.
.skywalking.v3.Source source = 2;- Specified by:
getSourcein interfaceEventOrBuilder- Returns:
- The source.
-
getSourceOrBuilder
The source object that the event occurs on.
.skywalking.v3.Source source = 2;- Specified by:
getSourceOrBuilderin interfaceEventOrBuilder
-
getName
The name of the event. For example, `Reboot`, `Upgrade` etc.
string name = 3;- Specified by:
getNamein interfaceEventOrBuilder- 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:
getNameBytesin interfaceEventOrBuilder- Returns:
- The bytes for name.
-
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:
getTypeValuein interfaceEventOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getTypein interfaceEventOrBuilder- Returns:
- The type.
-
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:
getMessagein interfaceEventOrBuilder- 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:
getMessageBytesin interfaceEventOrBuilder- Returns:
- The bytes for message.
-
getParametersCount
public int getParametersCount()Description copied from interface:EventOrBuilderThe parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersCountin interfaceEventOrBuilder
-
containsParameters
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
containsParametersin interfaceEventOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceEventOrBuilder
-
getParametersMap
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersMapin interfaceEventOrBuilder
-
getParametersOrDefault
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersOrDefaultin interfaceEventOrBuilder
-
getParametersOrThrow
The parameters in the `message` field.
map<string, string> parameters = 6;- Specified by:
getParametersOrThrowin interfaceEventOrBuilder
-
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:
getStartTimein interfaceEventOrBuilder- Returns:
- The startTime.
-
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:
getEndTimein interfaceEventOrBuilder- Returns:
- The endTime.
-
getLayer
[Required] Since 9.0.0 Name of the layer to which the event belongs.
string layer = 9;- Specified by:
getLayerin interfaceEventOrBuilder- 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:
getLayerBytesin interfaceEventOrBuilder- Returns:
- The bytes for layer.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Event parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Event parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Event parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Event parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Event parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Event.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-