GenericAudioEntity.Builder


public class GenericAudioEntity.Builder


Builder class for GenericAudioEntity.

Summary

Public constructors

Public methods

GenericAudioEntity.Builder

Adds the display time window for the entity

GenericAudioEntity.Builder

Adds the display time window for the entity

GenericAudioEntity.Builder

Add a poster image of the entity.

GenericAudioEntity.Builder

Add poster images of the entity.

GenericAudioEntity.Builder

Add a subtitle for the audio entity.

GenericAudioEntity.Builder

Add subtitles for the audio entity.

GenericAudioEntity
GenericAudioEntity.Builder

Sets the action uri for the entity.

GenericAudioEntity.Builder

Sets the callout for the entity.

GenericAudioEntity.Builder

Sets the callout fine print for the entity.

GenericAudioEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

Sets whether the content is downloaded on device.

GenericAudioEntity.Builder

Sets content id of the entity.

GenericAudioEntity.Builder
@CanIgnoreReturnValue
setExplicitContent(boolean explicitContent)

Sets whether the content is explicit.

GenericAudioEntity.Builder

Sets whether the entity is a music artist

GenericAudioEntity.Builder

Sets whether the entity is a book.

GenericAudioEntity.Builder

Sets whether the entity is a talk (podcast).

GenericAudioEntity.Builder

Sets whether the entity is a video.

GenericAudioEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets the last engagement time for the entity.

GenericAudioEntity.Builder

Sets the listen next type for the entity.

GenericAudioEntity.Builder

Sets the name of the entity.

GenericAudioEntity.Builder

Sets the price for the entity.

GenericAudioEntity.Builder
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets the progress percent complete for the entity.

GenericAudioEntity.Builder

Sets the rating for the entity.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the entity

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public GenericAudioEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the entity

Optional.

addPosterImage

@CanIgnoreReturnValue
public GenericAudioEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public GenericAudioEntity.Builder addSubtitle(String subtitle)

Add a subtitle for the audio entity.

addSubtitles

@CanIgnoreReturnValue
public GenericAudioEntity.Builder addSubtitles(List<String> subtitles)

Add subtitles for the audio entity.

build

public GenericAudioEntity build()

setActionUri

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setActionUri(Uri actionUri)

Sets the action uri for the entity.

Required.

setCallout

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setCallout(String callout)

Sets the callout for the entity.

Optional.

setCalloutFinePrint

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setCalloutFinePrint(String calloutFinePrint)

Sets the callout fine print for the entity.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

Sets whether the content is downloaded on device.

Optional.

setEntityId

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setExplicitContent

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setExplicitContent(boolean explicitContent)

Sets whether the content is explicit.

Required.

setIsArtist

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setIsArtist(Boolean isArtist)

Sets whether the entity is a music artist

Optional

setIsBook

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setIsBook(boolean isBook)

Sets whether the entity is a book.

Optional.

setIsTalk

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setIsTalk(Boolean isTalk)

Sets whether the entity is a talk (podcast).

Optional.

setIsVideoSupported

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setIsVideoSupported(Boolean isVideoSupported)

Sets whether the entity is a video.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets the last engagement time for the entity.

Optional.

setListenNextType

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setListenNextType(@ListenNextType int listenNextType)

Sets the listen next type for the entity.

Optional.

setName

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPrice

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setPrice(Price price)

Sets the price for the entity.

Optional.

setProgressPercentComplete

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets the progress percent complete for the entity.

Optional.

setRating

@CanIgnoreReturnValue
public GenericAudioEntity.Builder setRating(Rating rating)

Sets the rating for the entity.

Optional.