# Cloud Natural Language V2 Client - Class ModelVersion (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 V2 Client class ModelVersion.

The model version to use for ModerateText.

Protobuf type `google.cloud.language.v2.ModerateTextRequest.ModelVersion`

## Namespace

Google \\ Cloud \\ Language \\ V2 \\ ModerateTextRequest

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### MODEL_VERSION_UNSPECIFIED

    Value: 0

The default model version.

Generated from protobuf enum `MODEL_VERSION_UNSPECIFIED = 0;`

### MODEL_VERSION_1

    Value: 1

Use the v1 model, this model is used by default when not provided.

The v1 model only returns probability (confidence) score for each
category.

Generated from protobuf enum `MODEL_VERSION_1 = 1;`

### MODEL_VERSION_2

    Value: 2

Use the v2 model.

The v2 model only returns probability (confidence) score for each
category, and returns severity score for a subset of the categories.

Generated from protobuf enum `MODEL_VERSION_2 = 2;`