1.2.0 (latest) 1.1.0 1.0.0

    public sealed class PscConnection : IMessage<PscConnection>, IEquatable<PscConnection>, IDeepCloneable<PscConnection>, IBufferMessage, IMessage

Reference documentation and code samples for the Memorystore v1 API class PscConnection.

User created Psc connection configuration.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PscConnection

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PscConnection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PscConnection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PscConnection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Memorystore.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1)

## Assembly

Google.Cloud.Memorystore.V1.dll

## Constructors

### PscConnection()

    public PscConnection()

### PscConnection(PscConnection)

    public PscConnection(PscConnection other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection` |

## Properties

### ConnectionType

    public ConnectionType ConnectionType { get; set; }

Output only. Type of the PSC connection.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ConnectionType` |   |

### ForwardingRule

    public string ForwardingRule { get; set; }

Required. The URI of the consumer side forwarding rule.
Format:
projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ForwardingRuleAsForwardingRuleName

    public ForwardingRuleName ForwardingRuleAsForwardingRuleName { get; set; }

[ForwardingRuleName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ForwardingRuleName)-typed view over the [ForwardingRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection#Google_Cloud_Memorystore_V1_PscConnection_ForwardingRule) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ForwardingRuleName` |   |

### HasPort

    public bool HasPort { get; }

Gets whether the "port" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### IpAddress

    public string IpAddress { get; set; }

Required. The IP allocated on the consumer network for the PSC forwarding
rule.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Network

    public string Network { get; set; }

Required. The consumer network where the IP address resides, in the form of
projects/{project_id}/global/networks/{network_name}.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### NetworkAsNetworkName

    public NetworkName NetworkAsNetworkName { get; set; }

[NetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.NetworkName)-typed view over the [Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection#Google_Cloud_Memorystore_V1_PscConnection_Network) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.NetworkName` |   |

### Port

    public int Port { get; set; }

Optional. port will only be set for Primary/Reader or Discovery endpoint.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PortsCase

    public PscConnection.PortsOneofCase PortsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnectionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection.PortsOneofCase` |   |

### ProjectId

    public string ProjectId { get; set; }

Output only. The consumer project_id where the forwarding rule is created
from.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PscConnectionId

    public string PscConnectionId { get; set; }

Required. The PSC connection id of the forwarding rule connected to the
service attachment.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PscConnectionStatus

    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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnectionStatus` |   |

### ServiceAttachment

    public string ServiceAttachment { get; set; }

Required. The service attachment which is the target of the PSC connection,
in the form of
projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServiceAttachmentAsServiceAttachmentName

    public ServiceAttachmentName ServiceAttachmentAsServiceAttachmentName { get; set; }

[ServiceAttachmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ServiceAttachmentName)-typed view over the [ServiceAttachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.PscConnection#Google_Cloud_Memorystore_V1_PscConnection_ServiceAttachment) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.ServiceAttachmentName` |   |