# Google Cloud Eventarc V1 Client - Class NetworkConfig (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.5 2.0.1 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Eventarc V1 Client class NetworkConfig.

Represents a network config to be used for destination resolution and
connectivity.

Generated from protobuf message `google.cloud.eventarc.v1.Pipeline.Destination.NetworkConfig`

## Namespace

Google \\ Cloud \\ Eventarc \\ V1 \\ Pipeline \\ Destination

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network_attachment` | `string` Required. Name of the NetworkAttachment that allows access to the consumer VPC. Format: `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` |

### getNetworkAttachment

Required. Name of the NetworkAttachment that allows access to the
consumer VPC. Format:
`projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNetworkAttachment

Required. Name of the NetworkAttachment that allows access to the
consumer VPC. Format:
`projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |