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
string
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.
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.
Returns
Type
Description
string
setModel
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Translation V3 Client - Class TranslateDocumentResponse (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.TranslateDocumentResponse)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.TranslateDocumentResponse)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.TranslateDocumentResponse)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.TranslateDocumentResponse)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.TranslateDocumentResponse)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.TranslateDocumentResponse)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.TranslateDocumentResponse)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.TranslateDocumentResponse)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.TranslateDocumentResponse)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.TranslateDocumentResponse)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.TranslateDocumentResponse)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.TranslateDocumentResponse) \nReference documentation and code samples for the Cloud Translation V3 Client class TranslateDocumentResponse.\n\nA translated document response message.\n\nGenerated from protobuf message `google.cloud.translation.v3.TranslateDocumentResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDocumentTranslation\n\nTranslated document.\n\n### hasDocumentTranslation\n\n### clearDocumentTranslation\n\n### setDocumentTranslation\n\nTranslated document.\n\n### getGlossaryDocumentTranslation\n\nThe document's translation output if a glossary is provided in the request.\n\nThis can be the same as \\[TranslateDocumentResponse.document_translation\\]\nif no glossary terms apply.\n\n### hasGlossaryDocumentTranslation\n\n### clearGlossaryDocumentTranslation\n\n### setGlossaryDocumentTranslation\n\nThe document's translation output if a glossary is provided in the request.\n\nThis can be the same as \\[TranslateDocumentResponse.document_translation\\]\nif no glossary terms apply.\n\n### getModel\n\nOnly present when 'model' is present in the request.\n\n'model' is normalized to have a project number.\nFor example:\nIf the 'model' field in TranslateDocumentRequest is:\n`projects/{project-id}/locations/{location-id}/models/general/nmt` then\n`model` here would be normalized to\n`projects/{project-number}/locations/{location-id}/models/general/nmt`.\n\n### setModel\n\nOnly present when 'model' is present in the request.\n\n'model' is normalized to have a project number.\nFor example:\nIf the 'model' field in TranslateDocumentRequest is:\n`projects/{project-id}/locations/{location-id}/models/general/nmt` then\n`model` here would be normalized to\n`projects/{project-number}/locations/{location-id}/models/general/nmt`.\n\n### getGlossaryConfig\n\nThe `glossary_config` used for this translation.\n\n### hasGlossaryConfig\n\n### clearGlossaryConfig\n\n### setGlossaryConfig\n\nThe `glossary_config` used for this translation."]]