# SubscriptionCluster

# SubscriptionCluster

*** ** * ** ***

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

<br />

```
public final class SubscriptionCluster
```

<br />

*** ** * ** ***

A list of entities for subscription clusters.

## Summary

|                                                                                                                                                  ### Nested types                                                                                                                                                  |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[SubscriptionCluster.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionCluster.Builder) Builder class for[SubscriptionCluster](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionCluster). |

|                                                                                                                ### Public fields                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[SubscriptionEntity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionEntity)`>` | [subscriptionEntities](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionCluster#subscriptionEntities()) |

|                                                                                                           ### Public methods                                                                                                            |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[AccountProfile](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AccountProfile)`>`                      | [getAccountProfile](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionCluster#getAccountProfile())`()` \* Returns the account profile for a user.                                                                                                        |
| `int`                                                                                                                                                                                                                                   | [getClusterType](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionCluster#getClusterType())`()`                                                                                                                                                         |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[SubscriptionEntity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionEntity)`>` | [getSubscriptionEntities](https://developer.android.com/reference/com/google/android/engage/common/datamodel/SubscriptionCluster#getSubscriptionEntities())`()` Returns the list of[Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity)in the Cluster. |

## Public fields

### subscriptionEntities

```
public final ImmutableList<SubscriptionEntity> subscriptionEntities
```  

## Public methods

### getAccountProfile

```
public Optional<AccountProfile> getAccountProfile()
```

\* Returns the account profile for a user.  

### getClusterType

```
public int getClusterType()
```  

### getSubscriptionEntities

```
public ImmutableList<SubscriptionEntity> getSubscriptionEntities()
```

Returns the list of[Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity)in the Cluster.