ProductEntity.Builder


class ProductEntity.Builder


Builder class for ProductEntity.

Summary

Public constructors

Public functions

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 constructors

Builder

Builder()

Public functions

addAllDisplayTimeWindow

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

Adds the display time window for the product entity.

Optional.

addDisplayTimeWindow

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

Adds the display time window for the product entity.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): ProductEntity!

setActionLinkUri

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

Sets the action link uri for the product entity.

Required.

setCallout

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

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

Optional.

setCalloutFinePrint

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

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

Optional.

setEntityId

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

Sets content id of the entity.

Optional.

setPrice

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

Sets the price for the product entity;

Optional.

setRating

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

Sets the rating for the shopping entity.

Optional.

setTitle

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

Sets the title of the shopping entity.

Optional.

Public properties