TransportationReservationEntity.Builder


class TransportationReservationEntity.Builder


Builder class for TransportationReservationEntity.

Summary

Public constructors

Public functions

TransportationReservationEntity.Builder!

Add a poster image of the entity.

TransportationReservationEntity.Builder!

Add poster images of the entity.

TransportationReservationEntity.Builder!

Add a subtitle of the transportation reservation entity.

TransportationReservationEntity.Builder!

Add subtitles of the transportation reservation entity.

TransportationReservationEntity!
TransportationReservationEntity.Builder!

Sets the action uri of the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the arrival location of the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the epoch timestamp (in milliseconds) for the arrival time for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the epoch timestamp (in milliseconds) for the boarding time for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the departure location of the transportation reservation entity.

TransportationReservationEntity.Builder!

This function is deprecated.

Use setLocalizedDepartureTime instead.

TransportationReservationEntity.Builder!

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

TransportationReservationEntity.Builder!

Sets reservation id of the entity.

TransportationReservationEntity.Builder!

Sets the localized timestamp for the arrival time for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the localized timestamp for the boarding time for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the localized timestamp for the departure time for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the price for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the price callout text for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the reservation ID for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the service provider for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the name/title of the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the transportation number (e.g. flight number, bus number, train number, ferry name/number) for the transportation reservation entity.

TransportationReservationEntity.Builder!

Sets the type of the transportation (flight, bus, train, ferry etc.) for the transportation reservation entity.

Public constructors

Builder

Builder()

Public functions

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

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

Add a subtitle of the transportation reservation entity.

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

Optional.

addSubtitles

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

Add subtitles of the transportation reservation entity.

Optional.

setActionUri

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

Sets the action uri of the transportation reservation entity.

Required.

setArrivalLocation

@CanIgnoreReturnValue
fun setArrivalLocation(arrivalLocation: Address!): TransportationReservationEntity.Builder!

Sets the arrival location of the transportation reservation entity.

Optional.

setArrivalTime

@CanIgnoreReturnValue
fun setArrivalTime(arrivalTime: Long!): TransportationReservationEntity.Builder!

Sets the epoch timestamp (in milliseconds) for the arrival time for the transportation reservation entity.

Required.

setBoardingTime

@CanIgnoreReturnValue
fun setBoardingTime(boardingTime: Long!): TransportationReservationEntity.Builder!

Sets the epoch timestamp (in milliseconds) for the boarding time for the transportation reservation entity.

Optional.

setDepartureLocation

@CanIgnoreReturnValue
fun setDepartureLocation(departureLocation: Address!): TransportationReservationEntity.Builder!

Sets the departure location of the transportation reservation entity.

Optional.

setDepartureTime

@CanIgnoreReturnValue
fun setDepartureTime(departureTime: Long!): TransportationReservationEntity.Builder!

Sets the epoch timestamp (in milliseconds) for the departure time for the transportation reservation entity.

Required.

setDescription

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

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

Optional.

setEntityId

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

Sets reservation id of the entity.

Optional.

setLocalizedArrivalTime

@CanIgnoreReturnValue
fun setLocalizedArrivalTime(localizedArrivalTime: LocalizedTimestamp!): TransportationReservationEntity.Builder!

Sets the localized timestamp for the arrival time for the transportation reservation entity.

Required.

setLocalizedBoardingTime

@CanIgnoreReturnValue
fun setLocalizedBoardingTime(localizedBoardingTime: LocalizedTimestamp!): TransportationReservationEntity.Builder!

Sets the localized timestamp for the boarding time for the transportation reservation entity.

Required.

setLocalizedDepartureTime

@CanIgnoreReturnValue
fun setLocalizedDepartureTime(localizedDepartureTime: LocalizedTimestamp!): TransportationReservationEntity.Builder!

Sets the localized timestamp for the departure time for the transportation reservation entity.

Required.

setPrice

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

Sets the price for the transportation reservation entity.

Optional.

setPriceCallout

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

Sets the price callout text for the transportation reservation entity.

Optional.

setReservationId

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

Sets the reservation ID for the transportation reservation entity.

Optional.

setServiceProvider

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

Sets the service provider for the transportation reservation entity.

Optional.

setTitle

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

Sets the name/title of the transportation reservation entity.

Required.

setTransportationNumber

@CanIgnoreReturnValue
fun setTransportationNumber(transportationNumber: String!): TransportationReservationEntity.Builder!

Sets the transportation number (e.g. flight number, bus number, train number, ferry name/number) for the transportation reservation entity.

Optional.

setTransportationType

@CanIgnoreReturnValue
fun setTransportationType(@TransportationType transportationType: Int): TransportationReservationEntity.Builder!

Sets the type of the transportation (flight, bus, train, ferry etc.) for the transportation reservation entity.

Required.