Class DialogSuggestionValue.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.DialogSuggestionValue.Builder
- Enclosing class:
- DialogSuggestionValue
public static class DialogSuggestionValue.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description DialogSuggestionValue.Builder
addEntities(RuntimeEntity entities)
Adds an entities to entities.DialogSuggestionValue.Builder
addIntents(RuntimeIntent intents)
Adds an intents to intents.DialogSuggestionValue
build()
Builds a DialogSuggestionValue.DialogSuggestionValue.Builder
entities(List<RuntimeEntity> entities)
Set the entities.DialogSuggestionValue.Builder
input(MessageInput input)
Set the input.DialogSuggestionValue.Builder
intents(List<RuntimeIntent> intents)
Set the intents.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a DialogSuggestionValue.- Returns:
- the new DialogSuggestionValue instance
-
addIntents
Adds an intents to intents.- Parameters:
intents
- the new intents- Returns:
- the DialogSuggestionValue builder
-
addEntities
Adds an entities to entities.- Parameters:
entities
- the new entities- Returns:
- the DialogSuggestionValue builder
-
input
Set the input.- Parameters:
input
- the input- Returns:
- the DialogSuggestionValue builder
-
intents
Set the intents. Existing intents will be replaced.- Parameters:
intents
- the intents- Returns:
- the DialogSuggestionValue builder
-
entities
Set the entities. Existing entities will be replaced.- Parameters:
entities
- the entities- Returns:
- the DialogSuggestionValue builder
-