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

The request to set the feedback for a bot answer.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ session` | `string` Required. The name of the session the feedback was sent to. |
| `↳ response_id` | `string` Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id. |
| `↳ answer_feedback` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.AnswerFeedback` Required. Feedback provided for a bot answer. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated. |

### getSession

Required. The name of the session the feedback was sent to.

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

### setSession

Required. The name of the session the feedback was sent to.

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

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

### getResponseId

Required. ID of the response to update its feedback. This is the same as
DetectIntentResponse.response_id.

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

### setResponseId

Required. ID of the response to update its feedback. This is the same as
DetectIntentResponse.response_id.

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

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

### getAnswerFeedback

Required. Feedback provided for a bot answer.

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

### hasAnswerFeedback

### clearAnswerFeedback

### setAnswerFeedback

Required. Feedback provided for a bot answer.

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

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

### getUpdateMask

Optional. The mask to control which fields to update. If the mask is not
present, all fields will be updated.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. The mask to control which fields to update. If the mask is not
present, all fields will be updated.

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

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