# UnitTestingTrait.SimpleStruct

# UnitTestingTrait.SimpleStruct


```
class UnitTestingTrait.SimpleStruct : ClusterStruct
```

<br />

*** ** * ** ***

SimpleStruct

## 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.SimpleStruct.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.SimpleStruct#SimpleStruct(kotlin.UByte,kotlin.Boolean,com.google.home.matter.standard.UnitTestingTrait.SimpleEnum,kotlin.ByteArray,kotlin.String,com.google.home.matter.standard.UnitTestingTrait.SimpleBitmap,kotlin.Float,kotlin.Double,com.google.home.matter.serialization.OptionalValue)( 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.SimpleEnum, d: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html, e: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, f: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleBitmap, g: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html, h: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html, i: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestGlobalEnum> )` Creates the SimpleStruct 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.SimpleStruct#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.SimpleStruct#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.SimpleStruct#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.SimpleStruct#b()` `b` attribute. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct#c()` `c` attribute. |
| `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.SimpleStruct#d()` `d` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct#e()` `e` attribute. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleBitmap` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct#f()` `f` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct#g()` `g` attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct#h()` `h` attribute. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestGlobalEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct#i()` |

## Public constructors

### SimpleStruct

```
SimpleStruct(
    a: UByte,
    b: Boolean = false,
    c: UnitTestingTrait.SimpleEnum = SimpleEnum.Unspecified,
    d: ByteArray = ByteArray(0),
    e: String = "",
    f: UnitTestingTrait.SimpleBitmap = SimpleBitmap(),
    g: Float = 0.0f,
    h: Double = 0.0,
    i: OptionalValue<UnitTestingTrait.TestGlobalEnum> = OptionalValue.absent()
)
```

Creates the SimpleStruct 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.SimpleEnum
```

`c` attribute.

### d

```
val d: ByteArray
```

`d` attribute.

### e

```
val e: String
```

`e` attribute.

### f

```
val f: UnitTestingTrait.SimpleBitmap
```

`f` attribute.

### g

```
val g: Float
```

`g` attribute.

### h

```
val h: Double
```

`h` attribute.

### i

```
val i: OptionalValue<UnitTestingTrait.TestGlobalEnum>
```