111 lines
2.8 KiB
PHP
111 lines
2.8 KiB
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 GoogleCloudAiplatformV1PairwiseSummarizationQualityResult extends \Google\Model
|
|
{
|
|
/**
|
|
* Unspecified prediction choice.
|
|
*/
|
|
public const PAIRWISE_CHOICE_PAIRWISE_CHOICE_UNSPECIFIED = 'PAIRWISE_CHOICE_UNSPECIFIED';
|
|
/**
|
|
* Baseline prediction wins
|
|
*/
|
|
public const PAIRWISE_CHOICE_BASELINE = 'BASELINE';
|
|
/**
|
|
* Candidate prediction wins
|
|
*/
|
|
public const PAIRWISE_CHOICE_CANDIDATE = 'CANDIDATE';
|
|
/**
|
|
* Winner cannot be determined
|
|
*/
|
|
public const PAIRWISE_CHOICE_TIE = 'TIE';
|
|
/**
|
|
* Output only. Confidence for summarization quality score.
|
|
*
|
|
* @var float
|
|
*/
|
|
public $confidence;
|
|
/**
|
|
* Output only. Explanation for summarization quality score.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $explanation;
|
|
/**
|
|
* Output only. Pairwise summarization prediction choice.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $pairwiseChoice;
|
|
|
|
/**
|
|
* Output only. Confidence for summarization quality score.
|
|
*
|
|
* @param float $confidence
|
|
*/
|
|
public function setConfidence($confidence)
|
|
{
|
|
$this->confidence = $confidence;
|
|
}
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getConfidence()
|
|
{
|
|
return $this->confidence;
|
|
}
|
|
/**
|
|
* Output only. Explanation for summarization quality score.
|
|
*
|
|
* @param string $explanation
|
|
*/
|
|
public function setExplanation($explanation)
|
|
{
|
|
$this->explanation = $explanation;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getExplanation()
|
|
{
|
|
return $this->explanation;
|
|
}
|
|
/**
|
|
* Output only. Pairwise summarization prediction choice.
|
|
*
|
|
* Accepted values: PAIRWISE_CHOICE_UNSPECIFIED, BASELINE, CANDIDATE, TIE
|
|
*
|
|
* @param self::PAIRWISE_CHOICE_* $pairwiseChoice
|
|
*/
|
|
public function setPairwiseChoice($pairwiseChoice)
|
|
{
|
|
$this->pairwiseChoice = $pairwiseChoice;
|
|
}
|
|
/**
|
|
* @return self::PAIRWISE_CHOICE_*
|
|
*/
|
|
public function getPairwiseChoice()
|
|
{
|
|
return $this->pairwiseChoice;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(GoogleCloudAiplatformV1PairwiseSummarizationQualityResult::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1PairwiseSummarizationQualityResult');
|