google-cloud-agent_registry_endpoint-v1 0.a → 0.1.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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +151 -8
  5. data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/client.rb +935 -0
  6. data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/credentials.rb +50 -0
  7. data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/rest/client.rb +857 -0
  8. data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/rest/service_stub.rb +386 -0
  9. data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/rest.rb +55 -0
  10. data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint.rb +58 -0
  11. data/lib/google/cloud/agent_registry_endpoint/v1/rest.rb +37 -0
  12. data/lib/google/cloud/agent_registry_endpoint/v1/version.rb +7 -2
  13. data/lib/google/cloud/agent_registry_endpoint/v1.rb +45 -0
  14. data/lib/google/cloud/agentregistryendpoint/v1/agentregistryendpoint_service_pb.rb +35 -0
  15. data/lib/google/cloud/agentregistryendpoint/v1/agentregistryendpoint_service_services_pb.rb +61 -0
  16. data/lib/google-cloud-agent_registry_endpoint-v1.rb +21 -0
  17. data/proto_docs/README.md +4 -0
  18. data/proto_docs/google/api/client.rb +593 -0
  19. data/proto_docs/google/api/field_behavior.rb +85 -0
  20. data/proto_docs/google/api/field_info.rb +88 -0
  21. data/proto_docs/google/api/launch_stage.rb +71 -0
  22. data/proto_docs/google/api/resource.rb +227 -0
  23. data/proto_docs/google/cloud/agentregistry/v1/agent.rb +168 -0
  24. data/proto_docs/google/cloud/agentregistry/v1/endpoint.rb +72 -0
  25. data/proto_docs/google/cloud/agentregistry/v1/mcp_server.rb +127 -0
  26. data/proto_docs/google/cloud/agentregistry/v1/properties.rb +53 -0
  27. data/proto_docs/google/cloud/agentregistryendpoint/v1/agentregistryendpoint_service.rb +164 -0
  28. data/proto_docs/google/protobuf/duration.rb +98 -0
  29. data/proto_docs/google/protobuf/struct.rb +108 -0
  30. data/proto_docs/google/protobuf/timestamp.rb +128 -0
  31. metadata +83 -9
@@ -0,0 +1,935 @@
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/agentregistryendpoint/v1/agentregistryendpoint_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module AgentRegistryEndpoint
25
+ module V1
26
+ module AgentRegistryEndpoint
27
+ ##
28
+ # Client for the AgentRegistryEndpoint service.
29
+ #
30
+ # The localized dataplane API for Agent Registry.
31
+ #
32
+ # This service provides access to the local catalog of agents and tools,
33
+ # allowing agents at runtime to quickly and securely look up peer agents or
34
+ # tools without querying the global control plane.
35
+ #
36
+ class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "agentregistryendpoint.$UNIVERSE_DOMAIN$"
42
+
43
+ # @private
44
+ attr_reader :agent_registry_endpoint_stub
45
+
46
+ ##
47
+ # Configure the AgentRegistryEndpoint Client class.
48
+ #
49
+ # See {::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all AgentRegistryEndpoint clients
55
+ # ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Cloud", "AgentRegistryEndpoint", "V1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config.rpcs.get_ai_application_mcp_server.timeout = 60.0
76
+ default_config.rpcs.get_ai_application_mcp_server.retry_policy = {
77
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
78
+ }
79
+
80
+ default_config.rpcs.get_ai_application_endpoint.timeout = 60.0
81
+ default_config.rpcs.get_ai_application_endpoint.retry_policy = {
82
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
83
+ }
84
+
85
+ default_config.rpcs.list_ai_application_agents.timeout = 60.0
86
+ default_config.rpcs.list_ai_application_agents.retry_policy = {
87
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
88
+ }
89
+
90
+ default_config.rpcs.list_ai_application_mcp_servers.timeout = 60.0
91
+ default_config.rpcs.list_ai_application_mcp_servers.retry_policy = {
92
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
93
+ }
94
+
95
+ default_config.rpcs.list_ai_application_endpoints.timeout = 60.0
96
+ default_config.rpcs.list_ai_application_endpoints.retry_policy = {
97
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
98
+ }
99
+
100
+ default_config
101
+ end
102
+ yield @configure if block_given?
103
+ @configure
104
+ end
105
+
106
+ ##
107
+ # Configure the AgentRegistryEndpoint Client instance.
108
+ #
109
+ # The configuration is set to the derived mode, meaning that values can be changed,
110
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
111
+ # should be made on {Client.configure}.
112
+ #
113
+ # See {::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client::Configuration}
114
+ # for a description of the configuration fields.
115
+ #
116
+ # @yield [config] Configure the Client client.
117
+ # @yieldparam config [Client::Configuration]
118
+ #
119
+ # @return [Client::Configuration]
120
+ #
121
+ def configure
122
+ yield @config if block_given?
123
+ @config
124
+ end
125
+
126
+ ##
127
+ # The effective universe domain
128
+ #
129
+ # @return [String]
130
+ #
131
+ def universe_domain
132
+ @agent_registry_endpoint_stub.universe_domain
133
+ end
134
+
135
+ ##
136
+ # Create a new AgentRegistryEndpoint client object.
137
+ #
138
+ # @example
139
+ #
140
+ # # Create a client using the default configuration
141
+ # client = ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new
142
+ #
143
+ # # Create a client using a custom configuration
144
+ # client = ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new do |config|
145
+ # config.timeout = 10.0
146
+ # end
147
+ #
148
+ # @yield [config] Configure the AgentRegistryEndpoint client.
149
+ # @yieldparam config [Client::Configuration]
150
+ #
151
+ def initialize
152
+ # These require statements are intentionally placed here to initialize
153
+ # the gRPC module only when it's required.
154
+ # See https://github.com/googleapis/toolkit/issues/446
155
+ require "gapic/grpc"
156
+ require "google/cloud/agentregistryendpoint/v1/agentregistryendpoint_service_services_pb"
157
+
158
+ # Create the configuration object
159
+ @config = Configuration.new Client.configure
160
+
161
+ # Yield the configuration if needed
162
+ yield @config if block_given?
163
+
164
+ # Create credentials
165
+ credentials = @config.credentials
166
+ # Use self-signed JWT if the endpoint is unchanged from default,
167
+ # but only if the default endpoint does not have a region prefix.
168
+ enable_self_signed_jwt = @config.endpoint.nil? ||
169
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
170
+ !@config.endpoint.split(".").first.include?("-"))
171
+ credentials ||= Credentials.default scope: @config.scope,
172
+ enable_self_signed_jwt: enable_self_signed_jwt
173
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
174
+ credentials = Credentials.new credentials, scope: @config.scope
175
+ end
176
+ @quota_project_id = @config.quota_project
177
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
178
+
179
+ @agent_registry_endpoint_stub = ::Gapic::ServiceStub.new(
180
+ ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Stub,
181
+ credentials: credentials,
182
+ endpoint: @config.endpoint,
183
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
184
+ universe_domain: @config.universe_domain,
185
+ channel_args: @config.channel_args,
186
+ interceptors: @config.interceptors,
187
+ channel_pool_config: @config.channel_pool,
188
+ logger: @config.logger
189
+ )
190
+
191
+ @agent_registry_endpoint_stub.stub_logger&.info do |entry|
192
+ entry.set_system_name
193
+ entry.set_service
194
+ entry.message = "Created client for #{entry.service}"
195
+ entry.set_credentials_fields credentials
196
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
197
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
198
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
199
+ end
200
+ end
201
+
202
+ ##
203
+ # The logger used for request/response debug logging.
204
+ #
205
+ # @return [Logger]
206
+ #
207
+ def logger
208
+ @agent_registry_endpoint_stub.logger
209
+ end
210
+
211
+ # Service calls
212
+
213
+ ##
214
+ # Gets an MCP server active within the localized dataplane of the AI
215
+ # Application.
216
+ #
217
+ # @overload get_ai_application_mcp_server(request, options = nil)
218
+ # Pass arguments to `get_ai_application_mcp_server` via a request object, either of type
219
+ # {::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationMcpServerRequest} or an equivalent Hash.
220
+ #
221
+ # @param request [::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationMcpServerRequest, ::Hash]
222
+ # A request object representing the call parameters. Required. To specify no
223
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
224
+ # @param options [::Gapic::CallOptions, ::Hash]
225
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
226
+ #
227
+ # @overload get_ai_application_mcp_server(name: nil)
228
+ # Pass arguments to `get_ai_application_mcp_server` via keyword arguments. Note that at
229
+ # least one keyword argument is required. To specify no parameters, or to keep all
230
+ # the default parameter values, pass an empty Hash as a request object (see above).
231
+ #
232
+ # @param name [::String]
233
+ # Required. The resource name of the MCP server, in the format
234
+ # `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`.
235
+ #
236
+ # @yield [response, operation] Access the result along with the RPC operation
237
+ # @yieldparam response [::Google::Cloud::AgentRegistry::V1::McpServer]
238
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
239
+ #
240
+ # @return [::Google::Cloud::AgentRegistry::V1::McpServer]
241
+ #
242
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
243
+ #
244
+ # @example Basic example
245
+ # require "google/cloud/agent_registry_endpoint/v1"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationMcpServerRequest.new
252
+ #
253
+ # # Call the get_ai_application_mcp_server method.
254
+ # result = client.get_ai_application_mcp_server request
255
+ #
256
+ # # The returned object is of type Google::Cloud::AgentRegistry::V1::McpServer.
257
+ # p result
258
+ #
259
+ def get_ai_application_mcp_server request, options = nil
260
+ raise ::ArgumentError, "request must be provided" if request.nil?
261
+
262
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationMcpServerRequest
263
+
264
+ # Converts hash and nil to an options object
265
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
266
+
267
+ # Customize the options with defaults
268
+ metadata = @config.rpcs.get_ai_application_mcp_server.metadata.to_h
269
+
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
271
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
272
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
273
+ gapic_version: ::Google::Cloud::AgentRegistryEndpoint::V1::VERSION
274
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
275
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
276
+
277
+ header_params = {}
278
+ if request.name
279
+ header_params["name"] = request.name
280
+ end
281
+
282
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
283
+ metadata[:"x-goog-request-params"] ||= request_params_header
284
+
285
+ options.apply_defaults timeout: @config.rpcs.get_ai_application_mcp_server.timeout,
286
+ metadata: metadata,
287
+ retry_policy: @config.rpcs.get_ai_application_mcp_server.retry_policy
288
+
289
+ options.apply_defaults timeout: @config.timeout,
290
+ metadata: @config.metadata,
291
+ retry_policy: @config.retry_policy
292
+
293
+ @agent_registry_endpoint_stub.call_rpc :get_ai_application_mcp_server, request, options: options do |response, operation|
294
+ yield response, operation if block_given?
295
+ end
296
+ rescue ::GRPC::BadStatus => e
297
+ raise ::Google::Cloud::Error.from_error(e)
298
+ end
299
+
300
+ ##
301
+ # Gets an endpoint active within the localized dataplane of the AI
302
+ # Application.
303
+ #
304
+ # @overload get_ai_application_endpoint(request, options = nil)
305
+ # Pass arguments to `get_ai_application_endpoint` via a request object, either of type
306
+ # {::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationEndpointRequest} or an equivalent Hash.
307
+ #
308
+ # @param request [::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationEndpointRequest, ::Hash]
309
+ # A request object representing the call parameters. Required. To specify no
310
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
311
+ # @param options [::Gapic::CallOptions, ::Hash]
312
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
313
+ #
314
+ # @overload get_ai_application_endpoint(name: nil)
315
+ # Pass arguments to `get_ai_application_endpoint` via keyword arguments. Note that at
316
+ # least one keyword argument is required. To specify no parameters, or to keep all
317
+ # the default parameter values, pass an empty Hash as a request object (see above).
318
+ #
319
+ # @param name [::String]
320
+ # Required. The resource name of the endpoint, in the format
321
+ # `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`.
322
+ #
323
+ # @yield [response, operation] Access the result along with the RPC operation
324
+ # @yieldparam response [::Google::Cloud::AgentRegistry::V1::Endpoint]
325
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
326
+ #
327
+ # @return [::Google::Cloud::AgentRegistry::V1::Endpoint]
328
+ #
329
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
330
+ #
331
+ # @example Basic example
332
+ # require "google/cloud/agent_registry_endpoint/v1"
333
+ #
334
+ # # Create a client object. The client can be reused for multiple calls.
335
+ # client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new
336
+ #
337
+ # # Create a request. To set request fields, pass in keyword arguments.
338
+ # request = Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationEndpointRequest.new
339
+ #
340
+ # # Call the get_ai_application_endpoint method.
341
+ # result = client.get_ai_application_endpoint request
342
+ #
343
+ # # The returned object is of type Google::Cloud::AgentRegistry::V1::Endpoint.
344
+ # p result
345
+ #
346
+ def get_ai_application_endpoint request, options = nil
347
+ raise ::ArgumentError, "request must be provided" if request.nil?
348
+
349
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationEndpointRequest
350
+
351
+ # Converts hash and nil to an options object
352
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
353
+
354
+ # Customize the options with defaults
355
+ metadata = @config.rpcs.get_ai_application_endpoint.metadata.to_h
356
+
357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
358
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
359
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
360
+ gapic_version: ::Google::Cloud::AgentRegistryEndpoint::V1::VERSION
361
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
+
364
+ header_params = {}
365
+ if request.name
366
+ header_params["name"] = request.name
367
+ end
368
+
369
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
370
+ metadata[:"x-goog-request-params"] ||= request_params_header
371
+
372
+ options.apply_defaults timeout: @config.rpcs.get_ai_application_endpoint.timeout,
373
+ metadata: metadata,
374
+ retry_policy: @config.rpcs.get_ai_application_endpoint.retry_policy
375
+
376
+ options.apply_defaults timeout: @config.timeout,
377
+ metadata: @config.metadata,
378
+ retry_policy: @config.retry_policy
379
+
380
+ @agent_registry_endpoint_stub.call_rpc :get_ai_application_endpoint, request, options: options do |response, operation|
381
+ yield response, operation if block_given?
382
+ end
383
+ rescue ::GRPC::BadStatus => e
384
+ raise ::Google::Cloud::Error.from_error(e)
385
+ end
386
+
387
+ ##
388
+ # Lists agents active within the localized dataplane of the AI Application.
389
+ #
390
+ # @overload list_ai_application_agents(request, options = nil)
391
+ # Pass arguments to `list_ai_application_agents` via a request object, either of type
392
+ # {::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationAgentsRequest} or an equivalent Hash.
393
+ #
394
+ # @param request [::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationAgentsRequest, ::Hash]
395
+ # A request object representing the call parameters. Required. To specify no
396
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
397
+ # @param options [::Gapic::CallOptions, ::Hash]
398
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
399
+ #
400
+ # @overload list_ai_application_agents(parent: nil, page_size: nil, page_token: nil)
401
+ # Pass arguments to `list_ai_application_agents` via keyword arguments. Note that at
402
+ # least one keyword argument is required. To specify no parameters, or to keep all
403
+ # the default parameter values, pass an empty Hash as a request object (see above).
404
+ #
405
+ # @param parent [::String]
406
+ # Required. The parent resource name, in the format
407
+ # `projects/{project}/locations/{location}/aiApplications/{ai_application}`.
408
+ # @param page_size [::Integer]
409
+ # Optional. The maximum number of agents to return. The service may return
410
+ # fewer than this value. If unspecified or set to `0`, at most 50 agents are
411
+ # returned. The maximum value is 100; values above 100 are coerced to 100.
412
+ # @param page_token [::String]
413
+ # Optional. A page token, received from a previous `ListAiApplicationAgents`
414
+ # call. Provide this to retrieve the subsequent page.
415
+ #
416
+ # When paginating, all other parameters provided to
417
+ # `ListAiApplicationAgents` must match the call that provided the page
418
+ # token.
419
+ #
420
+ # @yield [response, operation] Access the result along with the RPC operation
421
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>]
422
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
423
+ #
424
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>]
425
+ #
426
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
427
+ #
428
+ # @example Basic example
429
+ # require "google/cloud/agent_registry_endpoint/v1"
430
+ #
431
+ # # Create a client object. The client can be reused for multiple calls.
432
+ # client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new
433
+ #
434
+ # # Create a request. To set request fields, pass in keyword arguments.
435
+ # request = Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationAgentsRequest.new
436
+ #
437
+ # # Call the list_ai_application_agents method.
438
+ # result = client.list_ai_application_agents request
439
+ #
440
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
441
+ # # over elements, and API calls will be issued to fetch pages as needed.
442
+ # result.each do |item|
443
+ # # Each element is of type ::Google::Cloud::AgentRegistry::V1::Agent.
444
+ # p item
445
+ # end
446
+ #
447
+ def list_ai_application_agents request, options = nil
448
+ raise ::ArgumentError, "request must be provided" if request.nil?
449
+
450
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationAgentsRequest
451
+
452
+ # Converts hash and nil to an options object
453
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
454
+
455
+ # Customize the options with defaults
456
+ metadata = @config.rpcs.list_ai_application_agents.metadata.to_h
457
+
458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
459
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
460
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
461
+ gapic_version: ::Google::Cloud::AgentRegistryEndpoint::V1::VERSION
462
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
463
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
464
+
465
+ header_params = {}
466
+ if request.parent
467
+ header_params["parent"] = request.parent
468
+ end
469
+
470
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
471
+ metadata[:"x-goog-request-params"] ||= request_params_header
472
+
473
+ options.apply_defaults timeout: @config.rpcs.list_ai_application_agents.timeout,
474
+ metadata: metadata,
475
+ retry_policy: @config.rpcs.list_ai_application_agents.retry_policy
476
+
477
+ options.apply_defaults timeout: @config.timeout,
478
+ metadata: @config.metadata,
479
+ retry_policy: @config.retry_policy
480
+
481
+ @agent_registry_endpoint_stub.call_rpc :list_ai_application_agents, request, options: options do |response, operation|
482
+ response = ::Gapic::PagedEnumerable.new @agent_registry_endpoint_stub, :list_ai_application_agents, request, response, operation, options
483
+ yield response, operation if block_given?
484
+ throw :response, response
485
+ end
486
+ rescue ::GRPC::BadStatus => e
487
+ raise ::Google::Cloud::Error.from_error(e)
488
+ end
489
+
490
+ ##
491
+ # Lists MCP servers active within the localized dataplane of the AI
492
+ # Application.
493
+ #
494
+ # @overload list_ai_application_mcp_servers(request, options = nil)
495
+ # Pass arguments to `list_ai_application_mcp_servers` via a request object, either of type
496
+ # {::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationMcpServersRequest} or an equivalent Hash.
497
+ #
498
+ # @param request [::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationMcpServersRequest, ::Hash]
499
+ # A request object representing the call parameters. Required. To specify no
500
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
501
+ # @param options [::Gapic::CallOptions, ::Hash]
502
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
503
+ #
504
+ # @overload list_ai_application_mcp_servers(parent: nil, page_size: nil, page_token: nil)
505
+ # Pass arguments to `list_ai_application_mcp_servers` via keyword arguments. Note that at
506
+ # least one keyword argument is required. To specify no parameters, or to keep all
507
+ # the default parameter values, pass an empty Hash as a request object (see above).
508
+ #
509
+ # @param parent [::String]
510
+ # Required. The parent resource name, in the format
511
+ # `projects/{project}/locations/{location}/aiApplications/{ai_application}`.
512
+ # @param page_size [::Integer]
513
+ # Optional. The maximum number of MCP servers to return. The service may
514
+ # return fewer than this value. If unspecified or set to `0`, at most 50 MCP
515
+ # servers are returned. The maximum value is 100; values above 100 are
516
+ # coerced to 100.
517
+ # @param page_token [::String]
518
+ # Optional. A page token, received from a previous
519
+ # `ListAiApplicationMcpServers` call. Provide this to retrieve the
520
+ # subsequent page.
521
+ #
522
+ # When paginating, all other parameters provided to
523
+ # `ListAiApplicationMcpServers` must match the call that provided the
524
+ # page token.
525
+ #
526
+ # @yield [response, operation] Access the result along with the RPC operation
527
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>]
528
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
529
+ #
530
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>]
531
+ #
532
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
533
+ #
534
+ # @example Basic example
535
+ # require "google/cloud/agent_registry_endpoint/v1"
536
+ #
537
+ # # Create a client object. The client can be reused for multiple calls.
538
+ # client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new
539
+ #
540
+ # # Create a request. To set request fields, pass in keyword arguments.
541
+ # request = Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationMcpServersRequest.new
542
+ #
543
+ # # Call the list_ai_application_mcp_servers method.
544
+ # result = client.list_ai_application_mcp_servers request
545
+ #
546
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
547
+ # # over elements, and API calls will be issued to fetch pages as needed.
548
+ # result.each do |item|
549
+ # # Each element is of type ::Google::Cloud::AgentRegistry::V1::McpServer.
550
+ # p item
551
+ # end
552
+ #
553
+ def list_ai_application_mcp_servers request, options = nil
554
+ raise ::ArgumentError, "request must be provided" if request.nil?
555
+
556
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationMcpServersRequest
557
+
558
+ # Converts hash and nil to an options object
559
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
560
+
561
+ # Customize the options with defaults
562
+ metadata = @config.rpcs.list_ai_application_mcp_servers.metadata.to_h
563
+
564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
565
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
566
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
567
+ gapic_version: ::Google::Cloud::AgentRegistryEndpoint::V1::VERSION
568
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
569
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
570
+
571
+ header_params = {}
572
+ if request.parent
573
+ header_params["parent"] = request.parent
574
+ end
575
+
576
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
577
+ metadata[:"x-goog-request-params"] ||= request_params_header
578
+
579
+ options.apply_defaults timeout: @config.rpcs.list_ai_application_mcp_servers.timeout,
580
+ metadata: metadata,
581
+ retry_policy: @config.rpcs.list_ai_application_mcp_servers.retry_policy
582
+
583
+ options.apply_defaults timeout: @config.timeout,
584
+ metadata: @config.metadata,
585
+ retry_policy: @config.retry_policy
586
+
587
+ @agent_registry_endpoint_stub.call_rpc :list_ai_application_mcp_servers, request, options: options do |response, operation|
588
+ response = ::Gapic::PagedEnumerable.new @agent_registry_endpoint_stub, :list_ai_application_mcp_servers, request, response, operation, options
589
+ yield response, operation if block_given?
590
+ throw :response, response
591
+ end
592
+ rescue ::GRPC::BadStatus => e
593
+ raise ::Google::Cloud::Error.from_error(e)
594
+ end
595
+
596
+ ##
597
+ # Lists endpoints active within the localized dataplane of the AI
598
+ # Application.
599
+ #
600
+ # @overload list_ai_application_endpoints(request, options = nil)
601
+ # Pass arguments to `list_ai_application_endpoints` via a request object, either of type
602
+ # {::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationEndpointsRequest} or an equivalent Hash.
603
+ #
604
+ # @param request [::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationEndpointsRequest, ::Hash]
605
+ # A request object representing the call parameters. Required. To specify no
606
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
607
+ # @param options [::Gapic::CallOptions, ::Hash]
608
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
609
+ #
610
+ # @overload list_ai_application_endpoints(parent: nil, page_size: nil, page_token: nil)
611
+ # Pass arguments to `list_ai_application_endpoints` via keyword arguments. Note that at
612
+ # least one keyword argument is required. To specify no parameters, or to keep all
613
+ # the default parameter values, pass an empty Hash as a request object (see above).
614
+ #
615
+ # @param parent [::String]
616
+ # Required. The parent resource name, in the format
617
+ # `projects/{project}/locations/{location}/aiApplications/{ai_application}`.
618
+ # @param page_size [::Integer]
619
+ # Optional. The maximum number of endpoints to return. The service may return
620
+ # fewer than this value. If unspecified or set to `0`, at most 50 endpoints
621
+ # are returned. The maximum value is 100; values above 100 are coerced to
622
+ # 100.
623
+ # @param page_token [::String]
624
+ # Optional. A page token, received from a previous
625
+ # `ListAiApplicationEndpoints` call. Provide this to retrieve the
626
+ # subsequent page.
627
+ #
628
+ # When paginating, all other parameters provided to
629
+ # `ListAiApplicationEndpoints` must match the call that provided the
630
+ # page token.
631
+ #
632
+ # @yield [response, operation] Access the result along with the RPC operation
633
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>]
634
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
635
+ #
636
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>]
637
+ #
638
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
639
+ #
640
+ # @example Basic example
641
+ # require "google/cloud/agent_registry_endpoint/v1"
642
+ #
643
+ # # Create a client object. The client can be reused for multiple calls.
644
+ # client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new
645
+ #
646
+ # # Create a request. To set request fields, pass in keyword arguments.
647
+ # request = Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationEndpointsRequest.new
648
+ #
649
+ # # Call the list_ai_application_endpoints method.
650
+ # result = client.list_ai_application_endpoints request
651
+ #
652
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
653
+ # # over elements, and API calls will be issued to fetch pages as needed.
654
+ # result.each do |item|
655
+ # # Each element is of type ::Google::Cloud::AgentRegistry::V1::Endpoint.
656
+ # p item
657
+ # end
658
+ #
659
+ def list_ai_application_endpoints request, options = nil
660
+ raise ::ArgumentError, "request must be provided" if request.nil?
661
+
662
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationEndpointsRequest
663
+
664
+ # Converts hash and nil to an options object
665
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
666
+
667
+ # Customize the options with defaults
668
+ metadata = @config.rpcs.list_ai_application_endpoints.metadata.to_h
669
+
670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
671
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
672
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
673
+ gapic_version: ::Google::Cloud::AgentRegistryEndpoint::V1::VERSION
674
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
675
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
676
+
677
+ header_params = {}
678
+ if request.parent
679
+ header_params["parent"] = request.parent
680
+ end
681
+
682
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
683
+ metadata[:"x-goog-request-params"] ||= request_params_header
684
+
685
+ options.apply_defaults timeout: @config.rpcs.list_ai_application_endpoints.timeout,
686
+ metadata: metadata,
687
+ retry_policy: @config.rpcs.list_ai_application_endpoints.retry_policy
688
+
689
+ options.apply_defaults timeout: @config.timeout,
690
+ metadata: @config.metadata,
691
+ retry_policy: @config.retry_policy
692
+
693
+ @agent_registry_endpoint_stub.call_rpc :list_ai_application_endpoints, request, options: options do |response, operation|
694
+ response = ::Gapic::PagedEnumerable.new @agent_registry_endpoint_stub, :list_ai_application_endpoints, request, response, operation, options
695
+ yield response, operation if block_given?
696
+ throw :response, response
697
+ end
698
+ rescue ::GRPC::BadStatus => e
699
+ raise ::Google::Cloud::Error.from_error(e)
700
+ end
701
+
702
+ ##
703
+ # Configuration class for the AgentRegistryEndpoint API.
704
+ #
705
+ # This class represents the configuration for AgentRegistryEndpoint,
706
+ # providing control over timeouts, retry behavior, logging, transport
707
+ # parameters, and other low-level controls. Certain parameters can also be
708
+ # applied individually to specific RPCs. See
709
+ # {::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client::Configuration::Rpcs}
710
+ # for a list of RPCs that can be configured independently.
711
+ #
712
+ # Configuration can be applied globally to all clients, or to a single client
713
+ # on construction.
714
+ #
715
+ # @example
716
+ #
717
+ # # Modify the global config, setting the timeout for
718
+ # # get_ai_application_mcp_server to 20 seconds,
719
+ # # and all remaining timeouts to 10 seconds.
720
+ # ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.configure do |config|
721
+ # config.timeout = 10.0
722
+ # config.rpcs.get_ai_application_mcp_server.timeout = 20.0
723
+ # end
724
+ #
725
+ # # Apply the above configuration only to a new client.
726
+ # client = ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new do |config|
727
+ # config.timeout = 10.0
728
+ # config.rpcs.get_ai_application_mcp_server.timeout = 20.0
729
+ # end
730
+ #
731
+ # @!attribute [rw] endpoint
732
+ # A custom service endpoint, as a hostname or hostname:port. The default is
733
+ # nil, indicating to use the default endpoint in the current universe domain.
734
+ # @return [::String,nil]
735
+ # @!attribute [rw] credentials
736
+ # Credentials to send with calls. You may provide any of the following types:
737
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
738
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
739
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
740
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
741
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
742
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
743
+ # * (`nil`) indicating no credentials
744
+ #
745
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
746
+ # is deprecated. Providing an unvalidated credential configuration to
747
+ # Google APIs can compromise the security of your systems and data.
748
+ #
749
+ # @example
750
+ #
751
+ # # The recommended way to provide credentials is to use the `make_creds` method
752
+ # # on the appropriate credentials class for your environment.
753
+ #
754
+ # require "googleauth"
755
+ #
756
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
757
+ # json_key_io: ::File.open("/path/to/keyfile.json")
758
+ # )
759
+ #
760
+ # client = ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Client.new do |config|
761
+ # config.credentials = credentials
762
+ # end
763
+ #
764
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
765
+ # external source for authentication to Google Cloud, you must validate it before
766
+ # providing it to a Google API client library. Providing an unvalidated credential
767
+ # configuration to Google APIs can compromise the security of your systems and data.
768
+ # For more information, refer to [Validate credential configurations from external
769
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
770
+ # @return [::Object]
771
+ # @!attribute [rw] scope
772
+ # The OAuth scopes
773
+ # @return [::Array<::String>]
774
+ # @!attribute [rw] lib_name
775
+ # The library name as recorded in instrumentation and logging
776
+ # @return [::String]
777
+ # @!attribute [rw] lib_version
778
+ # The library version as recorded in instrumentation and logging
779
+ # @return [::String]
780
+ # @!attribute [rw] channel_args
781
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
782
+ # `GRPC::Core::Channel` object is provided as the credential.
783
+ # @return [::Hash]
784
+ # @!attribute [rw] interceptors
785
+ # An array of interceptors that are run before calls are executed.
786
+ # @return [::Array<::GRPC::ClientInterceptor>]
787
+ # @!attribute [rw] timeout
788
+ # The call timeout in seconds.
789
+ # @return [::Numeric]
790
+ # @!attribute [rw] metadata
791
+ # Additional gRPC headers to be sent with the call.
792
+ # @return [::Hash{::Symbol=>::String}]
793
+ # @!attribute [rw] retry_policy
794
+ # The retry policy. The value is a hash with the following keys:
795
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
796
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
797
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
798
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
799
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
800
+ # trigger a retry.
801
+ # @return [::Hash]
802
+ # @!attribute [rw] quota_project
803
+ # A separate project against which to charge quota.
804
+ # @return [::String]
805
+ # @!attribute [rw] universe_domain
806
+ # The universe domain within which to make requests. This determines the
807
+ # default endpoint URL. The default value of nil uses the environment
808
+ # universe (usually the default "googleapis.com" universe).
809
+ # @return [::String,nil]
810
+ # @!attribute [rw] logger
811
+ # A custom logger to use for request/response debug logging, or the value
812
+ # `:default` (the default) to construct a default logger, or `nil` to
813
+ # explicitly disable logging.
814
+ # @return [::Logger,:default,nil]
815
+ #
816
+ class Configuration
817
+ extend ::Gapic::Config
818
+
819
+ # @private
820
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
821
+ DEFAULT_ENDPOINT = "agentregistryendpoint.googleapis.com"
822
+
823
+ config_attr :endpoint, nil, ::String, nil
824
+ config_attr :credentials, nil do |value|
825
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
826
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
827
+ allowed.any? { |klass| klass === value }
828
+ end
829
+ config_attr :scope, nil, ::String, ::Array, nil
830
+ config_attr :lib_name, nil, ::String, nil
831
+ config_attr :lib_version, nil, ::String, nil
832
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
833
+ config_attr :interceptors, nil, ::Array, nil
834
+ config_attr :timeout, nil, ::Numeric, nil
835
+ config_attr :metadata, nil, ::Hash, nil
836
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
837
+ config_attr :quota_project, nil, ::String, nil
838
+ config_attr :universe_domain, nil, ::String, nil
839
+ config_attr :logger, :default, ::Logger, nil, :default
840
+
841
+ # @private
842
+ def initialize parent_config = nil
843
+ @parent_config = parent_config unless parent_config.nil?
844
+
845
+ yield self if block_given?
846
+ end
847
+
848
+ ##
849
+ # Configurations for individual RPCs
850
+ # @return [Rpcs]
851
+ #
852
+ def rpcs
853
+ @rpcs ||= begin
854
+ parent_rpcs = nil
855
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
856
+ Rpcs.new parent_rpcs
857
+ end
858
+ end
859
+
860
+ ##
861
+ # Configuration for the channel pool
862
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
863
+ #
864
+ def channel_pool
865
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
866
+ end
867
+
868
+ ##
869
+ # Configuration RPC class for the AgentRegistryEndpoint API.
870
+ #
871
+ # Includes fields providing the configuration for each RPC in this service.
872
+ # Each configuration object is of type `Gapic::Config::Method` and includes
873
+ # the following configuration fields:
874
+ #
875
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
876
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
877
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
878
+ # include the following keys:
879
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
880
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
881
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
882
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
883
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
884
+ # trigger a retry.
885
+ #
886
+ class Rpcs
887
+ ##
888
+ # RPC-specific configuration for `get_ai_application_mcp_server`
889
+ # @return [::Gapic::Config::Method]
890
+ #
891
+ attr_reader :get_ai_application_mcp_server
892
+ ##
893
+ # RPC-specific configuration for `get_ai_application_endpoint`
894
+ # @return [::Gapic::Config::Method]
895
+ #
896
+ attr_reader :get_ai_application_endpoint
897
+ ##
898
+ # RPC-specific configuration for `list_ai_application_agents`
899
+ # @return [::Gapic::Config::Method]
900
+ #
901
+ attr_reader :list_ai_application_agents
902
+ ##
903
+ # RPC-specific configuration for `list_ai_application_mcp_servers`
904
+ # @return [::Gapic::Config::Method]
905
+ #
906
+ attr_reader :list_ai_application_mcp_servers
907
+ ##
908
+ # RPC-specific configuration for `list_ai_application_endpoints`
909
+ # @return [::Gapic::Config::Method]
910
+ #
911
+ attr_reader :list_ai_application_endpoints
912
+
913
+ # @private
914
+ def initialize parent_rpcs = nil
915
+ get_ai_application_mcp_server_config = parent_rpcs.get_ai_application_mcp_server if parent_rpcs.respond_to? :get_ai_application_mcp_server
916
+ @get_ai_application_mcp_server = ::Gapic::Config::Method.new get_ai_application_mcp_server_config
917
+ get_ai_application_endpoint_config = parent_rpcs.get_ai_application_endpoint if parent_rpcs.respond_to? :get_ai_application_endpoint
918
+ @get_ai_application_endpoint = ::Gapic::Config::Method.new get_ai_application_endpoint_config
919
+ list_ai_application_agents_config = parent_rpcs.list_ai_application_agents if parent_rpcs.respond_to? :list_ai_application_agents
920
+ @list_ai_application_agents = ::Gapic::Config::Method.new list_ai_application_agents_config
921
+ list_ai_application_mcp_servers_config = parent_rpcs.list_ai_application_mcp_servers if parent_rpcs.respond_to? :list_ai_application_mcp_servers
922
+ @list_ai_application_mcp_servers = ::Gapic::Config::Method.new list_ai_application_mcp_servers_config
923
+ list_ai_application_endpoints_config = parent_rpcs.list_ai_application_endpoints if parent_rpcs.respond_to? :list_ai_application_endpoints
924
+ @list_ai_application_endpoints = ::Gapic::Config::Method.new list_ai_application_endpoints_config
925
+
926
+ yield self if block_given?
927
+ end
928
+ end
929
+ end
930
+ end
931
+ end
932
+ end
933
+ end
934
+ end
935
+ end