FoodReorderCluster.Builder


public final class FoodReorderCluster.Builder


Builder class for FoodReorderCluster.

Summary

Public constructors

Public methods

FoodReorderCluster.Builder

Adds the display time window for the reorder cluster.

FoodReorderCluster.Builder

Adds the display time window for the reorder cluster.

FoodReorderCluster.Builder

Add a item label in the reorder cluster

FoodReorderCluster.Builder

Add a list of item labels in the reorder cluster

FoodReorderCluster.Builder

Adds a poster image of the items in the reorder cluster.

FoodReorderCluster.Builder

Adds poster images of the items in the reorder cluster.

FoodReorderCluster
FoodReorderCluster.Builder

Sets the action link uri for the reorder cluster.

FoodReorderCluster.Builder

Sets the action text of the reorder cluster. e.g. "Reorder"

FoodReorderCluster.Builder

Sets the number of items in the reorder cluster.

FoodReorderCluster.Builder

Sets the title of the reorder cluster.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the reorder cluster.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public FoodReorderCluster.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the reorder cluster.

Optional.

addItemLabel

@CanIgnoreReturnValue
public FoodReorderCluster.Builder addItemLabel(String itemLabel)

Add a item label in the reorder cluster

Optional.

addItemLabels

@CanIgnoreReturnValue
public FoodReorderCluster.Builder addItemLabels(List<String> itemLabels)

Add a list of item labels in the reorder cluster

Optional.

addPosterImage

@CanIgnoreReturnValue
public FoodReorderCluster.Builder addPosterImage(Image image)

Adds a poster image of the items in the reorder cluster.

Optional.

addPosterImages

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

Adds poster images of the items in the reorder cluster.

Optional.

build

public FoodReorderCluster build()

setActionLinkUri

@CanIgnoreReturnValue
public FoodReorderCluster.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the reorder cluster.

Required.

setActionText

@CanIgnoreReturnValue
public FoodReorderCluster.Builder setActionText(String actionText)

Sets the action text of the reorder cluster. e.g. "Reorder"

Optional.

setNumberOfItems

@CanIgnoreReturnValue
public FoodReorderCluster.Builder setNumberOfItems(int numberOfItems)

Sets the number of items in the reorder cluster.

When set to 0, the reorder cluster is empty.

Optional.

setTitle

@CanIgnoreReturnValue
public FoodReorderCluster.Builder setTitle(String title)

Sets the title of the reorder cluster.

Optional.