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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DiscoveryEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down
40 changes: 20 additions & 20 deletions src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
*/
Expand Down Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
*/
Expand Down Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down
40 changes: 20 additions & 20 deletions src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
*/
Expand Down Expand Up @@ -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
*/
Expand Down
Loading
Loading