Class RuntimeEntity.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.RuntimeEntity.Builder
- Enclosing class:
- RuntimeEntity
public static class RuntimeEntity.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
entity
- the entitylocation
- the locationvalue
- the value
-
-
Method Details
-
build
Builds a RuntimeEntity.- Returns:
- the new RuntimeEntity instance
-
addLocation
Adds an location to location.- Parameters:
location
- the new location- Returns:
- the RuntimeEntity builder
-
addGroups
Adds an groups to groups.- Parameters:
groups
- the new groups- Returns:
- the RuntimeEntity builder
-
addAlternatives
Adds an alternatives to alternatives.- Parameters:
alternatives
- the new alternatives- Returns:
- the RuntimeEntity builder
-
entity
Set the entity.- Parameters:
entity
- the entity- Returns:
- the RuntimeEntity builder
-
location
Set the location. Existing location will be replaced.- Parameters:
location
- the location- Returns:
- the RuntimeEntity builder
-
value
Set the value.- Parameters:
value
- the value- Returns:
- the RuntimeEntity builder
-
confidence
Set the confidence.- Parameters:
confidence
- the confidence- Returns:
- the RuntimeEntity builder
-
metadata
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the RuntimeEntity builder
-
groups
Set the groups. Existing groups will be replaced.- Parameters:
groups
- the groups- Returns:
- the RuntimeEntity builder
-
interpretation
Set the interpretation.- Parameters:
interpretation
- the interpretation- Returns:
- the RuntimeEntity builder
-
alternatives
Set the alternatives. Existing alternatives will be replaced.- Parameters:
alternatives
- the alternatives- Returns:
- the RuntimeEntity builder
-
role
Set the role.- Parameters:
role
- the role- Returns:
- the RuntimeEntity builder
-