# GenericAudioEntity

# GenericAudioEntity

*** ** * ** ***

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

<br />

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

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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)`!>!`                                                                                                                                 | [getCallout](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getCalloutFinePrint](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#getCalloutFinePrint())`()` Returns the callout fine print of the entity.                      |
| [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/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | [getLastEngagementTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds.  |
| [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/GenericAudioEntity#getName())`()` Returns the name 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)`<`[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/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/kotlin/com/google/android/engage/common/datamodel/Price)`!>!`                                                                                                         | [getPrice](https://developer.android.com/reference/kotlin/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)`<`[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/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/kotlin/com/google/android/engage/common/datamodel/Rating)`!>!`                                                                                                       | [getRating](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#getRating())`()` Returns the rating of the entity.                                                      |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!>!`                                                                                                                               | [isArtist](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!>!`                                                                                                                               | [isBook](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!>!`                                                                                                                               | [isDownloadedOnDevice](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!>!`                                                                                                                               | [isExplicitContent](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!>!`                                                                                                                               | [isTalk](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!>!`                                                                                                                               | [isVideoSupported](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#toBundle())`()`                                                                                          |

|                                                                                                             ### Public properties                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`                                                                                                                                                                         | [actionUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#actionUri())                                                                                                                                        |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` | [displayTimeWindows](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#displayTimeWindows())                                                                                                                      |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                     | `@`[ListenNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/ListenNextType) [listenNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#listenNextType()) |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                 | [subtitleList](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity#subtitleList())                                                                                                                                  |

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

### getCallout

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

Returns the callout of the entity.  

### getCalloutFinePrint

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

Returns the callout fine print of the entity.  

### getEntityId

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

Returns the id of the entity.  

### getLastEngagementTimeMillis

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

Returns the last engagement time in milliseconds.  

### getName

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

Returns the name of the entity.  

### getPosterImages

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

Returns the poster image of the entity.  

### getPrice

```
fun getPrice(): Optional<Price!>!
```

Returns the price of the entity.  

### getProgressPercentComplete

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

Returns the progress percent complete of the entity.  

### getRating

```
fun getRating(): Optional<Rating!>!
```

Returns the rating of the entity.  

### isArtist

```
fun isArtist(): Optional<Boolean!>!
```

Returns whether the entity is a music artist.  

### isBook

```
fun isBook(): Optional<Boolean!>!
```

Returns whether the entity is a book.  

### isDownloadedOnDevice

```
fun isDownloadedOnDevice(): Optional<Boolean!>!
```

Returns whether the content is downloaded on device.  

### isExplicitContent

```
fun isExplicitContent(): Optional<Boolean!>!
```

Returns whether the content is explicit.  

### isTalk

```
fun isTalk(): Optional<Boolean!>!
```

Returns whether the entity is a talk (podcast).  

### isVideoSupported

```
fun isVideoSupported(): Optional<Boolean!>!
```

Returns whether the entity is a video.  

### toBundle

```
fun toBundle(): Bundle!
```  

## Public properties

### actionUri

```
val actionUri: Uri!
```  

### displayTimeWindows

```
val displayTimeWindows: ImmutableList<DisplayTimeWindow!>!
```  

### listenNextType

```
@ListenNextType
val listenNextType: Int
```  

### subtitleList

```
val subtitleList: ImmutableList<String!>!
```