# LiveTvChannelEntity.Builder

# LiveTvChannelEntity.Builder

*** ** * ** ***

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

<br />

```
public final class LiveTvChannelEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                              ### Public methods                                                              |
|----------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentRating](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#addContentRating(com.google.android.engage.video.datamodel.RatingSystem))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[RatingSystem](https://developer.android.com/reference/com/google/android/engage/video/datamodel/RatingSystem)` contentRating)` Adds the content rating of the live tv channel.                                                                                                                                                                                 |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentRatings](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#addContentRatings(java.util.List<com.google.android.engage.video.datamodel.RatingSystem>))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[List](https://developer.android.com/reference/java/util/List.html)`<`[RatingSystem](https://developer.android.com/reference/com/google/android/engage/video/datamodel/RatingSystem)`> contentRatings)` Adds content ratings of the live tv channel.                                                                                          |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPlatformSpecificPlaybackUri](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#addPlatformSpecificPlaybackUri(com.google.android.engage.common.datamodel.PlatformSpecificUri))`(` ` @`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[PlatformSpecificUri](https://developer.android.com/reference/com/google/android/engage/common/datamodel/PlatformSpecificUri)` platformSpecificPlaybackUri` `)` Adds platform specific playback uri for the live tv channel.                                                                                            |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPlatformSpecificPlaybackUris](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#addPlatformSpecificPlaybackUris(java.util.List<com.google.android.engage.common.datamodel.PlatformSpecificUri>))`(` ` @`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[List](https://developer.android.com/reference/java/util/List.html)`<`[PlatformSpecificUri](https://developer.android.com/reference/com/google/android/engage/common/datamodel/PlatformSpecificUri)`> platformSpecificPlaybackUris` `)` Adds platform specific playback uris for the live tv channel. |
| [LiveTvChannelEntity](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity)                 | [build](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#setDescription(java.lang.String))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/java/lang/String.html)` description)` Sets the description of the live tv channel.                                                                                                                                                                                                                                                                       |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#setEntityId(java.lang.String))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/java/lang/String.html)` entityId)` Sets content id of the live tv channel.                                                                                                                                                                                                                                                                                     |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLogoImage](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#setLogoImage(com.google.android.engage.common.datamodel.Image))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)` image)` Sets the logo image of the live tv channel.                                                                                                                                                                                                                        |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setName](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#setName(java.lang.String))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/java/lang/String.html)` name)` Sets the name of the live tv channel.                                                                                                                                                                                                                                                                                                   |
| [LiveTvChannelEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setRecommendationReason](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveTvChannelEntity.Builder#setRecommendationReason(com.google.android.engage.common.datamodel.RecommendationReason))`(` ` @`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[RecommendationReason](https://developer.android.com/reference/com/google/android/engage/common/datamodel/RecommendationReason)` recommendationReason` `)` Sets the recommendation reason of the live tv program.                                                                                                                    |

## Public constructors

### Builder

```
public Builder()
```  

## Public methods

### addContentRating

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder addContentRating(@NonNull RatingSystem contentRating)
```

Adds the content rating of the live tv channel.  

### addContentRatings

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder addContentRatings(@NonNull List<RatingSystem> contentRatings)
```

Adds content ratings of the live tv channel.  

### addPlatformSpecificPlaybackUri

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder addPlatformSpecificPlaybackUri(
    @NonNull PlatformSpecificUri platformSpecificPlaybackUri
)
```

Adds platform specific playback uri for the live tv channel.  

### addPlatformSpecificPlaybackUris

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder addPlatformSpecificPlaybackUris(
    @NonNull List<PlatformSpecificUri> platformSpecificPlaybackUris
)
```

Adds platform specific playback uris for the live tv channel.  

### build

```
public LiveTvChannelEntity build()
```  

### setDescription

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder setDescription(@NonNull String description)
```

Sets the description of the live tv channel.  

### setEntityId

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder setEntityId(@NonNull String entityId)
```

Sets content id of the live tv channel.  

### setLogoImage

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder setLogoImage(@NonNull Image image)
```

Sets the logo image of the live tv channel.  

### setName

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder setName(@NonNull String name)
```

Sets the name of the live tv channel.  

### setRecommendationReason

```
@CanIgnoreReturnValue
public LiveTvChannelEntity.Builder setRecommendationReason(
    @NonNull RecommendationReason recommendationReason
)
```

Sets the recommendation reason of the live tv program.