- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#SCHEMA_REPRESENTATION)
- [IssueDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#IssueDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#IssueDimensionMetadata.SCHEMA_REPRESENTATION)
- [AgentDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#AgentDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#AgentDimensionMetadata.SCHEMA_REPRESENTATION)
- [QaQuestionDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#QaQuestionDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#QaQuestionDimensionMetadata.SCHEMA_REPRESENTATION)
- [QaQuestionAnswerDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#QaQuestionAnswerDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#QaQuestionAnswerDimensionMetadata.SCHEMA_REPRESENTATION)
- [QaScorecardDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#QaScorecardDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#QaScorecardDimensionMetadata.SCHEMA_REPRESENTATION)
- [ConversationProfileDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ConversationProfileDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ConversationProfileDimensionMetadata.SCHEMA_REPRESENTATION)
- [MediumDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#MediumDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#MediumDimensionMetadata.SCHEMA_REPRESENTATION)
- [ConversationalAgentsPlaybookDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ConversationalAgentsPlaybookDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ConversationalAgentsPlaybookDimensionMetadata.SCHEMA_REPRESENTATION)
- [ConversationalAgentsToolDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ConversationalAgentsToolDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ConversationalAgentsToolDimensionMetadata.SCHEMA_REPRESENTATION)
- [ClientSentimentCategoryDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ClientSentimentCategoryDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#ClientSentimentCategoryDimensionMetadata.SCHEMA_REPRESENTATION)
- [LabelDimensionMetadata](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#LabelDimensionMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#LabelDimensionMetadata.SCHEMA_REPRESENTATION)
- [DimensionKey](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/Dimension.md.txt#DimensionKey)

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

| JSON representation |
|---|
| ``` { "dimensionKey": enum (`DimensionKey`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "issueDimensionMetadata": { object (`IssueDimensionMetadata`) }, "agentDimensionMetadata": { object (`AgentDimensionMetadata`) }, "qaQuestionDimensionMetadata": { object (`QaQuestionDimensionMetadata`) }, "qaQuestionAnswerDimensionMetadata": { object (`QaQuestionAnswerDimensionMetadata`) }, "qaScorecardDimensionMetadata": { object (`QaScorecardDimensionMetadata`) }, "conversationProfileDimensionMetadata": { object (`ConversationProfileDimensionMetadata`) }, "mediumDimensionMetadata": { object (`MediumDimensionMetadata`) }, "conversationalAgentsPlaybookDimensionMetadata": { object (`ConversationalAgentsPlaybookDimensionMetadata`) }, "conversationalAgentsToolDimensionMetadata": { object (`ConversationalAgentsToolDimensionMetadata`) }, "clientSentimentCategoryDimensionMetadata": { object (`ClientSentimentCategoryDimensionMetadata`) }, "labelDimensionMetadata": { object (`LabelDimensionMetadata`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `dimensionKey` | ``enum (`DimensionKey`)`` The key of the dimension. |
| Output-only metadata about the dimension. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `issueDimensionMetadata` | ``object (`IssueDimensionMetadata`)`` Output only. Metadata about the issue dimension. |
| `agentDimensionMetadata` | ``object (`AgentDimensionMetadata`)`` Output only. Metadata about the agent dimension. |
| `qaQuestionDimensionMetadata` | ``object (`QaQuestionDimensionMetadata`)`` Output only. Metadata about the QA question dimension. |
| `qaQuestionAnswerDimensionMetadata` | ``object (`QaQuestionAnswerDimensionMetadata`)`` Output only. Metadata about the QA question-answer dimension. |
| `qaScorecardDimensionMetadata` | ``object (`QaScorecardDimensionMetadata`)`` Output only. Metadata about the QA scorecard dimension. |
| `conversationProfileDimensionMetadata` | ``object (`ConversationProfileDimensionMetadata`)`` Output only. Metadata about the conversation profile dimension. |
| `mediumDimensionMetadata` | ``object (`MediumDimensionMetadata`)`` Output only. Metadata about the conversation medium dimension. |
| `conversationalAgentsPlaybookDimensionMetadata` | ``object (`ConversationalAgentsPlaybookDimensionMetadata`)`` Output only. Metadata about the Conversational Agents playbook dimension. |
| `conversationalAgentsToolDimensionMetadata` | ``object (`ConversationalAgentsToolDimensionMetadata`)`` Output only. Metadata about the Conversational Agents tool dimension. |
| `clientSentimentCategoryDimensionMetadata` | ``object (`ClientSentimentCategoryDimensionMetadata`)`` Output only. Metadata about the client sentiment category dimension. |
| `labelDimensionMetadata` | ``object (`LabelDimensionMetadata`)`` Output only. Metadata about conversation labels. |
| End of mutually exclusive fields. ||

## IssueDimensionMetadata

Metadata about the issue dimension.

| JSON representation |
|---|
| ``` { "issueId": string, "issueDisplayName": string, "issueModelId": string } ``` |

| Fields ||
|---|---|
| `issueId` | `string` The issue ID. |
| `issueDisplayName` | `string` The issue display name. |
| `issueModelId` | `string` The parent issue model ID. |

## AgentDimensionMetadata

Metadata about the agent dimension.

| JSON representation |
|---|
| ``` { "agentId": string, "agentDisplayName": string, "agentTeam": string, "agentVersionDisplayName": string, "agentVersionId": string, "agentDeploymentDisplayName": string, "agentDeploymentId": string } ``` |

| Fields ||
|---|---|
| `agentId` | `string` Optional. A user-specified string representing the agent. This will be populated for AGENT, AGENT_TEAM, AGENT_VERSION_ID, and AGENT_DEPLOYMENT_ID dimensions. |
| `agentDisplayName` | `string` Optional. The agent's name This will be populated for AGENT, AGENT_TEAM, AGENT_VERSION_ID, and AGENT_DEPLOYMENT_ID dimensions. |
| `agentTeam` | `string` Optional. A user-specified string representing the agent's team. |
| `agentVersionDisplayName` | `string` Optional. The agent's version display name. Only applicable to automated agents. This will be populated for AGENT_VERSION_ID, and AGENT_DEPLOYMENT_ID dimensions. |
| `agentVersionId` | `string` Optional. The agent's version ID. Only applicable to automated agents. This will be populated for AGENT_VERSION_ID, and AGENT_DEPLOYMENT_ID dimensions. |
| `agentDeploymentDisplayName` | `string` Optional. The agent's deployment display name. Only applicable to automated agents. This will be populated for AGENT_DEPLOYMENT_ID dimensions. |
| `agentDeploymentId` | `string` Optional. The agent's deployment ID. Only applicable to automated agents. This will be populated for AGENT and AGENT_DEPLOYMENT_ID dimensions. |

## QaQuestionDimensionMetadata

Metadata about the QA question dimension.

| JSON representation |
|---|
| ``` { "qaScorecardId": string, "qaQuestionId": string, "questionBody": string } ``` |

| Fields ||
|---|---|
| `qaScorecardId` | `string` Optional. The QA scorecard ID. |
| `qaQuestionId` | `string` Optional. The QA question ID. |
| `questionBody` | `string` Optional. The full body of the question. |

## QaQuestionAnswerDimensionMetadata

Metadata about the QA question-answer dimension. This is useful for showing the answer distribution for questions for a given scorecard.

| JSON representation |
|---|
| ``` { "qaScorecardId": string, "qaQuestionId": string, "questionBody": string, "answerValue": string } ``` |

| Fields ||
|---|---|
| `qaScorecardId` | `string` Optional. The QA scorecard ID. |
| `qaQuestionId` | `string` Optional. The QA question ID. |
| `questionBody` | `string` Optional. The full body of the question. |
| `answerValue` | `string` Optional. The full body of the question. |

## QaScorecardDimensionMetadata

Metadata about the QA scorecard dimension.

| JSON representation |
|---|
| ``` { "qaScorecardId": string } ``` |

| Fields ||
|---|---|
| `qaScorecardId` | `string` Optional. The QA scorecard ID. |

## ConversationProfileDimensionMetadata

Metadata about the conversation profile dimension.

| JSON representation |
|---|
| ``` { "conversationProfileId": string } ``` |

| Fields ||
|---|---|
| `conversationProfileId` | `string` Optional. The conversation profile ID. |

## MediumDimensionMetadata

Metadata about the conversation medium dimension.

| JSON representation |
|---|
| ``` { "medium": string } ``` |

| Fields ||
|---|---|
| `medium` | `string` Optional. The conversation medium. Currently supports : PHONE_CALL, CHAT. |

## ConversationalAgentsPlaybookDimensionMetadata

Metadata about the Conversational Agents playbook dimension.

| JSON representation |
|---|
| ``` { "playbookId": string, "playbookDisplayName": string } ``` |

| Fields ||
|---|---|
| `playbookId` | `string` Optional. The dialogflow playbook ID. |
| `playbookDisplayName` | `string` Optional. The dialogflow playbook display name. |

## ConversationalAgentsToolDimensionMetadata

Metadata about the Conversational Agents tool dimension.

| JSON representation |
|---|
| ``` { "toolId": string, "toolDisplayName": string } ``` |

| Fields ||
|---|---|
| `toolId` | `string` Optional. The dialogflow tool ID. |
| `toolDisplayName` | `string` Optional. The dialogflow tool display name. |

## ClientSentimentCategoryDimensionMetadata

Metadata about the client sentiment category dimension.

| JSON representation |
|---|
| ``` { "sentimentCategory": string } ``` |

| Fields ||
|---|---|
| `sentimentCategory` | `string` Optional. The client sentiment category. |

## LabelDimensionMetadata

Metadata about conversation labels.

| JSON representation |
|---|
| ``` { "labelKey": string, "labelValue": string } ``` |

| Fields ||
|---|---|
| `labelKey` | `string` Optional. The label key. |
| `labelValue` | `string` Optional. The label value. |

## DimensionKey

The key of the dimension.

| Enums ||
|---|---|
| `DIMENSION_KEY_UNSPECIFIED` | The key of the dimension is unspecified. |
| `ISSUE` | The dimension is keyed by issues. |
| `ISSUE_NAME` | The dimension is keyed by issue names. |
| `AGENT` | The dimension is keyed by agents. |
| `AGENT_TEAM` | The dimension is keyed by agent teams. |
| `QA_QUESTION_ID` | The dimension is keyed by QaQuestionIds. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing stats for the same question across different scorecard revisions. |
| `QA_QUESTION_ANSWER_VALUE` | The dimension is keyed by QaQuestionIds-Answer value pairs. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing distribution of answers per question across different scorecard revisions. |
| `QA_SCORECARD_ID` | The dimension is keyed by QaScorecardIds. Note that: We only group by the ScorecardId and not the revision-id of the scorecard. This allows for showing stats for the same scorecard across different revisions. This metric is mostly only useful if querying the average normalized score per scorecard. |
| `CONVERSATION_PROFILE_ID` | The dimension is keyed by the conversation profile ID. |
| `MEDIUM` | The dimension is keyed by the conversation medium. |
| `CONVERSATIONAL_AGENTS_PLAYBOOK_ID` | The dimension is keyed by the Conversational Agents playbook ID. |
| `CONVERSATIONAL_AGENTS_PLAYBOOK_NAME` | The dimension is keyed by the Conversational Agents playbook display name. |
| `CONVERSATIONAL_AGENTS_TOOL_ID` | The dimension is keyed by the Conversational Agents tool ID. |
| `CONVERSATIONAL_AGENTS_TOOL_NAME` | The dimension is keyed by the Conversational Agents tool display name. |
| `CLIENT_SENTIMENT_CATEGORY` | The dimension is keyed by the client sentiment category. |
| `AGENT_VERSION_ID` | The dimension is keyed by the agent version ID. |
| `AGENT_DEPLOYMENT_ID` | The dimension is keyed by the agent deployment ID. |
| `AGENT_ASSIST_SUPERVISOR_ID` | The dimension is keyed by the supervisor ID of the assigned human supervisor for virtual agents. |
| `LABEL_KEY` | The dimension is keyed by label keys. |
| `LABEL_VALUE` | The dimension is keyed by label values. |
| `LABEL_KEY_AND_VALUE` | The dimension is keyed by label key-value pairs. |
| `LAST_TRANSFER_SUB_AGENT_NAME` | The dimension is keyed by the last transfer sub agent name. |