Class: Google::Cloud::Translate::V3::TranslationService::Rest::Client::Configuration::Rpcs

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#adaptive_mt_translate::Gapic::Config::Method (readonly)

RPC-specific configuration for adaptive_mt_translate

Returns:

  • (::Gapic::Config::Method)


2434
2435
2436
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2434

def adaptive_mt_translate
  @adaptive_mt_translate
end

#batch_translate_document::Gapic::Config::Method (readonly)

RPC-specific configuration for batch_translate_document

Returns:

  • (::Gapic::Config::Method)


2389
2390
2391
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2389

def batch_translate_document
  @batch_translate_document
end

#batch_translate_text::Gapic::Config::Method (readonly)

RPC-specific configuration for batch_translate_text

Returns:

  • (::Gapic::Config::Method)


2384
2385
2386
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2384

def batch_translate_text
  @batch_translate_text
end

#create_adaptive_mt_dataset::Gapic::Config::Method (readonly)

RPC-specific configuration for create_adaptive_mt_dataset

Returns:

  • (::Gapic::Config::Method)


2414
2415
2416
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2414

def create_adaptive_mt_dataset
  @create_adaptive_mt_dataset
end

#create_glossary::Gapic::Config::Method (readonly)

RPC-specific configuration for create_glossary

Returns:

  • (::Gapic::Config::Method)


2394
2395
2396
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2394

def create_glossary
  @create_glossary
end

#delete_adaptive_mt_dataset::Gapic::Config::Method (readonly)

RPC-specific configuration for delete_adaptive_mt_dataset

Returns:

  • (::Gapic::Config::Method)


2419
2420
2421
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2419

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

Returns:

  • (::Gapic::Config::Method)


2444
2445
2446
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2444

def delete_adaptive_mt_file
  @delete_adaptive_mt_file
end

#delete_glossary::Gapic::Config::Method (readonly)

RPC-specific configuration for delete_glossary

Returns:

  • (::Gapic::Config::Method)


2409
2410
2411
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2409

def delete_glossary
  @delete_glossary
end

#detect_language::Gapic::Config::Method (readonly)

RPC-specific configuration for detect_language

Returns:

  • (::Gapic::Config::Method)


2369
2370
2371
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2369

def detect_language
  @detect_language
end

#get_adaptive_mt_dataset::Gapic::Config::Method (readonly)

RPC-specific configuration for get_adaptive_mt_dataset

Returns:

  • (::Gapic::Config::Method)


2424
2425
2426
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2424

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

Returns:

  • (::Gapic::Config::Method)


2439
2440
2441
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2439

def get_adaptive_mt_file
  @get_adaptive_mt_file
end

#get_glossary::Gapic::Config::Method (readonly)

RPC-specific configuration for get_glossary

Returns:

  • (::Gapic::Config::Method)


2404
2405
2406
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2404

def get_glossary
  @get_glossary
end

#get_supported_languages::Gapic::Config::Method (readonly)

RPC-specific configuration for get_supported_languages

Returns:

  • (::Gapic::Config::Method)


2374
2375
2376
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2374

def get_supported_languages
  @get_supported_languages
end

#import_adaptive_mt_file::Gapic::Config::Method (readonly)

RPC-specific configuration for import_adaptive_mt_file

Returns:

  • (::Gapic::Config::Method)


2449
2450
2451
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2449

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

Returns:

  • (::Gapic::Config::Method)


2429
2430
2431
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2429

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

Returns:

  • (::Gapic::Config::Method)


2454
2455
2456
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2454

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

Returns:

  • (::Gapic::Config::Method)


2459
2460
2461
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2459

def list_adaptive_mt_sentences
  @list_adaptive_mt_sentences
end

#list_glossaries::Gapic::Config::Method (readonly)

RPC-specific configuration for list_glossaries

Returns:

  • (::Gapic::Config::Method)


2399
2400
2401
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2399

def list_glossaries
  @list_glossaries
end

#translate_document::Gapic::Config::Method (readonly)

RPC-specific configuration for translate_document

Returns:

  • (::Gapic::Config::Method)


2379
2380
2381
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2379

def translate_document
  @translate_document
end

#translate_text::Gapic::Config::Method (readonly)

RPC-specific configuration for translate_text

Returns:

  • (::Gapic::Config::Method)


2364
2365
2366
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 2364

def translate_text
  @translate_text
end