# Google LongRunning Client - Class CancelOperationRequest (0.7.1)

0.7.1 (latest) 0.7.0 0.6.0 0.5.0 0.4.7 0.3.0 0.2.6 Reference documentation and code samples for the Google LongRunning Client class CancelOperationRequest.

The request message for
[Operations.CancelOperation](https://docs.cloud.google.com/php/docs/reference/longrunning/latest/LongRunning.OperationsClient#_Google_LongRunning_OperationsClient__cancelOperation__).

Generated from protobuf message `google.longrunning.CancelOperationRequest`

## Namespace

Google \\ LongRunning

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the operation resource to be cancelled. |

### getName

The name of the operation resource to be cancelled.

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

### setName

The name of the operation resource to be cancelled.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` The name of the operation resource to be cancelled. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/longrunning/latest/LongRunning.CancelOperationRequest` |   |