# AnalyticsInfo.Builder


```
public final class AnalyticsInfo.Builder
```

<br />

*** ** * ** ***

> [!WARNING]
> Direct use of the Google Play Services DTDI SDK is not supported. You should use the [Cross
> Device SDK](https://developer.android.com/guide/topics/connectivity/cross-device-sdk/overview) for creating cross device experiences.

Direct use of `AnalyticsInfo.Builder` is not supported.

Builder for AnalyticsInfo.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder#Builder()()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo` | `https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder#build()()` Build the AnalyticsInfo. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder` | `https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder#setCorrelationId(kotlin.ByteArray)(@https://developer.android.com/reference/androidx/annotation/NonNull.html byte[] correlationId)` Randomly generated, PII-free identifier for a group of devices participating in a single experience. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder` | `https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder#setGenesisMillis(kotlin.Long)(long genesisMillis)` Time this correlation data was created. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder` | `https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder#setLocalEphemeralDeviceId(kotlin.ByteArray)(@https://developer.android.com/reference/androidx/annotation/NonNull.html byte[] localEphemeralDeviceId)` Randomly generated, PII-free, identifier, for the local device in a single experience. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder` | `https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder#setParentCorrelationId(kotlin.ByteArray)(@https://developer.android.com/reference/androidx/annotation/NonNull.html byte[] parentCorrelationId)` A parent Correlation Identifier that this experience is associated with. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder` | `https://developers.google.com/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder#setRegenerated(kotlin.Boolean)(boolean regenerated)` Indicates whether this set of identifiers was regenerated because of expiration or not. |

## Public constructors

### Builder

```
public Builder()
```

## Public methods

### build

```
public final @NonNull AnalyticsInfo build()
```

Build the AnalyticsInfo.

### setCorrelationId

```
public final @NonNull AnalyticsInfo.Builder setCorrelationId(@NonNull byte[] correlationId)
```

Randomly generated, PII-free identifier for a group of devices participating in a single experience.

### setGenesisMillis

```
public final @NonNull AnalyticsInfo.Builder setGenesisMillis(long genesisMillis)
```

Time this correlation data was created. Used to track identifier expiration.

### setLocalEphemeralDeviceId

```
public final @NonNull AnalyticsInfo.Builder setLocalEphemeralDeviceId(@NonNull byte[] localEphemeralDeviceId)
```

Randomly generated, PII-free, identifier, for the local device in a single experience.

### setParentCorrelationId

```
public final @NonNull AnalyticsInfo.Builder setParentCorrelationId(@NonNull byte[] parentCorrelationId)
```

A parent Correlation Identifier that this experience is associated with.

### setRegenerated

```
public final @NonNull AnalyticsInfo.Builder setRegenerated(boolean regenerated)
```

Indicates whether this set of identifiers was regenerated because of expiration or not.