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 ClusterRole.

The role of the cluster in cross cluster replication.

Protobuf type `google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole`

## Namespace

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

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### CLUSTER_ROLE_UNSPECIFIED

    Value: 0

Cluster role is not set.

The behavior is equivalent to NONE.

Generated from protobuf enum `CLUSTER_ROLE_UNSPECIFIED = 0;`

### NONE

    Value: 1

This cluster does not participate in cross cluster replication. It is an
independent cluster and does not replicate to or from any other clusters.

Generated from protobuf enum `NONE = 1;`

### PRIMARY

    Value: 2

A cluster that allows both reads and writes. Any data written to this
cluster is also replicated to the attached secondary clusters.

Generated from protobuf enum `PRIMARY = 2;`

### SECONDARY

    Value: 3

A cluster that allows only reads and replicates data from a primary
cluster.

Generated from protobuf enum `SECONDARY = 3;`