# ProductEntity.Builder

# ProductEntity.Builder

*** ** * ** ***

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

<br />

```
class ProductEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                           ### Public functions                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAllDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.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 the display time window for the product entity. |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.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 the display time window for the product entity.                                                                                                                                                                                                                                   |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.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.                                                                                                                                                                                                                                                                                                                  |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.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.                                                                                            |
| [ProductEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionLinkUri](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder#setActionLinkUri(android.net.Uri))`(actionLinkUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the action link uri for the product entity.                                                                                                                                                                                                                                                                                                                                                             |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCallout](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder#setCallout(java.lang.String))`(callout: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the callout of the product. e.g. "Free delivery"                                                                                                                                                                                                                                                                                                                                                            |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCalloutFinePrint](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder#setCalloutFinePrint(java.lang.String))`(calloutFinePrint: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the fine print text for the callout. e.g. "For a limited time only"                                                                                                                                                                                                                                                                                                              |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                                                                                                                |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.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 product entity;                                                                                                                                                                                                                                                                                                                         |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setRating](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.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 shopping entity.                                                                                                                                                                                                                                                                                                                 |
| [ProductEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/ProductEntity.Builder#setTitle(java.lang.String))`(title: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the title of the shopping 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/food/datamodel/ProductEntity.Builder#displayTimeWindowBuilder()) |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addAllDisplayTimeWindow

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

Adds the display time window for the product entity.

Optional.  

### addDisplayTimeWindow

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

Adds the display time window for the product entity.

Optional.  

### addPosterImage

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

Add a poster image of the entity.

Required.  

### addPosterImages

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

Add poster images of the entity.

Required.  

### build

```
fun build(): ProductEntity!
```  

### setActionLinkUri

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

Sets the action link uri for the product entity.

Required.  

### setCallout

```
@CanIgnoreReturnValue
fun setCallout(callout: String!): ProductEntity.Builder!
```

Sets the callout of the product. e.g. "Free delivery"

Optional.  

### setCalloutFinePrint

```
@CanIgnoreReturnValue
fun setCalloutFinePrint(calloutFinePrint: String!): ProductEntity.Builder!
```

Sets the fine print text for the callout. e.g. "For a limited time only"

Optional.  

### setEntityId

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

Sets content id of the entity.

Optional.  

### setPrice

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

Sets the price for the product entity;

Optional.  

### setRating

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

Sets the rating for the shopping entity.

Optional.  

### setTitle

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

Sets the title of the shopping entity.

Optional.  

## Public properties

### displayTimeWindowBuilder

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