public sealed class TranslateDocumentResponse : IMessage<TranslateDocumentResponse>, IEquatable<TranslateDocumentResponse>, IDeepCloneable<TranslateDocumentResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Translation v3 API class TranslateDocumentResponse.
public DocumentTranslation GlossaryDocumentTranslation { get; set; }
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.
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTranslateDocumentResponse\u003c/code\u003e class in the Google Cloud Translation v3 API represents the response message for a translated document.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is 3.9.0, and documentation for multiple versions, ranging from 2.2.0 to 3.9.0, is available.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes properties such as \u003ccode\u003eDocumentTranslation\u003c/code\u003e, \u003ccode\u003eGlossaryConfig\u003c/code\u003e, \u003ccode\u003eGlossaryDocumentTranslation\u003c/code\u003e, and \u003ccode\u003eModel\u003c/code\u003e to access various aspects of the translation response.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e for broader functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides constructors for default initialization and for initialization from an existing \u003ccode\u003eTranslateDocumentResponse\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Translation v3 API - Class TranslateDocumentResponse (3.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.8.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.7.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.6.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.5.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.4.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.3.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.2.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.1.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.0.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.4.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.3.0/Google.Cloud.Translate.V3.TranslateDocumentResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.2.0/Google.Cloud.Translate.V3.TranslateDocumentResponse) \n\n public sealed class TranslateDocumentResponse : IMessage\u003cTranslateDocumentResponse\u003e, IEquatable\u003cTranslateDocumentResponse\u003e, IDeepCloneable\u003cTranslateDocumentResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Translation v3 API class TranslateDocumentResponse.\n\nA translated document response message. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TranslateDocumentResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TranslateDocumentResponse](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.TranslateDocumentResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TranslateDocumentResponse](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.TranslateDocumentResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TranslateDocumentResponse](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.TranslateDocumentResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Translate.V3](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Translate.V3.dll\n\nConstructors\n------------\n\n### TranslateDocumentResponse()\n\n public TranslateDocumentResponse()\n\n### TranslateDocumentResponse(TranslateDocumentResponse)\n\n public TranslateDocumentResponse(TranslateDocumentResponse other)\n\nProperties\n----------\n\n### DocumentTranslation\n\n public DocumentTranslation DocumentTranslation { get; set; }\n\nTranslated document.\n\n### GlossaryConfig\n\n public TranslateTextGlossaryConfig GlossaryConfig { get; set; }\n\nThe `glossary_config` used for this translation.\n\n### GlossaryDocumentTranslation\n\n public DocumentTranslation GlossaryDocumentTranslation { get; set; }\n\nThe document's translation output if a glossary is provided in the request.\nThis can be the same as \\[TranslateDocumentResponse.document_translation\\]\nif no glossary terms apply.\n\n### Model\n\n public string Model { get; set; }\n\nOnly present when 'model' is present in the request.\n'model' is normalized to have a project number.\n\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`."]]