Skip to content

Commit 8ee7043

Browse files
1 parent 8dcc30d commit 8ee7043

22 files changed

+629
-0
lines changed

src/Aiplatform.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
528528
'type' => 'string',
529529
'required' => true,
530530
],
531+
'extraLocationTypes' => [
532+
'location' => 'query',
533+
'type' => 'string',
534+
'repeated' => true,
535+
],
531536
'filter' => [
532537
'location' => 'query',
533538
'type' => 'string',
@@ -7448,6 +7453,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
74487453
'type' => 'string',
74497454
'required' => true,
74507455
],
7456+
'force' => [
7457+
'location' => 'query',
7458+
'type' => 'boolean',
7459+
],
74517460
],
74527461
],'get' => [
74537462
'path' => 'v1/{+name}',
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 GoogleCloudAiplatformV1ContentMap extends \Google\Model
21+
{
22+
protected $valuesType = GoogleCloudAiplatformV1ContentMapContents::class;
23+
protected $valuesDataType = 'map';
24+
25+
/**
26+
* @param GoogleCloudAiplatformV1ContentMapContents[]
27+
*/
28+
public function setValues($values)
29+
{
30+
$this->values = $values;
31+
}
32+
/**
33+
* @return GoogleCloudAiplatformV1ContentMapContents[]
34+
*/
35+
public function getValues()
36+
{
37+
return $this->values;
38+
}
39+
}
40+
41+
// Adding a class alias for backwards compatibility with the previous class name.
42+
class_alias(GoogleCloudAiplatformV1ContentMap::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ContentMap');
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 GoogleCloudAiplatformV1ContentMapContents extends \Google\Collection
21+
{
22+
protected $collection_key = 'contents';
23+
protected $contentsType = GoogleCloudAiplatformV1Content::class;
24+
protected $contentsDataType = 'array';
25+
26+
/**
27+
* @param GoogleCloudAiplatformV1Content[]
28+
*/
29+
public function setContents($contents)
30+
{
31+
$this->contents = $contents;
32+
}
33+
/**
34+
* @return GoogleCloudAiplatformV1Content[]
35+
*/
36+
public function getContents()
37+
{
38+
return $this->contents;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(GoogleCloudAiplatformV1ContentMapContents::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ContentMapContents');
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 GoogleCloudAiplatformV1CustomOutput extends \Google\Model
21+
{
22+
protected $rawOutputsType = GoogleCloudAiplatformV1RawOutput::class;
23+
protected $rawOutputsDataType = '';
24+
25+
/**
26+
* @param GoogleCloudAiplatformV1RawOutput
27+
*/
28+
public function setRawOutputs(GoogleCloudAiplatformV1RawOutput $rawOutputs)
29+
{
30+
$this->rawOutputs = $rawOutputs;
31+
}
32+
/**
33+
* @return GoogleCloudAiplatformV1RawOutput
34+
*/
35+
public function getRawOutputs()
36+
{
37+
return $this->rawOutputs;
38+
}
39+
}
40+
41+
// Adding a class alias for backwards compatibility with the previous class name.
42+
class_alias(GoogleCloudAiplatformV1CustomOutput::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1CustomOutput');
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 GoogleCloudAiplatformV1CustomOutputFormatConfig extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $returnRawOutput;
26+
27+
/**
28+
* @param bool
29+
*/
30+
public function setReturnRawOutput($returnRawOutput)
31+
{
32+
$this->returnRawOutput = $returnRawOutput;
33+
}
34+
/**
35+
* @return bool
36+
*/
37+
public function getReturnRawOutput()
38+
{
39+
return $this->returnRawOutput;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GoogleCloudAiplatformV1CustomOutputFormatConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1CustomOutputFormatConfig');

src/Aiplatform/GoogleCloudAiplatformV1EvaluateInstancesRequest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class GoogleCloudAiplatformV1EvaluateInstancesRequest extends \Google\Model
5555
protected $questionAnsweringRelevanceInputDataType = '';
5656
protected $rougeInputType = GoogleCloudAiplatformV1RougeInput::class;
5757
protected $rougeInputDataType = '';
58+
protected $rubricBasedInstructionFollowingInputType = GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput::class;
59+
protected $rubricBasedInstructionFollowingInputDataType = '';
5860
protected $safetyInputType = GoogleCloudAiplatformV1SafetyInput::class;
5961
protected $safetyInputDataType = '';
6062
protected $summarizationHelpfulnessInputType = GoogleCloudAiplatformV1SummarizationHelpfulnessInput::class;
@@ -336,6 +338,20 @@ public function getRougeInput()
336338
{
337339
return $this->rougeInput;
338340
}
341+
/**
342+
* @param GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput
343+
*/
344+
public function setRubricBasedInstructionFollowingInput(GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput $rubricBasedInstructionFollowingInput)
345+
{
346+
$this->rubricBasedInstructionFollowingInput = $rubricBasedInstructionFollowingInput;
347+
}
348+
/**
349+
* @return GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput
350+
*/
351+
public function getRubricBasedInstructionFollowingInput()
352+
{
353+
return $this->rubricBasedInstructionFollowingInput;
354+
}
339355
/**
340356
* @param GoogleCloudAiplatformV1SafetyInput
341357
*/

src/Aiplatform/GoogleCloudAiplatformV1EvaluateInstancesResponse.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class GoogleCloudAiplatformV1EvaluateInstancesResponse extends \Google\Model
5353
protected $questionAnsweringRelevanceResultDataType = '';
5454
protected $rougeResultsType = GoogleCloudAiplatformV1RougeResults::class;
5555
protected $rougeResultsDataType = '';
56+
protected $rubricBasedInstructionFollowingResultType = GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult::class;
57+
protected $rubricBasedInstructionFollowingResultDataType = '';
5658
protected $safetyResultType = GoogleCloudAiplatformV1SafetyResult::class;
5759
protected $safetyResultDataType = '';
5860
protected $summarizationHelpfulnessResultType = GoogleCloudAiplatformV1SummarizationHelpfulnessResult::class;
@@ -320,6 +322,20 @@ public function getRougeResults()
320322
{
321323
return $this->rougeResults;
322324
}
325+
/**
326+
* @param GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult
327+
*/
328+
public function setRubricBasedInstructionFollowingResult(GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult $rubricBasedInstructionFollowingResult)
329+
{
330+
$this->rubricBasedInstructionFollowingResult = $rubricBasedInstructionFollowingResult;
331+
}
332+
/**
333+
* @return GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult
334+
*/
335+
public function getRubricBasedInstructionFollowingResult()
336+
{
337+
return $this->rubricBasedInstructionFollowingResult;
338+
}
323339
/**
324340
* @param GoogleCloudAiplatformV1SafetyResult
325341
*/

src/Aiplatform/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata extends \Googl
5252
* @var int
5353
*/
5454
public $totalTokenCount;
55+
/**
56+
* @var string
57+
*/
58+
public $trafficType;
5559

5660
/**
5761
* @param GoogleCloudAiplatformV1ModalityTokenCount[]
@@ -193,6 +197,20 @@ public function getTotalTokenCount()
193197
{
194198
return $this->totalTokenCount;
195199
}
200+
/**
201+
* @param string
202+
*/
203+
public function setTrafficType($trafficType)
204+
{
205+
$this->trafficType = $trafficType;
206+
}
207+
/**
208+
* @return string
209+
*/
210+
public function getTrafficType()
211+
{
212+
return $this->trafficType;
213+
}
196214
}
197215

198216
// Adding a class alias for backwards compatibility with the previous class name.

src/Aiplatform/GoogleCloudAiplatformV1PairwiseMetricInstance.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,27 @@
1919

2020
class GoogleCloudAiplatformV1PairwiseMetricInstance extends \Google\Model
2121
{
22+
protected $contentMapInstanceType = GoogleCloudAiplatformV1ContentMap::class;
23+
protected $contentMapInstanceDataType = '';
2224
/**
2325
* @var string
2426
*/
2527
public $jsonInstance;
2628

29+
/**
30+
* @param GoogleCloudAiplatformV1ContentMap
31+
*/
32+
public function setContentMapInstance(GoogleCloudAiplatformV1ContentMap $contentMapInstance)
33+
{
34+
$this->contentMapInstance = $contentMapInstance;
35+
}
36+
/**
37+
* @return GoogleCloudAiplatformV1ContentMap
38+
*/
39+
public function getContentMapInstance()
40+
{
41+
return $this->contentMapInstance;
42+
}
2743
/**
2844
* @param string
2945
*/

src/Aiplatform/GoogleCloudAiplatformV1PairwiseMetricResult.php

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

2020
class GoogleCloudAiplatformV1PairwiseMetricResult extends \Google\Model
2121
{
22+
protected $customOutputType = GoogleCloudAiplatformV1CustomOutput::class;
23+
protected $customOutputDataType = '';
2224
/**
2325
* @var string
2426
*/
@@ -28,6 +30,20 @@ class GoogleCloudAiplatformV1PairwiseMetricResult extends \Google\Model
2830
*/
2931
public $pairwiseChoice;
3032

33+
/**
34+
* @param GoogleCloudAiplatformV1CustomOutput
35+
*/
36+
public function setCustomOutput(GoogleCloudAiplatformV1CustomOutput $customOutput)
37+
{
38+
$this->customOutput = $customOutput;
39+
}
40+
/**
41+
* @return GoogleCloudAiplatformV1CustomOutput
42+
*/
43+
public function getCustomOutput()
44+
{
45+
return $this->customOutput;
46+
}
3147
/**
3248
* @param string
3349
*/

src/Aiplatform/GoogleCloudAiplatformV1PairwiseMetricSpec.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class GoogleCloudAiplatformV1PairwiseMetricSpec extends \Google\Model
2727
* @var string
2828
*/
2929
public $candidateResponseFieldName;
30+
protected $customOutputFormatConfigType = GoogleCloudAiplatformV1CustomOutputFormatConfig::class;
31+
protected $customOutputFormatConfigDataType = '';
3032
/**
3133
* @var string
3234
*/
@@ -64,6 +66,20 @@ public function getCandidateResponseFieldName()
6466
{
6567
return $this->candidateResponseFieldName;
6668
}
69+
/**
70+
* @param GoogleCloudAiplatformV1CustomOutputFormatConfig
71+
*/
72+
public function setCustomOutputFormatConfig(GoogleCloudAiplatformV1CustomOutputFormatConfig $customOutputFormatConfig)
73+
{
74+
$this->customOutputFormatConfig = $customOutputFormatConfig;
75+
}
76+
/**
77+
* @return GoogleCloudAiplatformV1CustomOutputFormatConfig
78+
*/
79+
public function getCustomOutputFormatConfig()
80+
{
81+
return $this->customOutputFormatConfig;
82+
}
6783
/**
6884
* @param string
6985
*/

0 commit comments

Comments
 (0)