diff --git a/src/Aiplatform/GoogleCloudAiplatformV1CandidateResponse.php b/src/Aiplatform/GoogleCloudAiplatformV1CandidateResponse.php index f40fcc12a0..64f7b2c0ea 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1CandidateResponse.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1CandidateResponse.php @@ -25,6 +25,8 @@ class GoogleCloudAiplatformV1CandidateResponse extends \Google\Model * @var string */ public $candidate; + protected $errorType = GoogleRpcStatus::class; + protected $errorDataType = ''; /** * Text response. * @@ -54,6 +56,22 @@ public function getCandidate() { return $this->candidate; } + /** + * Output only. Error while scraping model or agent. + * + * @param GoogleRpcStatus $error + */ + public function setError(GoogleRpcStatus $error) + { + $this->error = $error; + } + /** + * @return GoogleRpcStatus + */ + public function getError() + { + return $this->error; + } /** * Text response. *