EventReservationEntity.Builder


public final class EventReservationEntity.Builder


Builder class for EventReservationEntity.

Summary

Public constructors

Public methods

EventReservationEntity.Builder

Add a badge (image/text) for the event reservation entity. e.g. “Onsale"

EventReservationEntity.Builder

Add badges for the event reservation entity.

EventReservationEntity.Builder

Add eligible content categories for the event reservation entity.

EventReservationEntity.Builder

Add eligible content category for the event reservation entity.

EventReservationEntity.Builder

Add a poster image of the event reservation entity.

EventReservationEntity.Builder

Add poster images of the event reservation entity.

EventReservationEntity.Builder

Add a subtitle of the event reservation entity.

EventReservationEntity.Builder

Add subtitles of the event reservation entity.

EventReservationEntity
EventReservationEntity.Builder

Sets the action uri of the event reservation entity.

EventReservationEntity.Builder

Sets the description (typically a single paragraph of text) of the event reservation entity.

EventReservationEntity.Builder

This method is deprecated.

Use setLocalizedEndTime instead.

EventReservationEntity.Builder

Sets reservation id of the event reservation entity.

EventReservationEntity.Builder

Sets the event mode of the event reservation entity.

EventReservationEntity.Builder

Sets the localized end time of the event reservation entity.

EventReservationEntity.Builder

Sets the localized start time for the event reservation entity.

EventReservationEntity.Builder

Sets the location of the event reservation entity.

EventReservationEntity.Builder

Sets the price for the event reservation entity;

EventReservationEntity.Builder

Sets the price callout text for the event reservation entity. e.g. “Limited deal"

EventReservationEntity.Builder

Sets the rating for the event reservation entity.

EventReservationEntity.Builder

Sets the reservation ID for the event reservation entity.

EventReservationEntity.Builder

Sets the service provider for the event reservation entity.

EventReservationEntity.Builder

This method is deprecated.

Use setLocalizedStartTime instead.

EventReservationEntity.Builder

Sets the name/title of the event reservation entity.

Public constructors

Builder

public Builder()

Public methods

addBadge

@CanIgnoreReturnValue
public EventReservationEntity.Builder addBadge(Badge badge)

Add a badge (image/text) for the event reservation entity. e.g. “Onsale"

Optional.

addBadges

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

Add badges for the event reservation entity.

Optional.

addContentCategories

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

Add eligible content categories for the event reservation entity.

Optional.

addContentCategory

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

Add eligible content category for the event reservation entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public EventReservationEntity.Builder addPosterImage(Image image)

Add a poster image of the event reservation entity.

Required.

addPosterImages

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

Add poster images of the event reservation entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public EventReservationEntity.Builder addSubtitle(String subtitle)

Add a subtitle of the event reservation entity.

This field can include subtitles like "Buffet", "Fine dining", etc. .

Optional.

addSubtitles

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

Add subtitles of the event reservation entity.

Optional.

build

public EventReservationEntity build()

setActionUri

@CanIgnoreReturnValue
public EventReservationEntity.Builder setActionUri(Uri actionUri)

Sets the action uri of the event reservation entity.

Required.

setDescription

@CanIgnoreReturnValue
public EventReservationEntity.Builder setDescription(String description)

Sets the description (typically a single paragraph of text) of the event reservation entity.

Optional.

setEndTime

@CanIgnoreReturnValue
public EventReservationEntity.Builder setEndTime(Long endTime)

Sets the end time of the event reservation entity.

Optional.

setEntityId

@CanIgnoreReturnValue
public EventReservationEntity.Builder setEntityId(String entityId)

Sets reservation id of the event reservation entity.

Optional.

setEventMode

@CanIgnoreReturnValue
public EventReservationEntity.Builder setEventMode(@EventMode int eventMode)

Sets the event mode of the event reservation entity.

Required.

setLocalizedEndTime

@CanIgnoreReturnValue
public EventReservationEntity.Builder setLocalizedEndTime(LocalizedTimestamp localizedEndTime)

Sets the localized end time of the event reservation entity.

Optional.

setLocalizedStartTime

@CanIgnoreReturnValue
public EventReservationEntity.Builder setLocalizedStartTime(LocalizedTimestamp localizedStartTime)

Sets the localized start time for the event reservation entity.

Required.

setLocation

@CanIgnoreReturnValue
public EventReservationEntity.Builder setLocation(Address location)

Sets the location of the event reservation entity.

Required if event mode is set to TYPE_IN_PERSON or TYPE_HYBRID.

setPrice

@CanIgnoreReturnValue
public EventReservationEntity.Builder setPrice(Price price)

Sets the price for the event reservation entity;

Optional.

setPriceCallout

@CanIgnoreReturnValue
public EventReservationEntity.Builder setPriceCallout(String priceCallout)

Sets the price callout text for the event reservation entity. e.g. “Limited deal"

Optional.

setRating

@CanIgnoreReturnValue
public EventReservationEntity.Builder setRating(Rating rating)

Sets the rating for the event reservation entity.

Optional.

setReservationId

@CanIgnoreReturnValue
public EventReservationEntity.Builder setReservationId(String reservationId)

Sets the reservation ID for the event reservation entity.

Optional.

setServiceProvider

@CanIgnoreReturnValue
public EventReservationEntity.Builder setServiceProvider(ServiceProvider serviceProvider)

Sets the service provider for the event reservation entity.

Optional.

setStartTime

@CanIgnoreReturnValue
public EventReservationEntity.Builder setStartTime(Long startTime)

Sets the epoch timestamp (in milliseconds) for the start time for the event reservation entity.

Required.

setTitle

@CanIgnoreReturnValue
public EventReservationEntity.Builder setTitle(String title)

Sets the name/title of the event reservation entity.

Required.