class Google::Cloud::Dialogflow::V2::Contexts::Client::Configuration::Rpcs
Configuration
RPC class for the Contexts
API.
Includes fields providing the configuration for each RPC in this service. Each configuration object is of type `Gapic::Config::Method` and includes the following configuration fields:
* `timeout` (*type:* `Numeric`) - The call timeout in seconds * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields include the following keys: * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. * `:retry_codes` (*type:* `Array<String>`) - The error codes that should trigger a retry.
Attributes
create_context[R]
RPC-specific configuration for `create_context` @return [::Gapic::Config::Method]
delete_all_contexts[R]
RPC-specific configuration for `delete_all_contexts` @return [::Gapic::Config::Method]
delete_context[R]
RPC-specific configuration for `delete_context` @return [::Gapic::Config::Method]
get_context[R]
RPC-specific configuration for `get_context` @return [::Gapic::Config::Method]
list_contexts[R]
RPC-specific configuration for `list_contexts` @return [::Gapic::Config::Method]
update_context[R]
RPC-specific configuration for `update_context` @return [::Gapic::Config::Method]
Public Class Methods
new(parent_rpcs = nil) { |self| ... }
click to toggle source
@private
# File lib/google/cloud/dialogflow/v2/contexts/client.rb, line 764 def initialize parent_rpcs = nil list_contexts_config = parent_rpcs.list_contexts if parent_rpcs.respond_to? :list_contexts @list_contexts = ::Gapic::Config::Method.new list_contexts_config get_context_config = parent_rpcs.get_context if parent_rpcs.respond_to? :get_context @get_context = ::Gapic::Config::Method.new get_context_config create_context_config = parent_rpcs.create_context if parent_rpcs.respond_to? :create_context @create_context = ::Gapic::Config::Method.new create_context_config update_context_config = parent_rpcs.update_context if parent_rpcs.respond_to? :update_context @update_context = ::Gapic::Config::Method.new update_context_config delete_context_config = parent_rpcs.delete_context if parent_rpcs.respond_to? :delete_context @delete_context = ::Gapic::Config::Method.new delete_context_config delete_all_contexts_config = parent_rpcs.delete_all_contexts if parent_rpcs.respond_to? :delete_all_contexts @delete_all_contexts = ::Gapic::Config::Method.new delete_all_contexts_config yield self if block_given? end