public static class MessageOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
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(MessageInput input)
Set the input.
|
MessageOptions.Builder |
intents(java.util.List<RuntimeIntent> intents)
Set the intents.
|
MessageOptions.Builder |
messageRequest(MessageRequest messageRequest)
Set the messageRequest.
|
MessageOptions.Builder |
nodesVisitedDetails(java.lang.Boolean nodesVisitedDetails)
Set the nodesVisitedDetails.
|
MessageOptions.Builder |
output(OutputData output)
Set the output.
|
MessageOptions.Builder |
workspaceId(java.lang.String workspaceId)
Set the workspaceId.
|
public Builder()
public Builder(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic MessageOptions build()
public MessageOptions.Builder addIntent(RuntimeIntent intent)
intent
- the new intentpublic MessageOptions.Builder addEntity(RuntimeEntity entity)
entity
- the new entitypublic MessageOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic MessageOptions.Builder input(MessageInput input)
input
- the inputpublic MessageOptions.Builder intents(java.util.List<RuntimeIntent> intents)
intents
- the intentspublic MessageOptions.Builder entities(java.util.List<RuntimeEntity> entities)
entities
- the entitiespublic MessageOptions.Builder alternateIntents(java.lang.Boolean alternateIntents)
alternateIntents
- the alternateIntentspublic MessageOptions.Builder context(Context context)
context
- the contextpublic MessageOptions.Builder output(OutputData output)
output
- the outputpublic MessageOptions.Builder nodesVisitedDetails(java.lang.Boolean nodesVisitedDetails)
nodesVisitedDetails
- the nodesVisitedDetailspublic MessageOptions.Builder messageRequest(MessageRequest messageRequest)
messageRequest
- the messageRequest