# MusicArtistEntity

# MusicArtistEntity

*** ** * ** ***

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

<br />

```
public final class MusicArtistEntity 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.MusicArtistEntity](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicArtistEntity) |

*** ** * ** ***

An object representing a music artist.

## Summary

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

|                              ### 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/MusicArtistEntity#infoPageUri()) |

|                                                                             ### Public methods                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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/MusicArtistEntity#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)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`     | [getEntityId](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicArtistEntity#getEntityId())`()` Returns the id of the entity.                                                     |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                        | [getInfoPageUri](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicArtistEntity#getInfoPageUri())`()` Returns the info page uri of the music artist.                              |
| [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/MusicArtistEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds. |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                    | [getName](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicArtistEntity#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/MusicArtistEntity#getPlayBackUri())`()` Returns the play back uri of the music artist, 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/MusicArtistEntity#getPosterImages())`()` Returns the poster image of the entity.                                   |

|                                                                                                                                                                                                          ### 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

### getDescription

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

Returns the description of the audio entity, if available  

### getEntityId

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

Returns the id of the entity.  

### getInfoPageUri

```
public Uri getInfoPageUri()
```

Returns the info page uri of the music artist.  

### getLastEngagementTimeMillis

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

Returns the last engagement time in milliseconds.  

### getName

```
public String getName()
```

Returns the name of the entity.  

### getPlayBackUri

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

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

### getPosterImages

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

Returns the poster image of the entity.