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

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

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

## Namespace

Google \\ Cloud \\ Workflows \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow} |
| `↳ revision_id` | `string` Optional. The revision of the workflow to retrieve. If the revision_id is empty, the latest revision is retrieved. The format is "000001-a4d", where the first six characters define the zero-padded decimal revision number. They are followed by a hyphen and three hexadecimal characters. |

### getName

Required. Name of the workflow for which information should be retrieved.

Format: projects/{project}/locations/{location}/workflows/{workflow}

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

### setName

Required. Name of the workflow for which information should be retrieved.

Format: projects/{project}/locations/{location}/workflows/{workflow}

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

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

### getRevisionId

Optional. The revision of the workflow to retrieve. If the revision_id is
empty, the latest revision is retrieved.

The format is "000001-a4d", where the first six characters define
the zero-padded decimal revision number. They are followed by a hyphen and
three hexadecimal characters.

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

### setRevisionId

Optional. The revision of the workflow to retrieve. If the revision_id is
empty, the latest revision is retrieved.

The format is "000001-a4d", where the first six characters define
the zero-padded decimal revision number. They are followed by a hyphen and
three hexadecimal characters.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow} Please see WorkflowsClient::workflowName() for help formatting this field. |

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