Skip to content

Commit

Permalink
Regenerate discoveryengine client (#6035)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Dec 19, 2024
1 parent 6c5baca commit 0532c95
Show file tree
Hide file tree
Showing 45 changed files with 3,332 additions and 3 deletions.
21 changes: 21 additions & 0 deletions src/DiscoveryEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DiscoveryEngine extends \Google\Service
"https://www.googleapis.com/auth/cloud-platform";

public $projects;
public $projects_locations;
public $projects_locations_collections_dataConnector_operations;
public $projects_locations_collections_dataStores;
public $projects_locations_collections_dataStores_branches;
Expand Down Expand Up @@ -131,6 +132,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
]
]
);
$this->projects_locations = new DiscoveryEngine\Resource\ProjectsLocations(
$this,
$this->serviceName,
'locations',
[
'methods' => [
'generateGroundedContent' => [
'path' => 'v1/{+location}:generateGroundedContent',
'httpMethod' => 'POST',
'parameters' => [
'location' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->projects_locations_collections_dataConnector_operations = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsDataConnectorOperations(
$this,
$this->serviceName,
Expand Down
19 changes: 18 additions & 1 deletion src/DiscoveryEngine/GoogleCloudDiscoveryengineV1CmekConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@

namespace Google\Service\DiscoveryEngine;

class GoogleCloudDiscoveryengineV1CmekConfig extends \Google\Model
class GoogleCloudDiscoveryengineV1CmekConfig extends \Google\Collection
{
protected $collection_key = 'singleRegionKeys';
/**
* @var bool
*/
Expand All @@ -39,6 +40,8 @@ class GoogleCloudDiscoveryengineV1CmekConfig extends \Google\Model
* @var string
*/
public $name;
protected $singleRegionKeysType = GoogleCloudDiscoveryengineV1SingleRegionKey::class;
protected $singleRegionKeysDataType = 'array';
/**
* @var string
*/
Expand Down Expand Up @@ -114,6 +117,20 @@ public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudDiscoveryengineV1SingleRegionKey[]
*/
public function setSingleRegionKeys($singleRegionKeys)
{
$this->singleRegionKeys = $singleRegionKeys;
}
/**
* @return GoogleCloudDiscoveryengineV1SingleRegionKey[]
*/
public function getSingleRegionKeys()
{
return $this->singleRegionKeys;
}
/**
* @param string
*/
Expand Down
18 changes: 18 additions & 0 deletions src/DiscoveryEngine/GoogleCloudDiscoveryengineV1DataStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class GoogleCloudDiscoveryengineV1DataStore extends \Google\Collection
* @var string
*/
public $industryVertical;
/**
* @var bool
*/
public $isInfobotFaqDataStore;
/**
* @var string
*/
Expand Down Expand Up @@ -193,6 +197,20 @@ public function getIndustryVertical()
{
return $this->industryVertical;
}
/**
* @param bool
*/
public function setIsInfobotFaqDataStore($isInfobotFaqDataStore)
{
$this->isInfobotFaqDataStore = $isInfobotFaqDataStore;
}
/**
* @return bool
*/
public function getIsInfobotFaqDataStore()
{
return $this->isInfobotFaqDataStore;
}
/**
* @param string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class GoogleCloudDiscoveryengineV1DocumentIndexStatus extends \Google\Collection
* @var string
*/
public $indexTime;
/**
* @var string
*/
public $pendingMessage;

/**
* @param GoogleRpcStatus[]
Expand Down Expand Up @@ -55,6 +59,20 @@ public function getIndexTime()
{
return $this->indexTime;
}
/**
* @param string
*/
public function setPendingMessage($pendingMessage)
{
$this->pendingMessage = $pendingMessage;
}
/**
* @return string
*/
public function getPendingMessage()
{
return $this->pendingMessage;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\DiscoveryEngine;

class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest extends \Google\Collection
{
protected $collection_key = 'contents';
protected $contentsType = GoogleCloudDiscoveryengineV1GroundedGenerationContent::class;
protected $contentsDataType = 'array';
protected $generationSpecType = GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec::class;
protected $generationSpecDataType = '';
protected $groundingSpecType = GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec::class;
protected $groundingSpecDataType = '';
protected $systemInstructionType = GoogleCloudDiscoveryengineV1GroundedGenerationContent::class;
protected $systemInstructionDataType = '';
/**
* @var string[]
*/
public $userLabels;

/**
* @param GoogleCloudDiscoveryengineV1GroundedGenerationContent[]
*/
public function setContents($contents)
{
$this->contents = $contents;
}
/**
* @return GoogleCloudDiscoveryengineV1GroundedGenerationContent[]
*/
public function getContents()
{
return $this->contents;
}
/**
* @param GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec
*/
public function setGenerationSpec(GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec $generationSpec)
{
$this->generationSpec = $generationSpec;
}
/**
* @return GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec
*/
public function getGenerationSpec()
{
return $this->generationSpec;
}
/**
* @param GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec
*/
public function setGroundingSpec(GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec $groundingSpec)
{
$this->groundingSpec = $groundingSpec;
}
/**
* @return GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec
*/
public function getGroundingSpec()
{
return $this->groundingSpec;
}
/**
* @param GoogleCloudDiscoveryengineV1GroundedGenerationContent
*/
public function setSystemInstruction(GoogleCloudDiscoveryengineV1GroundedGenerationContent $systemInstruction)
{
$this->systemInstruction = $systemInstruction;
}
/**
* @return GoogleCloudDiscoveryengineV1GroundedGenerationContent
*/
public function getSystemInstruction()
{
return $this->systemInstruction;
}
/**
* @param string[]
*/
public function setUserLabels($userLabels)
{
$this->userLabels = $userLabels;
}
/**
* @return string[]
*/
public function getUserLabels()
{
return $this->userLabels;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest');
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\DiscoveryEngine;

class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfiguration extends \Google\Model
{
protected $predictorType = GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor::class;
protected $predictorDataType = '';

/**
* @param GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor
*/
public function setPredictor(GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor $predictor)
{
$this->predictor = $predictor;
}
/**
* @return GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor
*/
public function getPredictor()
{
return $this->predictor;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfiguration::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfiguration');
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\DiscoveryEngine;

class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor extends \Google\Model
{
/**
* @var float
*/
public $threshold;
/**
* @var string
*/
public $version;

/**
* @param float
*/
public function setThreshold($threshold)
{
$this->threshold = $threshold;
}
/**
* @return float
*/
public function getThreshold()
{
return $this->threshold;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor');
Loading

0 comments on commit 0532c95

Please sign in to comment.