# IdentifyTrait.TriggerEffectCommand.Request

# IdentifyTrait.TriggerEffectCommand.Request


```
class IdentifyTrait.TriggerEffectCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the TriggerEffect 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/IdentifyTrait.TriggerEffectCommand.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/IdentifyTrait.TriggerEffectCommand.Request#Request(com.google.home.matter.standard.IdentifyTrait.EffectIdentifierEnum,com.google.home.matter.standard.IdentifyTrait.EffectVariantEnum)( effectIdentifier: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.EffectIdentifierEnum, effectVariant: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.EffectVariantEnum )` Creates a request payload for the TriggerEffect 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/IdentifyTrait.TriggerEffectCommand.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/IdentifyTrait.TriggerEffectCommand.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/IdentifyTrait.EffectIdentifierEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.TriggerEffectCommand.Request#effectIdentifier()` The identify effect to use. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.EffectVariantEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.TriggerEffectCommand.Request#effectVariant()` Variant of the effect, indicated by the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.TriggerEffectCommand.Request#effectIdentifier()` parameter, that is triggered. |

## Public constructors

### Request

```
Request(
    effectIdentifier: IdentifyTrait.EffectIdentifierEnum = EffectIdentifierEnum.Blink,
    effectVariant: IdentifyTrait.EffectVariantEnum = EffectVariantEnum.Default
)
```

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

### effectIdentifier

```
val effectIdentifier: IdentifyTrait.EffectIdentifierEnum
```

The identify effect to use. Must be a value from `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.EffectIdentifierEnum`.

### effectVariant

```
val effectVariant: IdentifyTrait.EffectVariantEnum
```

Variant of the effect, indicated by the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.TriggerEffectCommand.Request#effectIdentifier()` parameter, that is triggered. This must be one of the values in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/IdentifyTrait.EffectVariantEnum`.