Package com.google.genai.types
Class AggregationResult.Builder
java.lang.Object
com.google.genai.types.AggregationResult.Builder
- Enclosing class:
- AggregationResult
Builder for AggregationResult.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AggregationResult.BuilderaggregationMetric(AggregationMetric aggregationMetric) Setter for aggregationMetric.aggregationMetric(AggregationMetric.Known knownType) Setter for aggregationMetric given a known enum.aggregationMetric(String aggregationMetric) Setter for aggregationMetric given a string.abstract AggregationResult.BuilderbleuMetricValue(BleuMetricValue bleuMetricValue) Setter for bleuMetricValue.bleuMetricValue(BleuMetricValue.Builder bleuMetricValueBuilder) Setter for bleuMetricValue builder.abstract AggregationResultbuild()Clears the value of aggregationMetric field.Clears the value of bleuMetricValue field.Clears the value of customCodeExecutionResult field.Clears the value of exactMatchMetricValue field.Clears the value of pairwiseMetricResult field.Clears the value of pointwiseMetricResult field.Clears the value of rougeMetricValue field.abstract AggregationResult.BuildercustomCodeExecutionResult(CustomCodeExecutionResult customCodeExecutionResult) Setter for customCodeExecutionResult.customCodeExecutionResult(CustomCodeExecutionResult.Builder customCodeExecutionResultBuilder) Setter for customCodeExecutionResult builder.abstract AggregationResult.BuilderexactMatchMetricValue(ExactMatchMetricValue exactMatchMetricValue) Setter for exactMatchMetricValue.exactMatchMetricValue(ExactMatchMetricValue.Builder exactMatchMetricValueBuilder) Setter for exactMatchMetricValue builder.abstract AggregationResult.BuilderpairwiseMetricResult(PairwiseMetricResult pairwiseMetricResult) Setter for pairwiseMetricResult.pairwiseMetricResult(PairwiseMetricResult.Builder pairwiseMetricResultBuilder) Setter for pairwiseMetricResult builder.abstract AggregationResult.BuilderpointwiseMetricResult(PointwiseMetricResult pointwiseMetricResult) Setter for pointwiseMetricResult.pointwiseMetricResult(PointwiseMetricResult.Builder pointwiseMetricResultBuilder) Setter for pointwiseMetricResult builder.abstract AggregationResult.BuilderrougeMetricValue(RougeMetricValue rougeMetricValue) Setter for rougeMetricValue.rougeMetricValue(RougeMetricValue.Builder rougeMetricValueBuilder) Setter for rougeMetricValue builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationMetric
Setter for aggregationMetric.aggregationMetric: Aggregation metric.
-
clearAggregationMetric
Clears the value of aggregationMetric field. -
aggregationMetric
@CanIgnoreReturnValue public AggregationResult.Builder aggregationMetric(AggregationMetric.Known knownType) Setter for aggregationMetric given a known enum.aggregationMetric: Aggregation metric.
-
aggregationMetric
Setter for aggregationMetric given a string.aggregationMetric: Aggregation metric.
-
bleuMetricValue
Setter for bleuMetricValue.bleuMetricValue: Results for bleu metric.
-
bleuMetricValue
@CanIgnoreReturnValue public AggregationResult.Builder bleuMetricValue(BleuMetricValue.Builder bleuMetricValueBuilder) Setter for bleuMetricValue builder.bleuMetricValue: Results for bleu metric.
-
clearBleuMetricValue
Clears the value of bleuMetricValue field. -
customCodeExecutionResult
public abstract AggregationResult.Builder customCodeExecutionResult(CustomCodeExecutionResult customCodeExecutionResult) Setter for customCodeExecutionResult.customCodeExecutionResult: Result for code execution metric.
-
customCodeExecutionResult
@CanIgnoreReturnValue public AggregationResult.Builder customCodeExecutionResult(CustomCodeExecutionResult.Builder customCodeExecutionResultBuilder) Setter for customCodeExecutionResult builder.customCodeExecutionResult: Result for code execution metric.
-
clearCustomCodeExecutionResult
Clears the value of customCodeExecutionResult field. -
exactMatchMetricValue
public abstract AggregationResult.Builder exactMatchMetricValue(ExactMatchMetricValue exactMatchMetricValue) Setter for exactMatchMetricValue.exactMatchMetricValue: Results for exact match metric.
-
exactMatchMetricValue
@CanIgnoreReturnValue public AggregationResult.Builder exactMatchMetricValue(ExactMatchMetricValue.Builder exactMatchMetricValueBuilder) Setter for exactMatchMetricValue builder.exactMatchMetricValue: Results for exact match metric.
-
clearExactMatchMetricValue
Clears the value of exactMatchMetricValue field. -
pairwiseMetricResult
public abstract AggregationResult.Builder pairwiseMetricResult(PairwiseMetricResult pairwiseMetricResult) Setter for pairwiseMetricResult.pairwiseMetricResult: Result for pairwise metric.
-
pairwiseMetricResult
@CanIgnoreReturnValue public AggregationResult.Builder pairwiseMetricResult(PairwiseMetricResult.Builder pairwiseMetricResultBuilder) Setter for pairwiseMetricResult builder.pairwiseMetricResult: Result for pairwise metric.
-
clearPairwiseMetricResult
Clears the value of pairwiseMetricResult field. -
pointwiseMetricResult
public abstract AggregationResult.Builder pointwiseMetricResult(PointwiseMetricResult pointwiseMetricResult) Setter for pointwiseMetricResult.pointwiseMetricResult: Result for pointwise metric.
-
pointwiseMetricResult
@CanIgnoreReturnValue public AggregationResult.Builder pointwiseMetricResult(PointwiseMetricResult.Builder pointwiseMetricResultBuilder) Setter for pointwiseMetricResult builder.pointwiseMetricResult: Result for pointwise metric.
-
clearPointwiseMetricResult
Clears the value of pointwiseMetricResult field. -
rougeMetricValue
Setter for rougeMetricValue.rougeMetricValue: Results for rouge metric.
-
rougeMetricValue
@CanIgnoreReturnValue public AggregationResult.Builder rougeMetricValue(RougeMetricValue.Builder rougeMetricValueBuilder) Setter for rougeMetricValue builder.rougeMetricValue: Results for rouge metric.
-
clearRougeMetricValue
Clears the value of rougeMetricValue field. -
build
-