Class DocumentTranslation (3.5.0)

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

A translated document message.

Attributes

NameDescription
byte_stream_outputs Sequence[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.