public sealed class DocumentTranslation : IMessage<DocumentTranslation>, IEquatable<DocumentTranslation>, IDeepCloneable<DocumentTranslation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Translation v3 API class DocumentTranslation.
public RepeatedField<ByteString> ByteStreamOutputs { get; }
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.
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.
[[["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\u003eThis webpage provides documentation for the \u003ccode\u003eDocumentTranslation\u003c/code\u003e class within the Google Cloud Translation v3 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentTranslation\u003c/code\u003e class represents a translated document message, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eDocumentTranslation\u003c/code\u003e documentation is 3.9.0, with versions back to 2.2.0 also available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentTranslation\u003c/code\u003e class includes properties like \u003ccode\u003eByteStreamOutputs\u003c/code\u003e, \u003ccode\u003eDetectedLanguageCode\u003c/code\u003e, and \u003ccode\u003eMimeType\u003c/code\u003e to access translated document content, detected language, and mime type.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the \u003ccode\u003eDocumentTranslation\u003c/code\u003e class constructors, and inherited members such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e, all within the \u003ccode\u003eGoogle.Cloud.Translate.V3\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Translation v3 API - Class DocumentTranslation (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.DocumentTranslation)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.8.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.7.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.6.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.5.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.4.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.3.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.2.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.1.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.0.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.4.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.3.0/Google.Cloud.Translate.V3.DocumentTranslation)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.2.0/Google.Cloud.Translate.V3.DocumentTranslation) \n\n public sealed class DocumentTranslation : IMessage\u003cDocumentTranslation\u003e, IEquatable\u003cDocumentTranslation\u003e, IDeepCloneable\u003cDocumentTranslation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Translation v3 API class DocumentTranslation.\n\nA translated document message. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DocumentTranslation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DocumentTranslation](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentTranslation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DocumentTranslation](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentTranslation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DocumentTranslation](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentTranslation), [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### DocumentTranslation()\n\n public DocumentTranslation()\n\n### DocumentTranslation(DocumentTranslation)\n\n public DocumentTranslation(DocumentTranslation other)\n\nProperties\n----------\n\n### ByteStreamOutputs\n\n public RepeatedField\u003cByteString\u003e ByteStreamOutputs { get; }\n\nThe array of translated documents. It is expected to be size 1 for now. We\nmay produce multiple translated documents in the future for other type of\nfile formats.\n\n### DetectedLanguageCode\n\n public string DetectedLanguageCode { get; set; }\n\nThe detected language for the input document.\nIf the user did not provide the source language for the input document,\nthis field will have the language code automatically detected. If the\nsource language was passed, auto-detection of the language does not occur\nand this field is empty.\n\n### MimeType\n\n public string MimeType { get; set; }\n\nThe translated document's mime type."]]