DocumentTranslation(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A translated document message. .. attribute:: byte_stream_outputs
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.
:type: Sequence[bytes]
Attributes |
|
---|---|
Name | Description |
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. |