# RestaurantReservationEntity.Builder

# RestaurantReservationEntity.Builder

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder "View this page in Kotlin") \|Java  


```
public final class RestaurantReservationEntity.Builder
```

<br />

*** ** * ** ***

Builder class for [RestaurantReservationEntity](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity).

## Summary

|                                                            ### Public constructors                                                            |
|-----------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#Builder())`()` |

|                                                                     ### Public methods                                                                      |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)` image)` Add a poster image of the entity.                                                                                                                                                                                                                                                |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#addPosterImages(java.util.List<com.google.android.engage.common.datamodel.Image>))`(`[List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`> images)` Add poster images of the entity.                                                                                                                                                       |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitle](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#addSubtitle(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` subtitle)` Add a subtitle of the Reservation entity.                                                                                                                                                                                                                                                                                                     |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitles](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#addSubtitles(java.util.List<java.lang.String>))`(`[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`> subtitles)` Add subtitles of the Reservation entity.                                                                                                                                                                                                            |
| [RestaurantReservationEntity](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity)                 | [build](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionUri](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setActionUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` actionUri)` Sets the action uri of the Reservation entity.                                                                                                                                                                                                                                                                                                  |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setDescription(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` description)` Sets the description (typically a single paragraph of text) of the Reservation entity.                                                                                                                                                                                                                                               |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setEntityId(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` entityId)` Sets content id of the entity.                                                                                                                                                                                                                                                                                                                |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLocalizedReservationStartTime](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setLocalizedReservationStartTime(com.google.android.engage.common.datamodel.LocalizedTimestamp))`(` ` `[LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp)` localizedReservationStartTime` `)` Sets the localized timestamp of reservation start time for the restaurant reservation entity.                                                                          |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLocation](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setLocation(com.google.android.engage.common.datamodel.Address))`(`[Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)` location)` Sets the location of the restaurant.                                                                                                                                                                                                                                          |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setReservationId](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setReservationId(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` reservationId)` Sets the reservation ID for the restaurant reservation entity.                                                                                                                                                                                                                                                                 |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) ~~[setReservationStartTime](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setReservationStartTime(java.lang.Long))~~`(`[Long](https://developer.android.com/reference/java/lang/Long.html)` reservationStartTime)` **This method is deprecated.** Use [setLocalizedReservationStartTime](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setLocalizedReservationStartTime(com.google.android.engage.common.datamodel.LocalizedTimestamp)) instead. <br /> |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTableSize](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setTableSize(java.lang.Integer))`(`[Integer](https://developer.android.com/reference/java/lang/Integer.html)` tableSize)` Sets the table size, i.e., the number of members for the restaurant reservation entity.                                                                                                                                                                                                                                                 |
| [RestaurantReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTitle](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setTitle(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` title)` 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.  

### build

```
public RestaurantReservationEntity build()
```  

### 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.  

### setLocalizedReservationStartTime

```
@CanIgnoreReturnValue
public RestaurantReservationEntity.Builder setLocalizedReservationStartTime(
    LocalizedTimestamp localizedReservationStartTime
)
```

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

Required.  

### 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](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setReservationStartTime(java.lang.Long))(Long reservationStartTime)
```
| **This method is deprecated.**   
|
| Use [setLocalizedReservationStartTime](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder#setLocalizedReservationStartTime(com.google.android.engage.common.datamodel.LocalizedTimestamp)) instead.

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.