MusicVideoEntity.Builder


public final class MusicVideoEntity.Builder


Builder class for MusicVideoEntity.

Summary

Public constructors

Public methods

MusicVideoEntity.Builder

Adds artist of the music video.

MusicVideoEntity.Builder

Adds the list of artists of the music video.

MusicVideoEntity.Builder

Adds the content rating of the music video.

MusicVideoEntity.Builder

Adds the list of content ratings of the music video.

MusicVideoEntity.Builder

Add a poster image of the entity.

MusicVideoEntity.Builder

Add poster images of the entity.

MusicVideoEntity
MusicVideoEntity.Builder

Adds the description of the audio entity.

MusicVideoEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

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

MusicVideoEntity.Builder

Sets the duration of the music video.

MusicVideoEntity.Builder

Sets content id of the entity.

MusicVideoEntity.Builder
@CanIgnoreReturnValue
setExplicitContent(boolean explicitContent)

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

MusicVideoEntity.Builder

Sets the info page uri of the music video.

MusicVideoEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

MusicVideoEntity.Builder

Sets the name of the entity.

MusicVideoEntity.Builder

Sets the play back uri of the music video.

MusicVideoEntity.Builder
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

MusicVideoEntity.Builder

Sets the number of views of the music video.

Public constructors

Builder

public Builder()

Public methods

addArtist

@CanIgnoreReturnValue
public MusicVideoEntity.Builder addArtist(String artist)

Adds artist of the music video.

Optional.

addArtists

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

Adds the list of artists of the music video.

Optional.

addContentRating

@CanIgnoreReturnValue
public MusicVideoEntity.Builder addContentRating(String contentRating)

Adds the content rating of the music video.

Optional.

addContentRatings

@CanIgnoreReturnValue
public MusicVideoEntity.Builder addContentRatings(List<String> contentRatings)

Adds the list of content ratings of the music video.

Optional.

addPosterImage

@CanIgnoreReturnValue
public MusicVideoEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public MusicVideoEntity build()

setDescription

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setDescription(String description)

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setDurationMillis(long durationMillis)

Sets the duration of the music video.

Required.

setEntityId

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setExplicitContent

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setExplicitContent(boolean explicitContent)

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

Optional.

setInfoPageUri

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setInfoPageUri(Uri infoPageUri)

Sets the info page uri of the music video.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setName

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setPlayBackUri(Uri playBackUri)

Sets the play back uri of the music video.

Required.

setProgressPercentComplete

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

Optional

setViewCount

@CanIgnoreReturnValue
public MusicVideoEntity.Builder setViewCount(String viewCount)

Sets the number of views of the music video.

Optional.