[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLocalizedText\u003c/code\u003e class represents a text string in a specific language, identified by its BCP-47 language code.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and 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, providing functionalities for message handling, comparison, cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocalizedText\u003c/code\u003e class has two key properties: \u003ccode\u003eLanguageCode\u003c/code\u003e, which holds the BCP-47 language code, and \u003ccode\u003eText\u003c/code\u003e, which stores the localized string.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for calculating message size, creating deep clones, merging with other messages, and writing/reading data to/from coded streams, facilitating its usage within protocol buffer communication.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this documentation is version 2.15.0, with previous versions 2.10.0 and 2.2.0 also documented.\u003c/p\u003e\n"]]],[],null,["# Class LocalizedText (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LocalizedText)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Type.LocalizedText)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Type.LocalizedText)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Type.LocalizedText) \n\n public sealed class LocalizedText : IMessage\u003cLocalizedText\u003e, IEquatable\u003cLocalizedText\u003e, IDeepCloneable\u003cLocalizedText\u003e, IBufferMessage, IMessage\n\nLocalized variant of a text in a particular language. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LocalizedText \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LocalizedText](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LocalizedText), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LocalizedText](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LocalizedText), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LocalizedText](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LocalizedText), [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.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Type](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### LocalizedText()\n\n public LocalizedText()\n\n### LocalizedText(LocalizedText)\n\n public LocalizedText(LocalizedText other)\n\nFields\n------\n\n### LanguageCodeFieldNumber\n\n public const int LanguageCodeFieldNumber = 2\n\nField number for the \"language_code\" field.\n\n### TextFieldNumber\n\n public const int TextFieldNumber = 1\n\nField number for the \"text\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### LanguageCode\n\n public string LanguageCode { get; set; }\n\nThe text's BCP-47 language code, such as \"en-US\" or \"sr-Latn\".\n\nFor more information, see\n\u003chttp://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e.\n\n### Parser\n\n public static MessageParser\u003cLocalizedText\u003e Parser { get; }\n\n### Text\n\n public string Text { get; set; }\n\nLocalized string in the language corresponding to \\`language_code' below.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public LocalizedText Clone()\n\n### Equals(LocalizedText)\n\n public bool Equals(LocalizedText other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### MergeFrom(LocalizedText)\n\n public void MergeFrom(LocalizedText other)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]