2.17.0 (latest) 2.15.0 2.10.0 2.2.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Distribution.Types.Exemplar

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Distribution](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.md.txt)[Exemplar](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.Exemplar.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Distribution](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.md.txt)[Exemplar](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.Exemplar.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Distribution](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.md.txt)[Exemplar](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Distribution.Types.Exemplar.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)

## Namespace

[Google.Api](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.md.txt)

## Assembly

Google.Api.CommonProtos.dll

## Constructors

### Exemplar()

    public Exemplar()

### Exemplar(Exemplar)

    public Exemplar(Distribution.Types.Exemplar other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DistributionTypesExemplar` |

## Fields

### AttachmentsFieldNumber

    public const int AttachmentsFieldNumber = 3

Field number for the "attachments" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### TimestampFieldNumber

    public const int TimestampFieldNumber = 2

Field number for the "timestamp" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### ValueFieldNumber

    public const int ValueFieldNumber = 1

Field number for the "value" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

## Properties

### Attachments

    public RepeatedField<Any> Attachments { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldAny` |   |

### Descriptor

    public static MessageDescriptor Descriptor { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageDescriptor` |   |

### Parser

    public static MessageParser<Distribution.Types.Exemplar> Parser { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageParserDistributionTypesExemplar` |   |

### Timestamp

    public Timestamp Timestamp { get; set; }

The observation (sampling) time of the above value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Value

    public double Value { get; set; }

Value of the exemplar point. This value determines to which bucket the
exemplar belongs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `double` |   |

## Methods

### CalculateSize()

    public int CalculateSize()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### Clone()

    public Distribution.Types.Exemplar Clone()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DistributionTypesExemplar` |   |

### Equals(Exemplar)

    public bool Equals(Distribution.Types.Exemplar other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DistributionTypesExemplar` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Equals(object)

    public override bool Equals(object other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `object` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

**Overrides** [object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))

### GetHashCode()

    public override int GetHashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

**Overrides** [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

### MergeFrom(Exemplar)

    public void MergeFrom(Distribution.Types.Exemplar other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DistributionTypesExemplar` |

### MergeFrom(CodedInputStream)

    public void MergeFrom(CodedInputStream input)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `CodedInputStream` |

### ToString()

    public override string ToString()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

**Overrides** [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

### WriteTo(CodedOutputStream)

    public void WriteTo(CodedOutputStream output)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `output` | `CodedOutputStream` |