[[["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-09 UTC."],[],[],null,["# Google Cloud Memorystore V1 Client - Class InstanceRole (0.4.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.2 (latest)](/php/docs/reference/cloud-memorystore/latest/V1.CrossInstanceReplicationConfig.InstanceRole)\n- [0.4.1](/php/docs/reference/cloud-memorystore/0.4.1/V1.CrossInstanceReplicationConfig.InstanceRole)\n- [0.3.0](/php/docs/reference/cloud-memorystore/0.3.0/V1.CrossInstanceReplicationConfig.InstanceRole)\n- [0.2.0](/php/docs/reference/cloud-memorystore/0.2.0/V1.CrossInstanceReplicationConfig.InstanceRole)\n- [0.1.1](/php/docs/reference/cloud-memorystore/0.1.1/V1.CrossInstanceReplicationConfig.InstanceRole) \nReference documentation and code samples for the Google Cloud Memorystore V1 Client class InstanceRole.\n\nThe role of the instance in cross instance replication.\n\nProtobuf type `google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Memorystore \\\\ V1 \\\\ CrossInstanceReplicationConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### INSTANCE_ROLE_UNSPECIFIED\n\n Value: 0\n\ninstance role is not set.\n\nThe behavior is equivalent to NONE.\n\nGenerated from protobuf enum `INSTANCE_ROLE_UNSPECIFIED = 0;`\n\n### NONE\n\n Value: 1\n\nThis instance does not participate in cross instance replication. It is\nan independent instance and does not replicate to or from any other\ninstances.\n\nGenerated from protobuf enum `NONE = 1;`\n\n### PRIMARY\n\n Value: 2\n\nA instance that allows both reads and writes. Any data written to this\ninstance is also replicated to the attached secondary instances.\n\nGenerated from protobuf enum `PRIMARY = 2;`\n\n### SECONDARY\n\n Value: 3\n\nA instance that allows only reads and replicates data from a primary\ninstance.\n\nGenerated from protobuf enum `SECONDARY = 3;`"]]