google-cloud-ces-v1beta 0.a → 0.2.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.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/ces/v1beta/agent_card_pb.rb +26 -0
  6. data/lib/google/cloud/ces/v1beta/agent_pb.rb +30 -0
  7. data/lib/google/cloud/ces/v1beta/agent_service/client.rb +5641 -0
  8. data/lib/google/cloud/ces/v1beta/agent_service/credentials.rb +48 -0
  9. data/lib/google/cloud/ces/v1beta/agent_service/operations.rb +843 -0
  10. data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +481 -0
  11. data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +5249 -0
  12. data/lib/google/cloud/ces/v1beta/agent_service/rest/operations.rb +927 -0
  13. data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +3213 -0
  14. data/lib/google/cloud/ces/v1beta/agent_service/rest.rb +55 -0
  15. data/lib/google/cloud/ces/v1beta/agent_service.rb +57 -0
  16. data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +132 -0
  17. data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +148 -0
  18. data/lib/google/cloud/ces/v1beta/agent_tool_pb.rb +24 -0
  19. data/lib/google/cloud/ces/v1beta/agent_transfers_pb.rb +29 -0
  20. data/lib/google/cloud/ces/v1beta/app_pb.rb +70 -0
  21. data/lib/google/cloud/ces/v1beta/app_version_pb.rb +32 -0
  22. data/lib/google/cloud/ces/v1beta/auth_pb.rb +34 -0
  23. data/lib/google/cloud/ces/v1beta/bigquery_export_pb.rb +23 -0
  24. data/lib/google/cloud/ces/v1beta/bindings_override.rb +75 -0
  25. data/lib/google/cloud/ces/v1beta/changelog_pb.rb +26 -0
  26. data/lib/google/cloud/ces/v1beta/client_function_pb.rb +24 -0
  27. data/lib/google/cloud/ces/v1beta/common_pb.rb +46 -0
  28. data/lib/google/cloud/ces/v1beta/connector_tool_pb.rb +27 -0
  29. data/lib/google/cloud/ces/v1beta/connector_toolset_pb.rb +25 -0
  30. data/lib/google/cloud/ces/v1beta/conversation_pb.rb +31 -0
  31. data/lib/google/cloud/ces/v1beta/data_store_pb.rb +27 -0
  32. data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +40 -0
  33. data/lib/google/cloud/ces/v1beta/deployment_pb.rb +30 -0
  34. data/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb +31 -0
  35. data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +99 -0
  36. data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +4050 -0
  37. data/lib/google/cloud/ces/v1beta/evaluation_service/credentials.rb +48 -0
  38. data/lib/google/cloud/ces/v1beta/evaluation_service/operations.rb +843 -0
  39. data/lib/google/cloud/ces/v1beta/evaluation_service/paths.rb +306 -0
  40. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +3770 -0
  41. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/operations.rb +927 -0
  42. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +2233 -0
  43. data/lib/google/cloud/ces/v1beta/evaluation_service/rest.rb +54 -0
  44. data/lib/google/cloud/ces/v1beta/evaluation_service.rb +56 -0
  45. data/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +93 -0
  46. data/lib/google/cloud/ces/v1beta/evaluation_service_services_pb.rb +116 -0
  47. data/lib/google/cloud/ces/v1beta/example_pb.rb +34 -0
  48. data/lib/google/cloud/ces/v1beta/fakes_pb.rb +25 -0
  49. data/lib/google/cloud/ces/v1beta/file_context_pb.rb +24 -0
  50. data/lib/google/cloud/ces/v1beta/file_search_tool_pb.rb +24 -0
  51. data/lib/google/cloud/ces/v1beta/golden_run_pb.rb +21 -0
  52. data/lib/google/cloud/ces/v1beta/google_search_tool_pb.rb +24 -0
  53. data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +37 -0
  54. data/lib/google/cloud/ces/v1beta/mcp_tool_pb.rb +27 -0
  55. data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +28 -0
  56. data/lib/google/cloud/ces/v1beta/mocks_pb.rb +26 -0
  57. data/lib/google/cloud/ces/v1beta/omnichannel_pb.rb +31 -0
  58. data/lib/google/cloud/ces/v1beta/omnichannel_service_pb.rb +27 -0
  59. data/lib/google/cloud/ces/v1beta/open_api_tool_pb.rb +25 -0
  60. data/lib/google/cloud/ces/v1beta/open_api_toolset_pb.rb +25 -0
  61. data/lib/google/cloud/ces/v1beta/python_function_pb.rb +24 -0
  62. data/lib/google/cloud/ces/v1beta/rest.rb +42 -0
  63. data/lib/google/cloud/ces/v1beta/schema_pb.rb +25 -0
  64. data/lib/google/cloud/ces/v1beta/search_suggestions_pb.rb +22 -0
  65. data/lib/google/cloud/ces/v1beta/security_settings_pb.rb +27 -0
  66. data/lib/google/cloud/ces/v1beta/session_service/client.rb +762 -0
  67. data/lib/google/cloud/ces/v1beta/session_service/credentials.rb +48 -0
  68. data/lib/google/cloud/ces/v1beta/session_service/paths.rb +117 -0
  69. data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +562 -0
  70. data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +199 -0
  71. data/lib/google/cloud/ces/v1beta/session_service/rest.rb +53 -0
  72. data/lib/google/cloud/ces/v1beta/session_service.rb +55 -0
  73. data/lib/google/cloud/ces/v1beta/session_service_pb.rb +54 -0
  74. data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +120 -0
  75. data/lib/google/cloud/ces/v1beta/system_tool_pb.rb +23 -0
  76. data/lib/google/cloud/ces/v1beta/tool_pb.rb +40 -0
  77. data/lib/google/cloud/ces/v1beta/tool_service/client.rb +733 -0
  78. data/lib/google/cloud/ces/v1beta/tool_service/credentials.rb +48 -0
  79. data/lib/google/cloud/ces/v1beta/tool_service/paths.rb +94 -0
  80. data/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb +677 -0
  81. data/lib/google/cloud/ces/v1beta/tool_service/rest/service_stub.rb +267 -0
  82. data/lib/google/cloud/ces/v1beta/tool_service/rest.rb +53 -0
  83. data/lib/google/cloud/ces/v1beta/tool_service.rb +55 -0
  84. data/lib/google/cloud/ces/v1beta/tool_service_pb.rb +37 -0
  85. data/lib/google/cloud/ces/v1beta/tool_service_services_pb.rb +50 -0
  86. data/lib/google/cloud/ces/v1beta/toolset_pb.rb +30 -0
  87. data/lib/google/cloud/ces/v1beta/toolset_tool_pb.rb +24 -0
  88. data/lib/google/cloud/ces/v1beta/version.rb +7 -2
  89. data/lib/google/cloud/ces/v1beta/widget_service/client.rb +503 -0
  90. data/lib/google/cloud/ces/v1beta/widget_service/credentials.rb +48 -0
  91. data/lib/google/cloud/ces/v1beta/widget_service/paths.rb +75 -0
  92. data/lib/google/cloud/ces/v1beta/widget_service/rest/client.rb +461 -0
  93. data/lib/google/cloud/ces/v1beta/widget_service/rest/service_stub.rb +143 -0
  94. data/lib/google/cloud/ces/v1beta/widget_service/rest.rb +53 -0
  95. data/lib/google/cloud/ces/v1beta/widget_service.rb +55 -0
  96. data/lib/google/cloud/ces/v1beta/widget_service_pb.rb +28 -0
  97. data/lib/google/cloud/ces/v1beta/widget_service_services_pb.rb +46 -0
  98. data/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +31 -0
  99. data/lib/google/cloud/ces/v1beta.rb +49 -0
  100. data/lib/google-cloud-ces-v1beta.rb +21 -0
  101. data/proto_docs/README.md +4 -0
  102. data/proto_docs/google/api/client.rb +593 -0
  103. data/proto_docs/google/api/field_behavior.rb +85 -0
  104. data/proto_docs/google/api/launch_stage.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +227 -0
  106. data/proto_docs/google/cloud/ces/v1beta/agent.rb +233 -0
  107. data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +122 -0
  108. data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +1682 -0
  109. data/proto_docs/google/cloud/ces/v1beta/agent_tool.rb +48 -0
  110. data/proto_docs/google/cloud/ces/v1beta/agent_transfers.rb +111 -0
  111. data/proto_docs/google/cloud/ces/v1beta/app.rb +883 -0
  112. data/proto_docs/google/cloud/ces/v1beta/app_version.rb +83 -0
  113. data/proto_docs/google/cloud/ces/v1beta/auth.rb +214 -0
  114. data/proto_docs/google/cloud/ces/v1beta/bigquery_export.rb +45 -0
  115. data/proto_docs/google/cloud/ces/v1beta/changelog.rb +73 -0
  116. data/proto_docs/google/cloud/ces/v1beta/client_function.rb +48 -0
  117. data/proto_docs/google/cloud/ces/v1beta/common.rb +375 -0
  118. data/proto_docs/google/cloud/ces/v1beta/connector_tool.rb +122 -0
  119. data/proto_docs/google/cloud/ces/v1beta/connector_toolset.rb +52 -0
  120. data/proto_docs/google/cloud/ces/v1beta/conversation.rb +159 -0
  121. data/proto_docs/google/cloud/ces/v1beta/data_store.rb +102 -0
  122. data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +328 -0
  123. data/proto_docs/google/cloud/ces/v1beta/deployment.rb +123 -0
  124. data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +1687 -0
  125. data/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb +151 -0
  126. data/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +1087 -0
  127. data/proto_docs/google/cloud/ces/v1beta/example.rb +245 -0
  128. data/proto_docs/google/cloud/ces/v1beta/fakes.rb +67 -0
  129. data/proto_docs/google/cloud/ces/v1beta/file_context.rb +50 -0
  130. data/proto_docs/google/cloud/ces/v1beta/file_search_tool.rb +60 -0
  131. data/proto_docs/google/cloud/ces/v1beta/golden_run.rb +40 -0
  132. data/proto_docs/google/cloud/ces/v1beta/google_search_tool.rb +76 -0
  133. data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +324 -0
  134. data/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb +110 -0
  135. data/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +118 -0
  136. data/proto_docs/google/cloud/ces/v1beta/mocks.rb +60 -0
  137. data/proto_docs/google/cloud/ces/v1beta/omnichannel.rb +163 -0
  138. data/proto_docs/google/cloud/ces/v1beta/omnichannel_service.rb +45 -0
  139. data/proto_docs/google/cloud/ces/v1beta/open_api_tool.rb +66 -0
  140. data/proto_docs/google/cloud/ces/v1beta/open_api_toolset.rb +57 -0
  141. data/proto_docs/google/cloud/ces/v1beta/python_function.rb +47 -0
  142. data/proto_docs/google/cloud/ces/v1beta/schema.rb +162 -0
  143. data/proto_docs/google/cloud/ces/v1beta/search_suggestions.rb +55 -0
  144. data/proto_docs/google/cloud/ces/v1beta/security_settings.rb +80 -0
  145. data/proto_docs/google/cloud/ces/v1beta/session_service.rb +493 -0
  146. data/proto_docs/google/cloud/ces/v1beta/system_tool.rb +38 -0
  147. data/proto_docs/google/cloud/ces/v1beta/tool.rb +136 -0
  148. data/proto_docs/google/cloud/ces/v1beta/tool_service.rb +185 -0
  149. data/proto_docs/google/cloud/ces/v1beta/toolset.rb +80 -0
  150. data/proto_docs/google/cloud/ces/v1beta/toolset_tool.rb +40 -0
  151. data/proto_docs/google/cloud/ces/v1beta/widget_service.rb +62 -0
  152. data/proto_docs/google/cloud/ces/v1beta/widget_tool.rb +182 -0
  153. data/proto_docs/google/longrunning/operations.rb +191 -0
  154. data/proto_docs/google/protobuf/any.rb +145 -0
  155. data/proto_docs/google/protobuf/duration.rb +98 -0
  156. data/proto_docs/google/protobuf/empty.rb +34 -0
  157. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  158. data/proto_docs/google/protobuf/struct.rb +108 -0
  159. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  160. data/proto_docs/google/rpc/status.rb +48 -0
  161. metadata +208 -9
@@ -0,0 +1,733 @@
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
+ require "google/cloud/errors"
20
+ require "google/cloud/ces/v1beta/tool_service_pb"
21
+ require "google/cloud/location"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Ces
26
+ module V1beta
27
+ module ToolService
28
+ ##
29
+ # Client for the ToolService service.
30
+ #
31
+ # Tool service provides APIs for interacting with CES tools.
32
+ #
33
+ class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "ces.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :tool_service_stub
44
+
45
+ ##
46
+ # Configure the ToolService Client class.
47
+ #
48
+ # See {::Google::Cloud::Ces::V1beta::ToolService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all ToolService clients
54
+ # ::Google::Cloud::Ces::V1beta::ToolService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Cloud", "Ces", "V1beta"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config.timeout = 60.0
75
+ default_config.retry_policy = {
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
77
+ }
78
+
79
+ default_config
80
+ end
81
+ yield @configure if block_given?
82
+ @configure
83
+ end
84
+
85
+ ##
86
+ # Configure the ToolService Client instance.
87
+ #
88
+ # The configuration is set to the derived mode, meaning that values can be changed,
89
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
90
+ # should be made on {Client.configure}.
91
+ #
92
+ # See {::Google::Cloud::Ces::V1beta::ToolService::Client::Configuration}
93
+ # for a description of the configuration fields.
94
+ #
95
+ # @yield [config] Configure the Client client.
96
+ # @yieldparam config [Client::Configuration]
97
+ #
98
+ # @return [Client::Configuration]
99
+ #
100
+ def configure
101
+ yield @config if block_given?
102
+ @config
103
+ end
104
+
105
+ ##
106
+ # The effective universe domain
107
+ #
108
+ # @return [String]
109
+ #
110
+ def universe_domain
111
+ @tool_service_stub.universe_domain
112
+ end
113
+
114
+ ##
115
+ # Create a new ToolService client object.
116
+ #
117
+ # @example
118
+ #
119
+ # # Create a client using the default configuration
120
+ # client = ::Google::Cloud::Ces::V1beta::ToolService::Client.new
121
+ #
122
+ # # Create a client using a custom configuration
123
+ # client = ::Google::Cloud::Ces::V1beta::ToolService::Client.new do |config|
124
+ # config.timeout = 10.0
125
+ # end
126
+ #
127
+ # @yield [config] Configure the ToolService client.
128
+ # @yieldparam config [Client::Configuration]
129
+ #
130
+ def initialize
131
+ # These require statements are intentionally placed here to initialize
132
+ # the gRPC module only when it's required.
133
+ # See https://github.com/googleapis/toolkit/issues/446
134
+ require "gapic/grpc"
135
+ require "google/cloud/ces/v1beta/tool_service_services_pb"
136
+
137
+ # Create the configuration object
138
+ @config = Configuration.new Client.configure
139
+
140
+ # Yield the configuration if needed
141
+ yield @config if block_given?
142
+
143
+ # Create credentials
144
+ credentials = @config.credentials
145
+ # Use self-signed JWT if the endpoint is unchanged from default,
146
+ # but only if the default endpoint does not have a region prefix.
147
+ enable_self_signed_jwt = @config.endpoint.nil? ||
148
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
149
+ !@config.endpoint.split(".").first.include?("-"))
150
+ credentials ||= Credentials.default scope: @config.scope,
151
+ enable_self_signed_jwt: enable_self_signed_jwt
152
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
153
+ credentials = Credentials.new credentials, scope: @config.scope
154
+ end
155
+ @quota_project_id = @config.quota_project
156
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
157
+
158
+ @tool_service_stub = ::Gapic::ServiceStub.new(
159
+ ::Google::Cloud::Ces::V1beta::ToolService::Stub,
160
+ credentials: credentials,
161
+ endpoint: @config.endpoint,
162
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
+ universe_domain: @config.universe_domain,
164
+ channel_args: @config.channel_args,
165
+ interceptors: @config.interceptors,
166
+ channel_pool_config: @config.channel_pool,
167
+ logger: @config.logger
168
+ )
169
+
170
+ @tool_service_stub.stub_logger&.info do |entry|
171
+ entry.set_system_name
172
+ entry.set_service
173
+ entry.message = "Created client for #{entry.service}"
174
+ entry.set_credentials_fields credentials
175
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
176
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
177
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
178
+ end
179
+
180
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
181
+ config.credentials = credentials
182
+ config.quota_project = @quota_project_id
183
+ config.endpoint = @tool_service_stub.endpoint
184
+ config.universe_domain = @tool_service_stub.universe_domain
185
+ config.logger = @tool_service_stub.logger if config.respond_to? :logger=
186
+ end
187
+ end
188
+
189
+ ##
190
+ # Get the associated client for mix-in of the Locations.
191
+ #
192
+ # @return [Google::Cloud::Location::Locations::Client]
193
+ #
194
+ attr_reader :location_client
195
+
196
+ ##
197
+ # The logger used for request/response debug logging.
198
+ #
199
+ # @return [Logger]
200
+ #
201
+ def logger
202
+ @tool_service_stub.logger
203
+ end
204
+
205
+ # Service calls
206
+
207
+ ##
208
+ # Executes the given tool with the given arguments.
209
+ #
210
+ # @overload execute_tool(request, options = nil)
211
+ # Pass arguments to `execute_tool` via a request object, either of type
212
+ # {::Google::Cloud::Ces::V1beta::ExecuteToolRequest} or an equivalent Hash.
213
+ #
214
+ # @param request [::Google::Cloud::Ces::V1beta::ExecuteToolRequest, ::Hash]
215
+ # A request object representing the call parameters. Required. To specify no
216
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
217
+ # @param options [::Gapic::CallOptions, ::Hash]
218
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
219
+ #
220
+ # @overload execute_tool(tool: nil, toolset_tool: nil, variables: nil, context: nil, parent: nil, args: nil, mock_config: nil)
221
+ # Pass arguments to `execute_tool` via keyword arguments. Note that at
222
+ # least one keyword argument is required. To specify no parameters, or to keep all
223
+ # the default parameter values, pass an empty Hash as a request object (see above).
224
+ #
225
+ # @param tool [::String]
226
+ # Optional. The name of the tool to execute.
227
+ # Format:
228
+ # projects/\\{project}/locations/\\{location}/apps/\\{app}/tools/\\{tool}
229
+ #
230
+ # Note: The following parameters are mutually exclusive: `tool`, `toolset_tool`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
231
+ # @param toolset_tool [::Google::Cloud::Ces::V1beta::ToolsetTool, ::Hash]
232
+ # Optional. The toolset tool to execute. Only one tool should match the
233
+ # predicate from the toolset. Otherwise, an error will be returned.
234
+ #
235
+ # Note: The following parameters are mutually exclusive: `toolset_tool`, `tool`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
236
+ # @param variables [::Google::Protobuf::Struct, ::Hash]
237
+ # Optional. The variables that are available for the tool execution.
238
+ #
239
+ # Note: The following parameters are mutually exclusive: `variables`, `context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
240
+ # @param context [::Google::Protobuf::Struct, ::Hash]
241
+ # Optional. The
242
+ # [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
243
+ # for details) to be passed to the Python tool.
244
+ #
245
+ # Note: The following parameters are mutually exclusive: `context`, `variables`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
246
+ # @param parent [::String]
247
+ # Required. The resource name of the app which the tool/toolset belongs to.
248
+ # Format: `projects/{project}/locations/{location}/apps/{app}`
249
+ # @param args [::Google::Protobuf::Struct, ::Hash]
250
+ # Optional. The input parameters and values for the tool in JSON object
251
+ # format.
252
+ # @param mock_config [::Google::Cloud::Ces::V1beta::MockConfig, ::Hash]
253
+ # Optional. Mock configuration for the tool execution.
254
+ # If this field is set, tools that call other tools will be
255
+ # mocked based on the provided patterns and responses.
256
+ #
257
+ # @yield [response, operation] Access the result along with the RPC operation
258
+ # @yieldparam response [::Google::Cloud::Ces::V1beta::ExecuteToolResponse]
259
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
260
+ #
261
+ # @return [::Google::Cloud::Ces::V1beta::ExecuteToolResponse]
262
+ #
263
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
264
+ #
265
+ # @example Basic example
266
+ # require "google/cloud/ces/v1beta"
267
+ #
268
+ # # Create a client object. The client can be reused for multiple calls.
269
+ # client = Google::Cloud::Ces::V1beta::ToolService::Client.new
270
+ #
271
+ # # Create a request. To set request fields, pass in keyword arguments.
272
+ # request = Google::Cloud::Ces::V1beta::ExecuteToolRequest.new
273
+ #
274
+ # # Call the execute_tool method.
275
+ # result = client.execute_tool request
276
+ #
277
+ # # The returned object is of type Google::Cloud::Ces::V1beta::ExecuteToolResponse.
278
+ # p result
279
+ #
280
+ def execute_tool request, options = nil
281
+ raise ::ArgumentError, "request must be provided" if request.nil?
282
+
283
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::ExecuteToolRequest
284
+
285
+ # Converts hash and nil to an options object
286
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
287
+
288
+ # Customize the options with defaults
289
+ metadata = @config.rpcs.execute_tool.metadata.to_h
290
+
291
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
292
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
294
+ gapic_version: ::Google::Cloud::Ces::V1beta::VERSION
295
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
296
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
297
+
298
+ header_params = {}
299
+ if request.parent
300
+ header_params["parent"] = request.parent
301
+ end
302
+
303
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
304
+ metadata[:"x-goog-request-params"] ||= request_params_header
305
+
306
+ options.apply_defaults timeout: @config.rpcs.execute_tool.timeout,
307
+ metadata: metadata,
308
+ retry_policy: @config.rpcs.execute_tool.retry_policy
309
+
310
+ options.apply_defaults timeout: @config.timeout,
311
+ metadata: @config.metadata,
312
+ retry_policy: @config.retry_policy
313
+
314
+ @tool_service_stub.call_rpc :execute_tool, request, options: options do |response, operation|
315
+ yield response, operation if block_given?
316
+ end
317
+ rescue ::GRPC::BadStatus => e
318
+ raise ::Google::Cloud::Error.from_error(e)
319
+ end
320
+
321
+ ##
322
+ # Retrieve the schema of the given tool. The schema is computed on the fly
323
+ # for the given instance of the tool.
324
+ #
325
+ # @overload retrieve_tool_schema(request, options = nil)
326
+ # Pass arguments to `retrieve_tool_schema` via a request object, either of type
327
+ # {::Google::Cloud::Ces::V1beta::RetrieveToolSchemaRequest} or an equivalent Hash.
328
+ #
329
+ # @param request [::Google::Cloud::Ces::V1beta::RetrieveToolSchemaRequest, ::Hash]
330
+ # A request object representing the call parameters. Required. To specify no
331
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
332
+ # @param options [::Gapic::CallOptions, ::Hash]
333
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
334
+ #
335
+ # @overload retrieve_tool_schema(tool: nil, toolset_tool: nil, parent: nil)
336
+ # Pass arguments to `retrieve_tool_schema` via keyword arguments. Note that at
337
+ # least one keyword argument is required. To specify no parameters, or to keep all
338
+ # the default parameter values, pass an empty Hash as a request object (see above).
339
+ #
340
+ # @param tool [::String]
341
+ # Optional. The name of the tool to retrieve the schema for.
342
+ # Format:
343
+ # projects/\\{project}/locations/\\{location}/apps/\\{app}/tools/\\{tool}
344
+ #
345
+ # Note: The following parameters are mutually exclusive: `tool`, `toolset_tool`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
346
+ # @param toolset_tool [::Google::Cloud::Ces::V1beta::ToolsetTool, ::Hash]
347
+ # Optional. The toolset tool to retrieve the schema for. Only one tool
348
+ # should match the predicate from the toolset. Otherwise, an error will be
349
+ # returned.
350
+ #
351
+ # Note: The following parameters are mutually exclusive: `toolset_tool`, `tool`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
352
+ # @param parent [::String]
353
+ # Required. The resource name of the app which the tool/toolset belongs to.
354
+ # Format: `projects/{project}/locations/{location}/apps/{app}`
355
+ #
356
+ # @yield [response, operation] Access the result along with the RPC operation
357
+ # @yieldparam response [::Google::Cloud::Ces::V1beta::RetrieveToolSchemaResponse]
358
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
359
+ #
360
+ # @return [::Google::Cloud::Ces::V1beta::RetrieveToolSchemaResponse]
361
+ #
362
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
363
+ #
364
+ # @example Basic example
365
+ # require "google/cloud/ces/v1beta"
366
+ #
367
+ # # Create a client object. The client can be reused for multiple calls.
368
+ # client = Google::Cloud::Ces::V1beta::ToolService::Client.new
369
+ #
370
+ # # Create a request. To set request fields, pass in keyword arguments.
371
+ # request = Google::Cloud::Ces::V1beta::RetrieveToolSchemaRequest.new
372
+ #
373
+ # # Call the retrieve_tool_schema method.
374
+ # result = client.retrieve_tool_schema request
375
+ #
376
+ # # The returned object is of type Google::Cloud::Ces::V1beta::RetrieveToolSchemaResponse.
377
+ # p result
378
+ #
379
+ def retrieve_tool_schema request, options = nil
380
+ raise ::ArgumentError, "request must be provided" if request.nil?
381
+
382
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::RetrieveToolSchemaRequest
383
+
384
+ # Converts hash and nil to an options object
385
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
386
+
387
+ # Customize the options with defaults
388
+ metadata = @config.rpcs.retrieve_tool_schema.metadata.to_h
389
+
390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
391
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
392
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
393
+ gapic_version: ::Google::Cloud::Ces::V1beta::VERSION
394
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
395
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
396
+
397
+ header_params = {}
398
+ if request.parent
399
+ header_params["parent"] = request.parent
400
+ end
401
+
402
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
403
+ metadata[:"x-goog-request-params"] ||= request_params_header
404
+
405
+ options.apply_defaults timeout: @config.rpcs.retrieve_tool_schema.timeout,
406
+ metadata: metadata,
407
+ retry_policy: @config.rpcs.retrieve_tool_schema.retry_policy
408
+
409
+ options.apply_defaults timeout: @config.timeout,
410
+ metadata: @config.metadata,
411
+ retry_policy: @config.retry_policy
412
+
413
+ @tool_service_stub.call_rpc :retrieve_tool_schema, request, options: options do |response, operation|
414
+ yield response, operation if block_given?
415
+ end
416
+ rescue ::GRPC::BadStatus => e
417
+ raise ::Google::Cloud::Error.from_error(e)
418
+ end
419
+
420
+ ##
421
+ # Retrieve the list of tools included in the specified toolset.
422
+ #
423
+ # @overload retrieve_tools(request, options = nil)
424
+ # Pass arguments to `retrieve_tools` via a request object, either of type
425
+ # {::Google::Cloud::Ces::V1beta::RetrieveToolsRequest} or an equivalent Hash.
426
+ #
427
+ # @param request [::Google::Cloud::Ces::V1beta::RetrieveToolsRequest, ::Hash]
428
+ # A request object representing the call parameters. Required. To specify no
429
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
430
+ # @param options [::Gapic::CallOptions, ::Hash]
431
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
432
+ #
433
+ # @overload retrieve_tools(toolset: nil, tool_ids: nil, bypass_persistence_config: nil)
434
+ # Pass arguments to `retrieve_tools` via keyword arguments. Note that at
435
+ # least one keyword argument is required. To specify no parameters, or to keep all
436
+ # the default parameter values, pass an empty Hash as a request object (see above).
437
+ #
438
+ # @param toolset [::String]
439
+ # Required. The name of the toolset to retrieve the tools for.
440
+ # Format:
441
+ # `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
442
+ # @param tool_ids [::Array<::String>]
443
+ # Optional. The identifiers of the tools to retrieve from the toolset.
444
+ # If empty, all tools in the toolset will be returned.
445
+ # @param bypass_persistence_config [::Boolean]
446
+ # Optional. If true, the returned tools will contain raw descriptions and
447
+ # schemas directly from the server, bypassing any stored persistence
448
+ # configurations (overrides/snapshots).
449
+ #
450
+ # @yield [response, operation] Access the result along with the RPC operation
451
+ # @yieldparam response [::Google::Cloud::Ces::V1beta::RetrieveToolsResponse]
452
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
453
+ #
454
+ # @return [::Google::Cloud::Ces::V1beta::RetrieveToolsResponse]
455
+ #
456
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
457
+ #
458
+ # @example Basic example
459
+ # require "google/cloud/ces/v1beta"
460
+ #
461
+ # # Create a client object. The client can be reused for multiple calls.
462
+ # client = Google::Cloud::Ces::V1beta::ToolService::Client.new
463
+ #
464
+ # # Create a request. To set request fields, pass in keyword arguments.
465
+ # request = Google::Cloud::Ces::V1beta::RetrieveToolsRequest.new
466
+ #
467
+ # # Call the retrieve_tools method.
468
+ # result = client.retrieve_tools request
469
+ #
470
+ # # The returned object is of type Google::Cloud::Ces::V1beta::RetrieveToolsResponse.
471
+ # p result
472
+ #
473
+ def retrieve_tools request, options = nil
474
+ raise ::ArgumentError, "request must be provided" if request.nil?
475
+
476
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::RetrieveToolsRequest
477
+
478
+ # Converts hash and nil to an options object
479
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
480
+
481
+ # Customize the options with defaults
482
+ metadata = @config.rpcs.retrieve_tools.metadata.to_h
483
+
484
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
485
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
486
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
487
+ gapic_version: ::Google::Cloud::Ces::V1beta::VERSION
488
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
489
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
490
+
491
+ header_params = {}
492
+ if request.toolset
493
+ header_params["toolset"] = request.toolset
494
+ end
495
+
496
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
497
+ metadata[:"x-goog-request-params"] ||= request_params_header
498
+
499
+ options.apply_defaults timeout: @config.rpcs.retrieve_tools.timeout,
500
+ metadata: metadata,
501
+ retry_policy: @config.rpcs.retrieve_tools.retry_policy
502
+
503
+ options.apply_defaults timeout: @config.timeout,
504
+ metadata: @config.metadata,
505
+ retry_policy: @config.retry_policy
506
+
507
+ @tool_service_stub.call_rpc :retrieve_tools, request, options: options do |response, operation|
508
+ yield response, operation if block_given?
509
+ end
510
+ rescue ::GRPC::BadStatus => e
511
+ raise ::Google::Cloud::Error.from_error(e)
512
+ end
513
+
514
+ ##
515
+ # Configuration class for the ToolService API.
516
+ #
517
+ # This class represents the configuration for ToolService,
518
+ # providing control over timeouts, retry behavior, logging, transport
519
+ # parameters, and other low-level controls. Certain parameters can also be
520
+ # applied individually to specific RPCs. See
521
+ # {::Google::Cloud::Ces::V1beta::ToolService::Client::Configuration::Rpcs}
522
+ # for a list of RPCs that can be configured independently.
523
+ #
524
+ # Configuration can be applied globally to all clients, or to a single client
525
+ # on construction.
526
+ #
527
+ # @example
528
+ #
529
+ # # Modify the global config, setting the timeout for
530
+ # # execute_tool to 20 seconds,
531
+ # # and all remaining timeouts to 10 seconds.
532
+ # ::Google::Cloud::Ces::V1beta::ToolService::Client.configure do |config|
533
+ # config.timeout = 10.0
534
+ # config.rpcs.execute_tool.timeout = 20.0
535
+ # end
536
+ #
537
+ # # Apply the above configuration only to a new client.
538
+ # client = ::Google::Cloud::Ces::V1beta::ToolService::Client.new do |config|
539
+ # config.timeout = 10.0
540
+ # config.rpcs.execute_tool.timeout = 20.0
541
+ # end
542
+ #
543
+ # @!attribute [rw] endpoint
544
+ # A custom service endpoint, as a hostname or hostname:port. The default is
545
+ # nil, indicating to use the default endpoint in the current universe domain.
546
+ # @return [::String,nil]
547
+ # @!attribute [rw] credentials
548
+ # Credentials to send with calls. You may provide any of the following types:
549
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
550
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
551
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
552
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
553
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
554
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
555
+ # * (`nil`) indicating no credentials
556
+ #
557
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
558
+ # is deprecated. Providing an unvalidated credential configuration to
559
+ # Google APIs can compromise the security of your systems and data.
560
+ #
561
+ # @example
562
+ #
563
+ # # The recommended way to provide credentials is to use the `make_creds` method
564
+ # # on the appropriate credentials class for your environment.
565
+ #
566
+ # require "googleauth"
567
+ #
568
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
569
+ # json_key_io: ::File.open("/path/to/keyfile.json")
570
+ # )
571
+ #
572
+ # client = ::Google::Cloud::Ces::V1beta::ToolService::Client.new do |config|
573
+ # config.credentials = credentials
574
+ # end
575
+ #
576
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
577
+ # external source for authentication to Google Cloud, you must validate it before
578
+ # providing it to a Google API client library. Providing an unvalidated credential
579
+ # configuration to Google APIs can compromise the security of your systems and data.
580
+ # For more information, refer to [Validate credential configurations from external
581
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
582
+ # @return [::Object]
583
+ # @!attribute [rw] scope
584
+ # The OAuth scopes
585
+ # @return [::Array<::String>]
586
+ # @!attribute [rw] lib_name
587
+ # The library name as recorded in instrumentation and logging
588
+ # @return [::String]
589
+ # @!attribute [rw] lib_version
590
+ # The library version as recorded in instrumentation and logging
591
+ # @return [::String]
592
+ # @!attribute [rw] channel_args
593
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
594
+ # `GRPC::Core::Channel` object is provided as the credential.
595
+ # @return [::Hash]
596
+ # @!attribute [rw] interceptors
597
+ # An array of interceptors that are run before calls are executed.
598
+ # @return [::Array<::GRPC::ClientInterceptor>]
599
+ # @!attribute [rw] timeout
600
+ # The call timeout in seconds.
601
+ # @return [::Numeric]
602
+ # @!attribute [rw] metadata
603
+ # Additional gRPC headers to be sent with the call.
604
+ # @return [::Hash{::Symbol=>::String}]
605
+ # @!attribute [rw] retry_policy
606
+ # The retry policy. The value is a hash with the following keys:
607
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
608
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
609
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
610
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
611
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
612
+ # trigger a retry.
613
+ # @return [::Hash]
614
+ # @!attribute [rw] quota_project
615
+ # A separate project against which to charge quota.
616
+ # @return [::String]
617
+ # @!attribute [rw] universe_domain
618
+ # The universe domain within which to make requests. This determines the
619
+ # default endpoint URL. The default value of nil uses the environment
620
+ # universe (usually the default "googleapis.com" universe).
621
+ # @return [::String,nil]
622
+ # @!attribute [rw] logger
623
+ # A custom logger to use for request/response debug logging, or the value
624
+ # `:default` (the default) to construct a default logger, or `nil` to
625
+ # explicitly disable logging.
626
+ # @return [::Logger,:default,nil]
627
+ #
628
+ class Configuration
629
+ extend ::Gapic::Config
630
+
631
+ # @private
632
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
633
+ DEFAULT_ENDPOINT = "ces.googleapis.com"
634
+
635
+ config_attr :endpoint, nil, ::String, nil
636
+ config_attr :credentials, nil do |value|
637
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
638
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
639
+ allowed.any? { |klass| klass === value }
640
+ end
641
+ config_attr :scope, nil, ::String, ::Array, nil
642
+ config_attr :lib_name, nil, ::String, nil
643
+ config_attr :lib_version, nil, ::String, nil
644
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
645
+ config_attr :interceptors, nil, ::Array, nil
646
+ config_attr :timeout, nil, ::Numeric, nil
647
+ config_attr :metadata, nil, ::Hash, nil
648
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
649
+ config_attr :quota_project, nil, ::String, nil
650
+ config_attr :universe_domain, nil, ::String, nil
651
+ config_attr :logger, :default, ::Logger, nil, :default
652
+
653
+ # @private
654
+ def initialize parent_config = nil
655
+ @parent_config = parent_config unless parent_config.nil?
656
+
657
+ yield self if block_given?
658
+ end
659
+
660
+ ##
661
+ # Configurations for individual RPCs
662
+ # @return [Rpcs]
663
+ #
664
+ def rpcs
665
+ @rpcs ||= begin
666
+ parent_rpcs = nil
667
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
668
+ Rpcs.new parent_rpcs
669
+ end
670
+ end
671
+
672
+ ##
673
+ # Configuration for the channel pool
674
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
675
+ #
676
+ def channel_pool
677
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
678
+ end
679
+
680
+ ##
681
+ # Configuration RPC class for the ToolService API.
682
+ #
683
+ # Includes fields providing the configuration for each RPC in this service.
684
+ # Each configuration object is of type `Gapic::Config::Method` and includes
685
+ # the following configuration fields:
686
+ #
687
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
688
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
689
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
690
+ # include the following keys:
691
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
692
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
693
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
694
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
695
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
696
+ # trigger a retry.
697
+ #
698
+ class Rpcs
699
+ ##
700
+ # RPC-specific configuration for `execute_tool`
701
+ # @return [::Gapic::Config::Method]
702
+ #
703
+ attr_reader :execute_tool
704
+ ##
705
+ # RPC-specific configuration for `retrieve_tool_schema`
706
+ # @return [::Gapic::Config::Method]
707
+ #
708
+ attr_reader :retrieve_tool_schema
709
+ ##
710
+ # RPC-specific configuration for `retrieve_tools`
711
+ # @return [::Gapic::Config::Method]
712
+ #
713
+ attr_reader :retrieve_tools
714
+
715
+ # @private
716
+ def initialize parent_rpcs = nil
717
+ execute_tool_config = parent_rpcs.execute_tool if parent_rpcs.respond_to? :execute_tool
718
+ @execute_tool = ::Gapic::Config::Method.new execute_tool_config
719
+ retrieve_tool_schema_config = parent_rpcs.retrieve_tool_schema if parent_rpcs.respond_to? :retrieve_tool_schema
720
+ @retrieve_tool_schema = ::Gapic::Config::Method.new retrieve_tool_schema_config
721
+ retrieve_tools_config = parent_rpcs.retrieve_tools if parent_rpcs.respond_to? :retrieve_tools
722
+ @retrieve_tools = ::Gapic::Config::Method.new retrieve_tools_config
723
+
724
+ yield self if block_given?
725
+ end
726
+ end
727
+ end
728
+ end
729
+ end
730
+ end
731
+ end
732
+ end
733
+ end