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 locationpublic RuntimeEntity.Builder addGroups(CaptureGroup groups)
groups
- the new groupspublic RuntimeEntity.Builder addAlternatives(RuntimeEntityAlternative alternatives)
alternatives
- the new alternativespublic 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 metadata(Map<String,Object> metadata)
metadata
- the metadatapublic 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 roleCopyright © 2021 IBM Cloud. All rights reserved.