# MusicAlbumEntity

# MusicAlbumEntity

*** ** * ** ***

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

<br />

```
public final class MusicAlbumEntity extends Entity
```

<br />

|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)                                                                                      |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity)                      ||
|   | ↳ | [com.google.android.engage.audio.datamodel.MusicAlbumEntity](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity) |

*** ** * ** ***

An object representing a music album.

## Summary

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

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

|                                                                             ### Public methods                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                           | [getArtists](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`     | [getDescription](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/Long.html)`>`         | [getDurationMillis](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`     | [getEntityId](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getEntityId())`()` Returns the id of the entity.                                                          |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                           | [getGenres](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getGenres())`()` Returns the list of genres of the music album.                                             |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                        | [getInfoPageUri](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getInfoPageUri())`()` Returns the info page uri of the music album.                                    |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://developer.android.com/reference/java/lang/Long.html)`>`         | [getLastEngagementTimeMillis](https://developer.android.com/reference/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)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`   | [getMusicAlbumType](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getMusicAlbumType())`()` Returns music album type                                                   |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                           | [getMusicLabels](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getMusicLabels())`()` Returns the list of music labels of the music album.                             |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                    | [getName](https://developer.android.com/reference/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/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getPlayBackUri())`()` Returns the play back uri of the music album, if available                       |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>` | [getPosterImages](https://developer.android.com/reference/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)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`   | [getProgressPercentComplete](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/Long.html)`>`         | [getReleaseDateEpochMillis](https://developer.android.com/reference/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)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`   | [getSongsCount](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#getSongsCount())`()` Returns the count of the songs in the music album.                                 |
| `boolean`                                                                                                                                                                  | [isDownloadedOnDevice](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#isDownloadedOnDevice())`()` Returns whether the music album is downloaded on device or not       |
| `boolean`                                                                                                                                                                  | [isExplicitContent](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicAlbumEntity#isExplicitContent())`()` Returns whether the music album has explicit content or not                |

|                                                                                                                                                                                                          ### Inherited methods                                                                                                                                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity) |-------|--------------------------------------------------------------------------------------------------------------------------------| | `int` | [getEntityType](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public fields

### infoPageUri

```
public final Uri infoPageUri
```  

## Public methods

### getArtists

```
public List<String> getArtists()
```

Returns the list of artists of the music album.  

### getDescription

```
public Optional<String> getDescription()
```

Returns the description of the audio entity, if available  

### getDurationMillis

```
public Optional<Long> getDurationMillis()
```

Returns the duration of the music album, if available.  

### getEntityId

```
public Optional<String> getEntityId()
```

Returns the id of the entity.  

### getGenres

```
public List<String> getGenres()
```

Returns the list of genres of the music album.  

### getInfoPageUri

```
public Uri getInfoPageUri()
```

Returns the info page uri of the music album.  

### getLastEngagementTimeMillis

```
public Optional<Long> getLastEngagementTimeMillis()
```

Returns the last engagement time in milliseconds.  

### getMusicAlbumType

```
public Optional<Integer> getMusicAlbumType()
```

Returns music album type  

### getMusicLabels

```
public List<String> getMusicLabels()
```

Returns the list of music labels of the music album.  

### getName

```
public String getName()
```

Returns the name of the entity.  

### getPlayBackUri

```
public Optional<Uri> getPlayBackUri()
```

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

### getPosterImages

```
public List<Image> getPosterImages()
```

Returns the poster image of the entity.  

### getProgressPercentComplete

```
public Optional<Integer> getProgressPercentComplete()
```

Returns the percentage progress completed.  

### getReleaseDateEpochMillis

```
public Optional<Long> getReleaseDateEpochMillis()
```

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

### getSongsCount

```
public Optional<Integer> getSongsCount()
```

Returns the count of the songs in the music album.  

### isDownloadedOnDevice

```
public boolean isDownloadedOnDevice()
```

Returns whether the music album is downloaded on device or not  

### isExplicitContent

```
public boolean isExplicitContent()
```

Returns whether the music album has explicit content or not