public static interface WidgetConfig.UiSettingsOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
containsFeatures(String key)
public abstract boolean containsFeatures(String key)Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
containsModelConfigs(String key)
public abstract boolean containsModelConfigs(String key)Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDataStoreUiConfigs(int index)
public abstract WidgetConfig.DataStoreUiConfig getDataStoreUiConfigs(int index)Per data store configuration.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.DataStoreUiConfig |
|
getDataStoreUiConfigsCount()
public abstract int getDataStoreUiConfigsCount()Per data store configuration.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9;
| Returns | |
|---|---|
| Type | Description |
int |
|
getDataStoreUiConfigsList()
public abstract List<WidgetConfig.DataStoreUiConfig> getDataStoreUiConfigsList()Per data store configuration.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9;
| Returns | |
|---|---|
| Type | Description |
List<DataStoreUiConfig> |
|
getDataStoreUiConfigsOrBuilder(int index)
public abstract WidgetConfig.DataStoreUiConfigOrBuilder getDataStoreUiConfigsOrBuilder(int index)Per data store configuration.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.DataStoreUiConfigOrBuilder |
|
getDataStoreUiConfigsOrBuilderList()
public abstract List<? extends WidgetConfig.DataStoreUiConfigOrBuilder> getDataStoreUiConfigsOrBuilderList()Per data store configuration.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder> |
|
getDefaultSearchRequestOrderBy()
public abstract String getDefaultSearchRequestOrderBy()The default ordering for search results if specified.
Used to set SearchRequest#order_by on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
string default_search_request_order_by = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The defaultSearchRequestOrderBy. |
getDefaultSearchRequestOrderByBytes()
public abstract ByteString getDefaultSearchRequestOrderByBytes()The default ordering for search results if specified.
Used to set SearchRequest#order_by on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
string default_search_request_order_by = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for defaultSearchRequestOrderBy. |
getDisableUserEventsCollection()
public abstract boolean getDisableUserEventsCollection()If set to true, the widget will not collect user events.
bool disable_user_events_collection = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
The disableUserEventsCollection. |
getEnableAutocomplete()
public abstract boolean getEnableAutocomplete()Whether or not to enable autocomplete.
bool enable_autocomplete = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableAutocomplete. |
getEnableCreateAgentButton()
public abstract boolean getEnableCreateAgentButton()Optional. If set to true, the widget will enable the create agent button.
bool enable_create_agent_button = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableCreateAgentButton. |
getEnablePeopleSearch()
public abstract boolean getEnablePeopleSearch()Optional. If set to true, the widget will enable people search.
bool enable_people_search = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enablePeopleSearch. |
getEnableQualityFeedback()
public abstract boolean getEnableQualityFeedback()Turn on or off collecting the search result quality feedback from end users.
bool enable_quality_feedback = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableQualityFeedback. |
getEnableSafeSearch()
public abstract boolean getEnableSafeSearch()Whether to enable safe search.
bool enable_safe_search = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableSafeSearch. |
getEnableSearchAsYouType()
public abstract boolean getEnableSearchAsYouType()Whether to enable search-as-you-type behavior for the search widget.
bool enable_search_as_you_type = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableSearchAsYouType. |
getEnableVisualContentSummary()
public abstract boolean getEnableVisualContentSummary()If set to true, the widget will enable visual content summary on applicable search requests. Only used by healthcare search.
bool enable_visual_content_summary = 11;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableVisualContentSummary. |
getFeatures() (deprecated)
public abstract Map<String,WidgetConfig.UiSettings.FeatureState> getFeatures()Use #getFeaturesMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,FeatureState> |
|
getFeaturesCount()
public abstract int getFeaturesCount()Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getFeaturesMap()
public abstract Map<String,WidgetConfig.UiSettings.FeatureState> getFeaturesMap()Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Map<String,FeatureState> |
|
getFeaturesOrDefault(String key, WidgetConfig.UiSettings.FeatureState defaultValue)
public abstract WidgetConfig.UiSettings.FeatureState getFeaturesOrDefault(String key, WidgetConfig.UiSettings.FeatureState defaultValue)Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
WidgetConfig.UiSettings.FeatureState |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.FeatureState |
|
getFeaturesOrThrow(String key)
public abstract WidgetConfig.UiSettings.FeatureState getFeaturesOrThrow(String key)Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.FeatureState |
|
getFeaturesValue() (deprecated)
public abstract Map<String,Integer> getFeaturesValue()Use #getFeaturesValueMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,Integer> |
|
getFeaturesValueMap()
public abstract Map<String,Integer> getFeaturesValueMap()Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Map<String,Integer> |
|
getFeaturesValueOrDefault(String key, int defaultValue)
public abstract int getFeaturesValueOrDefault(String key, int defaultValue)Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
int |
| Returns | |
|---|---|
| Type | Description |
int |
|
getFeaturesValueOrThrow(String key)
public abstract int getFeaturesValueOrThrow(String key)Output only. Feature config for the engine to opt in or opt out of features. Supported keys:
agent-galleryno-code-agent-builderprompt-gallerymodel-selectornotebook-lmpeople-searchpeople-search-org-chartbi-directional-audiospeech-to-textfeedbacksession-sharingpersonalization-memorypersonalization-suggested-highlightsmobile-app-accessdisable-agent-sharingdisable-image-generationdisable-video-generationdisable-onedrive-uploaddisable-talk-to-contentdisable-google-drive-uploaddisable-welcome-emailsdisable-canvascanvas-workspacecanvas-app-builderskillsskill-sharingskill-sharing-without-admin-approvaldisable-projectssobienable-end-user-sharing-with-groupssingle-agent-orchestrationmulti-agent-orchestrationcross-product-intelligenceworkflow-agentsin-app-notificationscode-extractionremote-vmlicense-tier-badge
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
int |
|
getGenerativeAnswerConfig()
public abstract WidgetConfig.UiSettings.GenerativeAnswerConfig getGenerativeAnswerConfig()Describes generative answer configuration.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2;
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.GenerativeAnswerConfig |
The generativeAnswerConfig. |
getGenerativeAnswerConfigOrBuilder()
public abstract WidgetConfig.UiSettings.GenerativeAnswerConfigOrBuilder getGenerativeAnswerConfigOrBuilder()Describes generative answer configuration.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2;
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.GenerativeAnswerConfigOrBuilder |
|
getGoogleDrivePickerEnabled()
public abstract boolean getGoogleDrivePickerEnabled() Output only. Whether the Google Drive file picker is available to
end-users. Declared optional for the same field-presence reason as
onedrive_picker_enabled above.
optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
The googleDrivePickerEnabled. |
getInteractionType()
public abstract WidgetConfig.UiSettings.InteractionType getInteractionType()Describes widget (or web app) interaction type
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1;
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.InteractionType |
The interactionType. |
getInteractionTypeValue()
public abstract int getInteractionTypeValue()Describes widget (or web app) interaction type
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for interactionType. |
getModelConfigInfo()
public abstract WidgetConfig.UiSettings.ModelConfigInfo getModelConfigInfo()Output only. The resolved, server-side view of model selector configuration. Holds both the ordered list of models that should appear in the model selector dropdown and the model that should be selected by default.
Clients should render this directly without applying their own
filtering, ordering, or localization. The legacy model_configs map
above is retained for backward compatibility with clients that have not
yet migrated to consuming this field.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo |
The modelConfigInfo. |
getModelConfigInfoOrBuilder()
public abstract WidgetConfig.UiSettings.ModelConfigInfoOrBuilder getModelConfigInfoOrBuilder()Output only. The resolved, server-side view of model selector configuration. Holds both the ordered list of models that should appear in the model selector dropdown and the model that should be selected by default.
Clients should render this directly without applying their own
filtering, ordering, or localization. The legacy model_configs map
above is retained for backward compatibility with clients that have not
yet migrated to consuming this field.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfoOrBuilder |
|
getModelConfigs() (deprecated)
public abstract Map<String,WidgetConfig.UiSettings.ModelState> getModelConfigs()Use #getModelConfigsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,ModelState> |
|
getModelConfigsCount()
public abstract int getModelConfigsCount()Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getModelConfigsMap()
public abstract Map<String,WidgetConfig.UiSettings.ModelState> getModelConfigsMap()Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Map<String,ModelState> |
|
getModelConfigsOrDefault(String key, WidgetConfig.UiSettings.ModelState defaultValue)
public abstract WidgetConfig.UiSettings.ModelState getModelConfigsOrDefault(String key, WidgetConfig.UiSettings.ModelState defaultValue)Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
WidgetConfig.UiSettings.ModelState |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelState |
|
getModelConfigsOrThrow(String key)
public abstract WidgetConfig.UiSettings.ModelState getModelConfigsOrThrow(String key)Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelState |
|
getModelConfigsValue() (deprecated)
public abstract Map<String,Integer> getModelConfigsValue()Use #getModelConfigsValueMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,Integer> |
|
getModelConfigsValueMap()
public abstract Map<String,Integer> getModelConfigsValueMap()Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Map<String,Integer> |
|
getModelConfigsValueOrDefault(String key, int defaultValue)
public abstract int getModelConfigsValueOrDefault(String key, int defaultValue)Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
int |
| Returns | |
|---|---|
| Type | Description |
int |
|
getModelConfigsValueOrThrow(String key)
public abstract int getModelConfigsValueOrThrow(String key)Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin.
When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it.
map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
int |
|
getOnedrivePickerEnabled()
public abstract boolean getOnedrivePickerEnabled() Output only. Whether the OneDrive file picker is available to end-users.
Computed by the backend from admin connector enablement (Business
edition) or attached OneDrive connectors (Enterprise edition), combined
with the existing disable-onedrive-upload admin feature.
Declared optional so an explicitly-computed false is serialized with
field presence. A plain proto3 bool drops a default false on the
wire, which prevented clients from distinguishing "picker disabled"
(false) from "field not populated" (unset).
optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
The onedrivePickerEnabled. |
getResultDescriptionType()
public abstract WidgetConfig.ResultDisplayType getResultDescriptionType()Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified.
.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3;
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.ResultDisplayType |
The resultDescriptionType. |
getResultDescriptionTypeValue()
public abstract int getResultDescriptionTypeValue()Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified.
.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for resultDescriptionType. |
getSearchAddonSpec()
public abstract WidgetConfig.UiSettings.SearchAddonSpec getSearchAddonSpec()Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.SearchAddonSpec |
The searchAddonSpec. |
getSearchAddonSpecOrBuilder()
public abstract WidgetConfig.UiSettings.SearchAddonSpecOrBuilder getSearchAddonSpecOrBuilder()Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.SearchAddonSpecOrBuilder |
|
getSourceAdminDisplayNameEnabled()
public abstract boolean getSourceAdminDisplayNameEnabled()Optional. Whether to show the admin-configured display name for data connectors in the widget sources UI (instead of the connector kind). Opt-in; defaults to false.
bool source_admin_display_name_enabled = 51 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The sourceAdminDisplayNameEnabled. |
hasGenerativeAnswerConfig()
public abstract boolean hasGenerativeAnswerConfig()Describes generative answer configuration.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the generativeAnswerConfig field is set. |
hasGoogleDrivePickerEnabled()
public abstract boolean hasGoogleDrivePickerEnabled() Output only. Whether the Google Drive file picker is available to
end-users. Declared optional for the same field-presence reason as
onedrive_picker_enabled above.
optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the googleDrivePickerEnabled field is set. |
hasModelConfigInfo()
public abstract boolean hasModelConfigInfo()Output only. The resolved, server-side view of model selector configuration. Holds both the ordered list of models that should appear in the model selector dropdown and the model that should be selected by default.
Clients should render this directly without applying their own
filtering, ordering, or localization. The legacy model_configs map
above is retained for backward compatibility with clients that have not
yet migrated to consuming this field.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the modelConfigInfo field is set. |
hasOnedrivePickerEnabled()
public abstract boolean hasOnedrivePickerEnabled() Output only. Whether the OneDrive file picker is available to end-users.
Computed by the backend from admin connector enablement (Business
edition) or attached OneDrive connectors (Enterprise edition), combined
with the existing disable-onedrive-upload admin feature.
Declared optional so an explicitly-computed false is serialized with
field presence. A plain proto3 bool drops a default false on the
wire, which prevented clients from distinguishing "picker disabled"
(false) from "field not populated" (unset).
optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the onedrivePickerEnabled field is set. |
hasSearchAddonSpec()
public abstract boolean hasSearchAddonSpec()Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the searchAddonSpec field is set. |