ConversationActions.Request.Builder


class ConversationActions.Request.Builder


Builder object to construct the Request object.

Summary

Public constructors

Constructs a builder.

Public functions

ConversationActions.Request

Builds the Request object.

ConversationActions.Request.Builder
setExtras(bundle: Bundle?)

Sets a set of extended data to the request.

ConversationActions.Request.Builder

Sets the hints to help text classifier to generate actions.

ConversationActions.Request.Builder
setMaxSuggestions(maxSuggestions: @IntRange(from = "-1") Int)

Sets the maximum number of suggestions you want.

ConversationActions.Request.Builder

Sets the type config.

Public constructors

Builder

Builder(conversation: (Mutable)List<ConversationActions.Message!>)

Constructs a builder.

Parameters
conversation: (Mutable)List<ConversationActions.Message!>

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

Public functions

build

fun build(): ConversationActions.Request

Builds the Request object.

setExtras

fun setExtras(bundle: Bundle?): ConversationActions.Request.Builder

Sets a set of extended data to the request.

setHints

fun setHints(hints: (Mutable)List<String!>?): ConversationActions.Request.Builder

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.

setMaxSuggestions

fun setMaxSuggestions(maxSuggestions: @IntRange(from = "-1") Int): ConversationActions.Request.Builder

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

setTypeConfig

fun setTypeConfig(typeConfig: TextClassifier.EntityConfig?): ConversationActions.Request.Builder

Sets the type config.