# Google Cloud Service Usage V1 Client - Class BatchEnableServicesResponse (2.2.0)

2.2.0 (latest) 2.1.2 2.0.4 1.3.4 1.2.3 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Service Usage V1 Client class BatchEnableServicesResponse.

Response message for the `BatchEnableServices` method.

This response message is assigned to the `response` field of the returned
Operation when that operation is done.

Generated from protobuf message `google.api.serviceusage.v1.BatchEnableServicesResponse`

## Namespace

Google \\ Cloud \\ ServiceUsage \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ services` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-usage/latest/V1.Service>` The new state of the services after enabling. |
| `↳ failures` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-usage/latest/V1.BatchEnableServicesResponse.EnableFailure>` If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure. |

### getServices

The new state of the services after enabling.

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

### setServices

The new state of the services after enabling.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-usage/latest/V1.Service>` |

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

### getFailures

If allow_partial_success is true, and one or more services could not be
enabled, this field contains the details about each failure.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-service-usage/latest/V1.BatchEnableServicesResponse.EnableFailure>` |   |

### setFailures

If allow_partial_success is true, and one or more services could not be
enabled, this field contains the details about each failure.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-usage/latest/V1.BatchEnableServicesResponse.EnableFailure>` |

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