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

Details about intercept in a specific cloud location.

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

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ location` | `string` Output only. The cloud location, e.g. "us-central1-a" or "asia-south1". |
| `↳ state` | `int` Output only. The current state of the association in this location. |

### getLocation

Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".

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

### setLocation

Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".

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

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

### getState

Output only. The current state of the association in this location.

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

### setState

Output only. The current state of the association in this location.

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

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