# Google Cloud Dialogflow Cx V3 Client - Class FlowInvocation (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class FlowInvocation.

Stores metadata of the invocation of a CX flow.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.FlowInvocation`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ flow` | `string` Required. The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `↳ display_name` | `string` Output only. The display name of the flow. |
| `↳ flow_state` | `int` Required. Flow invocation's output state. |

### getFlow

Required. The unique identifier of the flow.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

### setFlow

Required. The unique identifier of the flow.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

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

### getDisplayName

Output only. The display name of the flow.

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

### setDisplayName

Output only. The display name of the flow.

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

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

### getFlowState

Required. Flow invocation's output state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [OutputState](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.OutputState). |

### setFlowState

Required. Flow invocation's output state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [OutputState](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.OutputState). |

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