# Google Cloud Network Security V1 Client - Class MirroringEndpointGroupAssociation (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 MirroringEndpointGroupAssociation.

An endpoint group association represents a link between a network and an
endpoint group in the organization.

Creating an association creates the networking infrastructure linking the
network to the endpoint group, but does not enable mirroring by itself.
To enable mirroring, the user must also create a network firewall policy
containing mirroring rules and associate it with the network.

Generated from protobuf message `google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Immutable. Identifier. The resource name of this endpoint group association, for example: `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`. See <https://google.aip.dev/122> for more details. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the resource was created. See <https://google.aip.dev/148#timestamps>. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the resource was most recently updated. See <https://google.aip.dev/148#timestamps>. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Labels are key/value pairs that help to organize and filter resources. |
| `↳ mirroring_endpoint_group` | `string` Immutable. The endpoint group that this association is connected to, for example: `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See <https://google.aip.dev/124>. |
| `↳ network` | `string` Immutable. The VPC network that is associated. for example: `projects/123456789/global/networks/my-network`. See <https://google.aip.dev/124>. |
| `↳ locations_details` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringEndpointGroupAssociation.LocationDetails>` Output only. The list of locations where the association is present. This information is retrieved from the linked endpoint group, and not configured as part of the association itself. |
| `↳ state` | `int` Output only. Current state of the endpoint group association. |
| `↳ reconciling` | `bool` Output only. The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. adding a new location to the target deployment group). See <https://google.aip.dev/128>. |
| `↳ locations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringLocation>` Output only. The list of locations where the association is configured. This information is retrieved from the linked endpoint group. |

### getName

Immutable. Identifier. The resource name of this endpoint group
association, for example:
`projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.

See <https://google.aip.dev/122> for more details.

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

### setName

Immutable. Identifier. The resource name of this endpoint group
association, for example:
`projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.

See <https://google.aip.dev/122> for more details.

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

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

### getCreateTime

Output only. The timestamp when the resource was created.

See <https://google.aip.dev/148#timestamps>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp when the resource was created.

See <https://google.aip.dev/148#timestamps>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The timestamp when the resource was most recently updated.

See <https://google.aip.dev/148#timestamps>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The timestamp when the resource was most recently updated.

See <https://google.aip.dev/148#timestamps>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. Labels are key/value pairs that help to organize and filter
resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Labels are key/value pairs that help to organize and filter
resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getMirroringEndpointGroup

Immutable. The endpoint group that this association is connected to, for
example:
`projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.

See <https://google.aip.dev/124>.

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

### setMirroringEndpointGroup

Immutable. The endpoint group that this association is connected to, for
example:
`projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.

See <https://google.aip.dev/124>.

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

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

### getNetwork

Immutable. The VPC network that is associated. for example:
`projects/123456789/global/networks/my-network`.

See <https://google.aip.dev/124>.

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

### setNetwork

Immutable. The VPC network that is associated. for example:
`projects/123456789/global/networks/my-network`.

See <https://google.aip.dev/124>.

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

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

### getLocationsDetails

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringEndpointGroupAssociation.LocationDetails>` |   |

### setLocationsDetails

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringEndpointGroupAssociation.LocationDetails>` |

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

### getState

Output only. Current state of the endpoint group association.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringEndpointGroupAssociation.State). |

### setState

Output only. Current state of the endpoint group association.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringEndpointGroupAssociation.State). |

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

### getReconciling

Output only. The current state of the resource does not match the user's
intended state, and the system is working to reconcile them. This part of
the normal operation (e.g. adding a new location to the target deployment
group). See <https://google.aip.dev/128>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setReconciling

Output only. The current state of the resource does not match the user's
intended state, and the system is working to reconcile them. This part of
the normal operation (e.g. adding a new location to the target deployment
group). See <https://google.aip.dev/128>.

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

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

### getLocations

Output only. The list of locations where the association is configured.

This information is retrieved from the linked endpoint group.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringLocation>` |   |

### setLocations

Output only. The list of locations where the association is configured.

This information is retrieved from the linked endpoint group.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringLocation>` |

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