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)


4129
4130
4131
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4129

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)


4034
4035
4036
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4034

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)


4029
4030
4031
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4029

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)


4109
4110
4111
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4109

def create_adaptive_mt_dataset
  @create_adaptive_mt_dataset
end

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

RPC-specific configuration for create_dataset

Returns:

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


4089
4090
4091
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4089

def create_dataset
  @create_dataset
end

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

RPC-specific configuration for create_glossary

Returns:

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


4039
4040
4041
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4039

def create_glossary
  @create_glossary
end

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

RPC-specific configuration for create_glossary_entry

Returns:

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


4074
4075
4076
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4074

def create_glossary_entry
  @create_glossary_entry
end

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

RPC-specific configuration for create_model

Returns:

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


4174
4175
4176
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4174

def create_model
  @create_model
end

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

RPC-specific configuration for delete_adaptive_mt_dataset

Returns:

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


4114
4115
4116
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4114

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)


4139
4140
4141
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4139

def delete_adaptive_mt_file
  @delete_adaptive_mt_file
end

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

RPC-specific configuration for delete_dataset

Returns:

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


4104
4105
4106
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4104

def delete_dataset
  @delete_dataset
end

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

RPC-specific configuration for delete_glossary

Returns:

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


4059
4060
4061
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4059

def delete_glossary
  @delete_glossary
end

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

RPC-specific configuration for delete_glossary_entry

Returns:

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


4084
4085
4086
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4084

def delete_glossary_entry
  @delete_glossary_entry
end

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

RPC-specific configuration for delete_model

Returns:

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


4189
4190
4191
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4189

def delete_model
  @delete_model
end

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

RPC-specific configuration for detect_language

Returns:

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


4014
4015
4016
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4014

def detect_language
  @detect_language
end

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

RPC-specific configuration for export_data

Returns:

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


4164
4165
4166
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4164

def export_data
  @export_data
end

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

RPC-specific configuration for get_adaptive_mt_dataset

Returns:

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


4119
4120
4121
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4119

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)


4134
4135
4136
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4134

def get_adaptive_mt_file
  @get_adaptive_mt_file
end

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

RPC-specific configuration for get_dataset

Returns:

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


4094
4095
4096
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4094

def get_dataset
  @get_dataset
end

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

RPC-specific configuration for get_glossary

Returns:

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


4054
4055
4056
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4054

def get_glossary
  @get_glossary
end

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

RPC-specific configuration for get_glossary_entry

Returns:

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


4064
4065
4066
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4064

def get_glossary_entry
  @get_glossary_entry
end

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

RPC-specific configuration for get_model

Returns:

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


4184
4185
4186
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4184

def get_model
  @get_model
end

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

RPC-specific configuration for get_supported_languages

Returns:

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


4019
4020
4021
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4019

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)


4144
4145
4146
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4144

def import_adaptive_mt_file
  @import_adaptive_mt_file
end

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

RPC-specific configuration for import_data

Returns:

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


4159
4160
4161
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4159

def import_data
  @import_data
end

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

RPC-specific configuration for list_adaptive_mt_datasets

Returns:

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


4124
4125
4126
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4124

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)


4149
4150
4151
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4149

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)


4154
4155
4156
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4154

def list_adaptive_mt_sentences
  @list_adaptive_mt_sentences
end

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

RPC-specific configuration for list_datasets

Returns:

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


4099
4100
4101
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4099

def list_datasets
  @list_datasets
end

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

RPC-specific configuration for list_examples

Returns:

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


4169
4170
4171
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4169

def list_examples
  @list_examples
end

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

RPC-specific configuration for list_glossaries

Returns:

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


4049
4050
4051
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4049

def list_glossaries
  @list_glossaries
end

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

RPC-specific configuration for list_glossary_entries

Returns:

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


4069
4070
4071
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4069

def list_glossary_entries
  @list_glossary_entries
end

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

RPC-specific configuration for list_models

Returns:

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


4179
4180
4181
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4179

def list_models
  @list_models
end

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

RPC-specific configuration for romanize_text

Returns:

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


4009
4010
4011
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4009

def romanize_text
  @romanize_text
end

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

RPC-specific configuration for translate_document

Returns:

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


4024
4025
4026
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4024

def translate_document
  @translate_document
end

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

RPC-specific configuration for translate_text

Returns:

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


4004
4005
4006
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4004

def translate_text
  @translate_text
end

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

RPC-specific configuration for update_glossary

Returns:

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


4044
4045
4046
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4044

def update_glossary
  @update_glossary
end

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

RPC-specific configuration for update_glossary_entry

Returns:

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


4079
4080
4081
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4079

def update_glossary_entry
  @update_glossary_entry
end