# ClosureDimensionTrait.SetTargetCommand.Request

# ClosureDimensionTrait.SetTargetCommand.Request


```
class ClosureDimensionTrait.SetTargetCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the SetTarget 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/ClosureDimensionTrait.SetTargetCommand.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/ClosureDimensionTrait.SetTargetCommand.Request#Request(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( position: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>, latch: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>, speed: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ThreeLevelAutoEnum> )` Creates a request payload for the SetTarget 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/ClosureDimensionTrait.SetTargetCommand.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/ClosureDimensionTrait.SetTargetCommand.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/-boolean/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.SetTargetCommand.Request#latch()` The desired latching state of the closure, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.OverallCurrentStateStruct` `Latch` field. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.SetTargetCommand.Request#position()` The target position in hundredths of a percent of the closure. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ThreeLevelAutoEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.SetTargetCommand.Request#speed()` The desired speed of the closure, as defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ThreeLevelAutoEnum` enum. |

## Public constructors

### Request

```
Request(
    position: OptionalValue<UShort> = OptionalValue.absent(),
    latch: OptionalValue<Boolean> = OptionalValue.absent(),
    speed: OptionalValue<ClosureDimensionTrait.ThreeLevelAutoEnum> = OptionalValue.absent()
)
```

Creates a request payload for the SetTarget 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

### latch

```
val latch: OptionalValue<Boolean>
```

The desired latching state of the closure, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.OverallCurrentStateStruct` `Latch` field.

### position

```
val position: OptionalValue<UShort>
```

The target position in hundredths of a percent of the closure.

### speed

```
val speed: OptionalValue<ClosureDimensionTrait.ThreeLevelAutoEnum>
```

The desired speed of the closure, as defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ThreeLevelAutoEnum` enum.