(::Google::Cloud::Translate::V3::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.
value (::Google::Cloud::Translate::V3::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.
Returns
(::Google::Cloud::Translate::V3::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
defmodel()->::String
Returns
(::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.
#model=
defmodel=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["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 API - Class Google::Cloud::Translate::V3::TranslateDocumentResponse (v1.5.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.2 (latest)](/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [1.5.1](/ruby/docs/reference/google-cloud-translate-v3/1.5.1/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [1.4.1](/ruby/docs/reference/google-cloud-translate-v3/1.4.1/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [1.3.0](/ruby/docs/reference/google-cloud-translate-v3/1.3.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [1.2.0](/ruby/docs/reference/google-cloud-translate-v3/1.2.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [1.1.1](/ruby/docs/reference/google-cloud-translate-v3/1.1.1/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [1.0.0](/ruby/docs/reference/google-cloud-translate-v3/1.0.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.12.0](/ruby/docs/reference/google-cloud-translate-v3/0.12.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.11.2](/ruby/docs/reference/google-cloud-translate-v3/0.11.2/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.10.0](/ruby/docs/reference/google-cloud-translate-v3/0.10.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.9.0](/ruby/docs/reference/google-cloud-translate-v3/0.9.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.8.0](/ruby/docs/reference/google-cloud-translate-v3/0.8.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.7.3](/ruby/docs/reference/google-cloud-translate-v3/0.7.3/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.6.0](/ruby/docs/reference/google-cloud-translate-v3/0.6.0/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.5.2](/ruby/docs/reference/google-cloud-translate-v3/0.5.2/Google-Cloud-Translate-V3-TranslateDocumentResponse)\n- [0.4.2](/ruby/docs/reference/google-cloud-translate-v3/0.4.2/Google-Cloud-Translate-V3-TranslateDocumentResponse) \nReference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::TranslateDocumentResponse.\n\nA translated document response message. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #document_translation\n\n def document_translation() -\u003e ::Google::Cloud::Translate::V3::DocumentTranslation\n\n**Returns**\n\n- ([::Google::Cloud::Translate::V3::DocumentTranslation](./Google-Cloud-Translate-V3-DocumentTranslation)) --- Translated document.\n\n### #document_translation=\n\n def document_translation=(value) -\u003e ::Google::Cloud::Translate::V3::DocumentTranslation\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Translate::V3::DocumentTranslation](./Google-Cloud-Translate-V3-DocumentTranslation)) --- Translated document. \n**Returns**\n\n- ([::Google::Cloud::Translate::V3::DocumentTranslation](./Google-Cloud-Translate-V3-DocumentTranslation)) --- Translated document.\n\n### #glossary_config\n\n def glossary_config() -\u003e ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig\n\n**Returns**\n\n- ([::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig](./Google-Cloud-Translate-V3-TranslateTextGlossaryConfig)) --- The `glossary_config` used for this translation.\n\n### #glossary_config=\n\n def glossary_config=(value) -\u003e ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig](./Google-Cloud-Translate-V3-TranslateTextGlossaryConfig)) --- The `glossary_config` used for this translation. \n**Returns**\n\n- ([::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig](./Google-Cloud-Translate-V3-TranslateTextGlossaryConfig)) --- The `glossary_config` used for this translation.\n\n### #glossary_document_translation\n\n def glossary_document_translation() -\u003e ::Google::Cloud::Translate::V3::DocumentTranslation\n\n**Returns**\n\n- ([::Google::Cloud::Translate::V3::DocumentTranslation](./Google-Cloud-Translate-V3-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.\n\n### #glossary_document_translation=\n\n def glossary_document_translation=(value) -\u003e ::Google::Cloud::Translate::V3::DocumentTranslation\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Translate::V3::DocumentTranslation](./Google-Cloud-Translate-V3-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. \n**Returns**\n\n- ([::Google::Cloud::Translate::V3::DocumentTranslation](./Google-Cloud-Translate-V3-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.\n\n### #model\n\n def model() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Only present when 'model' is present in the request. 'model' is normalized to have a project number.\n\n For example:\n If 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### #model=\n\n def model=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Only present when 'model' is present in the request. 'model' is normalized to have a project number.\n\n\n For example:\n If 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**Returns**\n\n- (::String) --- Only present when 'model' is present in the request. 'model' is normalized to have a project number.\n\n For example:\n If 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`."]]