Skip to content

Commit 90c1b52

Browse files
1 parent 5bf900e commit 90c1b52

11 files changed

+452
-12
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Aiplatform;
19+
20+
class GoogleCloudAiplatformV1AggregationOutput extends \Google\Collection
21+
{
22+
protected $collection_key = 'aggregationResults';
23+
protected $aggregationResultsType = GoogleCloudAiplatformV1AggregationResult::class;
24+
protected $aggregationResultsDataType = 'array';
25+
protected $datasetType = GoogleCloudAiplatformV1EvaluationDataset::class;
26+
protected $datasetDataType = '';
27+
28+
/**
29+
* One AggregationResult per metric.
30+
*
31+
* @param GoogleCloudAiplatformV1AggregationResult[] $aggregationResults
32+
*/
33+
public function setAggregationResults($aggregationResults)
34+
{
35+
$this->aggregationResults = $aggregationResults;
36+
}
37+
/**
38+
* @return GoogleCloudAiplatformV1AggregationResult[]
39+
*/
40+
public function getAggregationResults()
41+
{
42+
return $this->aggregationResults;
43+
}
44+
/**
45+
* The dataset used for evaluation & aggregation.
46+
*
47+
* @param GoogleCloudAiplatformV1EvaluationDataset $dataset
48+
*/
49+
public function setDataset(GoogleCloudAiplatformV1EvaluationDataset $dataset)
50+
{
51+
$this->dataset = $dataset;
52+
}
53+
/**
54+
* @return GoogleCloudAiplatformV1EvaluationDataset
55+
*/
56+
public function getDataset()
57+
{
58+
return $this->dataset;
59+
}
60+
}
61+
62+
// Adding a class alias for backwards compatibility with the previous class name.
63+
class_alias(GoogleCloudAiplatformV1AggregationOutput::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1AggregationOutput');
Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Aiplatform;
19+
20+
class GoogleCloudAiplatformV1AggregationResult extends \Google\Model
21+
{
22+
/**
23+
* Unspecified aggregation metric.
24+
*/
25+
public const AGGREGATION_METRIC_AGGREGATION_METRIC_UNSPECIFIED = 'AGGREGATION_METRIC_UNSPECIFIED';
26+
/**
27+
* Average aggregation metric. Not supported for Pairwise metric.
28+
*/
29+
public const AGGREGATION_METRIC_AVERAGE = 'AVERAGE';
30+
/**
31+
* Mode aggregation metric.
32+
*/
33+
public const AGGREGATION_METRIC_MODE = 'MODE';
34+
/**
35+
* Standard deviation aggregation metric. Not supported for pairwise metric.
36+
*/
37+
public const AGGREGATION_METRIC_STANDARD_DEVIATION = 'STANDARD_DEVIATION';
38+
/**
39+
* Variance aggregation metric. Not supported for pairwise metric.
40+
*/
41+
public const AGGREGATION_METRIC_VARIANCE = 'VARIANCE';
42+
/**
43+
* Minimum aggregation metric. Not supported for pairwise metric.
44+
*/
45+
public const AGGREGATION_METRIC_MINIMUM = 'MINIMUM';
46+
/**
47+
* Maximum aggregation metric. Not supported for pairwise metric.
48+
*/
49+
public const AGGREGATION_METRIC_MAXIMUM = 'MAXIMUM';
50+
/**
51+
* Median aggregation metric. Not supported for pairwise metric.
52+
*/
53+
public const AGGREGATION_METRIC_MEDIAN = 'MEDIAN';
54+
/**
55+
* 90th percentile aggregation metric. Not supported for pairwise metric.
56+
*/
57+
public const AGGREGATION_METRIC_PERCENTILE_P90 = 'PERCENTILE_P90';
58+
/**
59+
* 95th percentile aggregation metric. Not supported for pairwise metric.
60+
*/
61+
public const AGGREGATION_METRIC_PERCENTILE_P95 = 'PERCENTILE_P95';
62+
/**
63+
* 99th percentile aggregation metric. Not supported for pairwise metric.
64+
*/
65+
public const AGGREGATION_METRIC_PERCENTILE_P99 = 'PERCENTILE_P99';
66+
/**
67+
* Aggregation metric.
68+
*
69+
* @var string
70+
*/
71+
public $aggregationMetric;
72+
protected $bleuMetricValueType = GoogleCloudAiplatformV1BleuMetricValue::class;
73+
protected $bleuMetricValueDataType = '';
74+
protected $customCodeExecutionResultType = GoogleCloudAiplatformV1CustomCodeExecutionResult::class;
75+
protected $customCodeExecutionResultDataType = '';
76+
protected $exactMatchMetricValueType = GoogleCloudAiplatformV1ExactMatchMetricValue::class;
77+
protected $exactMatchMetricValueDataType = '';
78+
protected $pairwiseMetricResultType = GoogleCloudAiplatformV1PairwiseMetricResult::class;
79+
protected $pairwiseMetricResultDataType = '';
80+
protected $pointwiseMetricResultType = GoogleCloudAiplatformV1PointwiseMetricResult::class;
81+
protected $pointwiseMetricResultDataType = '';
82+
protected $rougeMetricValueType = GoogleCloudAiplatformV1RougeMetricValue::class;
83+
protected $rougeMetricValueDataType = '';
84+
85+
/**
86+
* Aggregation metric.
87+
*
88+
* Accepted values: AGGREGATION_METRIC_UNSPECIFIED, AVERAGE, MODE,
89+
* STANDARD_DEVIATION, VARIANCE, MINIMUM, MAXIMUM, MEDIAN, PERCENTILE_P90,
90+
* PERCENTILE_P95, PERCENTILE_P99
91+
*
92+
* @param self::AGGREGATION_METRIC_* $aggregationMetric
93+
*/
94+
public function setAggregationMetric($aggregationMetric)
95+
{
96+
$this->aggregationMetric = $aggregationMetric;
97+
}
98+
/**
99+
* @return self::AGGREGATION_METRIC_*
100+
*/
101+
public function getAggregationMetric()
102+
{
103+
return $this->aggregationMetric;
104+
}
105+
/**
106+
* Results for bleu metric.
107+
*
108+
* @param GoogleCloudAiplatformV1BleuMetricValue $bleuMetricValue
109+
*/
110+
public function setBleuMetricValue(GoogleCloudAiplatformV1BleuMetricValue $bleuMetricValue)
111+
{
112+
$this->bleuMetricValue = $bleuMetricValue;
113+
}
114+
/**
115+
* @return GoogleCloudAiplatformV1BleuMetricValue
116+
*/
117+
public function getBleuMetricValue()
118+
{
119+
return $this->bleuMetricValue;
120+
}
121+
/**
122+
* Result for code execution metric.
123+
*
124+
* @param GoogleCloudAiplatformV1CustomCodeExecutionResult $customCodeExecutionResult
125+
*/
126+
public function setCustomCodeExecutionResult(GoogleCloudAiplatformV1CustomCodeExecutionResult $customCodeExecutionResult)
127+
{
128+
$this->customCodeExecutionResult = $customCodeExecutionResult;
129+
}
130+
/**
131+
* @return GoogleCloudAiplatformV1CustomCodeExecutionResult
132+
*/
133+
public function getCustomCodeExecutionResult()
134+
{
135+
return $this->customCodeExecutionResult;
136+
}
137+
/**
138+
* Results for exact match metric.
139+
*
140+
* @param GoogleCloudAiplatformV1ExactMatchMetricValue $exactMatchMetricValue
141+
*/
142+
public function setExactMatchMetricValue(GoogleCloudAiplatformV1ExactMatchMetricValue $exactMatchMetricValue)
143+
{
144+
$this->exactMatchMetricValue = $exactMatchMetricValue;
145+
}
146+
/**
147+
* @return GoogleCloudAiplatformV1ExactMatchMetricValue
148+
*/
149+
public function getExactMatchMetricValue()
150+
{
151+
return $this->exactMatchMetricValue;
152+
}
153+
/**
154+
* Result for pairwise metric.
155+
*
156+
* @param GoogleCloudAiplatformV1PairwiseMetricResult $pairwiseMetricResult
157+
*/
158+
public function setPairwiseMetricResult(GoogleCloudAiplatformV1PairwiseMetricResult $pairwiseMetricResult)
159+
{
160+
$this->pairwiseMetricResult = $pairwiseMetricResult;
161+
}
162+
/**
163+
* @return GoogleCloudAiplatformV1PairwiseMetricResult
164+
*/
165+
public function getPairwiseMetricResult()
166+
{
167+
return $this->pairwiseMetricResult;
168+
}
169+
/**
170+
* Result for pointwise metric.
171+
*
172+
* @param GoogleCloudAiplatformV1PointwiseMetricResult $pointwiseMetricResult
173+
*/
174+
public function setPointwiseMetricResult(GoogleCloudAiplatformV1PointwiseMetricResult $pointwiseMetricResult)
175+
{
176+
$this->pointwiseMetricResult = $pointwiseMetricResult;
177+
}
178+
/**
179+
* @return GoogleCloudAiplatformV1PointwiseMetricResult
180+
*/
181+
public function getPointwiseMetricResult()
182+
{
183+
return $this->pointwiseMetricResult;
184+
}
185+
/**
186+
* Results for rouge metric.
187+
*
188+
* @param GoogleCloudAiplatformV1RougeMetricValue $rougeMetricValue
189+
*/
190+
public function setRougeMetricValue(GoogleCloudAiplatformV1RougeMetricValue $rougeMetricValue)
191+
{
192+
$this->rougeMetricValue = $rougeMetricValue;
193+
}
194+
/**
195+
* @return GoogleCloudAiplatformV1RougeMetricValue
196+
*/
197+
public function getRougeMetricValue()
198+
{
199+
return $this->rougeMetricValue;
200+
}
201+
}
202+
203+
// Adding a class alias for backwards compatibility with the previous class name.
204+
class_alias(GoogleCloudAiplatformV1AggregationResult::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1AggregationResult');

src/Aiplatform/GoogleCloudAiplatformV1AutoscalingMetricSpec.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ class GoogleCloudAiplatformV1AutoscalingMetricSpec extends \Google\Model
2525
* `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` *
2626
* `aiplatform.googleapis.com/prediction/online/cpu/utilization` *
2727
* `aiplatform.googleapis.com/prediction/online/request_count` *
28-
* `pubsub.googleapis.com/subscription/num_undelivered_messages`
28+
* `pubsub.googleapis.com/subscription/num_undelivered_messages` *
29+
* `prometheus.googleapis.com/vertex_dcgm_fi_dev_gpu_util` *
30+
* `prometheus.googleapis.com/vertex_vllm_gpu_cache_usage_perc` *
31+
* `prometheus.googleapis.com/vertex_vllm_num_requests_waiting`
2932
*
3033
* @var string
3134
*/
@@ -46,7 +49,10 @@ class GoogleCloudAiplatformV1AutoscalingMetricSpec extends \Google\Model
4649
* `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` *
4750
* `aiplatform.googleapis.com/prediction/online/cpu/utilization` *
4851
* `aiplatform.googleapis.com/prediction/online/request_count` *
49-
* `pubsub.googleapis.com/subscription/num_undelivered_messages`
52+
* `pubsub.googleapis.com/subscription/num_undelivered_messages` *
53+
* `prometheus.googleapis.com/vertex_dcgm_fi_dev_gpu_util` *
54+
* `prometheus.googleapis.com/vertex_vllm_gpu_cache_usage_perc` *
55+
* `prometheus.googleapis.com/vertex_vllm_num_requests_waiting`
5056
*
5157
* @param string $metricName
5258
*/
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Aiplatform;
19+
20+
class GoogleCloudAiplatformV1CustomCodeExecutionResult extends \Google\Model
21+
{
22+
/**
23+
* Output only. Custom code execution score.
24+
*
25+
* @var float
26+
*/
27+
public $score;
28+
29+
/**
30+
* Output only. Custom code execution score.
31+
*
32+
* @param float $score
33+
*/
34+
public function setScore($score)
35+
{
36+
$this->score = $score;
37+
}
38+
/**
39+
* @return float
40+
*/
41+
public function getScore()
42+
{
43+
return $this->score;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(GoogleCloudAiplatformV1CustomCodeExecutionResult::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1CustomCodeExecutionResult');

src/Aiplatform/GoogleCloudAiplatformV1Endpoint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class GoogleCloudAiplatformV1Endpoint extends \Google\Collection
106106
*/
107107
public $modelDeploymentMonitoringJob;
108108
/**
109-
* Output only. The resource name of the Endpoint.
109+
* Identifier. The resource name of the Endpoint.
110110
*
111111
* @var string
112112
*/
@@ -412,7 +412,7 @@ public function getModelDeploymentMonitoringJob()
412412
return $this->modelDeploymentMonitoringJob;
413413
}
414414
/**
415-
* Output only. The resource name of the Endpoint.
415+
* Identifier. The resource name of the Endpoint.
416416
*
417417
* @param string $name
418418
*/

0 commit comments

Comments
 (0)