public final class

ConversationActions.Request.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.textclassifier.ConversationActions.Request.Builder

Overview

Builder object to construct the ConversationActions.Request object.

Summary

Constructors
publicBuilder(java.util.List<ConversationActions.Message> conversation)

Constructs a builder.

Methods
public ConversationActions.Requestbuild()

Builds the ConversationActions.Request object.

public ConversationActions.Request.BuildersetExtras(Bundle bundle)

Sets a set of extended data to the request.

public ConversationActions.Request.BuildersetHints(java.util.List<java.lang.String> hints)

Sets the hints to help text classifier to generate actions.

public ConversationActions.Request.BuildersetMaxSuggestions(int maxSuggestions)

Sets the maximum number of suggestions you want.

public ConversationActions.Request.BuildersetTypeConfig(TextClassifier.EntityConfig typeConfig)

Sets the type config.

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

Constructors

public Builder(java.util.List<ConversationActions.Message> conversation)

Constructs a builder.

Parameters:

conversation: the conversation that the text classifier is going to generate actions for.

Methods

public ConversationActions.Request.Builder setHints(java.util.List<java.lang.String> hints)

Sets the hints to help text classifier to generate actions. It could be used to help text classifier to infer what types of actions the caller may be interested in.

Sets the type config.

public ConversationActions.Request.Builder setMaxSuggestions(int maxSuggestions)

Sets the maximum number of suggestions you want. Value -1 means no restriction and this is the default.

public ConversationActions.Request.Builder setExtras(Bundle bundle)

Sets a set of extended data to the request.

Builds the ConversationActions.Request object.