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_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)
#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_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)
#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)
#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_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_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)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#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_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)
#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)