Class Exemplar
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.opentelemetry.proto.metrics.v1.Exemplar
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExemplarOrBuilder,Serializable
public final class Exemplar
extends com.google.protobuf.GeneratedMessage
implements ExemplarOrBuilder
A representation of an exemplar, which is a sample input measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.Protobuf type
opentelemetry.proto.metrics.v1.Exemplar- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA representation of an exemplar, which is a sample input measurement.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested 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 intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubledouble as_double = 3;longgetAsInt()sfixed64 as_int = 6;static Exemplarstatic final com.google.protobuf.Descriptors.DescriptorgetFilteredAttributes(int index) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.intThe set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.getFilteredAttributesOrBuilder(int index) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.List<? extends KeyValueOrBuilder>The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.com.google.protobuf.Parser<Exemplar>intcom.google.protobuf.ByteString(Optional) Span ID of the exemplar trace.longtime_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.com.google.protobuf.ByteString(Optional) Trace ID of the exemplar trace.booleandouble as_double = 3;booleanhasAsInt()sfixed64 as_int = 6;inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Exemplar.Builderstatic Exemplar.BuildernewBuilder(Exemplar prototype) protected Exemplar.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ExemplarparseDelimitedFrom(InputStream input) static ExemplarparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExemplarparseFrom(byte[] data) static ExemplarparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExemplarparseFrom(com.google.protobuf.ByteString data) static ExemplarparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExemplarparseFrom(com.google.protobuf.CodedInputStream input) static ExemplarparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExemplarparseFrom(InputStream input) static ExemplarparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExemplarparseFrom(ByteBuffer data) static ExemplarparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Exemplar>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods 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.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FILTERED_ATTRIBUTES_FIELD_NUMBER
public static final int FILTERED_ATTRIBUTES_FIELD_NUMBER- See Also:
-
TIME_UNIX_NANO_FIELD_NUMBER
public static final int TIME_UNIX_NANO_FIELD_NUMBER- See Also:
-
AS_DOUBLE_FIELD_NUMBER
public static final int AS_DOUBLE_FIELD_NUMBER- See Also:
-
AS_INT_FIELD_NUMBER
public static final int AS_INT_FIELD_NUMBER- See Also:
-
SPAN_ID_FIELD_NUMBER
public static final int SPAN_ID_FIELD_NUMBER- See Also:
-
TRACE_ID_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getValueCase
- Specified by:
getValueCasein interfaceExemplarOrBuilder
-
getFilteredAttributesList
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesListin interfaceExemplarOrBuilder
-
getFilteredAttributesOrBuilderList
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesOrBuilderListin interfaceExemplarOrBuilder
-
getFilteredAttributesCount
public int getFilteredAttributesCount()The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesCountin interfaceExemplarOrBuilder
-
getFilteredAttributes
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesin interfaceExemplarOrBuilder
-
getFilteredAttributesOrBuilder
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesOrBuilderin interfaceExemplarOrBuilder
-
getTimeUnixNano
public long getTimeUnixNano()time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 2;- Specified by:
getTimeUnixNanoin interfaceExemplarOrBuilder- Returns:
- The timeUnixNano.
-
hasAsDouble
public boolean hasAsDouble()double as_double = 3;- Specified by:
hasAsDoublein interfaceExemplarOrBuilder- Returns:
- Whether the asDouble field is set.
-
getAsDouble
public double getAsDouble()double as_double = 3;- Specified by:
getAsDoublein interfaceExemplarOrBuilder- Returns:
- The asDouble.
-
hasAsInt
public boolean hasAsInt()sfixed64 as_int = 6;- Specified by:
hasAsIntin interfaceExemplarOrBuilder- Returns:
- Whether the asInt field is set.
-
getAsInt
public long getAsInt()sfixed64 as_int = 6;- Specified by:
getAsIntin interfaceExemplarOrBuilder- Returns:
- The asInt.
-
getSpanId
public com.google.protobuf.ByteString getSpanId()(Optional) Span ID of the exemplar trace. span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes span_id = 4;- Specified by:
getSpanIdin interfaceExemplarOrBuilder- Returns:
- The spanId.
-
getTraceId
public com.google.protobuf.ByteString getTraceId()(Optional) Trace ID of the exemplar trace. trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes trace_id = 5;- Specified by:
getTraceIdin interfaceExemplarOrBuilder- Returns:
- The traceId.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 Exemplar parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Exemplar parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Exemplar parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Exemplar parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Exemplar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Exemplar parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Exemplar parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Exemplar parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Exemplar 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 Exemplar.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-