# VideoClipEntity.Builder

# VideoClipEntity.Builder

*** ** * ** ***

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


```
class VideoClipEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                              ### Public functions                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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.                       |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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.                                                                                                                                                                                                                                                            |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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 video clip entity.                                                                                                                                                                                                                         |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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 video clip entity. |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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.                                                                                                                                                                                                                                                                                                                                                            |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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.                                                                                                                                      |
| [VideoClipEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCreatedTimeEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder#setCreatedTimeEpochMillis(long))`(createdTimeEpochMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the creation time of the video, in milliseconds from Epoch.                                                                                                                                                                                                                                                                                                                                                               |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCreator](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder#setCreator(java.lang.String))`(creator: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the creator of the video.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCreatorImage](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder#setCreatorImage(com.google.android.engage.common.datamodel.Image))`(creatorImage: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Sets the image of the creator of the video.                                                                                                                                                                                                                                                                                                                                         |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.Builder#setDownloadedOnDevice(boolean))`(downloadedOnDevice: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets a boolean value to indicate if the video clip is downloaded on device or not.                                                                                                                                                                                                                                                                                                                                                |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.Builder#setDurationMillis(long))`(durationMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the duration of the video, in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                                       |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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.                                                                                                                                                                                                                                                                                                                                                    |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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.                                                                                                                                                                                                                                                                                                                                     |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.Builder#setName(java.lang.String))`(name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the name of the entity.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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 video.                                                                                                                                                                                                                                                                                                                                                                                                      |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setViewCount](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.Builder#setViewCount(java.lang.String))`(viewCount: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the view count of the video.                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [VideoClipEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity.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/VideoClipEntity.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!>!
): VideoClipEntity.Builder!
```

Adds the availability time windows of the video entity.

Optional.  

### addAvailabilityTimeWindow

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

Adds the availability time window of the video entity.

Optional.  

### addPlatformSpecificPlaybackUri

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

Add platform specific playback uri for the video clip entity.

Optional.  

### addPlatformSpecificPlaybackUris

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

Add platform specific playback uris for the video clip entity.

Optional.  

### addPosterImage

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

Add a poster image of the entity.

Required.  

### addPosterImages

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

Add poster images of the entity.

Required.  

### build

```
fun build(): VideoClipEntity!
```  

### setCreatedTimeEpochMillis

```
@CanIgnoreReturnValue
fun setCreatedTimeEpochMillis(createdTimeEpochMillis: Long): VideoClipEntity.Builder!
```

Sets the creation time of the video, in milliseconds from Epoch.

Required.  

### setCreator

```
@CanIgnoreReturnValue
fun setCreator(creator: String!): VideoClipEntity.Builder!
```

Sets the creator of the video.

Required.  

### setCreatorImage

```
@CanIgnoreReturnValue
fun setCreatorImage(creatorImage: Image!): VideoClipEntity.Builder!
```

Sets the image of the creator of the video.

Optional.  

### setDownloadedOnDevice

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

Sets a boolean value to indicate if the video clip is downloaded on device or not.

Optional.  

### setDurationMillis

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

Sets the duration of the video, in milliseconds.

Required.  

### setEntityId

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

Sets content id of the entity.

Optional.  

### setLastEngagementTimeMillis

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

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

Optional.  

### setLastPlayBackPositionTimeMillis

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

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

Optional.  

### setName

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

Sets the name of the entity.

Required.  

### setPlayBackUri

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

Sets the on device deeplink to start playing the video.

Required.  

### setViewCount

```
@CanIgnoreReturnValue
fun setViewCount(viewCount: String!): VideoClipEntity.Builder!
```

Sets the view count of the video.

Optional.  

### setWatchNextType

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

Sets the watch next type of the video entity.

Optional.