# PointOfInterestEntity.Builder

# PointOfInterestEntity.Builder

*** ** * ** ***

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

<br />

```
public final class PointOfInterestEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

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

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

## Public fields

### displayTimeWindowBuilder

```
public ImmutableList.Builder<DisplayTimeWindow> displayTimeWindowBuilder
```  

## Public constructors

### Builder

```
public Builder()
```  

## Public methods

### addAllDisplayTimeWindow

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addAllDisplayTimeWindow(List<DisplayTimeWindow> displayTimeWindows)
```

Adds display time windows for the point of interest entity.

Optional.  

### addBadge

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addBadge(Badge badge)
```

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

Optional.  

### addBadges

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addBadges(List<Badge> badges)
```

Add badges for the point of interest entity.

Optional.  

### addContentCategories

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addContentCategories(List<Integer> contentCategories)
```

Add eligible content categories for the point of interest entity.

Optional.  

### addContentCategory

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addContentCategory(
    @PointOfInterestEntity.EligibleContentCategory int contentCategory
)
```

Add eligible content category for the point of interest entity.

Optional.  

### addDisplayTimeWindow

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)
```

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

Optional.  

### addPosterImage

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addPosterImage(Image image)
```

Add a poster image of the entity.

Required.  

### addPosterImages

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addPosterImages(List<Image> images)
```

Add poster images of the entity.

Required.  

### addSubtitle

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder addSubtitle(String subtitle)
```

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
public PointOfInterestEntity.Builder addSubtitles(List<String> subtitles)
```

Add subtitles for the point of interest entity.

Optional.  

### build

```
public PointOfInterestEntity build()
```  

### setActionLinkUri

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setActionLinkUri(Uri actionLinkUri)
```

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

Required.  

### setAvailabilityTimeWindow

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setAvailabilityTimeWindow(
    AvailabilityTimeWindow availabilityTimeWindow
)
```

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
public PointOfInterestEntity.Builder setDescription(String description)
```

Sets the description for the point of interest entity.

Optional.  

### setEntityId

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setEntityId(String entityId)
```

Sets content id of the entity.

Optional.  

### setLastEngagementTime

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setLastEngagementTime(Instant lastEngagementTime)
```

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

Optional.  

### setLocation

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setLocation(Address location)
```

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

Required.  

### setPrice

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setPrice(Price price)
```

Sets the price for the point of interest entity;

Optional.  

### setPriceCallout

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setPriceCallout(String priceCallout)
```

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

Optional.  

### setRating

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setRating(Rating rating)
```

Sets the rating for the point of interest entity.

Optional.  

### setTitle

```
@CanIgnoreReturnValue
public PointOfInterestEntity.Builder setTitle(String title)
```

Sets the title of the point of interest entity.

Required.