# GenericAudioEntity.Builder

# GenericAudioEntity.Builder

*** ** * ** ***

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

<br />

```
class GenericAudioEntity.Builder
```

<br />

*** ** * ** ***

Builder class for[GenericAudioEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity).

## Summary

|                                                           ### Public constructors                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#Builder())`()` |

|                                                                 ### Public functions                                                                 |
|------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAllDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#addAllDisplayTimeWindow(java.util.List<com.google.android.engage.common.datamodel.DisplayTimeWindow>))`(` ` displayTimeWindows: (`[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)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` `)` Adds the display time window for the entity |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#addDisplayTimeWindow(com.google.android.engage.common.datamodel.DisplayTimeWindow))`(displayTimeWindow: `[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!)` Adds the display time window for the entity                                                                                                                                                                                                                                   |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(image: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Add a poster image of the entity.                                                                                                                                                                                                                                                                                                         |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#addPosterImages(java.util.List<com.google.android.engage.common.datamodel.Image>))`(images: (`[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)`!>!)` Add poster images of the entity.                                                                                   |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitle](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#addSubtitle(java.lang.String))`(subtitle: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Add a subtitle for the audio entity.                                                                                                                                                                                                                                                                                                                                                                 |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitles](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#addSubtitles(java.util.List<java.lang.String>))`(subtitles: (`[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)`!>!)` Add subtitles for the audio entity.                                                                                                                                           |
| [GenericAudioEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionUri](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setActionUri(android.net.Uri))`(actionUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the action uri for the entity.                                                                                                                                                                                                                                                                                                                                                                             |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCallout](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setCallout(java.lang.String))`(callout: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the callout for the entity.                                                                                                                                                                                                                                                                                                                                                                        |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCalloutFinePrint](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setCalloutFinePrint(java.lang.String))`(calloutFinePrint: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the callout fine print for the entity.                                                                                                                                                                                                                                                                                                                                  |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDownloadedOnDevice](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setDownloadedOnDevice(boolean))`(downloadedOnDevice: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets whether the content is downloaded on device.                                                                                                                                                                                                                                                                                                                              |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                                                                                                       |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setExplicitContent](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setExplicitContent(boolean))`(explicitContent: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets whether the content is explicit.                                                                                                                                                                                                                                                                                                                                                   |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setIsArtist](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setIsArtist(java.lang.Boolean))`(isArtist: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!)` Sets whether the entity is a music artist                                                                                                                                                                                                                                                                                                                                                         |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setIsBook](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setIsBook(boolean))`(isBook: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets whether the entity is a book.                                                                                                                                                                                                                                                                                                                                                                                 |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setIsTalk](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setIsTalk(java.lang.Boolean))`(isTalk: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!)` Sets whether the entity is a talk (podcast).                                                                                                                                                                                                                                                                                                                                                            |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setIsVideoSupported](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setIsVideoSupported(java.lang.Boolean))`(isVideoSupported: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`!)` Sets whether the entity is a video.                                                                                                                                                                                                                                                                                                                                       |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLastEngagementTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setLastEngagementTimeMillis(long))`(lastEngagementTimeMillis: `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the last engagement time for the entity.                                                                                                                                                                                                                                                                                                                         |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setListenNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setListenNextType(int))`(@`[ListenNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/ListenNextType)` listenNextType: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the listen next type for the entity.                                                                                                                                                                                                                                 |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setName](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setName(java.lang.String))`(name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the name of the entity.                                                                                                                                                                                                                                                                                                                                                                                     |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setPrice(com.google.android.engage.common.datamodel.Price))`(price: `[Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!)` Sets the price for the entity.                                                                                                                                                                                                                                                                                                                        |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setProgressPercentComplete](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setProgressPercentComplete(int))`(progressPercentComplete: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the progress percent complete for the entity.                                                                                                                                                                                                                                                                                                                          |
| [GenericAudioEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setRating](https://developer.android.com/reference/kotlin/com/google/android/engage/audio/datamodel/GenericAudioEntity.Builder#setRating(com.google.android.engage.common.datamodel.Rating))`(rating: `[Rating](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating)`!)` Sets the rating for the entity.                                                                                                                                                                                                                                                                                                                 |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addAllDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): GenericAudioEntity.Builder!
```

Adds the display time window for the entity

Optional.  

### addDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): GenericAudioEntity.Builder!
```

Adds the display time window for the entity

Optional.  

### addPosterImage

```
@CanIgnoreReturnValue
fun addPosterImage(image: Image!): GenericAudioEntity.Builder!
```

Add a poster image of the entity.

Required.  

### addPosterImages

```
@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): GenericAudioEntity.Builder!
```

Add poster images of the entity.

Required.  

### addSubtitle

```
@CanIgnoreReturnValue
fun addSubtitle(subtitle: String!): GenericAudioEntity.Builder!
```

Add a subtitle for the audio entity.  

### addSubtitles

```
@CanIgnoreReturnValue
fun addSubtitles(subtitles: (Mutable)List<String!>!): GenericAudioEntity.Builder!
```

Add subtitles for the audio entity.  

### build

```
fun build(): GenericAudioEntity!
```  

### setActionUri

```
@CanIgnoreReturnValue
fun setActionUri(actionUri: Uri!): GenericAudioEntity.Builder!
```

Sets the action uri for the entity.

Required.  

### setCallout

```
@CanIgnoreReturnValue
fun setCallout(callout: String!): GenericAudioEntity.Builder!
```

Sets the callout for the entity.

Optional.  

### setCalloutFinePrint

```
@CanIgnoreReturnValue
fun setCalloutFinePrint(calloutFinePrint: String!): GenericAudioEntity.Builder!
```

Sets the callout fine print for the entity.

Optional.  

### setDownloadedOnDevice

```
@CanIgnoreReturnValue
fun setDownloadedOnDevice(downloadedOnDevice: Boolean): GenericAudioEntity.Builder!
```

Sets whether the content is downloaded on device.

Optional.  

### setEntityId

```
@CanIgnoreReturnValue
fun setEntityId(entityId: String!): GenericAudioEntity.Builder!
```

Sets content id of the entity.

Optional.  

### setExplicitContent

```
@CanIgnoreReturnValue
fun setExplicitContent(explicitContent: Boolean): GenericAudioEntity.Builder!
```

Sets whether the content is explicit.

Required.  

### setIsArtist

```
@CanIgnoreReturnValue
fun setIsArtist(isArtist: Boolean!): GenericAudioEntity.Builder!
```

Sets whether the entity is a music artist

Optional  

### setIsBook

```
@CanIgnoreReturnValue
fun setIsBook(isBook: Boolean): GenericAudioEntity.Builder!
```

Sets whether the entity is a book.

Optional.  

### setIsTalk

```
@CanIgnoreReturnValue
fun setIsTalk(isTalk: Boolean!): GenericAudioEntity.Builder!
```

Sets whether the entity is a talk (podcast).

Optional.  

### setIsVideoSupported

```
@CanIgnoreReturnValue
fun setIsVideoSupported(isVideoSupported: Boolean!): GenericAudioEntity.Builder!
```

Sets whether the entity is a video.

Optional.  

### setLastEngagementTimeMillis

```
@CanIgnoreReturnValue
fun setLastEngagementTimeMillis(lastEngagementTimeMillis: Long): GenericAudioEntity.Builder!
```

Sets the last engagement time for the entity.

Optional.  

### setListenNextType

```
@CanIgnoreReturnValue
fun setListenNextType(@ListenNextType listenNextType: Int): GenericAudioEntity.Builder!
```

Sets the listen next type for the entity.

Optional.  

### setName

```
@CanIgnoreReturnValue
fun setName(name: String!): GenericAudioEntity.Builder!
```

Sets the name of the entity.

Required.  

### setPrice

```
@CanIgnoreReturnValue
fun setPrice(price: Price!): GenericAudioEntity.Builder!
```

Sets the price for the entity.

Optional.  

### setProgressPercentComplete

```
@CanIgnoreReturnValue
fun setProgressPercentComplete(progressPercentComplete: Int): GenericAudioEntity.Builder!
```

Sets the progress percent complete for the entity.

Optional.  

### setRating

```
@CanIgnoreReturnValue
fun setRating(rating: Rating!): GenericAudioEntity.Builder!
```

Sets the rating for the entity.

Optional.