Note: The following fields are mutually exclusive: annotation, message_event. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: annotation, message_event. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: annotation, message_event. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: message_event, annotation. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: message_event, annotation. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: message_event, annotation. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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-09-09 UTC."],[],[],null,["# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::Span::TimeEvent (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [1.2.1](/ruby/docs/reference/google-cloud-trace-v2/1.2.1/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [1.1.0](/ruby/docs/reference/google-cloud-trace-v2/1.1.0/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [1.0.1](/ruby/docs/reference/google-cloud-trace-v2/1.0.1/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [0.9.0](/ruby/docs/reference/google-cloud-trace-v2/0.9.0/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [0.8.2](/ruby/docs/reference/google-cloud-trace-v2/0.8.2/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [0.7.0](/ruby/docs/reference/google-cloud-trace-v2/0.7.0/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [0.6.1](/ruby/docs/reference/google-cloud-trace-v2/0.6.1/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [0.5.0](/ruby/docs/reference/google-cloud-trace-v2/0.5.0/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [0.4.1](/ruby/docs/reference/google-cloud-trace-v2/0.4.1/Google-Cloud-Trace-V2-Span-TimeEvent)\n- [0.3.5](/ruby/docs/reference/google-cloud-trace-v2/0.3.5/Google-Cloud-Trace-V2-Span-TimeEvent) \nReference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::Span::TimeEvent.\n\nA time-stamped annotation or message event in the Span. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #annotation\n\n def annotation() -\u003e ::Google::Cloud::Trace::V2::Span::TimeEvent::Annotation\n\n**Returns**\n\n- ([::Google::Cloud::Trace::V2::Span::TimeEvent::Annotation](./Google-Cloud-Trace-V2-Span-TimeEvent-Annotation)) --- Text annotation with a set of attributes.\n\n\n Note: The following fields are mutually exclusive: `annotation`, `message_event`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #annotation=\n\n def annotation=(value) -\u003e ::Google::Cloud::Trace::V2::Span::TimeEvent::Annotation\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Trace::V2::Span::TimeEvent::Annotation](./Google-Cloud-Trace-V2-Span-TimeEvent-Annotation)) --- Text annotation with a set of attributes.\n\n\nNote: The following fields are mutually exclusive: `annotation`, `message_event`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Trace::V2::Span::TimeEvent::Annotation](./Google-Cloud-Trace-V2-Span-TimeEvent-Annotation)) --- Text annotation with a set of attributes.\n\n\n Note: The following fields are mutually exclusive: `annotation`, `message_event`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #message_event\n\n def message_event() -\u003e ::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent\n\n**Returns**\n\n- ([::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent](./Google-Cloud-Trace-V2-Span-TimeEvent-MessageEvent)) --- An event describing a message sent/received between Spans.\n\n\n Note: The following fields are mutually exclusive: `message_event`, `annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #message_event=\n\n def message_event=(value) -\u003e ::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent](./Google-Cloud-Trace-V2-Span-TimeEvent-MessageEvent)) --- An event describing a message sent/received between Spans.\n\n\nNote: The following fields are mutually exclusive: `message_event`, `annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent](./Google-Cloud-Trace-V2-Span-TimeEvent-MessageEvent)) --- An event describing a message sent/received between Spans.\n\n\n Note: The following fields are mutually exclusive: `message_event`, `annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #time\n\n def time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The timestamp indicating the time the event occurred.\n\n### #time=\n\n def time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The timestamp indicating the time the event occurred. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The timestamp indicating the time the event occurred."]]