# Cloud AutoML V1 Client - Class TextClassificationModelMetadata (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class TextClassificationModelMetadata.

Model metadata that is specific to text classification.

Generated from protobuf message `google.cloud.automl.v1.TextClassificationModelMetadata`

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ classification_type` | `int` Output only. Classification type of the dataset used to train this model. |

### getClassificationType

Output only. Classification type of the dataset used to train this model.

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

### setClassificationType

Output only. Classification type of the dataset used to train this model.

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

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