# PersonEntity.Builder

# PersonEntity.Builder

*** ** * ** ***

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

<br />

```
class PersonEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                           ### Public functions                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadge](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.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 person entity e.g. "Top pro", etc.                                                                                                                                                                                                 |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadges](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.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 for the person entity.            |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentCategories](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.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 person entity.                   |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#addContentCategory(int))`(` ` @`[PersonEntity.EligibleContentCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.EligibleContentCategory)` contentCategory: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) `)` Add eligible content category for the person entity.                                                                               |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.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.                                                                                                                                                                                                                       |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.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. |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitle](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#addSubtitle(java.lang.String))`(subtitle: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Add a subtitle for the person entity. e.g. "Responds in about 3 hours", etc.                                                                                                                                                                                                                                       |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitles](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.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 person entity.                                                        |
| [PersonEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionLinkUri](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#setActionLinkUri(android.net.Uri))`(actionLinkUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the action link uri for the person entity.                                                                                                                                                                                                                                                                   |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#setDescription(java.lang.String))`(description: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the description for the person entity.                                                                                                                                                                                                                                                               |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                     |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setHeaderImage](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#setHeaderImage(com.google.android.engage.common.datamodel.Image))`(headerImage: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Sets the header image of the person entity.                                                                                                                                                                                                       |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLocation](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#setLocation(com.google.android.engage.common.datamodel.Address))`(location: `[Address](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Address)`!)` Sets the location/address of the person entity.                                                                                                                                                                                                      |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPopularity](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#setPopularity(com.google.android.engage.social.datamodel.Popularity))`(popularity: `[Popularity](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Popularity)`!)` Sets the popularity for the person entity e.g. # followers, # reviews, # likes (emoji), etc.                                                                                                                                          |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setProfile](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder#setProfile(com.google.android.engage.social.datamodel.Profile))`(profile: `[Profile](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile)`!)` Sets the profile of the person entity.                                                                                                                                                                                                                  |
| [PersonEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setRating](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PersonEntity.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 person entity.                                                                                                                                                                                                                        |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addBadge

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

Add a badge (image/text) for the person entity e.g. "Top pro", etc.

Optional.  

### addBadges

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

Add badges for the person entity.

Optional.  

### addContentCategories

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

Add eligible content categories for the person entity.

Optional.  

### addContentCategory

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

Add eligible content category for the person entity.

Optional.  

### addPosterImage

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

Add a poster image of the entity.

Required.  

### addPosterImages

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

Add poster images of the entity.

Required.  

### addSubtitle

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

Add a subtitle for the person entity. e.g. "Responds in about 3 hours", etc.

Optional.  

### addSubtitles

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

Add subtitles for the person entity.

Optional.  

### build

```
fun build(): PersonEntity!
```  

### setActionLinkUri

```
@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): PersonEntity.Builder!
```

Sets the action link uri for the person entity.

Required.  

### setDescription

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

Sets the description for the person entity.

Optional.  

### setEntityId

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

Sets content id of the entity.

Optional.  

### setHeaderImage

```
@CanIgnoreReturnValue
fun setHeaderImage(headerImage: Image!): PersonEntity.Builder!
```

Sets the header image of the person entity.

Optional.  

### setLocation

```
@CanIgnoreReturnValue
fun setLocation(location: Address!): PersonEntity.Builder!
```

Sets the location/address of the person entity.

Optional.  

### setPopularity

```
@CanIgnoreReturnValue
fun setPopularity(popularity: Popularity!): PersonEntity.Builder!
```

Sets the popularity for the person entity e.g. # followers, # reviews, # likes (emoji), etc.

Optional.  

### setProfile

```
@CanIgnoreReturnValue
fun setProfile(profile: Profile!): PersonEntity.Builder!
```

Sets the profile of the person entity.

Required.  

### setRating

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

Sets the rating for the person entity.

Optional.