# PodcastEpisodeEntity

# PodcastEpisodeEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing a podcast episode.

## Summary

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

|                                                                                                                                               ### 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)`!>!`                                                                                                                                 | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#getEntityId())`()` Returns the id 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)`!>!`                                                                                                                                       | [getEpisodeIndex](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#getEpisodeIndex())`()` Returns the index of the episode in the podcast series                                                                                                           |
| `(`[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)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                         | [getGenres](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#getGenres())`()` Returns the list of genres of the podcast episode                                                                                                                            |
| `(`[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)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                         | [getHosts](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#getHosts())`()` Returns the list of hosts of the podcast episode                                                                                                                               |
| [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)`!>!`                                                                                                                                              | [getInfoPageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#getInfoPageUri())`()` Returns the info page uri of the podcast episode, if available                                                                                                     |
| [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/PodcastEpisodeEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds.                                                                                        |
| [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)`!>!`                                                                                                                                       | [getListenNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#getListenNextType())`()` Returns the[ListenNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/ListenNextType)for the podcast episode. |
| [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/PodcastEpisodeEntity#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/PodcastEpisodeEntity#getPosterImages())`()` Returns the poster image 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)`!>!`                                                                                                                                 | [getProductionName](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#getProductionName())`()` Returns the name of the production of the podcast episode                                                                                                    |
| [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/PodcastEpisodeEntity#getProgressPercentComplete())`()` Returns the percentage progress completed.                                                                                                 |
| [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/PodcastEpisodeEntity#isDownloadedOnDevice())`()` Returns whether podcast episode is downloaded on device or not                                                                                         |
| [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/PodcastEpisodeEntity#isExplicitContent())`()` Returns whether the podcast episode has explicit content or not                                                                                              |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                                | [isVideoPodcast](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#isVideoPodcast())`()` Returns whether the podcast episode has video content or not                                                                                                       |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)        | [durationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#durationMillis())                 |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`              | [playBackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#playBackUri())                       |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!` | [podcastSeriesTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#podcastSeriesTitle())         |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)        | [publishDateEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/PodcastEpisodeEntity#publishDateEpochMillis()) |

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

### getDescription

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

Returns the description of the audio entity, if available  

### getEntityId

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

Returns the id of the entity.  

### getEpisodeIndex

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

Returns the index of the episode in the podcast series  

### getGenres

```
fun getGenres(): (Mutable)List<String!>!
```

Returns the list of genres of the podcast episode  

### getHosts

```
fun getHosts(): (Mutable)List<String!>!
```

Returns the list of hosts of the podcast episode  

### getInfoPageUri

```
fun getInfoPageUri(): Optional<Uri!>!
```

Returns the info page uri of the podcast episode, if available  

### getLastEngagementTimeMillis

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

Returns the last engagement time in milliseconds.  

### getListenNextType

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

Returns the[ListenNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/ListenNextType)for the podcast episode.  

### getName

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

Returns the name of the entity.  

### getPosterImages

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

Returns the poster image of the entity.  

### getProductionName

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

Returns the name of the production of the podcast episode  

### getProgressPercentComplete

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

Returns the percentage progress completed.  

### isDownloadedOnDevice

```
fun isDownloadedOnDevice(): Boolean
```

Returns whether podcast episode is downloaded on device or not  

### isExplicitContent

```
fun isExplicitContent(): Boolean
```

Returns whether the podcast episode has explicit content or not  

### isVideoPodcast

```
fun isVideoPodcast(): Boolean
```

Returns whether the podcast episode has video content or not  

## Public properties

### durationMillis

```
val durationMillis: Long
```  

### playBackUri

```
val playBackUri: Uri!
```  

### podcastSeriesTitle

```
val podcastSeriesTitle: String!
```  

### publishDateEpochMillis

```
val publishDateEpochMillis: Long
```