# TextClassifierEvent.ConversationActionsEvent.Builder

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary: [Ctors](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder#inhmethods)  

# TextClassifierEvent.ConversationActionsEvent.Builder

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder "View this page in Kotlin") \|Java


`
public
static
final

class
TextClassifierEvent.ConversationActionsEvent.Builder
`


`


`

`

extends `[Builder](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder)`<`[TextClassifierEvent.ConversationActionsEvent.Builder](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder)`>


`

`


`

|---|---|----------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object)           |||
| ↳ | [android.view.textclassifier.TextClassifierEvent.Builder](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder)\<[android.view.textclassifier.TextClassifierEvent.ConversationActionsEvent.Builder](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder)\> ||
|   | ↳ | android.view.textclassifier.TextClassifierEvent.ConversationActionsEvent.Builder |

<br />

*** ** * ** ***

Builder class for [ConversationActionsEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent).

## Summary

|                                                                                                                                                          ### Public constructors                                                                                                                                                           ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder#Builder(int))`(int eventType) ` Creates a builder for building [TextSelectionEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.TextSelectionEvent)s. |

|                                                                                                                                                                                                                                    ### Public methods                                                                                                                                                                                                                                     ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[TextClassifierEvent.ConversationActionsEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent) | ` `[build](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder#build())`() ` Builds and returns a [ConversationActionsEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent). |

| ### Inherited methods |
|-----------------------|---|
| From class ` `[android.view.textclassifier.TextClassifierEvent.Builder](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder)` ` |------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` T` | ` `[setActionIndices](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setActionIndices(int[]))`(int... actionIndices) ` Sets the indices of the actions involved in this event.                                                                                                                                    | | ` T` | ` `[setEntityTypes](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setEntityTypes(java.lang.String[]))`(`[String...](https://developer.android.com/reference/java/lang/String)` entityTypes) ` Sets the entity types.                                                                                             | | ` T` | ` `[setEventContext](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setEventContext(android.view.textclassifier.TextClassificationContext))`(`[TextClassificationContext](https://developer.android.com/reference/android/view/textclassifier/TextClassificationContext)` eventContext) ` Sets the event context. | | ` T` | ` `[setEventIndex](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setEventIndex(int))`(int eventIndex) ` Sets the index of this event in the series of events it belongs to.                                                                                                                                      | | ` T` | ` `[setExtras](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setExtras(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle)` extras) ` Sets a bundle containing non-structured extra information about the event.                                                           | | ` T` | ` `[setLocale](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setLocale(android.icu.util.ULocale))`(`[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` Sets the detected locale.                                                                                             | | ` T` | ` `[setModelName](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setModelName(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` modelVersion) ` Sets the model name string.                                                                                                | | ` T` | ` `[setResultId](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setResultId(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` resultId) ` Sets the id of the text classifier result related to this event.                                                                 | | ` T` | ` `[setScores](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.Builder#setScores(float[]))`(float... scores) ` Sets the scores of the suggestions.                                                                                                                                                                         | ||
| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                        | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                             | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                            | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`.                                                                                                                                                 | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                   | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                              | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                           | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                              | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.                                                                                             | ||

## Public constructors

### Builder

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Builder (int eventType)
```

Creates a builder for building [TextSelectionEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.TextSelectionEvent)s.

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ||
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `eventType` | `int`: The event type. e.g. [TextClassifierEvent.TYPE_SMART_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SMART_ACTION) Value is [TextClassifierEvent.TYPE_SELECTION_STARTED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_STARTED), [TextClassifierEvent.TYPE_SELECTION_MODIFIED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_MODIFIED), [TextClassifierEvent.TYPE_SMART_SELECTION_SINGLE](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SMART_SELECTION_SINGLE), [TextClassifierEvent.TYPE_SMART_SELECTION_MULTI](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SMART_SELECTION_MULTI), [TextClassifierEvent.TYPE_AUTO_SELECTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_AUTO_SELECTION), [TextClassifierEvent.TYPE_ACTIONS_SHOWN](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_ACTIONS_SHOWN), [TextClassifierEvent.TYPE_LINK_CLICKED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_LINK_CLICKED), [TextClassifierEvent.TYPE_OVERTYPE](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_OVERTYPE), [TextClassifierEvent.TYPE_COPY_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_COPY_ACTION), [TextClassifierEvent.TYPE_PASTE_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_PASTE_ACTION), [TextClassifierEvent.TYPE_CUT_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_CUT_ACTION), [TextClassifierEvent.TYPE_SHARE_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SHARE_ACTION), [TextClassifierEvent.TYPE_SMART_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SMART_ACTION), [TextClassifierEvent.TYPE_SELECTION_DRAG](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_DRAG), [TextClassifierEvent.TYPE_SELECTION_DESTROYED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_DESTROYED), [TextClassifierEvent.TYPE_OTHER_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_OTHER_ACTION), [TextClassifierEvent.TYPE_SELECT_ALL](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECT_ALL), [TextClassifierEvent.TYPE_SELECTION_RESET](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_RESET), [TextClassifierEvent.TYPE_MANUAL_REPLY](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_MANUAL_REPLY), [TextClassifierEvent.TYPE_ACTIONS_GENERATED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_ACTIONS_GENERATED), [TextClassifierEvent.TYPE_LINKS_GENERATED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_LINKS_GENERATED), or android.view.textclassifier.TextClassifierEvent.TYPE_READ_CLIPBOARD <br /> |

## Public methods

### build

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public TextClassifierEvent.ConversationActionsEvent build ()
```

Builds and returns a [ConversationActionsEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent).

<br />

|                                                                                                Returns                                                                                                ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------|
| [TextClassifierEvent.ConversationActionsEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent) | This value cannot be `null`. <br /> |