Package com.google.genai.types
Class PairwiseMetricResult.Builder
java.lang.Object
com.google.genai.types.PairwiseMetricResult.Builder
- Enclosing class:
- PairwiseMetricResult
Builder for PairwiseMetricResult.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PairwiseMetricResultbuild()Clears the value of customOutput field.Clears the value of explanation field.Clears the value of pairwiseChoice field.abstract PairwiseMetricResult.BuildercustomOutput(CustomOutput customOutput) Setter for customOutput.customOutput(CustomOutput.Builder customOutputBuilder) Setter for customOutput builder.abstract PairwiseMetricResult.Builderexplanation(String explanation) Setter for explanation.abstract PairwiseMetricResult.BuilderpairwiseChoice(PairwiseChoice pairwiseChoice) Setter for pairwiseChoice.pairwiseChoice(PairwiseChoice.Known knownType) Setter for pairwiseChoice given a known enum.pairwiseChoice(String pairwiseChoice) Setter for pairwiseChoice given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customOutput
Setter for customOutput.customOutput: Output only. Spec for custom output.
-
customOutput
@CanIgnoreReturnValue public PairwiseMetricResult.Builder customOutput(CustomOutput.Builder customOutputBuilder) Setter for customOutput builder.customOutput: Output only. Spec for custom output.
-
clearCustomOutput
Clears the value of customOutput field. -
explanation
Setter for explanation.explanation: Output only. Explanation for pairwise metric score.
-
clearExplanation
Clears the value of explanation field. -
pairwiseChoice
Setter for pairwiseChoice.pairwiseChoice: Output only. Pairwise metric choice.
-
clearPairwiseChoice
Clears the value of pairwiseChoice field. -
pairwiseChoice
@CanIgnoreReturnValue public PairwiseMetricResult.Builder pairwiseChoice(PairwiseChoice.Known knownType) Setter for pairwiseChoice given a known enum.pairwiseChoice: Output only. Pairwise metric choice.
-
pairwiseChoice
Setter for pairwiseChoice given a string.pairwiseChoice: Output only. Pairwise metric choice.
-
build
-