# EventFieldDetails

# EventFieldDetails


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

*** ** * ** ***

A field that belongs to an Event.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/EventFieldDetails#EventFieldDetails(kotlin.String,kotlin.Boolean,com.google.home.automation.Constraint,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?, field: https://developers.home.google.com/reference/kotlin/com/google/home/Field )` Create an `EventFieldDetails` instance. |

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

### EventFieldDetails

```
EventFieldDetails(
    name: String,
    isOptional: Boolean,
    constraint: Constraint?,
    field: Field
)
```

Create an `EventFieldDetails` instance.