Class MultiGrader.Builder
-
- All Implemented Interfaces:
public final class MultiGrader.BuilderA builder for MultiGrader.
-
-
Method Summary
Modifier and Type Method Description final MultiGrader.BuildercalculateOutput(String calculateOutput)A formula to calculate the output based on grader results. final MultiGrader.BuildercalculateOutput(JsonField<String> calculateOutput)Sets Builder.calculateOutput to an arbitrary JSON value. final MultiGrader.Buildergraders(MultiGrader.Graders graders)A StringCheckGrader object that performs a string comparison between input and reference using a specified operation. final MultiGrader.Buildergraders(JsonField<MultiGrader.Graders> graders)Sets Builder.graders to an arbitrary JSON value. final MultiGrader.Buildergraders(StringCheckGrader stringCheckGrader)Alias for calling graders with Graders.ofStringCheckGrader(stringCheckGrader).final MultiGrader.Buildergraders(TextSimilarityGrader textSimilarityGrader)Alias for calling graders with Graders.ofTextSimilarityGrader(textSimilarityGrader).final MultiGrader.Buildergraders(PythonGrader pythonGrader)Alias for calling graders with Graders.ofPythonGrader(pythonGrader).final MultiGrader.Buildergraders(ScoreModelGrader scoreModelGrader)Alias for calling graders with Graders.ofScoreModelGrader(scoreModelGrader).final MultiGrader.Buildergraders(LabelModelGrader labelModelGrader)Alias for calling graders with Graders.ofLabelModelGrader(labelModelGrader).final MultiGrader.Buildername(String name)The name of the grader. final MultiGrader.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final MultiGrader.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final MultiGrader.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final MultiGrader.BuilderputAdditionalProperty(String key, JsonValue value)final MultiGrader.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final MultiGrader.BuilderremoveAdditionalProperty(String key)final MultiGrader.BuilderremoveAllAdditionalProperties(Set<String> keys)final MultiGraderbuild()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()
-
-
-
-