# ChannelTrait.RecordProgramCommand.Request


```
class ChannelTrait.RecordProgramCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the RecordProgram 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/ChannelTrait.RecordProgramCommand.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/ChannelTrait.RecordProgramCommand.Request#Request(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)( programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, externalIdList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.AdditionalInfoStruct>, data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html )` Creates a request payload for the RecordProgram 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/ChannelTrait.RecordProgramCommand.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/ChannelTrait.RecordProgramCommand.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/-byte-array/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.RecordProgramCommand.Request#data()` Optional app-specific data. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.AdditionalInfoStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.RecordProgramCommand.Request#externalIdList()` The list of additional external content identifiers. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.RecordProgramCommand.Request#programIdentifier()` The program identifier for the program that should be recorded. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.RecordProgramCommand.Request#shouldRecordSeries()` Whether the whole series associated to the program should be recorded. |

## Public constructors

### Request

```
Request(
    programIdentifier: String = "",
    shouldRecordSeries: Boolean = false,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct> = emptyList(),
    data: ByteArray = ByteArray(0)
)
```

Creates a request payload for the RecordProgram 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

### data

```
val data: ByteArray
```

Optional app-specific data.

### externalIdList

```
val externalIdList: List<ChannelTrait.AdditionalInfoStruct>
```

The list of additional external content identifiers.

### programIdentifier

```
val programIdentifier: String
```

The program identifier for the program that should be recorded.

### shouldRecordSeries

```
val shouldRecordSeries: Boolean
```

Whether the whole series associated to the program should be recorded.