BusinessCallsSettings
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Настройки деловых звонков для местоположения.
JSON-представление |
---|
{
"name": string,
"callsState": enum (CallsState ),
"consentTime": string
} |
Поля |
---|
name | string Необходимый. Имя ресурса настроек звонков. Формат: location/{location}/businesscallssettings. |
callsState | enum ( CallsState ) Необходимый. Состояние регистрации этого адреса в бизнес-звонках. |
consentTime | string ( Timestamp format) Только ввод. Время, когда конечный пользователь предоставил согласие пользователю API на включение бизнес-вызовов. Временная метка в формате RFC3339 UTC «Зулу» с наносекундным разрешением и до девяти дробных цифр. Примеры: "2014-10-02T15:01:23Z" и "2014-10-02T15:01:23.045123456Z" . |
Состояние звонков
Возможные состояния местоположения в деловых звонках. Состояния могут быть обновлены только до ВКЛЮЧЕНО или ВЫКЛЮЧЕНО. Все остальное вернет ошибку PRECONDITION_FAILED.
Перечисления |
---|
CALLS_STATE_UNSPECIFIED | Не указано. |
ENABLED | Для этого местоположения включены деловые звонки. |
DISABLED | Деловые звонки отключены для данного местоположения. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eBusiness calls settings allow managing call handling for a specific location.\u003c/p\u003e\n"],["\u003cp\u003eSettings include the location's call state (enabled/disabled) and the time of user consent for business calls.\u003c/p\u003e\n"],["\u003cp\u003eCall states can only be updated to "enabled" or "disabled" to avoid errors.\u003c/p\u003e\n"],["\u003cp\u003eJSON representation provides a structured format for accessing and modifying call settings data.\u003c/p\u003e\n"]]],[],null,["# BusinessCallsSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [CallsState](#CallsState)\n\nBusiness calls settings for a location.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"callsState\": enum (/my-business/reference/businesscalls/rest/v1/BusinessCallsSettings#CallsState), \"consentTime\": string } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The resource name of the calls settings. Format: locations/{location}/businesscallssettings |\n| `callsState` | `enum (`[CallsState](/my-business/reference/businesscalls/rest/v1/BusinessCallsSettings#CallsState)`)` Required. The state of this location's enrollment in Business calls. |\n| `consentTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Input only. Time when the end user provided consent to the API user to enable business calls. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n\nCallsState\n----------\n\nThe possible states of a location in business calls. The states can be updated to only ENABLED or DISABLED. Anything else will return PRECONDITION_FAILED error.\n\n| Enums ||\n|---------------------------|----------------------------------------------|\n| `CALLS_STATE_UNSPECIFIED` | Unspecified. |\n| `ENABLED` | Business calls is enabled for the location. |\n| `DISABLED` | Business calls is disabled for the location. |"]]