public static class RuntimeEntity.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String entity,
String value)
Instantiates a new builder with required properties.
|
public RuntimeEntity build()
public RuntimeEntity.Builder addLocation(Long location)
location
- the new element to be addedpublic RuntimeEntity.Builder addGroups(CaptureGroup groups)
groups
- the new element to be addedpublic RuntimeEntity.Builder addAlternatives(RuntimeEntityAlternative alternatives)
alternatives
- the new element to be addedpublic RuntimeEntity.Builder entity(String entity)
entity
- the entitypublic RuntimeEntity.Builder location(List<Long> location)
location
- the locationpublic RuntimeEntity.Builder value(String value)
value
- the valuepublic RuntimeEntity.Builder confidence(Double confidence)
confidence
- the confidencepublic RuntimeEntity.Builder groups(List<CaptureGroup> groups)
groups
- the groupspublic RuntimeEntity.Builder interpretation(RuntimeEntityInterpretation interpretation)
interpretation
- the interpretationpublic RuntimeEntity.Builder alternatives(List<RuntimeEntityAlternative> alternatives)
alternatives
- the alternativespublic RuntimeEntity.Builder role(RuntimeEntityRole role)
role
- the rolepublic RuntimeEntity.Builder skill(String skill)
skill
- the skillCopyright © 2024 IBM Cloud. All rights reserved.