# TargetNavigatorTrait.TargetInfoStruct

# TargetNavigatorTrait.TargetInfoStruct


```
class TargetNavigatorTrait.TargetInfoStruct : ClusterStruct
```

<br />

*** ** * ** ***

An object describing the navigable target.

## 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.TargetInfoStruct.StructFields : 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 struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.TargetInfoStruct#TargetInfoStruct(kotlin.UByte,kotlin.String)(identifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Creates the TargetInfoStruct class. |

| ### 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.TargetInfoStruct#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.TargetInfoStruct#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.TargetInfoStruct#identifier()` The unique ID within the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes#targetList()`. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.TargetInfoStruct#name()` The unique name, as a string. |

## Public constructors

### TargetInfoStruct

```
TargetInfoStruct(identifier: UByte, name: String = "")
```

Creates the TargetInfoStruct class.

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

### identifier

```
val identifier: UByte
```

The unique ID within the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes#targetList()`.

### name

```
val name: String
```

The unique name, as a string.