Package io.opentelemetry.proto.trace.v1
Class Span.Event
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Span.Event,Span.Event.Builder>
io.opentelemetry.proto.trace.v1.Span.Event
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Span.EventOrBuilder
- Enclosing class:
- Span
public static final class Span.Event
extends com.google.protobuf.GeneratedMessageLite<Span.Event,Span.Event.Builder>
implements Span.EventOrBuilder
Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.Protobuf type
opentelemetry.proto.trace.v1.Span.Event-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEvent is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm 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 intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getAttributes(int index) A collection of attribute key/value pairs on the event.intA collection of attribute key/value pairs on the event.A collection of attribute key/value pairs on the event.getAttributesOrBuilder(int index) A collection of attribute key/value pairs on the event.List<? extends KeyValueOrBuilder>A collection of attribute key/value pairs on the event.static Span.EventintThe number of dropped attributes.getName()The name of the event.com.google.protobuf.ByteStringThe name of the event.longThe time the event occurred.static Span.Event.Builderstatic Span.Event.BuildernewBuilder(Span.Event prototype) static Span.EventparseDelimitedFrom(InputStream input) static Span.EventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Span.EventparseFrom(byte[] data) static Span.EventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Span.EventparseFrom(com.google.protobuf.ByteString data) static Span.EventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Span.EventparseFrom(com.google.protobuf.CodedInputStream input) static Span.EventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Span.EventparseFrom(InputStream input) static Span.EventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Span.EventparseFrom(ByteBuffer data) static Span.EventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Span.Event>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
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.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
TIME_UNIX_NANO_FIELD_NUMBER
public static final int TIME_UNIX_NANO_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER- See Also:
-
DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER
public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getTimeUnixNano
public long getTimeUnixNano()The time the event occurred.
fixed64 time_unix_nano = 1 [json_name = "timeUnixNano"];- Specified by:
getTimeUnixNanoin interfaceSpan.EventOrBuilder- Returns:
- The timeUnixNano.
-
getName
The name of the event. This field is semantically required to be set to non-empty string.
string name = 2 [json_name = "name"];- Specified by:
getNamein interfaceSpan.EventOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the event. This field is semantically required to be set to non-empty string.
string name = 2 [json_name = "name"];- Specified by:
getNameBytesin interfaceSpan.EventOrBuilder- Returns:
- The bytes for name.
-
getAttributesList
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"];- Specified by:
getAttributesListin interfaceSpan.EventOrBuilder
-
getAttributesOrBuilderList
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getAttributesCount
public int getAttributesCount()A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"];- Specified by:
getAttributesCountin interfaceSpan.EventOrBuilder
-
getAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"];- Specified by:
getAttributesin interfaceSpan.EventOrBuilder
-
getAttributesOrBuilder
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getDroppedAttributesCount
public int getDroppedAttributesCount()The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4 [json_name = "droppedAttributesCount"];- Specified by:
getDroppedAttributesCountin interfaceSpan.EventOrBuilder- Returns:
- The droppedAttributesCount.
-
parseFrom
public static Span.Event parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span.Event parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span.Event parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span.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 Span.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span.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 Span.Event parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Span.Event parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Span.Event parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Span.Event,Span.Event.Builder>
-
getDefaultInstance
-
parser
-