RestaurantReservationEntity.Builder


class RestaurantReservationEntity.Builder


Builder class for RestaurantReservationEntity.

Summary

Public constructors

Public functions

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 localized timestamp of reservation start time for the restaurant reservation entity.

RestaurantReservationEntity.Builder!

Sets the location of the restaurant.

RestaurantReservationEntity.Builder!

Sets the reservation ID for the restaurant reservation entity.

RestaurantReservationEntity.Builder!

This function is deprecated.

Use setLocalizedReservationStartTime instead.

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

Builder()

Public functions

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

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

Add a subtitle of the Reservation entity.

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

Optional.

addSubtitles

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

Add subtitles of the Reservation entity.

Optional.

setActionUri

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

Sets the action uri of the Reservation entity.

Required.

setDescription

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

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

Optional.

setEntityId

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

Sets content id of the entity.

Optional.

setLocalizedReservationStartTime

@CanIgnoreReturnValue
fun setLocalizedReservationStartTime(
    localizedReservationStartTime: LocalizedTimestamp!
): RestaurantReservationEntity.Builder!

Sets the localized timestamp of reservation start time for the restaurant reservation entity.

Required.

setLocation

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

Sets the location of the restaurant.

Required.

setReservationId

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

Sets the reservation ID for the restaurant reservation entity.

Optional.

setReservationStartTime

@CanIgnoreReturnValue
fun setReservationStartTime(reservationStartTime: Long!): RestaurantReservationEntity.Builder!

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

Required.

setTableSize

@CanIgnoreReturnValue
fun setTableSize(tableSize: Int!): RestaurantReservationEntity.Builder!

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

Optional.

setTitle

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

Sets the name/title of the Reservation entity.

Required.