Generated from protobuf enumCONNECT_MODE_UNSPECIFIED = 0;
DIRECT_PEERING
Value: 1
Connect via direct peering to the Memorystore for Redis hosted service.
Generated from protobuf enumDIRECT_PEERING = 1;
PRIVATE_SERVICE_ACCESS
Value: 2
Connect your Memorystore for Redis instance using Private Service
Access. Private services access provides an IP address range for multiple
Google Cloud services, including Memorystore.
Generated from protobuf enumPRIVATE_SERVICE_ACCESS = 2;
[[["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 Redis V1 Client - Class ConnectMode (2.1.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.6 (latest)](/php/docs/reference/cloud-redis/latest/V1.Instance.ConnectMode)\n- [2.1.5](/php/docs/reference/cloud-redis/2.1.5/V1.Instance.ConnectMode)\n- [2.0.0](/php/docs/reference/cloud-redis/2.0.0/V1.Instance.ConnectMode)\n- [1.9.5](/php/docs/reference/cloud-redis/1.9.5/V1.Instance.ConnectMode)\n- [1.8.4](/php/docs/reference/cloud-redis/1.8.4/V1.Instance.ConnectMode)\n- [1.7.0](/php/docs/reference/cloud-redis/1.7.0/V1.Instance.ConnectMode)\n- [1.6.12](/php/docs/reference/cloud-redis/1.6.12/V1.Instance.ConnectMode) \nReference documentation and code samples for the Google Cloud Redis V1 Client class ConnectMode.\n\nAvailable connection modes.\n\nProtobuf type `google.cloud.redis.v1.Instance.ConnectMode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Redis \\\\ V1 \\\\ Instance\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### CONNECT_MODE_UNSPECIFIED\n\n Value: 0\n\nNot set.\n\nGenerated from protobuf enum `CONNECT_MODE_UNSPECIFIED = 0;`\n\n### DIRECT_PEERING\n\n Value: 1\n\nConnect via direct peering to the Memorystore for Redis hosted service.\n\nGenerated from protobuf enum `DIRECT_PEERING = 1;`\n\n### PRIVATE_SERVICE_ACCESS\n\n Value: 2\n\nConnect your Memorystore for Redis instance using Private Service\nAccess. Private services access provides an IP address range for multiple\nGoogle Cloud services, including Memorystore.\n\nGenerated from protobuf enum `PRIVATE_SERVICE_ACCESS = 2;`"]]