# Cloud Build V1 API - Class Google::Cloud::Build::V1::PrivatePoolV1Config::PrivateServiceConnect (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.27.1 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::PrivatePoolV1Config::PrivateServiceConnect.

Defines the Private Service Connect network configuration for the pool.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #network_attachment

    def network_attachment() -> ::String

**Returns**

- (::String) --- 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)

### #network_attachment=

    def network_attachment=(value) -> ::String

**Parameter**

- **value** (::String) --- 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)
**Returns**

- (::String) --- 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)

### #public_ip_address_disabled

    def public_ip_address_disabled() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #public_ip_address_disabled=

    def public_ip_address_disabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #route_all_traffic

    def route_all_traffic() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #route_all_traffic=

    def route_all_traffic=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.