# LodgingReservationEntity

# LodgingReservationEntity

*** ** * ** ***

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

<br />

```
public final class LodgingReservationEntity extends Entity
```

<br />

|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)                                                                                                        |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity)                                        ||
|   | ↳ | [com.google.android.engage.travel.datamodel.LodgingReservationEntity](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity) |

*** ** * ** ***

An object representing a lodging reservation entity.

## Summary

|                                                                                                                                                            ### Nested types                                                                                                                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[LodgingReservationEntity.Builder](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity.Builder) Builder class for[LodgingReservationEntity](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity). |

|                                                                                                               ### Public fields                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)                                                                                                                                 | [address](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#address())                                                                                                                                                                                                                        |
| `final long`                                                                                                                                                                                                                                  | [checkInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#checkInTime()) **This field is deprecated.** Use[localizedCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckInTime())instead. <br />     |
| `final long`                                                                                                                                                                                                                                  | [checkOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#checkOutTime()) **This field is deprecated.** Use[localizedCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckOutTime())instead. <br /> |
| `final `[ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [displayTimeWindows](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#displayTimeWindows())                                                                                                                                                                                                  |
| `final `[LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp)                                                                                                           | [localizedCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckInTime())                                                                                                                                                                                              |
| `final `[LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp)                                                                                                           | [localizedCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckOutTime())                                                                                                                                                                                            |

|                                                                                                          ### Public methods                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                   | [getActionUri](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getActionUri())`()` Returns the action uri of the lodging reservation entity.                                                                                                                                                                    |
| [Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)                                                                                                                                 | [getAddress](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getAddress())`()` Returns the address of the lodging lodging reservation entity.                                                                                                                                                                   |
| `long`                                                                                                                                                                                                                                | ~~[getCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getCheckInTime())~~`()` **This method is deprecated.** use[getLocalizedCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getLocalizedCheckInTime())instead <br />     |
| `long`                                                                                                                                                                                                                                | ~~[getCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getCheckOutTime())~~`()` **This method is deprecated.** use[getLocalizedCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getLocalizedCheckOutTime())instead <br /> |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                | [getDescription](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the lodging reservation entity.                                                                                                                       |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [getDisplayTimeWindows](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getDisplayTimeWindows())`()` Returns the display time windows associated with the lodging reservation entity.                                                                                                                           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                | [getEntityId](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getEntityId())`()` Returns the reservation id of the entity.                                                                                                                                                                                      |
| [LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp)                                                                                                           | [getLocalizedCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getLocalizedCheckInTime())`()` Returns the localized timestamp of check in time for the lodging reservation entity.                                                                                                                   |
| [LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp)                                                                                                           | [getLocalizedCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getLocalizedCheckOutTime())`()` Returns the localized timestamp of check out time for the lodging reservation entity.                                                                                                                |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`                                                            | [getPosterImages](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getPosterImages())`()` Returns the poster image of the lodging reservation entity.                                                                                                                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Price](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price)`>`                                      | [getPrice](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getPrice())`()` Returns the price of the lodging reservation entity.                                                                                                                                                                                 |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                | [getPriceCallout](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getPriceCallout())`()` Returns the price callout for the lodging 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/com/google/android/engage/common/datamodel/Rating)`>`                                    | [getRating](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getRating())`()` Returns the rating of the lodging reservation entity.                                                                                                                                                                              |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                | [getReservationId](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getReservationId())`()` Returns the reservation ID of the entity.                                                                                                                                                                            |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                                      | [getSubtitleList](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getSubtitleList())`()` Returns the list of subtitles for the lodging reservation entity.                                                                                                                                                      |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                               | [getTitle](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getTitle())`()` Returns the name/title of the lodging reservation Entity.                                                                                                                                                                            |

|                                                                                                                                                                                                          ### Inherited methods                                                                                                                                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity) |-------|--------------------------------------------------------------------------------------------------------------------------------| | `int` | [getEntityType](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public fields

### address

```
public final Address address
```  

### checkInTime

```
public final long checkInTime
```
| **This field is deprecated.**   
|
Use[localizedCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckInTime())instead.  

### checkOutTime

```
public final long checkOutTime
```
| **This field is deprecated.**   
|
Use[localizedCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#localizedCheckOutTime())instead.  

### displayTimeWindows

```
public final ImmutableList<DisplayTimeWindow> displayTimeWindows
```  

### localizedCheckInTime

```
public final LocalizedTimestamp localizedCheckInTime
```  

### localizedCheckOutTime

```
public final LocalizedTimestamp localizedCheckOutTime
```  

## Public methods

### getActionUri

```
public Uri getActionUri()
```

Returns the action uri of the lodging reservation entity.  

### getAddress

```
public Address getAddress()
```

Returns the address of the lodging lodging reservation entity.  

### getCheckInTime

```
public long [getCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getCheckInTime())()
```
| **This method is deprecated.**   
|
| use[getLocalizedCheckInTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getLocalizedCheckInTime())instead

Returns the epoch timestamp (in milliseconds) of check in time for the lodging reservation entity.  

### getCheckOutTime

```
public long [getCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getCheckOutTime())()
```
| **This method is deprecated.**   
|
| use[getLocalizedCheckOutTime](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingReservationEntity#getLocalizedCheckOutTime())instead

Returns the epoch timestamp (in milliseconds) of check out time for the lodging reservation entity.  

### getDescription

```
public Optional<String> getDescription()
```

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

### getDisplayTimeWindows

```
public ImmutableList<DisplayTimeWindow> getDisplayTimeWindows()
```

Returns the display time windows associated with the lodging reservation entity.  

### getEntityId

```
public Optional<String> getEntityId()
```

Returns the reservation id of the entity.  

### getLocalizedCheckInTime

```
public LocalizedTimestamp getLocalizedCheckInTime()
```

Returns the localized timestamp of check in time for the lodging reservation entity.  

### getLocalizedCheckOutTime

```
public LocalizedTimestamp getLocalizedCheckOutTime()
```

Returns the localized timestamp of check out time for the lodging reservation entity.  

### getPosterImages

```
public List<Image> getPosterImages()
```

Returns the poster image of the lodging reservation entity.  

### getPrice

```
public Optional<Price> getPrice()
```

Returns the price of the lodging reservation entity.  

### getPriceCallout

```
public Optional<String> getPriceCallout()
```

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

### getRating

```
public Optional<Rating> getRating()
```

Returns the rating of the lodging reservation entity.  

### getReservationId

```
public Optional<String> getReservationId()
```

Returns the reservation ID of the entity.  

### getSubtitleList

```
public List<String> getSubtitleList()
```

Returns the list of subtitles for the lodging reservation entity.  

### getTitle

```
public String getTitle()
```

Returns the name/title of the lodging reservation Entity.