# TextPart

# TextPart


```
class TextPart : Part
```

<br />

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

*** ** * ** ***

A class representing a text part of `Content` for embedding.

## Summary

| ### Public constructors |
|---|
| `TextPart(textString: String)` |

| ### Public functions |
|---|---|
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |
| `open String` | `toString()` |

| ### Public properties |
|---|---|
| `String` | `textString` The text content of this part. |

## Public constructors

### TextPart

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

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### textString

```
val textString: String
```

The text content of this part.