public final class

ConversationActions.Request

extends java.lang.Object

 java.lang.Object

↳androidx.textclassifier.ConversationActions.Request

Overview

A request object for generating conversation action suggestions.

Summary

Fields
public static final java.lang.StringHINT_FOR_IN_APP

To indicate the generated actions will be used within the app.

public static final java.lang.StringHINT_FOR_NOTIFICATION

To indicate the generated actions will be used for notification.

Methods
public static ConversationActions.RequestcreateFromBundle(Bundle bundle)

Converts a bundle that was created using ConversationActions.Request.toBundle() to a ConversationActions.Request.

public java.util.List<ConversationActions.Message>getConversation()

Returns an immutable list of messages that make up the conversation.

public BundlegetExtras()

Returns the extended data related to this request.

public java.util.List<java.lang.String>getHints()

Returns an immutable list of hints

public intgetMaxSuggestions()

Return the maximal number of suggestions the caller wants, value -1 means no restriction and this is the default.

public TextClassifier.EntityConfiggetTypeConfig()

Returns the type config.

public BundletoBundle()

Adds this object to a Bundle that can be read back with the same parameters to ConversationActions.Request.createFromBundle(Bundle).

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final java.lang.String HINT_FOR_IN_APP

To indicate the generated actions will be used within the app.

public static final java.lang.String HINT_FOR_NOTIFICATION

To indicate the generated actions will be used for notification.

Methods

public TextClassifier.EntityConfig getTypeConfig()

Returns the type config.

public java.util.List<ConversationActions.Message> getConversation()

Returns an immutable list of messages that make up the conversation.

public int getMaxSuggestions()

Return the maximal number of suggestions the caller wants, value -1 means no restriction and this is the default.

public java.util.List<java.lang.String> getHints()

Returns an immutable list of hints

public Bundle getExtras()

Returns the extended data related to this request.

NOTE: Do not modify this bundle.

public Bundle toBundle()

Adds this object to a Bundle that can be read back with the same parameters to ConversationActions.Request.createFromBundle(Bundle).

public static ConversationActions.Request createFromBundle(Bundle bundle)

Converts a bundle that was created using ConversationActions.Request.toBundle() to a ConversationActions.Request.