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

The response message for a webhook call.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fulfillment_response` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse.FulfillmentResponse` The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user. |
| `↳ page_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PageInfo` Information about page status. This field can be omitted by the webhook if it does not intend to modify page status. |
| `↳ session_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo` Information about session status. This field can be omitted by the webhook if it does not intend to modify session status. |
| `↳ payload` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Value to append directly to [QueryResult.webhook_payloads](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getWebhookPayloads__). |
| `↳ target_page` | `string` The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. |
| `↳ target_flow` | `string` The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |

### getFulfillmentResponse

The fulfillment response to send to the user. This field can be omitted by
the webhook if it does not intend to send any response to the user.

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

### hasFulfillmentResponse

### clearFulfillmentResponse

### setFulfillmentResponse

The fulfillment response to send to the user. This field can be omitted by
the webhook if it does not intend to send any response to the user.

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

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

### getPageInfo

Information about page status. This field can be omitted by the webhook if
it does not intend to modify page status.

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

### hasPageInfo

### clearPageInfo

### setPageInfo

Information about page status. This field can be omitted by the webhook if
it does not intend to modify page status.

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

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

### getSessionInfo

Information about session status. This field can be omitted by the webhook
if it does not intend to modify session status.

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

### hasSessionInfo

### clearSessionInfo

### setSessionInfo

Information about session status. This field can be omitted by the webhook
if it does not intend to modify session status.

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

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

### getPayload

Value to append directly to
[QueryResult.webhook_payloads](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getWebhookPayloads__).

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

### hasPayload

### clearPayload

### setPayload

Value to append directly to
[QueryResult.webhook_payloads](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryResult#_Google_Cloud_Dialogflow_Cx_V3_QueryResult__getWebhookPayloads__).

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

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

### getTargetPage

The target page to transition to.

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

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

### hasTargetPage

### setTargetPage

The target page to transition to.

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

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

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

### getTargetFlow

The target flow to transition to.

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

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

### hasTargetFlow

### setTargetFlow

The target flow to transition to.

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

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

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

### getTransition

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