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

Indicates that the conversation succeeded, i.e., the bot handled the issue
that the customer talked to it about.

Dialogflow only uses this to determine which conversations should be
counted as successful and doesn't process the metadata in this message in
any way. Note that Dialogflow also considers conversations that get to the
conversation end page as successful even if they don't return
[ConversationSuccess](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResponseMessage.ConversationSuccess).
You may set this, for example:

- In the [entry_fulfillment](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page#_Google_Cloud_Dialogflow_Cx_V3_Page__getEntryFulfillment__) of a [Page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page) if entering the page indicates that the conversation succeeded.
- In a webhook response when you determine that you handled the customer issue.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ metadata` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Custom metadata. Dialogflow doesn't impose any structure on this. |

### getMetadata

Custom metadata. Dialogflow doesn't impose any structure on this.

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

### hasMetadata

### clearMetadata

### setMetadata

Custom metadata. Dialogflow doesn't impose any structure on this.

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

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