{
  "files": [
    {
      "name": "keyapis/iot_connect/v1/keyapis_iot_connect_callback_v1.proto",
      "description": "Сервис реализует функционал взаимодействия с внешними партнёрами IoT со стороны партнера",
      "package": "keyapis.iot_connect.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "KeyType",
          "longName": "DeviceCommand.KeyType",
          "fullName": "keyapis.iot_connect.v1.DeviceCommand.KeyType",
          "description": "Список ключей команд на изменение статуса устройства",
          "values": [
            {
              "name": "KEY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "REJECT_CALL",
              "number": "1",
              "description": "Отклонение звонка"
            },
            {
              "name": "UNLOCK",
              "number": "2",
              "description": "Открытие замка"
            }
          ]
        },
        {
          "name": "Type",
          "longName": "DeviceCommand.Value.Type",
          "fullName": "keyapis.iot_connect.v1.DeviceCommand.Value.Type",
          "description": "Тип значения команд на изменение статуса устройства",
          "values": [
            {
              "name": "TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ENUM",
              "number": "1",
              "description": "Перечисление"
            }
          ]
        },
        {
          "name": "ValueEnumType",
          "longName": "DeviceCommand.Value.ValueEnumType",
          "fullName": "keyapis.iot_connect.v1.DeviceCommand.Value.ValueEnumType",
          "description": "Значения команд на изменение статуса устройства типа перечисление",
          "values": [
            {
              "name": "VALUE_ENUM_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "REJECT",
              "number": "1",
              "description": "Отклонение звонка"
            },
            {
              "name": "UNLOCK",
              "number": "2",
              "description": "Открытие замка"
            }
          ]
        },
        {
          "name": "KeyType",
          "longName": "DeviceState.KeyType",
          "fullName": "keyapis.iot_connect.v1.DeviceState.KeyType",
          "description": "Список ключей статусов устройства",
          "values": [
            {
              "name": "KEY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ONLINE",
              "number": "1",
              "description": "Статус доступности устройства"
            }
          ]
        },
        {
          "name": "Type",
          "longName": "DeviceState.Value.Type",
          "fullName": "keyapis.iot_connect.v1.DeviceState.Value.Type",
          "description": "Тип значения статуса устройства",
          "values": [
            {
              "name": "TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "BOOL",
              "number": "1",
              "description": "Логический тип"
            }
          ]
        },
        {
          "name": "FeatureType",
          "longName": "Model.FeatureType",
          "fullName": "keyapis.iot_connect.v1.Model.FeatureType",
          "description": "Список функций устройства",
          "values": [
            {
              "name": "FEATURE_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "INCOMING_CALL",
              "number": "1",
              "description": "Сигнализация о поступившем звонке"
            },
            {
              "name": "ONLINE",
              "number": "2",
              "description": "Сигнализация о доступности устройства"
            },
            {
              "name": "REJECT_CALL",
              "number": "3",
              "description": "Отклонение звонка"
            },
            {
              "name": "UNLOCK",
              "number": "4",
              "description": "Открытие замка"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "Device",
          "longName": "Device",
          "fullName": "keyapis.iot_connect.v1.Device",
          "description": "Объект устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор устройства на платформе Ключ.\nКонкатенация user_id и device_id плафтормы Ключ",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "name",
              "description": "Название устройства на платформе Ключ",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "default_name",
              "description": "Название устройства от производителя",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "home",
              "description": "Адрес дома, где установлено устройство",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "room",
              "description": "Название или номер подъезда",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "model",
              "description": "Тип устройства",
              "label": "",
              "type": "Model",
              "longType": "Model",
              "fullType": "keyapis.iot_connect.v1.Model",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "hw_version",
              "description": "HW версия устройства",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "sw_version",
              "description": "SW версия устройства",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            }
          ]
        },
        {
          "name": "DeviceCommand",
          "longName": "DeviceCommand",
          "fullName": "keyapis.iot_connect.v1.DeviceCommand",
          "description": "Команды на изменение статуса устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "command_key_type",
              "description": "Тип команды на изменение статуса устройства",
              "label": "",
              "type": "KeyType",
              "longType": "DeviceCommand.KeyType",
              "fullType": "keyapis.iot_connect.v1.DeviceCommand.KeyType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "value",
              "description": "Значение команды на изменение статуса устройства",
              "label": "",
              "type": "Value",
              "longType": "DeviceCommand.Value",
              "fullType": "keyapis.iot_connect.v1.DeviceCommand.Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Value",
          "longName": "DeviceCommand.Value",
          "fullName": "keyapis.iot_connect.v1.DeviceCommand.Value",
          "description": "Значение команды на изменение статуса устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "type",
              "description": "Тип значения команды на изменение статуса устройства",
              "label": "",
              "type": "Type",
              "longType": "DeviceCommand.Value.Type",
              "fullType": "keyapis.iot_connect.v1.DeviceCommand.Value.Type",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "value_enum_type",
              "description": "Значения команды на изменение статуса устройства типа перечисление",
              "label": "",
              "type": "ValueEnumType",
              "longType": "DeviceCommand.Value.ValueEnumType",
              "fullType": "keyapis.iot_connect.v1.DeviceCommand.Value.ValueEnumType",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "value",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "DeviceCommandArray",
          "longName": "DeviceCommandArray",
          "fullName": "keyapis.iot_connect.v1.DeviceCommandArray",
          "description": "Массив команд на изменение статуса устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "states",
              "description": "Команды на изменение статуса устройства",
              "label": "repeated",
              "type": "DeviceCommand",
              "longType": "DeviceCommand",
              "fullType": "keyapis.iot_connect.v1.DeviceCommand",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "DeviceState",
          "longName": "DeviceState",
          "fullName": "keyapis.iot_connect.v1.DeviceState",
          "description": "Статус устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "state_key_type",
              "description": "Тип статуса устройства",
              "label": "",
              "type": "KeyType",
              "longType": "DeviceState.KeyType",
              "fullType": "keyapis.iot_connect.v1.DeviceState.KeyType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "value",
              "description": "Значение статуса устройства",
              "label": "",
              "type": "Value",
              "longType": "DeviceState.Value",
              "fullType": "keyapis.iot_connect.v1.DeviceState.Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Value",
          "longName": "DeviceState.Value",
          "fullName": "keyapis.iot_connect.v1.DeviceState.Value",
          "description": "Значение статуса устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "type",
              "description": "Тип значения статуса устройства",
              "label": "",
              "type": "Type",
              "longType": "DeviceState.Value.Type",
              "fullType": "keyapis.iot_connect.v1.DeviceState.Value.Type",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "is_value",
              "description": "Значение логического типа",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "value",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "DeviceStateArray",
          "longName": "DeviceStateArray",
          "fullName": "keyapis.iot_connect.v1.DeviceStateArray",
          "description": "Массив статусов устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "states",
              "description": "Статусы устройства",
              "label": "repeated",
              "type": "DeviceState",
              "longType": "DeviceState",
              "fullType": "keyapis.iot_connect.v1.DeviceState",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetCallbackDevicesRequest",
          "longName": "GetCallbackDevicesRequest",
          "fullName": "keyapis.iot_connect.v1.GetCallbackDevicesRequest",
          "description": "Запрос метода получения устройств, доступных пользователю",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "GetCallbackDevicesResponse",
          "longName": "GetCallbackDevicesResponse",
          "fullName": "keyapis.iot_connect.v1.GetCallbackDevicesResponse",
          "description": "Ответ на запрос метода получения устройств, доступных пользователю",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Домофоны, доступные пользователю",
              "label": "repeated",
              "type": "Device",
              "longType": "Device",
              "fullType": "keyapis.iot_connect.v1.Device",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetCallbackUserRequest",
          "longName": "GetCallbackUserRequest",
          "fullName": "keyapis.iot_connect.v1.GetCallbackUserRequest",
          "description": "Запрос метода получения пользователя для соединения аккаунтов",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "GetCallbackUserResponse",
          "longName": "GetCallbackUserResponse",
          "fullName": "keyapis.iot_connect.v1.GetCallbackUserResponse",
          "description": "Ответ на запрос метода получения пользователя для соединения аккаунтов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Идентификатор пользователя",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Model",
          "longName": "Model",
          "fullName": "keyapis.iot_connect.v1.Model",
          "description": "Объект Модель устройства",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор модели",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "manufacturer",
              "description": "Производитель",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "model",
              "description": "Название модели",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "hw_version",
              "description": "Версия оборудования",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "sw_version",
              "description": "Версия прошивки",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "description",
              "description": "Описание",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "category",
              "description": "Категория устройства",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "feature_types",
              "description": "Список функций",
              "label": "repeated",
              "type": "FeatureType",
              "longType": "Model.FeatureType",
              "fullType": "keyapis.iot_connect.v1.Model.FeatureType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            }
          ]
        },
        {
          "name": "PostCallbackCommandRequest",
          "longName": "PostCallbackCommandRequest",
          "fullName": "keyapis.iot_connect.v1.PostCallbackCommandRequest",
          "description": "Запрос на изменение статуса домофона",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "devices",
              "description": "Массив домофонов со статусами",
              "label": "repeated",
              "type": "DevicesEntry",
              "longType": "PostCallbackCommandRequest.DevicesEntry",
              "fullType": "keyapis.iot_connect.v1.PostCallbackCommandRequest.DevicesEntry",
              "ismap": true,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "DevicesEntry",
          "longName": "PostCallbackCommandRequest.DevicesEntry",
          "fullName": "keyapis.iot_connect.v1.PostCallbackCommandRequest.DevicesEntry",
          "description": "",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "key",
              "description": "",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "value",
              "description": "",
              "label": "",
              "type": "DeviceCommandArray",
              "longType": "DeviceCommandArray",
              "fullType": "keyapis.iot_connect.v1.DeviceCommandArray",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "PostCallbackCommandResponse",
          "longName": "PostCallbackCommandResponse",
          "fullName": "keyapis.iot_connect.v1.PostCallbackCommandResponse",
          "description": "Ответ на запрос на изменение статуса домофона",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "PostCallbackQueryRequest",
          "longName": "PostCallbackQueryRequest",
          "fullName": "keyapis.iot_connect.v1.PostCallbackQueryRequest",
          "description": "Запрос статуса домофонов пользователя",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "devices",
              "description": "Массив идентификаторов домофонов пользователя",
              "label": "repeated",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "PostCallbackQueryResponse",
          "longName": "PostCallbackQueryResponse",
          "fullName": "keyapis.iot_connect.v1.PostCallbackQueryResponse",
          "description": "Ответ на запрос статуса домофонов пользователя",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Массив домофонов со статусами",
              "label": "repeated",
              "type": "DataEntry",
              "longType": "PostCallbackQueryResponse.DataEntry",
              "fullType": "keyapis.iot_connect.v1.PostCallbackQueryResponse.DataEntry",
              "ismap": true,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "DataEntry",
          "longName": "PostCallbackQueryResponse.DataEntry",
          "fullName": "keyapis.iot_connect.v1.PostCallbackQueryResponse.DataEntry",
          "description": "",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "key",
              "description": "",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "value",
              "description": "",
              "label": "",
              "type": "DeviceStateArray",
              "longType": "DeviceStateArray",
              "fullType": "keyapis.iot_connect.v1.DeviceStateArray",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "PostCallbackUnlinkRequest",
          "longName": "PostCallbackUnlinkRequest",
          "fullName": "keyapis.iot_connect.v1.PostCallbackUnlinkRequest",
          "description": "Запрос метода разъединения аккаунтов",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "PostCallbackUnlinkResponse",
          "longName": "PostCallbackUnlinkResponse",
          "fullName": "keyapis.iot_connect.v1.PostCallbackUnlinkResponse",
          "description": "Ответ на запрос метода разъединения аккаунтов",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        }
      ],
      "services": [
        {
          "name": "IotConnectCallbackService",
          "longName": "IotConnectCallbackService",
          "fullName": "keyapis.iot_connect.v1.IotConnectCallbackService",
          "description": "Сервис для взаимодействия с внешними партнёрами IoT со стороны партнера",
          "methods": [
            {
              "name": "GetCallbackUser",
              "description": "Метод получения пользователя для соединения аккаунтов.\nИдентификатор пользователя - это subject из токена.\nМетод доступен для: TokenACF: Scope: sber_iot",
              "requestType": "GetCallbackUserRequest",
              "requestLongType": "GetCallbackUserRequest",
              "requestFullType": "keyapis.iot_connect.v1.GetCallbackUserRequest",
              "requestStreaming": false,
              "responseType": "GetCallbackUserResponse",
              "responseLongType": "GetCallbackUserResponse",
              "responseFullType": "keyapis.iot_connect.v1.GetCallbackUserResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/iot_connect/api/v1/callback/user"
                    }
                  ]
                }
              }
            },
            {
              "name": "PostCallbackUnlink",
              "description": "Метод разъединения аккаунтов.\nИдентификатор пользователя - это subject из токена.\nМетод доступен для: TokenACF: Scope: sber_iot",
              "requestType": "PostCallbackUnlinkRequest",
              "requestLongType": "PostCallbackUnlinkRequest",
              "requestFullType": "keyapis.iot_connect.v1.PostCallbackUnlinkRequest",
              "requestStreaming": false,
              "responseType": "PostCallbackUnlinkResponse",
              "responseLongType": "PostCallbackUnlinkResponse",
              "responseFullType": "keyapis.iot_connect.v1.PostCallbackUnlinkResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/iot_connect/api/v1/callback/unlink"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetCallbackDevices",
              "description": "Метод получения устройств, доступных пользователю.\nИдентификатор пользователя - это subject из токена.\nМетод доступен для: TokenACF: Scope: sber_iot",
              "requestType": "GetCallbackDevicesRequest",
              "requestLongType": "GetCallbackDevicesRequest",
              "requestFullType": "keyapis.iot_connect.v1.GetCallbackDevicesRequest",
              "requestStreaming": false,
              "responseType": "GetCallbackDevicesResponse",
              "responseLongType": "GetCallbackDevicesResponse",
              "responseFullType": "keyapis.iot_connect.v1.GetCallbackDevicesResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/iot_connect/api/v1/callback/devices"
                    }
                  ]
                }
              }
            },
            {
              "name": "PostCallbackQuery",
              "description": "Зачем.\nМетод получения состояния устройства.\nИдентификатор пользователя - это subject из токена.\nМетод доступен для: TokenACF: Scope: sber_iot",
              "requestType": "PostCallbackQueryRequest",
              "requestLongType": "PostCallbackQueryRequest",
              "requestFullType": "keyapis.iot_connect.v1.PostCallbackQueryRequest",
              "requestStreaming": false,
              "responseType": "PostCallbackQueryResponse",
              "responseLongType": "PostCallbackQueryResponse",
              "responseFullType": "keyapis.iot_connect.v1.PostCallbackQueryResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/iot_connect/api/v1/callback/query",
                      "body": "*"
                    }
                  ]
                }
              }
            },
            {
              "name": "PostCallbackCommand",
              "description": "Метод запроса внешнего IoT партнёра на изменение состояния устройства.\nПоддерживается только открытие домофона.\nМетод доступен для: TokenACF: Scope: sber_iot",
              "requestType": "PostCallbackCommandRequest",
              "requestLongType": "PostCallbackCommandRequest",
              "requestFullType": "keyapis.iot_connect.v1.PostCallbackCommandRequest",
              "requestStreaming": false,
              "responseType": "PostCallbackCommandResponse",
              "responseLongType": "PostCallbackCommandResponse",
              "responseFullType": "keyapis.iot_connect.v1.PostCallbackCommandResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/iot_connect/api/v1/callback/command"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "syntax": "proto3"
    }
  ],
  "scalarValueTypes": [
    {
      "protoType": "double",
      "notes": "",
      "cppType": "double",
      "csType": "double",
      "goType": "float64",
      "javaType": "double",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "float",
      "notes": "",
      "cppType": "float",
      "csType": "float",
      "goType": "float32",
      "javaType": "float",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "int32",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "int64",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "uint32",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "uint64",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint32",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint64",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "fixed32",
      "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "fixed64",
      "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "sfixed32",
      "notes": "Always four bytes.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sfixed64",
      "notes": "Always eight bytes.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "bool",
      "notes": "",
      "cppType": "bool",
      "csType": "bool",
      "goType": "bool",
      "javaType": "boolean",
      "phpType": "boolean",
      "pythonType": "boolean",
      "rubyType": "TrueClass/FalseClass"
    },
    {
      "protoType": "string",
      "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.",
      "cppType": "string",
      "csType": "string",
      "goType": "string",
      "javaType": "String",
      "phpType": "string",
      "pythonType": "str/unicode",
      "rubyType": "String (UTF-8)"
    },
    {
      "protoType": "bytes",
      "notes": "May contain any arbitrary sequence of bytes.",
      "cppType": "string",
      "csType": "ByteString",
      "goType": "[]byte",
      "javaType": "ByteString",
      "phpType": "string",
      "pythonType": "str",
      "rubyType": "String (ASCII-8BIT)"
    }
  ]
}