- Resource: WidgetConfig
- Methods
Resource: WidgetConfig
WidgetConfig captures configs at the Widget level.
JSON representation |
---|
{ "name": string, "displayName": string, "createTime": string, "updateTime": string, "enableAutocomplete": boolean, "fieldsUiComponentsMap": { string: { object ( |
Fields | |
---|---|
name |
Immutable. The full resource name of the widget config. Format: This field must be a UTF-8 encoded string with a length limit of 1024 characters. |
display |
Required. The human readable widget config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. |
create |
Output only. timestamp the Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
update |
Output only. timestamp the Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
enableAutocomplete |
Whether or not to enable autocomplete. |
fieldsUiComponentsMap |
The key is the UI component. Mock. Currently supported The value is the name of the field along with its device visibility. The 3 custom fields are optional and can be added or removed. |
facetField[] |
The configuration and appearance of facets in the end user view. |
data |
Output only. The type of the parent data store. |
contentSearchSpec |
The content search spec that configs the desired behavior of content search. |
enableSummarization |
Turn on or off summarization for the search response. |
enableSnippetResultSummary |
Turn on or off summary for each snippets result. |
config |
Output only. Unique obfuscated identifier of a |
enableQualityFeedback |
Turn on or off collecting the search result quality feedback from end users. |
solution |
Required. Immutable. Specifies the solution type that this WidgetConfig can be used for. |
industry |
Output only. The industry vertical that the WidgetConfig registers. The WidgetConfig industry vertical is based on the associated |
allowPublicAccess |
Whether allow no-auth integration with widget. If set true, public access to search or other solutions from widget is allowed without authenication token provided by customer hosted backend server. |
allowlistedDomains[] |
Allowlisted domains that can load this widget. |
enableSafeSearch |
Whether to enable safe search. |
enableConversationalSearch |
Whether to allow conversational search (LLM, multi-turn) or not (non-LLM, single-turn). |
llm |
Output only. Whether LLM is enabled in the corresponding data store. |
enable |
Whether to show the result score. |
resultDisplayType |
The type of snippet to display in UCS widget.
|
minimum |
Output only. Whether the customer accepted data use terms. |
enableWebApp |
Whether to enable standalone web app. |
dataStoreUiConfigs[] |
Configurable UI configurations per data store. |
collection |
Output only. Collection components that lists all collections and child data stores associated with the widget config, those data sources can be used for filtering in widget service APIs, users can return results that from selected data sources. |
enableSearchAsYouType |
Whether to enable search-as-you-type behavior for the search widget |
defaultSearchRequestOrderBy |
The default ordering for search results if specified. Used to set SearchRequest#orderBy on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body |
experimental |
Allows to toggle unstable/experimental features in the widget (or web app) |
ui |
Describes general widget search settings as seen in cloud console widget configuration page. Replaces top deprecated top level properties. |
access |
Will be used for all widget access settings seen in cloud console integration page. Replaces top deprecated top level properties. |
ui |
Describes search widget UI branding settings, such as the widget title, logo, favicons, and colors. |
homepage |
Optional. Describes the homepage settings of the widget. |
assistant |
Optional. Output only. Describes the assistant settings of the widget. |
UIComponentField
Facet field that maps to a UI Component.
JSON representation |
---|
{
"field": string,
"deviceVisibility": [
enum ( |
Fields | |
---|---|
field |
Required. Registered field name. The format is |
device |
The field visibility on different types of devices. |
display |
The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}". |
DeviceVisibility
The visibility of the field on different type of devices.
Enums | |
---|---|
DEVICE_VISIBILITY_UNSPECIFIED |
Default value when not specified. Server returns INVALID_ARGUMENT if used in requests. |
MOBILE |
The UI component is visible on Mobile devices. |
DESKTOP |
The UI component is visible on Browser-based client. |
FacetField
Facet fields that store the mapping of fields to end user widget appearance.
JSON representation |
---|
{ "field": string, "displayName": string } |
Fields | |
---|---|
field |
Required. Registered field name. The format is |
display |
Optional. The field name that end users will see. |
DataStoreType
The type of the widget's parent data store.
Enums | |
---|---|
DATA_STORE_TYPE_UNSPECIFIED |
Unspecified data store type. |
SITE_SEARCH |
The parent data store contains a site search engine. |
STRUCTURED |
The parent data store contains a search engine for structured data. |
UNSTRUCTURED |
The parent data store contains a search engine for unstructured data. |
BLENDED |
The parent data store is served for blended search with multiple data stores. |
ResultDisplayType
The type of result to display in the ucs widget.
Enums | |
---|---|
RESULT_DISPLAY_TYPE_UNSPECIFIED |
Unspecified display type (default to showing snippet). |
SNIPPET |
Display results from the snippet field. |
EXTRACTIVE_ANSWER |
Display results from extractive answers field. |
DataStoreUiConfig
UI component configuration for data store.
JSON representation |
---|
{ "name": string, "id": string, "facetField": [ { object ( |
Fields | |
---|---|
name |
The name of the data store. It should be data store resource name Format: |
id |
Output only. the identifier of the data store, used for widget service. For now it refers to dataStoreId, in the future we will migrate the field to encrypted data store name UUID. |
facet |
Facet fields that store the mapping of fields to end user widget appearance. |
fields |
The key is the UI component. Mock. Currently supported The value is the name of the field along with its device visibility. The 3 custom fields are optional and can be added or removed. |
CollectionComponent
Read-only collection component that contains data store collections fields that may be used for filtering
JSON representation |
---|
{
"name": string,
"id": string,
"displayName": string,
"dataStoreComponents": [
{
object ( |
Fields | |
---|---|
name |
The name of the collection. It should be collection resource name. Format: |
id |
Output only. the identifier of the collection, used for widget service. For now it refers to collectionId, in the future we will migrate the field to encrypted collection name UUID. |
display |
The display name of the collection. |
data |
For the data store collection, list of the children data stores. |
data |
The name of the data source, retrieved from |
connector |
Output only. The icon link of the connector source. |
DataStoreComponent
Read-only data store component that contains data stores fields that may be used for filtering, it's the child of CollectionComponent
.
JSON representation |
---|
{ "name": string, "id": string, "displayName": string, "entityName": string, "workspaceType": enum ( |
Fields | |
---|---|
name |
The name of the data store. It should be data store resource name Format: |
id |
Output only. the identifier of the data store, used for widget service. For now it refers to dataStoreId, in the future we will migrate the field to encrypted data store name UUID. |
display |
The display name of the data store. |
entity |
The name of the entity, retrieved from |
workspace |
Output only. Workspace Source Types for workspace data, retrieved from |
content |
Output only. The content config of the data store. |
UiSettings
Describes general widget (or web app) UI settings as seen in the cloud console UI configuration page.
JSON representation |
---|
{ "interactionType": enum ( |
Fields | |
---|---|
interaction |
Describes widget (or web app) interaction type |
generative |
Describes generative answer configuration. |
result |
Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified. |
enable |
Whether or not to enable autocomplete. |
enable |
Whether to enable safe search. |
enable |
Turn on or off collecting the search result quality feedback from end users. |
enable |
Whether to enable search-as-you-type behavior for the search widget. |
default |
The default ordering for search results if specified. Used to set SearchRequest#orderBy on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body |
data |
Per data store configuration. |
disable |
If set to true, the widget will not collect user events. |
enable |
If set to true, the widget will enable visual content summary on applicable search requests. Only used by healthcare search. |
InteractionType
Describes interaction type.
Enums | |
---|---|
INTERACTION_TYPE_UNSPECIFIED |
Not specified. Defaults to SEARCH_ONLY. |
SEARCH_ONLY |
Search without a generative answer. |
SEARCH_WITH_ANSWER |
Search with the generative answer. |
SEARCH_WITH_FOLLOW_UPS |
Search with the generative answer that supports follow up questions. Also known as multi-turn search. |
GenerativeAnswerConfig
Describes configuration for generative answer.
JSON representation |
---|
{ "resultCount": integer, "modelVersion": string, "modelPromptPreamble": string, "maxRephraseSteps": integer, "languageCode": string, "disableRelatedQuestions": boolean, "ignoreNonAnswerSeekingQuery": boolean, "ignoreAdversarialQuery": boolean, "ignoreLowRelevantContent": boolean } |
Fields | |
---|---|
result |
The number of top results to generate the answer from. Up to 10. |
model |
The model version used to generate the answer. |
model |
Text at the beginning of the prompt that instructs the model that generates the answer. |
max |
Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default. |
language |
Language code for Summary. Use language tags defined by BCP47. Note: This is an experimental feature. |
disable |
Whether generated answer contains suggested related questions. |
ignore |
Optional. Specifies whether to filter out queries that are not answer-seeking. The default value is No answer is returned if the search query is classified as a non-answer seeking query. If this field is set to |
ignore |
Optional. Specifies whether to filter out queries that are adversarial. |
ignore |
Optional. Specifies whether to filter out queries that are not relevant to the content. |
AccessSettings
Describes widget access settings.
JSON representation |
---|
{ "allowPublicAccess": boolean, "allowlistedDomains": [ string ], "enableWebApp": boolean } |
Fields | |
---|---|
allow |
Whether public unauthenticated access is allowed. |
allowlisted |
List of domains that are allowed to integrate the search widget. |
enable |
Whether web app access is enabled. |
UiBrandingSettings
Describes widget UI branding settings.
JSON representation |
---|
{
"logo": {
object ( |
Fields | |
---|---|
logo |
Logo image. |
Image
Options to store an image.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field storage_method . Various ways to store an image, i.e., as a URL or base64 encoded string. storage_method can be only one of the following: |
|
url |
Image URL. |
HomepageSetting
Describes the homepage setting of the widget. It includes all homepage related settings and configurations, such as shortcuts.
JSON representation |
---|
{
"shortcuts": [
{
object ( |
Fields | |
---|---|
shortcuts[] |
Optional. The shortcuts to display on the homepage. LINT.IfChange(max_shortcuts_number) LINT.ThenChange(//depot/google3/cloud/console/web/ai/unified_cloud_search/components/widget_preview/widget_homepage_shortcut_config_form.ts:max_shortcuts_number) |
Shortcut
Describes an entity of shortcut (aka pinned content) on the homepage. The home page will render these shortcuts in the same order as what the API returns. If a customer wants to reorder or remove a shortcut, the UI should always provide the new full list of shortcuts.
JSON representation |
---|
{
"title": string,
"icon": {
object ( |
Fields | |
---|---|
title |
Optional. title of the shortcut. |
icon |
Optional. Icon URL of shortcut. |
destination |
Optional. Destination URL of shortcut. |
AssistantSettings
Describes the assistant settings of the widget.
JSON representation |
---|
{ "googleSearchGroundingEnabled": boolean } |
Fields | |
---|---|
google |
Whether or not the Google search grounding toggle is shown. |
Methods |
|
---|---|
|
Gets a WidgetConfig . |