Reference documentation and code samples for the Google Cloud Memorystore V1beta Client class PscAutoConnection.
Details of consumer resources in a PSC connection.
Generated from protobuf messagegoogle.cloud.memorystore.v1beta.PscAutoConnection
Namespace
Google \ Cloud \ Memorystore \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ port
int
Optional. Output only. port will only be set for Primary/Reader or Discovery endpoint.
↳ psc_connection_id
string
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
↳ ip_address
string
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
↳ forwarding_rule
string
Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
↳ project_id
string
Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.
↳ network
string
Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.
↳ service_attachment
string
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
↳ psc_connection_status
int
Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
↳ connection_type
int
Output only. Type of the PSC connection.
getPort
Optional. Output only. port will only be set for Primary/Reader or
Discovery endpoint.
Returns
Type
Description
int
hasPort
setPort
Optional. Output only. port will only be set for Primary/Reader or
Discovery endpoint.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPscConnectionId
Output only. The PSC connection id of the forwarding rule connected to the
service attachment.
Returns
Type
Description
string
setPscConnectionId
Output only. The PSC connection id of the forwarding rule connected to the
service attachment.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getIpAddress
Output only. The IP allocated on the consumer network for the PSC
forwarding rule.
Returns
Type
Description
string
setIpAddress
Output only. The IP allocated on the consumer network for the PSC
forwarding rule.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getForwardingRule
Output only. The URI of the consumer side forwarding rule.
Required. The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
Returns
Type
Description
string
setProjectId
Required. The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNetwork
Required. The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
Returns
Type
Description
string
setNetwork
Required. The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceAttachment
Output only. The service attachment which is the target of the PSC
connection, in the form of
projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
Returns
Type
Description
string
setServiceAttachment
Output only. The service attachment which is the target of the PSC
connection, in the form of
projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPscConnectionStatus
Output only. The status of the PSC connection: whether a connection exists
and ACTIVE or it no longer exists. Please note that this value is updated
periodically. Please use Private Service Connect APIs for the latest
status.
Returns
Type
Description
int
setPscConnectionStatus
Output only. The status of the PSC connection: whether a connection exists
and ACTIVE or it no longer exists. Please note that this value is updated
periodically. Please use Private Service Connect APIs for the latest
status.
[[["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 Memorystore V1beta Client - Class PscAutoConnection (0.4.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.2 (latest)](/php/docs/reference/cloud-memorystore/latest/V1beta.PscAutoConnection)\n- [0.4.1](/php/docs/reference/cloud-memorystore/0.4.1/V1beta.PscAutoConnection)\n- [0.3.0](/php/docs/reference/cloud-memorystore/0.3.0/V1beta.PscAutoConnection)\n- [0.2.0](/php/docs/reference/cloud-memorystore/0.2.0/V1beta.PscAutoConnection)\n- [0.1.1](/php/docs/reference/cloud-memorystore/0.1.1/V1beta.PscAutoConnection) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Memorystore V1beta Client class PscAutoConnection.\n\nDetails of consumer resources in a PSC connection.\n\nGenerated from protobuf message `google.cloud.memorystore.v1beta.PscAutoConnection`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Memorystore \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPort\n\nOptional. Output only. port will only be set for Primary/Reader or\nDiscovery endpoint.\n\n### hasPort\n\n### setPort\n\nOptional. Output only. port will only be set for Primary/Reader or\nDiscovery endpoint.\n\n### getPscConnectionId\n\nOutput only. The PSC connection id of the forwarding rule connected to the\nservice attachment.\n\n### setPscConnectionId\n\nOutput only. The PSC connection id of the forwarding rule connected to the\nservice attachment.\n\n### getIpAddress\n\nOutput only. The IP allocated on the consumer network for the PSC\nforwarding rule.\n\n### setIpAddress\n\nOutput only. The IP allocated on the consumer network for the PSC\nforwarding rule.\n\n### getForwardingRule\n\nOutput only. The URI of the consumer side forwarding rule.\n\nFormat:\nprojects/{project}/regions/{region}/forwardingRules/{forwarding_rule}\n\n### setForwardingRule\n\nOutput only. The URI of the consumer side forwarding rule.\n\nFormat:\nprojects/{project}/regions/{region}/forwardingRules/{forwarding_rule}\n\n### getProjectId\n\nRequired. The consumer project_id where PSC connections are established.\n\nThis should be the same project_id that the instance is being created in.\n\n### setProjectId\n\nRequired. The consumer project_id where PSC connections are established.\n\nThis should be the same project_id that the instance is being created in.\n\n### getNetwork\n\nRequired. The network where the PSC endpoints are created, in the form of\nprojects/{project_id}/global/networks/{network_id}.\n\n### setNetwork\n\nRequired. The network where the PSC endpoints are created, in the form of\nprojects/{project_id}/global/networks/{network_id}.\n\n### getServiceAttachment\n\nOutput only. The service attachment which is the target of the PSC\nconnection, in the form of\nprojects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.\n\n### setServiceAttachment\n\nOutput only. The service attachment which is the target of the PSC\nconnection, in the form of\nprojects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.\n\n### getPscConnectionStatus\n\nOutput only. The status of the PSC connection: whether a connection exists\nand ACTIVE or it no longer exists. Please note that this value is updated\nperiodically. Please use Private Service Connect APIs for the latest\nstatus.\n\n### setPscConnectionStatus\n\nOutput only. The status of the PSC connection: whether a connection exists\nand ACTIVE or it no longer exists. Please note that this value is updated\nperiodically. Please use Private Service Connect APIs for the latest\nstatus.\n\n### getConnectionType\n\nOutput only. Type of the PSC connection.\n\n### setConnectionType\n\nOutput only. Type of the PSC connection.\n\n### getPorts"]]