# AttributeDetails

# AttributeDetails


```
class AttributeDetails : FieldDetails
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.home.automation.FieldDetails](https://developers.home.google.com/reference/kotlin/com/google/home/automation/FieldDetails) ||
|   | ↳ | [com.google.home.automation.AttributeDetails](https://developers.home.google.com/reference/kotlin/com/google/home/automation/AttributeDetails) |

*** ** * ** ***

Metadata pertaining to a trait attribute.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AttributeDetails#AttributeDetails(kotlin.String,kotlin.Boolean,com.google.home.automation.Constraint,kotlin.Boolean,kotlin.Boolean,com.google.home.Field)( name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, isOptional: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, constraint: https://developers.home.google.com/reference/kotlin/com/google/home/automation/Constraint?, isModifiable: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, isSubscribable: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, field: https://developers.home.google.com/reference/kotlin/com/google/home/Field )` Create an `AttributeDetails` instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AttributeDetails#isModifiable()` Whether the attribute is modifiable. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AttributeDetails#isSubscribable()` Whether the attribute can be subscribed to. |

| ### Inherited properties |
|---|
| From [com.google.home.automation.FieldDetails](https://developers.home.google.com/reference/kotlin/com/google/home/automation/FieldDetails) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Constraint?` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/FieldDetails#constraint()` | | `https://developers.home.google.com/reference/kotlin/com/google/home/Field` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/FieldDetails#field()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/FieldDetails#isOptional()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/FieldDetails#name()` **This property is deprecated.** Use field.toString() instead | |

## Public constructors

### AttributeDetails

```
AttributeDetails(
    name: String,
    isOptional: Boolean,
    constraint: Constraint?,
    isModifiable: Boolean = false,
    isSubscribable: Boolean = false,
    field: Field
)
```

Create an `AttributeDetails` instance.

## Public properties

### isModifiable

```
val isModifiable: Boolean
```

Whether the attribute is modifiable.

### isSubscribable

```
val isSubscribable: Boolean
```

Whether the attribute can be subscribed to.