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\u003eThe document outlines the \u003ccode\u003eDocumentTranslation\u003c/code\u003e class within the Google Cloud Translation v3 API, specifically focusing on version 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocumentTranslation\u003c/code\u003e is a class that represents a translated document message, implementing several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties such as \u003ccode\u003eByteStreamOutputs\u003c/code\u003e, which holds an array of translated documents, \u003ccode\u003eDetectedLanguageCode\u003c/code\u003e, which is the detected language of the input document, and \u003ccode\u003eMimeType\u003c/code\u003e, the mime type of the translated document.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions available for this API, starting from version 2.2.0 all the way to 3.9.0.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors, one empty and another that takes in an instance of \u003ccode\u003eDocumentTranslation\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]