Class: Google::Ads::GoogleAds::V17::Services::ExperimentService::Client::Configuration::Rpcs
- Inherits:
-
Object
- Object
- Google::Ads::GoogleAds::V17::Services::ExperimentService::Client::Configuration::Rpcs
- Defined in:
- lib/google/ads/google_ads/v17/services/experiment_service/client.rb
Overview
Configuration RPC class for the ExperimentService 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
-
#end_experiment ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘end_experiment`.
-
#graduate_experiment ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘graduate_experiment`.
-
#list_experiment_async_errors ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘list_experiment_async_errors`.
-
#mutate_experiments ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘mutate_experiments`.
-
#promote_experiment ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘promote_experiment`.
-
#schedule_experiment ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for ‘schedule_experiment`.
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.
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/google/ads/google_ads/v17/services/experiment_service/client.rb', line 1029 def initialize parent_rpcs = nil mutate_experiments_config = parent_rpcs.mutate_experiments if parent_rpcs.respond_to? :mutate_experiments @mutate_experiments = ::Gapic::Config::Method.new mutate_experiments_config end_experiment_config = parent_rpcs.end_experiment if parent_rpcs.respond_to? :end_experiment @end_experiment = ::Gapic::Config::Method.new end_experiment_config list_experiment_async_errors_config = parent_rpcs.list_experiment_async_errors if parent_rpcs.respond_to? :list_experiment_async_errors @list_experiment_async_errors = ::Gapic::Config::Method.new list_experiment_async_errors_config graduate_experiment_config = parent_rpcs.graduate_experiment if parent_rpcs.respond_to? :graduate_experiment @graduate_experiment = ::Gapic::Config::Method.new graduate_experiment_config schedule_experiment_config = parent_rpcs.schedule_experiment if parent_rpcs.respond_to? :schedule_experiment @schedule_experiment = ::Gapic::Config::Method.new schedule_experiment_config promote_experiment_config = parent_rpcs.promote_experiment if parent_rpcs.respond_to? :promote_experiment @promote_experiment = ::Gapic::Config::Method.new promote_experiment_config yield self if block_given? end |
Instance Attribute Details
#end_experiment ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘end_experiment`
1006 1007 1008 |
# File 'lib/google/ads/google_ads/v17/services/experiment_service/client.rb', line 1006 def end_experiment @end_experiment end |
#graduate_experiment ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘graduate_experiment`
1016 1017 1018 |
# File 'lib/google/ads/google_ads/v17/services/experiment_service/client.rb', line 1016 def graduate_experiment @graduate_experiment end |
#list_experiment_async_errors ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘list_experiment_async_errors`
1011 1012 1013 |
# File 'lib/google/ads/google_ads/v17/services/experiment_service/client.rb', line 1011 def list_experiment_async_errors @list_experiment_async_errors end |
#mutate_experiments ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘mutate_experiments`
1001 1002 1003 |
# File 'lib/google/ads/google_ads/v17/services/experiment_service/client.rb', line 1001 def mutate_experiments @mutate_experiments end |
#promote_experiment ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘promote_experiment`
1026 1027 1028 |
# File 'lib/google/ads/google_ads/v17/services/experiment_service/client.rb', line 1026 def promote_experiment @promote_experiment end |
#schedule_experiment ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for ‘schedule_experiment`
1021 1022 1023 |
# File 'lib/google/ads/google_ads/v17/services/experiment_service/client.rb', line 1021 def schedule_experiment @schedule_experiment end |