Cloud Translation V3 API - Class Google::Cloud::Translate::V3::DocumentTranslation (v0.10.0)

Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::DocumentTranslation.

A translated document message.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#byte_stream_outputs

def byte_stream_outputs() -> ::Array<::String>
Returns
  • (::Array<::String>) — The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.

#byte_stream_outputs=

def byte_stream_outputs=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
Returns
  • (::Array<::String>) — The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.

#detected_language_code

def detected_language_code() -> ::String
Returns
  • (::String) — The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.

#detected_language_code=

def detected_language_code=(value) -> ::String
Parameter
  • value (::String) — The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.
Returns
  • (::String) — The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.

#mime_type

def mime_type() -> ::String
Returns
  • (::String) — The translated document's mime type.

#mime_type=

def mime_type=(value) -> ::String
Parameter
  • value (::String) — The translated document's mime type.
Returns
  • (::String) — The translated document's mime type.