# Google API Common Protos Client - Class Backend (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos Client class Backend.

`Backend` defines the backend configuration for a service.

Generated from protobuf message `google.api.Backend`

## Namespace

Google \\ Api

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ rules` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.BackendRule>` A list of API backend rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. |

### getRules

A list of API backend rules that apply to individual API methods.

**NOTE:** All service configuration rules follow "last one wins" order.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.BackendRule>` |   |

### setRules

A list of API backend rules that apply to individual API methods.

**NOTE:** All service configuration rules follow "last one wins" order.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.BackendRule>` |

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