EbookEntity.Builder


public final class EbookEntity.Builder


Builder class for EbookEntity.

Summary

Public constructors

Public methods

EbookEntity.Builder

Adds the display time window for the book

EbookEntity.Builder

Adds author of the ebook.

EbookEntity.Builder

Adds the list of authors of the ebook.

EbookEntity.Builder

Adds the display time window for the book

EbookEntity.Builder

Adds genre of the ebook.

EbookEntity.Builder

Adds genre of the ebook.

EbookEntity.Builder

Add a poster image of the entity.

EbookEntity.Builder

Add poster images of the entity.

EbookEntity
EbookEntity.Builder

Sets the deeplink associated with the book.

EbookEntity.Builder

Sets the availability of the book.

EbookEntity.Builder

Sets a continue book type for the book.

EbookEntity.Builder

Adds the description of the ebook.

EbookEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if book is downloaded on device or not.

EbookEntity.Builder

Sets content id of the video entity.

EbookEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

EbookEntity.Builder

Sets the name of the entity.

EbookEntity.Builder

Adds the page count of the ebook.

EbookEntity.Builder

Adds the price of the ebook.

EbookEntity.Builder
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the book entity.

EbookEntity.Builder
@CanIgnoreReturnValue
setPublishDateEpochMillis(long publishDateEpochMillis)

Sets publishing date of the ebook, in milliseconds.

EbookEntity.Builder

Sets the rating for the book entity.

EbookEntity.Builder

Adds the name of the series that the ebook belongs to.

EbookEntity.Builder

Adds the index number of the ebook in the series.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the book

Optional.

addAuthor

@CanIgnoreReturnValue
public EbookEntity.Builder addAuthor(String author)

Adds author of the ebook.

Required.

addAuthors

@CanIgnoreReturnValue
public EbookEntity.Builder addAuthors(List<String> author)

Adds the list of authors of the ebook.

Required.

addDisplayTimeWindow

@CanIgnoreReturnValue
public EbookEntity.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the book

Optional.

addGenre

@CanIgnoreReturnValue
public EbookEntity.Builder addGenre(String genre)

Adds genre of the ebook.

Optional.

addGenres

@CanIgnoreReturnValue
public EbookEntity.Builder addGenres(List<String> genres)

Adds genre of the ebook.

Optional.

addPosterImage

@CanIgnoreReturnValue
public EbookEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public EbookEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public EbookEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the deeplink associated with the book.

Required

setAvailability

@CanIgnoreReturnValue
public EbookEntity.Builder setAvailability(@ContentAvailability int availability)

Sets the availability of the book.

Optional.

setContinueBookType

@CanIgnoreReturnValue
public EbookEntity.Builder setContinueBookType(int continueBookType)

Sets a continue book type for the book.

Optional.

setDescription

@CanIgnoreReturnValue
public EbookEntity.Builder setDescription(String description)

Adds the description of the ebook.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public EbookEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if book is downloaded on device or not.

Optional.

setEntityId

@CanIgnoreReturnValue
public EbookEntity.Builder setEntityId(String entityId)

Sets content id of the video entity.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public EbookEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

Optional.

setName

@CanIgnoreReturnValue
public EbookEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPageCount

@CanIgnoreReturnValue
public EbookEntity.Builder setPageCount(int pageCount)

Adds the page count of the ebook.

Optional.

setPrice

@CanIgnoreReturnValue
public EbookEntity.Builder setPrice(Price price)

Adds the price of the ebook.

Optional.

setProgressPercentComplete

@CanIgnoreReturnValue
public EbookEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the book entity.

Optional.

setPublishDateEpochMillis

@CanIgnoreReturnValue
public EbookEntity.Builder setPublishDateEpochMillis(long publishDateEpochMillis)

Sets publishing date of the ebook, in milliseconds.

Optional.

setRating

@CanIgnoreReturnValue
public EbookEntity.Builder setRating(Rating rating)

Sets the rating for the book entity.

Optional.

setSeriesName

@CanIgnoreReturnValue
public EbookEntity.Builder setSeriesName(String seriesName)

Adds the name of the series that the ebook belongs to.

Optional.

setSeriesUnitIndex

@CanIgnoreReturnValue
public EbookEntity.Builder setSeriesUnitIndex(Integer seriesUnitIndex)

Adds the index number of the ebook in the series.

Optional.