MusicAlbumEntity.Builder


public final class MusicAlbumEntity.Builder


Builder class for MusicAlbumEntity.

Summary

Public constructors

Public methods

MusicAlbumEntity.Builder

Adds artist of the music album.

MusicAlbumEntity.Builder

Adds the list of artists of the music album.

MusicAlbumEntity.Builder

Adds genre of the music album.

MusicAlbumEntity.Builder

Adds the list of genres of the music album.

MusicAlbumEntity.Builder

Adds music label of the music album.

MusicAlbumEntity.Builder

Adds the list of music labels of the music album.

MusicAlbumEntity.Builder

Add a poster image of the entity.

MusicAlbumEntity.Builder

Add poster images of the entity.

MusicAlbumEntity
MusicAlbumEntity.Builder

Adds the description of the audio entity.

MusicAlbumEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

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

MusicAlbumEntity.Builder

Sets the duration of the music album.

MusicAlbumEntity.Builder

Sets content id of the entity.

MusicAlbumEntity.Builder
@CanIgnoreReturnValue
setExplicitContent(boolean explicitContent)

Sets a boolean value to indicate if music album has explicit content or not.

MusicAlbumEntity.Builder

Sets the info page uri of the music album.

MusicAlbumEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

MusicAlbumEntity.Builder

Sets a music album type

MusicAlbumEntity.Builder

Sets the name of the entity.

MusicAlbumEntity.Builder

Sets the playback uri of the music album.

MusicAlbumEntity.Builder
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

MusicAlbumEntity.Builder
@CanIgnoreReturnValue
setReleaseDateEpochMillis(long releaseDateEpochMillis)

Sets the release date of the music album in epoch milliseconds.

MusicAlbumEntity.Builder

Sets the count of the songs in the music album.

Public constructors

Builder

public Builder()

Public methods

addArtist

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder addArtist(String artist)

Adds artist of the music album.

Required.

addArtists

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder addArtists(List<String> artists)

Adds the list of artists of the music album.

Required.

addGenre

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder addGenre(String genre)

Adds genre of the music album.

Optional.

addGenres

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

Adds the list of genres of the music album.

Optional.

addMusicLabel

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder addMusicLabel(String musicLabel)

Adds music label of the music album.

Optional.

addMusicLabels

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder addMusicLabels(List<String> musicLabels)

Adds the list of music labels of the music album.

Optional.

addPosterImage

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public MusicAlbumEntity build()

setDescription

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setDescription(String description)

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setDurationMillis(long durationMillis)

Sets the duration of the music album.

Optional.

setEntityId

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setExplicitContent

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setExplicitContent(boolean explicitContent)

Sets a boolean value to indicate if music album has explicit content or not.

Optional.

setInfoPageUri

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setInfoPageUri(Uri infoPageUri)

Sets the info page uri of the music album.

Required.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setMusicAlbumType

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setMusicAlbumType(@MusicAlbumType int musicAlbumType)

Sets a music album type

Optional.

setName

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setPlayBackUri(Uri playBackUri)

Sets the playback uri of the music album.

Optional.

setProgressPercentComplete

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

Optional

setReleaseDateEpochMillis

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setReleaseDateEpochMillis(long releaseDateEpochMillis)

Sets the release date of the music album in epoch milliseconds.

Optional.

setSongsCount

@CanIgnoreReturnValue
public MusicAlbumEntity.Builder setSongsCount(int songsCount)

Sets the count of the songs in the music album.

Optional.