diff --git a/src/DiscoveryEngine.php b/src/DiscoveryEngine.php index 68566a27ef..4a4f01d567 100644 --- a/src/DiscoveryEngine.php +++ b/src/DiscoveryEngine.php @@ -40,7 +40,7 @@ class DiscoveryEngine extends \Google\Service /** Search your organization's data in the Cloud Search index. */ const CLOUD_SEARCH_QUERY = "https://www.googleapis.com/auth/cloud_search.query"; - /** View your Agentspace chat history, including uploaded files and generated reports and visualizations, and interact with the Agentspace assistant on your behalf.. */ + /** View your Agentspace chat history, including uploaded files and generated reports and visualizations, and interact with the Agentspace assistant on your behalf. Also view the artifacts you access through NotebookLM Enterprise.. */ const DISCOVERYENGINE_ASSIST_READWRITE = "https://www.googleapis.com/auth/discoveryengine.assist.readwrite"; /** View, edit, create, and delete all your data associated with any Discovery Engine API product, such as Agentspace, Vertex AI Search, or NotebookLM Enterprise, including both end user data and administration or configuration data.. */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult.php index 0917f92fae..413bfb6f1a 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult.php @@ -31,6 +31,22 @@ class GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult ex * Processing was blocked by the customer policy. */ public const VERDICT_BLOCK = 'BLOCK'; + /** + * Unknown value. + */ + public const VIOLATION_SOURCE_VIOLATION_SOURCE_UNSPECIFIED = 'VIOLATION_SOURCE_UNSPECIFIED'; + /** + * Violation found in the system response. + */ + public const VIOLATION_SOURCE_SYSTEM = 'SYSTEM'; + /** + * Violation found in the user prompt. + */ + public const VIOLATION_SOURCE_PROMPT = 'PROMPT'; + /** + * Violation found in the user attachment. + */ + public const VIOLATION_SOURCE_ATTACHMENT = 'ATTACHMENT'; protected $collection_key = 'policyResults'; protected $policyResultsType = GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult::class; protected $policyResultsDataType = 'array'; @@ -41,6 +57,12 @@ class GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult ex * @var string */ public $verdict; + /** + * Output only. The source of the violation. + * + * @var string + */ + public $violationSource; /** * Customer policy enforcement results. Populated only if the assist call was @@ -79,6 +101,24 @@ public function getVerdict() { return $this->verdict; } + /** + * Output only. The source of the violation. + * + * Accepted values: VIOLATION_SOURCE_UNSPECIFIED, SYSTEM, PROMPT, ATTACHMENT + * + * @param self::VIOLATION_SOURCE_* $violationSource + */ + public function setViolationSource($violationSource) + { + $this->violationSource = $violationSource; + } + /** + * @return self::VIOLATION_SOURCE_* + */ + public function getViolationSource() + { + return $this->violationSource; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php index e9d2b612c1..dabb1da228 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php @@ -182,16 +182,16 @@ class GoogleCloudDiscoveryengineV1Engine extends \Google\Collection * Supported keys: * `*`: all features, if it's present, all other feature * state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @var string[] */ @@ -493,16 +493,16 @@ public function getDisplayName() * Supported keys: * `*`: all features, if it's present, all other feature * state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @param string[] $features */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1SearchResponse.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1SearchResponse.php index 8e8ec75948..0498f5e8b2 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1SearchResponse.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1SearchResponse.php @@ -32,6 +32,12 @@ class GoogleCloudDiscoveryengineV1SearchResponse extends \Google\Collection */ public const SEMANTIC_STATE_ENABLED = 'ENABLED'; protected $collection_key = 'searchLinkPromotions'; + /** + * Optional. Controls applied as part of the Control service. + * + * @var string[] + */ + public $appliedControls; /** * A unique search token. This should be included in the UserEvent logs * resulting from this search, which enables accurate attribution of search @@ -93,6 +99,22 @@ class GoogleCloudDiscoveryengineV1SearchResponse extends \Google\Collection */ public $totalSize; + /** + * Optional. Controls applied as part of the Control service. + * + * @param string[] $appliedControls + */ + public function setAppliedControls($appliedControls) + { + $this->appliedControls = $appliedControls; + } + /** + * @return string[] + */ + public function getAppliedControls() + { + return $this->appliedControls; + } /** * A unique search token. This should be included in the UserEvent logs * resulting from this search, which enables accurate attribution of search diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.php index 2af8bcaeea..854eaf64e2 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.php @@ -114,16 +114,16 @@ class GoogleCloudDiscoveryengineV1WidgetConfigUiSettings extends \Google\Collect * Output only. Feature config for the engine to opt in or opt out of * features. Supported keys: * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @var string[] */ @@ -356,16 +356,16 @@ public function getEnableVisualContentSummary() * Output only. Feature config for the engine to opt in or opt out of * features. Supported keys: * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @param string[] $features */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResult.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResult.php index ec65f41616..e912c59ca1 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResult.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResult.php @@ -31,6 +31,22 @@ class GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResu * Processing was blocked by the customer policy. */ public const VERDICT_BLOCK = 'BLOCK'; + /** + * Unknown value. + */ + public const VIOLATION_SOURCE_VIOLATION_SOURCE_UNSPECIFIED = 'VIOLATION_SOURCE_UNSPECIFIED'; + /** + * Violation found in the system response. + */ + public const VIOLATION_SOURCE_SYSTEM = 'SYSTEM'; + /** + * Violation found in the user prompt. + */ + public const VIOLATION_SOURCE_PROMPT = 'PROMPT'; + /** + * Violation found in the user attachment. + */ + public const VIOLATION_SOURCE_ATTACHMENT = 'ATTACHMENT'; protected $collection_key = 'policyResults'; protected $policyResultsType = GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult::class; protected $policyResultsDataType = 'array'; @@ -41,6 +57,12 @@ class GoogleCloudDiscoveryengineV1alphaAssistAnswerCustomerPolicyEnforcementResu * @var string */ public $verdict; + /** + * Output only. The source of the violation. + * + * @var string + */ + public $violationSource; /** * Customer policy enforcement results. Populated only if the assist call was @@ -79,6 +101,24 @@ public function getVerdict() { return $this->verdict; } + /** + * Output only. The source of the violation. + * + * Accepted values: VIOLATION_SOURCE_UNSPECIFIED, SYSTEM, PROMPT, ATTACHMENT + * + * @param self::VIOLATION_SOURCE_* $violationSource + */ + public function setViolationSource($violationSource) + { + $this->violationSource = $violationSource; + } + /** + * @return self::VIOLATION_SOURCE_* + */ + public function getViolationSource() + { + return $this->violationSource; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php index 31cb53ea18..f2a73187b0 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php @@ -182,16 +182,16 @@ class GoogleCloudDiscoveryengineV1alphaEngine extends \Google\Collection * Supported keys: * `*`: all features, if it's present, all other feature * state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @var string[] */ @@ -497,16 +497,16 @@ public function getDisplayName() * Supported keys: * `*`: all features, if it's present, all other feature * state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @param string[] $features */ diff --git a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php index 9f48605ce3..a70a21d9ab 100644 --- a/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php +++ b/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1betaEngine.php @@ -182,16 +182,16 @@ class GoogleCloudDiscoveryengineV1betaEngine extends \Google\Collection * Supported keys: * `*`: all features, if it's present, all other feature * state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @var string[] */ @@ -493,16 +493,16 @@ public function getDisplayName() * Supported keys: * `*`: all features, if it's present, all other feature * state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * - * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session- - * sharing` * `personalization-memory` * `personalization-suggested- - * highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable- - * image-generation` * `disable-video-generation` * `disable-onedrive-upload` - * * `disable-talk-to-content` * `disable-google-drive-upload` * `disable- - * welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * - * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable- - * projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent- - * orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` - * * `workflow-agents` * `in-app-notifications` + * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * + * `feedback` * `session-sharing` * `personalization-memory` * + * `personalization-suggested-highlights` * `mobile-app-access` * `disable- + * agent-sharing` * `disable-image-generation` * `disable-video-generation` * + * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google- + * drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas- + * workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin- + * approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with- + * groups` * `single-agent-orchestration` * `multi-agent-orchestration` * + * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * * @param string[] $features */