public sealed class PrivatePoolV1Config.Types.NetworkConfig : IMessage<PrivatePoolV1Config.Types.NetworkConfig>, IEquatable<PrivatePoolV1Config.Types.NetworkConfig>, IDeepCloneable<PrivatePoolV1Config.Types.NetworkConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class PrivatePoolV1Config.Types.NetworkConfig.
Required. Immutable. The network definition that the workers are peered
to. If this section is left empty, the workers will be peered to
WorkerPool.project_id on the service producer network. Must be in the
format projects/{project}/global/networks/{network}, where {project}
is a project number, such as 12345, and {network} is the name of a
VPC network in the project. See
Understanding network configuration
options
Immutable. Subnet IP range within the peered network. This is specified
in CIDR notation with a slash and the subnet prefix size. You can
optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29 would specify an IP range starting at 192.168.0.0 with a
prefix size of 29 bits.
/16 would specify a prefix size of 16 bits, with an automatically
determined IP within the peered VPC.
If unspecified, a value of /24 will be used.
[[["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-08-28 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003ePrivatePoolV1Config.Types.NetworkConfig\u003c/code\u003e class within the Google Cloud Build v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkConfig\u003c/code\u003e class defines the network configuration for private worker pools, including specifying the peered network and its IP range.\u003c/p\u003e\n"],["\u003cp\u003eThere is an extensive list of versions of the \u003ccode\u003eNetworkConfig\u003c/code\u003e available for use, from version 1.0.0 to the latest at version 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkConfig\u003c/code\u003e class contains properties like \u003ccode\u003eEgressOption\u003c/code\u003e, \u003ccode\u003ePeeredNetwork\u003c/code\u003e, \u003ccode\u003ePeeredNetworkAsNetworkName\u003c/code\u003e, and \u003ccode\u003ePeeredNetworkIpRange\u003c/code\u003e for configuring the network, as well as some constructor information.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class PrivatePoolV1Config.Types.NetworkConfig (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.NetworkConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig) \n\n public sealed class PrivatePoolV1Config.Types.NetworkConfig : IMessage\u003cPrivatePoolV1Config.Types.NetworkConfig\u003e, IEquatable\u003cPrivatePoolV1Config.Types.NetworkConfig\u003e, IDeepCloneable\u003cPrivatePoolV1Config.Types.NetworkConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class PrivatePoolV1Config.Types.NetworkConfig.\n\nDefines the network configuration for the pool. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PrivatePoolV1Config.Types.NetworkConfig \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)[NetworkConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig), [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)[NetworkConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig), [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)[NetworkConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig), [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### NetworkConfig()\n\n public NetworkConfig()\n\n### NetworkConfig(NetworkConfig)\n\n public NetworkConfig(PrivatePoolV1Config.Types.NetworkConfig other)\n\nProperties\n----------\n\n### EgressOption\n\n public PrivatePoolV1Config.Types.NetworkConfig.Types.EgressOption EgressOption { get; set; }\n\nOption to configure network egress for the workers.\n\n### PeeredNetwork\n\n public string PeeredNetwork { get; set; }\n\nRequired. Immutable. The network definition that the workers are peered\nto. If this section is left empty, the workers will be peered to\n`WorkerPool.project_id` on the service producer network. Must be in the\nformat `projects/{project}/global/networks/{network}`, where `{project}`\nis a project number, such as `12345`, and `{network}` is the name of a\nVPC network in the project. See\n[Understanding network configuration\noptions](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)\n\n### PeeredNetworkAsNetworkName\n\n public NetworkName PeeredNetworkAsNetworkName { get; set; }\n\n[NetworkName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.NetworkName)-typed view over the [PeeredNetwork](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig#Google_Cloud_CloudBuild_V1_PrivatePoolV1Config_Types_NetworkConfig_PeeredNetwork) resource name property.\n\n### PeeredNetworkIpRange\n\n public string PeeredNetworkIpRange { get; set; }\n\nImmutable. Subnet IP range within the peered network. This is specified\nin CIDR notation with a slash and the subnet prefix size. You can\noptionally specify an IP address before the subnet prefix value. e.g.\n`192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a\nprefix size of 29 bits.\n`/16` would specify a prefix size of 16 bits, with an automatically\ndetermined IP within the peered VPC.\nIf unspecified, a value of `/24` will be used."]]