public sealed class Span.Types.TimeEvent : IMessage<Span.Types.TimeEvent>, IEquatable<Span.Types.TimeEvent>, IDeepCloneable<Span.Types.TimeEvent>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.TimeEvent.
A time-stamped annotation or message event in the Span.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eSpan.Types.TimeEvent\u003c/code\u003e class in the Google Cloud Trace v2 API, which represents a time-stamped annotation or message event within a span.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpan.Types.TimeEvent\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers constructors for creating instances, including a default constructor and one that takes another \u003ccode\u003eTimeEvent\u003c/code\u003e object for copying.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for \u003ccode\u003eAnnotation\u003c/code\u003e (text annotation with attributes), \u003ccode\u003eMessageEvent\u003c/code\u003e (message sent/received between spans), \u003ccode\u003eTime\u003c/code\u003e (timestamp of the event), and \u003ccode\u003eValueCase\u003c/code\u003e (specifying the type of event).\u003c/p\u003e\n"],["\u003cp\u003eThere are various versions of this documentation available, ranging from version 2.2.0 up to the latest version 3.6.0, each representing a specific state of the API.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v2 API - Class Span.Types.TimeEvent (3.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.5.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.4.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.3.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.2.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.1.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.0.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.3.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.2.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent) \n\n public sealed class Span.Types.TimeEvent : IMessage\u003cSpan.Types.TimeEvent\u003e, IEquatable\u003cSpan.Types.TimeEvent\u003e, IDeepCloneable\u003cSpan.Types.TimeEvent\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.TimeEvent.\n\nA time-stamped annotation or message event in the Span. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Span.Types.TimeEvent \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Span](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types)[TimeEvent](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Span](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types)[TimeEvent](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Span](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types)[TimeEvent](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Trace.V2](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Trace.V2.dll\n\nConstructors\n------------\n\n### TimeEvent()\n\n public TimeEvent()\n\n### TimeEvent(TimeEvent)\n\n public TimeEvent(Span.Types.TimeEvent other)\n\nProperties\n----------\n\n### Annotation\n\n public Span.Types.TimeEvent.Types.Annotation Annotation { get; set; }\n\nText annotation with a set of attributes.\n\n### MessageEvent\n\n public Span.Types.TimeEvent.Types.MessageEvent MessageEvent { get; set; }\n\nAn event describing a message sent/received between Spans.\n\n### Time\n\n public Timestamp Time { get; set; }\n\nThe timestamp indicating the time the event occurred.\n\n### ValueCase\n\n public Span.Types.TimeEvent.ValueOneofCase ValueCase { get; }"]]