# Google Cloud Dialogflow Cx V3 Client - Class VirtualAgentOutput (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 VirtualAgentOutput.

The output from the virtual agent.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ session_parameters` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` The session parameters available to the bot at this point. |
| `↳ differences` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TestRunDifference>` Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any. |
| `↳ diagnostic_info` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage. |
| `↳ triggered_intent` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent` The [Intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent) that triggered the response. Only name and displayName will be set. |
| `↳ current_page` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page` The [Page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page) on which the utterance was spoken. Only name and displayName will be set. |
| `↳ text_responses` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResponseMessage.Text>` The [text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResponseMessage.Text) responses from the agent for the turn. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Response error from the agent in the test result. If set, other output is empty. |

### getSessionParameters

The session parameters available to the bot at this point.

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

### hasSessionParameters

### clearSessionParameters

### setSessionParameters

The session parameters available to the bot at this point.

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

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

### getDifferences

Output only. If this is part of a result conversation turn, the list of differences
between the original run and the replay for this output, if any.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TestRunDifference>` |   |

### setDifferences

Output only. If this is part of a result conversation turn, the list of differences
between the original run and the replay for this output, if any.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TestRunDifference>` |

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

### getDiagnosticInfo

Required. Input only. The diagnostic
info
output for the turn. Required to calculate the testing coverage.

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

### hasDiagnosticInfo

### clearDiagnosticInfo

### setDiagnosticInfo

Required. Input only. The diagnostic
info
output for the turn. Required to calculate the testing coverage.

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

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

### getTriggeredIntent

The [Intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent) that triggered the
response. Only name and displayName will be set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent|null` |   |

### hasTriggeredIntent

### clearTriggeredIntent

### setTriggeredIntent

The [Intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent) that triggered the
response. Only name and displayName will be set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent` |

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

### getCurrentPage

The [Page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page) on which the utterance was
spoken. Only name and displayName will be set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page|null` |   |

### hasCurrentPage

### clearCurrentPage

### setCurrentPage

The [Page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page) on which the utterance was
spoken. Only name and displayName will be set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page` |

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

### getTextResponses

The [text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResponseMessage.Text) responses
from the agent for the turn.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResponseMessage.Text>` |   |

### setTextResponses

The [text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResponseMessage.Text) responses
from the agent for the turn.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResponseMessage.Text>` |

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

### getStatus

Response error from the agent in the test result. If set, other output
is empty.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasStatus

### clearStatus

### setStatus

Response error from the agent in the test result. If set, other output
is empty.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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