public static class MessageRequest.Builder
extends java.lang.Object
Constructor and Description |
---|
MessageRequest.Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MessageRequest.Builder |
actions(java.util.List<DialogNodeAction> actions)
Set the actions.
|
MessageRequest.Builder |
addActions(DialogNodeAction actions)
Adds an actions to actions.
|
MessageRequest.Builder |
addEntity(RuntimeEntity entity)
Adds an entity to entities.
|
MessageRequest.Builder |
addIntent(RuntimeIntent intent)
Adds an intent to intents.
|
MessageRequest.Builder |
alternateIntents(java.lang.Boolean alternateIntents)
Set the alternateIntents.
|
MessageRequest |
build()
Builds a MessageRequest.
|
MessageRequest.Builder |
context(Context context)
Set the context.
|
MessageRequest.Builder |
entities(java.util.List<RuntimeEntity> entities)
Set the entities.
|
MessageRequest.Builder |
input(MessageInput input)
Set the input.
|
MessageRequest.Builder |
intents(java.util.List<RuntimeIntent> intents)
Set the intents.
|
MessageRequest.Builder |
output(OutputData output)
Set the output.
|
public MessageRequest.Builder()
public MessageRequest build()
public MessageRequest.Builder addIntent(RuntimeIntent intent)
intent
- the new intentpublic MessageRequest.Builder addEntity(RuntimeEntity entity)
entity
- the new entitypublic MessageRequest.Builder addActions(DialogNodeAction actions)
actions
- the new actionspublic MessageRequest.Builder input(MessageInput input)
input
- the inputpublic MessageRequest.Builder intents(java.util.List<RuntimeIntent> intents)
intents
- the intentspublic MessageRequest.Builder entities(java.util.List<RuntimeEntity> entities)
entities
- the entitiespublic MessageRequest.Builder alternateIntents(java.lang.Boolean alternateIntents)
alternateIntents
- the alternateIntentspublic MessageRequest.Builder context(Context context)
context
- the contextpublic MessageRequest.Builder output(OutputData output)
output
- the outputpublic MessageRequest.Builder actions(java.util.List<DialogNodeAction> actions)
actions
- the actions