Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
WidgetConfig captures configs at the Widget level.
Instance Attribute Summary collapse
-
#allow_public_access ⇒ Boolean
(also: #allow_public_access?)
Whether allow no-auth integration with widget.
-
#allowlisted_domains ⇒ Array<String>
Allowlisted domains that can load this widget.
-
#collection_components ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent>
Output only.
-
#config_id ⇒ String
Output only.
-
#content_search_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
A specification for configuring the behavior of content search.
-
#create_time ⇒ String
Output only.
-
#data_store_type ⇒ String
Output only.
-
#data_store_ui_configs ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig>
Configurable UI configurations per data store.
-
#display_name ⇒ String
Required.
-
#enable_autocomplete ⇒ Boolean
(also: #enable_autocomplete?)
Whether or not to enable autocomplete.
-
#enable_conversational_search ⇒ Boolean
(also: #enable_conversational_search?)
Whether to allow conversational search (LLM, multi-turn) or not (non-LLM, single-turn).
-
#enable_quality_feedback ⇒ Boolean
(also: #enable_quality_feedback?)
Turn on or off collecting the search result quality feedback from end users.
-
#enable_result_score ⇒ Boolean
(also: #enable_result_score?)
Whether to show the result score.
-
#enable_safe_search ⇒ Boolean
(also: #enable_safe_search?)
Whether to enable safe search.
-
#enable_snippet_result_summary ⇒ Boolean
(also: #enable_snippet_result_summary?)
Turn on or off summary for each snippets result.
-
#enable_summarization ⇒ Boolean
(also: #enable_summarization?)
Turn on or off summarization for the search response.
-
#enable_web_app ⇒ Boolean
(also: #enable_web_app?)
Whether to enable standalone web app.
-
#facet_field ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField>
The configuration and appearance of facets in the end user view.
-
#fields_ui_components_map ⇒ Hash<String,Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField>
The key is the UI component.
-
#industry_vertical ⇒ String
Output only.
-
#llm_enabled ⇒ Boolean
(also: #llm_enabled?)
Output only.
-
#minimum_data_term_accepted ⇒ Boolean
(also: #minimum_data_term_accepted?)
Output only.
-
#name ⇒ String
Immutable.
-
#result_display_type ⇒ String
The type of snippet to display in UCS widget.
-
#solution_type ⇒ String
Required.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaWidgetConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaWidgetConfig.
8327 8328 8329 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8327 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_public_access ⇒ Boolean Also known as: allow_public_access?
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.
Corresponds to the JSON property allowPublicAccess
8172 8173 8174 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8172 def allow_public_access @allow_public_access end |
#allowlisted_domains ⇒ Array<String>
Allowlisted domains that can load this widget.
Corresponds to the JSON property allowlistedDomains
8178 8179 8180 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8178 def allowlisted_domains @allowlisted_domains end |
#collection_components ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent>
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.
Corresponds to the JSON property collectionComponents
8186 8187 8188 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8186 def collection_components @collection_components end |
#config_id ⇒ String
Output only. Unique obfuscated identifier of a WidgetConfig.
Corresponds to the JSON property configId
8191 8192 8193 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8191 def config_id @config_id end |
#content_search_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
A specification for configuring the behavior of content search.
Corresponds to the JSON property contentSearchSpec
8196 8197 8198 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8196 def content_search_spec @content_search_spec end |
#create_time ⇒ String
Output only. Timestamp the WidgetConfig was created.
Corresponds to the JSON property createTime
8201 8202 8203 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8201 def create_time @create_time end |
#data_store_type ⇒ String
Output only. The type of the parent data store.
Corresponds to the JSON property dataStoreType
8206 8207 8208 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8206 def data_store_type @data_store_type end |
#data_store_ui_configs ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig>
Configurable UI configurations per data store.
Corresponds to the JSON property dataStoreUiConfigs
8211 8212 8213 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8211 def data_store_ui_configs @data_store_ui_configs end |
#display_name ⇒ String
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.
Corresponds to the JSON property displayName
8218 8219 8220 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8218 def display_name @display_name end |
#enable_autocomplete ⇒ Boolean Also known as: enable_autocomplete?
Whether or not to enable autocomplete.
Corresponds to the JSON property enableAutocomplete
8223 8224 8225 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8223 def enable_autocomplete @enable_autocomplete end |
#enable_conversational_search ⇒ Boolean Also known as: enable_conversational_search?
Whether to allow conversational search (LLM, multi-turn) or not (non-LLM,
single-turn).
Corresponds to the JSON property enableConversationalSearch
8230 8231 8232 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8230 def enable_conversational_search @enable_conversational_search end |
#enable_quality_feedback ⇒ Boolean Also known as: enable_quality_feedback?
Turn on or off collecting the search result quality feedback from end users.
Corresponds to the JSON property enableQualityFeedback
8236 8237 8238 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8236 def enable_quality_feedback @enable_quality_feedback end |
#enable_result_score ⇒ Boolean Also known as: enable_result_score?
Whether to show the result score.
Corresponds to the JSON property enableResultScore
8242 8243 8244 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8242 def enable_result_score @enable_result_score end |
#enable_safe_search ⇒ Boolean Also known as: enable_safe_search?
Whether to enable safe search.
Corresponds to the JSON property enableSafeSearch
8248 8249 8250 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8248 def enable_safe_search @enable_safe_search end |
#enable_snippet_result_summary ⇒ Boolean Also known as: enable_snippet_result_summary?
Turn on or off summary for each snippets result.
Corresponds to the JSON property enableSnippetResultSummary
8254 8255 8256 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8254 def enable_snippet_result_summary @enable_snippet_result_summary end |
#enable_summarization ⇒ Boolean Also known as: enable_summarization?
Turn on or off summarization for the search response.
Corresponds to the JSON property enableSummarization
8260 8261 8262 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8260 def enable_summarization @enable_summarization end |
#enable_web_app ⇒ Boolean Also known as: enable_web_app?
Whether to enable standalone web app.
Corresponds to the JSON property enableWebApp
8266 8267 8268 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8266 def enable_web_app @enable_web_app end |
#facet_field ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField>
The configuration and appearance of facets in the end user view.
Corresponds to the JSON property facetField
8272 8273 8274 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8272 def facet_field @facet_field end |
#fields_ui_components_map ⇒ Hash<String,Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField>
The key is the UI component. Mock. Currently supported title, thumbnail,
url, custom1, custom2, custom3. 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. title, thumbnail, url are required UI components that
cannot be removed.
Corresponds to the JSON property fieldsUiComponentsMap
8281 8282 8283 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8281 def fields_ui_components_map @fields_ui_components_map end |
#industry_vertical ⇒ String
Output only. The industry vertical that the WidgetConfig registers. The
WidgetConfig industry vertical is based on the associated Engine.
Corresponds to the JSON property industryVertical
8287 8288 8289 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8287 def industry_vertical @industry_vertical end |
#llm_enabled ⇒ Boolean Also known as: llm_enabled?
Output only. Whether LLM is enabled in the corresponding data store.
Corresponds to the JSON property llmEnabled
8292 8293 8294 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8292 def llm_enabled @llm_enabled end |
#minimum_data_term_accepted ⇒ Boolean Also known as: minimum_data_term_accepted?
Output only. Whether the customer accepted data use terms.
Corresponds to the JSON property minimumDataTermAccepted
8298 8299 8300 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8298 def minimum_data_term_accepted @minimum_data_term_accepted end |
#name ⇒ String
Immutable. The full resource name of the widget config. Format: projects/
project/locations/location/collections/collection_id/dataStores/
data_store_id/widgetConfigs/widget_config_id`. This field must be a UTF-8
encoded string with a length limit of 1024 characters.
Corresponds to the JSON propertyname`
8307 8308 8309 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8307 def name @name end |
#result_display_type ⇒ String
The type of snippet to display in UCS widget. -
RESULT_DISPLAY_TYPE_UNSPECIFIED for existing users. - SNIPPET for new non-
enterprise search users. - EXTRACTIVE_ANSWER for new enterprise search users.
Corresponds to the JSON property resultDisplayType
8314 8315 8316 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8314 def result_display_type @result_display_type end |
#solution_type ⇒ String
Required. Immutable. Specifies the solution type that this WidgetConfig can be
used for.
Corresponds to the JSON property solutionType
8320 8321 8322 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8320 def solution_type @solution_type end |
#update_time ⇒ String
Output only. Timestamp the WidgetConfig was updated.
Corresponds to the JSON property updateTime
8325 8326 8327 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8325 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8332 def update!(**args) @allow_public_access = args[:allow_public_access] if args.key?(:allow_public_access) @allowlisted_domains = args[:allowlisted_domains] if args.key?(:allowlisted_domains) @collection_components = args[:collection_components] if args.key?(:collection_components) @config_id = args[:config_id] if args.key?(:config_id) @content_search_spec = args[:content_search_spec] if args.key?(:content_search_spec) @create_time = args[:create_time] if args.key?(:create_time) @data_store_type = args[:data_store_type] if args.key?(:data_store_type) @data_store_ui_configs = args[:data_store_ui_configs] if args.key?(:data_store_ui_configs) @display_name = args[:display_name] if args.key?(:display_name) @enable_autocomplete = args[:enable_autocomplete] if args.key?(:enable_autocomplete) @enable_conversational_search = args[:enable_conversational_search] if args.key?(:enable_conversational_search) @enable_quality_feedback = args[:enable_quality_feedback] if args.key?(:enable_quality_feedback) @enable_result_score = args[:enable_result_score] if args.key?(:enable_result_score) @enable_safe_search = args[:enable_safe_search] if args.key?(:enable_safe_search) @enable_snippet_result_summary = args[:enable_snippet_result_summary] if args.key?(:enable_snippet_result_summary) @enable_summarization = args[:enable_summarization] if args.key?(:enable_summarization) @enable_web_app = args[:enable_web_app] if args.key?(:enable_web_app) @facet_field = args[:facet_field] if args.key?(:facet_field) @fields_ui_components_map = args[:fields_ui_components_map] if args.key?(:fields_ui_components_map) @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical) @llm_enabled = args[:llm_enabled] if args.key?(:llm_enabled) @minimum_data_term_accepted = args[:minimum_data_term_accepted] if args.key?(:minimum_data_term_accepted) @name = args[:name] if args.key?(:name) @result_display_type = args[:result_display_type] if args.key?(:result_display_type) @solution_type = args[:solution_type] if args.key?(:solution_type) @update_time = args[:update_time] if args.key?(:update_time) end |