# Google Cloud Dialogflow V2 Client - Class AutomatedAgentReply (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AutomatedAgentReply.

Represents a response from an automated agent.

Generated from protobuf message `google.cloud.dialogflow.v2.AutomatedAgentReply`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ detect_intent_response` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.DetectIntentResponse` Response of the Dialogflow [Sessions.DetectIntent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Client.SessionsClient#_Google_Cloud_Dialogflow_V2_Client_SessionsClient__detectIntent__) call. |
| `↳ automated_agent_reply_type` | `int` AutomatedAgentReply type. |
| `↳ allow_cancellation` | `bool` Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled. |
| `↳ cx_current_page` | `string` The unique identifier of the current Dialogflow CX conversation page. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`. |

### getDetectIntentResponse

Response of the Dialogflow
[Sessions.DetectIntent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Client.SessionsClient#_Google_Cloud_Dialogflow_V2_Client_SessionsClient__detectIntent__)
call.

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

### hasDetectIntentResponse

### clearDetectIntentResponse

### setDetectIntentResponse

Response of the Dialogflow
[Sessions.DetectIntent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Client.SessionsClient#_Google_Cloud_Dialogflow_V2_Client_SessionsClient__detectIntent__)
call.

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

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

### getAutomatedAgentReplyType

AutomatedAgentReply type.

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

### setAutomatedAgentReplyType

AutomatedAgentReply type.

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

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

### getAllowCancellation

Indicates whether the partial automated agent reply is interruptible when a
later reply message arrives. e.g. if the agent specified some music as
partial response, it can be cancelled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAllowCancellation

Indicates whether the partial automated agent reply is interruptible when a
later reply message arrives. e.g. if the agent specified some music as
partial response, it can be cancelled.

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

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

### getCxCurrentPage

The unique identifier of the current Dialogflow CX conversation page.

Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>`.

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

### setCxCurrentPage

The unique identifier of the current Dialogflow CX conversation page.

Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>`.

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

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