public sealed class Document.Types.Page.Types.DetectedLanguage : IMessage<Document.Types.Page.Types.DetectedLanguage>, IEquatable<Document.Types.Page.Types.DetectedLanguage>, IDeepCloneable<Document.Types.Page.Types.DetectedLanguage>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1beta3 API class Document.Types.Page.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\u003eThis document provides reference information for the \u003ccode\u003eDocument.Types.Page.Types.DetectedLanguage\u003c/code\u003e class within the Cloud Document AI v1beta3 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDetectedLanguage\u003c/code\u003e class is designed to identify the language of a structural component within a document, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default \u003ccode\u003eDetectedLanguage()\u003c/code\u003e constructor and another that takes an existing \u003ccode\u003eDetectedLanguage\u003c/code\u003e object as a parameter, copying its values.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eDetectedLanguage\u003c/code\u003e class include \u003ccode\u003eConfidence\u003c/code\u003e, a float value representing the confidence level of the detected language (ranging from 0 to 1), and \u003ccode\u003eLanguageCode\u003c/code\u003e, a string property storing the BCP-47 language code.\u003c/p\u003e\n"],["\u003cp\u003eThe most recent version of this API class is \u003ccode\u003e2.0.0-beta23\u003c/code\u003e as of this document.\u003c/p\u003e\n"]]],[],null,["# Cloud Document AI v1beta3 API - Class Document.Types.Page.Types.DetectedLanguage (2.0.0-beta26)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta26 (latest)](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.DetectedLanguage)\n- [2.0.0-beta25](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/2.0.0-beta25/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.DetectedLanguage)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/1.0.0-beta04/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.DetectedLanguage) \n\n public sealed class Document.Types.Page.Types.DetectedLanguage : IMessage\u003cDocument.Types.Page.Types.DetectedLanguage\u003e, IEquatable\u003cDocument.Types.Page.Types.DetectedLanguage\u003e, IDeepCloneable\u003cDocument.Types.Page.Types.DetectedLanguage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Document AI v1beta3 API class Document.Types.Page.Types.DetectedLanguage.\n\nDetected language for a structural component. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Document.Types.Page.Types.DetectedLanguage \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Document](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types)[Page](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.DetectedLanguage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Document](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types)[Page](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.DetectedLanguage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Document](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types)[Page](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types)[DetectedLanguage](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.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.DocumentAI.V1Beta3](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.DocumentAI.V1Beta3.dll\n\nConstructors\n------------\n\n### DetectedLanguage()\n\n public DetectedLanguage()\n\n### DetectedLanguage(DetectedLanguage)\n\n public DetectedLanguage(Document.Types.Page.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\ncode](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),\nsuch as `en-US` or `sr-Latn`."]]