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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/v24/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.
    • :jitter (type: Numeric) - The jitter in seconds. Default: 1.0.
    • :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:



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

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)


868
869
870
# File 'lib/google/ads/google_ads/v24/services/benchmarks_service/client.rb', line 868

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)


848
849
850
# File 'lib/google/ads/google_ads/v24/services/benchmarks_service/client.rb', line 848

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)


853
854
855
# File 'lib/google/ads/google_ads/v24/services/benchmarks_service/client.rb', line 853

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)


858
859
860
# File 'lib/google/ads/google_ads/v24/services/benchmarks_service/client.rb', line 858

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)


863
864
865
# File 'lib/google/ads/google_ads/v24/services/benchmarks_service/client.rb', line 863

def list_benchmarks_sources
  @list_benchmarks_sources
end