ShoppingEntity.Builder


public final class ShoppingEntity.Builder


Builder class for ShoppingEntity.

Summary

Public constructors

Public methods

ShoppingEntity.Builder

Adds the display time window for the shopping entity.

ShoppingEntity.Builder

Adds the display time window for the shopping entity.

ShoppingEntity.Builder

Add a poster image of the entity.

ShoppingEntity.Builder

Add poster images of the entity.

ShoppingEntity
ShoppingEntity.Builder

Sets the action link uri for the shopping entity.

ShoppingEntity.Builder

Sets the callout text for the shopping entity. e.g. "Thanksgiving deal"

ShoppingEntity.Builder

Sets the callout fine print for the shopping entity e.g. "Limited time only"

ShoppingEntity.Builder

Sets content id of the video entity.

ShoppingEntity.Builder

Sets the price for the shopping entity;

ShoppingEntity.Builder

Sets the rating for the shopping entity.

ShoppingEntity.Builder

Sets the title of the shopping entity.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the shopping entity.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public ShoppingEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the shopping entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public ShoppingEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public ShoppingEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public ShoppingEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the shopping entity.

Required.

setCallout

@CanIgnoreReturnValue
public ShoppingEntity.Builder setCallout(String callout)

Sets the callout text for the shopping entity. e.g. "Thanksgiving deal"

Optional.

setCalloutFinePrint

@CanIgnoreReturnValue
public ShoppingEntity.Builder setCalloutFinePrint(String calloutFinePrint)

Sets the callout fine print for the shopping entity e.g. "Limited time only"

Optional.

setEntityId

@CanIgnoreReturnValue
public ShoppingEntity.Builder setEntityId(String entityId)

Sets content id of the video entity.

Optional.

setPrice

@CanIgnoreReturnValue
public ShoppingEntity.Builder setPrice(Price price)

Sets the price for the shopping entity;

Optional.

setRating

@CanIgnoreReturnValue
public ShoppingEntity.Builder setRating(Rating rating)

Sets the rating for the shopping entity.

Optional.

setTitle

@CanIgnoreReturnValue
public ShoppingEntity.Builder setTitle(String title)

Sets the title of the shopping entity.

Optional.