public static class MessageOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
MessageOptions.Builder()
Instantiates a new builder.
|
MessageOptions.Builder(java.lang.String workspaceId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
MessageOptions.Builder |
addEntity(RuntimeEntity entity)
Adds an entity to entities.
|
MessageOptions.Builder |
addIntent(RuntimeIntent intent)
Adds an intent to intents.
|
MessageOptions.Builder |
alternateIntents(java.lang.Boolean alternateIntents)
Set the alternateIntents.
|
MessageOptions |
build()
Builds a MessageOptions.
|
MessageOptions.Builder |
context(Context context)
Set the context.
|
MessageOptions.Builder |
entities(java.util.List<RuntimeEntity> entities)
Set the entities.
|
MessageOptions.Builder |
input(InputData input)
Set the input.
|
MessageOptions.Builder |
intents(java.util.List<RuntimeIntent> intents)
Set the intents.
|
MessageOptions.Builder |
output(OutputData output)
Set the output.
|
MessageOptions.Builder |
workspaceId(java.lang.String workspaceId)
Set the workspaceId.
|
public MessageOptions.Builder()
public MessageOptions.Builder(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic MessageOptions build()
public MessageOptions.Builder addEntity(RuntimeEntity entity)
entity
- the new entitypublic MessageOptions.Builder addIntent(RuntimeIntent intent)
intent
- the new intentpublic MessageOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic MessageOptions.Builder input(InputData input)
input
- the inputpublic MessageOptions.Builder alternateIntents(java.lang.Boolean alternateIntents)
alternateIntents
- the alternateIntentspublic MessageOptions.Builder context(Context context)
context
- the contextpublic MessageOptions.Builder entities(java.util.List<RuntimeEntity> entities)
entities
- the entitiespublic MessageOptions.Builder intents(java.util.List<RuntimeIntent> intents)
intents
- the intentspublic MessageOptions.Builder output(OutputData output)
output
- the output