public static class MessageInput.Builder extends Object
Constructor and Description |
---|
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(List<RuntimeEntity> entities)
Set the entities.
|
MessageInput.Builder |
intents(List<RuntimeIntent> intents)
Set the intents.
|
MessageInput.Builder |
messageType(String messageType)
Set the messageType.
|
MessageInput.Builder |
options(MessageInputOptions options)
Set the options.
|
MessageInput.Builder |
suggestionId(String suggestionId)
Set the suggestionId.
|
MessageInput.Builder |
text(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(String messageType)
messageType
- the messageTypepublic MessageInput.Builder text(String text)
text
- the textpublic MessageInput.Builder intents(List<RuntimeIntent> intents)
intents
- the intentspublic MessageInput.Builder entities(List<RuntimeEntity> entities)
entities
- the entitiespublic MessageInput.Builder suggestionId(String suggestionId)
suggestionId
- the suggestionIdpublic MessageInput.Builder options(MessageInputOptions options)
options
- the optionsCopyright © 2021 IBM Cloud. All rights reserved.