# Google Cloud Dialogflow V2 Client - Class AgentAssistantFeedback (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 AgentAssistantFeedback.

Detail feedback of Agent Assist result.

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

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ answer_relevance` | `int` Optional. Whether or not the suggested answer is relevant. For example: \* \* Query: "Can I change my mailing address?" \* \* Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." \* \* [answer_relevance](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getAnswerRelevance__): [AnswerRelevance.IRRELEVANT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.AnswerRelevance#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_AnswerRelevance__IRRELEVANT) |
| `↳ document_correctness` | `int` Optional. Whether or not the information in the document is correct. For example: \* \* Query: "Can I return the package in 2 days once received?" \* \* Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." \* \* Ground truth: "No return or exchange is allowed." \* \* [document_correctness](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentCorrectness__): [INCORRECT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentCorrectness#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentCorrectness__INCORRECT) |
| `↳ document_efficiency` | `int` Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, [document_efficiency](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentEfficiency__) is [DocumentEfficiency.INEFFICIENT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentEfficiency#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentEfficiency__INEFFICIENT). |
| `↳ summarization_feedback` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.SummarizationFeedback` Optional. Feedback for conversation summarization. |
| `↳ knowledge_search_feedback` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.KnowledgeSearchFeedback` Optional. Feedback for knowledge search. |
| `↳ knowledge_assist_feedback` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.KnowledgeAssistFeedback` Optional. Feedback for knowledge assist. |

### getAnswerRelevance

Optional. Whether or not the suggested answer is relevant.

For example:

- Query: "Can I change my mailing address?"
- Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date."
- [answer_relevance](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getAnswerRelevance__): [AnswerRelevance.IRRELEVANT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.AnswerRelevance#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_AnswerRelevance__IRRELEVANT)

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

### setAnswerRelevance

Optional. Whether or not the suggested answer is relevant.

For example:

- Query: "Can I change my mailing address?"
- Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date."
- [answer_relevance](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getAnswerRelevance__): [AnswerRelevance.IRRELEVANT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.AnswerRelevance#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_AnswerRelevance__IRRELEVANT)

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

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

### getDocumentCorrectness

Optional. Whether or not the information in the document is correct.

For example:

- Query: "Can I return the package in 2 days once received?"
- Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date."
- Ground truth: "No return or exchange is allowed."
- [document_correctness](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentCorrectness__): [INCORRECT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentCorrectness#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentCorrectness__INCORRECT)

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

### setDocumentCorrectness

Optional. Whether or not the information in the document is correct.

For example:

- Query: "Can I return the package in 2 days once received?"
- Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date."
- Ground truth: "No return or exchange is allowed."
- [document_correctness](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentCorrectness__): [INCORRECT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentCorrectness#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentCorrectness__INCORRECT)

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

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

### getDocumentEfficiency

Optional. Whether or not the suggested document is efficient. For example,
if the document is poorly written, hard to understand, hard to use or
too long to find useful information,
[document_efficiency](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentEfficiency__)
is
[DocumentEfficiency.INEFFICIENT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentEfficiency#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentEfficiency__INEFFICIENT).

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

### setDocumentEfficiency

Optional. Whether or not the suggested document is efficient. For example,
if the document is poorly written, hard to understand, hard to use or
too long to find useful information,
[document_efficiency](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentEfficiency__)
is
[DocumentEfficiency.INEFFICIENT](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentEfficiency#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentEfficiency__INEFFICIENT).

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

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

### getSummarizationFeedback

Optional. Feedback for conversation summarization.

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

### hasSummarizationFeedback

### clearSummarizationFeedback

### setSummarizationFeedback

Optional. Feedback for conversation summarization.

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

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

### getKnowledgeSearchFeedback

Optional. Feedback for knowledge search.

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

### hasKnowledgeSearchFeedback

### clearKnowledgeSearchFeedback

### setKnowledgeSearchFeedback

Optional. Feedback for knowledge search.

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

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

### getKnowledgeAssistFeedback

Optional. Feedback for knowledge assist.

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

### hasKnowledgeAssistFeedback

### clearKnowledgeAssistFeedback

### setKnowledgeAssistFeedback

Optional. Feedback for knowledge assist.

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

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