TranslateDocumentResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A translated document response message.
Attributes | |
---|---|
Name | Description |
document_translation |
google.cloud.translate_v3.types.DocumentTranslation
Translated document. |
glossary_document_translation |
google.cloud.translate_v3.types.DocumentTranslation
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply. |
model |
str
Only present when 'model' is present in the request. 'model' is normalized to have a project number. For example: If the 'model' field in TranslateDocumentRequest is: projects/{project-id}/locations/{location-id}/models/general/nmt
then model here would be normalized to
projects/{project-number}/locations/{location-id}/models/general/nmt .
|
glossary_config |
google.cloud.translate_v3.types.TranslateTextGlossaryConfig
The glossary_config used for this translation.
|