Class: Google::Apps::Chat::V1::ChatService::Rest::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Apps::Chat::V1::ChatService::Rest::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/apps/chat/v1/chat_service/rest/client.rb
Overview
Configuration class for the ChatService REST API.
This class represents the configuration for ChatService REST, 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
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#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, ornil
to explicitly disable logging. -
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional 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
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#credentials ⇒ ::Object
Credentials to send with calls. You may provide any of the following types:
- (
String
) The path to a service account key file in JSON format - (
Hash
) A service account key as a Hash - (
Google::Auth::Credentials
) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client
) A signet oauth2 client object (see the signet docs) - (
nil
) indicating no credentials
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config 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.
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config 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.
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional headers to be sent with the call.
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
#retry_policy ⇒ ::Hash
The retry policy. The value is a hash with the following keys:
-
:initial_delay
(type:Numeric
) - The initial delay in seconds. -
:max_delay
(type:Numeric
) - The max delay in seconds. -
:multiplier
(type:Numeric
) - The incremental backoff multiplier. -
:retry_codes
(type:Array<String>
) - The error codes that should trigger a retry.
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config 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).
4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4039 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, ::Signet::OAuth2::Client, nil] 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 :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 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 headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events # @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? :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 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 get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config yield self if block_given? end end end |
Instance Method Details
#rpcs ⇒ Rpcs
Configurations for individual RPCs
4072 4073 4074 4075 4076 4077 4078 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 4072 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 |