# Class ClassificationModelOptions (2.21.0)

2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.2 2.16.0 2.15.1 2.14.0 2.13.4 2.12.0 2.11.0 2.10.1 2.9.1 2.8.1 2.7.0 2.6.1 2.5.2 2.4.3 2.3.2 2.2.2 2.1.0 2.0.0 1.3.2

    ClassificationModelOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Model options available for classification requests.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `v1_model` | `https://docs-0cloud-0google-0com.linkedin.net.nz/python/docs/reference/language/latest/google.cloud.language_v1beta2.types.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. This field is a member of `oneof`_ `model_type`. |
| `v2_model` | `https://docs-0cloud-0google-0com.linkedin.net.nz/python/docs/reference/language/latest/google.cloud.language_v1beta2.types.ClassificationModelOptions.V2Model` Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model. This field is a member of `oneof`_ `model_type`. |

## Classes

### V1Model

    V1Model(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for the V1 model.

### V2Model

    V2Model(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for the V2 model.