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.BuilderaddEntity(RuntimeEntity entity)Adds an entity to entities.MessageInput.BuilderaddIntent(RuntimeIntent intent)Adds an intent to intents.MessageInputbuild()Builds a MessageInput.MessageInput.Builderentities(List<RuntimeEntity> entities)Set the entities.MessageInput.Builderintents(List<RuntimeIntent> intents)Set the intents.MessageInput.BuildermessageType(String messageType)Set the messageType.MessageInput.Builderoptions(MessageInputOptions options)Set the options.MessageInput.BuildersuggestionId(String suggestionId)Set the suggestionId.MessageInput.Buildertext(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
-