public static class MessageInputStateless.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MessageInputStateless.Builder |
addEntity(RuntimeEntity entity)
Adds an entity to entities.
|
MessageInputStateless.Builder |
addIntent(RuntimeIntent intent)
Adds an intent to intents.
|
MessageInputStateless |
build()
Builds a MessageInputStateless.
|
MessageInputStateless.Builder |
entities(List<RuntimeEntity> entities)
Set the entities.
|
MessageInputStateless.Builder |
intents(List<RuntimeIntent> intents)
Set the intents.
|
MessageInputStateless.Builder |
messageType(String messageType)
Set the messageType.
|
MessageInputStateless.Builder |
options(MessageInputOptionsStateless options)
Set the options.
|
MessageInputStateless.Builder |
suggestionId(String suggestionId)
Set the suggestionId.
|
MessageInputStateless.Builder |
text(String text)
Set the text.
|
public MessageInputStateless build()
public MessageInputStateless.Builder addIntent(RuntimeIntent intent)
intent
- the new intentpublic MessageInputStateless.Builder addEntity(RuntimeEntity entity)
entity
- the new entitypublic MessageInputStateless.Builder messageType(String messageType)
messageType
- the messageTypepublic MessageInputStateless.Builder text(String text)
text
- the textpublic MessageInputStateless.Builder intents(List<RuntimeIntent> intents)
intents
- the intentspublic MessageInputStateless.Builder entities(List<RuntimeEntity> entities)
entities
- the entitiespublic MessageInputStateless.Builder suggestionId(String suggestionId)
suggestionId
- the suggestionIdpublic MessageInputStateless.Builder options(MessageInputOptionsStateless options)
options
- the optionsCopyright © 2021 IBM Cloud. All rights reserved.