class Google::Cloud::Translate::V3::TranslationService::Client::Configuration::Rpcs
Configuration
RPC class for the TranslationService
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 `batch_translate_document` @return [::Gapic::Config::Method]
RPC-specific configuration for `batch_translate_text` @return [::Gapic::Config::Method]
RPC-specific configuration for `create_glossary` @return [::Gapic::Config::Method]
RPC-specific configuration for `delete_glossary` @return [::Gapic::Config::Method]
RPC-specific configuration for `detect_language` @return [::Gapic::Config::Method]
RPC-specific configuration for `get_glossary` @return [::Gapic::Config::Method]
RPC-specific configuration for `get_supported_languages` @return [::Gapic::Config::Method]
RPC-specific configuration for `list_glossaries` @return [::Gapic::Config::Method]
RPC-specific configuration for `translate_document` @return [::Gapic::Config::Method]
RPC-specific configuration for `translate_text` @return [::Gapic::Config::Method]
Public Class Methods
@private
# File lib/google/cloud/translate/v3/translation_service/client.rb, line 1393 def initialize parent_rpcs = nil translate_text_config = parent_rpcs.translate_text if parent_rpcs.respond_to? :translate_text @translate_text = ::Gapic::Config::Method.new translate_text_config detect_language_config = parent_rpcs.detect_language if parent_rpcs.respond_to? :detect_language @detect_language = ::Gapic::Config::Method.new detect_language_config get_supported_languages_config = parent_rpcs.get_supported_languages if parent_rpcs.respond_to? :get_supported_languages @get_supported_languages = ::Gapic::Config::Method.new get_supported_languages_config translate_document_config = parent_rpcs.translate_document if parent_rpcs.respond_to? :translate_document @translate_document = ::Gapic::Config::Method.new translate_document_config batch_translate_text_config = parent_rpcs.batch_translate_text if parent_rpcs.respond_to? :batch_translate_text @batch_translate_text = ::Gapic::Config::Method.new batch_translate_text_config batch_translate_document_config = parent_rpcs.batch_translate_document if parent_rpcs.respond_to? :batch_translate_document @batch_translate_document = ::Gapic::Config::Method.new batch_translate_document_config create_glossary_config = parent_rpcs.create_glossary if parent_rpcs.respond_to? :create_glossary @create_glossary = ::Gapic::Config::Method.new create_glossary_config list_glossaries_config = parent_rpcs.list_glossaries if parent_rpcs.respond_to? :list_glossaries @list_glossaries = ::Gapic::Config::Method.new list_glossaries_config get_glossary_config = parent_rpcs.get_glossary if parent_rpcs.respond_to? :get_glossary @get_glossary = ::Gapic::Config::Method.new get_glossary_config delete_glossary_config = parent_rpcs.delete_glossary if parent_rpcs.respond_to? :delete_glossary @delete_glossary = ::Gapic::Config::Method.new delete_glossary_config yield self if block_given? end