# LodgingEntity

# LodgingEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing a Lodging Entity.

## Summary

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

|                                                                                                               ### Public fields                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                   | [actionLinkUri](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#actionLinkUri())           |
| `final `[List](https://developer.android.com/reference/java/util/List.html)`<`[Badge](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Badge)`>`                                                            | [badgeList](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#badgeList())                   |
| `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/LodgingEntity#displayTimeWindows()) |
| `final `[Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)                                                                                                                                 | [location](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#location())                     |
| `final `[List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                                                      | [subtitleList](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#subtitleList())             |
| `final `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                               | [title](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#title())                           |

|                                                                                                          ### Public methods                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                   | [getActionLinkUri](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#getActionLinkUri())`()` Returns the action link uri of the lodging entity.                                                                                         |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[AvailabilityTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow)`>`    | [getAvailabilityTimeWindow](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#getAvailabilityTimeWindow())`()` Returns availability time window for the lodging entity.                                                                 |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Badge](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Badge)`>`                                                            | [getBadgeList](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#getBadgeList())`()` Returns the list of badges (image/text) for the lodging entity. e.g. "Breakfast included", "Free cancellation", "Member price", "Open house hours" |
| [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/LodgingEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the lodging 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/LodgingEntity#getDisplayTimeWindows())`()` Returns the display time windows associated with the lodging 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/LodgingEntity#getEntityId())`()` Returns the id of the entity.                                                                                                                        |
| [Address](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Address)                                                                                                                                 | [getLocation](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#getLocation())`()` Returns the location/address of the lodging 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/LodgingEntity#getPosterImages())`()` Returns the poster image of the 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/LodgingEntity#getPrice())`()` Returns the price of the lodging 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/LodgingEntity#getPriceCallout())`()` Returns the price callout for the lodging 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/LodgingEntity#getRating())`()` Returns the rating of the lodging 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/LodgingEntity#getSubtitleList())`()` Returns the list of subtitles for the lodging entity. e.g. "Private room: Beds: 1 double or 2 twins", "# bds, # Sqft, House for sale"        |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                               | [getTitle](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/LodgingEntity#getTitle())`()` Returns the title of the lodging 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

### actionLinkUri

```
public final Uri actionLinkUri
```  

### badgeList

```
public final List<Badge> badgeList
```  

### displayTimeWindows

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

### location

```
public final Address location
```  

### subtitleList

```
public final List<String> subtitleList
```  

### title

```
public final String title
```  

## Public methods

### getActionLinkUri

```
public Uri getActionLinkUri()
```

Returns the action link uri of the lodging entity.  

### getAvailabilityTimeWindow

```
public Optional<AvailabilityTimeWindow> getAvailabilityTimeWindow()
```

Returns availability time window for the lodging entity.

This can refer to time the lodging entity is opened for the day/dates between which the lodging is available.  

### getBadgeList

```
public List<Badge> getBadgeList()
```

Returns the list of badges (image/text) for the lodging entity. e.g. "Breakfast included", "Free cancellation", "Member price", "Open house hours"  

### getDescription

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

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

### getDisplayTimeWindows

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

Returns the display time windows associated with the lodging entity.  

### getEntityId

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

Returns the id of the entity.  

### getLocation

```
public Address getLocation()
```

Returns the location/address of the lodging entity.  

### getPosterImages

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

Returns the poster image of the entity.  

### getPrice

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

Returns the price of the lodging entity.  

### getPriceCallout

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

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

### getRating

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

Returns the rating of the lodging entity.  

### getSubtitleList

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

Returns the list of subtitles for the lodging entity. e.g. "Private room: Beds: 1 double or 2 twins", "# bds, # Sqft, House for sale"  

### getTitle

```
public String getTitle()
```

Returns the title of the lodging entity.