FoodShoppingCart.Builder


public final class FoodShoppingCart.Builder


Builder class for FoodShoppingCart.

Summary

Public constructors

Public methods

FoodShoppingCart.Builder

Adds the display time window for the shopping cart.

FoodShoppingCart.Builder

Adds the display time window for the shopping cart.

FoodShoppingCart.Builder

Add a item label in the shopping cart cluster

FoodShoppingCart.Builder

Add a list of item labels in the shopping cart cluster

FoodShoppingCart.Builder

Adds a poster image of the items in the shopping cart.

FoodShoppingCart.Builder

Adds poster images of the items in the shopping cart.

FoodShoppingCart
FoodShoppingCart.Builder

Sets the action link uri for the shopping cart.

FoodShoppingCart.Builder

Sets the action text of the shopping cart. e.g. "View Cart"

FoodShoppingCart.Builder

Sets the number of items in the shopping cart.

FoodShoppingCart.Builder

Sets the title of the shopping cart.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the shopping cart.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public FoodShoppingCart.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the shopping cart.

Optional.

addItemLabel

@CanIgnoreReturnValue
public FoodShoppingCart.Builder addItemLabel(String itemLabel)

Add a item label in the shopping cart cluster

Optional.

addItemLabels

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

Add a list of item labels in the shopping cart cluster

Optional.

addPosterImage

@CanIgnoreReturnValue
public FoodShoppingCart.Builder addPosterImage(Image image)

Adds a poster image of the items in the shopping cart.

Optional.

addPosterImages

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

Adds poster images of the items in the shopping cart.

Optional.

build

public FoodShoppingCart build()

setActionLinkUri

@CanIgnoreReturnValue
public FoodShoppingCart.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the shopping cart.

Required.

setActionText

@CanIgnoreReturnValue
public FoodShoppingCart.Builder setActionText(String actionText)

Sets the action text of the shopping cart. e.g. "View Cart"

Optional.

setNumberOfItems

@CanIgnoreReturnValue
public FoodShoppingCart.Builder setNumberOfItems(int numberOfItems)

Sets the number of items in the shopping cart.

When set to 0, the cart is empty.

Optional.

setTitle

@CanIgnoreReturnValue
public FoodShoppingCart.Builder setTitle(String title)

Sets the title of the shopping cart.

Optional.