Class: Google::Ads::GoogleAds::V23::Services::BenchmarksService::Client::Configuration::Rpcs

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

Overview

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



869
870
871
872
873
874
875
876
877
878
879
880
881
882
# File 'lib/google/ads/google_ads/v23/services/benchmarks_service/client.rb', line 869

def initialize parent_rpcs = nil
  list_benchmarks_available_dates_config = parent_rpcs.list_benchmarks_available_dates if parent_rpcs.respond_to? :list_benchmarks_available_dates
  @list_benchmarks_available_dates = ::Gapic::Config::Method.new list_benchmarks_available_dates_config
  list_benchmarks_locations_config = parent_rpcs.list_benchmarks_locations if parent_rpcs.respond_to? :list_benchmarks_locations
  @list_benchmarks_locations = ::Gapic::Config::Method.new list_benchmarks_locations_config
  list_benchmarks_products_config = parent_rpcs.list_benchmarks_products if parent_rpcs.respond_to? :list_benchmarks_products
  @list_benchmarks_products = ::Gapic::Config::Method.new list_benchmarks_products_config
  list_benchmarks_sources_config = parent_rpcs.list_benchmarks_sources if parent_rpcs.respond_to? :list_benchmarks_sources
  @list_benchmarks_sources = ::Gapic::Config::Method.new list_benchmarks_sources_config
  generate_benchmarks_metrics_config = parent_rpcs.generate_benchmarks_metrics if parent_rpcs.respond_to? :generate_benchmarks_metrics
  @generate_benchmarks_metrics = ::Gapic::Config::Method.new generate_benchmarks_metrics_config

  yield self if block_given?
end

Instance Attribute Details

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

RPC-specific configuration for ‘generate_benchmarks_metrics`

Returns:

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


866
867
868
# File 'lib/google/ads/google_ads/v23/services/benchmarks_service/client.rb', line 866

def generate_benchmarks_metrics
  @generate_benchmarks_metrics
end

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

RPC-specific configuration for ‘list_benchmarks_available_dates`

Returns:

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


846
847
848
# File 'lib/google/ads/google_ads/v23/services/benchmarks_service/client.rb', line 846

def list_benchmarks_available_dates
  @list_benchmarks_available_dates
end

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

RPC-specific configuration for ‘list_benchmarks_locations`

Returns:

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


851
852
853
# File 'lib/google/ads/google_ads/v23/services/benchmarks_service/client.rb', line 851

def list_benchmarks_locations
  @list_benchmarks_locations
end

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

RPC-specific configuration for ‘list_benchmarks_products`

Returns:

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


856
857
858
# File 'lib/google/ads/google_ads/v23/services/benchmarks_service/client.rb', line 856

def list_benchmarks_products
  @list_benchmarks_products
end

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

RPC-specific configuration for ‘list_benchmarks_sources`

Returns:

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


861
862
863
# File 'lib/google/ads/google_ads/v23/services/benchmarks_service/client.rb', line 861

def list_benchmarks_sources
  @list_benchmarks_sources
end