PhoneNumber
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"e164PhoneNumber": string,
"extension": string,
"preferredDomesticCarrierCode": string
} |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis document outlines a standard JSON structure for representing phone numbers, including the main number, extension, and preferred domestic carrier code.\u003c/p\u003e\n"],["\u003cp\u003ePhone numbers are stored in E.164 format, an international standard defined by the International Telecommunication Union.\u003c/p\u003e\n"],["\u003cp\u003eExtensions, while not standardized, are included to accommodate diverse organizational practices and can hold digits or other dialing characters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epreferredDomesticCarrierCode\u003c/code\u003e field stores carrier selection codes that might be required for domestic calls in specific scenarios, such as landline to mobile calls.\u003c/p\u003e\n"]]],["The core information describes a JSON structure for representing phone numbers. It includes three fields: `e164PhoneNumber` (a string in E.164 format), `extension` (a string for the phone extension, up to 40 digits, potentially including characters like \",\"), and `preferredDomesticCarrierCode` (a string for a preferred carrier code for domestic calls, like mobile-to-landline codes). The format offers flexibility in storing dialing variations and supports the E.164 standard.\n"],null,["# PhoneNumber\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nStandard phone number representation.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------|---|\n| ``` { \"e164PhoneNumber\": string, \"extension\": string, \"preferredDomesticCarrierCode\": string } ``` |\n\n| Fields ||\n|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `e164PhoneNumber` | `string` Phone number in E.164 format, as defined in International Telecommunication Union (ITU) Recommendation E.164. wiki link: \u003chttps://en.wikipedia.org/wiki/E.164\u003e |\n| `extension` | `string` Extension is not standardized in ITU recommendations, except for being defined as a series of numbers with a maximum length of 40 digits. It is defined as a string here to accommodate for the possible use of a leading zero in the extension (organizations have complete freedom to do so, as there is no standard defined). Other than digits, some other dialling characters such as \",\" (indicating a wait) may be stored here. For example, in xxx-xxx-xxxx ext. 123, \"123\" is the extension. |\n| `preferredDomesticCarrierCode` | `string` The carrier selection code that is preferred when calling this phone number domestically. This also includes codes that need to be dialed in some countries when calling from landlines to mobiles or vice versa. For example, in Columbia, a \"3\" needs to be dialed before the phone number itself when calling from a mobile phone to a domestic landline phone and vice versa. \u003chttps://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia\u003e \u003chttps://en.wikipedia.org/wiki/Brazilian_Carrier_Selection_Code\u003e Note this is the \"preferred\" code, which means other codes may work as well. |"]]