# ColorControlTrait.ColorLoopSetCommand.Request

# ColorControlTrait.ColorLoopSetCommand.Request


```
class ColorControlTrait.ColorLoopSetCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the ColorLoopSet 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/ColorControlTrait.ColorLoopSetCommand.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/ColorControlTrait.ColorLoopSetCommand.Request#Request(com.google.home.matter.standard.ColorControlTrait.UpdateFlagsBitmap,com.google.home.matter.standard.ColorControlTrait.ColorLoopActionEnum,com.google.home.matter.standard.ColorControlTrait.ColorLoopDirectionEnum,kotlin.UShort,kotlin.UShort,com.google.home.matter.standard.ColorControlTrait.OptionsBitmap,com.google.home.matter.standard.ColorControlTrait.OptionsBitmap)( updateFlags: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.UpdateFlagsBitmap, action: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopActionEnum, direction: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopDirectionEnum, time: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, startHue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, optionsMask: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.OptionsBitmap, optionsOverride: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.OptionsBitmap )` Creates a request payload for the ColorLoopSet 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/ColorControlTrait.ColorLoopSetCommand.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/ColorControlTrait.ColorLoopSetCommand.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/ColorControlTrait.ColorLoopActionEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopSetCommand.Request#action()` The action to take if ColorControlTrait.ColorLoopUpdateFlags.updateAction is set in `updateFlags`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopDirectionEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopSetCommand.Request#direction()` The direction of the color loop if ColorControlTrait.ColorLoopUpdateFlags.updateDirection is set in `updateFlags`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.OptionsBitmap` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopSetCommand.Request#optionsMask()` Determines which bits in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.Attributes#options()` attribute should be overridden by `optionsOverride`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.OptionsBitmap` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopSetCommand.Request#optionsOverride()` If the corresponding bit in `optionsMask` is set to `1`, the bit set here overrides the corresponding bit in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.Attributes#options()` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopSetCommand.Request#startHue()` The starting hue to use if ColorControlTrait.ColorLoopUpdateFlags.updateStartHue is set in `updateFlags`. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopSetCommand.Request#time()` The number of seconds over which to perform the full color loop if ColorControlTrait.ColorLoopUpdateFlags.updateTime is set in `updateFlags`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.UpdateFlagsBitmap` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopSetCommand.Request#updateFlags()` The attributes to update before the color loop starts. |

## Public constructors

### Request

```
Request(
    updateFlags: ColorControlTrait.UpdateFlagsBitmap = UpdateFlagsBitmap(),
    action: ColorControlTrait.ColorLoopActionEnum = ColorLoopActionEnum.Deactivate,
    direction: ColorControlTrait.ColorLoopDirectionEnum = ColorLoopDirectionEnum.Decrement,
    time: UShort,
    startHue: UShort,
    optionsMask: ColorControlTrait.OptionsBitmap = OptionsBitmap(),
    optionsOverride: ColorControlTrait.OptionsBitmap = OptionsBitmap()
)
```

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

### action

```
val action: ColorControlTrait.ColorLoopActionEnum
```

The action to take if ColorControlTrait.ColorLoopUpdateFlags.updateAction is set in `updateFlags`. Must be a value from `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopActionEnum`.

### direction

```
val direction: ColorControlTrait.ColorLoopDirectionEnum
```

The direction of the color loop if ColorControlTrait.ColorLoopUpdateFlags.updateDirection is set in `updateFlags`. Must be a value from `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.ColorLoopDirectionEnum`.

### optionsMask

```
val optionsMask: ColorControlTrait.OptionsBitmap
```

Determines which bits in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.Attributes#options()` attribute should be overridden by `optionsOverride`.

### optionsOverride

```
val optionsOverride: ColorControlTrait.OptionsBitmap
```

If the corresponding bit in `optionsMask` is set to `1`, the bit set here overrides the corresponding bit in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ColorControlTrait.Attributes#options()` attribute.

### startHue

```
val startHue: UShort
```

The starting hue to use if ColorControlTrait.ColorLoopUpdateFlags.updateStartHue is set in `updateFlags`.

### time

```
val time: UShort
```

The number of seconds over which to perform the full color loop if ColorControlTrait.ColorLoopUpdateFlags.updateTime is set in `updateFlags`.

### updateFlags

```
val updateFlags: ColorControlTrait.UpdateFlagsBitmap
```

The attributes to update before the color loop starts. See ColorControlTrait.ColorLoopUpdateFlags for the list of flags to use.