# MusicAlbumEntity.Builder

# MusicAlbumEntity.Builder

*** ** * ** ***

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

<br />

```
class MusicAlbumEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                               ### Public functions                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#addArtist(java.lang.String))`(artist: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Adds artist of the music album.                                                                                                                                                                                                                                                                                          |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.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 album.                                                      |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addGenre](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder#addGenre(java.lang.String))`(genre: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Adds genre of the music album.                                                                                                                                                                                                                                                                                              |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addGenres](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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)`!>!)` Adds the list of genres of the music album.                                                          |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addMusicLabel](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder#addMusicLabel(java.lang.String))`(musicLabel: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Adds music label of the music album.                                                                                                                                                                                                                                                                         |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addMusicLabels](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder#addMusicLabels(java.util.List<java.lang.String>))`(musicLabels: (`[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 music labels of the music album.                                     |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.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.                                                                                                                                                                                                                       |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.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. |
| [MusicAlbumEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.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.                                                                                                                                                                                                                                                                 |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setDownloadedOnDevice(boolean))`(downloadedOnDevice: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets a boolean value to indicate if music album is downloaded on device or not.                                                                                                                                                                                                              |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setDurationMillis(long))`(durationMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the duration of the music album.                                                                                                                                                                                                                                                                             |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                     |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setExplicitContent(boolean))`(explicitContent: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets a boolean value to indicate if music album has explicit content or not.                                                                                                                                                                                                                          |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setInfoPageUri(android.net.Uri))`(infoPageUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the info page uri of the music album.                                                                                                                                                                                                                                                                              |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.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.                                                                                                                                                                                                               |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setMusicAlbumType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder#setMusicAlbumType(int))`(@`[MusicAlbumType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumType)` musicAlbumType: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets a music album type                                                                                                                                                                 |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setName(java.lang.String))`(name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the name of the entity.                                                                                                                                                                                                                                                                                                   |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setPlayBackUri(android.net.Uri))`(playBackUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the playback uri of the music album.                                                                                                                                                                                                                                                                               |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.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/MusicAlbumEntity.Builder#setProgressPercentComplete(int))`(progressPercentComplete: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets progress percent complete of the audio entity.                                                                                                                                                                                                                                       |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setReleaseDateEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder#setReleaseDateEpochMillis(long))`(releaseDateEpochMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the release date of the music album in epoch milliseconds.                                                                                                                                                                                                                           |
| [MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setSongsCount](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder#setSongsCount(int))`(songsCount: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the count of the songs in the music album.                                                                                                                                                                                                                                                                                  |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addArtist

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

Adds artist of the music album.

Required.  

### addArtists

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

Adds the list of artists of the music album.

Required.  

### addGenre

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

Adds genre of the music album.

Optional.  

### addGenres

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

Adds the list of genres of the music album.

Optional.  

### addMusicLabel

```
@CanIgnoreReturnValue
fun addMusicLabel(musicLabel: String!): MusicAlbumEntity.Builder!
```

Adds music label of the music album.

Optional.  

### addMusicLabels

```
@CanIgnoreReturnValue
fun addMusicLabels(musicLabels: (Mutable)List<String!>!): MusicAlbumEntity.Builder!
```

Adds the list of music labels of the music album.

Optional.  

### addPosterImage

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

Add a poster image of the entity.

Required.  

### addPosterImages

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

Add poster images of the entity.

Required.  

### build

```
fun build(): MusicAlbumEntity!
```  

### setDescription

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

Adds the description of the audio entity.

Optional.  

### setDownloadedOnDevice

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

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

Optional.  

### setDurationMillis

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

Sets the duration of the music album.

Optional.  

### setEntityId

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

Sets content id of the entity.

Optional.  

### setExplicitContent

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

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

Optional.  

### setInfoPageUri

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

Sets the info page uri of the music album.

Required.  

### setLastEngagementTimeMillis

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

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

Optional.  

### setMusicAlbumType

```
@CanIgnoreReturnValue
fun setMusicAlbumType(@MusicAlbumType musicAlbumType: Int): MusicAlbumEntity.Builder!
```

Sets a music album type

Optional.  

### setName

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

Sets the name of the entity.

Required.  

### setPlayBackUri

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

Sets the playback uri of the music album.

Optional.  

### setProgressPercentComplete

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

Sets progress percent complete of the audio entity.

Optional  

### setReleaseDateEpochMillis

```
@CanIgnoreReturnValue
fun setReleaseDateEpochMillis(releaseDateEpochMillis: Long): MusicAlbumEntity.Builder!
```

Sets the release date of the music album in epoch milliseconds.

Optional.  

### setSongsCount

```
@CanIgnoreReturnValue
fun setSongsCount(songsCount: Int): MusicAlbumEntity.Builder!
```

Sets the count of the songs in the music album.

Optional.