public sealed class DetectedLanguage : IMessage<DetectedLanguage>, IEquatable<DetectedLanguage>, IDeepCloneable<DetectedLanguage>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Translation v3 API class DetectedLanguage.
[[["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 latest version of the \u003ccode\u003eDetectedLanguage\u003c/code\u003e class in the Google Cloud Translation v3 API is 3.9.0, with previous versions ranging from 3.8.0 down to 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDetectedLanguage\u003c/code\u003e is a sealed class used to encapsulate the response message for language detection in the API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, which it inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDetectedLanguage\u003c/code\u003e has two properties: \u003ccode\u003eConfidence\u003c/code\u003e, a float representing the detection result's confidence, and \u003ccode\u003eLanguageCode\u003c/code\u003e, a string holding the ISO-639 code of the detected language.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDetectedLanguage\u003c/code\u003e class has two constructors, a default one with no parameters and another that takes another \u003ccode\u003eDetectedLanguage\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Translation v3 API - Class DetectedLanguage (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.DetectedLanguage)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.8.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.7.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.6.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.5.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.4.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.3.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.2.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.1.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.0.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.4.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.3.0/Google.Cloud.Translate.V3.DetectedLanguage)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.2.0/Google.Cloud.Translate.V3.DetectedLanguage) \n\n public sealed class DetectedLanguage : IMessage\u003cDetectedLanguage\u003e, IEquatable\u003cDetectedLanguage\u003e, IDeepCloneable\u003cDetectedLanguage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Translation v3 API class DetectedLanguage.\n\nThe response message for language detection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DetectedLanguage \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DetectedLanguage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DetectedLanguage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DetectedLanguage), [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### DetectedLanguage()\n\n public DetectedLanguage()\n\n### DetectedLanguage(DetectedLanguage)\n\n public DetectedLanguage(DetectedLanguage other)\n\nProperties\n----------\n\n### Confidence\n\n public float Confidence { get; set; }\n\nThe confidence of the detection result for this language.\n\n### LanguageCode\n\n public string LanguageCode { get; set; }\n\nThe ISO-639 language code of the source content in the request, detected\nautomatically."]]