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