# UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response

# UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response


```
class UnitTestingTrait.TestComplexNullableOptionalRequestCommand.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.TestComplexNullableOptionalRequestCommand.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.TestComplexNullableOptionalRequestCommand.Response#Response(kotlin.Boolean,kotlin.UShort,kotlin.Boolean,kotlin.UShort,kotlin.Boolean,kotlin.Boolean,kotlin.UShort,kotlin.Boolean,kotlin.String,kotlin.Boolean,kotlin.String,kotlin.Boolean,kotlin.Boolean,kotlin.String,kotlin.Boolean,com.google.home.matter.standard.UnitTestingTrait.SimpleStruct,kotlin.Boolean,com.google.home.matter.standard.UnitTestingTrait.SimpleStruct,kotlin.Boolean,kotlin.Boolean,com.google.home.matter.standard.UnitTestingTrait.SimpleStruct,kotlin.Boolean,kotlin.collections.List,kotlin.Boolean,kotlin.collections.List,kotlin.Boolean,kotlin.Boolean,kotlin.collections.List)( nullableIntWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableIntValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, optionalIntWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, optionalIntValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, nullableOptionalIntWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableOptionalIntWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?, nullableOptionalIntValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, nullableStringWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableStringValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, optionalStringWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, optionalStringValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, nullableOptionalStringWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableOptionalStringWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?, nullableOptionalStringValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, nullableStructWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableStructValue: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct?, optionalStructWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, optionalStructValue: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct?, nullableOptionalStructWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableOptionalStructWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?, nullableOptionalStructValue: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct?, nullableListWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableListValue: 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.SimpleEnum>?, optionalListWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, optionalListValue: 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.SimpleEnum>?, nullableOptionalListWasPresent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, nullableOptionalListWasNull: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?, nullableOptionalListValue: 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.SimpleEnum>? )` |

| ### 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.TestComplexNullableOptionalRequestCommand.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.TestComplexNullableOptionalRequestCommand.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-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableIntValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableIntWasNull()` |
| `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.SimpleEnum>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableListValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableListWasNull()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalIntValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalIntWasNull()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalIntWasPresent()` |
| `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.SimpleEnum>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalListValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalListWasNull()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalListWasPresent()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalStringValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalStringWasNull()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalStringWasPresent()` |
| `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.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalStructValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalStructWasNull()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableOptionalStructWasPresent()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableStringValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableStringWasNull()` |
| `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.TestComplexNullableOptionalRequestCommand.Response#nullableStructValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#nullableStructWasNull()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#optionalIntValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#optionalIntWasPresent()` |
| `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.SimpleEnum>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#optionalListValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#optionalListWasPresent()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#optionalStringValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#optionalStringWasPresent()` |
| `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.TestComplexNullableOptionalRequestCommand.Response#optionalStructValue()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response#optionalStructWasPresent()` |

## Public constructors

### Response

```
Response(
    nullableIntWasNull: Boolean = false,
    nullableIntValue: UShort? = null,
    optionalIntWasPresent: Boolean = false,
    optionalIntValue: UShort? = null,
    nullableOptionalIntWasPresent: Boolean = false,
    nullableOptionalIntWasNull: Boolean? = null,
    nullableOptionalIntValue: UShort? = null,
    nullableStringWasNull: Boolean = false,
    nullableStringValue: String? = null,
    optionalStringWasPresent: Boolean = false,
    optionalStringValue: String? = null,
    nullableOptionalStringWasPresent: Boolean = false,
    nullableOptionalStringWasNull: Boolean? = null,
    nullableOptionalStringValue: String? = null,
    nullableStructWasNull: Boolean = false,
    nullableStructValue: UnitTestingTrait.SimpleStruct? = null,
    optionalStructWasPresent: Boolean = false,
    optionalStructValue: UnitTestingTrait.SimpleStruct? = null,
    nullableOptionalStructWasPresent: Boolean = false,
    nullableOptionalStructWasNull: Boolean? = null,
    nullableOptionalStructValue: UnitTestingTrait.SimpleStruct? = null,
    nullableListWasNull: Boolean = false,
    nullableListValue: List<UnitTestingTrait.SimpleEnum>? = null,
    optionalListWasPresent: Boolean = false,
    optionalListValue: List<UnitTestingTrait.SimpleEnum>? = null,
    nullableOptionalListWasPresent: Boolean = false,
    nullableOptionalListWasNull: Boolean? = null,
    nullableOptionalListValue: List<UnitTestingTrait.SimpleEnum>? = 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

### nullableIntValue

```
val nullableIntValue: UShort?
```

### nullableIntWasNull

```
val nullableIntWasNull: Boolean
```

### nullableListValue

```
val nullableListValue: List<UnitTestingTrait.SimpleEnum>?
```

### nullableListWasNull

```
val nullableListWasNull: Boolean
```

### nullableOptionalIntValue

```
val nullableOptionalIntValue: UShort?
```

### nullableOptionalIntWasNull

```
val nullableOptionalIntWasNull: Boolean?
```

### nullableOptionalIntWasPresent

```
val nullableOptionalIntWasPresent: Boolean
```

### nullableOptionalListValue

```
val nullableOptionalListValue: List<UnitTestingTrait.SimpleEnum>?
```

### nullableOptionalListWasNull

```
val nullableOptionalListWasNull: Boolean?
```

### nullableOptionalListWasPresent

```
val nullableOptionalListWasPresent: Boolean
```

### nullableOptionalStringValue

```
val nullableOptionalStringValue: String?
```

### nullableOptionalStringWasNull

```
val nullableOptionalStringWasNull: Boolean?
```

### nullableOptionalStringWasPresent

```
val nullableOptionalStringWasPresent: Boolean
```

### nullableOptionalStructValue

```
val nullableOptionalStructValue: UnitTestingTrait.SimpleStruct?
```

### nullableOptionalStructWasNull

```
val nullableOptionalStructWasNull: Boolean?
```

### nullableOptionalStructWasPresent

```
val nullableOptionalStructWasPresent: Boolean
```

### nullableStringValue

```
val nullableStringValue: String?
```

### nullableStringWasNull

```
val nullableStringWasNull: Boolean
```

### nullableStructValue

```
val nullableStructValue: UnitTestingTrait.SimpleStruct?
```

### nullableStructWasNull

```
val nullableStructWasNull: Boolean
```

### optionalIntValue

```
val optionalIntValue: UShort?
```

### optionalIntWasPresent

```
val optionalIntWasPresent: Boolean
```

### optionalListValue

```
val optionalListValue: List<UnitTestingTrait.SimpleEnum>?
```

### optionalListWasPresent

```
val optionalListWasPresent: Boolean
```

### optionalStringValue

```
val optionalStringValue: String?
```

### optionalStringWasPresent

```
val optionalStringWasPresent: Boolean
```

### optionalStructValue

```
val optionalStructValue: UnitTestingTrait.SimpleStruct?
```

### optionalStructWasPresent

```
val optionalStructWasPresent: Boolean
```