Class MultiGrader.Builder
-
- All Implemented Interfaces:
public final class MultiGrader.Builder
A builder for MultiGrader.
-
-
Method Summary
Modifier and Type Method Description final MultiGrader.Builder
calculateOutput(String calculateOutput)
A formula to calculate the output based on grader results. final MultiGrader.Builder
calculateOutput(JsonField<String> calculateOutput)
Sets Builder.calculateOutput to an arbitrary JSON value. final MultiGrader.Builder
graders(MultiGrader.Graders graders)
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation. final MultiGrader.Builder
graders(JsonField<MultiGrader.Graders> graders)
Sets Builder.graders to an arbitrary JSON value. final MultiGrader.Builder
graders(StringCheckGrader stringCheckGrader)
Alias for calling graders with Graders.ofStringCheckGrader(stringCheckGrader)
.final MultiGrader.Builder
graders(TextSimilarityGrader textSimilarityGrader)
Alias for calling graders with Graders.ofTextSimilarityGrader(textSimilarityGrader)
.final MultiGrader.Builder
graders(PythonGrader pythonGrader)
Alias for calling graders with Graders.ofPythonGrader(pythonGrader)
.final MultiGrader.Builder
graders(ScoreModelGrader scoreModelGrader)
Alias for calling graders with Graders.ofScoreModelGrader(scoreModelGrader)
.final MultiGrader.Builder
graders(LabelModelGrader labelModelGrader)
Alias for calling graders with Graders.ofLabelModelGrader(labelModelGrader)
.final MultiGrader.Builder
name(String name)
The name of the grader. final MultiGrader.Builder
name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value. final MultiGrader.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final MultiGrader.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final MultiGrader.Builder
putAdditionalProperty(String key, JsonValue value)
final MultiGrader.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final MultiGrader.Builder
removeAdditionalProperty(String key)
final MultiGrader.Builder
removeAllAdditionalProperties(Set<String> keys)
final MultiGrader
build()
Returns an immutable instance of MultiGrader. -
-
Method Detail
-
calculateOutput
final MultiGrader.Builder calculateOutput(String calculateOutput)
A formula to calculate the output based on grader results.
-
calculateOutput
final MultiGrader.Builder calculateOutput(JsonField<String> calculateOutput)
Sets Builder.calculateOutput to an arbitrary JSON value.
You should usually call Builder.calculateOutput with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
graders
final MultiGrader.Builder graders(MultiGrader.Graders graders)
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
-
graders
final MultiGrader.Builder graders(JsonField<MultiGrader.Graders> graders)
Sets Builder.graders to an arbitrary JSON value.
You should usually call Builder.graders with a well-typed Graders value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
graders
final MultiGrader.Builder graders(StringCheckGrader stringCheckGrader)
Alias for calling graders with
Graders.ofStringCheckGrader(stringCheckGrader)
.
-
graders
final MultiGrader.Builder graders(TextSimilarityGrader textSimilarityGrader)
Alias for calling graders with
Graders.ofTextSimilarityGrader(textSimilarityGrader)
.
-
graders
final MultiGrader.Builder graders(PythonGrader pythonGrader)
Alias for calling graders with
Graders.ofPythonGrader(pythonGrader)
.
-
graders
final MultiGrader.Builder graders(ScoreModelGrader scoreModelGrader)
Alias for calling graders with
Graders.ofScoreModelGrader(scoreModelGrader)
.
-
graders
final MultiGrader.Builder graders(LabelModelGrader labelModelGrader)
Alias for calling graders with
Graders.ofLabelModelGrader(labelModelGrader)
.
-
name
final MultiGrader.Builder name(String name)
The name of the grader.
-
name
final MultiGrader.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final MultiGrader.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("multi")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MultiGrader.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MultiGrader.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MultiGrader.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MultiGrader.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MultiGrader.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MultiGrader build()
Returns an immutable instance of MultiGrader.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.calculateOutput() .graders() .name()
-
-
-
-