public static class RuntimeEntity.Builder
extends java.lang.Object
Constructor and Description |
---|
RuntimeEntity.Builder()
Instantiates a new builder.
|
RuntimeEntity.Builder(java.lang.String entity,
java.util.List<java.lang.Long> location,
java.lang.String value)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
RuntimeEntity.Builder |
addAlternatives(RuntimeEntityAlternative alternatives)
Adds an alternatives to alternatives.
|
RuntimeEntity.Builder |
addGroups(CaptureGroup groups)
Adds an groups to groups.
|
RuntimeEntity.Builder |
addLocation(java.lang.Long location)
Adds an location to location.
|
RuntimeEntity.Builder |
alternatives(java.util.List<RuntimeEntityAlternative> alternatives)
Set the alternatives.
|
RuntimeEntity |
build()
Builds a RuntimeEntity.
|
RuntimeEntity.Builder |
confidence(java.lang.Double confidence)
Set the confidence.
|
RuntimeEntity.Builder |
entity(java.lang.String entity)
Set the entity.
|
RuntimeEntity.Builder |
groups(java.util.List<CaptureGroup> groups)
Set the groups.
|
RuntimeEntity.Builder |
interpretation(RuntimeEntityInterpretation interpretation)
Set the interpretation.
|
RuntimeEntity.Builder |
location(java.util.List<java.lang.Long> location)
Set the location.
|
RuntimeEntity.Builder |
metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Set the metadata.
|
RuntimeEntity.Builder |
role(RuntimeEntityRole role)
Set the role.
|
RuntimeEntity.Builder |
value(java.lang.String value)
Set the value.
|
public RuntimeEntity.Builder()
public RuntimeEntity.Builder(java.lang.String entity, java.util.List<java.lang.Long> location, java.lang.String value)
entity
- the entitylocation
- the locationvalue
- the valuepublic RuntimeEntity build()
public RuntimeEntity.Builder addLocation(java.lang.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(java.lang.String entity)
entity
- the entitypublic RuntimeEntity.Builder location(java.util.List<java.lang.Long> location)
location
- the locationpublic RuntimeEntity.Builder value(java.lang.String value)
value
- the valuepublic RuntimeEntity.Builder confidence(java.lang.Double confidence)
confidence
- the confidencepublic RuntimeEntity.Builder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
metadata
- the metadatapublic RuntimeEntity.Builder groups(java.util.List<CaptureGroup> groups)
groups
- the groupspublic RuntimeEntity.Builder interpretation(RuntimeEntityInterpretation interpretation)
interpretation
- the interpretationpublic RuntimeEntity.Builder alternatives(java.util.List<RuntimeEntityAlternative> alternatives)
alternatives
- the alternativespublic RuntimeEntity.Builder role(RuntimeEntityRole role)
role
- the role