# TextPart

# TextPart


```
data class TextPart : Part
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.mlkit.genai.prompt.Part](https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/Part) ||
|   | ↳ | [com.google.mlkit.genai.prompt.TextPart](https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/TextPart) |

*** ** * ** ***

A data class representing a text part of a prompt.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/TextPart#TextPart(kotlin.String)(textString: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/TextPart#textString()` |

## Public constructors

### TextPart

```
TextPart(textString: String)
```

## Public properties

### textString

```
val textString: String
```