# ChannelTrait.GetProgramGuideCommand.Request


```
class ChannelTrait.GetProgramGuideCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the GetProgramGuide 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.GetProgramGuideCommand.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.GetProgramGuideCommand.Request#Request(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( startTime: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>, endTime: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>, channelList: 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/ChannelTrait.ChannelInfoStruct>>, pageToken: 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/ChannelTrait.PageTokenStruct>, recordingFlag: 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/ChannelTrait.RecordingFlagBitmap>, externalIdList: 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/ChannelTrait.AdditionalInfoStruct>>, data: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html> )` Creates a request payload for the GetProgramGuide 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.GetProgramGuideCommand.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.GetProgramGuideCommand.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://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/ChannelTrait.ChannelInfoStruct>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Request#channelList()` The set of channels for which program guide entries should be fetched. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<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.GetProgramGuideCommand.Request#data()` Optional app-specific data. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Request#endTime()` The end of the time window for which program guide entries are to be retrieved, as a UTC time. |
| `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/ChannelTrait.AdditionalInfoStruct>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Request#externalIdList()` The list of additional external content identifiers. |
| `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/ChannelTrait.PageTokenStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Request#pageToken()` The pagination token used for managing pagination progression. |
| `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/ChannelTrait.RecordingFlagBitmap>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Request#recordingFlag()` The flags of the programs for which entries should be fetched. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Request#startTime()` The beginning of the time window for which program guide entries are to be retrieved, as a UTC time. |

## Public constructors

### Request

```
Request(
    startTime: OptionalValue<UInt> = OptionalValue.absent(),
    endTime: OptionalValue<UInt> = OptionalValue.absent(),
    channelList: OptionalValue<List<ChannelTrait.ChannelInfoStruct>> = OptionalValue.absent(),
    pageToken: OptionalValue<ChannelTrait.PageTokenStruct> = OptionalValue.absent(),
    recordingFlag: OptionalValue<ChannelTrait.RecordingFlagBitmap> = OptionalValue.absent(),
    externalIdList: OptionalValue<List<ChannelTrait.AdditionalInfoStruct>> = OptionalValue.absent(),
    data: OptionalValue<ByteArray> = OptionalValue.absent()
)
```

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

### channelList

```
val channelList: OptionalValue<List<ChannelTrait.ChannelInfoStruct>>
```

The set of channels for which program guide entries should be fetched.

### data

```
val data: OptionalValue<ByteArray>
```

Optional app-specific data.

### endTime

```
val endTime: OptionalValue<UInt>
```

The end of the time window for which program guide entries are to be retrieved, as a UTC time.

### externalIdList

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

The list of additional external content identifiers.

### pageToken

```
val pageToken: OptionalValue<ChannelTrait.PageTokenStruct>
```

The pagination token used for managing pagination progression.

### recordingFlag

```
val recordingFlag: OptionalValue<ChannelTrait.RecordingFlagBitmap>
```

The flags of the programs for which entries should be fetched.

### startTime

```
val startTime: OptionalValue<UInt>
```

The beginning of the time window for which program guide entries are to be retrieved, as a UTC time.