# Google Cloud Workflows V1 Client - Class UpdateWorkflowRequest (1.3.0)

1.3.0 (latest) 1.2.1 1.1.1 1.0.3 0.5.5 0.4.2 0.3.0 0.2.17 Reference documentation and code samples for the Google Cloud Workflows V1 Client class UpdateWorkflowRequest.

Request for the
[UpdateWorkflow](https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/V1.Client.WorkflowsClient#_Google_Cloud_Workflows_V1_Client_WorkflowsClient__updateWorkflow__)
method.

Generated from protobuf message `google.cloud.workflows.v1.UpdateWorkflowRequest`

## Namespace

Google \\ Cloud \\ Workflows \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ workflow` | `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/V1.Workflow` Required. Workflow to be updated. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` List of fields to be updated. If not present, the entire workflow will be updated. |

### getWorkflow

Required. Workflow to be updated.

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

### hasWorkflow

### clearWorkflow

### setWorkflow

Required. Workflow to be updated.

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

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

### getUpdateMask

List of fields to be updated. If not present, the entire workflow
will be updated.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

List of fields to be updated. If not present, the entire workflow
will be updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `workflow` | `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/V1.Workflow` Required. Workflow to be updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` List of fields to be updated. If not present, the entire workflow will be updated. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/V1.UpdateWorkflowRequest` |   |