# RewritingSuggestion

public abstract class **RewritingSuggestion** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
A single suggestion from the rewriting inference.

### Public Method Summary

|---|---|
| abstract [String](https://developer.android.com/reference/java/lang/String.html) | [getText](https://developers.google.com/android/reference/com/google/mlkit/genai/rewriting/RewritingSuggestion#getText())() Gets the suggested text. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public abstract [String](https://developer.android.com/reference/java/lang/String.html) **getText** ()

Gets the suggested text.