# PointOfInterestEntity.Builder

# PointOfInterestEntity.Builder

*** ** * ** ***

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

<br />

```
class PointOfInterestEntity.Builder
```

<br />

*** ** * ** ***

Builder class for[PointOfInterestEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity).

## Summary

|                                                             ### Public constructors                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#Builder())`()` |

|                                                                    ### Public functions                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAllDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addAllDisplayTimeWindow(java.util.List<com.google.android.engage.common.datamodel.DisplayTimeWindow>))`(` ` displayTimeWindows: (`[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)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` `)` Adds display time windows for the point of interest entity. |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadge](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addBadge(com.google.android.engage.common.datamodel.Badge))`(badge: `[Badge](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Badge)`!)` Add a badge (image/text) for the point of interest entity. e.g. "7 wonder of the world", "Best trail 2024"                                                                                                                                                                                                                                                            |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadges](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addBadges(java.util.List<com.google.android.engage.common.datamodel.Badge>))`(badges: (`[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)`!>!)` Add badges for the point of interest entity.                                                                                                   |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentCategories](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addContentCategories(java.util.List<java.lang.Integer>))`(contentCategories: (`[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)`!>!)` Add eligible content categories for the point of interest entity.                                                                                                          |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addContentCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addContentCategory(int))`(` ` @`[PointOfInterestEntity.EligibleContentCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.EligibleContentCategory)` contentCategory: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) `)` Add eligible content category for the point of interest entity.                                                                                                                                                    |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addDisplayTimeWindow(com.google.android.engage.common.datamodel.DisplayTimeWindow))`(displayTimeWindow: `[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!)` Adds a display time window for the point of interest entity.                                                                                                                                                                                                                                  |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(image: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Add a poster image of the entity.                                                                                                                                                                                                                                                                                                                         |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addPosterImages(java.util.List<com.google.android.engage.common.datamodel.Image>))`(images: (`[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)`!>!)` Add poster images of the entity.                                                                                                   |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitle](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addSubtitle(java.lang.String))`(subtitle: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Add a subtitle for the point of interest entity. e.g. "Trail length", "Elev.                                                                                                                                                                                                                                                                                                                                         |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitles](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#addSubtitles(java.util.List<java.lang.String>))`(subtitles: (`[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)`!>!)` Add subtitles for the point of interest entity.                                                                                                                                               |
| [PointOfInterestEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionLinkUri](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setActionLinkUri(android.net.Uri))`(actionLinkUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the action link uri for the point of interest entity.                                                                                                                                                                                                                                                                                                                                                          |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAvailabilityTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setAvailabilityTimeWindow(com.google.android.engage.common.datamodel.AvailabilityTimeWindow))`(` ` availabilityTimeWindow: `[AvailabilityTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/AvailabilityTimeWindow)`!` `)` Sets the availability time window for the point of interest entity.                                                                                                                                                                                      |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setDescription(java.lang.String))`(description: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the description for the point of interest entity.                                                                                                                                                                                                                                                                                                                                                      |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                                                                                                                       |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLastEngagementTime](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setLastEngagementTime(org.joda.time.Instant))`(lastEngagementTime: `[Instant](https://developer.android.com/reference/kotlin/org/joda/time/Instant)`!)` Sets the last engagement time for the point of interest entity.                                                                                                                                                                                                                                                                                                                    |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLocation](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setLocation(com.google.android.engage.common.datamodel.Address))`(location: `[Address](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Address)`!)` Sets the location/address of the point of interest entity.                                                                                                                                                                                                                                                                                             |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setPrice(com.google.android.engage.common.datamodel.Price))`(price: `[Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!)` Sets the price for the point of interest entity;                                                                                                                                                                                                                                                                                                                      |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPriceCallout](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setPriceCallout(java.lang.String))`(priceCallout: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the price callout for the point of interest entity. e.g. "Limited offer"                                                                                                                                                                                                                                                                                                                            |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setRating](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setRating(com.google.android.engage.common.datamodel.Rating))`(rating: `[Rating](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating)`!)` Sets the rating for the point of interest entity.                                                                                                                                                                                                                                                                                                               |
| [PointOfInterestEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#setTitle(java.lang.String))`(title: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the title of the point of interest entity.                                                                                                                                                                                                                                                                                                                                                                               |

|                                                                                                                     ### Public properties                                                                                                                      |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ImmutableList.Builder](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.Builder.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` | [displayTimeWindowBuilder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/PointOfInterestEntity.Builder#displayTimeWindowBuilder()) |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addAllDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): PointOfInterestEntity.Builder!
```

Adds display time windows for the point of interest entity.

Optional.  

### addBadge

```
@CanIgnoreReturnValue
fun addBadge(badge: Badge!): PointOfInterestEntity.Builder!
```

Add a badge (image/text) for the point of interest entity. e.g. "7 wonder of the world", "Best trail 2024"

Optional.  

### addBadges

```
@CanIgnoreReturnValue
fun addBadges(badges: (Mutable)List<Badge!>!): PointOfInterestEntity.Builder!
```

Add badges for the point of interest entity.

Optional.  

### addContentCategories

```
@CanIgnoreReturnValue
fun addContentCategories(contentCategories: (Mutable)List<Int!>!): PointOfInterestEntity.Builder!
```

Add eligible content categories for the point of interest entity.

Optional.  

### addContentCategory

```
@CanIgnoreReturnValue
fun addContentCategory(
    @PointOfInterestEntity.EligibleContentCategory contentCategory: Int
): PointOfInterestEntity.Builder!
```

Add eligible content category for the point of interest entity.

Optional.  

### addDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): PointOfInterestEntity.Builder!
```

Adds a display time window for the point of interest entity.

Optional.  

### addPosterImage

```
@CanIgnoreReturnValue
fun addPosterImage(image: Image!): PointOfInterestEntity.Builder!
```

Add a poster image of the entity.

Required.  

### addPosterImages

```
@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): PointOfInterestEntity.Builder!
```

Add poster images of the entity.

Required.  

### addSubtitle

```
@CanIgnoreReturnValue
fun addSubtitle(subtitle: String!): PointOfInterestEntity.Builder!
```

Add a subtitle for the point of interest entity. e.g. "Trail length", "Elev. Gain", "Duration", "Difficulty level", "Day trips", "Safari", etc.

Optional.  

### addSubtitles

```
@CanIgnoreReturnValue
fun addSubtitles(subtitles: (Mutable)List<String!>!): PointOfInterestEntity.Builder!
```

Add subtitles for the point of interest entity.

Optional.  

### build

```
fun build(): PointOfInterestEntity!
```  

### setActionLinkUri

```
@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): PointOfInterestEntity.Builder!
```

Sets the action link uri for the point of interest entity.

Required.  

### setAvailabilityTimeWindow

```
@CanIgnoreReturnValue
fun setAvailabilityTimeWindow(
    availabilityTimeWindow: AvailabilityTimeWindow!
): PointOfInterestEntity.Builder!
```

Sets the availability time window for the point of interest entity.

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

Optional.  

### setDescription

```
@CanIgnoreReturnValue
fun setDescription(description: String!): PointOfInterestEntity.Builder!
```

Sets the description for the point of interest entity.

Optional.  

### setEntityId

```
@CanIgnoreReturnValue
fun setEntityId(entityId: String!): PointOfInterestEntity.Builder!
```

Sets content id of the entity.

Optional.  

### setLastEngagementTime

```
@CanIgnoreReturnValue
fun setLastEngagementTime(lastEngagementTime: Instant!): PointOfInterestEntity.Builder!
```

Sets the last engagement time for the point of interest entity.

Optional.  

### setLocation

```
@CanIgnoreReturnValue
fun setLocation(location: Address!): PointOfInterestEntity.Builder!
```

Sets the location/address of the point of interest entity.

Required.  

### setPrice

```
@CanIgnoreReturnValue
fun setPrice(price: Price!): PointOfInterestEntity.Builder!
```

Sets the price for the point of interest entity;

Optional.  

### setPriceCallout

```
@CanIgnoreReturnValue
fun setPriceCallout(priceCallout: String!): PointOfInterestEntity.Builder!
```

Sets the price callout for the point of interest entity. e.g. "Limited offer"

Optional.  

### setRating

```
@CanIgnoreReturnValue
fun setRating(rating: Rating!): PointOfInterestEntity.Builder!
```

Sets the rating for the point of interest entity.

Optional.  

### setTitle

```
@CanIgnoreReturnValue
fun setTitle(title: String!): PointOfInterestEntity.Builder!
```

Sets the title of the point of interest entity.

Required.  

## Public properties

### displayTimeWindowBuilder

```
val displayTimeWindowBuilder: ImmutableList.Builder<DisplayTimeWindow!>!
```