# TransportationReservationEntity

# TransportationReservationEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing a transportation reservation entity.

## Summary

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

|                                                                                                                                               ### 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/TransportationReservationEntity#getActionUri())`()` Returns the action uri of the entity.                                                                                                                                                                                                         |
| [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)`!>!`                                                                                                     | [getArrivalLocation](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#getArrivalLocation())`()` Returns the arrival location of the transportation 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)`!>!`                                                                                                                                     | ~~[getBoardingTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#getBoardingTime())~~`()` **This function is deprecated.** Use[getLocalizedBoardingTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#getLocalizedBoardingTime())instead. <br /> |
| [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)`!>!`                                                                                                     | [getDepartureLocation](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#getDepartureLocation())`()` Returns the departure location of the transportation 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/TransportationReservationEntity#getDescription())`()` Returns the description (typically a single paragraph of text) for the transportation 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/travel/datamodel/TransportationReservationEntity#getEntityId())`()` Returns the 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)`!>!`                                                                               | [getLocalizedBoardingTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#getLocalizedBoardingTime())`()` Returns the localized timestamp of the boarding time for the transportation 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/TransportationReservationEntity#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/kotlin/com/google/android/engage/common/datamodel/Price)`!>!`                                                                                                         | [getPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#getPrice())`()` Returns the price of the transportation 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/TransportationReservationEntity#getPriceCallout())`()` Returns the price callout text for the transportation 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/TransportationReservationEntity#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/TransportationReservationEntity#getServiceProvider())`()` Returns the service provider of the transportation 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/TransportationReservationEntity#getSubtitleList())`()` Returns the list of subtitles for the 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/TransportationReservationEntity#getTitle())`()` Returns the name/title of the transportation 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)`!>!`                                                                                                                                 | [getTransportationNumber](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#getTransportationNumber())`()` Returns the transportation number (e.g. flight number, bus number, train number, ferry name/number) of the transportation reservation entity.                                                                           |

|                                                                                                             ### Public properties                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!`                                                                                                                                                                | [arrivalTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#arrivalTime()) **This property is deprecated.** Use[localizedArrivalTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#localizedArrivalTime())instead. <br />         |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!`                                                                                                                                                                | [departureTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#departureTime()) **This property is deprecated.** Use[localizedDepartureTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#localizedDepartureTime())instead. <br /> |
| [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/TransportationReservationEntity#displayTimeWindows())                                                                                                                                                                                                                       |
| [LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!`                                                                                                          | [localizedArrivalTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#localizedArrivalTime())                                                                                                                                                                                                                   |
| [LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!`                                                                                                          | [localizedDepartureTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#localizedDepartureTime())                                                                                                                                                                                                               |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                     | `@`[TransportationType](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationType) [transportationType](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/TransportationReservationEntity#transportationType())                                                                                 |

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

### getArrivalLocation

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

Returns the arrival location of the transportation reservation entity.  

### getBoardingTime

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

Returns the epoch timestamp (in milliseconds) of boarding time for the transportation reservation entity.  

### getDepartureLocation

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

Returns the departure location of the transportation reservation entity.  

### getDescription

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

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

### getEntityId

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

Returns the reservation id of the entity.  

### getLocalizedBoardingTime

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

Returns the localized timestamp of the boarding time for the transportation reservation entity.  

### getPosterImages

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

Returns the poster image of the entity.  

### getPrice

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

Returns the price of the transportation reservation entity.  

### getPriceCallout

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

Returns the price callout text for the transportation 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 transportation reservation entity.  

### getSubtitleList

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

Returns the list of subtitles for the Reservation entity.  

### getTitle

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

Returns the name/title of the transportation reservation Entity.  

### getTransportationNumber

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

Returns the transportation number (e.g. flight number, bus number, train number, ferry name/number) of the transportation reservation entity.  

## Public properties

### arrivalTime

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

### departureTime

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

### displayTimeWindows

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

### localizedArrivalTime

```
val localizedArrivalTime: LocalizedTimestamp!
```  

### localizedDepartureTime

```
val localizedDepartureTime: LocalizedTimestamp!
```  

### transportationType

```
@TransportationType
val transportationType: Int
```