Class: Google::Cloud::Translate::V3::TranslationService::Rest::Client::Configuration::Rpcs
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::TranslationService::Rest::Client::Configuration::Rpcs
- Defined in:
- lib/google/cloud/translate/v3/translation_service/rest/client.rb
Overview
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 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
-
#adaptive_mt_translate ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
adaptive_mt_translate
. -
#batch_translate_document ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
batch_translate_document
. -
#batch_translate_text ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
batch_translate_text
. -
#create_adaptive_mt_dataset ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
create_adaptive_mt_dataset
. -
#create_glossary ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
create_glossary
. -
#delete_adaptive_mt_dataset ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
delete_adaptive_mt_dataset
. -
#delete_adaptive_mt_file ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
delete_adaptive_mt_file
. -
#delete_glossary ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
delete_glossary
. -
#detect_language ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
detect_language
. -
#get_adaptive_mt_dataset ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
get_adaptive_mt_dataset
. -
#get_adaptive_mt_file ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
get_adaptive_mt_file
. -
#get_glossary ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
get_glossary
. -
#get_supported_languages ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
get_supported_languages
. -
#import_adaptive_mt_file ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
import_adaptive_mt_file
. -
#list_adaptive_mt_datasets ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
list_adaptive_mt_datasets
. -
#list_adaptive_mt_files ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
list_adaptive_mt_files
. -
#list_adaptive_mt_sentences ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
list_adaptive_mt_sentences
. -
#list_glossaries ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
list_glossaries
. -
#translate_document ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
translate_document
. -
#translate_text ⇒ ::Gapic::Config::Method
readonly
RPC-specific configuration for
translate_text
.
Instance Attribute Details
#adaptive_mt_translate ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for adaptive_mt_translate
2457 2458 2459 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2457 def adaptive_mt_translate @adaptive_mt_translate end |
#batch_translate_document ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for batch_translate_document
2412 2413 2414 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2412 def batch_translate_document @batch_translate_document end |
#batch_translate_text ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for batch_translate_text
2407 2408 2409 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2407 def batch_translate_text @batch_translate_text end |
#create_adaptive_mt_dataset ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for create_adaptive_mt_dataset
2437 2438 2439 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2437 def create_adaptive_mt_dataset @create_adaptive_mt_dataset end |
#create_glossary ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for create_glossary
2417 2418 2419 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2417 def create_glossary @create_glossary end |
#delete_adaptive_mt_dataset ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for delete_adaptive_mt_dataset
2442 2443 2444 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2442 def delete_adaptive_mt_dataset @delete_adaptive_mt_dataset end |
#delete_adaptive_mt_file ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for delete_adaptive_mt_file
2467 2468 2469 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2467 def delete_adaptive_mt_file @delete_adaptive_mt_file end |
#delete_glossary ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for delete_glossary
2432 2433 2434 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2432 def delete_glossary @delete_glossary end |
#detect_language ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for detect_language
2392 2393 2394 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2392 def detect_language @detect_language end |
#get_adaptive_mt_dataset ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for get_adaptive_mt_dataset
2447 2448 2449 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2447 def get_adaptive_mt_dataset @get_adaptive_mt_dataset end |
#get_adaptive_mt_file ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for get_adaptive_mt_file
2462 2463 2464 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2462 def get_adaptive_mt_file @get_adaptive_mt_file end |
#get_glossary ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for get_glossary
2427 2428 2429 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2427 def get_glossary @get_glossary end |
#get_supported_languages ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for get_supported_languages
2397 2398 2399 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2397 def get_supported_languages @get_supported_languages end |
#import_adaptive_mt_file ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for import_adaptive_mt_file
2472 2473 2474 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2472 def import_adaptive_mt_file @import_adaptive_mt_file end |
#list_adaptive_mt_datasets ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for list_adaptive_mt_datasets
2452 2453 2454 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2452 def list_adaptive_mt_datasets @list_adaptive_mt_datasets end |
#list_adaptive_mt_files ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for list_adaptive_mt_files
2477 2478 2479 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2477 def list_adaptive_mt_files @list_adaptive_mt_files end |
#list_adaptive_mt_sentences ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for list_adaptive_mt_sentences
2482 2483 2484 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2482 def list_adaptive_mt_sentences @list_adaptive_mt_sentences end |
#list_glossaries ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for list_glossaries
2422 2423 2424 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2422 def list_glossaries @list_glossaries end |
#translate_document ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for translate_document
2402 2403 2404 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2402 def translate_document @translate_document end |
#translate_text ⇒ ::Gapic::Config::Method (readonly)
RPC-specific configuration for translate_text
2387 2388 2389 |
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2387 def translate_text @translate_text end |