ProductEntity.Builder

public final class ProductEntity.Builder


Builder class for ProductEntity.

Summary

Public constructors

Public methods

ProductEntity.Builder

Adds the display time window for the product entity.

ProductEntity.Builder

Adds the display time window for the product entity.

ProductEntity.Builder

Add a poster image of the entity.

ProductEntity.Builder

Add poster images of the entity.

ProductEntity
ProductEntity.Builder

Sets the action link uri for the product entity.

ProductEntity.Builder

Sets the callout of the product. e.g. "Free delivery"

ProductEntity.Builder

Sets the fine print text for the callout. e.g. "For a limited time only"

ProductEntity.Builder

Sets content id of the entity.

ProductEntity.Builder

Sets the price for the product entity;

ProductEntity.Builder

Sets the rating for the shopping entity.

ProductEntity.Builder

Sets the title of the shopping entity.

Public fields

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the product entity.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public ProductEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the product entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public ProductEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public ProductEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public ProductEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the product entity.

Required.

setCallout

@CanIgnoreReturnValue
public ProductEntity.Builder setCallout(String callout)

Sets the callout of the product. e.g. "Free delivery"

Optional.

setCalloutFinePrint

@CanIgnoreReturnValue
public ProductEntity.Builder setCalloutFinePrint(String calloutFinePrint)

Sets the fine print text for the callout. e.g. "For a limited time only"

Optional.

setEntityId

@CanIgnoreReturnValue
public ProductEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setPrice

@CanIgnoreReturnValue
public ProductEntity.Builder setPrice(Price price)

Sets the price for the product entity;

Optional.

setRating

@CanIgnoreReturnValue
public ProductEntity.Builder setRating(Rating rating)

Sets the rating for the shopping entity.

Optional.

setTitle

@CanIgnoreReturnValue
public ProductEntity.Builder setTitle(String title)

Sets the title of the shopping entity.

Optional.