0.13.0 (latest) 0.12.0 0.11.0 0.10.3 0.9.0 0.8.0 0.7.0 0.6.4 0.5.1 0.4.1 0.3.2 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class Membership.

An output only view of all the member clusters participating in the cross
cluster replication.

Generated from protobuf message `google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership`

## Namespace

Google \\ Cloud \\ Redis \\ Cluster \\ V1 \\ CrossClusterReplicationConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ primary_cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig.RemoteCluster` Output only. The primary cluster that acts as the source of replication for the secondary clusters. |
| `↳ secondary_clusters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig.RemoteCluster>` Output only. The list of secondary clusters replicating from the primary cluster. |

### getPrimaryCluster

Output only. The primary cluster that acts as the source of replication
for the secondary clusters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig.RemoteCluster|null` |   |

### hasPrimaryCluster

### clearPrimaryCluster

### setPrimaryCluster

Output only. The primary cluster that acts as the source of replication
for the secondary clusters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig.RemoteCluster` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSecondaryClusters

Output only. The list of secondary clusters replicating from the primary
cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig.RemoteCluster>` |   |

### setSecondaryClusters

Output only. The list of secondary clusters replicating from the primary
cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig.RemoteCluster>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |