# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::Span::TimeEvent::Annotation (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.1 0.3.5 Reference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::Span::TimeEvent::Annotation.

Text annotation with a set of attributes.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attributes

    def attributes() -> ::Google::Cloud::Trace::V2::Span::Attributes

**Returns**

- ([::Google::Cloud::Trace::V2::Span::Attributes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-Attributes)) --- A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

### #attributes=

    def attributes=(value) -> ::Google::Cloud::Trace::V2::Span::Attributes

**Parameter**

- **value** ([::Google::Cloud::Trace::V2::Span::Attributes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-Attributes)) --- A set of attributes on the annotation. You can have up to 4 attributes per Annotation.
**Returns**

- ([::Google::Cloud::Trace::V2::Span::Attributes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-Attributes)) --- A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

### #description

    def description() -> ::Google::Cloud::Trace::V2::TruncatableString

**Returns**

- ([::Google::Cloud::Trace::V2::TruncatableString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-TruncatableString)) --- A user-supplied message describing the event. The maximum length for the description is 256 bytes.

### #description=

    def description=(value) -> ::Google::Cloud::Trace::V2::TruncatableString

**Parameter**

- **value** ([::Google::Cloud::Trace::V2::TruncatableString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-TruncatableString)) --- A user-supplied message describing the event. The maximum length for the description is 256 bytes.
**Returns**

- ([::Google::Cloud::Trace::V2::TruncatableString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-TruncatableString)) --- A user-supplied message describing the event. The maximum length for the description is 256 bytes.