Class: Google::Ads::GoogleAds::V15::Services::GoogleAdsService::Client::Configuration::Rpcs

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/v15/services/google_ads_service/client.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent_rpcs = nil) {|_self| ... } ⇒ Rpcs

Returns a new instance of Rpcs.

Yields:

  • (_self)

Yield Parameters:



754
755
756
757
758
759
760
761
762
763
# File 'lib/google/ads/google_ads/v15/services/google_ads_service/client.rb', line 754

def initialize parent_rpcs = nil
  search_config = parent_rpcs.search if parent_rpcs.respond_to? :search
  @search = ::Gapic::Config::Method.new search_config
  search_stream_config = parent_rpcs.search_stream if parent_rpcs.respond_to? :search_stream
  @search_stream = ::Gapic::Config::Method.new search_stream_config
  mutate_config = parent_rpcs.mutate if parent_rpcs.respond_to? :mutate
  @mutate = ::Gapic::Config::Method.new mutate_config

  yield self if block_given?
end

Instance Attribute Details

#mutate::Gapic::Config::Method (readonly)

RPC-specific configuration for ‘mutate`

Returns:

  • (::Gapic::Config::Method)


751
752
753
# File 'lib/google/ads/google_ads/v15/services/google_ads_service/client.rb', line 751

def mutate
  @mutate
end

#search::Gapic::Config::Method (readonly)

RPC-specific configuration for ‘search`

Returns:

  • (::Gapic::Config::Method)


741
742
743
# File 'lib/google/ads/google_ads/v15/services/google_ads_service/client.rb', line 741

def search
  @search
end

#search_stream::Gapic::Config::Method (readonly)

RPC-specific configuration for ‘search_stream`

Returns:

  • (::Gapic::Config::Method)


746
747
748
# File 'lib/google/ads/google_ads/v15/services/google_ads_service/client.rb', line 746

def search_stream
  @search_stream
end