ShoppingOrderTrackingCluster.Builder


public final class ShoppingOrderTrackingCluster.Builder


Builder class for ShoppingOrderTrackingCluster.

Summary

Public constructors

Public methods

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

Add a subtitle for the order tracking cluster.

ShoppingOrderTrackingCluster.Builder

Add subtitles for the order tracking cluster.

ShoppingOrderTrackingCluster
ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

Sets the order type of the shopping order tracking cluster.

ShoppingOrderTrackingCluster.Builder

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

ShoppingOrderTrackingCluster.Builder

Sets the title of the order tracking cluster.

ShoppingOrderTrackingCluster.Builder

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.

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.