public sealed class PscAutoConnection : IMessage<PscAutoConnection>, IEquatable<PscAutoConnection>, IDeepCloneable<PscAutoConnection>, IBufferMessage, IMessage
Reference documentation and code samples for the Memorystore v1beta API class PscAutoConnection.
Details of consumer resources in a PSC connection.
public PscConnectionStatus PscConnectionStatus { get; set; }
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.
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}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePscAutoConnection\u003c/code\u003e class in the Memorystore v1beta API represents details of consumer resources in a Private Service Connect (PSC) connection.\u003c/p\u003e\n"],["\u003cp\u003eThis class is a part of the \u003ccode\u003eGoogle.Cloud.Memorystore.V1Beta\u003c/code\u003e namespace and is implemented within the \u003ccode\u003eGoogle.Cloud.Memorystore.V1Beta.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePscAutoConnection\u003c/code\u003e instances can be constructed using either a default constructor or by providing an existing \u003ccode\u003ePscAutoConnection\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eConnectionType\u003c/code\u003e, \u003ccode\u003eForwardingRule\u003c/code\u003e, \u003ccode\u003eIpAddress\u003c/code\u003e, \u003ccode\u003eNetwork\u003c/code\u003e, and \u003ccode\u003ePscConnectionStatus\u003c/code\u003e, providing information about the PSC connection's configuration and state.\u003c/p\u003e\n"],["\u003cp\u003eIt implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<PscAutoConnection>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<PscAutoConnection>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, as well as inheriting members from the base object class.\u003c/p\u003e\n"]]],[],null,["# Memorystore v1beta API - Class PscAutoConnection (1.0.0-beta02)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta02 (latest)](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.PscAutoConnection)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/1.0.0-beta01/Google.Cloud.Memorystore.V1Beta.PscAutoConnection) \n\n public sealed class PscAutoConnection : IMessage\u003cPscAutoConnection\u003e, IEquatable\u003cPscAutoConnection\u003e, IDeepCloneable\u003cPscAutoConnection\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Memorystore v1beta API class PscAutoConnection.\n\nDetails of consumer resources in a PSC connection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PscAutoConnection \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PscAutoConnection](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.PscAutoConnection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PscAutoConnection](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.PscAutoConnection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PscAutoConnection](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.PscAutoConnection), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Memorystore.V1Beta](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Memorystore.V1Beta.dll\n\nConstructors\n------------\n\n### PscAutoConnection()\n\n public PscAutoConnection()\n\n### PscAutoConnection(PscAutoConnection)\n\n public PscAutoConnection(PscAutoConnection other)\n\nProperties\n----------\n\n### ConnectionType\n\n public ConnectionType ConnectionType { get; set; }\n\nOutput only. Type of the PSC connection.\n\n### ForwardingRule\n\n public string ForwardingRule { get; set; }\n\nOutput only. The URI of the consumer side forwarding rule.\nFormat:\nprojects/{project}/regions/{region}/forwardingRules/{forwarding_rule}\n\n### ForwardingRuleAsForwardingRuleName\n\n public ForwardingRuleName ForwardingRuleAsForwardingRuleName { get; set; }\n\n[ForwardingRuleName](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.ForwardingRuleName)-typed view over the [ForwardingRule](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.PscAutoConnection#Google_Cloud_Memorystore_V1Beta_PscAutoConnection_ForwardingRule) resource name property.\n\n### HasPort\n\n public bool HasPort { get; }\n\nGets whether the \"port\" field is set\n\n### IpAddress\n\n public string IpAddress { get; set; }\n\nOutput only. The IP allocated on the consumer network for the PSC\nforwarding rule.\n\n### Network\n\n public string Network { get; set; }\n\nRequired. The network where the PSC endpoints are created, in the form of\nprojects/{project_id}/global/networks/{network_id}.\n\n### NetworkAsNetworkName\n\n public NetworkName NetworkAsNetworkName { get; set; }\n\n[NetworkName](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.NetworkName)-typed view over the [Network](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.PscAutoConnection#Google_Cloud_Memorystore_V1Beta_PscAutoConnection_Network) resource name property.\n\n### Port\n\n public int Port { get; set; }\n\nOptional. Output only. port will only be set for Primary/Reader or\nDiscovery endpoint.\n\n### PortsCase\n\n public PscAutoConnection.PortsOneofCase PortsCase { get; }\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nRequired. The consumer project_id where PSC connections are established.\nThis should be the same project_id that the instance is being created in.\n\n### PscConnectionId\n\n public string PscConnectionId { get; set; }\n\nOutput only. The PSC connection id of the forwarding rule connected to the\nservice attachment.\n\n### PscConnectionStatus\n\n public PscConnectionStatus PscConnectionStatus { get; set; }\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### ServiceAttachment\n\n public string ServiceAttachment { get; set; }\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### ServiceAttachmentAsServiceAttachmentName\n\n public ServiceAttachmentName ServiceAttachmentAsServiceAttachmentName { get; set; }\n\n[ServiceAttachmentName](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.ServiceAttachmentName)-typed view over the [ServiceAttachment](/dotnet/docs/reference/Google.Cloud.Memorystore.V1Beta/latest/Google.Cloud.Memorystore.V1Beta.PscAutoConnection#Google_Cloud_Memorystore_V1Beta_PscAutoConnection_ServiceAttachment) resource name\nproperty."]]