EventReservationEntity.Builder


class EventReservationEntity.Builder


Builder class for EventReservationEntity.

Summary

Public constructors

Public functions

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 function 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 function is deprecated.

Use setLocalizedStartTime instead.

EventReservationEntity.Builder!

Sets the name/title of the event reservation entity.

Public constructors

Builder

Builder()

Public functions

addBadge

@CanIgnoreReturnValue
fun addBadge(badge: Badge!): EventReservationEntity.Builder!

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

Optional.

addBadges

@CanIgnoreReturnValue
fun addBadges(badges: (Mutable)List<Badge!>!): EventReservationEntity.Builder!

Add badges for the event reservation entity.

Optional.

addContentCategories

@CanIgnoreReturnValue
fun addContentCategories(contentCategories: (Mutable)List<Int!>!): EventReservationEntity.Builder!

Add eligible content categories for the event reservation entity.

Optional.

addContentCategory

@CanIgnoreReturnValue
fun addContentCategory(
    @EventReservationEntity.EligibleContentCategory contentCategory: Int
): EventReservationEntity.Builder!

Add eligible content category for the event reservation entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): EventReservationEntity.Builder!

Add a poster image of the event reservation entity.

Required.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): EventReservationEntity.Builder!

Add poster images of the event reservation entity.

Required.

addSubtitle

@CanIgnoreReturnValue
fun addSubtitle(subtitle: String!): EventReservationEntity.Builder!

Add a subtitle of the event reservation entity.

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

Optional.

addSubtitles

@CanIgnoreReturnValue
fun addSubtitles(subtitles: (Mutable)List<String!>!): EventReservationEntity.Builder!

Add subtitles of the event reservation entity.

Optional.

build

fun build(): EventReservationEntity!

setActionUri

@CanIgnoreReturnValue
fun setActionUri(actionUri: Uri!): EventReservationEntity.Builder!

Sets the action uri of the event reservation entity.

Required.

setDescription

@CanIgnoreReturnValue
fun setDescription(description: String!): EventReservationEntity.Builder!

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

Optional.

setEndTime

@CanIgnoreReturnValue
fun setEndTime(endTime: Long!): EventReservationEntity.Builder!

Sets the end time of the event reservation entity.

Optional.

setEntityId

@CanIgnoreReturnValue
fun setEntityId(entityId: String!): EventReservationEntity.Builder!

Sets reservation id of the event reservation entity.

Optional.

setEventMode

@CanIgnoreReturnValue
fun setEventMode(@EventMode eventMode: Int): EventReservationEntity.Builder!

Sets the event mode of the event reservation entity.

Required.

setLocalizedEndTime

@CanIgnoreReturnValue
fun setLocalizedEndTime(localizedEndTime: LocalizedTimestamp!): EventReservationEntity.Builder!

Sets the localized end time of the event reservation entity.

Optional.

setLocalizedStartTime

@CanIgnoreReturnValue
fun setLocalizedStartTime(localizedStartTime: LocalizedTimestamp!): EventReservationEntity.Builder!

Sets the localized start time for the event reservation entity.

Required.

setLocation

@CanIgnoreReturnValue
fun setLocation(location: Address!): EventReservationEntity.Builder!

Sets the location of the event reservation entity.

Required if event mode is set to TYPE_IN_PERSON or TYPE_HYBRID.

setPrice

@CanIgnoreReturnValue
fun setPrice(price: Price!): EventReservationEntity.Builder!

Sets the price for the event reservation entity;

Optional.

setPriceCallout

@CanIgnoreReturnValue
fun setPriceCallout(priceCallout: String!): EventReservationEntity.Builder!

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

Optional.

setRating

@CanIgnoreReturnValue
fun setRating(rating: Rating!): EventReservationEntity.Builder!

Sets the rating for the event reservation entity.

Optional.

setReservationId

@CanIgnoreReturnValue
fun setReservationId(reservationId: String!): EventReservationEntity.Builder!

Sets the reservation ID for the event reservation entity.

Optional.

setServiceProvider

@CanIgnoreReturnValue
fun setServiceProvider(serviceProvider: ServiceProvider!): EventReservationEntity.Builder!

Sets the service provider for the event reservation entity.

Optional.

setStartTime

@CanIgnoreReturnValue
fun setStartTime(startTime: Long!): EventReservationEntity.Builder!

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

Required.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String!): EventReservationEntity.Builder!

Sets the name/title of the event reservation entity.

Required.