# UnitTestingTrait.TestGlobalStruct

# UnitTestingTrait.TestGlobalStruct


```
class UnitTestingTrait.TestGlobalStruct : ClusterStruct
```

<br />

*** ** * ** ***

## 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.TestGlobalStruct.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.TestGlobalStruct#TestGlobalStruct(kotlin.String,com.google.home.matter.standard.UnitTestingTrait.TestGlobalBitmap,com.google.home.matter.serialization.OptionalValue)( name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, myBitmap: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestGlobalBitmap?, myEnum: 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?> )` |

| ### 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.TestGlobalStruct#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.TestGlobalStruct#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/standard/UnitTestingTrait.TestGlobalBitmap?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestGlobalStruct#myBitmap()` |
| `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.TestGlobalStruct#myEnum()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestGlobalStruct#name()` |

## Public constructors

### TestGlobalStruct

```
TestGlobalStruct(
    name: String = "",
    myBitmap: UnitTestingTrait.TestGlobalBitmap? = null,
    myEnum: OptionalValue<UnitTestingTrait.TestGlobalEnum?> = OptionalValue.absent()
)
```

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

### myBitmap

```
val myBitmap: UnitTestingTrait.TestGlobalBitmap?
```

### myEnum

```
val myEnum: OptionalValue<UnitTestingTrait.TestGlobalEnum?>
```

### name

```
val name: String
```