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)


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

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)


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

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)


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

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)


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

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)


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

def create_dataset
  @create_dataset
end

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

RPC-specific configuration for create_glossary

Returns:

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


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

def create_glossary
  @create_glossary
end

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

RPC-specific configuration for create_glossary_entry

Returns:

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


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

def create_glossary_entry
  @create_glossary_entry
end

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

RPC-specific configuration for create_model

Returns:

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


4207
4208
4209
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4207

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)


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

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)


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

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)


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

def delete_dataset
  @delete_dataset
end

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

RPC-specific configuration for delete_glossary

Returns:

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


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

def delete_glossary
  @delete_glossary
end

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

RPC-specific configuration for delete_glossary_entry

Returns:

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


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

def delete_glossary_entry
  @delete_glossary_entry
end

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

RPC-specific configuration for delete_model

Returns:

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


4222
4223
4224
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4222

def delete_model
  @delete_model
end

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

RPC-specific configuration for detect_language

Returns:

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


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

def detect_language
  @detect_language
end

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

RPC-specific configuration for export_data

Returns:

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


4197
4198
4199
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4197

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)


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

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)


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

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)


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

def get_dataset
  @get_dataset
end

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

RPC-specific configuration for get_glossary

Returns:

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


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

def get_glossary
  @get_glossary
end

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

RPC-specific configuration for get_glossary_entry

Returns:

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


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

def get_glossary_entry
  @get_glossary_entry
end

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

RPC-specific configuration for get_model

Returns:

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


4217
4218
4219
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4217

def get_model
  @get_model
end

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

RPC-specific configuration for get_supported_languages

Returns:

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


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

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)


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

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)


4192
4193
4194
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4192

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)


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

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)


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

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)


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

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)


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

def list_datasets
  @list_datasets
end

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

RPC-specific configuration for list_examples

Returns:

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


4202
4203
4204
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4202

def list_examples
  @list_examples
end

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

RPC-specific configuration for list_glossaries

Returns:

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


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

def list_glossaries
  @list_glossaries
end

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

RPC-specific configuration for list_glossary_entries

Returns:

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


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

def list_glossary_entries
  @list_glossary_entries
end

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

RPC-specific configuration for list_models

Returns:

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


4212
4213
4214
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4212

def list_models
  @list_models
end

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

RPC-specific configuration for romanize_text

Returns:

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


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

def romanize_text
  @romanize_text
end

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

RPC-specific configuration for translate_document

Returns:

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


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

def translate_document
  @translate_document
end

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

RPC-specific configuration for translate_text

Returns:

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


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

def translate_text
  @translate_text
end

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

RPC-specific configuration for update_glossary

Returns:

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


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

def update_glossary
  @update_glossary
end

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

RPC-specific configuration for update_glossary_entry

Returns:

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


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

def update_glossary_entry
  @update_glossary_entry
end