Class: Google::Apps::Chat::V1::ChatService::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Apps::Chat::V1::ChatService::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/apps/chat/v1/chat_service/client.rb
Overview
Configuration class for the ChatService API.
This class represents the configuration for ChatService, 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.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_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.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_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.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_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.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_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.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_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).
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 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 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5162 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.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 ChatService 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 `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message = ::Gapic::Config::Method.new create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
5210 5211 5212 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5210 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
5198 5199 5200 5201 5202 5203 5204 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 5198 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 |