# RestaurantReservationEntity

# RestaurantReservationEntity

*** ** * ** ***

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


```
class RestaurantReservationEntity : Entity
```

<br />

|---|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                                 |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)                                          ||
|   | ↳ | [com.google.android.engage.food.datamodel.RestaurantReservationEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity) |

*** ** * ** ***

An object representing a restaurant reservation entity.

## Summary

|                                                                                                                                                                 ### Nested types                                                                                                                                                                 |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[RestaurantReservationEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity.Builder) Builder class for [RestaurantReservationEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity). |

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`                                                                                                                                                                                                                                            | [getActionUri](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getActionUri())`()` Returns the action uri of the entity.                                                                                                                                                                                                                                    |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the Reservation entity.                                                                                                                                                                           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getEntityId())`()` Returns the reservation id of the entity.                                                                                                                                                                                                                                  |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!` | [getPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getPosterImages())`()` Returns the poster image of the entity.                                                                                                                                                                                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getReservationId](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getReservationId())`()` Returns the reservation ID of the entity.                                                                                                                                                                                                                        |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)                                                                                                                                                                                                                                      | ~~[getReservationStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getReservationStartTime())~~`()` **This function is deprecated.** use [getLocalizedReservationStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getLocalizedReservationStartTime()) instead <br /> |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                         | [getSubtitleList](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getSubtitleList())`()` Returns the list of subtitles for the Reservation entity.                                                                                                                                                                                                          |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!`                                                                                                                                       | [getTableSize](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getTableSize())`()` Returns the table size (i.e., the number of members) for the restaurant reservation entity.                                                                                                                                                                              |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                                                                                                                                               | [getTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getTitle())`()` Returns the name/title of the Reservation Entity.                                                                                                                                                                                                                                |

|                                                         ### Public properties                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!` | [localizedReservationStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#localizedReservationStartTime()) |
| [Address](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Address)`!`                       | [location](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#location())                                           |

|                                                                                                                                                                                                                                                                                         ### Inherited functions                                                                                                                                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getEntityType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public functions

### getActionUri

```
fun getActionUri(): Uri!
```

Returns the action uri of the entity.  

### getDescription

```
fun getDescription(): Optional<String!>!
```

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

### getEntityId

```
fun getEntityId(): Optional<String!>!
```

Returns the reservation id of the entity.  

### getPosterImages

```
fun getPosterImages(): (Mutable)List<Image!>!
```

Returns the poster image of the entity.  

### getReservationId

```
fun getReservationId(): Optional<String!>!
```

Returns the reservation ID of the entity.  

### getReservationStartTime

```
fun [getReservationStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getReservationStartTime())(): Long
```
| **This function is deprecated.**   
|
| use [getLocalizedReservationStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RestaurantReservationEntity#getLocalizedReservationStartTime()) instead

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

### getSubtitleList

```
fun getSubtitleList(): (Mutable)List<String!>!
```

Returns the list of subtitles for the Reservation entity.  

### getTableSize

```
fun getTableSize(): Optional<Int!>!
```

Returns the table size (i.e., the number of members) for the restaurant reservation entity.  

### getTitle

```
fun getTitle(): String!
```

Returns the name/title of the Reservation Entity.  

## Public properties

### localizedReservationStartTime

```
val localizedReservationStartTime: LocalizedTimestamp!
```  

### location

```
val location: Address!
```