# MusicVideoEntity.Builder

# MusicVideoEntity.Builder

*** ** * ** ***

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

<br />

```
class MusicVideoEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                               ### Public functions                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addArtist](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#addArtist(java.lang.String))`(artist: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Adds artist of the music video.                                                                                                                                                                                                                                                                                          |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addArtists](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#addArtists(java.util.List<java.lang.String>))`(artists: (`[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)`!>!)` Adds the list of artists of the music video.                                                      |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentRating](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#addContentRating(java.lang.String))`(contentRating: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Adds the content rating of the music video.                                                                                                                                                                                                                                                         |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#addContentRatings(java.util.List<java.lang.String>))`(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)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!)` Adds the list of content ratings of the music video.                         |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.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.                                                                                                                                                                                                                       |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.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. |
| [MusicVideoEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setDescription(java.lang.String))`(description: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Adds the description of the audio entity.                                                                                                                                                                                                                                                                 |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDownloadedOnDevice](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setDownloadedOnDevice(boolean))`(downloadedOnDevice: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets a boolean value to indicate if music video is downloaded on device or not.                                                                                                                                                                                                              |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDurationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setDurationMillis(long))`(durationMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the duration of the music video.                                                                                                                                                                                                                                                                             |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                     |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setExplicitContent](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setExplicitContent(boolean))`(explicitContent: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets a boolean value to indicate if music video has explicit content or not.                                                                                                                                                                                                                          |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setInfoPageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setInfoPageUri(android.net.Uri))`(infoPageUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the info page uri of the music video.                                                                                                                                                                                                                                                                              |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLastEngagementTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.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.                                                                                                                                                                                                               |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setName](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setName(java.lang.String))`(name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the name of the entity.                                                                                                                                                                                                                                                                                                   |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPlayBackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setPlayBackUri(android.net.Uri))`(playBackUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the play back uri of the music video.                                                                                                                                                                                                                                                                              |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setProgressPercentComplete](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setProgressPercentComplete(int))`(progressPercentComplete: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets progress percent complete of the audio entity.                                                                                                                                                                                                                                       |
| [MusicVideoEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setViewCount](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicVideoEntity.Builder#setViewCount(java.lang.String))`(viewCount: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the number of views of the music video.                                                                                                                                                                                                                                                                    |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addArtist

```
@CanIgnoreReturnValue
fun addArtist(artist: String!): MusicVideoEntity.Builder!
```

Adds artist of the music video.

Optional.  

### addArtists

```
@CanIgnoreReturnValue
fun addArtists(artists: (Mutable)List<String!>!): MusicVideoEntity.Builder!
```

Adds the list of artists of the music video.

Optional.  

### addContentRating

```
@CanIgnoreReturnValue
fun addContentRating(contentRating: String!): MusicVideoEntity.Builder!
```

Adds the content rating of the music video.

Optional.  

### addContentRatings

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

Adds the list of content ratings of the music video.

Optional.  

### addPosterImage

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

Add a poster image of the entity.

Required.  

### addPosterImages

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

Add poster images of the entity.

Required.  

### build

```
fun build(): MusicVideoEntity!
```  

### setDescription

```
@CanIgnoreReturnValue
fun setDescription(description: String!): MusicVideoEntity.Builder!
```

Adds the description of the audio entity.

Optional.  

### setDownloadedOnDevice

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

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

Optional.  

### setDurationMillis

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

Sets the duration of the music video.

Required.  

### setEntityId

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

Sets content id of the entity.

Optional.  

### setExplicitContent

```
@CanIgnoreReturnValue
fun setExplicitContent(explicitContent: Boolean): MusicVideoEntity.Builder!
```

Sets a boolean value to indicate if music video has explicit content or not.

Optional.  

### setInfoPageUri

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

Sets the info page uri of the music video.

Optional.  

### setLastEngagementTimeMillis

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

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

Optional.  

### setName

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

Sets the name of the entity.

Required.  

### setPlayBackUri

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

Sets the play back uri of the music video.

Required.  

### setProgressPercentComplete

```
@CanIgnoreReturnValue
fun setProgressPercentComplete(progressPercentComplete: Int): MusicVideoEntity.Builder!
```

Sets progress percent complete of the audio entity.

Optional  

### setViewCount

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

Sets the number of views of the music video.

Optional.