The name of the model used to perform the translation. This may be present
even if Model is null, if a custom model name has been specified
via AdvancedTranslationClient.
[[["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."],[],[],null,["# Google Cloud Translation v2 API - Class TranslationResult (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationResult)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.3.0/Google.Cloud.Translation.V2.TranslationResult)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.2.0/Google.Cloud.Translation.V2.TranslationResult)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.1.0/Google.Cloud.Translation.V2.TranslationResult)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/3.0.0/Google.Cloud.Translation.V2.TranslationResult)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Translation.V2/2.1.0/Google.Cloud.Translation.V2.TranslationResult) \n\n public sealed class TranslationResult\n\nReference documentation and code samples for the Google Cloud Translation v2 API class TranslationResult.\n\nThe result of a translation operation. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TranslationResult \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.Translation.V2](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Translation.V2.dll\n\nConstructors\n------------\n\n### TranslationResult(string, string, string, string, string, TranslationModel?)\n\n public TranslationResult(string originalText, string translatedText, string detectedSourceLanguage, string specifiedSourceLanguage, string targetLanguage, TranslationModel? model)\n\nConstructs an instance.\n\n**Remarks** \nThis constructor is for the benefit of testability, in case you wish to provide your own\nfake implementation of [TranslationClient](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient).\n\n### TranslationResult(string, string, string, string, string, TranslationModel?, string)\n\n public TranslationResult(string originalText, string translatedText, string detectedSourceLanguage, string specifiedSourceLanguage, string targetLanguage, TranslationModel? model, string modelName)\n\nConstructs an instance.\n\n**Remarks** \nThis constructor is for the benefit of testability, in case you wish to provide your own\nfake implementation of [TranslationClient](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient).\n\nProperties\n----------\n\n### DetectedSourceLanguage\n\n public string DetectedSourceLanguage { get; }\n\nThe source language code detected by the server. This may\nbe null, typically due to the source language being supplied\nby the caller.\n\n### Model\n\n public TranslationModel? Model { get; }\n\nThe model used to perform the translation, if known and available\nas one of the values in [TranslationModel](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationModel).\n\n### ModelName\n\n public string ModelName { get; }\n\nThe name of the model used to perform the translation. This may be present\neven if [Model](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationResult#Google_Cloud_Translation_V2_TranslationResult_Model) is null, if a custom model name has been specified\nvia [AdvancedTranslationClient](/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.AdvancedTranslationClient).\n\n### OriginalText\n\n public string OriginalText { get; }\n\nThe original text (or HTML) that was translated.\n\n### SpecifiedSourceLanguage\n\n public string SpecifiedSourceLanguage { get; }\n\nThe source language code supplied by the caller, if any.\n\n### TargetLanguage\n\n public string TargetLanguage { get; }\n\nThe target language code that the text was translated into.\n\n### TranslatedText\n\n public string TranslatedText { get; }\n\nThe translated text."]]