SmartReplySuggestionResult
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
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: 101
public static final int
STATUS_NO_REPLY
The Smart Reply model cannot determine an applicable reply.
Constant Value: 200
public static final int
STATUS_SUCCESS
The Smart Reply model successfully generated (1-3) replies for you.
Constant Value: 0
Public Methods
public int getStatus ()
Gets the status of the Smart Reply suggestion result.
Possible values are:
A list of the predicted responses sorted by 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 2020-08-14 UTC.
[null,null,["Last updated 2020-08-14 UTC."],[],[],null,["# SmartReplySuggestionResult\n\npublic class **SmartReplySuggestionResult** extends [Object](//developer.android.com/reference/java/lang/Object.html) \n**This class is deprecated.** \n\nThe standalone ML Kit SDK replaces this API. For more information, refer to the [migration guide](//developers.google.com/ml-kit/migration).\n\nThe suggested result from the [FirebaseSmartReply](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/FirebaseSmartReply) for the given text. It contains a list of [SmartReplySuggestion](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestion)s. \n\n### Nested Class Summary\n\n|------------|---|---|-----------------------------------------------------------------|\n| @interface | [SmartReplySuggestionResult.Status](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult.Status) || All possible status codes for a Smart Reply suggestion attempt. |\n\n### Constant Summary\n\n|-----|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|\n| int | [STATUS_NOT_SUPPORTED_LANGUAGE](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#STATUS_NOT_SUPPORTED_LANGUAGE) | The Smart Reply model currently doesn't support the language used in the conversation. |\n| int | [STATUS_NO_REPLY](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#STATUS_NO_REPLY) | The Smart Reply model cannot determine an applicable reply. |\n| int | [STATUS_SUCCESS](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#STATUS_SUCCESS) | The Smart Reply model successfully generated (1-3) replies for you. |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [getStatus](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#getStatus())() Gets the status of the Smart Reply suggestion result. |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[SmartReplySuggestion](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestion)\\\u003e | [getSuggestions](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#getSuggestions())() A list of the predicted responses sorted by confidence. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#toString())() |\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\nConstants\n---------\n\n#### public static final int\n**STATUS_NOT_SUPPORTED_LANGUAGE**\n\nThe Smart Reply model currently doesn't support the language used in the\nconversation. \nConstant Value: 101 \n\n#### public static final int\n**STATUS_NO_REPLY**\n\nThe Smart Reply model cannot determine an applicable reply. \nConstant Value: 200 \n\n#### public static final int\n**STATUS_SUCCESS**\n\nThe Smart Reply model successfully generated (1-3) replies for you. \nConstant Value: 0\n\nPublic Methods\n--------------\n\n#### public int **getStatus** ()\n\nGets the status of the Smart Reply suggestion result.\n\nPossible values are:\n\n- [STATUS_SUCCESS](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#STATUS_SUCCESS) and you can expect up to three suggestions in [getSuggestions()](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#getSuggestions()) in this case.\n- [STATUS_NOT_SUPPORTED_LANGUAGE](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#STATUS_NOT_SUPPORTED_LANGUAGE) when the language used in the conversation is not supported by the Smart Reply model.\n- [STATUS_NO_REPLY](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestionResult#STATUS_NO_REPLY) when the Smart Reply model cannot determine an applicable reply. \n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[SmartReplySuggestion](/docs/reference/android/com/google/firebase/ml/naturallanguage/smartreply/SmartReplySuggestion)\\\u003e\n**getSuggestions** ()\n\nA list of the predicted responses sorted by confidence. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()"]]