# TaskConfig.Classification


```
public final class TaskConfig.Classification extends TaskConfig
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [com.google.mlkit.genai.embedding.TaskConfig](https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TaskConfig) ||
|   | ↳ | [com.google.mlkit.genai.embedding.TaskConfig.Classification](https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TaskConfig.Classification) |

*** ** * ** ***

Task type for classification tasks.

Optimized to generate embeddings that help classify texts according to preset labels (e.g., sentiment analysis, spam detection).

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TaskConfig.Classification#Classification()()` |

## Public constructors

### Classification

```
public Classification()
```