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.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_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.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_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.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_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.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_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. -
:jitter(type:Numeric) - The jitter in seconds. Default: 1.0. -
:retry_codes(type:Array<String>) - The error codes that should trigger a retry.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_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).
7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7036 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. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `: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 `search_messages` # @return [::Gapic::Config::Method] # attr_reader :search_messages ## # 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 `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # 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_availability` # @return [::Gapic::Config::Method] # attr_reader :get_availability ## # RPC-specific configuration for `mark_as_active` # @return [::Gapic::Config::Method] # attr_reader :mark_as_active ## # RPC-specific configuration for `mark_as_away` # @return [::Gapic::Config::Method] # attr_reader :mark_as_away ## # RPC-specific configuration for `mark_as_do_not_disturb` # @return [::Gapic::Config::Method] # attr_reader :mark_as_do_not_disturb ## # RPC-specific configuration for `update_availability` # @return [::Gapic::Config::Method] # attr_reader :update_availability ## # 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 ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @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 @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :search_messages @search_messages = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @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 @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config 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_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability @get_availability = ::Gapic::Config::Method.new get_availability_config mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability @update_availability = ::Gapic::Config::Method.new update_availability_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 create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
7084 7085 7086 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7084 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
7072 7073 7074 7075 7076 7077 7078 |
# File 'lib/google/apps/chat/v1/chat_service/client.rb', line 7072 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 |