# ChannelTrait.ProgramStruct


```
class ChannelTrait.ProgramStruct : ClusterStruct
```

<br />

*** ** * ** ***

A program within an electronic program guide (EPG).

## 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.ProgramStruct.StructFields : 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 struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#ProgramStruct(kotlin.String,com.google.home.matter.standard.ChannelTrait.ChannelInfoStruct,kotlin.UInt,kotlin.UInt,kotlin.String,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,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)( identifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, channel: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ChannelInfoStruct, startTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, endTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, title: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, subtitle: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, description: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, audioLanguages: 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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>>, ratings: 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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>>, thumbnailUrl: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, posterArtUrl: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, dvbiUrl: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, releaseDate: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, parentalGuidanceText: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, 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>, seriesInfo: 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.SeriesInfoStruct?>, categoryList: 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.ProgramCategoryStruct>>, castList: 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.ProgramCastStruct>>, 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.ProgramCastStruct>> )` Creates the ProgramStruct class. |

| ### 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.ProgramStruct#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.ProgramStruct#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#audioLanguages()` The audio language for the specific program. |
| `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.ProgramCastStruct>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#castList()` A list of the cast or the crew on the program. |
| `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.ProgramCategoryStruct>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#categoryList()` The category of a particular program. |
| `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.ProgramStruct#channel()` The channel associated to the program. |
| `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/ChannelTrait.ProgramStruct#description()` The brief description for the specific program. |
| `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/ChannelTrait.ProgramStruct#dvbiUrl()` The DVB-I URL associated to the program. |
| `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.ProgramStruct#endTime()` The end time of a program, 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.ProgramCastStruct>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#externalIdList()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#identifier()` A unique identifier for a program within an electronic program guide list. |
| `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/ChannelTrait.ProgramStruct#parentalGuidanceText()` Additional information on the parental guidance. |
| `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/ChannelTrait.ProgramStruct#posterArtUrl()` A URL of a poster that clients can use to render an image for the program on the detail view. |
| `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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#ratings()` Indicating the level of parental guidance recommended for a particular program. |
| `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.ProgramStruct#recordingFlag()` The recording status of the program. |
| `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/ChannelTrait.ProgramStruct#releaseDate()` The date on which the program was released. |
| `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.SeriesInfoStruct?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#seriesInfo()` The information of a series such as season and episode number. |
| `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.ProgramStruct#startTime()` The start time of a program, 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/-string/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#subtitle()` The subtitle for the specific program. |
| `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/ChannelTrait.ProgramStruct#thumbnailUrl()` A URL of a thumbnail that clients can use to render an image for the program. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ProgramStruct#title()` The title or name for the specific program. |

## Public constructors

### ProgramStruct

```
ProgramStruct(
    identifier: String = "",
    channel: ChannelTrait.ChannelInfoStruct = ChannelInfoStruct(),
    startTime: UInt,
    endTime: UInt,
    title: String = "",
    subtitle: OptionalValue<String> = OptionalValue.absent(),
    description: OptionalValue<String> = OptionalValue.absent(),
    audioLanguages: OptionalValue<List<String>> = OptionalValue.absent(),
    ratings: OptionalValue<List<String>> = OptionalValue.absent(),
    thumbnailUrl: OptionalValue<String> = OptionalValue.absent(),
    posterArtUrl: OptionalValue<String> = OptionalValue.absent(),
    dvbiUrl: OptionalValue<String> = OptionalValue.absent(),
    releaseDate: OptionalValue<String> = OptionalValue.absent(),
    parentalGuidanceText: OptionalValue<String> = OptionalValue.absent(),
    recordingFlag: OptionalValue<ChannelTrait.RecordingFlagBitmap> = OptionalValue.absent(),
    seriesInfo: OptionalValue<ChannelTrait.SeriesInfoStruct?> = OptionalValue.absent(),
    categoryList: OptionalValue<List<ChannelTrait.ProgramCategoryStruct>> = OptionalValue.absent(),
    castList: OptionalValue<List<ChannelTrait.ProgramCastStruct>> = OptionalValue.absent(),
    externalIdList: OptionalValue<List<ChannelTrait.ProgramCastStruct>> = OptionalValue.absent()
)
```

Creates the ProgramStruct class.

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

### audioLanguages

```
val audioLanguages: OptionalValue<List<String>>
```

The audio language for the specific program.

### castList

```
val castList: OptionalValue<List<ChannelTrait.ProgramCastStruct>>
```

A list of the cast or the crew on the program.

### categoryList

```
val categoryList: OptionalValue<List<ChannelTrait.ProgramCategoryStruct>>
```

The category of a particular program.

### channel

```
val channel: ChannelTrait.ChannelInfoStruct
```

The channel associated to the program.

### description

```
val description: OptionalValue<String>
```

The brief description for the specific program.

### dvbiUrl

```
val dvbiUrl: OptionalValue<String>
```

The DVB-I URL associated to the program.

### endTime

```
val endTime: UInt
```

The end time of a program, as a UTC time.

### externalIdList

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

### identifier

```
val identifier: String
```

A unique identifier for a program within an electronic program guide list.

### parentalGuidanceText

```
val parentalGuidanceText: OptionalValue<String>
```

Additional information on the parental guidance.

### posterArtUrl

```
val posterArtUrl: OptionalValue<String>
```

A URL of a poster that clients can use to render an image for the program on the detail view.

### ratings

```
val ratings: OptionalValue<List<String>>
```

Indicating the level of parental guidance recommended for a particular program.

### recordingFlag

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

The recording status of the program.

### releaseDate

```
val releaseDate: OptionalValue<String>
```

The date on which the program was released.

### seriesInfo

```
val seriesInfo: OptionalValue<ChannelTrait.SeriesInfoStruct?>
```

The information of a series such as season and episode number.

### startTime

```
val startTime: UInt
```

The start time of a program, as a UTC time.

### subtitle

```
val subtitle: OptionalValue<String>
```

The subtitle for the specific program.

### thumbnailUrl

```
val thumbnailUrl: OptionalValue<String>
```

A URL of a thumbnail that clients can use to render an image for the program.

### title

```
val title: String
```

The title or name for the specific program.