# Google Cloud Network Management V1 Client - Class LoadBalancerInfo (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class LoadBalancerInfo.

For display only. Metadata associated with a load balancer.

Generated from protobuf message `google.cloud.networkmanagement.v1.LoadBalancerInfo`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ load_balancer_type` | `int` Type of the load balancer. |
| `↳ health_check_uri` | `string` URI of the health check for the load balancer. Deprecated and no longer populated as different load balancer backends might have different health checks. |
| `↳ backends` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.LoadBalancerBackend>` Information for the loadbalancer backends. |
| `↳ backend_type` | `int` Type of load balancer's backend configuration. |
| `↳ backend_uri` | `string` Backend configuration URI. |

### getLoadBalancerType

Type of the load balancer.

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

### setLoadBalancerType

Type of the load balancer.

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

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

### getHealthCheckUri

URI of the health check for the load balancer. Deprecated and no longer
populated as different load balancer backends might have different health
checks.

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

### setHealthCheckUri

URI of the health check for the load balancer. Deprecated and no longer
populated as different load balancer backends might have different health
checks.

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

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

### getBackends

Information for the loadbalancer backends.

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

### setBackends

Information for the loadbalancer backends.

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

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

### getBackendType

Type of load balancer's backend configuration.

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

### setBackendType

Type of load balancer's backend configuration.

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

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

### getBackendUri

Backend configuration URI.

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

### setBackendUri

Backend configuration URI.

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

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