# Google Cloud Network Security V1 Client - Class AssociationReference (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class AssociationReference.

This is a subset of the FirewallEndpointAssociation message, containing
fields to be used by the consumer.

Generated from protobuf message `google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ FirewallEndpoint

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id} |
| `↳ network` | `string` Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}. |

### getName

Output only. The resource name of the FirewallEndpointAssociation.

Format:
projects/{project}/locations/{location}/firewallEndpointAssociations/{id}

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

### setName

Output only. The resource name of the FirewallEndpointAssociation.

Format:
projects/{project}/locations/{location}/firewallEndpointAssociations/{id}

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

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

### getNetwork

Output only. The VPC network associated. Format:
projects/{project}/global/networks/{name}.

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

### setNetwork

Output only. The VPC network associated. Format:
projects/{project}/global/networks/{name}.

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

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