# 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.

Network Configuration that can be inherited by other protos.

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

## Namespace

Google \\ Cloud \\ Eventarc \\ V1

## 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 customer's VPC. Format: `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` |

### getNetworkAttachment

Required. Name of the NetworkAttachment that allows access to the
customer's 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
customer's VPC. Format:
`projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`

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

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