# Google Cloud Contact Center Insights V1 Client - Class QaScorecardRevision (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 QaScorecardRevision.

A revision of a QaScorecard.

Modifying published scorecard fields would invalidate existing scorecard
results --- the questions may have changed, or the score weighting will make
existing scores impossible to understand. So changes must create a new
revision, rather than modifying the existing resource.

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

## 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 revision. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision} |
| `↳ snapshot` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecard` The snapshot of the scorecard at the time of this revision's creation. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp that the revision was created. |
| `↳ alternate_ids` | `string[]` Output only. Alternative IDs for this revision of the scorecard, e.g., `latest`. |
| `↳ state` | `int` Output only. State of the scorecard revision, indicating whether it's ready to be used in analysis. |

### getName

Identifier. The name of the scorecard revision.

Format:
projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}

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

### setName

Identifier. The name of the scorecard revision.

Format:
projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}

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

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

### getSnapshot

The snapshot of the scorecard at the time of this revision's creation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecard|null` |   |

### hasSnapshot

### clearSnapshot

### setSnapshot

The snapshot of the scorecard at the time of this revision's creation.

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

| **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` |   |

### getAlternateIds

Output only. Alternative IDs for this revision of the scorecard, e.g.,
`latest`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAlternateIds

Output only. Alternative IDs for this revision of the scorecard, e.g.,
`latest`.

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

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

### getState

Output only. State of the scorecard revision, indicating whether it's ready
to be used in analysis.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardRevision.State). |

### setState

Output only. State of the scorecard revision, indicating whether it's ready
to be used in analysis.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.QaScorecardRevision.State). |

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