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

Configuration RPC class for the Documents 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_document[R]

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

delete_document[R]

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

get_document[R]

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

list_documents[R]

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

reload_document[R]

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

update_document[R]

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

Public Class Methods

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

@private

# File lib/google/cloud/dialogflow/v2/documents/client.rb, line 806
def initialize parent_rpcs = nil
  list_documents_config = parent_rpcs.list_documents if parent_rpcs.respond_to? :list_documents
  @list_documents = ::Gapic::Config::Method.new list_documents_config
  get_document_config = parent_rpcs.get_document if parent_rpcs.respond_to? :get_document
  @get_document = ::Gapic::Config::Method.new get_document_config
  create_document_config = parent_rpcs.create_document if parent_rpcs.respond_to? :create_document
  @create_document = ::Gapic::Config::Method.new create_document_config
  delete_document_config = parent_rpcs.delete_document if parent_rpcs.respond_to? :delete_document
  @delete_document = ::Gapic::Config::Method.new delete_document_config
  update_document_config = parent_rpcs.update_document if parent_rpcs.respond_to? :update_document
  @update_document = ::Gapic::Config::Method.new update_document_config
  reload_document_config = parent_rpcs.reload_document if parent_rpcs.respond_to? :reload_document
  @reload_document = ::Gapic::Config::Method.new reload_document_config

  yield self if block_given?
end