RestaurantReservationEntity.Builder

public final class RestaurantReservationEntity.Builder


Builder class for RestaurantReservationEntity.

Summary

Public constructors

Public methods

RestaurantReservationEntity.Builder

Add a poster image of the entity.

RestaurantReservationEntity.Builder

Add poster images of the entity.

RestaurantReservationEntity.Builder

Add a subtitle of the Reservation entity.

RestaurantReservationEntity.Builder

Add subtitles of the Reservation entity.

RestaurantReservationEntity
RestaurantReservationEntity.Builder

Sets the action uri of the Reservation entity.

RestaurantReservationEntity.Builder

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

RestaurantReservationEntity.Builder

Sets content id of the entity.

RestaurantReservationEntity.Builder

Sets the location of the restaurant.

RestaurantReservationEntity.Builder

Sets the reservation ID for the restaurant reservation entity.

RestaurantReservationEntity.Builder

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

RestaurantReservationEntity.Builder

Sets the table size, i.e., the number of members for the restaurant reservation entity.

RestaurantReservationEntity.Builder

Sets the name/title of the Reservation entity.

Public constructors

Builder

public Builder()

Public methods

addPosterImage

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder addSubtitle(String subtitle)

Add a subtitle of the Reservation entity.

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

Optional.

addSubtitles

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

Add subtitles of the Reservation entity.

Optional.

setActionUri

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setActionUri(Uri actionUri)

Sets the action uri of the Reservation entity.

Required.

setDescription

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setDescription(String description)

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

Optional.

setEntityId

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setLocation

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setLocation(Address location)

Sets the location of the restaurant.

Required.

setReservationId

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setReservationId(String reservationId)

Sets the reservation ID for the restaurant reservation entity.

Optional.

setReservationStartTime

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setReservationStartTime(Long reservationStartTime)

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

Required.

setTableSize

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setTableSize(Integer tableSize)

Sets the table size, i.e., the number of members for the restaurant reservation entity.

Optional.

setTitle

@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setTitle(String title)

Sets the name/title of the Reservation entity.

Required.