[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Redis Cluster V1 Client - Class ClusterRole (0.5.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.5.1 (latest)](/php/docs/reference/cloud-redis-cluster/latest/V1.CrossClusterReplicationConfig.ClusterRole)\n- [0.5.0](/php/docs/reference/cloud-redis-cluster/0.5.0/V1.CrossClusterReplicationConfig.ClusterRole)\n- [0.4.1](/php/docs/reference/cloud-redis-cluster/0.4.1/V1.CrossClusterReplicationConfig.ClusterRole)\n- [0.3.2](/php/docs/reference/cloud-redis-cluster/0.3.2/V1.CrossClusterReplicationConfig.ClusterRole)\n- [0.2.5](/php/docs/reference/cloud-redis-cluster/0.2.5/V1.CrossClusterReplicationConfig.ClusterRole)\n- [0.1.0](/php/docs/reference/cloud-redis-cluster/0.1.0/V1.CrossClusterReplicationConfig.ClusterRole) \nReference documentation and code samples for the Google Cloud Redis Cluster V1 Client class ClusterRole.\n\nThe role of the cluster in cross cluster replication.\n\nProtobuf type `google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Redis \\\\ Cluster \\\\ V1 \\\\ CrossClusterReplicationConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### CLUSTER_ROLE_UNSPECIFIED\n\n Value: 0\n\nCluster role is not set.\n\nThe behavior is equivalent to NONE.\n\nGenerated from protobuf enum `CLUSTER_ROLE_UNSPECIFIED = 0;`\n\n### NONE\n\n Value: 1\n\nThis cluster does not participate in cross cluster replication. It is an\nindependent cluster and does not replicate to or from any other clusters.\n\nGenerated from protobuf enum `NONE = 1;`\n\n### PRIMARY\n\n Value: 2\n\nA cluster that allows both reads and writes. Any data written to this\ncluster is also replicated to the attached secondary clusters.\n\nGenerated from protobuf enum `PRIMARY = 2;`\n\n### SECONDARY\n\n Value: 3\n\nA cluster that allows only reads and replicates data from a primary\ncluster.\n\nGenerated from protobuf enum `SECONDARY = 3;`"]]