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.
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
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.
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.
[[["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-19 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003ePrivatePoolV1Config.Types.PrivateServiceConnect\u003c/code\u003e class within the Google Cloud Build v1 API, detailing its properties, constructors, and implementation of various interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePrivateServiceConnect\u003c/code\u003e class defines the Private Service Connect network configuration for a pool, including properties like \u003ccode\u003eNetworkAttachment\u003c/code\u003e, \u003ccode\u003ePublicIpAddressDisabled\u003c/code\u003e, and \u003ccode\u003eRouteAllTraffic\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 2.15.0, with historical versions available, ranging from version 1.0.0 to the current latest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkAttachment\u003c/code\u003e property specifies the network attachment that the worker network interface is peered to, and the region must be the same as the worker pool.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePublicIpAddressDisabled\u003c/code\u003e property determines whether workers are created with or without a public IP address, impacting their ability to access the public internet, unless a proxy or network attachment is defined.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class PrivatePoolV1Config.Types.PrivateServiceConnect (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect) \n\n public sealed class PrivatePoolV1Config.Types.PrivateServiceConnect : IMessage\u003cPrivatePoolV1Config.Types.PrivateServiceConnect\u003e, IEquatable\u003cPrivatePoolV1Config.Types.PrivateServiceConnect\u003e, IDeepCloneable\u003cPrivatePoolV1Config.Types.PrivateServiceConnect\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class PrivatePoolV1Config.Types.PrivateServiceConnect.\n\nDefines the Private Service Connect network configuration for the pool. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PrivatePoolV1Config.Types.PrivateServiceConnect \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PrivatePoolV1Config](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types)[PrivateServiceConnect](/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](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types)[PrivateServiceConnect](/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](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types)[PrivateServiceConnect](/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) \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.CloudBuild.V1](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V1.dll\n\nConstructors\n------------\n\n### PrivateServiceConnect()\n\n public PrivateServiceConnect()\n\n### PrivateServiceConnect(PrivateServiceConnect)\n\n public PrivateServiceConnect(PrivatePoolV1Config.Types.PrivateServiceConnect other)\n\nProperties\n----------\n\n### NetworkAttachment\n\n public string NetworkAttachment { get; set; }\n\nRequired. Immutable. The network attachment that the worker network\ninterface is peered to. Must be in the format\n`projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.\nThe region of network attachment must be the same as the worker pool.\nSee [Network\nAttachments](https://cloud.google.com/vpc/docs/about-network-attachments)\n\n### NetworkAttachmentAsNetworkAttachmentName\n\n public NetworkAttachmentName NetworkAttachmentAsNetworkAttachmentName { get; set; }\n\n[NetworkAttachmentName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.NetworkAttachmentName)-typed view over the [NetworkAttachment](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.PrivateServiceConnect#Google_Cloud_CloudBuild_V1_PrivatePoolV1Config_Types_PrivateServiceConnect_NetworkAttachment) resource\nname property.\n\n### PublicIpAddressDisabled\n\n public bool PublicIpAddressDisabled { get; set; }\n\nRequired. Immutable. Disable public IP on the primary network interface.\n\nIf true, workers are created without any public address, which prevents\nnetwork egress to public IPs unless a network proxy is configured.\nIf false, workers are created with a public address which allows for\npublic internet egress. The public address only applies to traffic\nthrough the primary network interface.\nIf `route_all_traffic` is set to true, all traffic will go through the\nnon-primary network interface, this boolean has no effect.\n\n### RouteAllTraffic\n\n public bool RouteAllTraffic { get; set; }\n\nImmutable. Route all traffic through PSC interface. Enable this if you\nwant full control of traffic in the private pool. Configure Cloud NAT for\nthe subnet of network attachment if you need to access public Internet.\n\nIf false, Only route RFC 1918 (10.0.0.0/8, 172.16.0.0/12, and\n192.168.0.0/16) and RFC 6598 (100.64.0.0/10) through PSC interface."]]