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 SummaryConstructors Constructor Description Builder()Instantiates a new builder.
- 
Method SummaryModifier 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- 
Builderpublic Builder()Instantiates a new builder.
 
- 
- 
Method Details- 
buildBuilds a MessageInput.- Returns:
- the new MessageInput instance
 
- 
addIntentAdds an intent to intents.- Parameters:
- intent- the new intent
- Returns:
- the MessageInput builder
 
- 
addEntityAdds an entity to entities.- Parameters:
- entity- the new entity
- Returns:
- the MessageInput builder
 
- 
messageTypeSet the messageType.- Parameters:
- messageType- the messageType
- Returns:
- the MessageInput builder
 
- 
textSet the text.- Parameters:
- text- the text
- Returns:
- the MessageInput builder
 
- 
intentsSet the intents. Existing intents will be replaced.- Parameters:
- intents- the intents
- Returns:
- the MessageInput builder
 
- 
entitiesSet the entities. Existing entities will be replaced.- Parameters:
- entities- the entities
- Returns:
- the MessageInput builder
 
- 
suggestionIdSet the suggestionId.- Parameters:
- suggestionId- the suggestionId
- Returns:
- the MessageInput builder
 
- 
optionsSet the options.- Parameters:
- options- the options
- Returns:
- the MessageInput builder
 
 
-