PersonEntity.Builder


public final class PersonEntity.Builder


Builder class for PersonEntity.

Summary

Public constructors

Public methods

PersonEntity.Builder

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

PersonEntity.Builder

Add badges for the person entity.

PersonEntity.Builder

Add eligible content categories for the person entity.

PersonEntity.Builder

Add eligible content category for the person entity.

PersonEntity.Builder

Add a poster image of the entity.

PersonEntity.Builder

Add poster images of the entity.

PersonEntity.Builder

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

PersonEntity.Builder

Add subtitles for the person entity.

PersonEntity
PersonEntity.Builder

Sets the action link uri for the person entity.

PersonEntity.Builder

Sets the description for the person entity.

PersonEntity.Builder

Sets content id of the entity.

PersonEntity.Builder

Sets the header image of the person entity.

PersonEntity.Builder

Sets the location/address of the person entity.

PersonEntity.Builder

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

PersonEntity.Builder

Sets the profile of the person entity.

PersonEntity.Builder

Sets the rating for the person entity.

Public constructors

Builder

public Builder()

Public methods

addBadge

@CanIgnoreReturnValue
public PersonEntity.Builder addBadge(Badge badge)

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

Optional.

addBadges

@CanIgnoreReturnValue
public PersonEntity.Builder addBadges(List<Badge> badges)

Add badges for the person entity.

Optional.

addContentCategories

@CanIgnoreReturnValue
public PersonEntity.Builder addContentCategories(List<Integer> contentCategories)

Add eligible content categories for the person entity.

Optional.

addContentCategory

@CanIgnoreReturnValue
public PersonEntity.Builder addContentCategory(
    @PersonEntity.EligibleContentCategory int contentCategory
)

Add eligible content category for the person entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public PersonEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
public PersonEntity.Builder addPosterImages(List<Image> images)

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public PersonEntity.Builder addSubtitle(String subtitle)

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

Optional.

addSubtitles

@CanIgnoreReturnValue
public PersonEntity.Builder addSubtitles(List<String> subtitles)

Add subtitles for the person entity.

Optional.

build

public PersonEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public PersonEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the person entity.

Required.

setDescription

@CanIgnoreReturnValue
public PersonEntity.Builder setDescription(String description)

Sets the description for the person entity.

Optional.

setEntityId

@CanIgnoreReturnValue
public PersonEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setHeaderImage

@CanIgnoreReturnValue
public PersonEntity.Builder setHeaderImage(Image headerImage)

Sets the header image of the person entity.

Optional.

setLocation

@CanIgnoreReturnValue
public PersonEntity.Builder setLocation(Address location)

Sets the location/address of the person entity.

Optional.

setPopularity

@CanIgnoreReturnValue
public PersonEntity.Builder setPopularity(Popularity popularity)

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

Optional.

setProfile

@CanIgnoreReturnValue
public PersonEntity.Builder setProfile(Profile profile)

Sets the profile of the person entity.

Required.

setRating

@CanIgnoreReturnValue
public PersonEntity.Builder setRating(Rating rating)

Sets the rating for the person entity.

Optional.