# TvEpisodeEntity.Builder

# TvEpisodeEntity.Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder "View this page in Java")  

<br />

```
class TvEpisodeEntity.Builder
```

<br />

*** ** * ** ***

Builder class for[TvEpisodeEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity).

## Summary

|                                                          ### Public constructors                                                          |
|-------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#Builder())`()` |

|                                                              ### Public functions                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAllAvailabilityTimeWindows](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addAllAvailabilityTimeWindows(java.util.List<com.google.android.engage.common.datamodel.DisplayTimeWindow>))`(` ` availabilityTimeWindows: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` `)` Adds the availability time windows of the video entity.                |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAvailabilityTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addAvailabilityTimeWindow(com.google.android.engage.common.datamodel.DisplayTimeWindow))`(availabilityTimeWindow: `[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!)` Adds the availability time window of the video entity.                                                                                                                                                                                                                                                     |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentRating](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addContentRating(com.google.android.engage.video.datamodel.RatingSystem))`(contentRating: `[RatingSystem](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/RatingSystem)`!)` Add the rating system for the tv episode.                                                                                                                                                                                                                                                                                                              |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) ~~[addContentRating](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addContentRating(java.lang.String))~~`(rating: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` **This function is deprecated.** use addContentRating(RatingSystem) instead <br />                                                                                                                                                                                                                                                                                                                                                   |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addContentRatings(java.util.List<com.google.android.engage.video.datamodel.RatingSystem>))`(contentRatings: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[RatingSystem](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/RatingSystem)`!>!)` Add the rating systems for the tv episode.                                                                                      |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) ~~[addContentRatingsLegacy](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addContentRatingsLegacy(java.util.List<java.lang.String>))~~`(ratings: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!)` **This function is deprecated.** use`addContentRatings(List<RatingSystem>)`instead <br />                                                                                                         |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addGenre](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addGenre(java.lang.String))`(genre: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` add genre of the tv episode.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addGenres](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addGenres(java.util.List<java.lang.String>))`(genres: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!)` add genres of the tv episode.                                                                                                                                                                                                      |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPlatformSpecificPlaybackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addPlatformSpecificPlaybackUri(com.google.android.engage.common.datamodel.PlatformSpecificUri))`(` ` platformSpecificPlaybackUri: `[PlatformSpecificUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/PlatformSpecificUri)`!` `)` Add platform specific playback uri for the tv episode.                                                                                                                                                                                                                         |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPlatformSpecificPlaybackUris](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addPlatformSpecificPlaybackUris(java.util.List<com.google.android.engage.common.datamodel.PlatformSpecificUri>))`(` ` platformSpecificPlaybackUris: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[PlatformSpecificUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/PlatformSpecificUri)`!>!` `)` Add platform specific playback uris for the tv episode. |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(image: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Add a poster image of the entity.                                                                                                                                                                                                                                                                                                                                                     |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addPosterImages(java.util.List<com.google.android.engage.common.datamodel.Image>))`(images: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!)` Add poster images of the entity.                                                                                                                               |
| [TvEpisodeEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAirDateEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setAirDateEpochMillis(long))`(airDateEpochMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the air date of the episode, in milliseconds since Epoch.                                                                                                                                                                                                                                                                                                                                                                      |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAvailability](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setAvailability(int))`(@`[ContentAvailability](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContentAvailability)` availability: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the availability of the episode.                                                                                                                                                                                                                                                                            |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDownloadedOnDevice](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setDownloadedOnDevice(boolean))`(downloadedOnDevice: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets a boolean value to indicate if the tv episode is downloaded on device or not.                                                                                                                                                                                                                                                                                                                                         |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDurationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setDurationMillis(long))`(durationMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the duration of the tv episode, in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                           |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEpisodeDisplayNumber](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setEpisodeDisplayNumber(java.lang.String))`(episodeDisplayNumber: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the episode display number in the current season.                                                                                                                                                                                                                                                                                                                                                       |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEpisodeNumber](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setEpisodeNumber(int))`(episodeNumber: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the episode number in the current season.                                                                                                                                                                                                                                                                                                                                                                                                        |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setInfoPageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setInfoPageUri(android.net.Uri))`(infoPageUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the deeplink to open the details info page of the tv episode.                                                                                                                                                                                                                                                                                                                                                                                    |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setIsNextEpisodeAvailable](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setIsNextEpisodeAvailable(boolean))`(isNextEpisodeAvailable: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets if next episode is available.                                                                                                                                                                                                                                                                                                                                                                             |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLastEngagementTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setLastEngagementTimeMillis(long))`(lastEngagementTimeMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets last engagement time of the entity, in milliseconds since Epoch.                                                                                                                                                                                                                                                                                                                                             |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLastPlayBackPositionTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setLastPlayBackPositionTimeMillis(long))`(lastPlayBackPositionTimeMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets last play back position of the video entity, in milliseconds.                                                                                                                                                                                                                                                                                                                              |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setName](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setName(java.lang.String))`(name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the name of the entity.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPlayBackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setPlayBackUri(android.net.Uri))`(playBackUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the on device deeplink to start playing the tv episode.                                                                                                                                                                                                                                                                                                                                                                                          |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setPrice(com.google.android.engage.common.datamodel.Price))`(price: `[Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!)` Adds the price of the tv episode.                                                                                                                                                                                                                                                                                                                                                                 |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setSeasonNumber](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setSeasonNumber(java.lang.String))`(seasonNumber: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the season number of the tv episode.                                                                                                                                                                                                                                                                                                                                                                                            |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setSeasonTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setSeasonTitle(java.lang.String))`(seasonTitle: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the season title of the tv episode.                                                                                                                                                                                                                                                                                                                                                                                                |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setShowTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setShowTitle(java.lang.String))`(showTitle: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the show title of the tv episode.                                                                                                                                                                                                                                                                                                                                                                                                        |
| [TvEpisodeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setWatchNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#setWatchNextType(int))`(@`[WatchNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/WatchNextType)` watchNextType: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the watch next type of the video entity.                                                                                                                                                                                                                                                                              |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addAllAvailabilityTimeWindows

```
@CanIgnoreReturnValue
fun addAllAvailabilityTimeWindows(
    availabilityTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): TvEpisodeEntity.Builder!
```

Adds the availability time windows of the video entity.

Optional.  

### addAvailabilityTimeWindow

```
@CanIgnoreReturnValue
fun addAvailabilityTimeWindow(availabilityTimeWindow: DisplayTimeWindow!): TvEpisodeEntity.Builder!
```

Adds the availability time window of the video entity.

Optional.  

### addContentRating

```
@CanIgnoreReturnValue
fun addContentRating(contentRating: RatingSystem!): TvEpisodeEntity.Builder!
```

Add the rating system for the tv episode.

Required.  

### addContentRating

```
@CanIgnoreReturnValue
fun [addContentRating](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addContentRating(java.lang.String))(rating: String!): TvEpisodeEntity.Builder!
```
| **This function is deprecated.**   
|
| use addContentRating(RatingSystem) instead

add content rating of the tv episode.

Required.  

### addContentRatings

```
@CanIgnoreReturnValue
fun addContentRatings(contentRatings: (Mutable)List<RatingSystem!>!): TvEpisodeEntity.Builder!
```

Add the rating systems for the tv episode.

Required.  

### addContentRatingsLegacy

```
@CanIgnoreReturnValue
fun [addContentRatingsLegacy](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvEpisodeEntity.Builder#addContentRatingsLegacy(java.util.List<java.lang.String>))(ratings: (Mutable)List<String!>!): TvEpisodeEntity.Builder!
```
| **This function is deprecated.**   
|
| use`addContentRatings(List<RatingSystem>)`instead

add content ratings of the tv episode.

Required.  

### addGenre

```
@CanIgnoreReturnValue
fun addGenre(genre: String!): TvEpisodeEntity.Builder!
```

add genre of the tv episode.

Optional.  

### addGenres

```
@CanIgnoreReturnValue
fun addGenres(genres: (Mutable)List<String!>!): TvEpisodeEntity.Builder!
```

add genres of the tv episode.

Optional.  

### addPlatformSpecificPlaybackUri

```
@CanIgnoreReturnValue
fun addPlatformSpecificPlaybackUri(
    platformSpecificPlaybackUri: PlatformSpecificUri!
): TvEpisodeEntity.Builder!
```

Add platform specific playback uri for the tv episode. Used by continue watching better together.

Optional.  

### addPlatformSpecificPlaybackUris

```
@CanIgnoreReturnValue
fun addPlatformSpecificPlaybackUris(
    platformSpecificPlaybackUris: (Mutable)List<PlatformSpecificUri!>!
): TvEpisodeEntity.Builder!
```

Add platform specific playback uris for the tv episode. Used by continue watching better together.

Optional.  

### addPosterImage

```
@CanIgnoreReturnValue
fun addPosterImage(image: Image!): TvEpisodeEntity.Builder!
```

Add a poster image of the entity.

Required.  

### addPosterImages

```
@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): TvEpisodeEntity.Builder!
```

Add poster images of the entity.

Required.  

### build

```
fun build(): TvEpisodeEntity!
```  

### setAirDateEpochMillis

```
@CanIgnoreReturnValue
fun setAirDateEpochMillis(airDateEpochMillis: Long): TvEpisodeEntity.Builder!
```

Sets the air date of the episode, in milliseconds since Epoch.

Required.  

### setAvailability

```
@CanIgnoreReturnValue
fun setAvailability(@ContentAvailability availability: Int): TvEpisodeEntity.Builder!
```

Sets the availability of the episode.

Required.  

### setDownloadedOnDevice

```
@CanIgnoreReturnValue
fun setDownloadedOnDevice(downloadedOnDevice: Boolean): TvEpisodeEntity.Builder!
```

Sets a boolean value to indicate if the tv episode is downloaded on device or not.

Optional.  

### setDurationMillis

```
@CanIgnoreReturnValue
fun setDurationMillis(durationMillis: Long): TvEpisodeEntity.Builder!
```

Sets the duration of the tv episode, in milliseconds.

Required.  

### setEntityId

```
@CanIgnoreReturnValue
fun setEntityId(entityId: String!): TvEpisodeEntity.Builder!
```

Sets content id of the entity.

Optional.  

### setEpisodeDisplayNumber

```
@CanIgnoreReturnValue
fun setEpisodeDisplayNumber(episodeDisplayNumber: String!): TvEpisodeEntity.Builder!
```

Sets the episode display number in the current season.

Required.  

### setEpisodeNumber

```
@CanIgnoreReturnValue
fun setEpisodeNumber(episodeNumber: Int): TvEpisodeEntity.Builder!
```

Sets the episode number in the current season.

Required.  

### setInfoPageUri

```
@CanIgnoreReturnValue
fun setInfoPageUri(infoPageUri: Uri!): TvEpisodeEntity.Builder!
```

Sets the deeplink to open the details info page of the tv episode.

Optional.  

### setIsNextEpisodeAvailable

```
@CanIgnoreReturnValue
fun setIsNextEpisodeAvailable(isNextEpisodeAvailable: Boolean): TvEpisodeEntity.Builder!
```

Sets if next episode is available.

Optional.  

### setLastEngagementTimeMillis

```
@CanIgnoreReturnValue
fun setLastEngagementTimeMillis(lastEngagementTimeMillis: Long): TvEpisodeEntity.Builder!
```

Sets last engagement time of the entity, in milliseconds since Epoch.

Optional.  

### setLastPlayBackPositionTimeMillis

```
@CanIgnoreReturnValue
fun setLastPlayBackPositionTimeMillis(lastPlayBackPositionTimeMillis: Long): TvEpisodeEntity.Builder!
```

Sets last play back position of the video entity, in milliseconds.

Optional.  

### setName

```
@CanIgnoreReturnValue
fun setName(name: String!): TvEpisodeEntity.Builder!
```

Sets the name of the entity.

Required.  

### setPlayBackUri

```
@CanIgnoreReturnValue
fun setPlayBackUri(playBackUri: Uri!): TvEpisodeEntity.Builder!
```

Sets the on device deeplink to start playing the tv episode.

Required.  

### setPrice

```
@CanIgnoreReturnValue
fun setPrice(price: Price!): TvEpisodeEntity.Builder!
```

Adds the price of the tv episode.

Optional.  

### setSeasonNumber

```
@CanIgnoreReturnValue
fun setSeasonNumber(seasonNumber: String!): TvEpisodeEntity.Builder!
```

Sets the season number of the tv episode.

Optional.  

### setSeasonTitle

```
@CanIgnoreReturnValue
fun setSeasonTitle(seasonTitle: String!): TvEpisodeEntity.Builder!
```

Sets the season title of the tv episode.

Optional.  

### setShowTitle

```
@CanIgnoreReturnValue
fun setShowTitle(showTitle: String!): TvEpisodeEntity.Builder!
```

Sets the show title of the tv episode.

Optional.  

### setWatchNextType

```
@CanIgnoreReturnValue
fun setWatchNextType(@WatchNextType watchNextType: Int): TvEpisodeEntity.Builder!
```

Sets the watch next type of the video entity.

Optional.