[[["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\u003eThe \u003ccode\u003eCloudEvent\u003c/code\u003e class in the Eventarc Publishing v1 API represents a standardized format for event data, ensuring vendor-neutrality and interoperability.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudEvent\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in data handling and serialization.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties such as \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eSource\u003c/code\u003e, \u003ccode\u003eSpecVersion\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, all of which are crucial for event identification, context, and specification adherence.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudEvent\u003c/code\u003e class handles various data types via properties like \u003ccode\u003eBinaryData\u003c/code\u003e, \u003ccode\u003eTextData\u003c/code\u003e, and \u003ccode\u003eProtoData\u003c/code\u003e, along with the \u003ccode\u003eDataCase\u003c/code\u003e to manage their usage.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the \u003ccode\u003eCloudEvent\u003c/code\u003e are available, including \u003ccode\u003e2.0.0-beta07\u003c/code\u003e (latest), \u003ccode\u003e2.0.0-beta06\u003c/code\u003e, and \u003ccode\u003e1.0.0-beta02\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Eventarc Publishing v1 API - Class CloudEvent (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/2.0.0-beta06/Google.Cloud.Eventarc.Publishing.V1.CloudEvent)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/1.0.0-beta02/Google.Cloud.Eventarc.Publishing.V1.CloudEvent) \n\n public sealed class CloudEvent : IMessage\u003cCloudEvent\u003e, IEquatable\u003cCloudEvent\u003e, IDeepCloneable\u003cCloudEvent\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Eventarc Publishing v1 API class CloudEvent.\n\nCloudEvent represents a vendor-neutral specification for defining the format\nof event data. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudEvent \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CloudEvent](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CloudEvent](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CloudEvent](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent), [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.Eventarc.Publishing.V1](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Eventarc.Publishing.V1.dll\n\nConstructors\n------------\n\n### CloudEvent()\n\n public CloudEvent()\n\n### CloudEvent(CloudEvent)\n\n public CloudEvent(CloudEvent other)\n\nProperties\n----------\n\n### Attributes\n\n public MapField\u003cstring, CloudEvent.Types.CloudEventAttributeValue\u003e Attributes { get; }\n\nOptional. Used for Optional \\& Extension Attributes\n\n### BinaryData\n\n public ByteString BinaryData { get; set; }\n\nOptional. Binary data.\n\n### DataCase\n\n public CloudEvent.DataOneofCase DataCase { get; }\n\n### HasBinaryData\n\n public bool HasBinaryData { get; }\n\nGets whether the \"binary_data\" field is set\n\n### HasTextData\n\n public bool HasTextData { get; }\n\nGets whether the \"text_data\" field is set\n\n### Id\n\n public string Id { get; set; }\n\nRequired. Identifies the event. Producers MUST ensure that source + id is\nunique for each distinct event.\n\n### ProtoData\n\n public Any ProtoData { get; set; }\n\nOptional. Proto data.\n\n### Source\n\n public string Source { get; set; }\n\nRequired. Identifies the context in which an event happened.\nURI-reference\n\n### SpecVersion\n\n public string SpecVersion { get; set; }\n\nRequired. The version of the CloudEvents specification which the event\nuses.\n\n### TextData\n\n public string TextData { get; set; }\n\nOptional. Text data.\n\n### Type\n\n public string Type { get; set; }\n\nRequired. This attribute contains a value describing the type of event\nrelated to the originating occurrence."]]