class Google::Cloud::Datastore::V1::Datastore::Client::Configuration::Rpcs
Configuration
RPC class for the Datastore
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.
Attributes
RPC-specific configuration for `allocate_ids` @return [::Gapic::Config::Method]
RPC-specific configuration for `begin_transaction` @return [::Gapic::Config::Method]
RPC-specific configuration for `commit` @return [::Gapic::Config::Method]
RPC-specific configuration for `lookup` @return [::Gapic::Config::Method]
RPC-specific configuration for `reserve_ids` @return [::Gapic::Config::Method]
RPC-specific configuration for `rollback` @return [::Gapic::Config::Method]
RPC-specific configuration for `run_query` @return [::Gapic::Config::Method]
Public Class Methods
@private
# File lib/google/cloud/datastore/v1/datastore/client.rb, line 872 def initialize parent_rpcs = nil lookup_config = parent_rpcs.lookup if parent_rpcs.respond_to? :lookup @lookup = ::Gapic::Config::Method.new lookup_config run_query_config = parent_rpcs.run_query if parent_rpcs.respond_to? :run_query @run_query = ::Gapic::Config::Method.new run_query_config begin_transaction_config = parent_rpcs.begin_transaction if parent_rpcs.respond_to? :begin_transaction @begin_transaction = ::Gapic::Config::Method.new begin_transaction_config commit_config = parent_rpcs.commit if parent_rpcs.respond_to? :commit @commit = ::Gapic::Config::Method.new commit_config rollback_config = parent_rpcs.rollback if parent_rpcs.respond_to? :rollback @rollback = ::Gapic::Config::Method.new rollback_config allocate_ids_config = parent_rpcs.allocate_ids if parent_rpcs.respond_to? :allocate_ids @allocate_ids = ::Gapic::Config::Method.new allocate_ids_config reserve_ids_config = parent_rpcs.reserve_ids if parent_rpcs.respond_to? :reserve_ids @reserve_ids = ::Gapic::Config::Method.new reserve_ids_config yield self if block_given? end