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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/translate/v3/translation_service/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 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.

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)


2624
2625
2626
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2624

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)


2579
2580
2581
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2579

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)


2574
2575
2576
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2574

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)


2604
2605
2606
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2604

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)


2584
2585
2586
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2584

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)


2609
2610
2611
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2609

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)


2634
2635
2636
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2634

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)


2599
2600
2601
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2599

def delete_glossary
  @delete_glossary
end

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

RPC-specific configuration for detect_language

Returns:

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


2559
2560
2561
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2559

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)


2614
2615
2616
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2614

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)


2629
2630
2631
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2629

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)


2594
2595
2596
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2594

def get_glossary
  @get_glossary
end

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

RPC-specific configuration for get_supported_languages

Returns:

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


2564
2565
2566
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2564

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)


2639
2640
2641
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2639

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)


2619
2620
2621
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2619

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)


2644
2645
2646
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2644

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)


2649
2650
2651
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2649

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)


2589
2590
2591
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2589

def list_glossaries
  @list_glossaries
end

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

RPC-specific configuration for translate_document

Returns:

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


2569
2570
2571
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2569

def translate_document
  @translate_document
end

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

RPC-specific configuration for translate_text

Returns:

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


2554
2555
2556
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 2554

def translate_text
  @translate_text
end