# SmartReplySuggestionResult

public class **SmartReplySuggestionResult** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
The suggested result from the `https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplyGenerator`
for the given text. It contains a list of `https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestion`s.

### Nested Class Summary

|---|---|---|---|
| @interface | [SmartReplySuggestionResult.Status](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult.Status) || A possible status code for a Smart Reply suggestion attempt. |

### Constant Summary

|---|---|---|
| int | [STATUS_NOT_SUPPORTED_LANGUAGE](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#STATUS_NOT_SUPPORTED_LANGUAGE) | The Smart Reply model currently doesn't support the language used in the conversation. |
| int | [STATUS_NO_REPLY](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#STATUS_NO_REPLY) | The Smart Reply model cannot determine an applicable reply. |
| int | [STATUS_SUCCESS](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#STATUS_SUCCESS) | The Smart Reply model successfully generated (1-3) replies. |

### Public Method Summary

|---|---|
| int | [getStatus](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#getStatus())() Gets the status of the Smart Reply suggestion result. |
| [List](https://developer.android.com/reference/java/util/List.html)\<[SmartReplySuggestion](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestion)\> | [getSuggestions](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#getSuggestions())() A list of the suggested responses sorted by confidence (highest to lowest). |
| [String](https://developer.android.com/reference/java/lang/String.html) | [toString](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#toString())() A textual description of the suggested replies, including their texts. |

### 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() |

## Constants

#### public static final int
**STATUS_NOT_SUPPORTED_LANGUAGE**

The Smart Reply model currently doesn't support the language used in the
conversation.
Constant Value: 1

#### public static final int
**STATUS_NO_REPLY**

The Smart Reply model cannot determine an applicable reply.
Constant Value: 2

#### public static final int
**STATUS_SUCCESS**

The Smart Reply model successfully generated (1-3) replies.
Constant Value: 0

## Public Methods

#### public int **getStatus** ()

Gets the status of the Smart Reply suggestion result.

Possible values are:

- `https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#STATUS_SUCCESS` when `https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#getSuggestions()` will successfully provide up to three meaningful suggestions.
- `https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#STATUS_NOT_SUPPORTED_LANGUAGE` when the language used in the conversation is not supported by the Smart Reply model.
- `https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestionResult#STATUS_NO_REPLY` when the Smart Reply model cannot determine an applicable reply.

#### public [List](https://developer.android.com/reference/java/util/List.html)\<[SmartReplySuggestion](https://developers.google.com/android/reference/com/google/mlkit/nl/smartreply/SmartReplySuggestion)\>
**getSuggestions** ()

A list of the suggested responses sorted by confidence (highest to lowest).

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

A textual description of the suggested replies, including their texts.