Skip to content

Commit 6197ef9

Browse files
1 parent 1f8f304 commit 6197ef9

32 files changed

Lines changed: 1185 additions & 3 deletions

src/Aiplatform.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
389389
'required' => true,
390390
],
391391
],
392+
],'predict' => [
393+
'path' => 'v1/{+endpoint}:predict',
394+
'httpMethod' => 'POST',
395+
'parameters' => [
396+
'endpoint' => [
397+
'location' => 'path',
398+
'type' => 'string',
399+
'required' => true,
400+
],
401+
],
392402
],'streamGenerateContent' => [
393403
'path' => 'v1/{+model}:streamGenerateContent',
394404
'httpMethod' => 'POST',
@@ -5522,6 +5532,24 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
55225532
'type' => 'string',
55235533
],
55245534
],
5535+
],'listCheckpoints' => [
5536+
'path' => 'v1/{+name}:listCheckpoints',
5537+
'httpMethod' => 'GET',
5538+
'parameters' => [
5539+
'name' => [
5540+
'location' => 'path',
5541+
'type' => 'string',
5542+
'required' => true,
5543+
],
5544+
'pageSize' => [
5545+
'location' => 'query',
5546+
'type' => 'integer',
5547+
],
5548+
'pageToken' => [
5549+
'location' => 'query',
5550+
'type' => 'string',
5551+
],
5552+
],
55255553
],'listVersions' => [
55265554
'path' => 'v1/{+name}:listVersions',
55275555
'httpMethod' => 'GET',
@@ -9306,6 +9334,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
93069334
'type' => 'string',
93079335
],
93089336
],
9337+
],'predict' => [
9338+
'path' => 'v1/{+endpoint}:predict',
9339+
'httpMethod' => 'POST',
9340+
'parameters' => [
9341+
'endpoint' => [
9342+
'location' => 'path',
9343+
'type' => 'string',
9344+
'required' => true,
9345+
],
9346+
],
93099347
],'streamGenerateContent' => [
93109348
'path' => 'v1/{+model}:streamGenerateContent',
93119349
'httpMethod' => 'POST',

src/Aiplatform/GoogleCloudAiplatformV1Blob.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class GoogleCloudAiplatformV1Blob extends \Google\Model
2323
* @var string
2424
*/
2525
public $data;
26+
/**
27+
* @var string
28+
*/
29+
public $displayName;
2630
/**
2731
* @var string
2832
*/
@@ -42,6 +46,20 @@ public function getData()
4246
{
4347
return $this->data;
4448
}
49+
/**
50+
* @param string
51+
*/
52+
public function setDisplayName($displayName)
53+
{
54+
$this->displayName = $displayName;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getDisplayName()
60+
{
61+
return $this->displayName;
62+
}
4563
/**
4664
* @param string
4765
*/
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 GoogleCloudAiplatformV1CodeExecutionResult extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $outcome;
26+
/**
27+
* @var string
28+
*/
29+
public $output;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setOutcome($outcome)
35+
{
36+
$this->outcome = $outcome;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getOutcome()
42+
{
43+
return $this->outcome;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setOutput($output)
49+
{
50+
$this->output = $output;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getOutput()
56+
{
57+
return $this->output;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(GoogleCloudAiplatformV1CodeExecutionResult::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1CodeExecutionResult');

src/Aiplatform/GoogleCloudAiplatformV1CountTokensResponse.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717

1818
namespace Google\Service\Aiplatform;
1919

20-
class GoogleCloudAiplatformV1CountTokensResponse extends \Google\Model
20+
class GoogleCloudAiplatformV1CountTokensResponse extends \Google\Collection
2121
{
22+
protected $collection_key = 'promptTokensDetails';
23+
protected $promptTokensDetailsType = GoogleCloudAiplatformV1ModalityTokenCount::class;
24+
protected $promptTokensDetailsDataType = 'array';
2225
/**
2326
* @var int
2427
*/
@@ -28,6 +31,20 @@ class GoogleCloudAiplatformV1CountTokensResponse extends \Google\Model
2831
*/
2932
public $totalTokens;
3033

34+
/**
35+
* @param GoogleCloudAiplatformV1ModalityTokenCount[]
36+
*/
37+
public function setPromptTokensDetails($promptTokensDetails)
38+
{
39+
$this->promptTokensDetails = $promptTokensDetails;
40+
}
41+
/**
42+
* @return GoogleCloudAiplatformV1ModalityTokenCount[]
43+
*/
44+
public function getPromptTokensDetails()
45+
{
46+
return $this->promptTokensDetails;
47+
}
3148
/**
3249
* @param int
3350
*/

src/Aiplatform/GoogleCloudAiplatformV1DeployedModel.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class GoogleCloudAiplatformV1DeployedModel extends \Google\Model
6969
* @var string
7070
*/
7171
public $sharedResources;
72+
protected $speculativeDecodingSpecType = GoogleCloudAiplatformV1SpeculativeDecodingSpec::class;
73+
protected $speculativeDecodingSpecDataType = '';
7274
protected $statusType = GoogleCloudAiplatformV1DeployedModelStatus::class;
7375
protected $statusDataType = '';
7476
/**
@@ -286,6 +288,20 @@ public function getSharedResources()
286288
{
287289
return $this->sharedResources;
288290
}
291+
/**
292+
* @param GoogleCloudAiplatformV1SpeculativeDecodingSpec
293+
*/
294+
public function setSpeculativeDecodingSpec(GoogleCloudAiplatformV1SpeculativeDecodingSpec $speculativeDecodingSpec)
295+
{
296+
$this->speculativeDecodingSpec = $speculativeDecodingSpec;
297+
}
298+
/**
299+
* @return GoogleCloudAiplatformV1SpeculativeDecodingSpec
300+
*/
301+
public function getSpeculativeDecodingSpec()
302+
{
303+
return $this->speculativeDecodingSpec;
304+
}
289305
/**
290306
* @param GoogleCloudAiplatformV1DeployedModelStatus
291307
*/

src/Aiplatform/GoogleCloudAiplatformV1Endpoint.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class GoogleCloudAiplatformV1Endpoint extends \Google\Collection
5454
* @var string
5555
*/
5656
public $etag;
57+
protected $genAiAdvancedFeaturesConfigType = GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig::class;
58+
protected $genAiAdvancedFeaturesConfigDataType = '';
5759
/**
5860
* @var string[]
5961
*/
@@ -231,6 +233,20 @@ public function getEtag()
231233
{
232234
return $this->etag;
233235
}
236+
/**
237+
* @param GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig
238+
*/
239+
public function setGenAiAdvancedFeaturesConfig(GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig $genAiAdvancedFeaturesConfig)
240+
{
241+
$this->genAiAdvancedFeaturesConfig = $genAiAdvancedFeaturesConfig;
242+
}
243+
/**
244+
* @return GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig
245+
*/
246+
public function getGenAiAdvancedFeaturesConfig()
247+
{
248+
return $this->genAiAdvancedFeaturesConfig;
249+
}
234250
/**
235251
* @param string[]
236252
*/
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 GoogleCloudAiplatformV1ExecutableCode extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $code;
26+
/**
27+
* @var string
28+
*/
29+
public $language;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setCode($code)
35+
{
36+
$this->code = $code;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getCode()
42+
{
43+
return $this->code;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setLanguage($language)
49+
{
50+
$this->language = $language;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getLanguage()
56+
{
57+
return $this->language;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(GoogleCloudAiplatformV1ExecutableCode::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ExecutableCode');

src/Aiplatform/GoogleCloudAiplatformV1FeatureView.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ class GoogleCloudAiplatformV1FeatureView extends \Google\Model
5151
* @var bool
5252
*/
5353
public $satisfiesPzs;
54+
/**
55+
* @var string
56+
*/
57+
public $serviceAccountEmail;
58+
/**
59+
* @var string
60+
*/
61+
public $serviceAgentType;
5462
protected $syncConfigType = GoogleCloudAiplatformV1FeatureViewSyncConfig::class;
5563
protected $syncConfigDataType = '';
5664
/**
@@ -200,6 +208,34 @@ public function getSatisfiesPzs()
200208
{
201209
return $this->satisfiesPzs;
202210
}
211+
/**
212+
* @param string
213+
*/
214+
public function setServiceAccountEmail($serviceAccountEmail)
215+
{
216+
$this->serviceAccountEmail = $serviceAccountEmail;
217+
}
218+
/**
219+
* @return string
220+
*/
221+
public function getServiceAccountEmail()
222+
{
223+
return $this->serviceAccountEmail;
224+
}
225+
/**
226+
* @param string
227+
*/
228+
public function setServiceAgentType($serviceAgentType)
229+
{
230+
$this->serviceAgentType = $serviceAgentType;
231+
}
232+
/**
233+
* @return string
234+
*/
235+
public function getServiceAgentType()
236+
{
237+
return $this->serviceAgentType;
238+
}
203239
/**
204240
* @param GoogleCloudAiplatformV1FeatureViewSyncConfig
205241
*/

src/Aiplatform/GoogleCloudAiplatformV1FileData.php

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

2020
class GoogleCloudAiplatformV1FileData extends \Google\Model
2121
{
22+
/**
23+
* @var string
24+
*/
25+
public $displayName;
2226
/**
2327
* @var string
2428
*/
@@ -28,6 +32,20 @@ class GoogleCloudAiplatformV1FileData extends \Google\Model
2832
*/
2933
public $mimeType;
3034

35+
/**
36+
* @param string
37+
*/
38+
public function setDisplayName($displayName)
39+
{
40+
$this->displayName = $displayName;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getDisplayName()
46+
{
47+
return $this->displayName;
48+
}
3149
/**
3250
* @param string
3351
*/

0 commit comments

Comments
 (0)