Class: Google::Cloud::Ces::V1beta::AgentService::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::Ces::V1beta::AgentService::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/ces/v1beta/agent_service/client.rb
Overview
Configuration class for the AgentService API.
This class represents the configuration for AgentService, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default(the default) to construct a default logger, ornilto explicitly disable logging. -
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool.
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel object is provided as the credential.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#credentials ⇒ ::Object
Warning: Passing a String to a keyfile path or a Hash of credentials
is deprecated. Providing an unvalidated credential configuration to
Google APIs can compromise the security of your systems and data.
Warning: If you accept a credential configuration (JSON file or Hash) from an
Credentials to send with calls. You may provide any of the following types:
- (
Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs) - (
GRPC::Core::Channel) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials) a gRPC credentails object - (
nil) indicating no credentials
external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default (the default) to construct a default logger, or nil to
explicitly disable logging.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#retry_policy ⇒ ::Hash
The retry policy. The value is a hash with the following keys:
-
:initial_delay(type:Numeric) - The initial delay in seconds. -
:max_delay(type:Numeric) - The max delay in seconds. -
:multiplier(type:Numeric) - The incremental backoff multiplier. -
:retry_codes(type:Array<String>) - The error codes that should trigger a retry.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
#universe_domain ⇒ ::String?
The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5195 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "ces.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the AgentService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_apps` # @return [::Gapic::Config::Method] # attr_reader :list_apps ## # RPC-specific configuration for `get_app` # @return [::Gapic::Config::Method] # attr_reader :get_app ## # RPC-specific configuration for `create_app` # @return [::Gapic::Config::Method] # attr_reader :create_app ## # RPC-specific configuration for `update_app` # @return [::Gapic::Config::Method] # attr_reader :update_app ## # RPC-specific configuration for `delete_app` # @return [::Gapic::Config::Method] # attr_reader :delete_app ## # RPC-specific configuration for `export_app` # @return [::Gapic::Config::Method] # attr_reader :export_app ## # RPC-specific configuration for `import_app` # @return [::Gapic::Config::Method] # attr_reader :import_app ## # RPC-specific configuration for `get_security_settings` # @return [::Gapic::Config::Method] # attr_reader :get_security_settings ## # RPC-specific configuration for `update_security_settings` # @return [::Gapic::Config::Method] # attr_reader :update_security_settings ## # RPC-specific configuration for `list_agents` # @return [::Gapic::Config::Method] # attr_reader :list_agents ## # RPC-specific configuration for `get_agent` # @return [::Gapic::Config::Method] # attr_reader :get_agent ## # RPC-specific configuration for `create_agent` # @return [::Gapic::Config::Method] # attr_reader :create_agent ## # RPC-specific configuration for `update_agent` # @return [::Gapic::Config::Method] # attr_reader :update_agent ## # RPC-specific configuration for `delete_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_agent ## # RPC-specific configuration for `list_examples` # @return [::Gapic::Config::Method] # attr_reader :list_examples ## # RPC-specific configuration for `get_example` # @return [::Gapic::Config::Method] # attr_reader :get_example ## # RPC-specific configuration for `create_example` # @return [::Gapic::Config::Method] # attr_reader :create_example ## # RPC-specific configuration for `update_example` # @return [::Gapic::Config::Method] # attr_reader :update_example ## # RPC-specific configuration for `delete_example` # @return [::Gapic::Config::Method] # attr_reader :delete_example ## # RPC-specific configuration for `list_tools` # @return [::Gapic::Config::Method] # attr_reader :list_tools ## # RPC-specific configuration for `get_tool` # @return [::Gapic::Config::Method] # attr_reader :get_tool ## # RPC-specific configuration for `list_conversations` # @return [::Gapic::Config::Method] # attr_reader :list_conversations ## # RPC-specific configuration for `get_conversation` # @return [::Gapic::Config::Method] # attr_reader :get_conversation ## # RPC-specific configuration for `delete_conversation` # @return [::Gapic::Config::Method] # attr_reader :delete_conversation ## # RPC-specific configuration for `batch_delete_conversations` # @return [::Gapic::Config::Method] # attr_reader :batch_delete_conversations ## # RPC-specific configuration for `create_tool` # @return [::Gapic::Config::Method] # attr_reader :create_tool ## # RPC-specific configuration for `update_tool` # @return [::Gapic::Config::Method] # attr_reader :update_tool ## # RPC-specific configuration for `delete_tool` # @return [::Gapic::Config::Method] # attr_reader :delete_tool ## # RPC-specific configuration for `list_guardrails` # @return [::Gapic::Config::Method] # attr_reader :list_guardrails ## # RPC-specific configuration for `get_guardrail` # @return [::Gapic::Config::Method] # attr_reader :get_guardrail ## # RPC-specific configuration for `create_guardrail` # @return [::Gapic::Config::Method] # attr_reader :create_guardrail ## # RPC-specific configuration for `update_guardrail` # @return [::Gapic::Config::Method] # attr_reader :update_guardrail ## # RPC-specific configuration for `delete_guardrail` # @return [::Gapic::Config::Method] # attr_reader :delete_guardrail ## # RPC-specific configuration for `list_deployments` # @return [::Gapic::Config::Method] # attr_reader :list_deployments ## # RPC-specific configuration for `get_deployment` # @return [::Gapic::Config::Method] # attr_reader :get_deployment ## # RPC-specific configuration for `create_deployment` # @return [::Gapic::Config::Method] # attr_reader :create_deployment ## # RPC-specific configuration for `update_deployment` # @return [::Gapic::Config::Method] # attr_reader :update_deployment ## # RPC-specific configuration for `delete_deployment` # @return [::Gapic::Config::Method] # attr_reader :delete_deployment ## # RPC-specific configuration for `list_toolsets` # @return [::Gapic::Config::Method] # attr_reader :list_toolsets ## # RPC-specific configuration for `get_toolset` # @return [::Gapic::Config::Method] # attr_reader :get_toolset ## # RPC-specific configuration for `create_toolset` # @return [::Gapic::Config::Method] # attr_reader :create_toolset ## # RPC-specific configuration for `update_toolset` # @return [::Gapic::Config::Method] # attr_reader :update_toolset ## # RPC-specific configuration for `delete_toolset` # @return [::Gapic::Config::Method] # attr_reader :delete_toolset ## # RPC-specific configuration for `list_app_versions` # @return [::Gapic::Config::Method] # attr_reader :list_app_versions ## # RPC-specific configuration for `get_app_version` # @return [::Gapic::Config::Method] # attr_reader :get_app_version ## # RPC-specific configuration for `create_app_version` # @return [::Gapic::Config::Method] # attr_reader :create_app_version ## # RPC-specific configuration for `delete_app_version` # @return [::Gapic::Config::Method] # attr_reader :delete_app_version ## # RPC-specific configuration for `restore_app_version` # @return [::Gapic::Config::Method] # attr_reader :restore_app_version ## # RPC-specific configuration for `generate_app_resource` # @return [::Gapic::Config::Method] # attr_reader :generate_app_resource ## # RPC-specific configuration for `list_changelogs` # @return [::Gapic::Config::Method] # attr_reader :list_changelogs ## # RPC-specific configuration for `get_changelog` # @return [::Gapic::Config::Method] # attr_reader :get_changelog # @private def initialize parent_rpcs = nil list_apps_config = parent_rpcs.list_apps if parent_rpcs.respond_to? :list_apps @list_apps = ::Gapic::Config::Method.new list_apps_config get_app_config = parent_rpcs.get_app if parent_rpcs.respond_to? :get_app @get_app = ::Gapic::Config::Method.new get_app_config create_app_config = parent_rpcs.create_app if parent_rpcs.respond_to? :create_app @create_app = ::Gapic::Config::Method.new create_app_config update_app_config = parent_rpcs.update_app if parent_rpcs.respond_to? :update_app @update_app = ::Gapic::Config::Method.new update_app_config delete_app_config = parent_rpcs.delete_app if parent_rpcs.respond_to? :delete_app @delete_app = ::Gapic::Config::Method.new delete_app_config export_app_config = parent_rpcs.export_app if parent_rpcs.respond_to? :export_app @export_app = ::Gapic::Config::Method.new export_app_config import_app_config = parent_rpcs.import_app if parent_rpcs.respond_to? :import_app @import_app = ::Gapic::Config::Method.new import_app_config get_security_settings_config = parent_rpcs.get_security_settings if parent_rpcs.respond_to? :get_security_settings @get_security_settings = ::Gapic::Config::Method.new get_security_settings_config update_security_settings_config = parent_rpcs.update_security_settings if parent_rpcs.respond_to? :update_security_settings @update_security_settings = ::Gapic::Config::Method.new update_security_settings_config list_agents_config = parent_rpcs.list_agents if parent_rpcs.respond_to? :list_agents @list_agents = ::Gapic::Config::Method.new list_agents_config get_agent_config = parent_rpcs.get_agent if parent_rpcs.respond_to? :get_agent @get_agent = ::Gapic::Config::Method.new get_agent_config create_agent_config = parent_rpcs.create_agent if parent_rpcs.respond_to? :create_agent @create_agent = ::Gapic::Config::Method.new create_agent_config update_agent_config = parent_rpcs.update_agent if parent_rpcs.respond_to? :update_agent @update_agent = ::Gapic::Config::Method.new update_agent_config delete_agent_config = parent_rpcs.delete_agent if parent_rpcs.respond_to? :delete_agent @delete_agent = ::Gapic::Config::Method.new delete_agent_config list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples @list_examples = ::Gapic::Config::Method.new list_examples_config get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example @get_example = ::Gapic::Config::Method.new get_example_config create_example_config = parent_rpcs.create_example if parent_rpcs.respond_to? :create_example @create_example = ::Gapic::Config::Method.new create_example_config update_example_config = parent_rpcs.update_example if parent_rpcs.respond_to? :update_example @update_example = ::Gapic::Config::Method.new update_example_config delete_example_config = parent_rpcs.delete_example if parent_rpcs.respond_to? :delete_example @delete_example = ::Gapic::Config::Method.new delete_example_config list_tools_config = parent_rpcs.list_tools if parent_rpcs.respond_to? :list_tools @list_tools = ::Gapic::Config::Method.new list_tools_config get_tool_config = parent_rpcs.get_tool if parent_rpcs.respond_to? :get_tool @get_tool = ::Gapic::Config::Method.new get_tool_config list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations @list_conversations = ::Gapic::Config::Method.new list_conversations_config get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation @get_conversation = ::Gapic::Config::Method.new get_conversation_config delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation @delete_conversation = ::Gapic::Config::Method.new delete_conversation_config batch_delete_conversations_config = parent_rpcs.batch_delete_conversations if parent_rpcs.respond_to? :batch_delete_conversations @batch_delete_conversations = ::Gapic::Config::Method.new batch_delete_conversations_config create_tool_config = parent_rpcs.create_tool if parent_rpcs.respond_to? :create_tool @create_tool = ::Gapic::Config::Method.new create_tool_config update_tool_config = parent_rpcs.update_tool if parent_rpcs.respond_to? :update_tool @update_tool = ::Gapic::Config::Method.new update_tool_config delete_tool_config = parent_rpcs.delete_tool if parent_rpcs.respond_to? :delete_tool @delete_tool = ::Gapic::Config::Method.new delete_tool_config list_guardrails_config = parent_rpcs.list_guardrails if parent_rpcs.respond_to? :list_guardrails @list_guardrails = ::Gapic::Config::Method.new list_guardrails_config get_guardrail_config = parent_rpcs.get_guardrail if parent_rpcs.respond_to? :get_guardrail @get_guardrail = ::Gapic::Config::Method.new get_guardrail_config create_guardrail_config = parent_rpcs.create_guardrail if parent_rpcs.respond_to? :create_guardrail @create_guardrail = ::Gapic::Config::Method.new create_guardrail_config update_guardrail_config = parent_rpcs.update_guardrail if parent_rpcs.respond_to? :update_guardrail @update_guardrail = ::Gapic::Config::Method.new update_guardrail_config delete_guardrail_config = parent_rpcs.delete_guardrail if parent_rpcs.respond_to? :delete_guardrail @delete_guardrail = ::Gapic::Config::Method.new delete_guardrail_config list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments @list_deployments = ::Gapic::Config::Method.new list_deployments_config get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment @get_deployment = ::Gapic::Config::Method.new get_deployment_config create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment @create_deployment = ::Gapic::Config::Method.new create_deployment_config update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment @update_deployment = ::Gapic::Config::Method.new update_deployment_config delete_deployment_config = parent_rpcs.delete_deployment if parent_rpcs.respond_to? :delete_deployment @delete_deployment = ::Gapic::Config::Method.new delete_deployment_config list_toolsets_config = parent_rpcs.list_toolsets if parent_rpcs.respond_to? :list_toolsets @list_toolsets = ::Gapic::Config::Method.new list_toolsets_config get_toolset_config = parent_rpcs.get_toolset if parent_rpcs.respond_to? :get_toolset @get_toolset = ::Gapic::Config::Method.new get_toolset_config create_toolset_config = parent_rpcs.create_toolset if parent_rpcs.respond_to? :create_toolset @create_toolset = ::Gapic::Config::Method.new create_toolset_config update_toolset_config = parent_rpcs.update_toolset if parent_rpcs.respond_to? :update_toolset @update_toolset = ::Gapic::Config::Method.new update_toolset_config delete_toolset_config = parent_rpcs.delete_toolset if parent_rpcs.respond_to? :delete_toolset @delete_toolset = ::Gapic::Config::Method.new delete_toolset_config list_app_versions_config = parent_rpcs.list_app_versions if parent_rpcs.respond_to? :list_app_versions @list_app_versions = ::Gapic::Config::Method.new list_app_versions_config get_app_version_config = parent_rpcs.get_app_version if parent_rpcs.respond_to? :get_app_version @get_app_version = ::Gapic::Config::Method.new get_app_version_config create_app_version_config = parent_rpcs.create_app_version if parent_rpcs.respond_to? :create_app_version @create_app_version = ::Gapic::Config::Method.new create_app_version_config delete_app_version_config = parent_rpcs.delete_app_version if parent_rpcs.respond_to? :delete_app_version @delete_app_version = ::Gapic::Config::Method.new delete_app_version_config restore_app_version_config = parent_rpcs.restore_app_version if parent_rpcs.respond_to? :restore_app_version @restore_app_version = ::Gapic::Config::Method.new restore_app_version_config generate_app_resource_config = parent_rpcs.generate_app_resource if parent_rpcs.respond_to? :generate_app_resource @generate_app_resource = ::Gapic::Config::Method.new generate_app_resource_config list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs @list_changelogs = ::Gapic::Config::Method.new list_changelogs_config get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog @get_changelog = ::Gapic::Config::Method.new get_changelog_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
5243 5244 5245 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5243 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
5231 5232 5233 5234 5235 5236 5237 |
# File 'lib/google/cloud/ces/v1beta/agent_service/client.rb', line 5231 def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end |