Class: Google::Ads::GoogleAds::V23::Services::IncentiveService::Client::Configuration::Rpcs
- Inherits:
-
Object
- Object
- Google::Ads::GoogleAds::V23::Services::IncentiveService::Client::Configuration::Rpcs
- Defined in:
- lib/google/ads/google_ads/v23/services/incentive_service/client.rb
Overview
Configuration RPC class for the IncentiveService 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
-
#apply_incentive ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘apply_incentive`.
-
#fetch_incentive ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘fetch_incentive`.
Instance Method Summary collapse
-
#initialize(parent_rpcs = nil) {|_self| ... } ⇒ Rpcs
constructor
A new instance of Rpcs.
Constructor Details
#initialize(parent_rpcs = nil) {|_self| ... } ⇒ Rpcs
Returns a new instance of Rpcs.
570 571 572 573 574 575 576 577 |
# File 'lib/google/ads/google_ads/v23/services/incentive_service/client.rb', line 570 def initialize parent_rpcs = nil fetch_incentive_config = parent_rpcs.fetch_incentive if parent_rpcs.respond_to? :fetch_incentive @fetch_incentive = ::Gapic::Config::Method.new fetch_incentive_config apply_incentive_config = parent_rpcs.apply_incentive if parent_rpcs.respond_to? :apply_incentive @apply_incentive = ::Gapic::Config::Method.new apply_incentive_config yield self if block_given? end |
Instance Attribute Details
#apply_incentive ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘apply_incentive`
567 568 569 |
# File 'lib/google/ads/google_ads/v23/services/incentive_service/client.rb', line 567 def apply_incentive @apply_incentive end |
#fetch_incentive ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘fetch_incentive`
562 563 564 |
# File 'lib/google/ads/google_ads/v23/services/incentive_service/client.rb', line 562 def fetch_incentive @fetch_incentive end |