public sealed class Distribution.Types.Exemplar : IMessage<Distribution.Types.Exemplar>, IEquatable<Distribution.Types.Exemplar>, IDeepCloneable<Distribution.Types.Exemplar>, IBufferMessage, IMessage
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eDistribution.Types.Exemplar\u003c/code\u003e is a class used to annotate aggregated distribution values with example points, providing metadata like trace IDs, example values, timestamps, and origin.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in data structure management and serialization.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eDistribution.Types.Exemplar\u003c/code\u003e include \u003ccode\u003eAttachments\u003c/code\u003e for contextual information, \u003ccode\u003eTimestamp\u003c/code\u003e for observation time, and \u003ccode\u003eValue\u003c/code\u003e to determine bucket placement.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods such as \u003ccode\u003eClone()\u003c/code\u003e, \u003ccode\u003eEquals()\u003c/code\u003e, \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eMergeFrom()\u003c/code\u003e, and \u003ccode\u003eWriteTo()\u003c/code\u003e for object manipulation, comparison, merging, and serialization, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExemplar\u003c/code\u003e class has a static \u003ccode\u003eDescriptor\u003c/code\u003e property and a static \u003ccode\u003eParser\u003c/code\u003e property to provide information about the class as well as parsing capabilities.\u003c/p\u003e\n"]]],[],null,["# Class Distribution.Types.Exemplar (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.Exemplar)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.Distribution.Types.Exemplar)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.Distribution.Types.Exemplar)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.Distribution.Types.Exemplar) \n\n public sealed class Distribution.Types.Exemplar : IMessage\u003cDistribution.Types.Exemplar\u003e, IEquatable\u003cDistribution.Types.Exemplar\u003e, IDeepCloneable\u003cDistribution.Types.Exemplar\u003e, IBufferMessage, IMessage\n\nExemplars are example points that may be used to annotate aggregated\ndistribution values. They are metadata that gives information about a\nparticular value added to a Distribution bucket, such as a trace ID that\nwas active when a value was added. They may contain further information,\nsuch as a example values and timestamps, origin, etc. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Distribution.Types.Exemplar \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Distribution](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types)[Exemplar](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.Exemplar), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Distribution](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types)[Exemplar](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.Exemplar), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Distribution](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types)[Exemplar](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.Exemplar), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Api](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### Exemplar()\n\n public Exemplar()\n\n### Exemplar(Exemplar)\n\n public Exemplar(Distribution.Types.Exemplar other)\n\nFields\n------\n\n### AttachmentsFieldNumber\n\n public const int AttachmentsFieldNumber = 3\n\nField number for the \"attachments\" field.\n\n### TimestampFieldNumber\n\n public const int TimestampFieldNumber = 2\n\nField number for the \"timestamp\" field.\n\n### ValueFieldNumber\n\n public const int ValueFieldNumber = 1\n\nField number for the \"value\" field.\n\nProperties\n----------\n\n### Attachments\n\n public RepeatedField\u003cAny\u003e Attachments { get; }\n\nContextual information about the example value. Examples are:\n\nTrace: type.googleapis.com/google.monitoring.v3.SpanContext\n\nLiteral string: type.googleapis.com/google.protobuf.StringValue\n\nLabels dropped during aggregation:\ntype.googleapis.com/google.monitoring.v3.DroppedLabels\n\nThere may be only a single attachment of any given message type in a\nsingle exemplar, and this is enforced by the system.\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Parser\n\n public static MessageParser\u003cDistribution.Types.Exemplar\u003e Parser { get; }\n\n### Timestamp\n\n public Timestamp Timestamp { get; set; }\n\nThe observation (sampling) time of the above value.\n\n### Value\n\n public double Value { get; set; }\n\nValue of the exemplar point. This value determines to which bucket the\nexemplar belongs.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public Distribution.Types.Exemplar Clone()\n\n### Equals(Exemplar)\n\n public bool Equals(Distribution.Types.Exemplar other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(Exemplar)\n\n public void MergeFrom(Distribution.Types.Exemplar other)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]