Class OutputItemListResponse.Result.Builder
-
- All Implemented Interfaces:
public final class OutputItemListResponse.Result.BuilderA builder for Result.
-
-
Method Summary
-
-
Method Detail
-
name
final OutputItemListResponse.Result.Builder name(String name)
The name of the grader.
-
name
final OutputItemListResponse.Result.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.
-
passed
final OutputItemListResponse.Result.Builder passed(Boolean passed)
Whether the grader considered the output a pass.
-
passed
final OutputItemListResponse.Result.Builder passed(JsonField<Boolean> passed)
Sets Builder.passed to an arbitrary JSON value.
You should usually call Builder.passed with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
score
final OutputItemListResponse.Result.Builder score(Double score)
The numeric score produced by the grader.
-
score
final OutputItemListResponse.Result.Builder score(JsonField<Double> score)
Sets Builder.score to an arbitrary JSON value.
You should usually call Builder.score with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sample
final OutputItemListResponse.Result.Builder sample(OutputItemListResponse.Result.Sample sample)
Optional sample or intermediate data produced by the grader.
-
sample
final OutputItemListResponse.Result.Builder sample(Optional<OutputItemListResponse.Result.Sample> sample)
Alias for calling Builder.sample with
sample.orElse(null).
-
sample
final OutputItemListResponse.Result.Builder sample(JsonField<OutputItemListResponse.Result.Sample> sample)
Sets Builder.sample to an arbitrary JSON value.
You should usually call Builder.sample with a well-typed Sample value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final OutputItemListResponse.Result.Builder type(String type)
The grader type (for example, "string-check-grader").
-
type
final OutputItemListResponse.Result.Builder type(JsonField<String> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final OutputItemListResponse.Result.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final OutputItemListResponse.Result.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final OutputItemListResponse.Result.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final OutputItemListResponse.Result.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final OutputItemListResponse.Result.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final OutputItemListResponse.Result build()
Returns an immutable instance of Result.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name() .passed() .score()
-
-
-
-