# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::AttributeValue (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.1 0.3.5 Reference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::AttributeValue.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #bool_value

    def bool_value() -> ::Boolean

**Returns**

- (::Boolean) --- A Boolean value represented by `true` or `false`.


  Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `int_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #bool_value=

    def bool_value=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- A Boolean value represented by `true` or `false`.


  Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `int_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Boolean) --- A Boolean value represented by `true` or `false`.


  Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `int_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #int_value

    def int_value() -> ::Integer

**Returns**

- (::Integer) --- A 64-bit signed integer.

  Note: The following fields are mutually exclusive: `int_value`, `string_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #int_value=

    def int_value=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- A 64-bit signed integer.


  Note: The following fields are mutually exclusive: `int_value`, `string_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Integer) --- A 64-bit signed integer.

  Note: The following fields are mutually exclusive: `int_value`, `string_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #string_value

    def string_value() -> ::Google::Cloud::Trace::V2::TruncatableString

**Returns**

- ([::Google::Cloud::Trace::V2::TruncatableString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-TruncatableString)) --- A string up to 256 bytes long.


  Note: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #string_value=

    def string_value=(value) -> ::Google::Cloud::Trace::V2::TruncatableString

**Parameter**

- **value** ([::Google::Cloud::Trace::V2::TruncatableString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-TruncatableString)) --- A string up to 256 bytes long.


  Note: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Trace::V2::TruncatableString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-TruncatableString)) --- A string up to 256 bytes long.


  Note: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.