Class ScoreBody.Builder
- All Implemented Interfaces:
ScoreBody._FinalStage,ScoreBody.NameStage,ScoreBody.ValueStage
- Enclosing class:
ScoreBody
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Reference a score config on a score.Reference a score config on a score.datasetRunId(String datasetRunId) datasetRunId(Optional<String> datasetRunId) dataType(ScoreDataType dataType) When set, must match the score value's type.dataType(Optional<ScoreDataType> dataType) When set, must match the score value's type.environment(String environment) environment(Optional<String> environment) The name of the score.observationId(String observationId) observationId(Optional<String> observationId) The annotation queue referenced by the score.The annotation queue referenced by the score.value(CreateScoreValue value) The value of the score.
-
Method Details
-
from
- Specified by:
fromin interfaceScoreBody.NameStage
-
name
The name of the score. Always overrides "output" for correction scores.
The name of the score. Always overrides "output" for correction scores.
- Specified by:
namein interfaceScoreBody.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false)
The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false)
- Specified by:
valuein interfaceScoreBody.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
Reference a score config on a score. When set, the score name must equal the config name and scores must comply with the config's range and data type. For categorical scores, the value must map to a config category. Numeric scores might be constrained by the score config's max and min values
- Specified by:
configIdin interfaceScoreBody._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
Reference a score config on a score. When set, the score name must equal the config name and scores must comply with the config's range and data type. For categorical scores, the value must map to a config category. Numeric scores might be constrained by the score config's max and min values
- Specified by:
configIdin interfaceScoreBody._FinalStage
-
dataType
When set, must match the score value's type. If not set, will be inferred from the score value or config
- Specified by:
dataTypein interfaceScoreBody._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
When set, must match the score value's type. If not set, will be inferred from the score value or config
- Specified by:
dataTypein interfaceScoreBody._FinalStage
-
metadata
- Specified by:
metadatain interfaceScoreBody._FinalStage
-
metadata
- Specified by:
metadatain interfaceScoreBody._FinalStage
-
comment
- Specified by:
commentin interfaceScoreBody._FinalStage
-
comment
- Specified by:
commentin interfaceScoreBody._FinalStage
-
queueId
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
- Specified by:
queueIdin interfaceScoreBody._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
- Specified by:
queueIdin interfaceScoreBody._FinalStage
-
environment
- Specified by:
environmentin interfaceScoreBody._FinalStage
-
environment
- Specified by:
environmentin interfaceScoreBody._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceScoreBody._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceScoreBody._FinalStage
-
observationId
- Specified by:
observationIdin interfaceScoreBody._FinalStage
-
observationId
- Specified by:
observationIdin interfaceScoreBody._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceScoreBody._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceScoreBody._FinalStage
-
traceId
- Specified by:
traceIdin interfaceScoreBody._FinalStage
-
traceId
- Specified by:
traceIdin interfaceScoreBody._FinalStage
-
id
- Specified by:
idin interfaceScoreBody._FinalStage
-
id
- Specified by:
idin interfaceScoreBody._FinalStage
-
build
- Specified by:
buildin interfaceScoreBody._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceScoreBody._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceScoreBody._FinalStage
-