# Google Cloud Service Control V1 Client - Class AllocateQuotaRequest (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 AllocateQuotaRequest.

Request message for the AllocateQuota method.

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

## Namespace

Google \\ Cloud \\ ServiceControl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_name` | `string` Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html) for the definition of a service name. |
| `↳ allocate_operation` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.QuotaOperation` Operation that describes the quota allocation. |
| `↳ service_config_id` | `string` Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used. |

### getServiceName

Name of the service as specified in the service configuration. For example,
`"pubsub.googleapis.com"`.

See [google.api.Service](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html) for the definition of a service name.

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

### setServiceName

Name of the service as specified in the service configuration. For example,
`"pubsub.googleapis.com"`.

See [google.api.Service](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.Service.html) for the definition of a service name.

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

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

### getAllocateOperation

Operation that describes the quota allocation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.QuotaOperation|null` |   |

### hasAllocateOperation

### clearAllocateOperation

### setAllocateOperation

Operation that describes the quota allocation.

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

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

### getServiceConfigId

Specifies which version of service configuration should be used to process
the request. If unspecified or no matching version can be found, the latest
one will be used.

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

### setServiceConfigId

Specifies which version of service configuration should be used to process
the request. If unspecified or no matching version can be found, the latest
one will be used.

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

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