public sealed class CloudEvent.Types.CloudEventAttributeValue : IMessage<CloudEvent.Types.CloudEventAttributeValue>, IEquatable<CloudEvent.Types.CloudEventAttributeValue>, IDeepCloneable<CloudEvent.Types.CloudEventAttributeValue>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc Publishing v1 API class CloudEvent.Types.CloudEventAttributeValue.
The following abstract data types are available for use in attributes.
[[["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.Types.CloudEventAttributeValue\u003c/code\u003e class is part of the Eventarc Publishing v1 API and is used for representing attribute values in cloud events.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and 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.\u003c/p\u003e\n"],["\u003cp\u003eIt offers constructors for creating new instances, including a copy constructor.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudEventAttributeValue\u003c/code\u003e class provides properties to manage various data types for attribute values, including boolean (\u003ccode\u003eCeBoolean\u003c/code\u003e), bytes (\u003ccode\u003eCeBytes\u003c/code\u003e), integer (\u003ccode\u003eCeInteger\u003c/code\u003e), string (\u003ccode\u003eCeString\u003c/code\u003e), timestamp (\u003ccode\u003eCeTimestamp\u003c/code\u003e), URI (\u003ccode\u003eCeUri\u003c/code\u003e), and URI-reference (\u003ccode\u003eCeUriRef\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple properties that will return a boolean such as HasCeBoolean, HasCeBytes, and HasCeInteger, that will indicate if the particular field is set.\u003c/p\u003e\n"]]],[],null,["# Eventarc Publishing v1 API - Class CloudEvent.Types.CloudEventAttributeValue (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.Types.CloudEventAttributeValue)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/2.0.0-beta06/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types.CloudEventAttributeValue)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/1.0.0-beta02/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types.CloudEventAttributeValue) \n\n public sealed class CloudEvent.Types.CloudEventAttributeValue : IMessage\u003cCloudEvent.Types.CloudEventAttributeValue\u003e, IEquatable\u003cCloudEvent.Types.CloudEventAttributeValue\u003e, IDeepCloneable\u003cCloudEvent.Types.CloudEventAttributeValue\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Eventarc Publishing v1 API class CloudEvent.Types.CloudEventAttributeValue.\n\nThe following abstract data types are available for use in attributes. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudEvent.Types.CloudEventAttributeValue \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)[Types](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types)[CloudEventAttributeValue](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types.CloudEventAttributeValue), [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)[Types](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types)[CloudEventAttributeValue](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types.CloudEventAttributeValue), [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)[Types](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types)[CloudEventAttributeValue](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.CloudEvent.Types.CloudEventAttributeValue), [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### CloudEventAttributeValue()\n\n public CloudEventAttributeValue()\n\n### CloudEventAttributeValue(CloudEventAttributeValue)\n\n public CloudEventAttributeValue(CloudEvent.Types.CloudEventAttributeValue other)\n\nProperties\n----------\n\n### AttrCase\n\n public CloudEvent.Types.CloudEventAttributeValue.AttrOneofCase AttrCase { get; }\n\n### CeBoolean\n\n public bool CeBoolean { get; set; }\n\nBoolean value.\n\n### CeBytes\n\n public ByteString CeBytes { get; set; }\n\nBytes value.\n\n### CeInteger\n\n public int CeInteger { get; set; }\n\nInteger value.\n\n### CeString\n\n public string CeString { get; set; }\n\nString value.\n\n### CeTimestamp\n\n public Timestamp CeTimestamp { get; set; }\n\nTimestamp value.\n\n### CeUri\n\n public string CeUri { get; set; }\n\nURI value.\n\n### CeUriRef\n\n public string CeUriRef { get; set; }\n\nURI-reference value.\n\n### HasCeBoolean\n\n public bool HasCeBoolean { get; }\n\nGets whether the \"ce_boolean\" field is set\n\n### HasCeBytes\n\n public bool HasCeBytes { get; }\n\nGets whether the \"ce_bytes\" field is set\n\n### HasCeInteger\n\n public bool HasCeInteger { get; }\n\nGets whether the \"ce_integer\" field is set\n\n### HasCeString\n\n public bool HasCeString { get; }\n\nGets whether the \"ce_string\" field is set\n\n### HasCeUri\n\n public bool HasCeUri { get; }\n\nGets whether the \"ce_uri\" field is set\n\n### HasCeUriRef\n\n public bool HasCeUriRef { get; }\n\nGets whether the \"ce_uri_ref\" field is set"]]