# BindingTrait.TargetStruct

# BindingTrait.TargetStruct


```
class BindingTrait.TargetStruct : ClusterStruct
```

<br />

*** ** * ** ***

A remote node and endpoint.

## 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/BindingTrait.TargetStruct.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/BindingTrait.TargetStruct#TargetStruct(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,kotlin.UByte)( node: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html>, group: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>, endpoint: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>, cluster: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>, fabricIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html )` Creates the TargetStruct 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/BindingTrait.TargetStruct#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/BindingTrait.TargetStruct#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/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BindingTrait.TargetStruct#cluster()` The cluster ID for the client and server on the target endpoint. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BindingTrait.TargetStruct#endpoint()` The remote endpoint to which the local endpoint is bound. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BindingTrait.TargetStruct#fabricIndex()` The identifier for the fabric where the target endpoint is located. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BindingTrait.TargetStruct#group()` The target group ID. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/BindingTrait.TargetStruct#node()` The remote target node ID. |

## Public constructors

### TargetStruct

```
TargetStruct(
    node: OptionalValue<ULong> = OptionalValue.absent(),
    group: OptionalValue<UShort> = OptionalValue.absent(),
    endpoint: OptionalValue<UShort> = OptionalValue.absent(),
    cluster: OptionalValue<UInt> = OptionalValue.absent(),
    fabricIndex: UByte
)
```

Creates the TargetStruct 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

### cluster

```
val cluster: OptionalValue<UInt>
```

The cluster ID for the client and server on the target endpoint.

### endpoint

```
val endpoint: OptionalValue<UShort>
```

The remote endpoint to which the local endpoint is bound.

### fabricIndex

```
val fabricIndex: UByte
```

The identifier for the fabric where the target endpoint is located.

### group

```
val group: OptionalValue<UShort>
```

The target group ID.

### node

```
val node: OptionalValue<ULong>
```

The remote target node ID.