# GenericAudioEntity

# GenericAudioEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing a generic audio entity.

There are bespoke entity types for audio entities, but this entity type can be used to represent any audio entity which does not fit into one of the bespoke types.

## Summary

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

|                                                                                                               ### Public fields                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                   | [actionUri](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#actionUri())                                                                                                                                 |
| `final `[ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [displayTimeWindows](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#displayTimeWindows())                                                                                                               |
| `final int`                                                                                                                                                                                                                                   | `@`[ListenNextType](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/ListenNextType) [listenNextType](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#listenNextType()) |
| `final `[ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                   | [subtitleList](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#subtitleList())                                                                                                                           |

|                                                                                                          ### Public methods                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                   | [getActionUri](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getActionUri())`()` Returns the action uri of the entity.                                                                                                                                       |
| [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)`>`                                                                | [getCallout](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getCallout())`()` Returns the callout of the entity.                                                                                                                                              |
| [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)`>`                                                                | [getCalloutFinePrint](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getCalloutFinePrint())`()` Returns the callout fine print of the entity.                                                                                                                 |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [getDisplayTimeWindows](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getDisplayTimeWindows())`()` Returns the display time windows of the entity.                                                                                                           |
| [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/GenericAudioEntity#getEntityId())`()` Returns the id of the entity.                                                                                                                                                 |
| [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/GenericAudioEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds.                                                                                             |
| `int`                                                                                                                                                                                                                                 | `@`[ListenNextType](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/ListenNextType) [getListenNextType](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getListenNextType())`()` Returns the listen next type of the entity. |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                               | [getName](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getName())`()` Returns the name of the entity.                                                                                                                                                       |
| [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/GenericAudioEntity#getPosterImages())`()` Returns the poster image of the entity.                                                                                                                               |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Price](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price)`>`                                      | [getPrice](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getPrice())`()` Returns the price 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/GenericAudioEntity#getProgressPercentComplete())`()` Returns the progress percent complete of the entity.                                                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Rating](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating)`>`                                    | [getRating](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getRating())`()` Returns the rating of the entity.                                                                                                                                                 |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                   | [getSubtitleList](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#getSubtitleList())`()` Returns a list of subtitles of the entity.                                                                                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Boolean](https://developer.android.com/reference/java/lang/Boolean.html)`>`                                                              | [isArtist](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#isArtist())`()` Returns whether the entity is a music artist.                                                                                                                                       |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Boolean](https://developer.android.com/reference/java/lang/Boolean.html)`>`                                                              | [isBook](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#isBook())`()` Returns whether the entity is a book.                                                                                                                                                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Boolean](https://developer.android.com/reference/java/lang/Boolean.html)`>`                                                              | [isDownloadedOnDevice](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#isDownloadedOnDevice())`()` Returns whether the content is downloaded on device.                                                                                                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Boolean](https://developer.android.com/reference/java/lang/Boolean.html)`>`                                                              | [isExplicitContent](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#isExplicitContent())`()` Returns whether the content is explicit.                                                                                                                          |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Boolean](https://developer.android.com/reference/java/lang/Boolean.html)`>`                                                              | [isTalk](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#isTalk())`()` Returns whether the entity is a talk (podcast).                                                                                                                                         |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Boolean](https://developer.android.com/reference/java/lang/Boolean.html)`>`                                                              | [isVideoSupported](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#isVideoSupported())`()` Returns whether the entity is a video.                                                                                                                              |
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)                                                                                                                                                              | [toBundle](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/GenericAudioEntity#toBundle())`()`                                                                                                                                                                                     |

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

### actionUri

```
public final Uri actionUri
```  

### displayTimeWindows

```
public final ImmutableList<DisplayTimeWindow> displayTimeWindows
```  

### listenNextType

```
@ListenNextType
public final int listenNextType
```  

### subtitleList

```
public final ImmutableList<String> subtitleList
```  

## Public methods

### getActionUri

```
public Uri getActionUri()
```

Returns the action uri of the entity.  

### getCallout

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

Returns the callout of the entity.  

### getCalloutFinePrint

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

Returns the callout fine print of the entity.  

### getDisplayTimeWindows

```
public ImmutableList<DisplayTimeWindow> getDisplayTimeWindows()
```

Returns the display time windows of the entity.  

### getEntityId

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

Returns the id of the entity.  

### getLastEngagementTimeMillis

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

Returns the last engagement time in milliseconds.  

### getListenNextType

```
@ListenNextType
public int getListenNextType()
```

Returns the listen next type of the entity.  

### getName

```
public String getName()
```

Returns the name of the entity.  

### getPosterImages

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

Returns the poster image of the entity.  

### getPrice

```
public Optional<Price> getPrice()
```

Returns the price of the entity.  

### getProgressPercentComplete

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

Returns the progress percent complete of the entity.  

### getRating

```
public Optional<Rating> getRating()
```

Returns the rating of the entity.  

### getSubtitleList

```
public ImmutableList<String> getSubtitleList()
```

Returns a list of subtitles of the entity.  

### isArtist

```
public Optional<Boolean> isArtist()
```

Returns whether the entity is a music artist.  

### isBook

```
public Optional<Boolean> isBook()
```

Returns whether the entity is a book.  

### isDownloadedOnDevice

```
public Optional<Boolean> isDownloadedOnDevice()
```

Returns whether the content is downloaded on device.  

### isExplicitContent

```
public Optional<Boolean> isExplicitContent()
```

Returns whether the content is explicit.  

### isTalk

```
public Optional<Boolean> isTalk()
```

Returns whether the entity is a talk (podcast).  

### isVideoSupported

```
public Optional<Boolean> isVideoSupported()
```

Returns whether the entity is a video.  

### toBundle

```
public Bundle toBundle()
```