NAME
Google::Cloud::Ces::V1::WidgetTool - Compiled Protocol Buffers messages for google/cloud/ces/v1/widget_tool.proto
SYNOPSIS
use Google::Cloud::Ces::V1::WidgetTool;
my $msg = Google::Cloud::Ces::V1::WidgetTool::WidgetTool->new({
parameters => $parameters,
name => $name,
description => $description,
widget_type => $widget_type,
});
# Read or update a field
my $val = $msg->parameters();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::WidgetTool::WidgetTool->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/widget_tool.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::Ces::V1::WidgetTool::WidgetTool
Represents a widget tool that the agent can invoke. When the tool is chosen by the agent, agent will return the widget to the client. The client is responsible for processing the widget and generating the next user query to continue the interaction with the agent.
Inherits from Protobuf::Message.
Accessors
$msg->parameters()/$msg->parameters($value)Type:
Message(Google::Cloud::Ces::V1::Schema::Schema)Optional. The input parameters of the widget tool.
$msg->name()/$msg->name($value)Type:
StringRequired. The display name of the widget tool.
$msg->description()/$msg->description($value)Type:
StringOptional. The description of the widget tool.
$msg->widget_type()/$msg->widget_type($value)Type:
Enum(Google::Cloud::Ces::V1::WidgetTool::WidgetType)Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED.
$msg->ui_config()/$msg->ui_config($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. Configuration for rendering the widget.
$msg->data_mapping()/$msg->data_mapping($value)Type:
Message(Google::Cloud::Ces::V1::WidgetTool::WidgetTool::DataMapping)Optional. The mapping that defines how data from a source tool is mapped to the widget's input parameters.
$msg->text_response_config()/$msg->text_response_config($value)Type:
Message(Google::Cloud::Ces::V1::WidgetTool::WidgetTool::TextResponseConfig)Optional. Configuration for always-included text responses.
Enum: WidgetTool::WidgetType
WIDGET_TYPE_UNSPECIFIED=>0CUSTOM=>1PRODUCT_CAROUSEL=>2PRODUCT_DETAILS=>3QUICK_ACTIONS=>4PRODUCT_COMPARISON=>5ADVANCED_PRODUCT_DETAILS=>6SHORT_FORM=>7OVERALL_SATISFACTION=>8ORDER_SUMMARY=>9APPOINTMENT_DETAILS=>10APPOINTMENT_SCHEDULER=>11CONTACT_FORM=>12
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::WidgetTool::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.