# InvalidField

# InvalidField


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

*** ** * ** ***

The FIELD_SELECT expression uses an invalid field.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidField#InvalidField(com.google.home.automation.Node,com.google.home.automation.ValidationIssueSeverity,com.google.home.automation.Expression,kotlin.Int,kotlin.String,kotlin.Int)( 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, expression: https://developers.home.google.com/reference/kotlin/com/google/home/automation/Expression?, id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, operandIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html )` Create an `InvalidField` instance. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Expression?` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidField#expression()` The expression. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidField#id()` The unique ID of the field. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidField#name()` The name of the field. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidField#operandIndex()` The index of the operand in the expression. |

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

### InvalidField

```
InvalidField(
    node: Node,
    severity: ValidationIssueSeverity,
    expression: Expression?,
    id: Int? = null,
    name: String? = null,
    operandIndex: Int
)
```

Create an `InvalidField` instance.

## Public properties

### expression

```
val expression: Expression?
```

The expression.

### id

```
val id: Int?
```

The unique ID of the field.

### name

```
val name: String?
```

The name of the field.

### operandIndex

```
val operandIndex: Int
```

The index of the operand in the expression.