# VehicleRentalReservationEntity

# VehicleRentalReservationEntity

*** ** * ** ***

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


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

*** ** * ** ***

An object representing a vehicle rental reservation entity.

## Summary

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

|                                                                                                                                               ### 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/VehicleRentalReservationEntity#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)`!>!`                                                                                                                                 | [getConfirmationId](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#getConfirmationId())`()` Returns the confirmation ID 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/travel/datamodel/VehicleRentalReservationEntity#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/travel/datamodel/VehicleRentalReservationEntity#getEntityId())`()` Returns the 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)`!>!`                                                                               | [getLocalizedReturnTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#getLocalizedReturnTime())`()` Returns the localized timestamp of the return time for the vehicle rental reservation 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)`!>!`                                                                                                     | [getPickupAddress](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#getPickupAddress())`()` Returns the pick up address of the vehicle rental 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/VehicleRentalReservationEntity#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/VehicleRentalReservationEntity#getPrice())`()` Returns the price of the vehicle rental 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/VehicleRentalReservationEntity#getPriceCallout())`()` Returns the price callout text for the vehicle rental reservation 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)`!>!`                                                                                                     | [getReturnAddress](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#getReturnAddress())`()` Returns the return/drop-off address of the vehicle rental 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)`!>!`                                                                                                                                     | ~~[getReturnTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#getReturnTime())~~`()` **This function is deprecated.** use [getLocalizedReturnTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#getLocalizedReturnTime()) instead <br /> |
| [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/VehicleRentalReservationEntity#getServiceProvider())`()` Returns the service provider of the vehicle rental 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/VehicleRentalReservationEntity#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/VehicleRentalReservationEntity#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)`!` | [localizedPickupTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#localizedPickupTime())                                                                                                                                                                                                          |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!`                                                       | [pickupTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#pickupTime()) **This property is deprecated.** Use [localizedPickupTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/VehicleRentalReservationEntity#localizedPickupTime()) 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 entity.  

### getConfirmationId

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

Returns the confirmation ID 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 id of the entity.  

### getLocalizedReturnTime

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

Returns the localized timestamp of the return time for the vehicle rental reservation entity.  

### getPickupAddress

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

Returns the pick up address of the vehicle rental 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 vehicle rental reservation entity.  

### getPriceCallout

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

Returns the price callout text for the vehicle rental reservation entity.  

### getReturnAddress

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

Returns the return/drop-off address of the vehicle rental reservation entity.  

### getReturnTime

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

Returns the epoch timestamp (in milliseconds) of return time for the vehicle rental reservation entity.  

### getServiceProvider

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

Returns the service provider of the vehicle rental 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 Reservation Entity.  

## Public properties

### localizedPickupTime

```
val localizedPickupTime: LocalizedTimestamp!
```  

### pickupTime

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