Skip to content

Commit 170222a

Browse files
feat: Automated regeneration of ces v1 client (#25955)
Auto-created at 2026-03-15 10:41:53 +0000 using the toys pull request generator.
1 parent e9bf58e commit 170222a

8 files changed

Lines changed: 207 additions & 6 deletions

File tree

api_names_out.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64834,6 +64834,10 @@
6483464834
"/ces:v1/AgentRemoteDialogflowAgent/outputVariableMapping": output_variable_mapping
6483564835
"/ces:v1/AgentRemoteDialogflowAgent/outputVariableMapping/output_variable_mapping": output_variable_mapping
6483664836
"/ces:v1/AgentRemoteDialogflowAgent/respectResponseInterruptionSettings": respect_response_interruption_settings
64837+
"/ces:v1/AgentTool": agent_tool
64838+
"/ces:v1/AgentTool/description": description
64839+
"/ces:v1/AgentTool/name": name
64840+
"/ces:v1/AgentTool/rootAgent": root_agent
6483764841
"/ces:v1/AgentTransfer": agent_transfer
6483864842
"/ces:v1/AgentTransfer/displayName": display_name
6483964843
"/ces:v1/AgentTransfer/targetAgent": target_agent
@@ -65178,6 +65182,8 @@
6517865182
"/ces:v1/ExecuteToolRequest": execute_tool_request
6517965183
"/ces:v1/ExecuteToolRequest/args": args
6518065184
"/ces:v1/ExecuteToolRequest/args/arg": arg
65185+
"/ces:v1/ExecuteToolRequest/context": context
65186+
"/ces:v1/ExecuteToolRequest/context/context": context
6518165187
"/ces:v1/ExecuteToolRequest/tool": tool
6518265188
"/ces:v1/ExecuteToolRequest/toolsetTool": toolset_tool
6518365189
"/ces:v1/ExecuteToolRequest/variables": variables
@@ -65190,6 +65196,7 @@
6519065196
"/ces:v1/ExecuteToolResponse/variables": variables
6519165197
"/ces:v1/ExecuteToolResponse/variables/variable": variable
6519265198
"/ces:v1/ExportAppRequest": export_app_request
65199+
"/ces:v1/ExportAppRequest/appVersion": app_version
6519365200
"/ces:v1/ExportAppRequest/exportFormat": export_format
6519465201
"/ces:v1/ExportAppRequest/gcsUri": gcs_uri
6519565202
"/ces:v1/ExportAppResponse": export_app_response
@@ -65204,6 +65211,7 @@
6520465211
"/ces:v1/FileSearchTool/name": name
6520565212
"/ces:v1/GenerateChatTokenRequest": generate_chat_token_request
6520665213
"/ces:v1/GenerateChatTokenRequest/deployment": deployment
65214+
"/ces:v1/GenerateChatTokenRequest/liveHandoffEnabled": live_handoff_enabled
6520765215
"/ces:v1/GenerateChatTokenRequest/recaptchaToken": recaptcha_token
6520865216
"/ces:v1/GenerateChatTokenResponse": generate_chat_token_response
6520965217
"/ces:v1/GenerateChatTokenResponse/chatToken": chat_token
@@ -65369,6 +65377,8 @@
6536965377
"/ces:v1/LoggingSettings/redactionConfig": redaction_config
6537065378
"/ces:v1/McpTool": mcp_tool
6537165379
"/ces:v1/McpTool/apiAuthentication": api_authentication
65380+
"/ces:v1/McpTool/customHeaders": custom_headers
65381+
"/ces:v1/McpTool/customHeaders/custom_header": custom_header
6537265382
"/ces:v1/McpTool/description": description
6537365383
"/ces:v1/McpTool/inputSchema": input_schema
6537465384
"/ces:v1/McpTool/name": name
@@ -65378,6 +65388,8 @@
6537865388
"/ces:v1/McpTool/tlsConfig": tls_config
6537965389
"/ces:v1/McpToolset": mcp_toolset
6538065390
"/ces:v1/McpToolset/apiAuthentication": api_authentication
65391+
"/ces:v1/McpToolset/customHeaders": custom_headers
65392+
"/ces:v1/McpToolset/customHeaders/custom_header": custom_header
6538165393
"/ces:v1/McpToolset/serverAddress": server_address
6538265394
"/ces:v1/McpToolset/serviceDirectoryConfig": service_directory_config
6538365395
"/ces:v1/McpToolset/tlsConfig": tls_config
@@ -65610,6 +65622,7 @@
6561065622
"/ces:v1/TlsConfigCaCert/cert": cert
6561165623
"/ces:v1/TlsConfigCaCert/displayName": display_name
6561265624
"/ces:v1/Tool": tool
65625+
"/ces:v1/Tool/agentTool": agent_tool
6561365626
"/ces:v1/Tool/clientFunction": client_function
6561465627
"/ces:v1/Tool/connectorTool": connector_tool
6561565628
"/ces:v1/Tool/createTime": create_time
@@ -65694,10 +65707,19 @@
6569465707
"/ces:v1/WebSearchQuery/query": query
6569565708
"/ces:v1/WebSearchQuery/uri": uri
6569665709
"/ces:v1/WidgetTool": widget_tool
65710+
"/ces:v1/WidgetTool/dataMapping": data_mapping
6569765711
"/ces:v1/WidgetTool/description": description
6569865712
"/ces:v1/WidgetTool/name": name
6569965713
"/ces:v1/WidgetTool/parameters": parameters
65714+
"/ces:v1/WidgetTool/uiConfig": ui_config
65715+
"/ces:v1/WidgetTool/uiConfig/ui_config": ui_config
6570065716
"/ces:v1/WidgetTool/widgetType": widget_type
65717+
"/ces:v1/WidgetToolDataMapping": widget_tool_data_mapping
65718+
"/ces:v1/WidgetToolDataMapping/fieldMappings": field_mappings
65719+
"/ces:v1/WidgetToolDataMapping/fieldMappings/field_mapping": field_mapping
65720+
"/ces:v1/WidgetToolDataMapping/mode": mode
65721+
"/ces:v1/WidgetToolDataMapping/pythonScript": python_script
65722+
"/ces:v1/WidgetToolDataMapping/sourceToolName": source_tool_name
6570165723
"/ces:v1/ces.projects.locations.apps.agents.create": create_project_location_app_agent
6570265724
"/ces:v1/ces.projects.locations.apps.agents.create/agentId": agent_id
6570365725
"/ces:v1/ces.projects.locations.apps.agents.create/parent": parent

generated/google-apis-ces_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-ces_v1
22

3+
### v0.5.0 (2026-03-15)
4+
5+
* Regenerated from discovery document revision 20260312
6+
37
### v0.4.0 (2026-03-08)
48

59
* Regenerated from discovery document revision 20260227

generated/google-apis-ces_v1/OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
7979

8080
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
8181

82-
The [product documentation](https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference) may provide guidance regarding the preferred client library to use.
82+
The [product documentation](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps) may provide guidance regarding the preferred client library to use.
8383

8484
## Supported Ruby versions
8585

generated/google-apis-ces_v1/lib/google/apis/ces_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module Apis
2323
#
2424
#
2525
#
26-
# @see https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference
26+
# @see https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps
2727
module CesV1
2828
# Version of the Gemini Enterprise for Customer Experience API this client connects to.
2929
# This is NOT the gem version.

generated/google-apis-ces_v1/lib/google/apis/ces_v1/classes.rb

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,38 @@ def update!(**args)
373373
end
374374
end
375375

376+
# Represents a tool that allows the agent to call another agent.
377+
class AgentTool
378+
include Google::Apis::Core::Hashable
379+
380+
# Optional. Description of the tool's purpose.
381+
# Corresponds to the JSON property `description`
382+
# @return [String]
383+
attr_accessor :description
384+
385+
# Required. The name of the agent tool.
386+
# Corresponds to the JSON property `name`
387+
# @return [String]
388+
attr_accessor :name
389+
390+
# Optional. The resource name of the root agent that is the entry point of the
391+
# tool. Format: `projects/`project`/locations/`location`/agents/`agent``
392+
# Corresponds to the JSON property `rootAgent`
393+
# @return [String]
394+
attr_accessor :root_agent
395+
396+
def initialize(**args)
397+
update!(**args)
398+
end
399+
400+
# Update properties of this object
401+
def update!(**args)
402+
@description = args[:description] if args.key?(:description)
403+
@name = args[:name] if args.key?(:name)
404+
@root_agent = args[:root_agent] if args.key?(:root_agent)
405+
end
406+
end
407+
376408
# Represents an event indicating the transfer of a conversation to a different
377409
# agent.
378410
class AgentTransfer
@@ -2885,6 +2917,13 @@ class ExecuteToolRequest
28852917
# @return [Hash<String,Object>]
28862918
attr_accessor :args
28872919

2920+
# Optional. The [ToolCallContext](https://docs.cloud.google.com/customer-
2921+
# engagement-ai/conversational-agents/ps/tool/python#environment for details) to
2922+
# be passed to the Python tool.
2923+
# Corresponds to the JSON property `context`
2924+
# @return [Hash<String,Object>]
2925+
attr_accessor :context
2926+
28882927
# Optional. The name of the tool to execute. Format: projects/`project`/
28892928
# locations/`location`/apps/`app`/tools/`tool`
28902929
# Corresponds to the JSON property `tool`
@@ -2908,6 +2947,7 @@ def initialize(**args)
29082947
# Update properties of this object
29092948
def update!(**args)
29102949
@args = args[:args] if args.key?(:args)
2950+
@context = args[:context] if args.key?(:context)
29112951
@tool = args[:tool] if args.key?(:tool)
29122952
@toolset_tool = args[:toolset_tool] if args.key?(:toolset_tool)
29132953
@variables = args[:variables] if args.key?(:variables)
@@ -2959,6 +2999,12 @@ def update!(**args)
29592999
class ExportAppRequest
29603000
include Google::Apis::Core::Hashable
29613001

3002+
# Optional. The resource name of the app version to export. Format: `projects/`
3003+
# project`/locations/`location`/apps/`app`/versions/`version``.
3004+
# Corresponds to the JSON property `appVersion`
3005+
# @return [String]
3006+
attr_accessor :app_version
3007+
29623008
# Required. The format to export the app in.
29633009
# Corresponds to the JSON property `exportFormat`
29643010
# @return [String]
@@ -2977,6 +3023,7 @@ def initialize(**args)
29773023

29783024
# Update properties of this object
29793025
def update!(**args)
3026+
@app_version = args[:app_version] if args.key?(:app_version)
29803027
@export_format = args[:export_format] if args.key?(:export_format)
29813028
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
29823029
end
@@ -3078,6 +3125,12 @@ class GenerateChatTokenRequest
30783125
# @return [String]
30793126
attr_accessor :deployment
30803127

3128+
# Optional. Indicates if live handoff is enabled for the session.
3129+
# Corresponds to the JSON property `liveHandoffEnabled`
3130+
# @return [Boolean]
3131+
attr_accessor :live_handoff_enabled
3132+
alias_method :live_handoff_enabled?, :live_handoff_enabled
3133+
30813134
# Optional. The reCAPTCHA token generated by the client-side chat widget.
30823135
# Corresponds to the JSON property `recaptchaToken`
30833136
# @return [String]
@@ -3090,6 +3143,7 @@ def initialize(**args)
30903143
# Update properties of this object
30913144
def update!(**args)
30923145
@deployment = args[:deployment] if args.key?(:deployment)
3146+
@live_handoff_enabled = args[:live_handoff_enabled] if args.key?(:live_handoff_enabled)
30933147
@recaptcha_token = args[:recaptcha_token] if args.key?(:recaptcha_token)
30943148
end
30953149
end
@@ -4232,6 +4286,14 @@ class McpTool
42324286
# @return [Google::Apis::CesV1::ApiAuthentication]
42334287
attr_accessor :api_authentication
42344288

4289+
# Optional. The custom headers to send in the request to the MCP server. The
4290+
# values must be in the format `$context.variables.` and can be set in the
4291+
# session variables. See https://docs.cloud.google.com/customer-engagement-ai/
4292+
# conversational-agents/ps/tool/open-api#openapi-injection for more details.
4293+
# Corresponds to the JSON property `customHeaders`
4294+
# @return [Hash<String,String>]
4295+
attr_accessor :custom_headers
4296+
42354297
# Optional. The description of the MCP tool.
42364298
# Corresponds to the JSON property `description`
42374299
# @return [String]
@@ -4278,6 +4340,7 @@ def initialize(**args)
42784340
# Update properties of this object
42794341
def update!(**args)
42804342
@api_authentication = args[:api_authentication] if args.key?(:api_authentication)
4343+
@custom_headers = args[:custom_headers] if args.key?(:custom_headers)
42814344
@description = args[:description] if args.key?(:description)
42824345
@input_schema = args[:input_schema] if args.key?(:input_schema)
42834346
@name = args[:name] if args.key?(:name)
@@ -4297,6 +4360,14 @@ class McpToolset
42974360
# @return [Google::Apis::CesV1::ApiAuthentication]
42984361
attr_accessor :api_authentication
42994362

4363+
# Optional. The custom headers to send in the request to the MCP server. The
4364+
# values must be in the format `$context.variables.` and can be set in the
4365+
# session variables. See https://docs.cloud.google.com/customer-engagement-ai/
4366+
# conversational-agents/ps/tool/open-api#openapi-injection for more details.
4367+
# Corresponds to the JSON property `customHeaders`
4368+
# @return [Hash<String,String>]
4369+
attr_accessor :custom_headers
4370+
43004371
# Required. The address of the MCP server, for example, "https://example.com/mcp/
43014372
# ". If the server is built with the MCP SDK, the url should be suffixed with "/
43024373
# mcp/". Only Streamable HTTP transport based servers are supported. See https://
@@ -4323,6 +4394,7 @@ def initialize(**args)
43234394
# Update properties of this object
43244395
def update!(**args)
43254396
@api_authentication = args[:api_authentication] if args.key?(:api_authentication)
4397+
@custom_headers = args[:custom_headers] if args.key?(:custom_headers)
43264398
@server_address = args[:server_address] if args.key?(:server_address)
43274399
@service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
43284400
@tls_config = args[:tls_config] if args.key?(:tls_config)
@@ -5995,6 +6067,11 @@ def update!(**args)
59956067
class Tool
59966068
include Google::Apis::Core::Hashable
59976069

6070+
# Represents a tool that allows the agent to call another agent.
6071+
# Corresponds to the JSON property `agentTool`
6072+
# @return [Google::Apis::CesV1::AgentTool]
6073+
attr_accessor :agent_tool
6074+
59986075
# Represents a client-side function that the agent can invoke. When the tool is
59996076
# chosen by the agent, control is handed off to the client. The client is
60006077
# responsible for executing the function and returning the result as a
@@ -6115,6 +6192,7 @@ def initialize(**args)
61156192

61166193
# Update properties of this object
61176194
def update!(**args)
6195+
@agent_tool = args[:agent_tool] if args.key?(:agent_tool)
61186196
@client_function = args[:client_function] if args.key?(:client_function)
61196197
@connector_tool = args[:connector_tool] if args.key?(:connector_tool)
61206198
@create_time = args[:create_time] if args.key?(:create_time)
@@ -6636,6 +6714,12 @@ def update!(**args)
66366714
class WidgetTool
66376715
include Google::Apis::Core::Hashable
66386716

6717+
# Configuration for mapping data from a source tool to the widget's input
6718+
# parameters.
6719+
# Corresponds to the JSON property `dataMapping`
6720+
# @return [Google::Apis::CesV1::WidgetToolDataMapping]
6721+
attr_accessor :data_mapping
6722+
66396723
# Optional. The description of the widget tool.
66406724
# Corresponds to the JSON property `description`
66416725
# @return [String]
@@ -6651,6 +6735,11 @@ class WidgetTool
66516735
# @return [Google::Apis::CesV1::Schema]
66526736
attr_accessor :parameters
66536737

6738+
# Optional. Configuration for rendering the widget.
6739+
# Corresponds to the JSON property `uiConfig`
6740+
# @return [Hash<String,Object>]
6741+
attr_accessor :ui_config
6742+
66546743
# Optional. The type of the widget tool. If not specified, the default type will
66556744
# be CUSTOMIZED.
66566745
# Corresponds to the JSON property `widgetType`
@@ -6663,12 +6752,57 @@ def initialize(**args)
66636752

66646753
# Update properties of this object
66656754
def update!(**args)
6755+
@data_mapping = args[:data_mapping] if args.key?(:data_mapping)
66666756
@description = args[:description] if args.key?(:description)
66676757
@name = args[:name] if args.key?(:name)
66686758
@parameters = args[:parameters] if args.key?(:parameters)
6759+
@ui_config = args[:ui_config] if args.key?(:ui_config)
66696760
@widget_type = args[:widget_type] if args.key?(:widget_type)
66706761
end
66716762
end
6763+
6764+
# Configuration for mapping data from a source tool to the widget's input
6765+
# parameters.
6766+
class WidgetToolDataMapping
6767+
include Google::Apis::Core::Hashable
6768+
6769+
# Optional. A map of widget input parameter fields to the corresponding output
6770+
# fields of the source tool.
6771+
# Corresponds to the JSON property `fieldMappings`
6772+
# @return [Hash<String,String>]
6773+
attr_accessor :field_mappings
6774+
6775+
# Optional. The mode of the data mapping.
6776+
# Corresponds to the JSON property `mode`
6777+
# @return [String]
6778+
attr_accessor :mode
6779+
6780+
# Optional. A Python script used to transform the source tool's output into the
6781+
# widget's input format. This is used when the mapping is too complex for simple
6782+
# field mappings.
6783+
# Corresponds to the JSON property `pythonScript`
6784+
# @return [String]
6785+
attr_accessor :python_script
6786+
6787+
# Optional. The resource name of the tool that provides the data for the widget (
6788+
# e.g., a search tool or a custom function). Format: `projects/`project`/
6789+
# locations/`location`/agents/`agent`/tools/`tool``
6790+
# Corresponds to the JSON property `sourceToolName`
6791+
# @return [String]
6792+
attr_accessor :source_tool_name
6793+
6794+
def initialize(**args)
6795+
update!(**args)
6796+
end
6797+
6798+
# Update properties of this object
6799+
def update!(**args)
6800+
@field_mappings = args[:field_mappings] if args.key?(:field_mappings)
6801+
@mode = args[:mode] if args.key?(:mode)
6802+
@python_script = args[:python_script] if args.key?(:python_script)
6803+
@source_tool_name = args[:source_tool_name] if args.key?(:source_tool_name)
6804+
end
6805+
end
66726806
end
66736807
end
66746808
end

generated/google-apis-ces_v1/lib/google/apis/ces_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CesV1
1818
# Version of the google-apis-ces_v1 gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260227"
25+
REVISION = "20260312"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)