# Google Cloud Network Services V1 Client - Class IsolationConfig (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class IsolationConfig.

Configuration to provide isolation support for the associated Backend
Service.

Generated from protobuf message `google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ ServiceLbPolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ isolation_granularity` | `int` Optional. The isolation granularity of the load balancer. |
| `↳ isolation_mode` | `int` Optional. The isolation mode of the load balancer. |

### getIsolationGranularity

Optional. The isolation granularity of the load balancer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [IsolationGranularity](https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.ServiceLbPolicy.IsolationGranularity). |

### setIsolationGranularity

Optional. The isolation granularity of the load balancer.

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

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

### getIsolationMode

Optional. The isolation mode of the load balancer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [IsolationMode](https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.ServiceLbPolicy.IsolationMode). |

### setIsolationMode

Optional. The isolation mode of the load balancer.

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

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