2.23.0 (latest) 2.22.0 2.21.0 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.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.

Defines the network configuration for the pool.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PrivatePoolV1Config](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.md.txt)[NetworkConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig.md.txt), [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.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.md.txt)[NetworkConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PrivatePoolV1Config](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.md.txt)[NetworkConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.md.txt)

## Assembly

Google.Cloud.CloudBuild.V1.dll

## Constructors

### NetworkConfig()

    public NetworkConfig()

### NetworkConfig(NetworkConfig)

    public NetworkConfig(PrivatePoolV1Config.Types.NetworkConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PrivatePoolV1ConfigTypesNetworkConfig` |

## Properties

### EgressOption

    public PrivatePoolV1Config.Types.NetworkConfig.Types.EgressOption EgressOption { get; set; }

Option to configure network egress for the workers.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PrivatePoolV1ConfigTypesNetworkConfigTypesEgressOption` |   |

### PeeredNetwork

    public string PeeredNetwork { get; set; }

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](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PeeredNetworkAsNetworkName

    public NetworkName PeeredNetworkAsNetworkName { get; set; }

[NetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.NetworkName.md.txt)-typed view over the [PeeredNetwork](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PrivatePoolV1Config.Types.NetworkConfig.md.txt#Google_Cloud_CloudBuild_V1_PrivatePoolV1Config_Types_NetworkConfig_PeeredNetwork) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `NetworkName` |   |

### PeeredNetworkIpRange

    public string PeeredNetworkIpRange { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |