Class DocumentTranslation (3.17.0)

DocumentTranslation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A translated document message.

Attributes

Name Description
byte_stream_outputs MutableSequence[bytes]
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.
mime_type str
The translated document's mime type.
detected_language_code str
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.