class Google::Cloud::Language::V1beta2::LanguageService::Client::Configuration::Rpcs
Configuration
RPC class for the LanguageService
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
analyze_entities[R]
RPC-specific configuration for `analyze_entities` @return [::Gapic::Config::Method]
analyze_entity_sentiment[R]
RPC-specific configuration for `analyze_entity_sentiment` @return [::Gapic::Config::Method]
analyze_sentiment[R]
RPC-specific configuration for `analyze_sentiment` @return [::Gapic::Config::Method]
analyze_syntax[R]
RPC-specific configuration for `analyze_syntax` @return [::Gapic::Config::Method]
annotate_text[R]
RPC-specific configuration for `annotate_text` @return [::Gapic::Config::Method]
classify_text[R]
RPC-specific configuration for `classify_text` @return [::Gapic::Config::Method]
Public Class Methods
new(parent_rpcs = nil) { |self| ... }
click to toggle source
@private
# File lib/google/cloud/language/v1beta2/language_service/client.rb, line 734 def initialize parent_rpcs = nil analyze_sentiment_config = parent_rpcs.analyze_sentiment if parent_rpcs.respond_to? :analyze_sentiment @analyze_sentiment = ::Gapic::Config::Method.new analyze_sentiment_config analyze_entities_config = parent_rpcs.analyze_entities if parent_rpcs.respond_to? :analyze_entities @analyze_entities = ::Gapic::Config::Method.new analyze_entities_config analyze_entity_sentiment_config = parent_rpcs.analyze_entity_sentiment if parent_rpcs.respond_to? :analyze_entity_sentiment @analyze_entity_sentiment = ::Gapic::Config::Method.new analyze_entity_sentiment_config analyze_syntax_config = parent_rpcs.analyze_syntax if parent_rpcs.respond_to? :analyze_syntax @analyze_syntax = ::Gapic::Config::Method.new analyze_syntax_config classify_text_config = parent_rpcs.classify_text if parent_rpcs.respond_to? :classify_text @classify_text = ::Gapic::Config::Method.new classify_text_config annotate_text_config = parent_rpcs.annotate_text if parent_rpcs.respond_to? :annotate_text @annotate_text = ::Gapic::Config::Method.new annotate_text_config yield self if block_given? end