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