public sealed class BatchDocumentOutputConfig : IMessage<BatchDocumentOutputConfig>, IEquatable<BatchDocumentOutputConfig>, IDeepCloneable<BatchDocumentOutputConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Translation v3 API class BatchDocumentOutputConfig.
Output configuration for BatchTranslateDocument request.
public GcsDestination GcsDestination { get; set; }
Google Cloud Storage destination for output content.
For every single input document (for example, gs://a/b/c.[extension]), we
generate at most 2 * n output files. (n is the # of target_language_codes
in the BatchTranslateDocumentRequest).
While the input documents are being processed, we write/update an index
file index.csv under gcs_destination.output_uri_prefix (for example,
gs://translation_output/index.csv) The index file is generated/updated as
new files are being translated. The format is:
input_document is one file we matched using gcs_source.input_uri.
target_language_code is provided in the request.
translation_output contains the translations. (details provided below)
error_output contains the error message during processing of the file.
Both translations_file and errors_file could be empty strings if we have
no content to output.
glossary_translation_output and glossary_error_output are the
translated output/error when we apply glossaries. They could also be
empty if we have no content to output.
Once a row is present in index.csv, the input/output matching never
changes. Callers should also expect all the content in input_file are
processed and ready to be consumed (that is, no partial output file is
written).
The naming format of translation output files follows (for target
language code [trg]): translation_output:
gs://translation_output/a_b_c_[trg]_translation.[extension]glossary_translation_output:
gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]. The
output document will maintain the same file format as the input document.
The naming format of error output files follows (for target language code
[trg]): error_output: gs://translation_test/a_b_c_[trg]_errors.txtglossary_error_output:
gs://translation_test/a_b_c_[trg]_glossary_translation.txt. The error
output is a txt file containing error details.
[[["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 page provides documentation for the \u003ccode\u003eBatchDocumentOutputConfig\u003c/code\u003e class within the Google Cloud Translation v3 API, with the latest version being 3.9.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatchDocumentOutputConfig\u003c/code\u003e class is used to specify the output configuration for a BatchTranslateDocument request, detailing where the translated documents and any error outputs will be stored.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details that this class 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, allowing for various operations and comparisons.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eDestinationCase\u003c/code\u003e and \u003ccode\u003eGcsDestination\u003c/code\u003e, with \u003ccode\u003eGcsDestination\u003c/code\u003e specifically detailing the Google Cloud Storage location for storing the translated outputs, errors, and an index file.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the \u003ccode\u003eBatchDocumentOutputConfig\u003c/code\u003e class are available, ranging from version 2.2.0 to the latest version, 3.9.0, each with its own documentation page.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Translation v3 API - Class BatchDocumentOutputConfig (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.BatchDocumentOutputConfig)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.8.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.7.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.6.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.5.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.4.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.3.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.2.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.1.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.0.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.4.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.3.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.2.0/Google.Cloud.Translate.V3.BatchDocumentOutputConfig) \n\n public sealed class BatchDocumentOutputConfig : IMessage\u003cBatchDocumentOutputConfig\u003e, IEquatable\u003cBatchDocumentOutputConfig\u003e, IDeepCloneable\u003cBatchDocumentOutputConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Translation v3 API class BatchDocumentOutputConfig.\n\nOutput configuration for BatchTranslateDocument request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BatchDocumentOutputConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchDocumentOutputConfig](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.BatchDocumentOutputConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchDocumentOutputConfig](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.BatchDocumentOutputConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchDocumentOutputConfig](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.BatchDocumentOutputConfig), [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### BatchDocumentOutputConfig()\n\n public BatchDocumentOutputConfig()\n\n### BatchDocumentOutputConfig(BatchDocumentOutputConfig)\n\n public BatchDocumentOutputConfig(BatchDocumentOutputConfig other)\n\nProperties\n----------\n\n### DestinationCase\n\n public BatchDocumentOutputConfig.DestinationOneofCase DestinationCase { get; }\n\n### GcsDestination\n\n public GcsDestination GcsDestination { get; set; }\n\nGoogle Cloud Storage destination for output content.\nFor every single input document (for example, gs://a/b/c.\\[extension\\]), we\ngenerate at most 2 \\* n output files. (n is the # of target_language_codes\nin the BatchTranslateDocumentRequest).\n\nWhile the input documents are being processed, we write/update an index\nfile `index.csv` under `gcs_destination.output_uri_prefix` (for example,\ngs://translation_output/index.csv) The index file is generated/updated as\nnew files are being translated. The format is:\n\ninput_document,target_language_code,translation_output,error_output,\nglossary_translation_output,glossary_error_output\n\n`input_document` is one file we matched using gcs_source.input_uri.\n`target_language_code` is provided in the request.\n`translation_output` contains the translations. (details provided below)\n`error_output` contains the error message during processing of the file.\nBoth translations_file and errors_file could be empty strings if we have\nno content to output.\n`glossary_translation_output` and `glossary_error_output` are the\ntranslated output/error when we apply glossaries. They could also be\nempty if we have no content to output.\n\nOnce a row is present in index.csv, the input/output matching never\nchanges. Callers should also expect all the content in input_file are\nprocessed and ready to be consumed (that is, no partial output file is\nwritten).\n\nSince index.csv will be keeping updated during the process, please make\nsure there is no custom retention policy applied on the output bucket\nthat may avoid file updating.\n(\u003chttps://cloud.google.com/storage/docs/bucket-lock#retention-policy\u003e)\n\nThe naming format of translation output files follows (for target\nlanguage code \\[trg\\]): `translation_output`:\n`gs://translation_output/a_b_c_[trg]_translation.[extension]`\n`glossary_translation_output`:\n`gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The\noutput document will maintain the same file format as the input document.\n\nThe naming format of error output files follows (for target language code\n\\[trg\\]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`\n`glossary_error_output`:\n`gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error\noutput is a txt file containing error details."]]