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

Request message for the Check method.

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

## Namespace

Google \\ Cloud \\ ServiceControl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_name` | `string` The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name. |
| `↳ operation` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.Operation` The operation to be checked. |
| `↳ 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

The service name as specified in its service configuration. For example,
`"pubsub.googleapis.com"`.

See
[google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
for the definition of a service name.

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

### setServiceName

The service name as specified in its service configuration. For example,
`"pubsub.googleapis.com"`.

See
[google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
for the definition of a service name.

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

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

### getOperation

The operation to be checked.

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

### hasOperation

### clearOperation

### setOperation

The operation to be checked.

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

| **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` |   |