StoreEntity.Builder


public final class StoreEntity.Builder


Builder class for StoreEntity.

Summary

Public constructors

Public methods

StoreEntity.Builder

Add a poster image of the entity.

StoreEntity.Builder

Add poster images of the entity.

StoreEntity
StoreEntity.Builder

Sets the action link uri for the store entity.

StoreEntity.Builder

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

StoreEntity.Builder

Sets the fine print of the callout. e.g. "Limited time only"

StoreEntity.Builder

Sets the category of the store. e.g. cuisine type of restaurant: "Italian"

StoreEntity.Builder

Sets the description of the store.

StoreEntity.Builder

Sets content id of the entity.

StoreEntity.Builder

Sets the location of the store.

StoreEntity.Builder

Sets the rating for the store entity.

StoreEntity.Builder

Sets the title of the store entity.

Public constructors

Builder

public Builder()

Public methods

addPosterImage

@CanIgnoreReturnValue
public StoreEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public StoreEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public StoreEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the store entity.

Required.

setCallout

@CanIgnoreReturnValue
public StoreEntity.Builder setCallout(String callout)

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

Optional.

setCalloutFinePrint

@CanIgnoreReturnValue
public StoreEntity.Builder setCalloutFinePrint(String calloutFinePrint)

Sets the fine print of the callout. e.g. "Limited time only"

Optional.

setCategory

@CanIgnoreReturnValue
public StoreEntity.Builder setCategory(String category)

Sets the category of the store. e.g. cuisine type of restaurant: "Italian"

Optional.

setDescription

@CanIgnoreReturnValue
public StoreEntity.Builder setDescription(String description)

Sets the description of the store.

Optional.

setEntityId

@CanIgnoreReturnValue
public StoreEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setLocation

@CanIgnoreReturnValue
public StoreEntity.Builder setLocation(String location)

Sets the location of the store.

Optional.

setRating

@CanIgnoreReturnValue
public StoreEntity.Builder setRating(Rating rating)

Sets the rating for the store entity.

Optional.

setTitle

@CanIgnoreReturnValue
public StoreEntity.Builder setTitle(String title)

Sets the title of the store entity.

Optional.