# Cloud Natural Language V1 Client - Class V2Model (1.2.1)

1.2.1 (latest) 1.2.0 1.1.4 1.0.1 0.34.3 0.33.0 0.32.7 0.31.3 0.30.2 0.29.0 0.28.5 Reference documentation and code samples for the Cloud Natural Language V1 Client class V2Model.

Options for the V2 model.

Generated from protobuf message `google.cloud.language.v1.ClassificationModelOptions.V2Model`

## Namespace

Google \\ Cloud \\ Language \\ V1 \\ ClassificationModelOptions

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ content_categories_version` | `int` The content categories used for classification. |

### getContentCategoriesVersion

The content categories used for classification.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ContentCategoriesVersion](https://docs.cloud.google.com/php/docs/reference/cloud-language/latest/V1.ClassificationModelOptions.V2Model.ContentCategoriesVersion). |

### setContentCategoriesVersion

The content categories used for classification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ContentCategoriesVersion](https://docs.cloud.google.com/php/docs/reference/cloud-language/latest/V1.ClassificationModelOptions.V2Model.ContentCategoriesVersion). |

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