# SystemInstruction


```
public final class SystemInstruction extends Part
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [com.google.mlkit.genai.prompt.Part](https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/Part) ||
|   | ↳ | [com.google.mlkit.genai.prompt.SystemInstruction](https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/SystemInstruction) |

*** ** * ** ***

A data class representing a system text part of a prompt.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/SystemInstruction#SystemInstruction(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html textString)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/SystemInstruction#getTextString()()` |

## Public constructors

### SystemInstruction

```
public SystemInstruction(@NonNull String textString)
```

## Public methods

### getTextString

```
public final @NonNull String getTextString()
```