ShoppingEntity.Builder


class ShoppingEntity.Builder


Builder class for ShoppingEntity.

Summary

Public constructors

Public functions

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

Builder()

Public functions

addAllDisplayTimeWindow

@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): ShoppingEntity.Builder!

Adds the display time window for the shopping entity.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): ShoppingEntity.Builder!

Adds the display time window for the shopping entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): ShoppingEntity.Builder!

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): ShoppingEntity.Builder!

Add poster images of the entity.

Required.

build

fun build(): ShoppingEntity!

setActionLinkUri

@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): ShoppingEntity.Builder!

Sets the action link uri for the shopping entity.

Required.

setCallout

@CanIgnoreReturnValue
fun setCallout(callout: String!): ShoppingEntity.Builder!

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

Optional.

setCalloutFinePrint

@CanIgnoreReturnValue
fun setCalloutFinePrint(calloutFinePrint: String!): ShoppingEntity.Builder!

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

Optional.

setEntityId

@CanIgnoreReturnValue
fun setEntityId(entityId: String!): ShoppingEntity.Builder!

Sets content id of the video entity.

Optional.

setPrice

@CanIgnoreReturnValue
fun setPrice(price: Price!): ShoppingEntity.Builder!

Sets the price for the shopping entity;

Optional.

setRating

@CanIgnoreReturnValue
fun setRating(rating: Rating!): ShoppingEntity.Builder!

Sets the rating for the shopping entity.

Optional.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String!): ShoppingEntity.Builder!

Sets the title of the shopping entity.

Optional.