VideoClipEntity.Builder


public final class VideoClipEntity.Builder


Builder class for VideoClipEntity.

Summary

Public constructors

Public methods

VideoClipEntity.Builder

Adds the availability time windows of the video entity.

VideoClipEntity.Builder

Adds the availability time window of the video entity.

VideoClipEntity.Builder

Add platform specific playback uri for the video clip entity.

VideoClipEntity.Builder

Add platform specific playback uris for the video clip entity.

VideoClipEntity.Builder

Add a poster image of the entity.

VideoClipEntity.Builder

Add poster images of the entity.

VideoClipEntity
VideoClipEntity.Builder
@CanIgnoreReturnValue
setCreatedTimeEpochMillis(long createdTimeEpochMillis)

Sets the creation time of the video, in milliseconds from Epoch.

VideoClipEntity.Builder

Sets the creator of the video.

VideoClipEntity.Builder

Sets the image of the creator of the video.

VideoClipEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

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

VideoClipEntity.Builder

Sets the duration of the video, in milliseconds.

VideoClipEntity.Builder

Sets content id of the entity.

VideoClipEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

VideoClipEntity.Builder
@CanIgnoreReturnValue
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

Sets last play back position of the video entity, in milliseconds.

VideoClipEntity.Builder

Sets the name of the entity.

VideoClipEntity.Builder

Sets the on device deeplink to start playing the video.

VideoClipEntity.Builder

Sets the view count of the video.

VideoClipEntity.Builder

Sets the watch next type of the video entity.

Public constructors

Builder

public Builder()

Public methods

addAllAvailabilityTimeWindows

@CanIgnoreReturnValue
public VideoClipEntity.Builder addAllAvailabilityTimeWindows(
    List<DisplayTimeWindow> availabilityTimeWindows
)

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
public VideoClipEntity.Builder addAvailabilityTimeWindow(DisplayTimeWindow availabilityTimeWindow)

Adds the availability time window of the video entity.

Optional.

addPlatformSpecificPlaybackUri

@CanIgnoreReturnValue
public VideoClipEntity.Builder addPlatformSpecificPlaybackUri(
    PlatformSpecificUri platformSpecificPlaybackUri
)

Add platform specific playback uri for the video clip entity.

Optional.

addPlatformSpecificPlaybackUris

@CanIgnoreReturnValue
public VideoClipEntity.Builder addPlatformSpecificPlaybackUris(
    List<PlatformSpecificUri> platformSpecificPlaybackUris
)

Add platform specific playback uris for the video clip entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public VideoClipEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public VideoClipEntity build()

setCreatedTimeEpochMillis

@CanIgnoreReturnValue
public VideoClipEntity.Builder setCreatedTimeEpochMillis(long createdTimeEpochMillis)

Sets the creation time of the video, in milliseconds from Epoch.

Required.

setCreator

@CanIgnoreReturnValue
public VideoClipEntity.Builder setCreator(String creator)

Sets the creator of the video.

Required.

setCreatorImage

@CanIgnoreReturnValue
public VideoClipEntity.Builder setCreatorImage(Image creatorImage)

Sets the image of the creator of the video.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public VideoClipEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
public VideoClipEntity.Builder setDurationMillis(long durationMillis)

Sets the duration of the video, in milliseconds.

Required.

setEntityId

@CanIgnoreReturnValue
public VideoClipEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public VideoClipEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
public VideoClipEntity.Builder setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

Sets last play back position of the video entity, in milliseconds.

Optional.

setName

@CanIgnoreReturnValue
public VideoClipEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public VideoClipEntity.Builder setPlayBackUri(Uri playBackUri)

Sets the on device deeplink to start playing the video.

Required.

setViewCount

@CanIgnoreReturnValue
public VideoClipEntity.Builder setViewCount(String viewCount)

Sets the view count of the video.

Optional.

setWatchNextType

@CanIgnoreReturnValue
public VideoClipEntity.Builder setWatchNextType(@WatchNextType int watchNextType)

Sets the watch next type of the video entity.

Optional.