# TargetNavigatorTrait.NavigateTargetCommand.Request

# TargetNavigatorTrait.NavigateTargetCommand.Request


```
class TargetNavigatorTrait.NavigateTargetCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the NavigateTarget 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/TargetNavigatorTrait.NavigateTargetCommand.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/TargetNavigatorTrait.NavigateTargetCommand.Request#Request(kotlin.UByte,com.google.home.matter.serialization.OptionalValue)(target: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, data: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>)` Creates a request payload for the NavigateTarget 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/TargetNavigatorTrait.NavigateTargetCommand.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/TargetNavigatorTrait.NavigateTargetCommand.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/-string/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.NavigateTargetCommand.Request#data()` App-specific data. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.NavigateTargetCommand.Request#target()` The identifier for the navigation target. |

## Public constructors

### Request

```
Request(target: UByte, data: OptionalValue<String> = OptionalValue.absent())
```

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

### data

```
val data: OptionalValue<String>
```

App-specific data.

### target

```
val target: UByte
```

The identifier for the navigation target.