# ContinuationCluster.Builder

# ContinuationCluster.Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/common/datamodel/ContinuationCluster.Builder "View this page in Java")  

<br />

```
class ContinuationCluster.Builder
```

<br />

*** ** * ** ***

Builder class for[ContinuationCluster](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster).

## Summary

|                                                            ### Public constructors                                                             |
|------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder#Builder())`()` |

|                                                                  ### Public functions                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ContinuationCluster.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAllDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder#addAllDisplayTimeWindow(java.util.List<com.google.android.engage.common.datamodel.DisplayTimeWindow>))`(` ` displayTimeWindows: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` `)` Adds display time windows for the continuation cluster. |
| [ContinuationCluster.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder#addDisplayTimeWindow(com.google.android.engage.common.datamodel.DisplayTimeWindow))`(displayTimeWindow: `[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!)` Adds a display time window for the continuation cluster.                                                                                                                                                                                                                                  |
| [ContinuationCluster.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder#addEntity(com.google.android.engage.common.datamodel.Entity))`(entity: `[Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)`!)` Add an[Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity).                                                                                                                                                                                                                                           |
| [ContinuationCluster](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [ContinuationCluster.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAccountProfile](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder#setAccountProfile(com.google.android.engage.common.datamodel.AccountProfile))`(accountProfile: `[AccountProfile](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/AccountProfile)`!)` Sets the account profile for a user to the[BaseCluster](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BaseCluster).                                                                                                                                             |
| [ContinuationCluster.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setSyncAcrossDevices](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ContinuationCluster.Builder#setSyncAcrossDevices(boolean))`(syncAcrossDevices: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Set the flag to allow sync the cluster across devices.                                                                                                                                                                                                                                                                                                                                        |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addAllDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): ContinuationCluster.Builder!
```

Adds display time windows for the continuation cluster.

Optional.  

### addDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): ContinuationCluster.Builder!
```

Adds a display time window for the continuation cluster.

Optional.  

### addEntity

```
@CanIgnoreReturnValue
fun addEntity(entity: Entity!): ContinuationCluster.Builder!
```

Add an[Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity).

Required.  

### build

```
fun build(): ContinuationCluster!
```  

### setAccountProfile

```
@CanIgnoreReturnValue
fun setAccountProfile(accountProfile: AccountProfile!): ContinuationCluster.Builder!
```

Sets the account profile for a user to the[BaseCluster](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BaseCluster). This will be used to uniquely identify a user account and/or a profile.

Optional.  

### setSyncAcrossDevices

```
@CanIgnoreReturnValue
fun setSyncAcrossDevices(syncAcrossDevices: Boolean): ContinuationCluster.Builder!
```

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.