Class EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder
-
- All Implemented Interfaces:
public final class EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder
A builder for EvalGraderPython.
-
-
Method Summary
-
-
Method Detail
-
name
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder name(String name)
The name of the grader.
-
name
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.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.
-
source
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder source(String source)
The source code of the python script.
-
source
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder source(JsonField<String> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source 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 EvalUpdateResponse.TestingCriterion.EvalGraderPython.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("python")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
imageTag
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder imageTag(String imageTag)
The image tag to use for the python script.
-
imageTag
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder imageTag(JsonField<String> imageTag)
Sets Builder.imageTag to an arbitrary JSON value.
You should usually call Builder.imageTag with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
passThreshold
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder passThreshold(Double passThreshold)
The threshold for the score.
-
passThreshold
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder passThreshold(JsonField<Double> passThreshold)
Sets Builder.passThreshold to an arbitrary JSON value.
You should usually call Builder.passThreshold with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EvalUpdateResponse.TestingCriterion.EvalGraderPython build()
Returns an immutable instance of EvalGraderPython.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name() .source()
-
-
-
-