TransportationReservationEntity.Builder


public final class TransportationReservationEntity.Builder


Builder class for TransportationReservationEntity.

Summary

Public constructors

Public methods

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 method 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

public Builder()

Public methods

addPosterImage

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder addSubtitle(String subtitle)

Add a subtitle of the transportation reservation entity.

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

Optional.

addSubtitles

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

Add subtitles of the transportation reservation entity.

Optional.

setActionUri

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setActionUri(Uri actionUri)

Sets the action uri of the transportation reservation entity.

Required.

setArrivalLocation

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setArrivalLocation(Address arrivalLocation)

Sets the arrival location of the transportation reservation entity.

Optional.

setArrivalTime

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setArrivalTime(Long arrivalTime)

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

Required.

setBoardingTime

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setBoardingTime(Long boardingTime)

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

Optional.

setDepartureLocation

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setDepartureLocation(Address departureLocation)

Sets the departure location of the transportation reservation entity.

Optional.

setDepartureTime

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setDepartureTime(Long departureTime)

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

Required.

setDescription

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setDescription(String description)

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

Optional.

setEntityId

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setEntityId(String entityId)

Sets reservation id of the entity.

Optional.

setLocalizedArrivalTime

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setLocalizedArrivalTime(LocalizedTimestamp localizedArrivalTime)

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

Required.

setLocalizedBoardingTime

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setLocalizedBoardingTime(LocalizedTimestamp localizedBoardingTime)

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

Required.

setLocalizedDepartureTime

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setLocalizedDepartureTime(LocalizedTimestamp localizedDepartureTime)

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

Required.

setPrice

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setPrice(Price price)

Sets the price for the transportation reservation entity.

Optional.

setPriceCallout

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setPriceCallout(String priceCallout)

Sets the price callout text for the transportation reservation entity.

Optional.

setReservationId

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setReservationId(String reservationId)

Sets the reservation ID for the transportation reservation entity.

Optional.

setServiceProvider

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setServiceProvider(ServiceProvider serviceProvider)

Sets the service provider for the transportation reservation entity.

Optional.

setTitle

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setTitle(String title)

Sets the name/title of the transportation reservation entity.

Required.

setTransportationNumber

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setTransportationNumber(String transportationNumber)

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

Optional.

setTransportationType

@CanIgnoreReturnValue
public TransportationReservationEntity.Builder setTransportationType(@TransportationType int transportationType)

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

Required.