Reference documentation and code samples for the Google API Common Protos Client class ShortCode.
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).
Generated from protobuf message google.type.PhoneNumber.ShortCode
[[["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."],[],[],null,["# Google API Common Protos Client - Class ShortCode (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Type.PhoneNumber.ShortCode)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Type.PhoneNumber.ShortCode)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Type.PhoneNumber.ShortCode)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Type.PhoneNumber.ShortCode)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Type.PhoneNumber.ShortCode)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Type.PhoneNumber.ShortCode) \nReference documentation and code samples for the Google API Common Protos Client class ShortCode.\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\nGenerated from protobuf message `google.type.PhoneNumber.ShortCode`\n\nNamespace\n---------\n\nGoogle \\\\ Type \\\\ PhoneNumber\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRegionCode\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\n### setRegionCode\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\n### getNumber\n\nRequired. The short code digits, without a leading plus ('+') or country\ncalling code, e.g. \"611\".\n\n### setNumber\n\nRequired. The short code digits, without a leading plus ('+') or country\ncalling code, e.g. \"611\"."]]