3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0

    public sealed class Span.Types.TimeEvent.Types.Annotation : IMessage<Span.Types.TimeEvent.Types.Annotation>, IEquatable<Span.Types.TimeEvent.Types.Annotation>, IDeepCloneable<Span.Types.TimeEvent.Types.Annotation>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.TimeEvent.Types.Annotation.

Text annotation with a set of attributes.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Span.Types.TimeEvent.Types.Annotation

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Span](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.md.txt)[TimeEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.md.txt)[Annotation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Span](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.md.txt)[TimeEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.md.txt)[Annotation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Span](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.md.txt)[TimeEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.md.txt)[Annotation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation.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.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Trace.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.md.txt)

## Assembly

Google.Cloud.Trace.V2.dll

## Constructors

### Annotation()

    public Annotation()

### Annotation(Annotation)

    public Annotation(Span.Types.TimeEvent.Types.Annotation other)

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

## Properties

### Attributes

    public Span.Types.Attributes Attributes { get; set; }

A set of attributes on the annotation. You can have up to 4 attributes
per Annotation.

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

### Description

    public TruncatableString Description { get; set; }

A user-supplied message describing the event. The maximum length for
the description is 256 bytes.

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