public static class AnnotationModel.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
AnnotationModel.Builder |
addQualifiers(java.lang.String qualifiers)
Adds an qualifiers to qualifiers.
|
AnnotationModel.Builder |
addStickyIds(java.lang.Long stickyIds)
Adds an stickyIds to stickyIds.
|
AnnotationModel.Builder |
attributeId(java.lang.String attributeId)
Set the attributeId.
|
AnnotationModel.Builder |
begin(long begin)
Set the begin.
|
AnnotationModel |
build()
Builds a AnnotationModel.
|
AnnotationModel.Builder |
cui(java.lang.String cui)
Set the cui.
|
AnnotationModel.Builder |
end(long end)
Set the end.
|
AnnotationModel.Builder |
features(java.util.Map<java.lang.String,java.lang.String> features)
Set the features.
|
AnnotationModel.Builder |
hits(long hits)
Set the hits.
|
AnnotationModel.Builder |
hypothetical(java.lang.Boolean hypothetical)
Set the hypothetical.
|
AnnotationModel.Builder |
maxValue(java.lang.String maxValue)
Set the maxValue.
|
AnnotationModel.Builder |
minValue(java.lang.String minValue)
Set the minValue.
|
AnnotationModel.Builder |
negated(java.lang.Boolean negated)
Set the negated.
|
AnnotationModel.Builder |
nluEntityIndex(java.lang.String nluEntityIndex)
Set the nluEntityIndex.
|
AnnotationModel.Builder |
nluMentionIndex(java.lang.String nluMentionIndex)
Set the nluMentionIndex.
|
AnnotationModel.Builder |
nluRelation(java.lang.String nluRelation)
Set the nluRelation.
|
AnnotationModel.Builder |
nluRelationId(java.lang.String nluRelationId)
Set the nluRelationId.
|
AnnotationModel.Builder |
nluSide(java.lang.String nluSide)
Set the nluSide.
|
AnnotationModel.Builder |
nluSourceType(java.lang.String nluSourceType)
Set the nluSourceType.
|
AnnotationModel.Builder |
nluTargetType(java.lang.String nluTargetType)
Set the nluTargetType.
|
AnnotationModel.Builder |
ontology(java.lang.String ontology)
Set the ontology.
|
AnnotationModel.Builder |
operator(java.lang.String operator)
Set the operator.
|
AnnotationModel.Builder |
preferredName(java.lang.String preferredName)
Set the preferredName.
|
AnnotationModel.Builder |
qualifiers(java.util.List<java.lang.String> qualifiers)
Set the qualifiers.
|
AnnotationModel.Builder |
score(java.lang.Float score)
Set the score.
|
AnnotationModel.Builder |
section(java.lang.String section)
Set the section.
|
AnnotationModel.Builder |
stickyIds(java.util.List<java.lang.Long> stickyIds)
Set the stickyIds.
|
AnnotationModel.Builder |
timestamp(long timestamp)
Set the timestamp.
|
AnnotationModel.Builder |
type(java.lang.String type)
Set the type.
|
AnnotationModel.Builder |
uniqueId(long uniqueId)
Set the uniqueId.
|
AnnotationModel.Builder |
unit(java.lang.String unit)
Set the unit.
|
public AnnotationModel build()
public AnnotationModel.Builder addStickyIds(java.lang.Long stickyIds)
stickyIds
- the new stickyIdspublic AnnotationModel.Builder addQualifiers(java.lang.String qualifiers)
qualifiers
- the new qualifierspublic AnnotationModel.Builder uniqueId(long uniqueId)
uniqueId
- the uniqueIdpublic AnnotationModel.Builder stickyIds(java.util.List<java.lang.Long> stickyIds)
stickyIds
- the stickyIdspublic AnnotationModel.Builder ontology(java.lang.String ontology)
ontology
- the ontologypublic AnnotationModel.Builder section(java.lang.String section)
section
- the sectionpublic AnnotationModel.Builder preferredName(java.lang.String preferredName)
preferredName
- the preferredNamepublic AnnotationModel.Builder cui(java.lang.String cui)
cui
- the cuipublic AnnotationModel.Builder attributeId(java.lang.String attributeId)
attributeId
- the attributeIdpublic AnnotationModel.Builder qualifiers(java.util.List<java.lang.String> qualifiers)
qualifiers
- the qualifierspublic AnnotationModel.Builder type(java.lang.String type)
type
- the typepublic AnnotationModel.Builder negated(java.lang.Boolean negated)
negated
- the negatedpublic AnnotationModel.Builder hypothetical(java.lang.Boolean hypothetical)
hypothetical
- the hypotheticalpublic AnnotationModel.Builder unit(java.lang.String unit)
unit
- the unitpublic AnnotationModel.Builder minValue(java.lang.String minValue)
minValue
- the minValuepublic AnnotationModel.Builder maxValue(java.lang.String maxValue)
maxValue
- the maxValuepublic AnnotationModel.Builder operator(java.lang.String operator)
operator
- the operatorpublic AnnotationModel.Builder nluSourceType(java.lang.String nluSourceType)
nluSourceType
- the nluSourceTypepublic AnnotationModel.Builder nluRelation(java.lang.String nluRelation)
nluRelation
- the nluRelationpublic AnnotationModel.Builder nluTargetType(java.lang.String nluTargetType)
nluTargetType
- the nluTargetTypepublic AnnotationModel.Builder nluEntityIndex(java.lang.String nluEntityIndex)
nluEntityIndex
- the nluEntityIndexpublic AnnotationModel.Builder nluMentionIndex(java.lang.String nluMentionIndex)
nluMentionIndex
- the nluMentionIndexpublic AnnotationModel.Builder nluRelationId(java.lang.String nluRelationId)
nluRelationId
- the nluRelationIdpublic AnnotationModel.Builder nluSide(java.lang.String nluSide)
nluSide
- the nluSidepublic AnnotationModel.Builder begin(long begin)
begin
- the beginpublic AnnotationModel.Builder end(long end)
end
- the endpublic AnnotationModel.Builder score(java.lang.Float score)
score
- the scorepublic AnnotationModel.Builder timestamp(long timestamp)
timestamp
- the timestamppublic AnnotationModel.Builder features(java.util.Map<java.lang.String,java.lang.String> features)
features
- the featurespublic AnnotationModel.Builder hits(long hits)
hits
- the hitsCopyright © 2022 IBM Cloud. All rights reserved.