# UnsubscribableAttribute

# UnsubscribableAttribute


```
class UnsubscribableAttribute : ValidationIssue
```

<br />

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

*** ** * ** ***

The attribute is not subscribable thus cannot be used in a starter.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsubscribableAttribute#UnsubscribableAttribute(com.google.home.automation.Node,com.google.home.automation.ValidationIssueSeverity,kotlin.String,kotlin.String)( node: https://developers.home.google.com/reference/kotlin/com/google/home/automation/Node, severity: https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueSeverity, traitId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, attributeName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html )` Create an `UnsubscribableAttribute` instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsubscribableAttribute#attributeName()` The attribute name. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsubscribableAttribute#traitId()` |

| ### Inherited functions |
|---|
| From [com.google.home.automation.ValidationIssue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue) |---|---| | `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#toString()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.automation.ValidationIssue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueType` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#issueType()` The type of the validation issue. | | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Node` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#node()` The node for which validation is failing. | | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueSeverity` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#severity()` The severity of the validation issue. | |

## Public constructors

### UnsubscribableAttribute

```
UnsubscribableAttribute(
    node: Node,
    severity: ValidationIssueSeverity,
    traitId: String,
    attributeName: String
)
```

Create an `UnsubscribableAttribute` instance.

## Public properties

### attributeName

```
val attributeName: String
```

The attribute name.

### traitId

```
val traitId: String
```