# Google Cloud Contact Center Insights V1 Client - Class QaScorecardResult (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class QaScorecardResult.

The results of scoring a single conversation against a QaScorecard. Contains
a collection of QaAnswers and aggregate score.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.QaScorecardResult`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the scorecard result. Format: projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result} |
| `↳ qa_scorecard_revision` | `string` The QaScorecardRevision scored by this result. |
| `↳ conversation` | `string` The conversation scored by this result. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp that the revision was created. |
| `↳ agent_id` | `string` ID of the agent that handled the conversation. |
| `↳ qa_answers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaAnswer>` Set of QaAnswers represented in the result. |
| `↳ score` | `float` The overall numerical score of the result, incorporating any manual edits if they exist. |
| `↳ potential_score` | `float` The maximum potential overall score of the scorecard. Any questions answered using `na_value` are excluded from this calculation. |
| `↳ normalized_score` | `float` The normalized score, which is the score divided by the potential score. Any manual edits are included if they exist. |
| `↳ qa_tag_results` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardResult.QaTagResult>` Collection of tags and their scores. |
| `↳ score_sources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardResult.ScoreSource>` List of all individual score sets. |

### getName

Identifier. The name of the scorecard result.

Format:
projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result}

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

### setName

Identifier. The name of the scorecard result.

Format:
projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result}

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

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

### getQaScorecardRevision

The QaScorecardRevision scored by this result.

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

### setQaScorecardRevision

The QaScorecardRevision scored by this result.

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

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

### getConversation

The conversation scored by this result.

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

### setConversation

The conversation scored by this result.

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

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

### getCreateTime

Output only. The timestamp that the revision was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp that the revision was created.

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

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

### getAgentId

ID of the agent that handled the conversation.

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

### setAgentId

ID of the agent that handled the conversation.

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

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

### getQaAnswers

Set of QaAnswers represented in the result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaAnswer>` |   |

### setQaAnswers

Set of QaAnswers represented in the result.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaAnswer>` |

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

### getScore

The overall numerical score of the result, incorporating any manual edits
if they exist.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasScore

### clearScore

### setScore

The overall numerical score of the result, incorporating any manual edits
if they exist.

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

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

### getPotentialScore

The maximum potential overall score of the scorecard. Any questions
answered using `na_value` are excluded from this calculation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasPotentialScore

### clearPotentialScore

### setPotentialScore

The maximum potential overall score of the scorecard. Any questions
answered using `na_value` are excluded from this calculation.

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

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

### getNormalizedScore

The normalized score, which is the score divided by the potential score.

Any manual edits are included if they exist.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasNormalizedScore

### clearNormalizedScore

### setNormalizedScore

The normalized score, which is the score divided by the potential score.

Any manual edits are included if they exist.

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

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

### getQaTagResults

Collection of tags and their scores.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardResult.QaTagResult>` |   |

### setQaTagResults

Collection of tags and their scores.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardResult.QaTagResult>` |

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

### getScoreSources

List of all individual score sets.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardResult.ScoreSource>` |   |

### setScoreSources

List of all individual score sets.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardResult.ScoreSource>` |

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