# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::Span::TimeEvents (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::TimeEvents.

A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
on the span, consisting of either user-supplied key:value pairs, or
details of a message sent/received between Spans.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dropped_annotations_count

    def dropped_annotations_count() -> ::Integer

**Returns**

- (::Integer) --- The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.

### #dropped_annotations_count=

    def dropped_annotations_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.
**Returns**

- (::Integer) --- The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.

### #dropped_message_events_count

    def dropped_message_events_count() -> ::Integer

**Returns**

- (::Integer) --- The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.

### #dropped_message_events_count=

    def dropped_message_events_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.
**Returns**

- (::Integer) --- The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.

### #time_event

    def time_event() -> ::Array<::Google::Cloud::Trace::V2::Span::TimeEvent>

**Returns**

- (::Array\<[::Google::Cloud::Trace::V2::Span::TimeEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-TimeEvent)\>) --- A collection of `TimeEvent`s.

### #time_event=

    def time_event=(value) -> ::Array<::Google::Cloud::Trace::V2::Span::TimeEvent>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Trace::V2::Span::TimeEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-TimeEvent)\>) --- A collection of `TimeEvent`s.
**Returns**

- (::Array\<[::Google::Cloud::Trace::V2::Span::TimeEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-TimeEvent)\>) --- A collection of `TimeEvent`s.