PointOfInterestEntity.Builder


public final class PointOfInterestEntity.Builder


Builder class for PointOfInterestEntity.

Summary

Public constructors

Public methods

PointOfInterestEntity.Builder

Add a badge (image/text) for the point of interest entity. e.g. “7 wonder of the world”, “Best trail 2024”

PointOfInterestEntity.Builder

Add badges for the point of interest entity.

PointOfInterestEntity.Builder

Add eligible content categories for the point of interest entity.

PointOfInterestEntity.Builder

Add eligible content category for the point of interest entity.

PointOfInterestEntity.Builder

Add a poster image of the entity.

PointOfInterestEntity.Builder

Add poster images of the entity.

PointOfInterestEntity.Builder

Add a subtitle for the point of interest entity. e.g. "Trail length", "Elev.

PointOfInterestEntity.Builder

Add subtitles for the point of interest entity.

PointOfInterestEntity
PointOfInterestEntity.Builder

Sets the action link uri for the point of interest entity.

PointOfInterestEntity.Builder

Sets the availability time window for the point of interest entity.

PointOfInterestEntity.Builder

Sets the description for the point of interest entity.

PointOfInterestEntity.Builder

Sets content id of the entity.

PointOfInterestEntity.Builder

Sets the last engagement time for the point of interest entity.

PointOfInterestEntity.Builder

Sets the location/address of the point of interest entity.

PointOfInterestEntity.Builder

Sets the price for the point of interest entity;

PointOfInterestEntity.Builder

Sets the price callout for the point of interest entity. e.g. “Limited offer"

PointOfInterestEntity.Builder

Sets the rating for the point of interest entity.

PointOfInterestEntity.Builder

Sets the title of the point of interest entity.

Public constructors

Builder

public Builder()

Public methods

addBadge

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addBadge(Badge badge)

Add a badge (image/text) for the point of interest entity. e.g. “7 wonder of the world”, “Best trail 2024”

Optional.

addBadges

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

Add badges for the point of interest entity.

Optional.

addContentCategories

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

Add eligible content categories for the point of interest entity.

Optional.

addContentCategory

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

Add eligible content category for the point of interest entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addSubtitle(String subtitle)

Add a subtitle for the point of interest entity. e.g. "Trail length", "Elev. Gain", "Duration", "Difficulty level", “Day trips”, “Safari”, etc.

Optional.

addSubtitles

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

Add subtitles for the point of interest entity.

Optional.

build

public PointOfInterestEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the point of interest entity.

Required.

setAvailabilityTimeWindow

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setAvailabilityTimeWindow(
    AvailabilityTimeWindow availabilityTimeWindow
)

Sets the availability time window for the point of interest entity.

This can refer to time the pointOfInterest entity is opened for the day/dates between which the pointOfInterest is available.

Optional.

setDescription

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setDescription(String description)

Sets the description for the point of interest entity.

Optional.

setEntityId

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setLastEngagementTime

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setLastEngagementTime(Instant lastEngagementTime)

Sets the last engagement time for the point of interest entity.

Optional.

setLocation

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setLocation(Address location)

Sets the location/address of the point of interest entity.

Required.

setPrice

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setPrice(Price price)

Sets the price for the point of interest entity;

Optional.

setPriceCallout

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setPriceCallout(String priceCallout)

Sets the price callout for the point of interest entity. e.g. “Limited offer"

Optional.

setRating

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setRating(Rating rating)

Sets the rating for the point of interest entity.

Optional.

setTitle

@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setTitle(String title)

Sets the title of the point of interest entity.

Required.