# ShoppingOrderTrackingCluster.Builder

# ShoppingOrderTrackingCluster.Builder

*** ** * ** ***

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

<br />

```
public final class ShoppingOrderTrackingCluster.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                                        ### Public methods                                                                         |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)` image)` Adds a poster image of the items in the order tracking cluster.                                                                                          |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.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)` Adds poster images of the items in the order tracking cluster. |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitle](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#addSubtitle(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` subtitle)` Add a subtitle for the order tracking cluster.                                                                                                                                                                        |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitles](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.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 order tracking cluster.                                                                               |
| [ShoppingOrderTrackingCluster](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster)                 | [build](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionLinkUri](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setActionLinkUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` actionLinkUri)` Sets the action link uri for the food order tracking cluster.                                                                                                                                               |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setNumberOfItems](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setNumberOfItems(java.lang.Integer))`(`[Integer](https://developer.android.com/reference/java/lang/Integer.html)` numberOfItems)` Sets the number of items in the order that is being tracked.                                                                                                                                        |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setOrderDescription](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setOrderDescription(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` orderDescription)` Sets the description of the order tracking cluster, typically containing a comma separated list of items in the order.                                                                        |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setOrderReadyTimeWindow](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setOrderReadyTimeWindow(com.google.android.engage.common.datamodel.OrderReadyTimeWindow))`(`[OrderReadyTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/OrderReadyTimeWindow)` orderReadyTimeWindow)` Sets the order ready time window for the order tracking cluster.           |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setOrderTime](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setOrderTime(long))`(long orderTime)` Sets the epoch timestamp (in milliseconds) of the order placed by the user.                                                                                                                                                                                                                         |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setOrderValue](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setOrderValue(com.google.android.engage.common.datamodel.Price))`(`[Price](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price)` orderValue)` Sets the total value of the order that is being tracked.                                                                                              |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setShoppingOrderType](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setShoppingOrderType(int))`(@`[ShoppingOrderType](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderType)` int shoppingOrderType)` Sets the order type of the shopping order tracking cluster.                                                                                    |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setStatus](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setStatus(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` status)` Sets the status of the order tracking cluster. e.g. "Running late", "Delivered", etc.                                                                                                                                       |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTitle](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setTitle(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` title)` Sets the title of the order tracking cluster.                                                                                                                                                                                  |
| [ShoppingOrderTrackingCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTrackingId](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingOrderTrackingCluster.Builder#setTrackingId(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` trackingId)` Sets the tracking number/ID of the order that is being tracked.                                                                                                                                                 |

## Public constructors

### Builder

```
public Builder()
```  

## Public methods

### addPosterImage

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

Adds a poster image of the items in the order tracking cluster.

Optional.  

### addPosterImages

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

Adds poster images of the items in the order tracking cluster.

Optional.  

### addSubtitle

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

Add a subtitle for the order tracking cluster.

Optional.  

### addSubtitles

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder addSubtitles(List<String> subtitles)
```

Add subtitles for the order tracking cluster.

Optional.  

### build

```
public ShoppingOrderTrackingCluster build()
```  

### setActionLinkUri

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

Sets the action link uri for the food order tracking cluster.

Required.  

### setNumberOfItems

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setNumberOfItems(Integer numberOfItems)
```

Sets the number of items in the order that is being tracked.

When set to 0, there are no orders to be tracked.

Optional.  

### setOrderDescription

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setOrderDescription(String orderDescription)
```

Sets the description of the order tracking cluster, typically containing a comma separated list of items in the order.

Optional.  

### setOrderReadyTimeWindow

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setOrderReadyTimeWindow(OrderReadyTimeWindow orderReadyTimeWindow)
```

Sets the order ready time window for the order tracking cluster.

Optional.  

### setOrderTime

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setOrderTime(long orderTime)
```

Sets the epoch timestamp (in milliseconds) of the order placed by the user.

Required.  

### setOrderValue

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setOrderValue(Price orderValue)
```

Sets the total value of the order that is being tracked.

Optional.  

### setShoppingOrderType

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setShoppingOrderType(@ShoppingOrderType int shoppingOrderType)
```

Sets the order type of the shopping order tracking cluster.

Required.  

### setStatus

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setStatus(String status)
```

Sets the status of the order tracking cluster. e.g. "Running late", "Delivered", etc.

Required.  

### setTitle

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

Sets the title of the order tracking cluster.

Required.  

### setTrackingId

```
@CanIgnoreReturnValue
public ShoppingOrderTrackingCluster.Builder setTrackingId(String trackingId)
```

Sets the tracking number/ID of the order that is being tracked.

Optional.