Skip to content

Commit cc1cee8

Browse files
1 parent cf9e930 commit cc1cee8

12 files changed

Lines changed: 349 additions & 50 deletions

src/Aiplatform.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10928,6 +10928,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1092810928
'required' => true,
1092910929
],
1093010930
],
10931+
],'getIamPolicy' => [
10932+
'path' => 'v1/{+resource}:getIamPolicy',
10933+
'httpMethod' => 'POST',
10934+
'parameters' => [
10935+
'resource' => [
10936+
'location' => 'path',
10937+
'type' => 'string',
10938+
'required' => true,
10939+
],
10940+
'options.requestedPolicyVersion' => [
10941+
'location' => 'query',
10942+
'type' => 'integer',
10943+
],
10944+
],
1093110945
],'list' => [
1093210946
'path' => 'v1/{+parent}/reasoningEngines',
1093310947
'httpMethod' => 'GET',
@@ -10974,6 +10988,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1097410988
'required' => true,
1097510989
],
1097610990
],
10991+
],'setIamPolicy' => [
10992+
'path' => 'v1/{+resource}:setIamPolicy',
10993+
'httpMethod' => 'POST',
10994+
'parameters' => [
10995+
'resource' => [
10996+
'location' => 'path',
10997+
'type' => 'string',
10998+
'required' => true,
10999+
],
11000+
],
1097711001
],'streamQuery' => [
1097811002
'path' => 'v1/{+name}:streamQuery',
1097911003
'httpMethod' => 'POST',
@@ -10984,6 +11008,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1098411008
'required' => true,
1098511009
],
1098611010
],
11011+
],'testIamPermissions' => [
11012+
'path' => 'v1/{+resource}:testIamPermissions',
11013+
'httpMethod' => 'POST',
11014+
'parameters' => [
11015+
'resource' => [
11016+
'location' => 'path',
11017+
'type' => 'string',
11018+
'required' => true,
11019+
],
11020+
'permissions' => [
11021+
'location' => 'query',
11022+
'type' => 'string',
11023+
'repeated' => true,
11024+
],
11025+
],
1098711026
],
1098811027
]
1098911028
]

src/Aiplatform/GoogleCloudAiplatformV1CandidateResponse.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
class GoogleCloudAiplatformV1CandidateResponse extends \Google\Model
2121
{
22-
protected $agentDataType = GoogleCloudAiplatformV1AgentData::class;
23-
protected $agentDataDataType = '';
2422
/**
2523
* Required. The name of the candidate that produced the response.
2624
*
@@ -40,25 +38,6 @@ class GoogleCloudAiplatformV1CandidateResponse extends \Google\Model
4038
*/
4139
public $value;
4240

43-
/**
44-
* Optional. Represents the complete execution trace of a multi-turn
45-
* conversation, which can involve single or multiple agents. This field is
46-
* used to provide the full output of an agent's run, including all turns and
47-
* events, for direct evaluation.
48-
*
49-
* @param GoogleCloudAiplatformV1AgentData $agentData
50-
*/
51-
public function setAgentData(GoogleCloudAiplatformV1AgentData $agentData)
52-
{
53-
$this->agentData = $agentData;
54-
}
55-
/**
56-
* @return GoogleCloudAiplatformV1AgentData
57-
*/
58-
public function getAgentData()
59-
{
60-
return $this->agentData;
61-
}
6241
/**
6342
* Required. The name of the candidate that produced the response.
6443
*
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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 GoogleCloudAiplatformV1ComputationBasedMetricSpec extends \Google\Model
21+
{
22+
/**
23+
* Unspecified computation based metric type.
24+
*/
25+
public const TYPE_COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED = 'COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED';
26+
/**
27+
* Exact match metric.
28+
*/
29+
public const TYPE_EXACT_MATCH = 'EXACT_MATCH';
30+
/**
31+
* BLEU metric.
32+
*/
33+
public const TYPE_BLEU = 'BLEU';
34+
/**
35+
* ROUGE metric.
36+
*/
37+
public const TYPE_ROUGE = 'ROUGE';
38+
/**
39+
* Optional. A map of parameters for the metric, e.g. {"rouge_type":
40+
* "rougeL"}.
41+
*
42+
* @var array[]
43+
*/
44+
public $parameters;
45+
/**
46+
* Required. The type of the computation based metric.
47+
*
48+
* @var string
49+
*/
50+
public $type;
51+
52+
/**
53+
* Optional. A map of parameters for the metric, e.g. {"rouge_type":
54+
* "rougeL"}.
55+
*
56+
* @param array[] $parameters
57+
*/
58+
public function setParameters($parameters)
59+
{
60+
$this->parameters = $parameters;
61+
}
62+
/**
63+
* @return array[]
64+
*/
65+
public function getParameters()
66+
{
67+
return $this->parameters;
68+
}
69+
/**
70+
* Required. The type of the computation based metric.
71+
*
72+
* Accepted values: COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED, EXACT_MATCH,
73+
* BLEU, ROUGE
74+
*
75+
* @param self::TYPE_* $type
76+
*/
77+
public function setType($type)
78+
{
79+
$this->type = $type;
80+
}
81+
/**
82+
* @return self::TYPE_*
83+
*/
84+
public function getType()
85+
{
86+
return $this->type;
87+
}
88+
}
89+
90+
// Adding a class alias for backwards compatibility with the previous class name.
91+
class_alias(GoogleCloudAiplatformV1ComputationBasedMetricSpec::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ComputationBasedMetricSpec');

src/Aiplatform/GoogleCloudAiplatformV1EvaluationInstance.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class GoogleCloudAiplatformV1EvaluationInstance extends \Google\Model
2121
{
2222
protected $agentDataType = GoogleCloudAiplatformV1EvaluationInstanceAgentData::class;
2323
protected $agentDataDataType = '';
24+
protected $agentEvalDataType = GoogleCloudAiplatformV1EvaluationInstanceAgentData::class;
25+
protected $agentEvalDataDataType = '';
2426
protected $otherDataType = GoogleCloudAiplatformV1EvaluationInstanceMapInstance::class;
2527
protected $otherDataDataType = '';
2628
protected $promptType = GoogleCloudAiplatformV1EvaluationInstanceInstanceData::class;
@@ -33,21 +35,40 @@ class GoogleCloudAiplatformV1EvaluationInstance extends \Google\Model
3335
protected $rubricGroupsDataType = 'map';
3436

3537
/**
36-
* Optional. Data used for agent evaluation.
38+
* Optional. Deprecated. Use `agent_eval_data` instead. Data used for agent
39+
* evaluation.
3740
*
41+
* @deprecated
3842
* @param GoogleCloudAiplatformV1EvaluationInstanceAgentData $agentData
3943
*/
4044
public function setAgentData(GoogleCloudAiplatformV1EvaluationInstanceAgentData $agentData)
4145
{
4246
$this->agentData = $agentData;
4347
}
4448
/**
49+
* @deprecated
4550
* @return GoogleCloudAiplatformV1EvaluationInstanceAgentData
4651
*/
4752
public function getAgentData()
4853
{
4954
return $this->agentData;
5055
}
56+
/**
57+
* Optional. Data used for agent evaluation.
58+
*
59+
* @param GoogleCloudAiplatformV1EvaluationInstanceAgentData $agentEvalData
60+
*/
61+
public function setAgentEvalData(GoogleCloudAiplatformV1EvaluationInstanceAgentData $agentEvalData)
62+
{
63+
$this->agentEvalData = $agentEvalData;
64+
}
65+
/**
66+
* @return GoogleCloudAiplatformV1EvaluationInstanceAgentData
67+
*/
68+
public function getAgentEvalData()
69+
{
70+
return $this->agentEvalData;
71+
}
5172
/**
5273
* Optional. Other data used to populate placeholders based on their key.
5374
*

src/Aiplatform/GoogleCloudAiplatformV1EvaluationPrompt.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
class GoogleCloudAiplatformV1EvaluationPrompt extends \Google\Model
2121
{
22-
protected $agentDataType = GoogleCloudAiplatformV1AgentData::class;
23-
protected $agentDataDataType = '';
2422
protected $promptTemplateDataType = GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData::class;
2523
protected $promptTemplateDataDataType = '';
2624
/**
@@ -36,24 +34,6 @@ class GoogleCloudAiplatformV1EvaluationPrompt extends \Google\Model
3634
*/
3735
public $value;
3836

39-
/**
40-
* Optional. Represents the complete execution trace of a multi-turn
41-
* conversation, which can involve single or multiple agents. This serves as
42-
* the input context for agent scraping.
43-
*
44-
* @param GoogleCloudAiplatformV1AgentData $agentData
45-
*/
46-
public function setAgentData(GoogleCloudAiplatformV1AgentData $agentData)
47-
{
48-
$this->agentData = $agentData;
49-
}
50-
/**
51-
* @return GoogleCloudAiplatformV1AgentData
52-
*/
53-
public function getAgentData()
54-
{
55-
return $this->agentData;
56-
}
5737
/**
5838
* Prompt template data.
5939
*

src/Aiplatform/GoogleCloudAiplatformV1EvaluationRunMetric.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
class GoogleCloudAiplatformV1EvaluationRunMetric extends \Google\Model
2121
{
22+
protected $computationBasedMetricSpecType = GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec::class;
23+
protected $computationBasedMetricSpecDataType = '';
2224
protected $llmBasedMetricSpecType = GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec::class;
2325
protected $llmBasedMetricSpecDataType = '';
2426
/**
@@ -34,6 +36,22 @@ class GoogleCloudAiplatformV1EvaluationRunMetric extends \Google\Model
3436
protected $rubricBasedMetricSpecType = GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec::class;
3537
protected $rubricBasedMetricSpecDataType = '';
3638

39+
/**
40+
* Spec for a computation based metric.
41+
*
42+
* @param GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec $computationBasedMetricSpec
43+
*/
44+
public function setComputationBasedMetricSpec(GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec $computationBasedMetricSpec)
45+
{
46+
$this->computationBasedMetricSpec = $computationBasedMetricSpec;
47+
}
48+
/**
49+
* @return GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec
50+
*/
51+
public function getComputationBasedMetricSpec()
52+
{
53+
return $this->computationBasedMetricSpec;
54+
}
3755
/**
3856
* Spec for an LLM based metric.
3957
*

src/Aiplatform/GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec.php

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,40 @@
2020
class GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec extends \Google\Model
2121
{
2222
/**
23+
* Unspecified computation based metric type.
24+
*/
25+
public const TYPE_COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED = 'COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED';
26+
/**
27+
* Exact match metric.
28+
*/
29+
public const TYPE_EXACT_MATCH = 'EXACT_MATCH';
30+
/**
31+
* BLEU metric.
32+
*/
33+
public const TYPE_BLEU = 'BLEU';
34+
/**
35+
* ROUGE metric.
36+
*/
37+
public const TYPE_ROUGE = 'ROUGE';
38+
/**
39+
* Optional. A map of parameters for the metric, e.g. {"rouge_type":
40+
* "rougeL"}.
41+
*
2342
* @var array[]
2443
*/
2544
public $parameters;
2645
/**
46+
* Required. The type of the computation based metric.
47+
*
2748
* @var string
2849
*/
2950
public $type;
3051

3152
/**
32-
* @param array[]
53+
* Optional. A map of parameters for the metric, e.g. {"rouge_type":
54+
* "rougeL"}.
55+
*
56+
* @param array[] $parameters
3357
*/
3458
public function setParameters($parameters)
3559
{
@@ -43,14 +67,19 @@ public function getParameters()
4367
return $this->parameters;
4468
}
4569
/**
46-
* @param string
70+
* Required. The type of the computation based metric.
71+
*
72+
* Accepted values: COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED, EXACT_MATCH,
73+
* BLEU, ROUGE
74+
*
75+
* @param self::TYPE_* $type
4776
*/
4877
public function setType($type)
4978
{
5079
$this->type = $type;
5180
}
5281
/**
53-
* @return string
82+
* @return self::TYPE_*
5483
*/
5584
public function getType()
5685
{

src/Aiplatform/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata extends \Googl
2727
* The request was processed using Pay-As-You-Go quota.
2828
*/
2929
public const TRAFFIC_TYPE_ON_DEMAND = 'ON_DEMAND';
30+
/**
31+
* Type for Priority Pay-As-You-Go traffic.
32+
*/
33+
public const TRAFFIC_TYPE_ON_DEMAND_PRIORITY = 'ON_DEMAND_PRIORITY';
34+
/**
35+
* Type for Flex traffic.
36+
*/
37+
public const TRAFFIC_TYPE_ON_DEMAND_FLEX = 'ON_DEMAND_FLEX';
3038
/**
3139
* Type for Provisioned Throughput traffic.
3240
*/
@@ -264,8 +272,8 @@ public function getTotalTokenCount()
264272
/**
265273
* Output only. The traffic type for this request.
266274
*
267-
* Accepted values: TRAFFIC_TYPE_UNSPECIFIED, ON_DEMAND,
268-
* PROVISIONED_THROUGHPUT
275+
* Accepted values: TRAFFIC_TYPE_UNSPECIFIED, ON_DEMAND, ON_DEMAND_PRIORITY,
276+
* ON_DEMAND_FLEX, PROVISIONED_THROUGHPUT
269277
*
270278
* @param self::TRAFFIC_TYPE_* $trafficType
271279
*/

0 commit comments

Comments
 (0)