RewritingResult
Stay organized with collections
Save and categorize content based on your preferences.
Results from the rewriting inference.
Public Method Summary
getResults
() Gets a list of unique suggested rewrites.
Inherited Method Summary
From class java.lang.Object
Public Methods
public abstract ImmutableList< RewritingSuggestion
>
getResults
()
Gets a list of unique suggested rewrites.
The list is guaranteed to be non-empty and the suggested rewrites are sorted in
descending order of confidence.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[],null,["# RewritingResult\n\npublic abstract class **RewritingResult** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nResults from the rewriting inference. \n\n### Public Method Summary\n\n|--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract ImmutableList\\\u003c[RewritingSuggestion](/android/reference/com/google/mlkit/genai/rewriting/RewritingSuggestion)\\\u003e | [getResults](/android/reference/com/google/mlkit/genai/rewriting/RewritingResult#getResults())() Gets a list of unique suggested rewrites. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public abstract ImmutableList\\\u003c[RewritingSuggestion](/android/reference/com/google/mlkit/genai/rewriting/RewritingSuggestion)\\\u003e\n**getResults** ()\n\nGets a list of unique suggested rewrites.\n\nThe list is guaranteed to be non-empty and the suggested rewrites are sorted in\ndescending order of confidence."]]