diff --git a/src/DiscoveryEngine.php b/src/DiscoveryEngine.php index 7be577bb70..7cbe52e2eb 100644 --- a/src/DiscoveryEngine.php +++ b/src/DiscoveryEngine.php @@ -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; @@ -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, @@ -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, diff --git a/src/DiscoveryEngine/A2aV1APIKeySecurityScheme.php b/src/DiscoveryEngine/A2aV1APIKeySecurityScheme.php new file mode 100644 index 0000000000..292ba1e18b --- /dev/null +++ b/src/DiscoveryEngine/A2aV1APIKeySecurityScheme.php @@ -0,0 +1,92 @@ +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'); diff --git a/src/DiscoveryEngine/A2aV1AgentCapabilities.php b/src/DiscoveryEngine/A2aV1AgentCapabilities.php new file mode 100644 index 0000000000..364a6041a8 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AgentCapabilities.php @@ -0,0 +1,89 @@ +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'); diff --git a/src/DiscoveryEngine/A2aV1AgentCard.php b/src/DiscoveryEngine/A2aV1AgentCard.php new file mode 100644 index 0000000000..3baf18d466 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AgentCard.php @@ -0,0 +1,416 @@ +additionalInterfaces = $additionalInterfaces; + } + /** + * @return A2aV1AgentInterface[] + */ + public function getAdditionalInterfaces() + { + return $this->additionalInterfaces; + } + /** + * A2A Capability set supported by the agent. + * + * @param A2aV1AgentCapabilities $capabilities + */ + public function setCapabilities(A2aV1AgentCapabilities $capabilities) + { + $this->capabilities = $capabilities; + } + /** + * @return A2aV1AgentCapabilities + */ + public function getCapabilities() + { + return $this->capabilities; + } + /** + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED The set of interaction + * modes that the agent supports across all skills. This can be overridden per + * skill. Defined as mime types. + * + * @param string[] $defaultInputModes + */ + public function setDefaultInputModes($defaultInputModes) + { + $this->defaultInputModes = $defaultInputModes; + } + /** + * @return string[] + */ + public function getDefaultInputModes() + { + return $this->defaultInputModes; + } + /** + * The mime types supported as outputs from this agent. + * + * @param string[] $defaultOutputModes + */ + public function setDefaultOutputModes($defaultOutputModes) + { + $this->defaultOutputModes = $defaultOutputModes; + } + /** + * @return string[] + */ + public function getDefaultOutputModes() + { + return $this->defaultOutputModes; + } + /** + * A description of the agent's domain of action/solution space. Example: + * "Agent that helps users with recipes and cooking." + * + * @param string $description + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * A url to provide additional documentation about the agent. + * + * @param string $documentationUrl + */ + public function setDocumentationUrl($documentationUrl) + { + $this->documentationUrl = $documentationUrl; + } + /** + * @return string + */ + public function getDocumentationUrl() + { + return $this->documentationUrl; + } + /** + * An optional URL to an icon for the agent. + * + * @param string $iconUrl + */ + public function setIconUrl($iconUrl) + { + $this->iconUrl = $iconUrl; + } + /** + * @return string + */ + public function getIconUrl() + { + return $this->iconUrl; + } + /** + * A human readable name for the agent. Example: "Recipe Agent" + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * The transport of the preferred endpoint. If empty, defaults to JSONRPC. + * + * @param string $preferredTransport + */ + public function setPreferredTransport($preferredTransport) + { + $this->preferredTransport = $preferredTransport; + } + /** + * @return string + */ + public function getPreferredTransport() + { + return $this->preferredTransport; + } + /** + * The version of the A2A protocol this agent supports. + * + * @param string $protocolVersion + */ + public function setProtocolVersion($protocolVersion) + { + $this->protocolVersion = $protocolVersion; + } + /** + * @return string + */ + public function getProtocolVersion() + { + return $this->protocolVersion; + } + /** + * The service provider of the agent. + * + * @param A2aV1AgentProvider $provider + */ + public function setProvider(A2aV1AgentProvider $provider) + { + $this->provider = $provider; + } + /** + * @return A2aV1AgentProvider + */ + public function getProvider() + { + return $this->provider; + } + /** + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security requirements for + * contacting the agent. This list can be seen as an OR of ANDs. Each object + * in the list describes one possible set of security requirements that must + * be present on a request. This allows specifying, for example, "callers must + * either use OAuth OR an API Key AND mTLS." Example: security { schemes { + * key: "oauth" value { list: ["read"] } } } security { schemes { key: "api- + * key" } schemes { key: "mtls" } } + * + * @param A2aV1Security[] $security + */ + public function setSecurity($security) + { + $this->security = $security; + } + /** + * @return A2aV1Security[] + */ + public function getSecurity() + { + return $this->security; + } + /** + * The security scheme details used for authenticating with this agent. + * + * @param A2aV1SecurityScheme[] $securitySchemes + */ + public function setSecuritySchemes($securitySchemes) + { + $this->securitySchemes = $securitySchemes; + } + /** + * @return A2aV1SecurityScheme[] + */ + public function getSecuritySchemes() + { + return $this->securitySchemes; + } + /** + * JSON Web Signatures computed for this AgentCard. + * + * @param A2aV1AgentCardSignature[] $signatures + */ + public function setSignatures($signatures) + { + $this->signatures = $signatures; + } + /** + * @return A2aV1AgentCardSignature[] + */ + public function getSignatures() + { + return $this->signatures; + } + /** + * Skills represent a unit of ability an agent can perform. This may somewhat + * abstract but represents a more focused set of actions that the agent is + * highly likely to succeed at. + * + * @param A2aV1AgentSkill[] $skills + */ + public function setSkills($skills) + { + $this->skills = $skills; + } + /** + * @return A2aV1AgentSkill[] + */ + public function getSkills() + { + return $this->skills; + } + /** + * Whether the agent supports providing an extended agent card when the user + * is authenticated, i.e. is the card from .well-known different than the card + * from GetAgentCard. + * + * @param bool $supportsAuthenticatedExtendedCard + */ + public function setSupportsAuthenticatedExtendedCard($supportsAuthenticatedExtendedCard) + { + $this->supportsAuthenticatedExtendedCard = $supportsAuthenticatedExtendedCard; + } + /** + * @return bool + */ + public function getSupportsAuthenticatedExtendedCard() + { + return $this->supportsAuthenticatedExtendedCard; + } + /** + * A URL to the address the agent is hosted at. This represents the preferred + * endpoint as declared by the agent. + * + * @param string $url + */ + public function setUrl($url) + { + $this->url = $url; + } + /** + * @return string + */ + public function getUrl() + { + return $this->url; + } + /** + * The version of the agent. Example: "1.0.0" + * + * @param string $version + */ + 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(A2aV1AgentCard::class, 'Google_Service_DiscoveryEngine_A2aV1AgentCard'); diff --git a/src/DiscoveryEngine/A2aV1AgentCardSignature.php b/src/DiscoveryEngine/A2aV1AgentCardSignature.php new file mode 100644 index 0000000000..c6f827321b --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AgentCardSignature.php @@ -0,0 +1,94 @@ +header = $header; + } + /** + * @return array[] + */ + public function getHeader() + { + return $this->header; + } + /** + * Required. The protected JWS header for the signature. This is always a + * base64url-encoded JSON object. Required. + * + * @param string $protected + */ + public function setProtected($protected) + { + $this->protected = $protected; + } + /** + * @return string + */ + public function getProtected() + { + return $this->protected; + } + /** + * Required. The computed signature, base64url-encoded. Required. + * + * @param string $signature + */ + public function setSignature($signature) + { + $this->signature = $signature; + } + /** + * @return string + */ + public function getSignature() + { + return $this->signature; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1AgentCardSignature::class, 'Google_Service_DiscoveryEngine_A2aV1AgentCardSignature'); diff --git a/src/DiscoveryEngine/A2aV1AgentExtension.php b/src/DiscoveryEngine/A2aV1AgentExtension.php new file mode 100644 index 0000000000..a35058c33c --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AgentExtension.php @@ -0,0 +1,120 @@ +description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * Optional configuration for the extension. + * + * @param array[] $params + */ + public function setParams($params) + { + $this->params = $params; + } + /** + * @return array[] + */ + public function getParams() + { + return $this->params; + } + /** + * Whether the client must follow specific requirements of the extension. + * Example: false + * + * @param bool $required + */ + public function setRequired($required) + { + $this->required = $required; + } + /** + * @return bool + */ + public function getRequired() + { + return $this->required; + } + /** + * The URI of the extension. Example: + * "https://developers.google.com/identity/protocols/oauth2" + * + * @param string $uri + */ + public function setUri($uri) + { + $this->uri = $uri; + } + /** + * @return string + */ + public function getUri() + { + return $this->uri; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1AgentExtension::class, 'Google_Service_DiscoveryEngine_A2aV1AgentExtension'); diff --git a/src/DiscoveryEngine/A2aV1AgentInterface.php b/src/DiscoveryEngine/A2aV1AgentInterface.php new file mode 100644 index 0000000000..e099107f2a --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AgentInterface.php @@ -0,0 +1,98 @@ +tenant = $tenant; + } + /** + * @return string + */ + public function getTenant() + { + return $this->tenant; + } + /** + * The transport supported this url. This is an open form string, to be easily + * extended for many transport protocols. The core ones officially supported + * are JSONRPC, GRPC and HTTP+JSON. + * + * @param string $transport + */ + public function setTransport($transport) + { + $this->transport = $transport; + } + /** + * @return string + */ + public function getTransport() + { + return $this->transport; + } + /** + * The url this interface is found at. + * + * @param string $url + */ + public function setUrl($url) + { + $this->url = $url; + } + /** + * @return string + */ + public function getUrl() + { + return $this->url; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1AgentInterface::class, 'Google_Service_DiscoveryEngine_A2aV1AgentInterface'); diff --git a/src/DiscoveryEngine/A2aV1AgentProvider.php b/src/DiscoveryEngine/A2aV1AgentProvider.php new file mode 100644 index 0000000000..357f9539fa --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AgentProvider.php @@ -0,0 +1,70 @@ +organization = $organization; + } + /** + * @return string + */ + public function getOrganization() + { + return $this->organization; + } + /** + * The providers reference url Example: "https://ai.google.dev" + * + * @param string $url + */ + public function setUrl($url) + { + $this->url = $url; + } + /** + * @return string + */ + public function getUrl() + { + return $this->url; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1AgentProvider::class, 'Google_Service_DiscoveryEngine_A2aV1AgentProvider'); diff --git a/src/DiscoveryEngine/A2aV1AgentSkill.php b/src/DiscoveryEngine/A2aV1AgentSkill.php new file mode 100644 index 0000000000..3312ad4939 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AgentSkill.php @@ -0,0 +1,210 @@ +description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * A set of example queries that this skill is designed to address. These + * examples should help the caller to understand how to craft requests to the + * agent to achieve specific goals. Example: ["I need a recipe for bread"] + * + * @param string[] $examples + */ + public function setExamples($examples) + { + $this->examples = $examples; + } + /** + * @return string[] + */ + public function getExamples() + { + return $this->examples; + } + /** + * Unique identifier of the skill within this agent. + * + * @param string $id + */ + public function setId($id) + { + $this->id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * Possible input modalities supported. + * + * @param string[] $inputModes + */ + public function setInputModes($inputModes) + { + $this->inputModes = $inputModes; + } + /** + * @return string[] + */ + public function getInputModes() + { + return $this->inputModes; + } + /** + * A human readable name for the skill. + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Possible output modalities produced + * + * @param string[] $outputModes + */ + public function setOutputModes($outputModes) + { + $this->outputModes = $outputModes; + } + /** + * @return string[] + */ + public function getOutputModes() + { + return $this->outputModes; + } + /** + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes + * necessary for the agent to leverage this skill. As in the overall + * AgentCard.security, this list represents a logical OR of security + * requirement objects. Each object is a set of security schemes that must be + * used together (a logical AND). protolint:enable + * REPEATED_FIELD_NAMES_PLURALIZED + * + * @param A2aV1Security[] $security + */ + public function setSecurity($security) + { + $this->security = $security; + } + /** + * @return A2aV1Security[] + */ + public function getSecurity() + { + return $this->security; + } + /** + * A set of tags for the skill to enhance categorization/utilization. Example: + * ["cooking", "customer support", "billing"] + * + * @param string[] $tags + */ + public function setTags($tags) + { + $this->tags = $tags; + } + /** + * @return string[] + */ + public function getTags() + { + return $this->tags; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1AgentSkill::class, 'Google_Service_DiscoveryEngine_A2aV1AgentSkill'); diff --git a/src/DiscoveryEngine/A2aV1Artifact.php b/src/DiscoveryEngine/A2aV1Artifact.php new file mode 100644 index 0000000000..6b73856a89 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1Artifact.php @@ -0,0 +1,157 @@ +artifactId = $artifactId; + } + /** + * @return string + */ + public function getArtifactId() + { + return $this->artifactId; + } + /** + * A human readable description of the artifact, optional. + * + * @param string $description + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * The URIs of extensions that are present or contributed to this Artifact. + * + * @param string[] $extensions + */ + public function setExtensions($extensions) + { + $this->extensions = $extensions; + } + /** + * @return string[] + */ + public function getExtensions() + { + return $this->extensions; + } + /** + * Optional metadata included with the artifact. + * + * @param array[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return array[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * A human readable name for the artifact. + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * The content of the artifact. + * + * @param A2aV1Part[] $parts + */ + public function setParts($parts) + { + $this->parts = $parts; + } + /** + * @return A2aV1Part[] + */ + public function getParts() + { + return $this->parts; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1Artifact::class, 'Google_Service_DiscoveryEngine_A2aV1Artifact'); diff --git a/src/DiscoveryEngine/A2aV1AuthenticationInfo.php b/src/DiscoveryEngine/A2aV1AuthenticationInfo.php new file mode 100644 index 0000000000..70efb39517 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AuthenticationInfo.php @@ -0,0 +1,71 @@ +credentials = $credentials; + } + /** + * @return string + */ + public function getCredentials() + { + return $this->credentials; + } + /** + * Supported authentication schemes - e.g. Basic, Bearer, etc + * + * @param string[] $schemes + */ + public function setSchemes($schemes) + { + $this->schemes = $schemes; + } + /** + * @return string[] + */ + public function getSchemes() + { + return $this->schemes; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1AuthenticationInfo::class, 'Google_Service_DiscoveryEngine_A2aV1AuthenticationInfo'); diff --git a/src/DiscoveryEngine/A2aV1AuthorizationCodeOAuthFlow.php b/src/DiscoveryEngine/A2aV1AuthorizationCodeOAuthFlow.php new file mode 100644 index 0000000000..84d02ee938 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1AuthorizationCodeOAuthFlow.php @@ -0,0 +1,122 @@ +authorizationUrl = $authorizationUrl; + } + /** + * @return string + */ + public function getAuthorizationUrl() + { + return $this->authorizationUrl; + } + /** + * The URL to be used for obtaining refresh tokens. This MUST be in the form + * of a URL. The OAuth2 standard requires the use of TLS. + * + * @param string $refreshUrl + */ + public function setRefreshUrl($refreshUrl) + { + $this->refreshUrl = $refreshUrl; + } + /** + * @return string + */ + public function getRefreshUrl() + { + return $this->refreshUrl; + } + /** + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + * + * @param string[] $scopes + */ + public function setScopes($scopes) + { + $this->scopes = $scopes; + } + /** + * @return string[] + */ + public function getScopes() + { + return $this->scopes; + } + /** + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + * + * @param string $tokenUrl + */ + public function setTokenUrl($tokenUrl) + { + $this->tokenUrl = $tokenUrl; + } + /** + * @return string + */ + public function getTokenUrl() + { + return $this->tokenUrl; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1AuthorizationCodeOAuthFlow::class, 'Google_Service_DiscoveryEngine_A2aV1AuthorizationCodeOAuthFlow'); diff --git a/src/DiscoveryEngine/A2aV1CancelTaskRequest.php b/src/DiscoveryEngine/A2aV1CancelTaskRequest.php new file mode 100644 index 0000000000..7047c8b176 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1CancelTaskRequest.php @@ -0,0 +1,25 @@ +refreshUrl = $refreshUrl; + } + /** + * @return string + */ + public function getRefreshUrl() + { + return $this->refreshUrl; + } + /** + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + * + * @param string[] $scopes + */ + public function setScopes($scopes) + { + $this->scopes = $scopes; + } + /** + * @return string[] + */ + public function getScopes() + { + return $this->scopes; + } + /** + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + * + * @param string $tokenUrl + */ + public function setTokenUrl($tokenUrl) + { + $this->tokenUrl = $tokenUrl; + } + /** + * @return string + */ + public function getTokenUrl() + { + return $this->tokenUrl; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1ClientCredentialsOAuthFlow::class, 'Google_Service_DiscoveryEngine_A2aV1ClientCredentialsOAuthFlow'); diff --git a/src/DiscoveryEngine/A2aV1DataPart.php b/src/DiscoveryEngine/A2aV1DataPart.php new file mode 100644 index 0000000000..7d1e1b180c --- /dev/null +++ b/src/DiscoveryEngine/A2aV1DataPart.php @@ -0,0 +1,44 @@ +data = $data; + } + /** + * @return array[] + */ + public function getData() + { + return $this->data; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1DataPart::class, 'Google_Service_DiscoveryEngine_A2aV1DataPart'); diff --git a/src/DiscoveryEngine/A2aV1FilePart.php b/src/DiscoveryEngine/A2aV1FilePart.php new file mode 100644 index 0000000000..f6531319f1 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1FilePart.php @@ -0,0 +1,98 @@ +fileWithBytes = $fileWithBytes; + } + /** + * @return string + */ + public function getFileWithBytes() + { + return $this->fileWithBytes; + } + /** + * @param string $fileWithUri + */ + public function setFileWithUri($fileWithUri) + { + $this->fileWithUri = $fileWithUri; + } + /** + * @return string + */ + public function getFileWithUri() + { + return $this->fileWithUri; + } + /** + * @param string $mimeType + */ + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + /** + * @return string + */ + public function getMimeType() + { + return $this->mimeType; + } + /** + * @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(A2aV1FilePart::class, 'Google_Service_DiscoveryEngine_A2aV1FilePart'); diff --git a/src/DiscoveryEngine/A2aV1HTTPAuthSecurityScheme.php b/src/DiscoveryEngine/A2aV1HTTPAuthSecurityScheme.php new file mode 100644 index 0000000000..144406aaba --- /dev/null +++ b/src/DiscoveryEngine/A2aV1HTTPAuthSecurityScheme.php @@ -0,0 +1,102 @@ +bearerFormat = $bearerFormat; + } + /** + * @return string + */ + public function getBearerFormat() + { + return $this->bearerFormat; + } + /** + * Description of this security scheme. + * + * @param string $description + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * The name of the HTTP Authentication scheme to be used in the Authorization + * header as defined in RFC7235. The values used SHOULD be registered in the + * IANA Authentication Scheme registry. The value is case-insensitive, as + * defined in RFC7235. + * + * @param string $scheme + */ + public function setScheme($scheme) + { + $this->scheme = $scheme; + } + /** + * @return string + */ + public function getScheme() + { + return $this->scheme; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1HTTPAuthSecurityScheme::class, 'Google_Service_DiscoveryEngine_A2aV1HTTPAuthSecurityScheme'); diff --git a/src/DiscoveryEngine/A2aV1ImplicitOAuthFlow.php b/src/DiscoveryEngine/A2aV1ImplicitOAuthFlow.php new file mode 100644 index 0000000000..1c3b9b335d --- /dev/null +++ b/src/DiscoveryEngine/A2aV1ImplicitOAuthFlow.php @@ -0,0 +1,98 @@ +authorizationUrl = $authorizationUrl; + } + /** + * @return string + */ + public function getAuthorizationUrl() + { + return $this->authorizationUrl; + } + /** + * The URL to be used for obtaining refresh tokens. This MUST be in the form + * of a URL. The OAuth2 standard requires the use of TLS. + * + * @param string $refreshUrl + */ + public function setRefreshUrl($refreshUrl) + { + $this->refreshUrl = $refreshUrl; + } + /** + * @return string + */ + public function getRefreshUrl() + { + return $this->refreshUrl; + } + /** + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + * + * @param string[] $scopes + */ + public function setScopes($scopes) + { + $this->scopes = $scopes; + } + /** + * @return string[] + */ + public function getScopes() + { + return $this->scopes; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1ImplicitOAuthFlow::class, 'Google_Service_DiscoveryEngine_A2aV1ImplicitOAuthFlow'); diff --git a/src/DiscoveryEngine/A2aV1ListTaskPushNotificationConfigResponse.php b/src/DiscoveryEngine/A2aV1ListTaskPushNotificationConfigResponse.php new file mode 100644 index 0000000000..86d177f391 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1ListTaskPushNotificationConfigResponse.php @@ -0,0 +1,69 @@ +configs = $configs; + } + /** + * @return A2aV1TaskPushNotificationConfig[] + */ + public function getConfigs() + { + return $this->configs; + } + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * @param string $nextPageToken + */ + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1ListTaskPushNotificationConfigResponse::class, 'Google_Service_DiscoveryEngine_A2aV1ListTaskPushNotificationConfigResponse'); diff --git a/src/DiscoveryEngine/A2aV1Message.php b/src/DiscoveryEngine/A2aV1Message.php new file mode 100644 index 0000000000..c85d738ada --- /dev/null +++ b/src/DiscoveryEngine/A2aV1Message.php @@ -0,0 +1,197 @@ +content = $content; + } + /** + * @return A2aV1Part[] + */ + public function getContent() + { + return $this->content; + } + /** + * The context id of the message. This is optional and if set, the message + * will be associated with the given context. + * + * @param string $contextId + */ + public function setContextId($contextId) + { + $this->contextId = $contextId; + } + /** + * @return string + */ + public function getContextId() + { + return $this->contextId; + } + /** + * The URIs of extensions that are present or contributed to this Message. + * + * @param string[] $extensions + */ + public function setExtensions($extensions) + { + $this->extensions = $extensions; + } + /** + * @return string[] + */ + public function getExtensions() + { + return $this->extensions; + } + /** + * The unique identifier (e.g. UUID)of the message. This is required and + * created by the message creator. + * + * @param string $messageId + */ + public function setMessageId($messageId) + { + $this->messageId = $messageId; + } + /** + * @return string + */ + public function getMessageId() + { + return $this->messageId; + } + /** + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to + * provide along with the message. + * + * @param array[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return array[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * A role for the message. + * + * Accepted values: ROLE_UNSPECIFIED, ROLE_USER, ROLE_AGENT + * + * @param self::ROLE_* $role + */ + public function setRole($role) + { + $this->role = $role; + } + /** + * @return self::ROLE_* + */ + public function getRole() + { + return $this->role; + } + /** + * The task id of the message. This is optional and if set, the message will + * be associated with the given task. + * + * @param string $taskId + */ + public function setTaskId($taskId) + { + $this->taskId = $taskId; + } + /** + * @return string + */ + public function getTaskId() + { + return $this->taskId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1Message::class, 'Google_Service_DiscoveryEngine_A2aV1Message'); diff --git a/src/DiscoveryEngine/A2aV1MutualTlsSecurityScheme.php b/src/DiscoveryEngine/A2aV1MutualTlsSecurityScheme.php new file mode 100644 index 0000000000..626fdfd6af --- /dev/null +++ b/src/DiscoveryEngine/A2aV1MutualTlsSecurityScheme.php @@ -0,0 +1,48 @@ +description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1MutualTlsSecurityScheme::class, 'Google_Service_DiscoveryEngine_A2aV1MutualTlsSecurityScheme'); diff --git a/src/DiscoveryEngine/A2aV1OAuth2SecurityScheme.php b/src/DiscoveryEngine/A2aV1OAuth2SecurityScheme.php new file mode 100644 index 0000000000..6feafc96b4 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1OAuth2SecurityScheme.php @@ -0,0 +1,90 @@ +description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * An object containing configuration information for the flow types supported + * + * @param A2aV1OAuthFlows $flows + */ + public function setFlows(A2aV1OAuthFlows $flows) + { + $this->flows = $flows; + } + /** + * @return A2aV1OAuthFlows + */ + public function getFlows() + { + return $this->flows; + } + /** + * URL to the oauth2 authorization server metadata + * [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required. + * + * @param string $oauth2MetadataUrl + */ + public function setOauth2MetadataUrl($oauth2MetadataUrl) + { + $this->oauth2MetadataUrl = $oauth2MetadataUrl; + } + /** + * @return string + */ + public function getOauth2MetadataUrl() + { + return $this->oauth2MetadataUrl; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1OAuth2SecurityScheme::class, 'Google_Service_DiscoveryEngine_A2aV1OAuth2SecurityScheme'); diff --git a/src/DiscoveryEngine/A2aV1OAuthFlows.php b/src/DiscoveryEngine/A2aV1OAuthFlows.php new file mode 100644 index 0000000000..2da8ccdfbf --- /dev/null +++ b/src/DiscoveryEngine/A2aV1OAuthFlows.php @@ -0,0 +1,90 @@ +authorizationCode = $authorizationCode; + } + /** + * @return A2aV1AuthorizationCodeOAuthFlow + */ + public function getAuthorizationCode() + { + return $this->authorizationCode; + } + /** + * @param A2aV1ClientCredentialsOAuthFlow $clientCredentials + */ + public function setClientCredentials(A2aV1ClientCredentialsOAuthFlow $clientCredentials) + { + $this->clientCredentials = $clientCredentials; + } + /** + * @return A2aV1ClientCredentialsOAuthFlow + */ + public function getClientCredentials() + { + return $this->clientCredentials; + } + /** + * @param A2aV1ImplicitOAuthFlow $implicit + */ + public function setImplicit(A2aV1ImplicitOAuthFlow $implicit) + { + $this->implicit = $implicit; + } + /** + * @return A2aV1ImplicitOAuthFlow + */ + public function getImplicit() + { + return $this->implicit; + } + /** + * @param A2aV1PasswordOAuthFlow $password + */ + public function setPassword(A2aV1PasswordOAuthFlow $password) + { + $this->password = $password; + } + /** + * @return A2aV1PasswordOAuthFlow + */ + public function getPassword() + { + return $this->password; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1OAuthFlows::class, 'Google_Service_DiscoveryEngine_A2aV1OAuthFlows'); diff --git a/src/DiscoveryEngine/A2aV1OpenIdConnectSecurityScheme.php b/src/DiscoveryEngine/A2aV1OpenIdConnectSecurityScheme.php new file mode 100644 index 0000000000..32819ab73f --- /dev/null +++ b/src/DiscoveryEngine/A2aV1OpenIdConnectSecurityScheme.php @@ -0,0 +1,72 @@ +description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * Well-known URL to discover the [[OpenID-Connect-Discovery]] provider + * metadata. + * + * @param string $openIdConnectUrl + */ + public function setOpenIdConnectUrl($openIdConnectUrl) + { + $this->openIdConnectUrl = $openIdConnectUrl; + } + /** + * @return string + */ + public function getOpenIdConnectUrl() + { + return $this->openIdConnectUrl; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1OpenIdConnectSecurityScheme::class, 'Google_Service_DiscoveryEngine_A2aV1OpenIdConnectSecurityScheme'); diff --git a/src/DiscoveryEngine/A2aV1Part.php b/src/DiscoveryEngine/A2aV1Part.php new file mode 100644 index 0000000000..dc1fc31254 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1Part.php @@ -0,0 +1,98 @@ +data = $data; + } + /** + * @return A2aV1DataPart + */ + public function getData() + { + return $this->data; + } + /** + * @param A2aV1FilePart $file + */ + public function setFile(A2aV1FilePart $file) + { + $this->file = $file; + } + /** + * @return A2aV1FilePart + */ + public function getFile() + { + return $this->file; + } + /** + * Optional metadata associated with this part. + * + * @param array[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return array[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * @param string $text + */ + public function setText($text) + { + $this->text = $text; + } + /** + * @return string + */ + public function getText() + { + return $this->text; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1Part::class, 'Google_Service_DiscoveryEngine_A2aV1Part'); diff --git a/src/DiscoveryEngine/A2aV1PasswordOAuthFlow.php b/src/DiscoveryEngine/A2aV1PasswordOAuthFlow.php new file mode 100644 index 0000000000..23caccf467 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1PasswordOAuthFlow.php @@ -0,0 +1,98 @@ +refreshUrl = $refreshUrl; + } + /** + * @return string + */ + public function getRefreshUrl() + { + return $this->refreshUrl; + } + /** + * The available scopes for the OAuth2 security scheme. A map between the + * scope name and a short description for it. The map MAY be empty. + * + * @param string[] $scopes + */ + public function setScopes($scopes) + { + $this->scopes = $scopes; + } + /** + * @return string[] + */ + public function getScopes() + { + return $this->scopes; + } + /** + * The token URL to be used for this flow. This MUST be in the form of a URL. + * The OAuth2 standard requires the use of TLS. + * + * @param string $tokenUrl + */ + public function setTokenUrl($tokenUrl) + { + $this->tokenUrl = $tokenUrl; + } + /** + * @return string + */ + public function getTokenUrl() + { + return $this->tokenUrl; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1PasswordOAuthFlow::class, 'Google_Service_DiscoveryEngine_A2aV1PasswordOAuthFlow'); diff --git a/src/DiscoveryEngine/A2aV1PushNotificationConfig.php b/src/DiscoveryEngine/A2aV1PushNotificationConfig.php new file mode 100644 index 0000000000..24982cc421 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1PushNotificationConfig.php @@ -0,0 +1,110 @@ +authentication = $authentication; + } + /** + * @return A2aV1AuthenticationInfo + */ + public function getAuthentication() + { + return $this->authentication; + } + /** + * A unique identifier (e.g. UUID) for this push notification. + * + * @param string $id + */ + public function setId($id) + { + $this->id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * Token unique for this task/session + * + * @param string $token + */ + public function setToken($token) + { + $this->token = $token; + } + /** + * @return string + */ + public function getToken() + { + return $this->token; + } + /** + * Url to send the notification too + * + * @param string $url + */ + public function setUrl($url) + { + $this->url = $url; + } + /** + * @return string + */ + public function getUrl() + { + return $this->url; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1PushNotificationConfig::class, 'Google_Service_DiscoveryEngine_A2aV1PushNotificationConfig'); diff --git a/src/DiscoveryEngine/A2aV1Security.php b/src/DiscoveryEngine/A2aV1Security.php new file mode 100644 index 0000000000..c35aa4aa41 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1Security.php @@ -0,0 +1,42 @@ +schemes = $schemes; + } + /** + * @return A2aV1StringList[] + */ + public function getSchemes() + { + return $this->schemes; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1Security::class, 'Google_Service_DiscoveryEngine_A2aV1Security'); diff --git a/src/DiscoveryEngine/A2aV1SecurityScheme.php b/src/DiscoveryEngine/A2aV1SecurityScheme.php new file mode 100644 index 0000000000..cb8b182213 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1SecurityScheme.php @@ -0,0 +1,106 @@ +apiKeySecurityScheme = $apiKeySecurityScheme; + } + /** + * @return A2aV1APIKeySecurityScheme + */ + public function getApiKeySecurityScheme() + { + return $this->apiKeySecurityScheme; + } + /** + * @param A2aV1HTTPAuthSecurityScheme $httpAuthSecurityScheme + */ + public function setHttpAuthSecurityScheme(A2aV1HTTPAuthSecurityScheme $httpAuthSecurityScheme) + { + $this->httpAuthSecurityScheme = $httpAuthSecurityScheme; + } + /** + * @return A2aV1HTTPAuthSecurityScheme + */ + public function getHttpAuthSecurityScheme() + { + return $this->httpAuthSecurityScheme; + } + /** + * @param A2aV1MutualTlsSecurityScheme $mtlsSecurityScheme + */ + public function setMtlsSecurityScheme(A2aV1MutualTlsSecurityScheme $mtlsSecurityScheme) + { + $this->mtlsSecurityScheme = $mtlsSecurityScheme; + } + /** + * @return A2aV1MutualTlsSecurityScheme + */ + public function getMtlsSecurityScheme() + { + return $this->mtlsSecurityScheme; + } + /** + * @param A2aV1OAuth2SecurityScheme $oauth2SecurityScheme + */ + public function setOauth2SecurityScheme(A2aV1OAuth2SecurityScheme $oauth2SecurityScheme) + { + $this->oauth2SecurityScheme = $oauth2SecurityScheme; + } + /** + * @return A2aV1OAuth2SecurityScheme + */ + public function getOauth2SecurityScheme() + { + return $this->oauth2SecurityScheme; + } + /** + * @param A2aV1OpenIdConnectSecurityScheme $openIdConnectSecurityScheme + */ + public function setOpenIdConnectSecurityScheme(A2aV1OpenIdConnectSecurityScheme $openIdConnectSecurityScheme) + { + $this->openIdConnectSecurityScheme = $openIdConnectSecurityScheme; + } + /** + * @return A2aV1OpenIdConnectSecurityScheme + */ + public function getOpenIdConnectSecurityScheme() + { + return $this->openIdConnectSecurityScheme; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1SecurityScheme::class, 'Google_Service_DiscoveryEngine_A2aV1SecurityScheme'); diff --git a/src/DiscoveryEngine/A2aV1SendMessageConfiguration.php b/src/DiscoveryEngine/A2aV1SendMessageConfiguration.php new file mode 100644 index 0000000000..182390e027 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1SendMessageConfiguration.php @@ -0,0 +1,119 @@ +acceptedOutputModes = $acceptedOutputModes; + } + /** + * @return string[] + */ + public function getAcceptedOutputModes() + { + return $this->acceptedOutputModes; + } + /** + * If true, the message will be blocking until the task is completed. If + * false, the message will be non-blocking and the task will be returned + * immediately. It is the caller's responsibility to check for any task + * updates. + * + * @param bool $blocking + */ + public function setBlocking($blocking) + { + $this->blocking = $blocking; + } + /** + * @return bool + */ + public function getBlocking() + { + return $this->blocking; + } + /** + * The maximum number of messages to include in the history. if 0, the history + * will be unlimited. + * + * @param int $historyLength + */ + public function setHistoryLength($historyLength) + { + $this->historyLength = $historyLength; + } + /** + * @return int + */ + public function getHistoryLength() + { + return $this->historyLength; + } + /** + * A configuration of a webhook that can be used to receive updates + * + * @param A2aV1PushNotificationConfig $pushNotification + */ + public function setPushNotification(A2aV1PushNotificationConfig $pushNotification) + { + $this->pushNotification = $pushNotification; + } + /** + * @return A2aV1PushNotificationConfig + */ + public function getPushNotification() + { + return $this->pushNotification; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1SendMessageConfiguration::class, 'Google_Service_DiscoveryEngine_A2aV1SendMessageConfiguration'); diff --git a/src/DiscoveryEngine/A2aV1SendMessageRequest.php b/src/DiscoveryEngine/A2aV1SendMessageRequest.php new file mode 100644 index 0000000000..fb6fbd97d7 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1SendMessageRequest.php @@ -0,0 +1,84 @@ +configuration = $configuration; + } + /** + * @return A2aV1SendMessageConfiguration + */ + public function getConfiguration() + { + return $this->configuration; + } + /** + * Required. The message to send to the agent. + * + * @param A2aV1Message $message + */ + public function setMessage(A2aV1Message $message) + { + $this->message = $message; + } + /** + * @return A2aV1Message + */ + public function getMessage() + { + return $this->message; + } + /** + * Optional metadata for the request. + * + * @param array[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return array[] + */ + public function getMetadata() + { + return $this->metadata; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1SendMessageRequest::class, 'Google_Service_DiscoveryEngine_A2aV1SendMessageRequest'); diff --git a/src/DiscoveryEngine/A2aV1SendMessageResponse.php b/src/DiscoveryEngine/A2aV1SendMessageResponse.php new file mode 100644 index 0000000000..7ef15ca7dd --- /dev/null +++ b/src/DiscoveryEngine/A2aV1SendMessageResponse.php @@ -0,0 +1,58 @@ +message = $message; + } + /** + * @return A2aV1Message + */ + public function getMessage() + { + return $this->message; + } + /** + * @param A2aV1Task $task + */ + public function setTask(A2aV1Task $task) + { + $this->task = $task; + } + /** + * @return A2aV1Task + */ + public function getTask() + { + return $this->task; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1SendMessageResponse::class, 'Google_Service_DiscoveryEngine_A2aV1SendMessageResponse'); diff --git a/src/DiscoveryEngine/A2aV1StreamResponse.php b/src/DiscoveryEngine/A2aV1StreamResponse.php new file mode 100644 index 0000000000..0614e663aa --- /dev/null +++ b/src/DiscoveryEngine/A2aV1StreamResponse.php @@ -0,0 +1,90 @@ +artifactUpdate = $artifactUpdate; + } + /** + * @return A2aV1TaskArtifactUpdateEvent + */ + public function getArtifactUpdate() + { + return $this->artifactUpdate; + } + /** + * @param A2aV1Message $message + */ + public function setMessage(A2aV1Message $message) + { + $this->message = $message; + } + /** + * @return A2aV1Message + */ + public function getMessage() + { + return $this->message; + } + /** + * @param A2aV1TaskStatusUpdateEvent $statusUpdate + */ + public function setStatusUpdate(A2aV1TaskStatusUpdateEvent $statusUpdate) + { + $this->statusUpdate = $statusUpdate; + } + /** + * @return A2aV1TaskStatusUpdateEvent + */ + public function getStatusUpdate() + { + return $this->statusUpdate; + } + /** + * @param A2aV1Task $task + */ + public function setTask(A2aV1Task $task) + { + $this->task = $task; + } + /** + * @return A2aV1Task + */ + public function getTask() + { + return $this->task; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1StreamResponse::class, 'Google_Service_DiscoveryEngine_A2aV1StreamResponse'); diff --git a/src/DiscoveryEngine/A2aV1StringList.php b/src/DiscoveryEngine/A2aV1StringList.php new file mode 100644 index 0000000000..b27ea5fb80 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1StringList.php @@ -0,0 +1,45 @@ +list = $list; + } + /** + * @return string[] + */ + public function getList() + { + return $this->list; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1StringList::class, 'Google_Service_DiscoveryEngine_A2aV1StringList'); diff --git a/src/DiscoveryEngine/A2aV1Task.php b/src/DiscoveryEngine/A2aV1Task.php new file mode 100644 index 0000000000..e1d21b34bc --- /dev/null +++ b/src/DiscoveryEngine/A2aV1Task.php @@ -0,0 +1,154 @@ +artifacts = $artifacts; + } + /** + * @return A2aV1Artifact[] + */ + public function getArtifacts() + { + return $this->artifacts; + } + /** + * Unique identifier (e.g. UUID) for the contextual collection of interactions + * (tasks and messages). Created by the A2A server. + * + * @param string $contextId + */ + public function setContextId($contextId) + { + $this->contextId = $contextId; + } + /** + * @return string + */ + public function getContextId() + { + return $this->contextId; + } + /** + * protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of + * interactions from a task. + * + * @param A2aV1Message[] $history + */ + public function setHistory($history) + { + $this->history = $history; + } + /** + * @return A2aV1Message[] + */ + public function getHistory() + { + return $this->history; + } + /** + * Unique identifier (e.g. UUID) for the task, generated by the server for a + * new task. + * + * @param string $id + */ + public function setId($id) + { + $this->id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to + * store custom metadata about a task. + * + * @param array[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return array[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * The current status of a Task, including state and a message. + * + * @param A2aV1TaskStatus $status + */ + public function setStatus(A2aV1TaskStatus $status) + { + $this->status = $status; + } + /** + * @return A2aV1TaskStatus + */ + public function getStatus() + { + return $this->status; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1Task::class, 'Google_Service_DiscoveryEngine_A2aV1Task'); diff --git a/src/DiscoveryEngine/A2aV1TaskArtifactUpdateEvent.php b/src/DiscoveryEngine/A2aV1TaskArtifactUpdateEvent.php new file mode 100644 index 0000000000..3bbe9832ed --- /dev/null +++ b/src/DiscoveryEngine/A2aV1TaskArtifactUpdateEvent.php @@ -0,0 +1,154 @@ +append = $append; + } + /** + * @return bool + */ + public function getAppend() + { + return $this->append; + } + /** + * The artifact itself + * + * @param A2aV1Artifact $artifact + */ + public function setArtifact(A2aV1Artifact $artifact) + { + $this->artifact = $artifact; + } + /** + * @return A2aV1Artifact + */ + public function getArtifact() + { + return $this->artifact; + } + /** + * The id of the context that this task belongs too + * + * @param string $contextId + */ + public function setContextId($contextId) + { + $this->contextId = $contextId; + } + /** + * @return string + */ + public function getContextId() + { + return $this->contextId; + } + /** + * Whether this represents the last part of an artifact + * + * @param bool $lastChunk + */ + public function setLastChunk($lastChunk) + { + $this->lastChunk = $lastChunk; + } + /** + * @return bool + */ + public function getLastChunk() + { + return $this->lastChunk; + } + /** + * Optional metadata associated with the artifact update. + * + * @param array[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return array[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * The id of the task for this artifact + * + * @param string $taskId + */ + public function setTaskId($taskId) + { + $this->taskId = $taskId; + } + /** + * @return string + */ + public function getTaskId() + { + return $this->taskId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1TaskArtifactUpdateEvent::class, 'Google_Service_DiscoveryEngine_A2aV1TaskArtifactUpdateEvent'); diff --git a/src/DiscoveryEngine/A2aV1TaskPushNotificationConfig.php b/src/DiscoveryEngine/A2aV1TaskPushNotificationConfig.php new file mode 100644 index 0000000000..28dcbffe61 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1TaskPushNotificationConfig.php @@ -0,0 +1,68 @@ +name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * The push notification configuration details. + * + * @param A2aV1PushNotificationConfig $pushNotificationConfig + */ + public function setPushNotificationConfig(A2aV1PushNotificationConfig $pushNotificationConfig) + { + $this->pushNotificationConfig = $pushNotificationConfig; + } + /** + * @return A2aV1PushNotificationConfig + */ + public function getPushNotificationConfig() + { + return $this->pushNotificationConfig; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1TaskPushNotificationConfig::class, 'Google_Service_DiscoveryEngine_A2aV1TaskPushNotificationConfig'); diff --git a/src/DiscoveryEngine/A2aV1TaskStatus.php b/src/DiscoveryEngine/A2aV1TaskStatus.php new file mode 100644 index 0000000000..a7cdcd0c88 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1TaskStatus.php @@ -0,0 +1,132 @@ +message = $message; + } + /** + * @return A2aV1Message + */ + public function getMessage() + { + return $this->message; + } + /** + * The current state of this task + * + * Accepted values: TASK_STATE_UNSPECIFIED, TASK_STATE_SUBMITTED, + * TASK_STATE_WORKING, TASK_STATE_COMPLETED, TASK_STATE_FAILED, + * TASK_STATE_CANCELLED, TASK_STATE_INPUT_REQUIRED, TASK_STATE_REJECTED, + * TASK_STATE_AUTH_REQUIRED + * + * @param self::STATE_* $state + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return self::STATE_* + */ + public function getState() + { + return $this->state; + } + /** + * Timestamp when the status was recorded. Example: "2023-10-27T10:00:00Z" + * + * @param string $timestamp + */ + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + /** + * @return string + */ + public function getTimestamp() + { + return $this->timestamp; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1TaskStatus::class, 'Google_Service_DiscoveryEngine_A2aV1TaskStatus'); diff --git a/src/DiscoveryEngine/A2aV1TaskStatusUpdateEvent.php b/src/DiscoveryEngine/A2aV1TaskStatusUpdateEvent.php new file mode 100644 index 0000000000..873c8325c1 --- /dev/null +++ b/src/DiscoveryEngine/A2aV1TaskStatusUpdateEvent.php @@ -0,0 +1,132 @@ +contextId = $contextId; + } + /** + * @return string + */ + public function getContextId() + { + return $this->contextId; + } + /** + * Whether this is the last status update expected for this task. + * + * @param bool $final + */ + public function setFinal($final) + { + $this->final = $final; + } + /** + * @return bool + */ + public function getFinal() + { + return $this->final; + } + /** + * Optional metadata to associate with the task update. + * + * @param array[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return array[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * The new status of the task. + * + * @param A2aV1TaskStatus $status + */ + public function setStatus(A2aV1TaskStatus $status) + { + $this->status = $status; + } + /** + * @return A2aV1TaskStatus + */ + public function getStatus() + { + return $this->status; + } + /** + * The id of the task that is changed + * + * @param string $taskId + */ + public function setTaskId($taskId) + { + $this->taskId = $taskId; + } + /** + * @return string + */ + public function getTaskId() + { + return $this->taskId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(A2aV1TaskStatusUpdateEvent::class, 'Google_Service_DiscoveryEngine_A2aV1TaskStatusUpdateEvent'); diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1DataConnector.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1DataConnector.php index 589890624c..3234d0f48d 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1DataConnector.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1DataConnector.php @@ -112,6 +112,10 @@ class GoogleCloudDiscoveryengineV1DataConnector extends \Google\Collection * Google Sites connector. */ public const CONNECTOR_TYPE_GOOGLE_SITES = 'GOOGLE_SITES'; + /** + * Remote MCP based connector. + */ + public const CONNECTOR_TYPE_REMOTE_MCP = 'REMOTE_MCP'; /** * Default value. */ @@ -581,7 +585,7 @@ public function getConnectorModes() * Accepted values: CONNECTOR_TYPE_UNSPECIFIED, THIRD_PARTY, GCP_FHIR, * BIG_QUERY, GCS, GOOGLE_MAIL, GOOGLE_CALENDAR, GOOGLE_DRIVE, * NATIVE_CLOUD_IDENTITY, THIRD_PARTY_FEDERATED, THIRD_PARTY_EUA, GCNV, - * GOOGLE_CHAT, GOOGLE_SITES + * GOOGLE_CHAT, GOOGLE_SITES, REMOTE_MCP * * @param self::CONNECTOR_TYPE_* $connectorType */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php index 5f0eeebc3a..39d0a89542 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php @@ -102,6 +102,14 @@ class GoogleCloudDiscoveryengineV1Engine extends \Google\Collection * @var string */ public $configurableBillingApproach; + /** + * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to tenant- + * specific information required for that connector. The structure of the + * tenant information string is connector-dependent. + * + * @var string[] + */ + public $connectorTenantInfo; /** * Output only. Timestamp the Recommendation Engine was created at. * @@ -304,6 +312,24 @@ public function getConfigurableBillingApproach() { return $this->configurableBillingApproach; } + /** + * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to tenant- + * specific information required for that connector. The structure of the + * tenant information string is connector-dependent. + * + * @param string[] $connectorTenantInfo + */ + public function setConnectorTenantInfo($connectorTenantInfo) + { + $this->connectorTenantInfo = $connectorTenantInfo; + } + /** + * @return string[] + */ + public function getConnectorTenantInfo() + { + return $this->connectorTenantInfo; + } /** * Output only. Timestamp the Recommendation Engine was created at. * diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1LicenseConfig.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1LicenseConfig.php index 8c865037df..cd0a717b01 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1LicenseConfig.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1LicenseConfig.php @@ -64,6 +64,10 @@ class GoogleCloudDiscoveryengineV1LicenseConfig extends \Google\Model * 3 years. */ public const SUBSCRIPTION_TERM_SUBSCRIPTION_TERM_THREE_YEARS = 'SUBSCRIPTION_TERM_THREE_YEARS'; + /** + * Custom term. Must set the end_date. + */ + public const SUBSCRIPTION_TERM_SUBSCRIPTION_TERM_CUSTOM = 'SUBSCRIPTION_TERM_CUSTOM'; /** * Default value. */ @@ -362,7 +366,7 @@ public function getState() * * Accepted values: SUBSCRIPTION_TERM_UNSPECIFIED, * SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, - * SUBSCRIPTION_TERM_THREE_YEARS + * SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_CUSTOM * * @param self::SUBSCRIPTION_TERM_* $subscriptionTerm */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaDataConnector.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaDataConnector.php index f1e46e91c5..adde73e076 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaDataConnector.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaDataConnector.php @@ -112,6 +112,10 @@ class GoogleCloudDiscoveryengineV1alphaDataConnector extends \Google\Collection * Google Sites connector. */ public const CONNECTOR_TYPE_GOOGLE_SITES = 'GOOGLE_SITES'; + /** + * Remote MCP based connector. + */ + public const CONNECTOR_TYPE_REMOTE_MCP = 'REMOTE_MCP'; /** * Default value. */ @@ -583,7 +587,7 @@ public function getConnectorModes() * Accepted values: CONNECTOR_TYPE_UNSPECIFIED, THIRD_PARTY, GCP_FHIR, * BIG_QUERY, GCS, GOOGLE_MAIL, GOOGLE_CALENDAR, GOOGLE_DRIVE, * NATIVE_CLOUD_IDENTITY, THIRD_PARTY_FEDERATED, THIRD_PARTY_EUA, GCNV, - * GOOGLE_CHAT, GOOGLE_SITES + * GOOGLE_CHAT, GOOGLE_SITES, REMOTE_MCP * * @param self::CONNECTOR_TYPE_* $connectorType */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php index ae3498e447..1d0acb312e 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php @@ -102,6 +102,14 @@ class GoogleCloudDiscoveryengineV1alphaEngine extends \Google\Collection * @var string */ public $configurableBillingApproach; + /** + * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to tenant- + * specific information required for that connector. The structure of the + * tenant information string is connector-dependent. + * + * @var string[] + */ + public $connectorTenantInfo; /** * Output only. Timestamp the Recommendation Engine was created at. * @@ -308,6 +316,24 @@ public function getConfigurableBillingApproach() { return $this->configurableBillingApproach; } + /** + * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to tenant- + * specific information required for that connector. The structure of the + * tenant information string is connector-dependent. + * + * @param string[] $connectorTenantInfo + */ + public function setConnectorTenantInfo($connectorTenantInfo) + { + $this->connectorTenantInfo = $connectorTenantInfo; + } + /** + * @return string[] + */ + public function getConnectorTenantInfo() + { + return $this->connectorTenantInfo; + } /** * Output only. Timestamp the Recommendation Engine was created at. * diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaLicenseConfig.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaLicenseConfig.php index 25d828564d..071ce911e3 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaLicenseConfig.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaLicenseConfig.php @@ -64,6 +64,10 @@ class GoogleCloudDiscoveryengineV1alphaLicenseConfig extends \Google\Model * 3 years. */ public const SUBSCRIPTION_TERM_SUBSCRIPTION_TERM_THREE_YEARS = 'SUBSCRIPTION_TERM_THREE_YEARS'; + /** + * Custom term. Must set the end_date. + */ + public const SUBSCRIPTION_TERM_SUBSCRIPTION_TERM_CUSTOM = 'SUBSCRIPTION_TERM_CUSTOM'; /** * Default value. */ @@ -380,7 +384,7 @@ public function getState() * * Accepted values: SUBSCRIPTION_TERM_UNSPECIFIED, * SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, - * SUBSCRIPTION_TERM_THREE_YEARS + * SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_CUSTOM * * @param self::SUBSCRIPTION_TERM_* $subscriptionTerm */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaSearchRequest.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaSearchRequest.php index 70e55b7e85..12a89fb8bc 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaSearchRequest.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaSearchRequest.php @@ -139,9 +139,8 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest extends \Google\Collection protected $naturalLanguageQueryUnderstandingSpecDataType = ''; /** * Optional. The maximum number of results to retrieve from each data store. - * If not specified, it will use the - * SearchRequest.data_store_specs.num_results if provided, otherwise there is - * no limit. + * If not specified, it will use the SearchRequest.DataStoreSpec.num_results + * if provided, otherwise there is no limit. * * @var int */ @@ -690,9 +689,8 @@ public function getNaturalLanguageQueryUnderstandingSpec() } /** * Optional. The maximum number of results to retrieve from each data store. - * If not specified, it will use the - * SearchRequest.data_store_specs.num_results if provided, otherwise there is - * no limit. + * If not specified, it will use the SearchRequest.DataStoreSpec.num_results + * if provided, otherwise there is no limit. * * @param int $numResultsPerDataStore */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php index e93dcfb14a..dfd7745993 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php @@ -102,6 +102,14 @@ class GoogleCloudDiscoveryengineV1betaEngine extends \Google\Collection * @var string */ public $configurableBillingApproach; + /** + * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to tenant- + * specific information required for that connector. The structure of the + * tenant information string is connector-dependent. + * + * @var string[] + */ + public $connectorTenantInfo; /** * Output only. Timestamp the Recommendation Engine was created at. * @@ -304,6 +312,24 @@ public function getConfigurableBillingApproach() { return $this->configurableBillingApproach; } + /** + * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to tenant- + * specific information required for that connector. The structure of the + * tenant information string is connector-dependent. + * + * @param string[] $connectorTenantInfo + */ + public function setConnectorTenantInfo($connectorTenantInfo) + { + $this->connectorTenantInfo = $connectorTenantInfo; + } + /** + * @return string[] + */ + public function getConnectorTenantInfo() + { + return $this->connectorTenantInfo; + } /** * Output only. Timestamp the Recommendation Engine was created at. * diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaLicenseConfig.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaLicenseConfig.php index fc1217abca..8f8c3c15bb 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaLicenseConfig.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaLicenseConfig.php @@ -64,6 +64,10 @@ class GoogleCloudDiscoveryengineV1betaLicenseConfig extends \Google\Model * 3 years. */ public const SUBSCRIPTION_TERM_SUBSCRIPTION_TERM_THREE_YEARS = 'SUBSCRIPTION_TERM_THREE_YEARS'; + /** + * Custom term. Must set the end_date. + */ + public const SUBSCRIPTION_TERM_SUBSCRIPTION_TERM_CUSTOM = 'SUBSCRIPTION_TERM_CUSTOM'; /** * Default value. */ @@ -362,7 +366,7 @@ public function getState() * * Accepted values: SUBSCRIPTION_TERM_UNSPECIFIED, * SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, - * SUBSCRIPTION_TERM_THREE_YEARS + * SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_CUSTOM * * @param self::SUBSCRIPTION_TERM_* $subscriptionTerm */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaSearchRequest.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaSearchRequest.php index 7bf719eacd..32c9a8fa18 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaSearchRequest.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaSearchRequest.php @@ -137,9 +137,8 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest extends \Google\Collection protected $naturalLanguageQueryUnderstandingSpecDataType = ''; /** * Optional. The maximum number of results to retrieve from each data store. - * If not specified, it will use the - * SearchRequest.data_store_specs.num_results if provided, otherwise there is - * no limit. + * If not specified, it will use the SearchRequest.DataStoreSpec.num_results + * if provided, otherwise there is no limit. * * @var int */ @@ -662,9 +661,8 @@ public function getNaturalLanguageQueryUnderstandingSpec() } /** * Optional. The maximum number of results to retrieve from each data store. - * If not specified, it will use the - * SearchRequest.data_store_specs.num_results if provided, otherwise there is - * no limit. + * If not specified, it will use the SearchRequest.DataStoreSpec.num_results + * if provided, otherwise there is no limit. * * @param int $numResultsPerDataStore */ diff --git a/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgents.php b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgents.php index 450cf96c2e..719170f47d 100644 --- a/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgents.php +++ b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgents.php @@ -17,6 +17,8 @@ namespace Google\Service\DiscoveryEngine\Resource; +use Google\Service\DiscoveryEngine\A2aV1AgentCard; + /** * The "agents" collection of methods. * Typical usage is: @@ -27,6 +29,21 @@ */ class ProjectsLocationsCollectionsEnginesAssistantsAgents extends \Google\Service\Resource { + /** + * GetAgentCard returns the agent card for the agent. (agents.getCard) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param array $optParams Optional parameters. + * @return A2aV1AgentCard + * @throws \Google\Service\Exception + */ + public function getCard($tenant, $optParams = []) + { + $params = ['tenant' => $tenant]; + $params = array_merge($params, $optParams); + return $this->call('getCard', [$params], A2aV1AgentCard::class); + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage.php b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage.php new file mode 100644 index 0000000000..92b12d73af --- /dev/null +++ b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage.php @@ -0,0 +1,72 @@ + + * $discoveryengineService = new Google\Service\DiscoveryEngine(...); + * $message = $discoveryengineService->projects_locations_collections_engines_assistants_agents_message; + * + */ +class ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage extends \Google\Service\Resource +{ + /** + * Send a message to the agent. This is a blocking call that will return the + * task once it is completed, or a LRO if requested. (message.send) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param A2aV1SendMessageRequest $postBody + * @param array $optParams Optional parameters. + * @return A2aV1SendMessageResponse + * @throws \Google\Service\Exception + */ + public function send($tenant, A2aV1SendMessageRequest $postBody, $optParams = []) + { + $params = ['tenant' => $tenant, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('send', [$params], A2aV1SendMessageResponse::class); + } + /** + * SendStreamingMessage is a streaming call that will return a stream of task + * update events until the Task is in an interrupted or terminal state. + * (message.stream) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param A2aV1SendMessageRequest $postBody + * @param array $optParams Optional parameters. + * @return A2aV1StreamResponse + * @throws \Google\Service\Exception + */ + public function stream($tenant, A2aV1SendMessageRequest $postBody, $optParams = []) + { + $params = ['tenant' => $tenant, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('stream', [$params], A2aV1StreamResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage'); diff --git a/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks.php b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks.php new file mode 100644 index 0000000000..36665b5dc5 --- /dev/null +++ b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks.php @@ -0,0 +1,96 @@ + + * $discoveryengineService = new Google\Service\DiscoveryEngine(...); + * $tasks = $discoveryengineService->projects_locations_collections_engines_assistants_agents_tasks; + * + */ +class ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks extends \Google\Service\Resource +{ + /** + * Cancel a task from the agent. If supported one should expect no more task + * updates for the task. (tasks.cancel) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param string $name The resource name of the task to cancel. Format: + * tasks/{task_id} + * @param A2aV1CancelTaskRequest $postBody + * @param array $optParams Optional parameters. + * @return A2aV1Task + * @throws \Google\Service\Exception + */ + public function cancel($tenant, $name, A2aV1CancelTaskRequest $postBody, $optParams = []) + { + $params = ['tenant' => $tenant, 'name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('cancel', [$params], A2aV1Task::class); + } + /** + * Get the current state of a task from the agent. (tasks.get) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param string $name Required. The resource name of the task. Format: + * tasks/{task_id} + * @param array $optParams Optional parameters. + * + * @opt_param int historyLength The number of most recent messages from the + * task's history to retrieve. + * @return A2aV1Task + * @throws \Google\Service\Exception + */ + public function get($tenant, $name, $optParams = []) + { + $params = ['tenant' => $tenant, 'name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], A2aV1Task::class); + } + /** + * TaskSubscription is a streaming call that will return a stream of task update + * events. This attaches the stream to an existing in process task. If the task + * is complete the stream will return the completed task (like GetTask) and + * close the stream. (tasks.subscribe) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param string $name The resource name of the task to subscribe to. Format: + * tasks/{task_id} + * @param array $optParams Optional parameters. + * @return A2aV1StreamResponse + * @throws \Google\Service\Exception + */ + public function subscribe($tenant, $name, $optParams = []) + { + $params = ['tenant' => $tenant, 'name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('subscribe', [$params], A2aV1StreamResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks'); diff --git a/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs.php b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs.php new file mode 100644 index 0000000000..e3bc2275f8 --- /dev/null +++ b/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs.php @@ -0,0 +1,119 @@ + + * $discoveryengineService = new Google\Service\DiscoveryEngine(...); + * $pushNotificationConfigs = $discoveryengineService->projects_locations_collections_engines_assistants_agents_tasks_pushNotificationConfigs; + * + */ +class ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs extends \Google\Service\Resource +{ + /** + * Set a push notification config for a task. (pushNotificationConfigs.create) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param string $parent Required. The parent task resource for this config. + * Format: tasks/{task_id} + * @param A2aV1TaskPushNotificationConfig $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string configId Required. The ID for the new config. + * @return A2aV1TaskPushNotificationConfig + * @throws \Google\Service\Exception + */ + public function create($tenant, $parent, A2aV1TaskPushNotificationConfig $postBody, $optParams = []) + { + $params = ['tenant' => $tenant, 'parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('create', [$params], A2aV1TaskPushNotificationConfig::class); + } + /** + * Delete a push notification config for a task. + * (pushNotificationConfigs.delete) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param string $name The resource name of the config to delete. Format: + * tasks/{task_id}/pushNotificationConfigs/{config_id} + * @param array $optParams Optional parameters. + * @return GoogleProtobufEmpty + * @throws \Google\Service\Exception + */ + public function delete($tenant, $name, $optParams = []) + { + $params = ['tenant' => $tenant, 'name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], GoogleProtobufEmpty::class); + } + /** + * Get a push notification config for a task. (pushNotificationConfigs.get) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param string $name The resource name of the config to retrieve. Format: + * tasks/{task_id}/pushNotificationConfigs/{config_id} + * @param array $optParams Optional parameters. + * @return A2aV1TaskPushNotificationConfig + * @throws \Google\Service\Exception + */ + public function get($tenant, $name, $optParams = []) + { + $params = ['tenant' => $tenant, 'name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], A2aV1TaskPushNotificationConfig::class); + } + /** + * Get a list of push notifications configured for a task. (pushNotificationConf + * igs.listProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificat + * ionConfigs) + * + * @param string $tenant Optional tenant, provided as a path parameter. + * Experimental, might still change for 1.0 release. + * @param string $parent The parent task resource. Format: tasks/{task_id} + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize For AIP-158 these fields are present. Usually not + * used/needed. The maximum number of configurations to return. If unspecified, + * all configs will be returned. + * @opt_param string pageToken A page token received from a previous + * ListTaskPushNotificationConfigRequest call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListTaskPushNotificationConfigRequest` must match the call that provided the + * page token. + * @return A2aV1ListTaskPushNotificationConfigResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs($tenant, $parent, $optParams = []) + { + $params = ['tenant' => $tenant, 'parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], A2aV1ListTaskPushNotificationConfigResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs');