# UnitTestingTrait.NestedStructList

# UnitTestingTrait.NestedStructList


```
class UnitTestingTrait.NestedStructList : ClusterStruct
```

<br />

*** ** * ** ***

NestedStructList

## 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/UnitTestingTrait.NestedStructList.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/UnitTestingTrait.NestedStructList#NestedStructList(kotlin.UByte,kotlin.Boolean,com.google.home.matter.standard.UnitTestingTrait.SimpleStruct,kotlin.collections.List,kotlin.collections.List,kotlin.collections.List,kotlin.collections.List)( a: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, b: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, c: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct, d: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct>, e: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>, f: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>, g: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html> )` Creates the NestedStructList 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/UnitTestingTrait.NestedStructList#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/UnitTestingTrait.NestedStructList#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/UnitTestingTrait.NestedStructList#a()` `a` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.NestedStructList#b()` `b` attribute. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.NestedStructList#c()` `c` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.NestedStructList#d()` `d` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.NestedStructList#e()` `e` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.NestedStructList#f()` `f` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.NestedStructList#g()` `g` attribute. |

## Public constructors

### NestedStructList

```
NestedStructList(
    a: UByte,
    b: Boolean = false,
    c: UnitTestingTrait.SimpleStruct = SimpleStruct(),
    d: List<UnitTestingTrait.SimpleStruct> = emptyList(),
    e: List<UInt> = emptyList(),
    f: List<ByteArray> = emptyList(),
    g: List<UByte> = emptyList()
)
```

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

### a

```
val a: UByte
```

`a` attribute.

### b

```
val b: Boolean
```

`b` attribute.

### c

```
val c: UnitTestingTrait.SimpleStruct
```

`c` attribute.

### d

```
val d: List<UnitTestingTrait.SimpleStruct>
```

`d` attribute.

### e

```
val e: List<UInt>
```

`e` attribute.

### f

```
val f: List<ByteArray>
```

`f` attribute.

### g

```
val g: List<UByte>
```

`g` attribute.