Class CategoricalScore.Builder
java.lang.Object
com.ants.platform.client.resources.commons.types.CategoricalScore.Builder
- All Implemented Interfaces:
CategoricalScore._FinalStage,CategoricalScore.CreatedAtStage,CategoricalScore.IdStage,CategoricalScore.NameStage,CategoricalScore.SourceStage,CategoricalScore.StringValueStage,CategoricalScore.TimestampStage,CategoricalScore.UpdatedAtStage
- Enclosing class:
CategoricalScore
public static final class CategoricalScore.Builder
extends Object
implements CategoricalScore.StringValueStage, CategoricalScore.IdStage, CategoricalScore.NameStage, CategoricalScore.SourceStage, CategoricalScore.TimestampStage, CategoricalScore.CreatedAtStage, CategoricalScore.UpdatedAtStage, CategoricalScore._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionauthorUserId(String authorUserId) authorUserId(Optional<String> authorUserId) build()Reference a score config on a score.createdAt(OffsetDateTime createdAt) datasetRunId(String datasetRunId) datasetRunId(Optional<String> datasetRunId) environment(String environment) The environment from which this score originated.environment(Optional<String> environment) from(CategoricalScore other) observationId(String observationId) observationId(Optional<String> observationId) Reference an annotation queue on a score.source(ScoreSource source) stringValue(String stringValue) The string representation of the score value.timestamp(OffsetDateTime timestamp) updatedAt(OffsetDateTime updatedAt) Only defined if a config is linked.
-
Method Details
-
from
- Specified by:
fromin interfaceCategoricalScore.StringValueStage
-
stringValue
The string representation of the score value. If no config is linked, can be any string. Otherwise, must map to a config category
- Specified by:
stringValuein interfaceCategoricalScore.StringValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
- Specified by:
idin interfaceCategoricalScore.IdStage
-
name
- Specified by:
namein interfaceCategoricalScore.NameStage
-
source
- Specified by:
sourcein interfaceCategoricalScore.SourceStage
-
timestamp
- Specified by:
timestampin interfaceCategoricalScore.TimestampStage
-
createdAt
- Specified by:
createdAtin interfaceCategoricalScore.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceCategoricalScore.UpdatedAtStage
-
environment
The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'ants-platform'.
- Specified by:
environmentin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceCategoricalScore._FinalStage
-
queueId
Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
- Specified by:
queueIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
- Specified by:
queueIdin interfaceCategoricalScore._FinalStage
-
configId
Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range
- Specified by:
configIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
- Specified by:
configIdin interfaceCategoricalScore._FinalStage
-
metadata
- Specified by:
metadatain interfaceCategoricalScore._FinalStage
-
metadata
- Specified by:
metadatain interfaceCategoricalScore._FinalStage
-
comment
- Specified by:
commentin interfaceCategoricalScore._FinalStage
-
comment
- Specified by:
commentin interfaceCategoricalScore._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceCategoricalScore._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceCategoricalScore._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceCategoricalScore._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceCategoricalScore._FinalStage
-
observationId
- Specified by:
observationIdin interfaceCategoricalScore._FinalStage
-
observationId
- Specified by:
observationIdin interfaceCategoricalScore._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceCategoricalScore._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceCategoricalScore._FinalStage
-
traceId
- Specified by:
traceIdin interfaceCategoricalScore._FinalStage
-
traceId
- Specified by:
traceIdin interfaceCategoricalScore._FinalStage
-
value
Only defined if a config is linked. Represents the numeric category mapping of the stringValue
- Specified by:
valuein interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
- Specified by:
valuein interfaceCategoricalScore._FinalStage
-
build
- Specified by:
buildin interfaceCategoricalScore._FinalStage
-