# EventReservationEntity

# EventReservationEntity

*** ** * ** ***

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

<br />

```
class EventReservationEntity : 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.travel.datamodel.EventReservationEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity) |

*** ** * ** ***

An object representing an event reservation entity.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                    ### Nested types                                                                                                                                                                                                                                                                                                                                                                                                                     |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[EventReservationEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity.Builder) Builder class for[EventReservationEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `@`[IntDef](https://developer.android.com/reference/androidx/annotation/IntDef.html)`(value = [EligibleContentCategory.TYPE_EDUCATION, EligibleContentCategory.TYPE_SPORTS, EligibleContentCategory.TYPE_MOVIES_AND_TV_SHOWS, EligibleContentCategory.TYPE_MUSIC, EligibleContentCategory.TYPE_DIGITAL_GAMES, EligibleContentCategory.TYPE_TRAVEL_AND_LOCAL, EligibleContentCategory.TYPE_HEALTH_AND_FITNESS, EligibleContentCategory.TYPE_DATING])` `@`[Retention](https://developer.android.com/reference/java/lang/annotation/Retention.html)`(value = RetentionPolicy.SOURCE)` `annotation `[EventReservationEntity.EligibleContentCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity.EligibleContentCategory) Possible content categories of the event reservation entity. |

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`                                                                                                                                                                                                                                            | [getActionUri](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getActionUri())`()` Returns the action uri of the event reservation 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)`<`[Badge](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Badge)`!>!` | [getBadgeList](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getBadgeList())`()` Returns the list of badges (image/text) for the event reservation entity. e.g. "Onsale".                                                                                                                        |
| `(`[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)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!`                               | [getContentCategoryList](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getContentCategoryList())`()` Returns the content categories of the event 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)`!>!`                                                                                                                                 | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the event reservation entity.                                                                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | ~~[getEndTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getEndTime())~~`()` **This function is deprecated.** use[getLocalizedEndTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getLocalizedEndTime())instead <br /> |
| [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/travel/datamodel/EventReservationEntity#getEntityId())`()` Returns the event reservation id of the entity.                                                                                                                                                                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!>!`                                                                               | [getLocalizedEndTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getLocalizedEndTime())`()` Returns the localized timestamp for the event end time.                                                                                                                                           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Address](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Address)`!>!`                                                                                                     | [getLocation](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getLocation())`()` Returns the location/address of the event reservation 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/travel/datamodel/EventReservationEntity#getPosterImages())`()` Returns the poster image of the event reservation entity.                                                                                                                                                 |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!>!`                                                                                                         | [getPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getPrice())`()` Returns the price of the event 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)`!>!`                                                                                                                                 | [getPriceCallout](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getPriceCallout())`()` Returns the price callout for the event reservation entity. e.g. "Limited offer"                                                                                                                          |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Rating](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating)`!>!`                                                                                                       | [getRating](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getRating())`()` Returns the rating of the event 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)`!>!`                                                                                                                                 | [getReservationId](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getReservationId())`()` Returns the reservation ID of the entity.                                                                                                                                                               |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[ServiceProvider](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ServiceProvider)`!>!`                                                                                     | [getServiceProvider](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getServiceProvider())`()` Returns the service provider of the event reservation 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)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                         | [getSubtitleList](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getSubtitleList())`()` Returns the list of subtitles for the event 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/travel/datamodel/EventReservationEntity#getTitle())`()` Returns the name/title of the event reservation Entity.                                                                                                                                                                 |

|                                                                                                             ### Public properties                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` | [displayTimeWindows](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#displayTimeWindows())                                                                                                                                                                                              |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                     | `@`[EventMode](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventMode) [eventMode](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#eventMode())                                                                                            |
| [LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!`                                                                                                          | [localizedStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#localizedStartTime())                                                                                                                                                                                              |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!`                                                                                                                                                                | [startTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#startTime()) **This property is deprecated.** Use[localizedStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#localizedStartTime())instead. <br /> |

|                                                                                                                                                                                                                                                                                         ### 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 event reservation entity.  

### getBadgeList

```
fun getBadgeList(): (Mutable)List<Badge!>!
```

Returns the list of badges (image/text) for the event reservation entity. e.g. "Onsale".  

### getContentCategoryList

```
fun getContentCategoryList(): (Mutable)List<Int!>!
```

Returns the content categories of the event reservation entity.  

### getDescription

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

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

### getEndTime

```
fun [getEndTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getEndTime())(): Optional<Long!>!
```
| **This function is deprecated.**   
|
| use[getLocalizedEndTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#getLocalizedEndTime())instead

Returns the epoch timestamp (in milliseconds) for the event end time.  

### getEntityId

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

Returns the event reservation id of the entity.  

### getLocalizedEndTime

```
fun getLocalizedEndTime(): Optional<LocalizedTimestamp!>!
```

Returns the localized timestamp for the event end time.  

### getLocation

```
fun getLocation(): Optional<Address!>!
```

Returns the location/address of the event reservation entity.  

### getPosterImages

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

Returns the poster image of the event reservation entity.  

### getPrice

```
fun getPrice(): Optional<Price!>!
```

Returns the price of the event reservation entity.  

### getPriceCallout

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

Returns the price callout for the event reservation entity. e.g. "Limited offer"  

### getRating

```
fun getRating(): Optional<Rating!>!
```

Returns the rating of the event reservation entity.  

### getReservationId

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

Returns the reservation ID of the entity.  

### getServiceProvider

```
fun getServiceProvider(): Optional<ServiceProvider!>!
```

Returns the service provider of the event reservation entity.  

### getSubtitleList

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

Returns the list of subtitles for the event reservation entity.  

### getTitle

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

Returns the name/title of the event reservation Entity.  

## Public properties

### displayTimeWindows

```
val displayTimeWindows: ImmutableList<DisplayTimeWindow!>!
```  

### eventMode

```
@EventMode
val eventMode: Int
```  

### localizedStartTime

```
val localizedStartTime: LocalizedTimestamp!
```  

### startTime

```
val startTime: Long!
```
| **This property is deprecated.**   
|
| Use[localizedStartTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/EventReservationEntity#localizedStartTime())instead.