public sealed class TextAnnotation.Types.DetectedLanguage : IMessage<TextAnnotation.Types.DetectedLanguage>, IEquatable<TextAnnotation.Types.DetectedLanguage>, IDeepCloneable<TextAnnotation.Types.DetectedLanguage>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Vision v1 API class TextAnnotation.Types.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 \u003ccode\u003eTextAnnotation.Types.DetectedLanguage\u003c/code\u003e class, part of the Google Cloud Vision v1 API, is used to represent the detected language of a specific structural component.\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, offering functionalities like deep cloning and message handling.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eTextAnnotation.Types.DetectedLanguage\u003c/code\u003e include \u003ccode\u003eConfidence\u003c/code\u003e, indicating the reliability of language detection, and \u003ccode\u003eLanguageCode\u003c/code\u003e, representing the language in BCP-47 format.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the documentation available, ranging from version 2.3.0 to the latest 3.7.0, with links to each specific version for reference.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Vision v1 API - Class TextAnnotation.Types.DetectedLanguage (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.6.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.5.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.4.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.3.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.2.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.1.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.0.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.5.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.4.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.3.0/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage) \n\n public sealed class TextAnnotation.Types.DetectedLanguage : IMessage\u003cTextAnnotation.Types.DetectedLanguage\u003e, IEquatable\u003cTextAnnotation.Types.DetectedLanguage\u003e, IDeepCloneable\u003cTextAnnotation.Types.DetectedLanguage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Vision v1 API class TextAnnotation.Types.DetectedLanguage.\n\nDetected language for a structural component. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TextAnnotation.Types.DetectedLanguage \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TextAnnotation](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation)[Types](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation.Types)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextAnnotation](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation)[Types](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation.Types)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation.Types.DetectedLanguage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TextAnnotation](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation)[Types](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation.Types)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.TextAnnotation.Types.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.Vision.V1](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Vision.V1.dll\n\nConstructors\n------------\n\n### DetectedLanguage()\n\n public DetectedLanguage()\n\n### DetectedLanguage(DetectedLanguage)\n\n public DetectedLanguage(TextAnnotation.Types.DetectedLanguage other)\n\nProperties\n----------\n\n### Confidence\n\n public float Confidence { get; set; }\n\nConfidence of detected language. Range \\[0, 1\\].\n\n### LanguageCode\n\n public string LanguageCode { get; set; }\n\nThe BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more\ninformation, see\n\u003chttp://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e."]]