Skip to content

Commit ef602ae

Browse files
1 parent feb9c13 commit ef602ae

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Aiplatform/GoogleCloudAiplatformV1CandidateResponse.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class GoogleCloudAiplatformV1CandidateResponse extends \Google\Model
2525
* @var string
2626
*/
2727
public $candidate;
28+
protected $errorType = GoogleRpcStatus::class;
29+
protected $errorDataType = '';
2830
/**
2931
* Text response.
3032
*
@@ -54,6 +56,22 @@ public function getCandidate()
5456
{
5557
return $this->candidate;
5658
}
59+
/**
60+
* Output only. Error while scraping model or agent.
61+
*
62+
* @param GoogleRpcStatus $error
63+
*/
64+
public function setError(GoogleRpcStatus $error)
65+
{
66+
$this->error = $error;
67+
}
68+
/**
69+
* @return GoogleRpcStatus
70+
*/
71+
public function getError()
72+
{
73+
return $this->error;
74+
}
5775
/**
5876
* Text response.
5977
*

0 commit comments

Comments
 (0)