# Google Cloud Service Control V1 Client - Class AllocateQuotaResponse (2.2.0)

2.2.0 (latest) 2.1.1 2.0.4 1.4.4 1.3.0 1.2.1 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Service Control V1 Client class AllocateQuotaResponse.

Response message for the AllocateQuota method.

Generated from protobuf message `google.api.servicecontrol.v1.AllocateQuotaResponse`

## Namespace

Google \\ Cloud \\ ServiceControl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ operation_id` | `string` The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes. |
| `↳ allocate_errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.QuotaError>` Indicates the decision of the allocate. |
| `↳ quota_metrics` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.MetricValueSet>` Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. Per quota group or per quota metric incremental usage will be specified using the following delta metric : "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded" |
| `↳ service_config_id` | `string` ID of the actual config used to process the request. |

### getOperationId

The same operation_id value used in the AllocateQuotaRequest. Used for
logging and diagnostics purposes.

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

### setOperationId

The same operation_id value used in the AllocateQuotaRequest. Used for
logging and diagnostics purposes.

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

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

### getAllocateErrors

Indicates the decision of the allocate.

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

### setAllocateErrors

Indicates the decision of the allocate.

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

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

### getQuotaMetrics

Quota metrics to indicate the result of allocation. Depending on the
request, one or more of the following metrics will be included:

1. Per quota group or per quota metric incremental usage will be specified using the following delta metric : "serviceruntime.googleapis.com/api/consumer/quota_used_count"
2. The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded"

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

### setQuotaMetrics

Quota metrics to indicate the result of allocation. Depending on the
request, one or more of the following metrics will be included:

1. Per quota group or per quota metric incremental usage will be specified using the following delta metric : "serviceruntime.googleapis.com/api/consumer/quota_used_count"
2. The quota limit reached condition will be specified using the following boolean metric : "serviceruntime.googleapis.com/quota/exceeded"

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

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

### getServiceConfigId

ID of the actual config used to process the request.

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

### setServiceConfigId

ID of the actual config used to process the request.

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

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