ContinuationCluster.Builder

public final class ContinuationCluster.Builder


Builder class for ContinuationCluster.

Summary

Public constructors

Public methods

ContinuationCluster.Builder

Adds display time windows for the continuation cluster.

ContinuationCluster.Builder

Adds a display time window for the continuation cluster.

ContinuationCluster.Builder

Add an Entity.

ContinuationCluster
ContinuationCluster.Builder

Sets the account profile for a user to the BaseCluster.

ContinuationCluster.Builder
@CanIgnoreReturnValue
setSyncAcrossDevices(boolean syncAcrossDevices)

Set the flag to allow sync the cluster across devices.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds display time windows for the continuation cluster.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public ContinuationCluster.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds a display time window for the continuation cluster.

Optional.

addEntity

@CanIgnoreReturnValue
public ContinuationCluster.Builder addEntity(Entity entity)

Add an Entity.

Required.

build

public ContinuationCluster build()

setAccountProfile

@CanIgnoreReturnValue
public ContinuationCluster.Builder setAccountProfile(AccountProfile accountProfile)

Sets the account profile for a user to the BaseCluster. This will be used to uniquely identify a user account and/or a profile.

Optional.

setSyncAcrossDevices

@CanIgnoreReturnValue
public ContinuationCluster.Builder setSyncAcrossDevices(boolean syncAcrossDevices)

Set the flag to allow sync the cluster across devices. For example, if this is set to true, the video continuation cluster will be shared across all user devices on the "watch next" row.

Optional.