[[["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 webpage provides reference documentation for the \u003ccode\u003eAttributeValue\u003c/code\u003e class within the Google Cloud Trace v2 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAttributeValue\u003c/code\u003e represents the allowed value types in a \u003ccode\u003e[KEY]:[VALUE]\u003c/code\u003e attribute, and is part of the \u003ccode\u003eGoogle.Cloud.Trace.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttributeValue\u003c/code\u003e class supports three properties: \u003ccode\u003eBoolValue\u003c/code\u003e, \u003ccode\u003eIntValue\u003c/code\u003e, and \u003ccode\u003eStringValue\u003c/code\u003e, each representing a different data type that can be stored as an attribute value.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists multiple versions of the API, ranging from the latest 3.6.0 down to 2.2.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v2 API - Class AttributeValue (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.AttributeValue)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.5.0/Google.Cloud.Trace.V2.AttributeValue)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.4.0/Google.Cloud.Trace.V2.AttributeValue)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.3.0/Google.Cloud.Trace.V2.AttributeValue)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.2.0/Google.Cloud.Trace.V2.AttributeValue)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.1.0/Google.Cloud.Trace.V2.AttributeValue)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.0.0/Google.Cloud.Trace.V2.AttributeValue)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.3.0/Google.Cloud.Trace.V2.AttributeValue)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.2.0/Google.Cloud.Trace.V2.AttributeValue) \n\n public sealed class AttributeValue : IMessage\u003cAttributeValue\u003e, IEquatable\u003cAttributeValue\u003e, IDeepCloneable\u003cAttributeValue\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Trace v2 API class AttributeValue.\n\nThe allowed types for `[VALUE]` in a `[KEY]:[VALUE]` attribute. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AttributeValue \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AttributeValue](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.AttributeValue), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AttributeValue](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.AttributeValue), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AttributeValue](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.AttributeValue), [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### AttributeValue()\n\n public AttributeValue()\n\n### AttributeValue(AttributeValue)\n\n public AttributeValue(AttributeValue other)\n\nProperties\n----------\n\n### BoolValue\n\n public bool BoolValue { get; set; }\n\nA Boolean value represented by `true` or `false`.\n\n### HasBoolValue\n\n public bool HasBoolValue { get; }\n\nGets whether the \"bool_value\" field is set\n\n### HasIntValue\n\n public bool HasIntValue { get; }\n\nGets whether the \"int_value\" field is set\n\n### IntValue\n\n public long IntValue { get; set; }\n\nA 64-bit signed integer.\n\n### StringValue\n\n public TruncatableString StringValue { get; set; }\n\nA string up to 256 bytes long.\n\n### ValueCase\n\n public AttributeValue.ValueOneofCase ValueCase { get; }"]]