3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0

    public sealed class AttributeValue : IMessage<AttributeValue>, IEquatable<AttributeValue>, IDeepCloneable<AttributeValue>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Trace v2 API class AttributeValue.

The allowed types for `[VALUE]` in a `[KEY]:[VALUE]` attribute.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AttributeValue

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[AttributeValue](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.AttributeValue.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AttributeValue](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.AttributeValue.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[AttributeValue](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.AttributeValue.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Trace.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.md.txt)

## Assembly

Google.Cloud.Trace.V2.dll

## Constructors

### AttributeValue()

    public AttributeValue()

### AttributeValue(AttributeValue)

    public AttributeValue(AttributeValue other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AttributeValue` |

## Properties

### BoolValue

    public bool BoolValue { get; set; }

A Boolean value represented by `true` or `false`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasBoolValue

    public bool HasBoolValue { get; }

Gets whether the "bool_value" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasIntValue

    public bool HasIntValue { get; }

Gets whether the "int_value" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### IntValue

    public long IntValue { get; set; }

A 64-bit signed integer.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### StringValue

    public TruncatableString StringValue { get; set; }

A string up to 256 bytes long.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TruncatableString` |   |

### ValueCase

    public AttributeValue.ValueOneofCase ValueCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AttributeValueValueOneofCase` |   |