Service Client: Google::Cloud::Discoveryengine::V1::WidgetConfigService::WidgetConfigServiceClient
Client stub representing the remote WidgetConfigService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to discoveryengine.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Discoveryengine::V1::WidgetConfigService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1/widget_config_service.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1::WidgetConfigService;
my $msg = Google::Cloud::Discoveryengine::V1::WidgetConfigService::GetWidgetConfigRequest->new({
name => $name,
accept_cache => $accept_cache,
get_widget_config_request_option => $get_widget_config_request_option,
language_code => $language_code,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1::WidgetConfigService::GetWidgetConfigRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1/widget_config_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Discoveryengine::V1::WidgetConfigService::GetWidgetConfigRequest
Request for [WidgetConfigService.GetWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.GetWidgetConfig] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Full WidgetConfig resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
$msg->accept_cache()/$msg->accept_cache($value)Type:
BoolOptional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development.
$msg->get_widget_config_request_option()/$msg->get_widget_config_request_option($value)Type:
Message(Google::Cloud::Discoveryengine::V1::WidgetConfigService::GetWidgetConfigRequest::GetWidgetConfigRequestOption)Optional. Options for GetWidgetConfigRequest.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector `display_name` / `description` on `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to the default language (English).
$msg->model_info_view()/$msg->model_info_view($value)Type:
Enum(Google::Cloud::Discoveryengine::V1::ModelInfoView)Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
Google::Cloud::Discoveryengine::V1::WidgetConfigService::UpdateWidgetConfigRequest
Request for [WidgetConfigService.UpdateWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.UpdateWidgetConfig] method.
Inherits from Protobuf::Message.
Accessors
$msg->widget_config()/$msg->widget_config($value)Type:
Message(Google::Cloud::Discoveryengine::V1::WidgetConfig::WidgetConfig)Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update.
If the caller does not have permission to update the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a PERMISSION_DENIED error is returned.
If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update does not exist, a NOT_FOUND error is returned.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Indicates which fields in the provided [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The following are the only supported fields:
* [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
If not set, all supported fields are updated.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1::WidgetConfigService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.