# GenericFeaturedEntity.Builder

# GenericFeaturedEntity.Builder

*** ** * ** ***

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

<br />

```
class GenericFeaturedEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                                    ### Public functions                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAllDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.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 display time windows for the generic featured entity. |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadge](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#addBadge(com.google.android.engage.common.datamodel.Badge))`(badge: `[Badge](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Badge)`!)` Add a badge (image/text) for the generic entity.                                                                                                                                                                                                                                                                                                                     |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadges](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#addBadges(java.util.List<com.google.android.engage.common.datamodel.Badge>))`(badges: (`[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)`<`[Badge](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Badge)`!>!)` Add badges of the generic entity.                                                                                                             |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentCategories](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#addContentCategories(java.util.List<java.lang.Integer>))`(contentCategories: (`[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)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!)` Add eligible content categories for the generic featured entity.                                                                                                          |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#addContentCategory(int))`(` ` @`[GenericFeaturedEntity.EligibleContentCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.EligibleContentCategory)` contentCategory: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) `)` Add eligible content category for the generic featured entity.                                                                                                                                                    |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.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 a display time window for the generic featured entity.                                                                                                                                                                                                                                  |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.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 generic featured entity.                                                                                                                                                                                                                                                                                                       |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.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.                                                                                                  |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitle](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#addSubtitle(java.lang.String))`(subtitle: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Add a subtitle of the generic entity.                                                                                                                                                                                                                                                                                                                                                                               |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitles](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.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 of the generic entity.                                                                                                                                                         |
| [GenericFeaturedEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#setActionUri(android.net.Uri))`(actionUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the action uri of the generic featured entity.                                                                                                                                                                                                                                                                                                                                                                            |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#setDescription(java.lang.String))`(description: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the description (typically a single paragraph of text) of the generic featured entity.                                                                                                                                                                                                                                                                                                                |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the generic featured entity.                                                                                                                                                                                                                                                                                                                                                                     |
| [GenericFeaturedEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/GenericFeaturedEntity.Builder#setTitle(java.lang.String))`(title: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the name/title of the generic entity.                                                                                                                                                                                                                                                                                                                                                                                   |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addAllDisplayTimeWindow

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

Adds display time windows for the generic featured entity.

Optional.  

### addBadge

```
@CanIgnoreReturnValue
fun addBadge(badge: Badge!): GenericFeaturedEntity.Builder!
```

Add a badge (image/text) for the generic entity.

Optional.  

### addBadges

```
@CanIgnoreReturnValue
fun addBadges(badges: (Mutable)List<Badge!>!): GenericFeaturedEntity.Builder!
```

Add badges of the generic entity.

Optional.  

### addContentCategories

```
@CanIgnoreReturnValue
fun addContentCategories(contentCategories: (Mutable)List<Int!>!): GenericFeaturedEntity.Builder!
```

Add eligible content categories for the generic featured entity.

Optional.  

### addContentCategory

```
@CanIgnoreReturnValue
fun addContentCategory(
    @GenericFeaturedEntity.EligibleContentCategory contentCategory: Int
): GenericFeaturedEntity.Builder!
```

Add eligible content category for the generic featured entity.

Optional.  

### addDisplayTimeWindow

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

Adds a display time window for the generic featured entity.

Optional.  

### addPosterImage

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

Add a poster image of the generic featured entity.

Required.  

### addPosterImages

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

Add poster images of the entity.

Required.  

### addSubtitle

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

Add a subtitle of the generic entity.

Optional.  

### addSubtitles

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

Add subtitles of the generic entity.

Optional.  

### build

```
fun build(): GenericFeaturedEntity!
```  

### setActionUri

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

Sets the action uri of the generic featured entity.

Required.  

### setDescription

```
@CanIgnoreReturnValue
fun setDescription(description: String!): GenericFeaturedEntity.Builder!
```

Sets the description (typically a single paragraph of text) of the generic featured entity.

Optional.  

### setEntityId

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

Sets content id of the generic featured entity.

Optional.  

### setTitle

```
@CanIgnoreReturnValue
fun setTitle(title: String!): GenericFeaturedEntity.Builder!
```

Sets the name/title of the generic entity.

Optional.