# Google Cloud Support V2beta Client - Class CaseClassification (1.6.0)

1.6.0 (latest) 1.5.0 1.4.2 1.3.0 1.2.1 1.1.0 1.0.3 0.2.5 0.1.2

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Support V2beta Client class CaseClassification.

A Case Classification represents the topic that a case is about. It's very
important to use accurate classifications, because they're
used to route your cases to specialists who can help you.

A classification always has an ID that is its unique identifier.
A valid ID is required when creating a case.

Generated from protobuf message `google.cloud.support.v2beta.CaseClassification`

## Namespace

Google \\ Cloud \\ Support \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use `caseClassifications.search`. Classification IDs returned by `caseClassifications.search` are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, `case.create` requests using the classification ID will fail. |
| `↳ display_name` | `string` A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the `CaseClassification.id` field. |
| `↳ product` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Product` The full product the classification corresponds to. |

### getId

The unique ID for a classification. Must be specified for case creation.

To retrieve valid classification IDs for case creation, use
`caseClassifications.search`.
Classification IDs returned by `caseClassifications.search` are guaranteed
to be valid for at least 6 months. If a given classification is
deactiveated, it will immediately stop being returned. After 6 months,
`case.create` requests using the classification ID will fail.

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

### setId

The unique ID for a classification. Must be specified for case creation.

To retrieve valid classification IDs for case creation, use
`caseClassifications.search`.
Classification IDs returned by `caseClassifications.search` are guaranteed
to be valid for at least 6 months. If a given classification is
deactiveated, it will immediately stop being returned. After 6 months,
`case.create` requests using the classification ID will fail.

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

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

### getDisplayName

A display name for the classification.

The display name is not static and can change. To uniquely and consistently
identify classifications, use the `CaseClassification.id` field.

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

### setDisplayName

A display name for the classification.

The display name is not static and can change. To uniquely and consistently
identify classifications, use the `CaseClassification.id` field.

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

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

### getProduct

The full product the classification corresponds to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Product|null` |   |

### hasProduct

### clearProduct

### setProduct

The full product the classification corresponds to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Product` |

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