Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
195 changes: 195 additions & 0 deletions src/DiscoveryEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ class DiscoveryEngine extends \Google\Service
public $projects_locations_collections_dataStores_widgetConfigs;
public $projects_locations_collections_engines;
public $projects_locations_collections_engines_assistants;
public $projects_locations_collections_engines_assistants_agents;
public $projects_locations_collections_engines_assistants_agents_message;
public $projects_locations_collections_engines_assistants_agents_operations;
public $projects_locations_collections_engines_assistants_agents_tasks;
public $projects_locations_collections_engines_assistants_agents_tasks_pushNotificationConfigs;
public $projects_locations_collections_engines_completionConfig;
public $projects_locations_collections_engines_controls;
public $projects_locations_collections_engines_conversations;
Expand Down Expand Up @@ -2008,6 +2012,56 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
]
]
);
$this->projects_locations_collections_engines_assistants_agents = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsEnginesAssistantsAgents(
$this,
$this->serviceName,
'agents',
[
'methods' => [
'getCard' => [
'path' => '{+tenant}/card',
'httpMethod' => 'GET',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->projects_locations_collections_engines_assistants_agents_message = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage(
$this,
$this->serviceName,
'message',
[
'methods' => [
'send' => [
'path' => '{+tenant}/message:send',
'httpMethod' => 'POST',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'stream' => [
'path' => '{+tenant}/message:stream',
'httpMethod' => 'POST',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->projects_locations_collections_engines_assistants_agents_operations = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsEnginesAssistantsAgentsOperations(
$this,
$this->serviceName,
Expand All @@ -2028,6 +2082,147 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
]
]
);
$this->projects_locations_collections_engines_assistants_agents_tasks = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks(
$this,
$this->serviceName,
'tasks',
[
'methods' => [
'cancel' => [
'path' => '{+tenant}/{+name}:cancel',
'httpMethod' => 'POST',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => '{+tenant}/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'historyLength' => [
'location' => 'query',
'type' => 'integer',
],
],
],'subscribe' => [
'path' => '{+tenant}/{+name}:subscribe',
'httpMethod' => 'GET',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
$this->projects_locations_collections_engines_assistants_agents_tasks_pushNotificationConfigs = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs(
$this,
$this->serviceName,
'pushNotificationConfigs',
[
'methods' => [
'create' => [
'path' => '{+tenant}/{+parent}',
'httpMethod' => 'POST',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'configId' => [
'location' => 'query',
'type' => 'string',
],
],
],'delete' => [
'path' => '{+tenant}/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => '{+tenant}/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => '{+tenant}/{+parent}/pushNotificationConfigs',
'httpMethod' => 'GET',
'parameters' => [
'tenant' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->projects_locations_collections_engines_completionConfig = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsEnginesCompletionConfig(
$this,
$this->serviceName,
Expand Down
92 changes: 92 additions & 0 deletions src/DiscoveryEngine/A2aV1APIKeySecurityScheme.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?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 A2aV1APIKeySecurityScheme extends \Google\Model
{
/**
* Description of this security scheme.
*
* @var string
*/
public $description;
/**
* Location of the API key, valid values are "query", "header", or "cookie"
*
* @var string
*/
public $location;
/**
* Name of the header, query or cookie parameter to be used.
*
* @var string
*/
public $name;

/**
* Description of this security scheme.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Location of the API key, valid values are "query", "header", or "cookie"
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Name of the header, query or cookie parameter to be used.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(A2aV1APIKeySecurityScheme::class, 'Google_Service_DiscoveryEngine_A2aV1APIKeySecurityScheme');
89 changes: 89 additions & 0 deletions src/DiscoveryEngine/A2aV1AgentCapabilities.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?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 A2aV1AgentCapabilities extends \Google\Collection
{
protected $collection_key = 'extensions';
protected $extensionsType = A2aV1AgentExtension::class;
protected $extensionsDataType = 'array';
/**
* If the agent can send push notifications to the clients webhook
*
* @var bool
*/
public $pushNotifications;
/**
* If the agent will support streaming responses
*
* @var bool
*/
public $streaming;

/**
* Extensions supported by this agent.
*
* @param A2aV1AgentExtension[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return A2aV1AgentExtension[]
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* If the agent can send push notifications to the clients webhook
*
* @param bool $pushNotifications
*/
public function setPushNotifications($pushNotifications)
{
$this->pushNotifications = $pushNotifications;
}
/**
* @return bool
*/
public function getPushNotifications()
{
return $this->pushNotifications;
}
/**
* If the agent will support streaming responses
*
* @param bool $streaming
*/
public function setStreaming($streaming)
{
$this->streaming = $streaming;
}
/**
* @return bool
*/
public function getStreaming()
{
return $this->streaming;
}
}

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