google-cloud-ces-v1 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/ces/v1/agent_card_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/agent_pb.rb +1 -1
- data/lib/google/cloud/ces/v1/app_pb.rb +4 -1
- data/lib/google/cloud/ces/v1/common_pb.rb +3 -1
- data/lib/google/cloud/ces/v1/conversation_pb.rb +1 -1
- data/lib/google/cloud/ces/v1/deployment_pb.rb +7 -1
- data/lib/google/cloud/ces/v1/mcp_tool_pb.rb +2 -1
- data/lib/google/cloud/ces/v1/mcp_toolset_pb.rb +4 -1
- data/lib/google/cloud/ces/v1/mocks_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/python_function_pb.rb +2 -1
- data/lib/google/cloud/ces/v1/session_service_pb.rb +6 -1
- data/lib/google/cloud/ces/v1/tool_pb.rb +3 -1
- data/lib/google/cloud/ces/v1/tool_service/client.rb +10 -2
- data/lib/google/cloud/ces/v1/tool_service/rest/client.rb +10 -2
- data/lib/google/cloud/ces/v1/tool_service_pb.rb +3 -1
- data/lib/google/cloud/ces/v1/toolset_pb.rb +2 -1
- data/lib/google/cloud/ces/v1/version.rb +1 -1
- data/lib/google/cloud/ces/v1/widget_tool_pb.rb +3 -1
- data/proto_docs/google/api/routing.rb +463 -0
- data/proto_docs/google/cloud/ces/v1/agent.rb +9 -0
- data/proto_docs/google/cloud/ces/v1/agent_card.rb +122 -0
- data/proto_docs/google/cloud/ces/v1/app.rb +108 -7
- data/proto_docs/google/cloud/ces/v1/common.rb +57 -0
- data/proto_docs/google/cloud/ces/v1/conversation.rb +13 -6
- data/proto_docs/google/cloud/ces/v1/deployment.rb +105 -0
- data/proto_docs/google/cloud/ces/v1/mcp_tool.rb +25 -0
- data/proto_docs/google/cloud/ces/v1/mcp_toolset.rb +47 -0
- data/proto_docs/google/cloud/ces/v1/mocks.rb +60 -0
- data/proto_docs/google/cloud/ces/v1/python_function.rb +3 -0
- data/proto_docs/google/cloud/ces/v1/session_service.rb +32 -0
- data/proto_docs/google/cloud/ces/v1/tool.rb +21 -11
- data/proto_docs/google/cloud/ces/v1/tool_service.rb +17 -0
- data/proto_docs/google/cloud/ces/v1/toolset.rb +5 -0
- data/proto_docs/google/cloud/ces/v1/widget_tool.rb +36 -0
- metadata +6 -1
|
@@ -10,7 +10,7 @@ require 'google/cloud/ces/v1/schema_pb'
|
|
|
10
10
|
require 'google/protobuf/struct_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n%google/cloud/ces/v1/widget_tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/ces/v1/python_function.proto\x1a google/cloud/ces/v1/schema.proto\x1a\x1cgoogle/protobuf/struct.proto\"\
|
|
13
|
+
descriptor_data = "\n%google/cloud/ces/v1/widget_tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/ces/v1/python_function.proto\x1a google/cloud/ces/v1/schema.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd4\n\n\nWidgetTool\x12\x36\n\nparameters\x18\x04 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x0bwidget_type\x18\x03 \x01(\x0e\x32*.google.cloud.ces.v1.WidgetTool.WidgetTypeB\x03\xe0\x41\x01\x12/\n\tui_config\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x46\n\x0c\x64\x61ta_mapping\x18\x06 \x01(\x0b\x32+.google.cloud.ces.v1.WidgetTool.DataMappingB\x03\xe0\x41\x01\x12U\n\x14text_response_config\x18\x07 \x01(\x0b\x32\x32.google.cloud.ces.v1.WidgetTool.TextResponseConfigB\x03\xe0\x41\x01\x1a\xe9\x01\n\x12TextResponseConfig\x12J\n\x04type\x18\x01 \x01(\x0e\x32\x37.google.cloud.ces.v1.WidgetTool.TextResponseConfig.TypeB\x03\xe0\x41\x01\x12\x18\n\x0bstatic_text\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12&\n\x19text_response_instruction\x18\x03 \x01(\tB\x03\xe0\x41\x01\"E\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x11\n\rLLM_GENERATED\x10\x02\x12\n\n\x06STATIC\x10\x03\x1a\xa6\x03\n\x0b\x44\x61taMapping\x12\x1d\n\x10source_tool_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12[\n\x0e\x66ield_mappings\x18\x02 \x03(\x0b\x32>.google.cloud.ces.v1.WidgetTool.DataMapping.FieldMappingsEntryB\x03\xe0\x41\x01\x12\x41\n\x0fpython_function\x18\x05 \x01(\x0b\x32#.google.cloud.ces.v1.PythonFunctionB\x03\xe0\x41\x01\x12\x43\n\x04mode\x18\x04 \x01(\x0e\x32\x30.google.cloud.ces.v1.WidgetTool.DataMapping.ModeB\x03\xe0\x41\x01\x12\x19\n\rpython_script\x18\x03 \x01(\tB\x02\x18\x01\x1a\x34\n\x12\x46ieldMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rFIELD_MAPPING\x10\x01\x12\x11\n\rPYTHON_SCRIPT\x10\x02\"\xac\x02\n\nWidgetType\x12\x1b\n\x17WIDGET_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43USTOM\x10\x01\x12\x14\n\x10PRODUCT_CAROUSEL\x10\x02\x12\x13\n\x0fPRODUCT_DETAILS\x10\x03\x12\x11\n\rQUICK_ACTIONS\x10\x04\x12\x16\n\x12PRODUCT_COMPARISON\x10\x05\x12\x1c\n\x18\x41\x44VANCED_PRODUCT_DETAILS\x10\x06\x12\x0e\n\nSHORT_FORM\x10\x07\x12\x18\n\x14OVERALL_SATISFACTION\x10\x08\x12\x11\n\rORDER_SUMMARY\x10\t\x12\x17\n\x13\x41PPOINTMENT_DETAILS\x10\n\x12\x19\n\x15\x41PPOINTMENT_SCHEDULER\x10\x0b\x12\x10\n\x0c\x43ONTACT_FORM\x10\x0c\x42\x07\n\x05inputBW\n\x17\x63om.google.cloud.ces.v1B\x0fWidgetToolProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3"
|
|
14
14
|
|
|
15
15
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -20,6 +20,8 @@ module Google
|
|
|
20
20
|
module Ces
|
|
21
21
|
module V1
|
|
22
22
|
WidgetTool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool").msgclass
|
|
23
|
+
WidgetTool::TextResponseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.TextResponseConfig").msgclass
|
|
24
|
+
WidgetTool::TextResponseConfig::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type").enummodule
|
|
23
25
|
WidgetTool::DataMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.DataMapping").msgclass
|
|
24
26
|
WidgetTool::DataMapping::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.DataMapping.Mode").enummodule
|
|
25
27
|
WidgetTool::WidgetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.WidgetType").enummodule
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Api
|
|
22
|
+
# Specifies the routing information that should be sent along with the request
|
|
23
|
+
# in the form of routing header.
|
|
24
|
+
# **NOTE:** All service configuration rules follow the "last one wins" order.
|
|
25
|
+
#
|
|
26
|
+
# The examples below will apply to an RPC which has the following request type:
|
|
27
|
+
#
|
|
28
|
+
# Message Definition:
|
|
29
|
+
#
|
|
30
|
+
# message Request {
|
|
31
|
+
# // The name of the Table
|
|
32
|
+
# // Values can be of the following formats:
|
|
33
|
+
# // - `projects/<project>/tables/<table>`
|
|
34
|
+
# // - `projects/<project>/instances/<instance>/tables/<table>`
|
|
35
|
+
# // - `region/<region>/zones/<zone>/tables/<table>`
|
|
36
|
+
# string table_name = 1;
|
|
37
|
+
#
|
|
38
|
+
# // This value specifies routing for replication.
|
|
39
|
+
# // It can be in the following formats:
|
|
40
|
+
# // - `profiles/<profile_id>`
|
|
41
|
+
# // - a legacy `profile_id` that can be any string
|
|
42
|
+
# string app_profile_id = 2;
|
|
43
|
+
# }
|
|
44
|
+
#
|
|
45
|
+
# Example message:
|
|
46
|
+
#
|
|
47
|
+
# {
|
|
48
|
+
# table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
|
|
49
|
+
# app_profile_id: profiles/prof_qux
|
|
50
|
+
# }
|
|
51
|
+
#
|
|
52
|
+
# The routing header consists of one or multiple key-value pairs. The order of
|
|
53
|
+
# the key-value pairs is undefined, the order of the `routing_parameters` in
|
|
54
|
+
# the `RoutingRule` only matters for the evaluation order of the path
|
|
55
|
+
# templates when `field` is the same. See the examples below for more details.
|
|
56
|
+
#
|
|
57
|
+
# Every key and value in the routing header must be percent-encoded,
|
|
58
|
+
# and joined together in the following format: `key1=value1&key2=value2`.
|
|
59
|
+
# The examples below skip the percent-encoding for readability.
|
|
60
|
+
#
|
|
61
|
+
# Example 1
|
|
62
|
+
#
|
|
63
|
+
# Extracting a field from the request to put into the routing header
|
|
64
|
+
# unchanged, with the key equal to the field name.
|
|
65
|
+
#
|
|
66
|
+
# annotation:
|
|
67
|
+
#
|
|
68
|
+
# option (google.api.routing) = {
|
|
69
|
+
# // Take the `app_profile_id`.
|
|
70
|
+
# routing_parameters {
|
|
71
|
+
# field: "app_profile_id"
|
|
72
|
+
# }
|
|
73
|
+
# };
|
|
74
|
+
#
|
|
75
|
+
# result:
|
|
76
|
+
#
|
|
77
|
+
# x-goog-request-params: app_profile_id=profiles/prof_qux
|
|
78
|
+
#
|
|
79
|
+
# Example 2
|
|
80
|
+
#
|
|
81
|
+
# Extracting a field from the request to put into the routing header
|
|
82
|
+
# unchanged, with the key different from the field name.
|
|
83
|
+
#
|
|
84
|
+
# annotation:
|
|
85
|
+
#
|
|
86
|
+
# option (google.api.routing) = {
|
|
87
|
+
# // Take the `app_profile_id`, but name it `routing_id` in the header.
|
|
88
|
+
# routing_parameters {
|
|
89
|
+
# field: "app_profile_id"
|
|
90
|
+
# path_template: "{routing_id=**}"
|
|
91
|
+
# }
|
|
92
|
+
# };
|
|
93
|
+
#
|
|
94
|
+
# result:
|
|
95
|
+
#
|
|
96
|
+
# x-goog-request-params: routing_id=profiles/prof_qux
|
|
97
|
+
#
|
|
98
|
+
# Example 3
|
|
99
|
+
#
|
|
100
|
+
# Extracting a field from the request to put into the routing
|
|
101
|
+
# header, while matching a path template syntax on the field's value.
|
|
102
|
+
#
|
|
103
|
+
# NB: it is more useful to send nothing than to send garbage for the purpose
|
|
104
|
+
# of dynamic routing, since garbage pollutes cache. Thus the matching.
|
|
105
|
+
#
|
|
106
|
+
# Sub-example 3a
|
|
107
|
+
#
|
|
108
|
+
# The field matches the template.
|
|
109
|
+
#
|
|
110
|
+
# annotation:
|
|
111
|
+
#
|
|
112
|
+
# option (google.api.routing) = {
|
|
113
|
+
# // Take the `table_name`, if it's well-formed (with project-based
|
|
114
|
+
# // syntax).
|
|
115
|
+
# routing_parameters {
|
|
116
|
+
# field: "table_name"
|
|
117
|
+
# path_template: "{table_name=projects/*/instances/*/**}"
|
|
118
|
+
# }
|
|
119
|
+
# };
|
|
120
|
+
#
|
|
121
|
+
# result:
|
|
122
|
+
#
|
|
123
|
+
# x-goog-request-params:
|
|
124
|
+
# table_name=projects/proj_foo/instances/instance_bar/table/table_baz
|
|
125
|
+
#
|
|
126
|
+
# Sub-example 3b
|
|
127
|
+
#
|
|
128
|
+
# The field does not match the template.
|
|
129
|
+
#
|
|
130
|
+
# annotation:
|
|
131
|
+
#
|
|
132
|
+
# option (google.api.routing) = {
|
|
133
|
+
# // Take the `table_name`, if it's well-formed (with region-based
|
|
134
|
+
# // syntax).
|
|
135
|
+
# routing_parameters {
|
|
136
|
+
# field: "table_name"
|
|
137
|
+
# path_template: "{table_name=regions/*/zones/*/**}"
|
|
138
|
+
# }
|
|
139
|
+
# };
|
|
140
|
+
#
|
|
141
|
+
# result:
|
|
142
|
+
#
|
|
143
|
+
# <no routing header will be sent>
|
|
144
|
+
#
|
|
145
|
+
# Sub-example 3c
|
|
146
|
+
#
|
|
147
|
+
# Multiple alternative conflictingly named path templates are
|
|
148
|
+
# specified. The one that matches is used to construct the header.
|
|
149
|
+
#
|
|
150
|
+
# annotation:
|
|
151
|
+
#
|
|
152
|
+
# option (google.api.routing) = {
|
|
153
|
+
# // Take the `table_name`, if it's well-formed, whether
|
|
154
|
+
# // using the region- or projects-based syntax.
|
|
155
|
+
#
|
|
156
|
+
# routing_parameters {
|
|
157
|
+
# field: "table_name"
|
|
158
|
+
# path_template: "{table_name=regions/*/zones/*/**}"
|
|
159
|
+
# }
|
|
160
|
+
# routing_parameters {
|
|
161
|
+
# field: "table_name"
|
|
162
|
+
# path_template: "{table_name=projects/*/instances/*/**}"
|
|
163
|
+
# }
|
|
164
|
+
# };
|
|
165
|
+
#
|
|
166
|
+
# result:
|
|
167
|
+
#
|
|
168
|
+
# x-goog-request-params:
|
|
169
|
+
# table_name=projects/proj_foo/instances/instance_bar/table/table_baz
|
|
170
|
+
#
|
|
171
|
+
# Example 4
|
|
172
|
+
#
|
|
173
|
+
# Extracting a single routing header key-value pair by matching a
|
|
174
|
+
# template syntax on (a part of) a single request field.
|
|
175
|
+
#
|
|
176
|
+
# annotation:
|
|
177
|
+
#
|
|
178
|
+
# option (google.api.routing) = {
|
|
179
|
+
# // Take just the project id from the `table_name` field.
|
|
180
|
+
# routing_parameters {
|
|
181
|
+
# field: "table_name"
|
|
182
|
+
# path_template: "{routing_id=projects/*}/**"
|
|
183
|
+
# }
|
|
184
|
+
# };
|
|
185
|
+
#
|
|
186
|
+
# result:
|
|
187
|
+
#
|
|
188
|
+
# x-goog-request-params: routing_id=projects/proj_foo
|
|
189
|
+
#
|
|
190
|
+
# Example 5
|
|
191
|
+
#
|
|
192
|
+
# Extracting a single routing header key-value pair by matching
|
|
193
|
+
# several conflictingly named path templates on (parts of) a single request
|
|
194
|
+
# field. The last template to match "wins" the conflict.
|
|
195
|
+
#
|
|
196
|
+
# annotation:
|
|
197
|
+
#
|
|
198
|
+
# option (google.api.routing) = {
|
|
199
|
+
# // If the `table_name` does not have instances information,
|
|
200
|
+
# // take just the project id for routing.
|
|
201
|
+
# // Otherwise take project + instance.
|
|
202
|
+
#
|
|
203
|
+
# routing_parameters {
|
|
204
|
+
# field: "table_name"
|
|
205
|
+
# path_template: "{routing_id=projects/*}/**"
|
|
206
|
+
# }
|
|
207
|
+
# routing_parameters {
|
|
208
|
+
# field: "table_name"
|
|
209
|
+
# path_template: "{routing_id=projects/*/instances/*}/**"
|
|
210
|
+
# }
|
|
211
|
+
# };
|
|
212
|
+
#
|
|
213
|
+
# result:
|
|
214
|
+
#
|
|
215
|
+
# x-goog-request-params:
|
|
216
|
+
# routing_id=projects/proj_foo/instances/instance_bar
|
|
217
|
+
#
|
|
218
|
+
# Example 6
|
|
219
|
+
#
|
|
220
|
+
# Extracting multiple routing header key-value pairs by matching
|
|
221
|
+
# several non-conflicting path templates on (parts of) a single request field.
|
|
222
|
+
#
|
|
223
|
+
# Sub-example 6a
|
|
224
|
+
#
|
|
225
|
+
# Make the templates strict, so that if the `table_name` does not
|
|
226
|
+
# have an instance information, nothing is sent.
|
|
227
|
+
#
|
|
228
|
+
# annotation:
|
|
229
|
+
#
|
|
230
|
+
# option (google.api.routing) = {
|
|
231
|
+
# // The routing code needs two keys instead of one composite
|
|
232
|
+
# // but works only for the tables with the "project-instance" name
|
|
233
|
+
# // syntax.
|
|
234
|
+
#
|
|
235
|
+
# routing_parameters {
|
|
236
|
+
# field: "table_name"
|
|
237
|
+
# path_template: "{project_id=projects/*}/instances/*/**"
|
|
238
|
+
# }
|
|
239
|
+
# routing_parameters {
|
|
240
|
+
# field: "table_name"
|
|
241
|
+
# path_template: "projects/*/{instance_id=instances/*}/**"
|
|
242
|
+
# }
|
|
243
|
+
# };
|
|
244
|
+
#
|
|
245
|
+
# result:
|
|
246
|
+
#
|
|
247
|
+
# x-goog-request-params:
|
|
248
|
+
# project_id=projects/proj_foo&instance_id=instances/instance_bar
|
|
249
|
+
#
|
|
250
|
+
# Sub-example 6b
|
|
251
|
+
#
|
|
252
|
+
# Make the templates loose, so that if the `table_name` does not
|
|
253
|
+
# have an instance information, just the project id part is sent.
|
|
254
|
+
#
|
|
255
|
+
# annotation:
|
|
256
|
+
#
|
|
257
|
+
# option (google.api.routing) = {
|
|
258
|
+
# // The routing code wants two keys instead of one composite
|
|
259
|
+
# // but will work with just the `project_id` for tables without
|
|
260
|
+
# // an instance in the `table_name`.
|
|
261
|
+
#
|
|
262
|
+
# routing_parameters {
|
|
263
|
+
# field: "table_name"
|
|
264
|
+
# path_template: "{project_id=projects/*}/**"
|
|
265
|
+
# }
|
|
266
|
+
# routing_parameters {
|
|
267
|
+
# field: "table_name"
|
|
268
|
+
# path_template: "projects/*/{instance_id=instances/*}/**"
|
|
269
|
+
# }
|
|
270
|
+
# };
|
|
271
|
+
#
|
|
272
|
+
# result (is the same as 6a for our example message because it has the instance
|
|
273
|
+
# information):
|
|
274
|
+
#
|
|
275
|
+
# x-goog-request-params:
|
|
276
|
+
# project_id=projects/proj_foo&instance_id=instances/instance_bar
|
|
277
|
+
#
|
|
278
|
+
# Example 7
|
|
279
|
+
#
|
|
280
|
+
# Extracting multiple routing header key-value pairs by matching
|
|
281
|
+
# several path templates on multiple request fields.
|
|
282
|
+
#
|
|
283
|
+
# NB: note that here there is no way to specify sending nothing if one of the
|
|
284
|
+
# fields does not match its template. E.g. if the `table_name` is in the wrong
|
|
285
|
+
# format, the `project_id` will not be sent, but the `routing_id` will be.
|
|
286
|
+
# The backend routing code has to be aware of that and be prepared to not
|
|
287
|
+
# receive a full complement of keys if it expects multiple.
|
|
288
|
+
#
|
|
289
|
+
# annotation:
|
|
290
|
+
#
|
|
291
|
+
# option (google.api.routing) = {
|
|
292
|
+
# // The routing needs both `project_id` and `routing_id`
|
|
293
|
+
# // (from the `app_profile_id` field) for routing.
|
|
294
|
+
#
|
|
295
|
+
# routing_parameters {
|
|
296
|
+
# field: "table_name"
|
|
297
|
+
# path_template: "{project_id=projects/*}/**"
|
|
298
|
+
# }
|
|
299
|
+
# routing_parameters {
|
|
300
|
+
# field: "app_profile_id"
|
|
301
|
+
# path_template: "{routing_id=**}"
|
|
302
|
+
# }
|
|
303
|
+
# };
|
|
304
|
+
#
|
|
305
|
+
# result:
|
|
306
|
+
#
|
|
307
|
+
# x-goog-request-params:
|
|
308
|
+
# project_id=projects/proj_foo&routing_id=profiles/prof_qux
|
|
309
|
+
#
|
|
310
|
+
# Example 8
|
|
311
|
+
#
|
|
312
|
+
# Extracting a single routing header key-value pair by matching
|
|
313
|
+
# several conflictingly named path templates on several request fields. The
|
|
314
|
+
# last template to match "wins" the conflict.
|
|
315
|
+
#
|
|
316
|
+
# annotation:
|
|
317
|
+
#
|
|
318
|
+
# option (google.api.routing) = {
|
|
319
|
+
# // The `routing_id` can be a project id or a region id depending on
|
|
320
|
+
# // the table name format, but only if the `app_profile_id` is not set.
|
|
321
|
+
# // If `app_profile_id` is set it should be used instead.
|
|
322
|
+
#
|
|
323
|
+
# routing_parameters {
|
|
324
|
+
# field: "table_name"
|
|
325
|
+
# path_template: "{routing_id=projects/*}/**"
|
|
326
|
+
# }
|
|
327
|
+
# routing_parameters {
|
|
328
|
+
# field: "table_name"
|
|
329
|
+
# path_template: "{routing_id=regions/*}/**"
|
|
330
|
+
# }
|
|
331
|
+
# routing_parameters {
|
|
332
|
+
# field: "app_profile_id"
|
|
333
|
+
# path_template: "{routing_id=**}"
|
|
334
|
+
# }
|
|
335
|
+
# };
|
|
336
|
+
#
|
|
337
|
+
# result:
|
|
338
|
+
#
|
|
339
|
+
# x-goog-request-params: routing_id=profiles/prof_qux
|
|
340
|
+
#
|
|
341
|
+
# Example 9
|
|
342
|
+
#
|
|
343
|
+
# Bringing it all together.
|
|
344
|
+
#
|
|
345
|
+
# annotation:
|
|
346
|
+
#
|
|
347
|
+
# option (google.api.routing) = {
|
|
348
|
+
# // For routing both `table_location` and a `routing_id` are needed.
|
|
349
|
+
# //
|
|
350
|
+
# // table_location can be either an instance id or a region+zone id.
|
|
351
|
+
# //
|
|
352
|
+
# // For `routing_id`, take the value of `app_profile_id`
|
|
353
|
+
# // - If it's in the format `profiles/<profile_id>`, send
|
|
354
|
+
# // just the `<profile_id>` part.
|
|
355
|
+
# // - If it's any other literal, send it as is.
|
|
356
|
+
# // If the `app_profile_id` is empty, and the `table_name` starts with
|
|
357
|
+
# // the project_id, send that instead.
|
|
358
|
+
#
|
|
359
|
+
# routing_parameters {
|
|
360
|
+
# field: "table_name"
|
|
361
|
+
# path_template: "projects/*/{table_location=instances/*}/tables/*"
|
|
362
|
+
# }
|
|
363
|
+
# routing_parameters {
|
|
364
|
+
# field: "table_name"
|
|
365
|
+
# path_template: "{table_location=regions/*/zones/*}/tables/*"
|
|
366
|
+
# }
|
|
367
|
+
# routing_parameters {
|
|
368
|
+
# field: "table_name"
|
|
369
|
+
# path_template: "{routing_id=projects/*}/**"
|
|
370
|
+
# }
|
|
371
|
+
# routing_parameters {
|
|
372
|
+
# field: "app_profile_id"
|
|
373
|
+
# path_template: "{routing_id=**}"
|
|
374
|
+
# }
|
|
375
|
+
# routing_parameters {
|
|
376
|
+
# field: "app_profile_id"
|
|
377
|
+
# path_template: "profiles/{routing_id=*}"
|
|
378
|
+
# }
|
|
379
|
+
# };
|
|
380
|
+
#
|
|
381
|
+
# result:
|
|
382
|
+
#
|
|
383
|
+
# x-goog-request-params:
|
|
384
|
+
# table_location=instances/instance_bar&routing_id=prof_qux
|
|
385
|
+
# @!attribute [rw] routing_parameters
|
|
386
|
+
# @return [::Array<::Google::Api::RoutingParameter>]
|
|
387
|
+
# A collection of Routing Parameter specifications.
|
|
388
|
+
# **NOTE:** If multiple Routing Parameters describe the same key
|
|
389
|
+
# (via the `path_template` field or via the `field` field when
|
|
390
|
+
# `path_template` is not provided), "last one wins" rule
|
|
391
|
+
# determines which Parameter gets used.
|
|
392
|
+
# See the examples for more details.
|
|
393
|
+
class RoutingRule
|
|
394
|
+
include ::Google::Protobuf::MessageExts
|
|
395
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# A projection from an input message to the GRPC or REST header.
|
|
399
|
+
# @!attribute [rw] field
|
|
400
|
+
# @return [::String]
|
|
401
|
+
# A request field to extract the header key-value pair from.
|
|
402
|
+
# @!attribute [rw] path_template
|
|
403
|
+
# @return [::String]
|
|
404
|
+
# A pattern matching the key-value field. Optional.
|
|
405
|
+
# If not specified, the whole field specified in the `field` field will be
|
|
406
|
+
# taken as value, and its name used as key. If specified, it MUST contain
|
|
407
|
+
# exactly one named segment (along with any number of unnamed segments) The
|
|
408
|
+
# pattern will be matched over the field specified in the `field` field, then
|
|
409
|
+
# if the match is successful:
|
|
410
|
+
# - the name of the single named segment will be used as a header name,
|
|
411
|
+
# - the match value of the segment will be used as a header value;
|
|
412
|
+
# if the match is NOT successful, nothing will be sent.
|
|
413
|
+
#
|
|
414
|
+
# Example:
|
|
415
|
+
#
|
|
416
|
+
# -- This is a field in the request message
|
|
417
|
+
# | that the header value will be extracted from.
|
|
418
|
+
# |
|
|
419
|
+
# | -- This is the key name in the
|
|
420
|
+
# | | routing header.
|
|
421
|
+
# V |
|
|
422
|
+
# field: "table_name" v
|
|
423
|
+
# path_template: "projects/*/{table_location=instances/*}/tables/*"
|
|
424
|
+
# ^ ^
|
|
425
|
+
# | |
|
|
426
|
+
# In the {} brackets is the pattern that -- |
|
|
427
|
+
# specifies what to extract from the |
|
|
428
|
+
# field as a value to be sent. |
|
|
429
|
+
# |
|
|
430
|
+
# The string in the field must match the whole pattern --
|
|
431
|
+
# before brackets, inside brackets, after brackets.
|
|
432
|
+
#
|
|
433
|
+
# When looking at this specific example, we can see that:
|
|
434
|
+
# - A key-value pair with the key `table_location`
|
|
435
|
+
# and the value matching `instances/*` should be added
|
|
436
|
+
# to the x-goog-request-params routing header.
|
|
437
|
+
# - The value is extracted from the request message's `table_name` field
|
|
438
|
+
# if it matches the full pattern specified:
|
|
439
|
+
# `projects/*/instances/*/tables/*`.
|
|
440
|
+
#
|
|
441
|
+
# **NB:** If the `path_template` field is not provided, the key name is
|
|
442
|
+
# equal to the field name, and the whole field should be sent as a value.
|
|
443
|
+
# This makes the pattern for the field and the value functionally equivalent
|
|
444
|
+
# to `**`, and the configuration
|
|
445
|
+
#
|
|
446
|
+
# {
|
|
447
|
+
# field: "table_name"
|
|
448
|
+
# }
|
|
449
|
+
#
|
|
450
|
+
# is a functionally equivalent shorthand to:
|
|
451
|
+
#
|
|
452
|
+
# {
|
|
453
|
+
# field: "table_name"
|
|
454
|
+
# path_template: "{table_name=**}"
|
|
455
|
+
# }
|
|
456
|
+
#
|
|
457
|
+
# See Example 1 for more details.
|
|
458
|
+
class RoutingParameter
|
|
459
|
+
include ::Google::Protobuf::MessageExts
|
|
460
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
end
|
|
@@ -131,6 +131,10 @@ module Google
|
|
|
131
131
|
# @return [::Array<::Google::Cloud::Ces::V1::TransferRule>]
|
|
132
132
|
# Optional. Agent transfer rules.
|
|
133
133
|
# If multiple rules match, the first one in the list will be used.
|
|
134
|
+
# @!attribute [r] validation_errors
|
|
135
|
+
# @return [::Array<::String>]
|
|
136
|
+
# Output only. Misconfigurations or errors in the agent that may affect agent
|
|
137
|
+
# quality.
|
|
134
138
|
class Agent
|
|
135
139
|
include ::Google::Protobuf::MessageExts
|
|
136
140
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -181,6 +185,11 @@ module Google
|
|
|
181
185
|
# [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text)
|
|
182
186
|
# set to true will be interruptable, all other messages follow the
|
|
183
187
|
# app-level barge-in settings.
|
|
188
|
+
# @!attribute [rw] language_code_variable
|
|
189
|
+
# @return [::String]
|
|
190
|
+
# Optional. The name of the variable that contains the language code to be
|
|
191
|
+
# used for the Dialogflow session. If unspecified, the default language
|
|
192
|
+
# code of the Dialogflow agent will be used.
|
|
184
193
|
class RemoteDialogflowAgent
|
|
185
194
|
include ::Google::Protobuf::MessageExts
|
|
186
195
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Ces
|
|
23
|
+
module V1
|
|
24
|
+
# AgentCard conveys key information about a remote agent.
|
|
25
|
+
# It is a trimmed version of the AgentCard defined in the A2A protocol
|
|
26
|
+
# https://a2a-protocol.org/dev/specification/#441-agentcard
|
|
27
|
+
# @!attribute [rw] name
|
|
28
|
+
# @return [::String]
|
|
29
|
+
# Required. A human-readable name for the agent.
|
|
30
|
+
# @!attribute [rw] description
|
|
31
|
+
# @return [::String]
|
|
32
|
+
# Required. A description of the agent's domain of action/solution space.
|
|
33
|
+
# @!attribute [rw] supported_interfaces
|
|
34
|
+
# @return [::Array<::Google::Cloud::Ces::V1::AgentInterface>]
|
|
35
|
+
# Required. Ordered list of supported interfaces. The first entry is
|
|
36
|
+
# preferred.
|
|
37
|
+
# @!attribute [rw] version
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# Required. The version of the agent.
|
|
40
|
+
# @!attribute [rw] skills
|
|
41
|
+
# @return [::Array<::Google::Cloud::Ces::V1::AgentSkill>]
|
|
42
|
+
# Required. Skills represent a unit of ability an agent can perform. This may
|
|
43
|
+
# somewhat abstract but represents a more focused set of actions that the
|
|
44
|
+
# agent is highly likely to succeed at.
|
|
45
|
+
class AgentCard
|
|
46
|
+
include ::Google::Protobuf::MessageExts
|
|
47
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Declares a combination of a target URL, transport and protocol version for
|
|
51
|
+
# interacting with the agent. This allows agents to expose the same
|
|
52
|
+
# functionality over multiple protocol binding mechanisms.
|
|
53
|
+
# @!attribute [rw] url
|
|
54
|
+
# @return [::String]
|
|
55
|
+
# Required. The URL where this interface is available. Must be a valid
|
|
56
|
+
# absolute HTTPS URL in production. Example:
|
|
57
|
+
# "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
|
|
58
|
+
# @!attribute [rw] protocol_binding
|
|
59
|
+
# @return [::String]
|
|
60
|
+
# Required. The protocol binding supported at this URL. This is an open form
|
|
61
|
+
# string, to be easily extended for other protocol bindings. The core ones
|
|
62
|
+
# officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
|
|
63
|
+
# @!attribute [rw] tenant
|
|
64
|
+
# @return [::String]
|
|
65
|
+
# Tenant ID to be used in the request when calling the agent.
|
|
66
|
+
# @!attribute [rw] protocol_version
|
|
67
|
+
# @return [::String]
|
|
68
|
+
# Required. The version of the A2A protocol this interface exposes.
|
|
69
|
+
# Use the latest supported minor version per major version.
|
|
70
|
+
# Examples: "0.3", "1.0"
|
|
71
|
+
class AgentInterface
|
|
72
|
+
include ::Google::Protobuf::MessageExts
|
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Represents a distinct capability or function that an agent can perform.
|
|
77
|
+
# @!attribute [rw] id
|
|
78
|
+
# @return [::String]
|
|
79
|
+
# Required. A unique identifier for the agent's skill.
|
|
80
|
+
# @!attribute [rw] name
|
|
81
|
+
# @return [::String]
|
|
82
|
+
# Required. A human-readable name for the skill.
|
|
83
|
+
# @!attribute [rw] description
|
|
84
|
+
# @return [::String]
|
|
85
|
+
# Required. A detailed description of the skill.
|
|
86
|
+
# @!attribute [rw] tags
|
|
87
|
+
# @return [::Array<::String>]
|
|
88
|
+
# Required. A set of keywords describing the skill's capabilities.
|
|
89
|
+
# @!attribute [rw] examples
|
|
90
|
+
# @return [::Array<::String>]
|
|
91
|
+
# Example prompts or scenarios that this skill can handle.
|
|
92
|
+
# @!attribute [rw] input_modes
|
|
93
|
+
# @return [::Array<::String>]
|
|
94
|
+
# The set of supported input media types for this skill, overriding the
|
|
95
|
+
# agent's defaults.
|
|
96
|
+
# @!attribute [rw] output_modes
|
|
97
|
+
# @return [::Array<::String>]
|
|
98
|
+
# The set of supported output media types for this skill, overriding the
|
|
99
|
+
# agent's defaults.
|
|
100
|
+
class AgentSkill
|
|
101
|
+
include ::Google::Protobuf::MessageExts
|
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Represents a tool that allows the agent to call another remote agent.
|
|
106
|
+
# @!attribute [rw] name
|
|
107
|
+
# @return [::String]
|
|
108
|
+
# Required. The name of the tool.
|
|
109
|
+
# @!attribute [rw] description
|
|
110
|
+
# @return [::String]
|
|
111
|
+
# Required. The description of the tool.
|
|
112
|
+
# @!attribute [rw] agent_card
|
|
113
|
+
# @return [::Google::Cloud::Ces::V1::AgentCard]
|
|
114
|
+
# Required. The agent card of the remote agent that this tool invokes.
|
|
115
|
+
class RemoteAgentTool
|
|
116
|
+
include ::Google::Protobuf::MessageExts
|
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|