# UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request

# UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request


```
class UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the TestComplexNullableOptionalRequest command.

## 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.Request.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 request fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request#Request(kotlin.UShort,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,kotlin.String,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.standard.UnitTestingTrait.SimpleStruct,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,kotlin.collections.List,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( nullableInt: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?, optionalInt: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>, nullableOptionalInt: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?>, nullableString: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, optionalString: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, nullableOptionalString: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?>, nullableStruct: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct?, optionalStruct: 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.SimpleStruct>, nullableOptionalStruct: 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.SimpleStruct?>, nullableList: 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>?, optionalList: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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>>, nullableOptionalList: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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>?> )` Creates a request payload for the TestComplexNullableOptionalRequest command. |

| ### 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.Request#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.Request#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.Request#nullableInt()` Unsigned 16-bit integer argument. |
| `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.Request#nullableList()` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleEnum` list argument. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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.Request#nullableOptionalInt()` Unsigned 16-bit integer argument. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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.Request#nullableOptionalList()` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleEnum` argument. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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.Request#nullableOptionalString()` String argument. |
| `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.SimpleStruct?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request#nullableOptionalStruct()` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` argument. |
| `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.Request#nullableString()` String argument. |
| `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.Request#nullableStruct()` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` argument. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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.Request#optionalInt()` Unsigned 16-bit integer argument. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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.Request#optionalList()` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleEnum` list argument. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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.Request#optionalString()` String argument. |
| `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.SimpleStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Request#optionalStruct()` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` argument. |

## Public constructors

### Request

```
Request(
    nullableInt: UShort? = null,
    optionalInt: OptionalValue<UShort> = OptionalValue.absent(),
    nullableOptionalInt: OptionalValue<UShort?> = OptionalValue.absent(),
    nullableString: String? = null,
    optionalString: OptionalValue<String> = OptionalValue.absent(),
    nullableOptionalString: OptionalValue<String?> = OptionalValue.absent(),
    nullableStruct: UnitTestingTrait.SimpleStruct? = null,
    optionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct> = OptionalValue.absent(),
    nullableOptionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct?> = OptionalValue.absent(),
    nullableList: List<UnitTestingTrait.SimpleEnum>? = null,
    optionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>> = OptionalValue.absent(),
    nullableOptionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>?> = OptionalValue.absent()
)
```

Creates a request payload for the TestComplexNullableOptionalRequest command.

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

### nullableInt

```
val nullableInt: UShort?
```

Unsigned 16-bit integer argument.

### nullableList

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

`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleEnum` list argument.

### nullableOptionalInt

```
val nullableOptionalInt: OptionalValue<UShort?>
```

Unsigned 16-bit integer argument.

### nullableOptionalList

```
val nullableOptionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>?>
```

`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleEnum` argument.

### nullableOptionalString

```
val nullableOptionalString: OptionalValue<String?>
```

String argument.

### nullableOptionalStruct

```
val nullableOptionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct?>
```

`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` argument.

### nullableString

```
val nullableString: String?
```

String argument.

### nullableStruct

```
val nullableStruct: UnitTestingTrait.SimpleStruct?
```

`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` argument.

### optionalInt

```
val optionalInt: OptionalValue<UShort>
```

Unsigned 16-bit integer argument.

### optionalList

```
val optionalList: OptionalValue<List<UnitTestingTrait.SimpleEnum>>
```

`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleEnum` list argument.

### optionalString

```
val optionalString: OptionalValue<String>
```

String argument.

### optionalStruct

```
val optionalStruct: OptionalValue<UnitTestingTrait.SimpleStruct>
```

`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/UnitTestingTrait.SimpleStruct` argument.