Class GraderRunResponse.Metadata.Builder
-
- All Implemented Interfaces:
public final class GraderRunResponse.Metadata.BuilderA builder for Metadata.
-
-
Method Summary
-
-
Method Detail
-
errors
final GraderRunResponse.Metadata.Builder errors(GraderRunResponse.Metadata.Errors errors)
-
errors
final GraderRunResponse.Metadata.Builder errors(JsonField<GraderRunResponse.Metadata.Errors> errors)
Sets Builder.errors to an arbitrary JSON value.
You should usually call Builder.errors with a well-typed Errors value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
executionTime
final GraderRunResponse.Metadata.Builder executionTime(Double executionTime)
-
executionTime
final GraderRunResponse.Metadata.Builder executionTime(JsonField<Double> executionTime)
Sets Builder.executionTime to an arbitrary JSON value.
You should usually call Builder.executionTime with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final GraderRunResponse.Metadata.Builder name(String name)
-
name
final GraderRunResponse.Metadata.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.
-
sampledModelName
final GraderRunResponse.Metadata.Builder sampledModelName(String sampledModelName)
-
sampledModelName
final GraderRunResponse.Metadata.Builder sampledModelName(Optional<String> sampledModelName)
Alias for calling Builder.sampledModelName with
sampledModelName.orElse(null).
-
sampledModelName
final GraderRunResponse.Metadata.Builder sampledModelName(JsonField<String> sampledModelName)
Sets Builder.sampledModelName to an arbitrary JSON value.
You should usually call Builder.sampledModelName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scores
final GraderRunResponse.Metadata.Builder scores(GraderRunResponse.Metadata.Scores scores)
-
scores
final GraderRunResponse.Metadata.Builder scores(JsonField<GraderRunResponse.Metadata.Scores> scores)
Sets Builder.scores to an arbitrary JSON value.
You should usually call Builder.scores with a well-typed Scores value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tokenUsage
final GraderRunResponse.Metadata.Builder tokenUsage(Long tokenUsage)
-
tokenUsage
final GraderRunResponse.Metadata.Builder tokenUsage(Long tokenUsage)
Alias for Builder.tokenUsage.
This unboxed primitive overload exists for backwards compatibility.
-
tokenUsage
final GraderRunResponse.Metadata.Builder tokenUsage(Optional<Long> tokenUsage)
Alias for calling Builder.tokenUsage with
tokenUsage.orElse(null).
-
tokenUsage
final GraderRunResponse.Metadata.Builder tokenUsage(JsonField<Long> tokenUsage)
Sets Builder.tokenUsage to an arbitrary JSON value.
You should usually call Builder.tokenUsage with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final GraderRunResponse.Metadata.Builder type(String type)
-
type
final GraderRunResponse.Metadata.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 GraderRunResponse.Metadata.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final GraderRunResponse.Metadata.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final GraderRunResponse.Metadata.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final GraderRunResponse.Metadata.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final GraderRunResponse.Metadata.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final GraderRunResponse.Metadata build()
Returns an immutable instance of Metadata.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.errors() .executionTime() .name() .sampledModelName() .scores() .tokenUsage() .type()
-
-
-
-