Class MessageInputStateless.Builder
java.lang.Object
com.ibm.watson.assistant.v2.model.MessageInputStateless.Builder
- Enclosing class:
- MessageInputStateless
public static class MessageInputStateless.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder. -
Method Summary
Modifier and Type Method Description MessageInputStateless.BuilderaddEntity(RuntimeEntity entity)Adds an entity to entities.MessageInputStateless.BuilderaddIntent(RuntimeIntent intent)Adds an intent to intents.MessageInputStatelessbuild()Builds a MessageInputStateless.MessageInputStateless.Builderentities(List<RuntimeEntity> entities)Set the entities.MessageInputStateless.Builderintents(List<RuntimeIntent> intents)Set the intents.MessageInputStateless.BuildermessageType(String messageType)Set the messageType.MessageInputStateless.Builderoptions(MessageInputOptionsStateless options)Set the options.MessageInputStateless.BuildersuggestionId(String suggestionId)Set the suggestionId.MessageInputStateless.Buildertext(String text)Set the text.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a MessageInputStateless.- Returns:
- the new MessageInputStateless instance
-
addIntent
Adds an intent to intents.- Parameters:
intent- the new intent- Returns:
- the MessageInputStateless builder
-
addEntity
Adds an entity to entities.- Parameters:
entity- the new entity- Returns:
- the MessageInputStateless builder
-
messageType
Set the messageType.- Parameters:
messageType- the messageType- Returns:
- the MessageInputStateless builder
-
text
Set the text.- Parameters:
text- the text- Returns:
- the MessageInputStateless builder
-
intents
Set the intents. Existing intents will be replaced.- Parameters:
intents- the intents- Returns:
- the MessageInputStateless builder
-
entities
Set the entities. Existing entities will be replaced.- Parameters:
entities- the entities- Returns:
- the MessageInputStateless builder
-
suggestionId
Set the suggestionId.- Parameters:
suggestionId- the suggestionId- Returns:
- the MessageInputStateless builder
-
options
Set the options.- Parameters:
options- the options- Returns:
- the MessageInputStateless builder
-