# ValveConfigurationAndControlTrait.OpenCommand.Request

# ValveConfigurationAndControlTrait.OpenCommand.Request


```
class ValveConfigurationAndControlTrait.OpenCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the Open command.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.Request.CommandFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this command's request fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.Request#Request(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( openDuration: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>, targetLevel: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html> )` Creates a request payload for the Open command. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.Request#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.Request#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.Request#openDuration()` How long the valve should remain open for the current `Open` operation. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.OpenCommand.Request#targetLevel()` The target level used for the current `Open` operation. |

## Public constructors

### Request

```
Request(
    openDuration: OptionalValue<UInt?> = OptionalValue.absent(),
    targetLevel: OptionalValue<UByte> = OptionalValue.absent()
)
```

Creates a request payload for the Open command.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### openDuration

```
val openDuration: OptionalValue<UInt?>
```

How long the valve should remain open for the current `Open` operation.

### targetLevel

```
val targetLevel: OptionalValue<UByte>
```

The target level used for the current `Open` operation.