Class PythonGrader
-
- All Implemented Interfaces:
public final class PythonGrader
A PythonGrader object that runs a python script on the input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
PythonGrader.Builder
A builder for PythonGrader.
-
Method Summary
Modifier and Type Method Description final String
name()
The name of the grader. final String
source()
The source code of the python script. final JsonValue
_type()
The object type, which is always python
.final Optional<String>
imageTag()
The image tag to use for the python script. final JsonField<String>
_name()
Returns the raw JSON value of name. final JsonField<String>
_source()
Returns the raw JSON value of source. final JsonField<String>
_imageTag()
Returns the raw JSON value of imageTag. final Map<String, JsonValue>
_additionalProperties()
final PythonGrader.Builder
toBuilder()
final PythonGrader
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static PythonGrader.Builder
builder()
Returns a mutable builder for constructing an instance of PythonGrader. -
-
Method Detail
-
_type
final JsonValue _type()
The object type, which is always
python
.Expected to always return the following:
JsonValue.from("python")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<String> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_imageTag
final JsonField<String> _imageTag()
Returns the raw JSON value of imageTag.
Unlike imageTag, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PythonGrader.Builder toBuilder()
-
validate
final PythonGrader validate()
-
builder
final static PythonGrader.Builder builder()
Returns a mutable builder for constructing an instance of PythonGrader.
The following fields are required:
.name() .source()
-
-
-
-