# MusicAlbumEntity

# MusicAlbumEntity

*** ** * ** ***

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

<br />

```
class MusicAlbumEntity : Entity
```

<br />

|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                             |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)                      ||
|   | ↳ | [com.google.android.engage.audio.datamodel.MusicAlbumEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity) |

*** ** * ** ***

An object representing a music album.

## Summary

|                                                                                                                                           ### Nested types                                                                                                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[MusicAlbumEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity.Builder) Builder class for[MusicAlbumEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity). |

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `(`[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)`!>!`                         | [getArtists](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getArtists())`()` Returns the list of artists of the music album.                                          |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getDescription())`()` Returns the description of the audio entity, if available                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | [getDurationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getDurationMillis())`()` Returns the duration of the music album, if available.                     |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getEntityId())`()` Returns the id of the entity.                                                          |
| `(`[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)`!>!`                         | [getGenres](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getGenres())`()` Returns the list of genres of the music album.                                             |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | [getLastEngagementTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds.      |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!`                                                                                                                                       | [getMusicAlbumType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getMusicAlbumType())`()` Returns music album type                                                   |
| `(`[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)`!>!`                         | [getMusicLabels](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getMusicLabels())`()` Returns the list of music labels of the music album.                             |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                                                                                                                                               | [getName](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getName())`()` Returns the name of the entity.                                                                |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Uri](https://developer.android.com/reference/android/net/Uri.html)`!>!`                                                                                                                                              | [getPlayBackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getPlayBackUri())`()` Returns the play back uri of the music album, if available                       |
| `(`[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)`!>!` | [getPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getPosterImages())`()` Returns the poster image of the entity.                                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!`                                                                                                                                       | [getProgressPercentComplete](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getProgressPercentComplete())`()` Returns the percentage progress completed.               |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | [getReleaseDateEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getReleaseDateEpochMillis())`()` Returns the release date of the music album, if available. |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!`                                                                                                                                       | [getSongsCount](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getSongsCount())`()` Returns the count of the songs in the music album.                                 |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                                | [isDownloadedOnDevice](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#isDownloadedOnDevice())`()` Returns whether the music album is downloaded on device or not       |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                                | [isExplicitContent](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#isExplicitContent())`()` Returns whether the music album has explicit content or not                |

|                         ### Public properties                          |
|------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!` | [infoPageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/MusicAlbumEntity#infoPageUri()) |

|                                                                                                                                                                                                                                                                                         ### Inherited functions                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getEntityType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public functions

### getArtists

```
fun getArtists(): (Mutable)List<String!>!
```

Returns the list of artists of the music album.  

### getDescription

```
fun getDescription(): Optional<String!>!
```

Returns the description of the audio entity, if available  

### getDurationMillis

```
fun getDurationMillis(): Optional<Long!>!
```

Returns the duration of the music album, if available.  

### getEntityId

```
fun getEntityId(): Optional<String!>!
```

Returns the id of the entity.  

### getGenres

```
fun getGenres(): (Mutable)List<String!>!
```

Returns the list of genres of the music album.  

### getLastEngagementTimeMillis

```
fun getLastEngagementTimeMillis(): Optional<Long!>!
```

Returns the last engagement time in milliseconds.  

### getMusicAlbumType

```
fun getMusicAlbumType(): Optional<Int!>!
```

Returns music album type  

### getMusicLabels

```
fun getMusicLabels(): (Mutable)List<String!>!
```

Returns the list of music labels of the music album.  

### getName

```
fun getName(): String!
```

Returns the name of the entity.  

### getPlayBackUri

```
fun getPlayBackUri(): Optional<Uri!>!
```

Returns the play back uri of the music album, if available  

### getPosterImages

```
fun getPosterImages(): (Mutable)List<Image!>!
```

Returns the poster image of the entity.  

### getProgressPercentComplete

```
fun getProgressPercentComplete(): Optional<Int!>!
```

Returns the percentage progress completed.  

### getReleaseDateEpochMillis

```
fun getReleaseDateEpochMillis(): Optional<Long!>!
```

Returns the release date of the music album, if available.  

### getSongsCount

```
fun getSongsCount(): Optional<Int!>!
```

Returns the count of the songs in the music album.  

### isDownloadedOnDevice

```
fun isDownloadedOnDevice(): Boolean
```

Returns whether the music album is downloaded on device or not  

### isExplicitContent

```
fun isExplicitContent(): Boolean
```

Returns whether the music album has explicit content or not  

## Public properties

### infoPageUri

```
val infoPageUri: Uri!
```