public static class MessageInput.Builder
extends java.lang.Object
Constructor and Description |
---|
MessageInput.Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MessageInput.Builder |
addEntity(RuntimeEntity entity)
Adds an entity to entities.
|
MessageInput.Builder |
addIntent(RuntimeIntent intent)
Adds an intent to intents.
|
MessageInput |
build()
Builds a MessageInput.
|
MessageInput.Builder |
entities(java.util.List<RuntimeEntity> entities)
Set the entities.
|
MessageInput.Builder |
intents(java.util.List<RuntimeIntent> intents)
Set the intents.
|
MessageInput.Builder |
messageType(java.lang.String messageType)
Set the messageType.
|
MessageInput.Builder |
options(MessageInputOptions options)
Set the options.
|
MessageInput.Builder |
suggestionId(java.lang.String suggestionId)
Set the suggestionId.
|
MessageInput.Builder |
text(java.lang.String text)
Set the text.
|
public MessageInput build()
public MessageInput.Builder addIntent(RuntimeIntent intent)
intent
- the new intentpublic MessageInput.Builder addEntity(RuntimeEntity entity)
entity
- the new entitypublic MessageInput.Builder messageType(java.lang.String messageType)
messageType
- the messageTypepublic MessageInput.Builder text(java.lang.String text)
text
- the textpublic MessageInput.Builder options(MessageInputOptions options)
options
- the optionspublic MessageInput.Builder intents(java.util.List<RuntimeIntent> intents)
intents
- the intentspublic MessageInput.Builder entities(java.util.List<RuntimeEntity> entities)
entities
- the entitiespublic MessageInput.Builder suggestionId(java.lang.String suggestionId)
suggestionId
- the suggestionId