# AudiobookEntity

# AudiobookEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing an audiobook.

## Summary

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

|                                                                    ### Public fields                                                                     |
|----------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
| `final `[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | [authors](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#authors())     |
| `final `[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | [narrators](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#narrators()) |

|                                                                                         ### Public methods                                                                                         |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                | [getActionLinkUri](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getActionLinkUri())`()` Returns the action link associated with the book.                                          |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                   | [getAuthors](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getAuthors())`()` Returns the list of authors of the audiobook.                                                          |
| `int`                                                                                                                                                                                              | [getAvailability](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getAvailability())`()`                                                                                              |
| [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)`>`                           | [getContinueBookType](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getContinueBookType())`()` Returns the read next type of the book.                                              |
| [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/books/datamodel/AudiobookEntity#getDescription())`()` Returns the description of the book series, if available                                       |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [getDisplayTimeWindows](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getDisplayTimeWindows())`()`                                                                                  |
| [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/books/datamodel/AudiobookEntity#getDurationMillis())`()` Returns the duration of the audiobook, 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/books/datamodel/AudiobookEntity#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/books/datamodel/AudiobookEntity#getGenres())`()` Returns the list of genre of the book series                                                             |
| [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/books/datamodel/AudiobookEntity#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/books/datamodel/AudiobookEntity#getName())`()` Returns the name of the entity.                                                                              |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                   | [getNarrators](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getNarrators())`()` Returns the list of narrators of the audiobook.                                                    |
| [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/books/datamodel/AudiobookEntity#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/books/datamodel/AudiobookEntity#getPrice())`()` Returns the price of the audiobook, 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)`>`                           | [getProgressPercentComplete](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#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)`>`                                 | [getPublishDateEpochMillis](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getPublishDateEpochMillis())`()` Returns the publishing date associated with the audiobook, if available. |
| [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/books/datamodel/AudiobookEntity#getRating())`()`                                                                                                          |
| [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)`>`                             | [getSeriesName](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getSeriesName())`()` Returns the name of the series that the audiobook belongs to                                     |
| [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)`>`                           | [getSeriesUnitIndex](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#getSeriesUnitIndex())`()` Returns the index value of the audiobook in the book series                            |
| `boolean`                                                                                                                                                                                          | [isDownloadedOnDevice](https://developer.android.com/reference/com/google/android/engage/books/datamodel/AudiobookEntity#isDownloadedOnDevice())`()`                                                                                    |

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

### authors

```
public final List<String> authors
```  

### narrators

```
public final List<String> narrators
```  

## Public methods

### getActionLinkUri

```
public Uri getActionLinkUri()
```

Returns the action link associated with the book.  

### getAuthors

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

Returns the list of authors of the audiobook.  

### getAvailability

```
public int getAvailability()
```  

### getContinueBookType

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

Returns the read next type of the book.  

### getDescription

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

Returns the description of the book series, if available  

### getDisplayTimeWindows

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

### getDurationMillis

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

Returns the duration of the audiobook, if available  

### getEntityId

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

Returns the id of the entity.  

### getGenres

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

Returns the list of genre of the book series  

### getLastEngagementTimeMillis

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

Returns the last engagement time in milliseconds.  

### getName

```
public String getName()
```

Returns the name of the entity.  

### getNarrators

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

Returns the list of narrators of the audiobook.  

### getPosterImages

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

Returns the poster image of the entity.  

### getPrice

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

Returns the price of the audiobook, if available  

### getProgressPercentComplete

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

Returns the percentage progress completed.  

### getPublishDateEpochMillis

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

Returns the publishing date associated with the audiobook, if available.  

### getRating

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

### getSeriesName

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

Returns the name of the series that the audiobook belongs to  

### getSeriesUnitIndex

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

Returns the index value of the audiobook in the book series  

### isDownloadedOnDevice

```
public boolean isDownloadedOnDevice()
```