Class MessageInput.Builder
java.lang.Object
com.ibm.watson.assistant.v2.model.MessageInput.Builder
- Enclosing class:
- MessageInput
public static class MessageInput.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a MessageInput.- Returns:
- the new MessageInput instance
-
addIntent
Adds an intent to intents.- Parameters:
intent
- the new intent- Returns:
- the MessageInput builder
-
addEntity
Adds an entity to entities.- Parameters:
entity
- the new entity- Returns:
- the MessageInput builder
-
messageType
Set the messageType.- Parameters:
messageType
- the messageType- Returns:
- the MessageInput builder
-
text
Set the text.- Parameters:
text
- the text- Returns:
- the MessageInput builder
-
intents
Set the intents. Existing intents will be replaced.- Parameters:
intents
- the intents- Returns:
- the MessageInput builder
-
entities
Set the entities. Existing entities will be replaced.- Parameters:
entities
- the entities- Returns:
- the MessageInput builder
-
suggestionId
Set the suggestionId.- Parameters:
suggestionId
- the suggestionId- Returns:
- the MessageInput builder
-
options
Set the options.- Parameters:
options
- the options- Returns:
- the MessageInput builder
-