📄 Source: GoogleCloudAiplatformV1EvaluateInstancesResponse.php
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Aiplatform;
class GoogleCloudAiplatformV1EvaluateInstancesResponse extends \Google\Collection
{
protected $collection_key = 'metricResults';
protected $bleuResultsType = GoogleCloudAiplatformV1BleuResults::class;
protected $bleuResultsDataType = '';
protected $coherenceResultType = GoogleCloudAiplatformV1CoherenceResult::class;
protected $coherenceResultDataType = '';
protected $cometResultType = GoogleCloudAiplatformV1CometResult::class;
protected $cometResultDataType = '';
protected $exactMatchResultsType = GoogleCloudAiplatformV1ExactMatchResults::class;
protected $exactMatchResultsDataType = '';
protected $fluencyResultType = GoogleCloudAiplatformV1FluencyResult::class;
protected $fluencyResultDataType = '';
protected $fulfillmentResultType = GoogleCloudAiplatformV1FulfillmentResult::class;
protected $fulfillmentResultDataType = '';
protected $groundednessResultType = GoogleCloudAiplatformV1GroundednessResult::class;
protected $groundednessResultDataType = '';
protected $metricResultsType = GoogleCloudAiplatformV1MetricResult::class;
protected $metricResultsDataType = 'array';
protected $metricxResultType = GoogleCloudAiplatformV1MetricxResult::class;
protected $metricxResultDataType = '';
protected $pairwiseMetricResultType = GoogleCloudAiplatformV1PairwiseMetricResult::class;
protected $pairwiseMetricResultDataType = '';
protected $pairwiseQuestionAnsweringQualityResultType = GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult::class;
protected $pairwiseQuestionAnsweringQualityResultDataType = '';
protected $pairwiseSummarizationQualityResultType = GoogleCloudAiplatformV1PairwiseSummarizationQualityResult::class;
protected $pairwiseSummarizationQualityResultDataType = '';
protected $pointwiseMetricResultType = GoogleCloudAiplatformV1PointwiseMetricResult::class;
protected $pointwiseMetricResultDataType = '';
protected $questionAnsweringCorrectnessResultType = GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult::class;
protected $questionAnsweringCorrectnessResultDataType = '';
protected $questionAnsweringHelpfulnessResultType = GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult::class;
protected $questionAnsweringHelpfulnessResultDataType = '';
protected $questionAnsweringQualityResultType = GoogleCloudAiplatformV1QuestionAnsweringQualityResult::class;
protected $questionAnsweringQualityResultDataType = '';
protected $questionAnsweringRelevanceResultType = GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult::class;
protected $questionAnsweringRelevanceResultDataType = '';
protected $rougeResultsType = GoogleCloudAiplatformV1RougeResults::class;
protected $rougeResultsDataType = '';
protected $rubricBasedInstructionFollowingResultType = GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult::class;
protected $rubricBasedInstructionFollowingResultDataType = '';
protected $safetyResultType = GoogleCloudAiplatformV1SafetyResult::class;
protected $safetyResultDataType = '';
protected $summarizationHelpfulnessResultType = GoogleCloudAiplatformV1SummarizationHelpfulnessResult::class;
protected $summarizationHelpfulnessResultDataType = '';
protected $summarizationQualityResultType = GoogleCloudAiplatformV1SummarizationQualityResult::class;
protected $summarizationQualityResultDataType = '';
protected $summarizationVerbosityResultType = GoogleCloudAiplatformV1SummarizationVerbosityResult::class;
protected $summarizationVerbosityResultDataType = '';
protected $toolCallValidResultsType = GoogleCloudAiplatformV1ToolCallValidResults::class;
protected $toolCallValidResultsDataType = '';
protected $toolNameMatchResultsType = GoogleCloudAiplatformV1ToolNameMatchResults::class;
protected $toolNameMatchResultsDataType = '';
protected $toolParameterKeyMatchResultsType = GoogleCloudAiplatformV1ToolParameterKeyMatchResults::class;
protected $toolParameterKeyMatchResultsDataType = '';
protected $toolParameterKvMatchResultsType = GoogleCloudAiplatformV1ToolParameterKVMatchResults::class;
protected $toolParameterKvMatchResultsDataType = '';
protected $trajectoryAnyOrderMatchResultsType = GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults::class;
protected $trajectoryAnyOrderMatchResultsDataType = '';
protected $trajectoryExactMatchResultsType = GoogleCloudAiplatformV1TrajectoryExactMatchResults::class;
protected $trajectoryExactMatchResultsDataType = '';
protected $trajectoryInOrderMatchResultsType = GoogleCloudAiplatformV1TrajectoryInOrderMatchResults::class;
protected $trajectoryInOrderMatchResultsDataType = '';
protected $trajectoryPrecisionResultsType = GoogleCloudAiplatformV1TrajectoryPrecisionResults::class;
protected $trajectoryPrecisionResultsDataType = '';
protected $trajectoryRecallResultsType = GoogleCloudAiplatformV1TrajectoryRecallResults::class;
protected $trajectoryRecallResultsDataType = '';
protected $trajectorySingleToolUseResultsType = GoogleCloudAiplatformV1TrajectorySingleToolUseResults::class;
protected $trajectorySingleToolUseResultsDataType = '';
/**
* Results for bleu metric.
*
* @param GoogleCloudAiplatformV1BleuResults $bleuResults
*/
public function setBleuResults(GoogleCloudAiplatformV1BleuResults $bleuResults)
{
$this->bleuResults = $bleuResults;
}
/**
* @return GoogleCloudAiplatformV1BleuResults
*/
public function getBleuResults()
{
return $this->bleuResults;
}
/**
* Result for coherence metric.
*
* @param GoogleCloudAiplatformV1CoherenceResult $coherenceResult
*/
public function setCoherenceResult(GoogleCloudAiplatformV1CoherenceResult $coherenceResult)
{
$this->coherenceResult = $coherenceResult;
}
/**
* @return GoogleCloudAiplatformV1CoherenceResult
*/
public function getCoherenceResult()
{
return $this->coherenceResult;
}
/**
* Translation metrics. Result for Comet metric.
*
* @param GoogleCloudAiplatformV1CometResult $cometResult
*/
public function setCometResult(GoogleCloudAiplatformV1CometResult $cometResult)
{
$this->cometResult = $cometResult;
}
/**
* @return GoogleCloudAiplatformV1CometResult
*/
public function getCometResult()
{
return $this->cometResult;
}
/**
* Auto metric evaluation results. Results for exact match metric.
*
* @param GoogleCloudAiplatformV1ExactMatchResults $exactMatchResults
*/
public function setExactMatchResults(GoogleCloudAiplatformV1ExactMatchResults $exactMatchResults)
{
$this->exactMatchResults = $exactMatchResults;
}
/**
* @return GoogleCloudAiplatformV1ExactMatchResults
*/
public function getExactMatchResults()
{
return $this->exactMatchResults;
}
/**
* LLM-based metric evaluation result. General text generation metrics,
* applicable to other categories. Result for fluency metric.
*
* @param GoogleCloudAiplatformV1FluencyResult $fluencyResult
*/
public function setFluencyResult(GoogleCloudAiplatformV1FluencyResult $fluencyResult)
{
$this->fluencyResult = $fluencyResult;
}
/**
* @return GoogleCloudAiplatformV1FluencyResult
*/
public function getFluencyResult()
{
return $this->fluencyResult;
}
/**
* Result for fulfillment metric.
*
* @param GoogleCloudAiplatformV1FulfillmentResult $fulfillmentResult
*/
public function setFulfillmentResult(GoogleCloudAiplatformV1FulfillmentResult $fulfillmentResult)
{
$this->fulfillmentResult = $fulfillmentResult;
}
/**
* @return GoogleCloudAiplatformV1FulfillmentResult
*/
public function getFulfillmentResult()
{
return $this->fulfillmentResult;
}
/**
* Result for groundedness metric.
*
* @param GoogleCloudAiplatformV1GroundednessResult $groundednessResult
*/
public function setGroundednessResult(GoogleCloudAiplatformV1GroundednessResult $groundednessResult)
{
$this->groundednessResult = $groundednessResult;
}
/**
* @return GoogleCloudAiplatformV1GroundednessResult
*/
public function getGroundednessResult()
{
return $this->groundednessResult;
}
/**
* Metric results for each instance. The order of the metric results is
* guaranteed to be the same as the order of the instances in the request.
*
* @param GoogleCloudAiplatformV1MetricResult[] $metricResults
*/
public function setMetricResults($metricResults)
{
$this->metricResults = $metricResults;
}
/**
* @return GoogleCloudAiplatformV1MetricResult[]
*/
public function getMetricResults()
{
return $this->metricResults;
}
/**
* Result for Metricx metric.
*
* @param GoogleCloudAiplatformV1MetricxResult $metricxResult
*/
public function setMetricxResult(GoogleCloudAiplatformV1MetricxResult $metricxResult)
{
$this->metricxResult = $metricxResult;
}
/**
* @return GoogleCloudAiplatformV1MetricxResult
*/
public function getMetricxResult()
{
return $this->metricxResult;
}
/**
* Result for pairwise metric.
*
* @param GoogleCloudAiplatformV1PairwiseMetricResult $pairwiseMetricResult
*/
public function setPairwiseMetricResult(GoogleCloudAiplatformV1PairwiseMetricResult $pairwiseMetricResult)
{
$this->pairwiseMetricResult = $pairwiseMetricResult;
}
/**
* @return GoogleCloudAiplatformV1PairwiseMetricResult
*/
public function getPairwiseMetricResult()
{
return $this->pairwiseMetricResult;
}
/**
* Result for pairwise question answering quality metric.
*
* @param GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult $pairwiseQuestionAnsweringQualityResult
*/
public function setPairwiseQuestionAnsweringQualityResult(GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult $pairwiseQuestionAnsweringQualityResult)
{
$this->pairwiseQuestionAnsweringQualityResult = $pairwiseQuestionAnsweringQualityResult;
}
/**
* @return GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult
*/
public function getPairwiseQuestionAnsweringQualityResult()
{
return $this->pairwiseQuestionAnsweringQualityResult;
}
/**
* Result for pairwise summarization quality metric.
*
* @param GoogleCloudAiplatformV1PairwiseSummarizationQualityResult $pairwiseSummarizationQualityResult
*/
public function setPairwiseSummarizationQualityResult(GoogleCloudAiplatformV1PairwiseSummarizationQualityResult $pairwiseSummarizationQualityResult)
{
$this->pairwiseSummarizationQualityResult = $pairwiseSummarizationQualityResult;
}
/**
* @return GoogleCloudAiplatformV1PairwiseSummarizationQualityResult
*/
public function getPairwiseSummarizationQualityResult()
{
return $this->pairwiseSummarizationQualityResult;
}
/**
* Generic metrics. Result for pointwise metric.
*
* @param GoogleCloudAiplatformV1PointwiseMetricResult $pointwiseMetricResult
*/
public function setPointwiseMetricResult(GoogleCloudAiplatformV1PointwiseMetricResult $pointwiseMetricResult)
{
$this->pointwiseMetricResult = $pointwiseMetricResult;
}
/**
* @return GoogleCloudAiplatformV1PointwiseMetricResult
*/
public function getPointwiseMetricResult()
{
return $this->pointwiseMetricResult;
}
/**
* Result for question answering correctness metric.
*
* @param GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult $questionAnsweringCorrectnessResult
*/
public function setQuestionAnsweringCorrectnessResult(GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult $questionAnsweringCorrectnessResult)
{
$this->questionAnsweringCorrectnessResult = $questionAnsweringCorrectnessResult;
}
/**
* @return GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult
*/
public function getQuestionAnsweringCorrectnessResult()
{
return $this->questionAnsweringCorrectnessResult;
}
/**
* Result for question answering helpfulness metric.
*
* @param GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult $questionAnsweringHelpfulnessResult
*/
public function setQuestionAnsweringHelpfulnessResult(GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult $questionAnsweringHelpfulnessResult)
{
$this->questionAnsweringHelpfulnessResult = $questionAnsweringHelpfulnessResult;
}
/**
* @return GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult
*/
public function getQuestionAnsweringHelpfulnessResult()
{
return $this->questionAnsweringHelpfulnessResult;
}
/**
* Question answering only metrics. Result for question answering quality
* metric.
*
* @param GoogleCloudAiplatformV1QuestionAnsweringQualityResult $questionAnsweringQualityResult
*/
public function setQuestionAnsweringQualityResult(GoogleCloudAiplatformV1QuestionAnsweringQualityResult $questionAnsweringQualityResult)
{
$this->questionAnsweringQualityResult = $questionAnsweringQualityResult;
}
/**
* @return GoogleCloudAiplatformV1QuestionAnsweringQualityResult
*/
public function getQuestionAnsweringQualityResult()
{
return $this->questionAnsweringQualityResult;
}
/**
* Result for question answering relevance metric.
*
* @param GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult $questionAnsweringRelevanceResult
*/
public function setQuestionAnsweringRelevanceResult(GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult $questionAnsweringRelevanceResult)
{
$this->questionAnsweringRelevanceResult = $questionAnsweringRelevanceResult;
}
/**
* @return GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult
*/
public function getQuestionAnsweringRelevanceResult()
{
return $this->questionAnsweringRelevanceResult;
}
/**
* Results for rouge metric.
*
* @param GoogleCloudAiplatformV1RougeResults $rougeResults
*/
public function setRougeResults(GoogleCloudAiplatformV1RougeResults $rougeResults)
{
$this->rougeResults = $rougeResults;
}
/**
* @return GoogleCloudAiplatformV1RougeResults
*/
public function getRougeResults()
{
return $this->rougeResults;
}
/**
* Result for rubric based instruction following metric.
*
* @param GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult $rubricBasedInstructionFollowingResult
*/
public function setRubricBasedInstructionFollowingResult(GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult $rubricBasedInstructionFollowingResult)
{
$this->rubricBasedInstructionFollowingResult = $rubricBasedInstructionFollowingResult;
}
/**
* @return GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult
*/
public function getRubricBasedInstructionFollowingResult()
{
return $this->rubricBasedInstructionFollowingResult;
}
/**
* Result for safety metric.
*
* @param GoogleCloudAiplatformV1SafetyResult $safetyResult
*/
public function setSafetyResult(GoogleCloudAiplatformV1SafetyResult $safetyResult)
{
$this->safetyResult = $safetyResult;
}
/**
* @return GoogleCloudAiplatformV1SafetyResult
*/
public function getSafetyResult()
{
return $this->safetyResult;
}
/**
* Result for summarization helpfulness metric.
*
* @param GoogleCloudAiplatformV1SummarizationHelpfulnessResult $summarizationHelpfulnessResult
*/
public function setSummarizationHelpfulnessResult(GoogleCloudAiplatformV1SummarizationHelpfulnessResult $summarizationHelpfulnessResult)
{
$this->summarizationHelpfulnessResult = $summarizationHelpfulnessResult;
}
/**
* @return GoogleCloudAiplatformV1SummarizationHelpfulnessResult
*/
public function getSummarizationHelpfulnessResult()
{
return $this->summarizationHelpfulnessResult;
}
/**
* Summarization only metrics. Result for summarization quality metric.
*
* @param GoogleCloudAiplatformV1SummarizationQualityResult $summarizationQualityResult
*/
public function setSummarizationQualityResult(GoogleCloudAiplatformV1SummarizationQualityResult $summarizationQualityResult)
{
$this->summarizationQualityResult = $summarizationQualityResult;
}
/**
* @return GoogleCloudAiplatformV1SummarizationQualityResult
*/
public function getSummarizationQualityResult()
{
return $this->summarizationQualityResult;
}
/**
* Result for summarization verbosity metric.
*
* @param GoogleCloudAiplatformV1SummarizationVerbosityResult $summarizationVerbosityResult
*/
public function setSummarizationVerbosityResult(GoogleCloudAiplatformV1SummarizationVerbosityResult $summarizationVerbosityResult)
{
$this->summarizationVerbosityResult = $summarizationVerbosityResult;
}
/**
* @return GoogleCloudAiplatformV1SummarizationVerbosityResult
*/
public function getSummarizationVerbosityResult()
{
return $this->summarizationVerbosityResult;
}
/**
* Tool call metrics. Results for tool call valid metric.
*
* @param GoogleCloudAiplatformV1ToolCallValidResults $toolCallValidResults
*/
public function setToolCallValidResults(GoogleCloudAiplatformV1ToolCallValidResults $toolCallValidResults)
{
$this->toolCallValidResults = $toolCallValidResults;
}
/**
* @return GoogleCloudAiplatformV1ToolCallValidResults
*/
public function getToolCallValidResults()
{
return $this->toolCallValidResults;
}
/**
* Results for tool name match metric.
*
* @param GoogleCloudAiplatformV1ToolNameMatchResults $toolNameMatchResults
*/
public function setToolNameMatchResults(GoogleCloudAiplatformV1ToolNameMatchResults $toolNameMatchResults)
{
$this->toolNameMatchResults = $toolNameMatchResults;
}
/**
* @return GoogleCloudAiplatformV1ToolNameMatchResults
*/
public function getToolNameMatchResults()
{
return $this->toolNameMatchResults;
}
/**
* Results for tool parameter key match metric.
*
* @param GoogleCloudAiplatformV1ToolParameterKeyMatchResults $toolParameterKeyMatchResults
*/
public function setToolParameterKeyMatchResults(GoogleCloudAiplatformV1ToolParameterKeyMatchResults $toolParameterKeyMatchResults)
{
$this->toolParameterKeyMatchResults = $toolParameterKeyMatchResults;
}
/**
* @return GoogleCloudAiplatformV1ToolParameterKeyMatchResults
*/
public function getToolParameterKeyMatchResults()
{
return $this->toolParameterKeyMatchResults;
}
/**
* Results for tool parameter key value match metric.
*
* @param GoogleCloudAiplatformV1ToolParameterKVMatchResults $toolParameterKvMatchResults
*/
public function setToolParameterKvMatchResults(GoogleCloudAiplatformV1ToolParameterKVMatchResults $toolParameterKvMatchResults)
{
$this->toolParameterKvMatchResults = $toolParameterKvMatchResults;
}
/**
* @return GoogleCloudAiplatformV1ToolParameterKVMatchResults
*/
public function getToolParameterKvMatchResults()
{
return $this->toolParameterKvMatchResults;
}
/**
* Result for trajectory any order match metric.
*
* @param GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults $trajectoryAnyOrderMatchResults
*/
public function setTrajectoryAnyOrderMatchResults(GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults $trajectoryAnyOrderMatchResults)
{
$this->trajectoryAnyOrderMatchResults = $trajectoryAnyOrderMatchResults;
}
/**
* @return GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults
*/
public function getTrajectoryAnyOrderMatchResults()
{
return $this->trajectoryAnyOrderMatchResults;
}
/**
* Result for trajectory exact match metric.
*
* @param GoogleCloudAiplatformV1TrajectoryExactMatchResults $trajectoryExactMatchResults
*/
public function setTrajectoryExactMatchResults(GoogleCloudAiplatformV1TrajectoryExactMatchResults $trajectoryExactMatchResults)
{
$this->trajectoryExactMatchResults = $trajectoryExactMatchResults;
}
/**
* @return GoogleCloudAiplatformV1TrajectoryExactMatchResults
*/
public function getTrajectoryExactMatchResults()
{
return $this->trajectoryExactMatchResults;
}
/**
* Result for trajectory in order match metric.
*
* @param GoogleCloudAiplatformV1TrajectoryInOrderMatchResults $trajectoryInOrderMatchResults
*/
public function setTrajectoryInOrderMatchResults(GoogleCloudAiplatformV1TrajectoryInOrderMatchResults $trajectoryInOrderMatchResults)
{
$this->trajectoryInOrderMatchResults = $trajectoryInOrderMatchResults;
}
/**
* @return GoogleCloudAiplatformV1TrajectoryInOrderMatchResults
*/
public function getTrajectoryInOrderMatchResults()
{
return $this->trajectoryInOrderMatchResults;
}
/**
* Result for trajectory precision metric.
*
* @param GoogleCloudAiplatformV1TrajectoryPrecisionResults $trajectoryPrecisionResults
*/
public function setTrajectoryPrecisionResults(GoogleCloudAiplatformV1TrajectoryPrecisionResults $trajectoryPrecisionResults)
{
$this->trajectoryPrecisionResults = $trajectoryPrecisionResults;
}
/**
* @return GoogleCloudAiplatformV1TrajectoryPrecisionResults
*/
public function getTrajectoryPrecisionResults()
{
return $this->trajectoryPrecisionResults;
}
/**
* Results for trajectory recall metric.
*
* @param GoogleCloudAiplatformV1TrajectoryRecallResults $trajectoryRecallResults
*/
public function setTrajectoryRecallResults(GoogleCloudAiplatformV1TrajectoryRecallResults $trajectoryRecallResults)
{
$this->trajectoryRecallResults = $trajectoryRecallResults;
}
/**
* @return GoogleCloudAiplatformV1TrajectoryRecallResults
*/
public function getTrajectoryRecallResults()
{
return $this->trajectoryRecallResults;
}
/**
* Results for trajectory single tool use metric.
*
* @param GoogleCloudAiplatformV1TrajectorySingleToolUseResults $trajectorySingleToolUseResults
*/
public function setTrajectorySingleToolUseResults(GoogleCloudAiplatformV1TrajectorySingleToolUseResults $trajectorySingleToolUseResults)
{
$this->trajectorySingleToolUseResults = $trajectorySingleToolUseResults;
}
/**
* @return GoogleCloudAiplatformV1TrajectorySingleToolUseResults
*/
public function getTrajectorySingleToolUseResults()
{
return $this->trajectorySingleToolUseResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAiplatformV1EvaluateInstancesResponse::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EvaluateInstancesResponse');
← Back