2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class PrivatePoolV1Config.Types.PrivateServiceConnect : IMessage<PrivatePoolV1Config.Types.PrivateServiceConnect>, IEquatable<PrivatePoolV1Config.Types.PrivateServiceConnect>, IDeepCloneable<PrivatePoolV1Config.Types.PrivateServiceConnect>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Build v1 API class PrivatePoolV1Config.Types.PrivateServiceConnect.

Defines the Private Service Connect network configuration for the pool.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.CloudBuild.V1.dll

## Constructors

### PrivateServiceConnect()

    public PrivateServiceConnect()

### PrivateServiceConnect(PrivateServiceConnect)

    public PrivateServiceConnect(PrivatePoolV1Config.Types.PrivateServiceConnect other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Confighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect` |

## Properties

### NetworkAttachment

    public string NetworkAttachment { get; set; }

Required. Immutable. The network attachment that the worker network
interface is peered to. Must be in the format
`projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
The region of network attachment must be the same as the worker pool.
See [Network
Attachments](https://cloud.google.com/vpc/docs/about-network-attachments)

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

### NetworkAttachmentAsNetworkAttachmentName

    public NetworkAttachmentName NetworkAttachmentAsNetworkAttachmentName { get; set; }

[NetworkAttachmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.NetworkAttachmentName)-typed view over the [NetworkAttachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect#Google_Cloud_CloudBuild_V1_PrivatePoolV1Config_Types_PrivateServiceConnect_NetworkAttachment) resource
name property.

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

### PublicIpAddressDisabled

    public bool PublicIpAddressDisabled { get; set; }

Required. Immutable. Disable public IP on the primary network interface.

If true, workers are created without any public address, which prevents
network egress to public IPs unless a network proxy is configured.
If false, workers are created with a public address which allows for
public internet egress. The public address only applies to traffic
through the primary network interface.
If `route_all_traffic` is set to true, all traffic will go through the
non-primary network interface, this boolean has no effect.

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

### RouteAllTraffic

    public bool RouteAllTraffic { get; set; }

Immutable. Route all traffic through PSC interface. Enable this if you
want full control of traffic in the private pool. Configure Cloud NAT for
the subnet of network attachment if you need to access public Internet.

If false, Only route RFC 1918 (10.0.0.0/8, 172.16.0.0/12, and
192.168.0.0/16) and RFC 6598 (100.64.0.0/10) through PSC interface.

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