# ClosureDimensionTrait.StepCommand.Request

# ClosureDimensionTrait.StepCommand.Request


```
class ClosureDimensionTrait.StepCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the Step 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.StepCommand.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.StepCommand.Request#Request(com.google.home.matter.standard.ClosureDimensionTrait.StepDirectionEnum,kotlin.UShort,com.google.home.matter.serialization.OptionalValue)( direction: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepDirectionEnum, numberOfSteps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/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 Step 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.StepCommand.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.StepCommand.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/standard/ClosureDimensionTrait.StepDirectionEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepCommand.Request#direction()` Indicates whether the `Position` field of the `TargetState` attribute must be increased toward 100.00% or decreased toward 0.00%. |
| `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.StepCommand.Request#numberOfSteps()` The number of steps by which the position should be changed. |
| `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.StepCommand.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(
    direction: ClosureDimensionTrait.StepDirectionEnum = StepDirectionEnum.Decrease,
    numberOfSteps: UShort,
    speed: OptionalValue<ClosureDimensionTrait.ThreeLevelAutoEnum> = OptionalValue.absent()
)
```

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

### direction

```
val direction: ClosureDimensionTrait.StepDirectionEnum
```

Indicates whether the `Position` field of the `TargetState` attribute must be increased toward 100.00% or decreased toward 0.00%.

### numberOfSteps

```
val numberOfSteps: UShort
```

The number of steps by which the position should be changed. The size of one step, given in hundredths of a percent, is determined by the `stepValue` attribute.

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