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.
    • :jitter (type: Numeric) - The jitter in seconds. Default: 1.0.
    • :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)


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

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)


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

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)


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

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)


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

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)


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

def create_dataset
  @create_dataset
end

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

RPC-specific configuration for create_glossary

Returns:

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


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

def create_glossary
  @create_glossary
end

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

RPC-specific configuration for create_glossary_entry

Returns:

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


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

def create_glossary_entry
  @create_glossary_entry
end

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

RPC-specific configuration for create_model

Returns:

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


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

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)


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

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)


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

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)


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

def delete_dataset
  @delete_dataset
end

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

RPC-specific configuration for delete_glossary

Returns:

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


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

def delete_glossary
  @delete_glossary
end

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

RPC-specific configuration for delete_glossary_entry

Returns:

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


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

def delete_glossary_entry
  @delete_glossary_entry
end

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

RPC-specific configuration for delete_model

Returns:

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


4226
4227
4228
# File 'lib/google/cloud/translate/v3/translation_service/rest/client.rb', line 4226

def delete_model
  @delete_model
end

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

RPC-specific configuration for detect_language

Returns:

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


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

def detect_language
  @detect_language
end

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

RPC-specific configuration for export_data

Returns:

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


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

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)


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

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)


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

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)


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

def get_dataset
  @get_dataset
end

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

RPC-specific configuration for get_glossary

Returns:

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


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

def get_glossary
  @get_glossary
end

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

RPC-specific configuration for get_glossary_entry

Returns:

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


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

def get_glossary_entry
  @get_glossary_entry
end

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

RPC-specific configuration for get_model

Returns:

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


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

def get_model
  @get_model
end

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

RPC-specific configuration for get_supported_languages

Returns:

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


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

def list_datasets
  @list_datasets
end

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

RPC-specific configuration for list_examples

Returns:

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


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

def list_examples
  @list_examples
end

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

RPC-specific configuration for list_glossaries

Returns:

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


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

def list_glossaries
  @list_glossaries
end

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

RPC-specific configuration for list_glossary_entries

Returns:

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


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

def list_glossary_entries
  @list_glossary_entries
end

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

RPC-specific configuration for list_models

Returns:

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


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

def list_models
  @list_models
end

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

RPC-specific configuration for romanize_text

Returns:

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


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

def romanize_text
  @romanize_text
end

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

RPC-specific configuration for translate_document

Returns:

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


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

def translate_document
  @translate_document
end

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

RPC-specific configuration for translate_text

Returns:

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


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

def translate_text
  @translate_text
end

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

RPC-specific configuration for update_glossary

Returns:

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


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

def update_glossary
  @update_glossary
end

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

RPC-specific configuration for update_glossary_entry

Returns:

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


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

def update_glossary_entry
  @update_glossary_entry
end