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)


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

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)


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

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)


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

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)


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

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)


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

def create_dataset
  @create_dataset
end

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

RPC-specific configuration for create_glossary

Returns:

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


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

def create_glossary
  @create_glossary
end

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

RPC-specific configuration for create_glossary_entry

Returns:

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


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

def create_glossary_entry
  @create_glossary_entry
end

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

RPC-specific configuration for create_model

Returns:

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


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

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)


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

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)


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

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)


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

def delete_dataset
  @delete_dataset
end

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

RPC-specific configuration for delete_glossary

Returns:

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


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

def delete_glossary
  @delete_glossary
end

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

RPC-specific configuration for delete_glossary_entry

Returns:

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


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

def delete_glossary_entry
  @delete_glossary_entry
end

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

RPC-specific configuration for delete_model

Returns:

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


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

def delete_model
  @delete_model
end

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

RPC-specific configuration for detect_language

Returns:

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


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

def detect_language
  @detect_language
end

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

RPC-specific configuration for export_data

Returns:

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


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

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)


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

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)


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

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)


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

def get_dataset
  @get_dataset
end

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

RPC-specific configuration for get_glossary

Returns:

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


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

def get_glossary
  @get_glossary
end

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

RPC-specific configuration for get_glossary_entry

Returns:

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


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

def get_glossary_entry
  @get_glossary_entry
end

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

RPC-specific configuration for get_model

Returns:

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


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

def get_model
  @get_model
end

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

RPC-specific configuration for get_supported_languages

Returns:

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


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

def list_datasets
  @list_datasets
end

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

RPC-specific configuration for list_examples

Returns:

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


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

def list_examples
  @list_examples
end

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

RPC-specific configuration for list_glossaries

Returns:

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


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

def list_glossaries
  @list_glossaries
end

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

RPC-specific configuration for list_glossary_entries

Returns:

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


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

def list_glossary_entries
  @list_glossary_entries
end

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

RPC-specific configuration for list_models

Returns:

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


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

def list_models
  @list_models
end

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

RPC-specific configuration for romanize_text

Returns:

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


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

def romanize_text
  @romanize_text
end

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

RPC-specific configuration for translate_document

Returns:

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


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

def translate_document
  @translate_document
end

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

RPC-specific configuration for translate_text

Returns:

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


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

def translate_text
  @translate_text
end

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

RPC-specific configuration for update_glossary

Returns:

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


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

def update_glossary
  @update_glossary
end

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

RPC-specific configuration for update_glossary_entry

Returns:

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


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

def update_glossary_entry
  @update_glossary_entry
end