# Google LongRunning Client - Class WaitOperationRequest (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 WaitOperationRequest.

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

Generated from protobuf message `google.longrunning.WaitOperationRequest`

## 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 wait on. |
| `↳ timeout` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. |

### getName

The name of the operation resource to wait on.

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

### setName

The name of the operation resource to wait on.

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

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

### getTimeout

The maximum duration to wait before timing out. If left blank, the wait
will be at most the time permitted by the underlying HTTP/RPC protocol.

If RPC context deadline is also specified, the shorter one will be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasTimeout

### clearTimeout

### setTimeout

The maximum duration to wait before timing out. If left blank, the wait
will be at most the time permitted by the underlying HTTP/RPC protocol.

If RPC context deadline is also specified, the shorter one will be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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