Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::TranslationService::Rest::ServiceStub.
REST service stub for the TranslationService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#adaptive_mt_translate
def adaptive_mt_translate(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateResponse
Baseline implementation for the adaptive_mt_translate REST call
- request_pb (::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::AdaptiveMtTranslateResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::AdaptiveMtTranslateResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#batch_translate_document
def batch_translate_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the batch_translate_document REST call
- request_pb (::Google::Cloud::Translate::V3::BatchTranslateDocumentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#batch_translate_text
def batch_translate_text(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the batch_translate_text REST call
- request_pb (::Google::Cloud::Translate::V3::BatchTranslateTextRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_adaptive_mt_dataset
def create_adaptive_mt_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::AdaptiveMtDataset
Baseline implementation for the create_adaptive_mt_dataset REST call
- request_pb (::Google::Cloud::Translate::V3::CreateAdaptiveMtDatasetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::AdaptiveMtDataset)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::AdaptiveMtDataset) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_dataset
def create_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the create_dataset REST call
- request_pb (::Google::Cloud::Translate::V3::CreateDatasetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_glossary
def create_glossary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the create_glossary REST call
- request_pb (::Google::Cloud::Translate::V3::CreateGlossaryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_glossary_entry
def create_glossary_entry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::GlossaryEntry
Baseline implementation for the create_glossary_entry REST call
- request_pb (::Google::Cloud::Translate::V3::CreateGlossaryEntryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::GlossaryEntry)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::GlossaryEntry) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_model
def create_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the create_model REST call
- request_pb (::Google::Cloud::Translate::V3::CreateModelRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_adaptive_mt_dataset
def delete_adaptive_mt_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_adaptive_mt_dataset REST call
- request_pb (::Google::Cloud::Translate::V3::DeleteAdaptiveMtDatasetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_adaptive_mt_file
def delete_adaptive_mt_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_adaptive_mt_file REST call
- request_pb (::Google::Cloud::Translate::V3::DeleteAdaptiveMtFileRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_dataset
def delete_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the delete_dataset REST call
- request_pb (::Google::Cloud::Translate::V3::DeleteDatasetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_glossary
def delete_glossary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the delete_glossary REST call
- request_pb (::Google::Cloud::Translate::V3::DeleteGlossaryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_glossary_entry
def delete_glossary_entry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_glossary_entry REST call
- request_pb (::Google::Cloud::Translate::V3::DeleteGlossaryEntryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_model
def delete_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the delete_model REST call
- request_pb (::Google::Cloud::Translate::V3::DeleteModelRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#detect_language
def detect_language(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::DetectLanguageResponse
Baseline implementation for the detect_language REST call
- request_pb (::Google::Cloud::Translate::V3::DetectLanguageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::DetectLanguageResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::DetectLanguageResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#export_data
def export_data(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the export_data REST call
- request_pb (::Google::Cloud::Translate::V3::ExportDataRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_adaptive_mt_dataset
def get_adaptive_mt_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::AdaptiveMtDataset
Baseline implementation for the get_adaptive_mt_dataset REST call
- request_pb (::Google::Cloud::Translate::V3::GetAdaptiveMtDatasetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::AdaptiveMtDataset)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::AdaptiveMtDataset) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_adaptive_mt_file
def get_adaptive_mt_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::AdaptiveMtFile
Baseline implementation for the get_adaptive_mt_file REST call
- request_pb (::Google::Cloud::Translate::V3::GetAdaptiveMtFileRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::AdaptiveMtFile)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::AdaptiveMtFile) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_dataset
def get_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::Dataset
Baseline implementation for the get_dataset REST call
- request_pb (::Google::Cloud::Translate::V3::GetDatasetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::Dataset)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::Dataset) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_glossary
def get_glossary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::Glossary
Baseline implementation for the get_glossary REST call
- request_pb (::Google::Cloud::Translate::V3::GetGlossaryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::Glossary)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::Glossary) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_glossary_entry
def get_glossary_entry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::GlossaryEntry
Baseline implementation for the get_glossary_entry REST call
- request_pb (::Google::Cloud::Translate::V3::GetGlossaryEntryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::GlossaryEntry)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::GlossaryEntry) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_model
def get_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::Model
Baseline implementation for the get_model REST call
- request_pb (::Google::Cloud::Translate::V3::GetModelRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::Model)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::Model) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_supported_languages
def get_supported_languages(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::SupportedLanguages
Baseline implementation for the get_supported_languages REST call
- request_pb (::Google::Cloud::Translate::V3::GetSupportedLanguagesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::SupportedLanguages)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::SupportedLanguages) — A result object deserialized from the server's reply
- (::ArgumentError)
#import_adaptive_mt_file
def import_adaptive_mt_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse
Baseline implementation for the import_adaptive_mt_file REST call
- request_pb (::Google::Cloud::Translate::V3::ImportAdaptiveMtFileRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#import_data
def import_data(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the import_data REST call
- request_pb (::Google::Cloud::Translate::V3::ImportDataRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_adaptive_mt_datasets
def list_adaptive_mt_datasets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsResponse
Baseline implementation for the list_adaptive_mt_datasets REST call
- request_pb (::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_adaptive_mt_files
def list_adaptive_mt_files(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListAdaptiveMtFilesResponse
Baseline implementation for the list_adaptive_mt_files REST call
- request_pb (::Google::Cloud::Translate::V3::ListAdaptiveMtFilesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListAdaptiveMtFilesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListAdaptiveMtFilesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_adaptive_mt_sentences
def list_adaptive_mt_sentences(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesResponse
Baseline implementation for the list_adaptive_mt_sentences REST call
- request_pb (::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_datasets
def list_datasets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListDatasetsResponse
Baseline implementation for the list_datasets REST call
- request_pb (::Google::Cloud::Translate::V3::ListDatasetsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListDatasetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListDatasetsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_examples
def list_examples(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListExamplesResponse
Baseline implementation for the list_examples REST call
- request_pb (::Google::Cloud::Translate::V3::ListExamplesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListExamplesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListExamplesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_glossaries
def list_glossaries(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListGlossariesResponse
Baseline implementation for the list_glossaries REST call
- request_pb (::Google::Cloud::Translate::V3::ListGlossariesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListGlossariesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListGlossariesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_glossary_entries
def list_glossary_entries(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListGlossaryEntriesResponse
Baseline implementation for the list_glossary_entries REST call
- request_pb (::Google::Cloud::Translate::V3::ListGlossaryEntriesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListGlossaryEntriesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListGlossaryEntriesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_models
def list_models(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListModelsResponse
Baseline implementation for the list_models REST call
- request_pb (::Google::Cloud::Translate::V3::ListModelsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::ListModelsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::ListModelsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> Logger
The logger used for request/response debug logging.
- (Logger)
#romanize_text
def romanize_text(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::RomanizeTextResponse
Baseline implementation for the romanize_text REST call
- request_pb (::Google::Cloud::Translate::V3::RomanizeTextRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::RomanizeTextResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::RomanizeTextResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#translate_document
def translate_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::TranslateDocumentResponse
Baseline implementation for the translate_document REST call
- request_pb (::Google::Cloud::Translate::V3::TranslateDocumentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::TranslateDocumentResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::TranslateDocumentResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#translate_text
def translate_text(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::TranslateTextResponse
Baseline implementation for the translate_text REST call
- request_pb (::Google::Cloud::Translate::V3::TranslateTextRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::TranslateTextResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::TranslateTextResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_glossary
def update_glossary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the update_glossary REST call
- request_pb (::Google::Cloud::Translate::V3::UpdateGlossaryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_glossary_entry
def update_glossary_entry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::GlossaryEntry
Baseline implementation for the update_glossary_entry REST call
- request_pb (::Google::Cloud::Translate::V3::UpdateGlossaryEntryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Translate::V3::GlossaryEntry)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Translate::V3::GlossaryEntry) — A result object deserialized from the server's reply
- (::ArgumentError)