# InvalidEvent

# InvalidEvent


```
class InvalidEvent : 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.InvalidEvent](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEvent) |

*** ** * ** ***

The event ID is not found in the event schema. The optional `expectedBehaviorType` indicates it belongs to other schemas.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEvent#InvalidEvent(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, eventId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, expectedBehaviorType: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html )` Create an `InvalidEvent` 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/InvalidEvent#eventId()` The unique ID of the event. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEvent#expectedBehaviorType()` Description of the expected behavior. |

| ### 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

### InvalidEvent

```
InvalidEvent(
    node: Node,
    severity: ValidationIssueSeverity,
    eventId: String,
    expectedBehaviorType: String
)
```

Create an `InvalidEvent` instance.

## Public properties

### eventId

```
val eventId: String
```

The unique ID of the event.

### expectedBehaviorType

```
val expectedBehaviorType: String
```

Description of the expected behavior.