# Content


```
public final class Content
```

<br />

*** ** * ** ***

Represents a single content item for embedding.

Holds a list of `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Part` instances, supporting text and multimodal inputs.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Content#Content(kotlin.collections.List)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Part> parts)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Part>` | `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Content#getParts()()` The non-empty list of `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Part` instances (such as `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TextPart` and `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/ImagePart`) making up this content. |

## Public constructors

### Content

```
public Content(@NonNull List<@NonNull Part> parts)
```

## Public methods

### getParts

```
public final @NonNull List<@NonNull Part> getParts()
```

The non-empty list of `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/Part` instances (such as `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TextPart` and `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/ImagePart`) making up this content.