public sealed class BatchTranslateTextRequest : IMessage<BatchTranslateTextRequest>, IEquatable<BatchTranslateTextRequest>, IDeepCloneable<BatchTranslateTextRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Translation v3 API class BatchTranslateTextRequest.
public RepeatedField<InputConfig> InputConfigs { get; }
Required. Input configurations.
The total number of files matched should be <= 100.
The total content size should be <= 100M Unicode codepoints.
The files must use UTF-8 encoding.
Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter.
Optional. The models to use for translation. Map's key is target language
code. Map's value is model name. Value can be a built-in general model,
or an AutoML Translation model.
The global location is not supported for batch translation.
Only AutoML Translation models or glossaries within the same region (have
the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
error is returned.
[[["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 document provides reference documentation for the \u003ccode\u003eBatchTranslateTextRequest\u003c/code\u003e class within the Google Cloud Translation v3 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatchTranslateTextRequest\u003c/code\u003e class allows for batch translation requests, with options to specify input/output configurations, source and target languages, models, glossaries, and labels.\u003c/p\u003e\n"],["\u003cp\u003eIt supports multiple versions of the API, from 2.2.0 to the latest 3.9.0, which you can find the documentation for in the provided links.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatchTranslateTextRequest\u003c/code\u003e 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, and is part of the \u003ccode\u003eGoogle.Cloud.Translate.V3\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eYou can set multiple properties within the class including \u003ccode\u003eGlossaries\u003c/code\u003e, \u003ccode\u003eInputConfigs\u003c/code\u003e, \u003ccode\u003eLabels\u003c/code\u003e, \u003ccode\u003eModels\u003c/code\u003e, \u003ccode\u003eOutputConfig\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eSourceLanguageCode\u003c/code\u003e, and \u003ccode\u003eTargetLanguageCodes\u003c/code\u003e to fully customize your request.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Translation v3 API - Class BatchTranslateTextRequest (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.BatchTranslateTextRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.8.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.7.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.6.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.5.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.4.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.3.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.2.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.1.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.0.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.4.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.3.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.2.0/Google.Cloud.Translate.V3.BatchTranslateTextRequest) \n\n public sealed class BatchTranslateTextRequest : IMessage\u003cBatchTranslateTextRequest\u003e, IEquatable\u003cBatchTranslateTextRequest\u003e, IDeepCloneable\u003cBatchTranslateTextRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Translation v3 API class BatchTranslateTextRequest.\n\nThe batch translation request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BatchTranslateTextRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchTranslateTextRequest](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.BatchTranslateTextRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchTranslateTextRequest](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.BatchTranslateTextRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchTranslateTextRequest](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.BatchTranslateTextRequest), [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### BatchTranslateTextRequest()\n\n public BatchTranslateTextRequest()\n\n### BatchTranslateTextRequest(BatchTranslateTextRequest)\n\n public BatchTranslateTextRequest(BatchTranslateTextRequest other)\n\nProperties\n----------\n\n### Glossaries\n\n public MapField\u003cstring, TranslateTextGlossaryConfig\u003e Glossaries { get; }\n\nOptional. Glossaries to be applied for translation.\nIt's keyed by target language code.\n\n### InputConfigs\n\n public RepeatedField\u003cInputConfig\u003e InputConfigs { get; }\n\nRequired. Input configurations.\nThe total number of files matched should be \\\u003c= 100.\nThe total content size should be \\\u003c= 100M Unicode codepoints.\nThe files must use UTF-8 encoding.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints), can only contain lowercase letters, numeric\ncharacters, underscores and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.\n\nSee \u003chttps://cloud.google.com/translate/docs/advanced/labels\u003e for more\ninformation.\n\n### Models\n\n public MapField\u003cstring, string\u003e Models { get; }\n\nOptional. The models to use for translation. Map's key is target language\ncode. Map's value is model name. Value can be a built-in general model,\nor an AutoML Translation model.\n\nThe value format depends on model type:\n\n- AutoML Translation models:\n `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`\n\n- General (built-in) models:\n `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,\n\nIf the map is empty or a specific model is\nnot requested for a language pair, then default google model (nmt) is used.\n\n### OutputConfig\n\n public OutputConfig OutputConfig { get; set; }\n\nRequired. Output configuration.\nIf 2 input configs match to the same file (that is, same input path),\nwe don't generate output for duplicate inputs.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Location to make a call. Must refer to a caller's project.\n\nFormat: `projects/{project-number-or-id}/locations/{location-id}`.\n\nThe `global` location is not supported for batch translation.\n\nOnly AutoML Translation models or glossaries within the same region (have\nthe same location-id) can be used, otherwise an INVALID_ARGUMENT (400)\nerror is returned.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.BatchTranslateTextRequest#Google_Cloud_Translate_V3_BatchTranslateTextRequest_Parent) resource name property.\n\n### SourceLanguageCode\n\n public string SourceLanguageCode { get; set; }\n\nRequired. Source language code.\n\n### TargetLanguageCodes\n\n public RepeatedField\u003cstring\u003e TargetLanguageCodes { get; }\n\nRequired. Specify up to 10 language codes here."]]