# Google Cloud Workflows V1 Client - Class CreateExecutionRequest (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 CreateExecutionRequest.

Request for the
[CreateExecution](https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/Executions.V1.Client.ExecutionsClient#_Google_Cloud_Workflows_Executions_V1_Client_ExecutionsClient__createExecution__)
method.

Generated from protobuf message `google.cloud.workflows.executions.v1.CreateExecutionRequest`

## Namespace

Google \\ Cloud \\ Workflows \\ Executions \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Name of the workflow for which an execution should be created. Format: projects/{project}/locations/{location}/workflows/{workflow} The latest revision of the workflow will be used. |
| `↳ execution` | `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/Executions.V1.Execution` Required. Execution to be created. |

### getParent

Required. Name of the workflow for which an execution should be created.

Format: projects/{project}/locations/{location}/workflows/{workflow}
The latest revision of the workflow will be used.

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

### setParent

Required. Name of the workflow for which an execution should be created.

Format: projects/{project}/locations/{location}/workflows/{workflow}
The latest revision of the workflow will be used.

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

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

### getExecution

Required. Execution to be created.

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

### hasExecution

### clearExecution

### setExecution

Required. Execution to be created.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Name of the workflow for which an execution should be created. Format: projects/{project}/locations/{location}/workflows/{workflow} The latest revision of the workflow will be used. Please see ExecutionsClient::workflowName() for help formatting this field. |
| `execution` | `https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/Executions.V1.Execution` Required. Execution to be created. |

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