GenericFeaturedEntity.Builder


public final class GenericFeaturedEntity.Builder


Builder class for GenericFeaturedEntity.

Summary

Public constructors

Public methods

GenericFeaturedEntity.Builder

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

GenericFeaturedEntity.Builder

Add badges of the generic entity.

GenericFeaturedEntity.Builder

Add eligible content categories for the generic featured entity.

GenericFeaturedEntity.Builder

Add eligible content category for the generic featured entity.

GenericFeaturedEntity.Builder

Add a poster image of the generic featured entity.

GenericFeaturedEntity.Builder

Add poster images of the entity.

GenericFeaturedEntity.Builder

Add a subtitle of the generic entity.

GenericFeaturedEntity.Builder

Add subtitles of the generic entity.

GenericFeaturedEntity
GenericFeaturedEntity.Builder

Sets the action uri of the generic featured entity.

GenericFeaturedEntity.Builder

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

GenericFeaturedEntity.Builder

Sets content id of the generic featured entity.

GenericFeaturedEntity.Builder

Sets the name/title of the generic entity.

Public constructors

Builder

public Builder()

Public methods

addBadge

@CanIgnoreReturnValue
public GenericFeaturedEntity.Builder addBadge(Badge badge)

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

Optional.

addBadges

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

Add badges of the generic entity.

Optional.

addContentCategories

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

Add eligible content categories for the generic featured entity.

Optional.

addContentCategory

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

Add eligible content category for the generic featured entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public GenericFeaturedEntity.Builder addPosterImage(Image image)

Add a poster image of the generic featured entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public GenericFeaturedEntity.Builder addSubtitle(String subtitle)

Add a subtitle of the generic entity.

Optional.

addSubtitles

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

Add subtitles of the generic entity.

Optional.

build

public GenericFeaturedEntity build()

setActionUri

@CanIgnoreReturnValue
public GenericFeaturedEntity.Builder setActionUri(Uri actionUri)

Sets the action uri of the generic featured entity.

Required.

setDescription

@CanIgnoreReturnValue
public GenericFeaturedEntity.Builder setDescription(String description)

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

Optional.

setEntityId

@CanIgnoreReturnValue
public GenericFeaturedEntity.Builder setEntityId(String entityId)

Sets content id of the generic featured entity.

Optional.

setTitle

@CanIgnoreReturnValue
public GenericFeaturedEntity.Builder setTitle(String title)

Sets the name/title of the generic entity.

Optional.