Cloud Translation V3 API - Class Google::Cloud::Translate::V3::TranslationService::Rest::ServiceStub (v0.8.0)

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

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_glossary

def create_glossary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_glossary REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_glossary

def delete_glossary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_glossary REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_glossaries

def list_glossaries(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Translate::V3::ListGlossariesResponse

Baseline implementation for the list_glossaries REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)