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)


4447
4448
4449
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4447

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)


4352
4353
4354
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4352

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)


4347
4348
4349
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4347

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)


4427
4428
4429
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4427

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)


4407
4408
4409
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4407

def create_dataset
  @create_dataset
end

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

RPC-specific configuration for create_glossary

Returns:

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


4357
4358
4359
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4357

def create_glossary
  @create_glossary
end

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

RPC-specific configuration for create_glossary_entry

Returns:

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


4392
4393
4394
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4392

def create_glossary_entry
  @create_glossary_entry
end

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

RPC-specific configuration for create_model

Returns:

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


4492
4493
4494
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4492

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)


4432
4433
4434
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4432

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)


4457
4458
4459
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4457

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)


4422
4423
4424
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4422

def delete_dataset
  @delete_dataset
end

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

RPC-specific configuration for delete_glossary

Returns:

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


4377
4378
4379
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4377

def delete_glossary
  @delete_glossary
end

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

RPC-specific configuration for delete_glossary_entry

Returns:

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


4402
4403
4404
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4402

def delete_glossary_entry
  @delete_glossary_entry
end

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

RPC-specific configuration for delete_model

Returns:

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


4507
4508
4509
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4507

def delete_model
  @delete_model
end

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

RPC-specific configuration for detect_language

Returns:

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


4332
4333
4334
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4332

def detect_language
  @detect_language
end

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

RPC-specific configuration for export_data

Returns:

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


4482
4483
4484
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4482

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)


4437
4438
4439
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4437

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)


4452
4453
4454
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4452

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)


4412
4413
4414
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4412

def get_dataset
  @get_dataset
end

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

RPC-specific configuration for get_glossary

Returns:

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


4372
4373
4374
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4372

def get_glossary
  @get_glossary
end

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

RPC-specific configuration for get_glossary_entry

Returns:

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


4382
4383
4384
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4382

def get_glossary_entry
  @get_glossary_entry
end

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

RPC-specific configuration for get_model

Returns:

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


4502
4503
4504
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4502

def get_model
  @get_model
end

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

RPC-specific configuration for get_supported_languages

Returns:

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


4337
4338
4339
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4337

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)


4462
4463
4464
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4462

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)


4477
4478
4479
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4477

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)


4442
4443
4444
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4442

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)


4467
4468
4469
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4467

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)


4472
4473
4474
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4472

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)


4417
4418
4419
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4417

def list_datasets
  @list_datasets
end

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

RPC-specific configuration for list_examples

Returns:

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


4487
4488
4489
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4487

def list_examples
  @list_examples
end

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

RPC-specific configuration for list_glossaries

Returns:

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


4367
4368
4369
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4367

def list_glossaries
  @list_glossaries
end

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

RPC-specific configuration for list_glossary_entries

Returns:

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


4387
4388
4389
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4387

def list_glossary_entries
  @list_glossary_entries
end

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

RPC-specific configuration for list_models

Returns:

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


4497
4498
4499
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4497

def list_models
  @list_models
end

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

RPC-specific configuration for romanize_text

Returns:

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


4327
4328
4329
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4327

def romanize_text
  @romanize_text
end

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

RPC-specific configuration for translate_document

Returns:

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


4342
4343
4344
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4342

def translate_document
  @translate_document
end

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

RPC-specific configuration for translate_text

Returns:

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


4322
4323
4324
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4322

def translate_text
  @translate_text
end

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

RPC-specific configuration for update_glossary

Returns:

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


4362
4363
4364
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4362

def update_glossary
  @update_glossary
end

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

RPC-specific configuration for update_glossary_entry

Returns:

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


4397
4398
4399
# File 'lib/google/cloud/translate/v3/translation_service/client.rb', line 4397

def update_glossary_entry
  @update_glossary_entry
end