# PersonEntity

# PersonEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing a Person Entity.

## Summary

|                                                                                                                                                                                                                                                                                                         ### Nested types                                                                                                                                                                                                                                                                                                         |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[PersonEntity.Builder](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity.Builder) Builder class for[PersonEntity](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity).                                                                                                                                                                                                                                                                                                                                           |
| `@`[IntDef](https://developer.android.com/reference/androidx/annotation/IntDef.html)`(value = [EligibleContentCategory.TYPE_SPORTS, EligibleContentCategory.TYPE_HOME_AND_AUTO, EligibleContentCategory.TYPE_HEALTH_AND_FITNESS, EligibleContentCategory.TYPE_DATING])` `@`[Retention](https://developer.android.com/reference/java/lang/annotation/Retention.html)`(value = RetentionPolicy.SOURCE)` `public annotation `[PersonEntity.EligibleContentCategory](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity.EligibleContentCategory) Content category of the person entity. |

|                                               ### Public fields                                               |
|---------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|
| `final `[Profile](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Profile) | [profile](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#profile()) |

|                                                                                             ### Public methods                                                                                             |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                        | [getActionLinkUri](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getActionLinkUri())`()` Returns the action link uri of the person entity.                                         |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Badge](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Badge)`>`                                 | [getBadgeList](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getBadgeList())`()` Returns the list of badges (image/text) for the person entity e.g. "Top pro", etc.                |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`                                                         | [getContentCategoryList](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getContentCategoryList())`()` Returns content categories of the person entity.                              |
| [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/social/datamodel/PersonEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the person entity.         |
| [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/social/datamodel/PersonEntity#getEntityId())`()` Returns the id of the entity.                                                                       |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`           | [getHeaderImage](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getHeaderImage())`()` Returns the header image of the person entity.                                                |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)`>`       | [getLocation](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getLocation())`()` Returns the location/address of the person entity.                                                  |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Popularity](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Popularity)`>` | [getPopularity](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getPopularity())`()` Returns the popularity for the person entity e.g. # followers, # reviews, # likes (emoji), etc. |
| [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/social/datamodel/PersonEntity#getPosterImages())`()` Returns the poster image of the entity.                                                     |
| [Profile](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Profile)                                                                                                      | [getProfile](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getProfile())`()` Returns the title of the person entity.                                                               |
| [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/social/datamodel/PersonEntity#getRating())`()` Returns the rating of the person entity.                                                                |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                           | [getSubtitleList](https://developer.android.com/reference/com/google/android/engage/social/datamodel/PersonEntity#getSubtitleList())`()` Returns the list of subtitles for the person entity e.g. "Responds in about 3 hours", etc.  |

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

### profile

```
public final Profile profile
```  

## Public methods

### getActionLinkUri

```
public Uri getActionLinkUri()
```

Returns the action link uri of the person entity.  

### getBadgeList

```
public List<Badge> getBadgeList()
```

Returns the list of badges (image/text) for the person entity e.g. "Top pro", etc.  

### getContentCategoryList

```
public List<Integer> getContentCategoryList()
```

Returns content categories of the person entity.  

### getDescription

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

Returns the description (typically a single paragraph of text) for the person entity.  

### getEntityId

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

Returns the id of the entity.  

### getHeaderImage

```
public Optional<Image> getHeaderImage()
```

Returns the header image of the person entity.  

### getLocation

```
public Optional<Address> getLocation()
```

Returns the location/address of the person entity.  

### getPopularity

```
public Optional<Popularity> getPopularity()
```

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

### getPosterImages

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

Returns the poster image of the entity.  

### getProfile

```
public Profile getProfile()
```

Returns the title of the person entity.  

### getRating

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

Returns the rating of the person entity.  

### getSubtitleList

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

Returns the list of subtitles for the person entity e.g. "Responds in about 3 hours", etc.