# UnitTestingTrait.TestNullableOptionalRequestCommand.Response

# UnitTestingTrait.TestNullableOptionalRequestCommand.Response


```
class UnitTestingTrait.TestNullableOptionalRequestCommand.Response : 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.TestNullableOptionalRequestCommand.Response.CommandFields : 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 command's response fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestNullableOptionalRequestCommand.Response#Response(kotlin.Boolean,kotlin.Boolean,kotlin.UByte,kotlin.UByte)( wasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, wasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?, originalValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html? )` |

| ### 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.TestNullableOptionalRequestCommand.Response#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.TestNullableOptionalRequestCommand.Response#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.TestNullableOptionalRequestCommand.Response#originalValue()` |
| `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.TestNullableOptionalRequestCommand.Response#value()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestNullableOptionalRequestCommand.Response#wasNull()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestNullableOptionalRequestCommand.Response#wasPresent()` |

## Public constructors

### Response

```
Response(
    wasPresent: Boolean = false,
    wasNull: Boolean? = null,
    value: UByte? = null,
    originalValue: UByte? = null
)
```

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

### originalValue

```
val originalValue: UByte?
```

### value

```
val value: UByte?
```

### wasNull

```
val wasNull: Boolean?
```

### wasPresent

```
val wasPresent: Boolean
```