Class Distribution.Exemplar (2.26.0)
2.67.0 (latest)
2.66.0
2.65.1
2.64.1
2.63.2
2.62.0
2.61.3
2.60.0
2.59.2
2.58.0
2.57.0
2.56.0
2.54.1
2.53.0
2.52.0
2.51.0
2.50.1
2.49.0
2.48.0
2.46.0
2.45.1
2.44.0
2.43.0
2.42.0
2.41.0
2.40.0
2.39.1
2.38.0
2.37.1
2.36.0
2.34.0
2.33.0
2.32.0
2.30.0
2.29.0
2.28.0
2.27.0
2.26.0
2.25.1
2.24.0
2.23.1
2.22.1
2.21.1
2.15.0
2.14.3
2.13.0
2.12.0
2.11.0
2.10.0
2.9.6
2.8.4
2.7.4
public static final class Distribution . Exemplar extends GeneratedMessageV3 implements Distribution . ExemplarOrBuilder
Exemplars are example points that may be used to annotate aggregated
distribution values. They are metadata that gives information about a
particular value added to a Distribution bucket, such as a trace ID that
was active when a value was added. They may contain further information,
such as a example values and timestamps, origin, etc.
Protobuf type google.api.Distribution.Exemplar
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
ATTACHMENTS_FIELD_NUMBER
public static final int ATTACHMENTS_FIELD_NUMBER
Field Value
Type
Description
int
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
Field Value
Type
Description
int
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Distribution . Exemplar getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Distribution . Exemplar . Builder newBuilder ()
newBuilder(Distribution.Exemplar prototype)
public static Distribution . Exemplar . Builder newBuilder ( Distribution . Exemplar prototype )
public static Distribution . Exemplar parseDelimitedFrom ( InputStream input )
public static Distribution . Exemplar parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Distribution . Exemplar parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Distribution . Exemplar parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Distribution . Exemplar parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Distribution . Exemplar parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Distribution . Exemplar parseFrom ( CodedInputStream input )
public static Distribution . Exemplar parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Distribution . Exemplar parseFrom ( InputStream input )
public static Distribution . Exemplar parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Distribution . Exemplar parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Distribution . Exemplar parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Distribution . Exemplar > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAttachments(int index)
public Any getAttachments ( int index )
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.com/google.monitoring.v3.DroppedLabels
There may be only a single attachment of any given message type in a
single exemplar, and this is enforced by the system.
repeated .google.protobuf.Any attachments = 3;
Parameter
Name
Description
index
int
Returns
Type
Description
Any
getAttachmentsCount()
public int getAttachmentsCount ()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.com/google.monitoring.v3.DroppedLabels
There may be only a single attachment of any given message type in a
single exemplar, and this is enforced by the system.
repeated .google.protobuf.Any attachments = 3;
Returns
Type
Description
int
getAttachmentsList()
public List<Any> getAttachmentsList ()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.com/google.monitoring.v3.DroppedLabels
There may be only a single attachment of any given message type in a
single exemplar, and this is enforced by the system.
repeated .google.protobuf.Any attachments = 3;
getAttachmentsOrBuilder(int index)
public AnyOrBuilder getAttachmentsOrBuilder ( int index )
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.com/google.monitoring.v3.DroppedLabels
There may be only a single attachment of any given message type in a
single exemplar, and this is enforced by the system.
repeated .google.protobuf.Any attachments = 3;
Parameter
Name
Description
index
int
getAttachmentsOrBuilderList()
public List <? extends AnyOrBuilder > getAttachmentsOrBuilderList ()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.com/google.monitoring.v3.DroppedLabels
There may be only a single attachment of any given message type in a
single exemplar, and this is enforced by the system.
repeated .google.protobuf.Any attachments = 3;
Returns
Type
Description
List <? extends com.google.protobuf.AnyOrBuilder >
getDefaultInstanceForType()
public Distribution . Exemplar getDefaultInstanceForType ()
getParserForType()
public Parser<Distribution . Exemplar > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getTimestamp()
public Timestamp getTimestamp ()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
Returns
Type
Description
Timestamp
The timestamp.
getTimestampOrBuilder()
public TimestampOrBuilder getTimestampOrBuilder ()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
getValue()
Value of the exemplar point. This value determines to which bucket the
exemplar belongs.
double value = 1;
Returns
Type
Description
double
The value.
hasTimestamp()
public boolean hasTimestamp ()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
Returns
Type
Description
boolean
Whether the timestamp field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Distribution . Exemplar . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Distribution . Exemplar . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Distribution . Exemplar . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-30 UTC."],[],[]]