class Google::Cloud::Dialogflow::V2::Conversations::Client::Configuration::Rpcs

Configuration RPC class for the Conversations 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

complete_conversation[R]

RPC-specific configuration for `complete_conversation` @return [::Gapic::Config::Method]

create_conversation[R]

RPC-specific configuration for `create_conversation` @return [::Gapic::Config::Method]

get_conversation[R]

RPC-specific configuration for `get_conversation` @return [::Gapic::Config::Method]

list_conversations[R]

RPC-specific configuration for `list_conversations` @return [::Gapic::Config::Method]

list_messages[R]

RPC-specific configuration for `list_messages` @return [::Gapic::Config::Method]

Public Class Methods

new(parent_rpcs = nil) { |self| ... } click to toggle source

@private

# File lib/google/cloud/dialogflow/v2/conversations/client.rb, line 736
def initialize parent_rpcs = nil
  create_conversation_config = parent_rpcs.create_conversation if parent_rpcs.respond_to? :create_conversation
  @create_conversation = ::Gapic::Config::Method.new create_conversation_config
  list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations
  @list_conversations = ::Gapic::Config::Method.new list_conversations_config
  get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation
  @get_conversation = ::Gapic::Config::Method.new get_conversation_config
  complete_conversation_config = parent_rpcs.complete_conversation if parent_rpcs.respond_to? :complete_conversation
  @complete_conversation = ::Gapic::Config::Method.new complete_conversation_config
  list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
  @list_messages = ::Gapic::Config::Method.new list_messages_config

  yield self if block_given?
end