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

A dimension determines the grouping key for the query. In SQL terms, these
would be part of both the "SELECT" and "GROUP BY" clauses.

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

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ issue_dimension_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.Dimension.IssueDimensionMetadata` Output only. Metadata about the issue dimension. |
| `↳ agent_dimension_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.Dimension.AgentDimensionMetadata` Output only. Metadata about the agent dimension. |
| `↳ qa_question_dimension_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.Dimension.QaQuestionDimensionMetadata` Output only. Metadata about the QA question dimension. |
| `↳ qa_question_answer_dimension_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.Dimension.QaQuestionAnswerDimensionMetadata` Output only. Metadata about the QA question-answer dimension. |
| `↳ dimension_key` | `int` The key of the dimension. |

### getIssueDimensionMetadata

Output only. Metadata about the issue dimension.

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

### hasIssueDimensionMetadata

### setIssueDimensionMetadata

Output only. Metadata about the issue dimension.

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

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

### getAgentDimensionMetadata

Output only. Metadata about the agent dimension.

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

### hasAgentDimensionMetadata

### setAgentDimensionMetadata

Output only. Metadata about the agent dimension.

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

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

### getQaQuestionDimensionMetadata

Output only. Metadata about the QA question dimension.

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

### hasQaQuestionDimensionMetadata

### setQaQuestionDimensionMetadata

Output only. Metadata about the QA question dimension.

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

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

### getQaQuestionAnswerDimensionMetadata

Output only. Metadata about the QA question-answer dimension.

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

### hasQaQuestionAnswerDimensionMetadata

### setQaQuestionAnswerDimensionMetadata

Output only. Metadata about the QA question-answer dimension.

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

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

### getDimensionKey

The key of the dimension.

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

### setDimensionKey

The key of the dimension.

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

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

### getDimensionMetadata

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