public sealed class PhoneNumber.Types.ShortCode : IMessage<PhoneNumber.Types.ShortCode>, IEquatable<PhoneNumber.Types.ShortCode>, IDeepCloneable<PhoneNumber.Types.ShortCode>, IBufferMessage, IMessage
An object representing a short code, which is a phone number that is
typically much shorter than regular phone numbers and can be used to
address messages in MMS and SMS systems, as well as for abbreviated dialing
(e.g. "Text 611 to see how many minutes you have remaining on your plan.").
Short codes are restricted to a region and are not internationally
dialable, which means the same short code can exist in different regions,
with different usage and pricing, even if those regions share the same
country calling code (e.g. US and CA).
[[["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\u003e\u003ccode\u003ePhoneNumber.Types.ShortCode\u003c/code\u003e represents a short code, which is a shorter phone number used for messaging and abbreviated dialing, such as "Text 611" examples.\u003c/p\u003e\n"],["\u003cp\u003eShort codes are specific to a region and not internationally dialable, meaning the same short code can have different uses and pricing in different regions, even within the same country code.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering methods for message manipulation, equality checks, and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShortCode\u003c/code\u003e object includes properties \u003ccode\u003eNumber\u003c/code\u003e (short code digits) and \u003ccode\u003eRegionCode\u003c/code\u003e (the region where the short code is valid), both of which are required for a complete short code definition.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods for common operations like calculating message size, cloning, merging data, comparing for equality, and writing data to a coded output stream.\u003c/p\u003e\n"]]],[],null,["# Class PhoneNumber.Types.ShortCode (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber.Types.ShortCode)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Type.PhoneNumber.Types.ShortCode)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Type.PhoneNumber.Types.ShortCode)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Type.PhoneNumber.Types.ShortCode) \n\n public sealed class PhoneNumber.Types.ShortCode : IMessage\u003cPhoneNumber.Types.ShortCode\u003e, IEquatable\u003cPhoneNumber.Types.ShortCode\u003e, IDeepCloneable\u003cPhoneNumber.Types.ShortCode\u003e, IBufferMessage, IMessage\n\nAn object representing a short code, which is a phone number that is\ntypically much shorter than regular phone numbers and can be used to\naddress messages in MMS and SMS systems, as well as for abbreviated dialing\n(e.g. \"Text 611 to see how many minutes you have remaining on your plan.\").\n\nShort codes are restricted to a region and are not internationally\ndialable, which means the same short code can exist in different regions,\nwith different usage and pricing, even if those regions share the same\ncountry calling code (e.g. US and CA). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PhoneNumber.Types.ShortCode \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PhoneNumber](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber.Types)[ShortCode](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber.Types.ShortCode), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PhoneNumber](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber.Types)[ShortCode](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber.Types.ShortCode), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PhoneNumber](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber.Types)[ShortCode](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.PhoneNumber.Types.ShortCode), [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### ShortCode()\n\n public ShortCode()\n\n### ShortCode(ShortCode)\n\n public ShortCode(PhoneNumber.Types.ShortCode other)\n\nFields\n------\n\n### NumberFieldNumber\n\n public const int NumberFieldNumber = 2\n\nField number for the \"number\" field.\n\n### RegionCodeFieldNumber\n\n public const int RegionCodeFieldNumber = 1\n\nField number for the \"region_code\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Number\n\n public string Number { get; set; }\n\nRequired. The short code digits, without a leading plus ('+') or country\ncalling code, e.g. \"611\".\n\n### Parser\n\n public static MessageParser\u003cPhoneNumber.Types.ShortCode\u003e Parser { get; }\n\n### RegionCode\n\n public string RegionCode { get; set; }\n\nRequired. The BCP-47 region code of the location where calls to this\nshort code can be made, such as \"US\" and \"BB\".\n\nReference(s):\n\n- \u003chttp://www.unicode.org/reports/tr35/#unicode_region_subtag\u003e\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public PhoneNumber.Types.ShortCode Clone()\n\n### Equals(ShortCode)\n\n public bool Equals(PhoneNumber.Types.ShortCode 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(ShortCode)\n\n public void MergeFrom(PhoneNumber.Types.ShortCode 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)"]]