# ClassificationModelOptions

- [JSON representation](https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#SCHEMA_REPRESENTATION)
- [V1Model](https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#V1Model)
- [V2Model](https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#V2Model)
  - [JSON representation](https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#V2Model.SCHEMA_REPRESENTATION)
- [ContentCategoriesVersion](https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#ContentCategoriesVersion)

Model options available for classification requests.

| JSON representation |
|---|
| ``` { // Union field `model_type` can be only one of the following: "v1Model": { object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#V1Model`) }, "v2Model": { object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#V2Model`) } // End of list of possible types for union field `model_type`. } ``` |

| Fields ||
|---|---|
| Union field `model_type`. If this field is not set, then the `v1_model` will be used by default. `model_type` can be only one of the following: ||
| `v1Model` | ``object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#V1Model`)`` Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future. |
| `v2Model` | ``object (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#V2Model`)`` Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model. |

## V1Model

This type has no fields.
Options for the V1 model.

## V2Model

Options for the V2 model.

| JSON representation |
|---|
| ``` { "contentCategoriesVersion": enum (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#ContentCategoriesVersion`) } ``` |

| Fields ||
|---|---|
| `contentCategoriesVersion` | ``enum (`https://docs.cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions#ContentCategoriesVersion`)`` The content categories used for classification. |

## ContentCategoriesVersion

The content categories used for classification.

| Enums ||
|---|---|
| `CONTENT_CATEGORIES_VERSION_UNSPECIFIED` | If `ContentCategoriesVersion` is not specified, this option will default to `V1`. |
| `V1` | Legacy content categories of our initial launch in 2017. |
| `V2` | Updated content categories in 2022. |