{
  "files": [
    {
      "name": "keyapis/access_control/v1/keyapis_access_control_building_v1.proto",
      "description": "Сервис домов",
      "package": "keyapis.access_control.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "DirectionType",
          "longName": "BuildingPaging.DirectionType",
          "fullName": "keyapis.access_control.v1.BuildingPaging.DirectionType",
          "description": "Справочник типов направлений сортировки.\n# Тип: byte",
          "values": [
            {
              "name": "DIRECTION_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "DESC",
              "number": "1",
              "description": "От большего к меньшему"
            },
            {
              "name": "ASC",
              "number": "2",
              "description": "От меньшего к большему"
            }
          ]
        },
        {
          "name": "OrderByType",
          "longName": "BuildingPaging.OrderByType",
          "fullName": "keyapis.access_control.v1.BuildingPaging.OrderByType",
          "description": "Справочник типов значений сортировки.\n# Тип: byte",
          "values": [
            {
              "name": "ORDER_BY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ID",
              "number": "1",
              "description": "По идентификатору"
            },
            {
              "name": "CREATED_AT",
              "number": "2",
              "description": "По времени создания"
            },
            {
              "name": "STREET_THEN_NUMBER_THEN_PART",
              "number": "3",
              "description": "По улице, номеру дома, корпусу"
            }
          ]
        },
        {
          "name": "SubscriptionModeType",
          "longName": "BuildingSubscriptionMode.SubscriptionModeType",
          "fullName": "keyapis.access_control.v1.BuildingSubscriptionMode.SubscriptionModeType",
          "description": "Справочник режимов работы с подписками",
          "values": [
            {
              "name": "SUBSCRIPTION_MODE_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ENABLED",
              "number": "1",
              "description": "Режим работы с подписками включен на всех помещениях дома"
            },
            {
              "name": "PARTIALLY_ENABLED",
              "number": "2",
              "description": "Режим работы с подписками включен на некоторых помещениях дома"
            },
            {
              "name": "DISABLED",
              "number": "3",
              "description": "Режим работы с подписками выключен на всех помещениях дома"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "Building",
          "longName": "Building",
          "fullName": "keyapis.access_control.v1.Building",
          "description": "Дом",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор дома",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "rf_id",
              "description": "Идентификатор РФ",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "mrf_id",
              "description": "Идентификатор МРФ",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 3
            },
            {
              "name": "orpon",
              "description": "ОРПОН",
              "label": "",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 4
            },
            {
              "name": "city",
              "description": "Город",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 5
            },
            {
              "name": "street",
              "description": "Улица",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 6
            },
            {
              "name": "number",
              "description": "Номер дома",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "part",
              "description": "Корпус",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            },
            {
              "name": "company_id",
              "description": "Идентификатор компании",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 9
            },
            {
              "name": "prefix",
              "description": "Префикс",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 10
            },
            {
              "name": "created_at",
              "description": "Дата создания.\n# Тип: DateTime",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 11
            },
            {
              "name": "deleted_at",
              "description": "Дата удаления.\n# Тип: DateTime",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 12
            },
            {
              "name": "flatgramm_id",
              "description": "Идентификатор квартирограммы",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 13
            },
            {
              "name": "city_orpon",
              "description": "ОРПОН города, в котором находится дом",
              "label": "",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 14
            },
            {
              "name": "fias",
              "description": "Идентификатор в федеральной информационной адресной системе.\nТип: Guid",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 15
            },
            {
              "name": "district",
              "description": "Наименование района города.\n# Диапазон: 0..200",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 16
            },
            {
              "name": "unom",
              "description": "Уникальный номер адреса.\n# Диапазон: 0..9999999999",
              "label": "",
              "type": "Int64Value",
              "longType": "google.protobuf.Int64Value",
              "fullType": "google.protobuf.Int64Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 17
            },
            {
              "name": "region_orpon",
              "description": "ОРПОН региона",
              "label": "",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 18
            },
            {
              "name": "utc_offset",
              "description": "Смещение таймзоны в минутах.\n# Диапазон: -720..840",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 19
            },
            {
              "name": "is_key_purchase_possible_in_sale_points",
              "description": "Флаг указывает на то могут ли жители этого дома приобрести ключи домофона в партнёрских салонах или на маркетплейсах",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 20
            },
            {
              "name": "is_key_purchase_possible_in_management_company",
              "description": "Флаг указывает на то могут ли жители этого дома приобретать ключи через управляющую компанию",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 21
            },
            {
              "name": "is_key_purchase_possible_in_intercom_company",
              "description": "Флаг указывает на то могут ли жители этого дома приобрести ключи напрямую у домофонной компании",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 22
            },
            {
              "name": "is_rfid_mifare_supported",
              "description": "Флаг указывает на то поддерживает ли дом использование RFID-меток с типом MIFARE",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 23
            },
            {
              "name": "area",
              "description": "Наименование муниципального района.\n# Диапазон: 0..64",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 24
            },
            {
              "name": "area_orpon",
              "description": "ОРПОН муниципального района.\n# Диапазон: 0..9999999999",
              "label": "",
              "type": "Int64Value",
              "longType": "google.protobuf.Int64Value",
              "fullType": "google.protobuf.Int64Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 25
            },
            {
              "name": "area_kladr",
              "description": "КЛАДР муниципального района.\n# Диапазон: 0..32",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 26
            },
            {
              "name": "capital_marker",
              "description": "Признак принадлежности населённого пункта к столичному статусу.\n1 — центр района.\n2 — центр региона.\n3 — центр района и региона.\n4 — центральный район региона.\n0 — ничего из перечисленного.\n# Диапазон: 0..4",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 27
            },
            {
              "name": "city_kladr",
              "description": "КЛАДР-код города.\n# Диапазон: 0..17",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 28
            },
            {
              "name": "kladr",
              "description": "КЛАДР-код строения.\n# Диапазон: 0..17",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 29
            },
            {
              "name": "fias_level",
              "description": "Уровень детализации, до которого адрес найден в ФИАС.\n0 — страна.\n1 — регион.\n3 — район.\n4 — город.\n5 — район города.\n6 — населенный пункт.\n7 — улица.\n8 — дом.\n9 — квартира.\n65 — планировочная структура.\n90 — доп. территория.\n91 — улица в доп. территории.\n-1 — иностранный или пустой.\n# Диапазон: -1..99",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 30
            },
            {
              "name": "fias_actuality_state",
              "description": "Уровень детализации, до которого адрес найден в ФИАС.\n0 — актуальный.\n1-50 — переименован.\n51 — переподчинен.\n99 — удален.\n# Диапазон: 0..99",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 31
            },
            {
              "name": "geo_lat",
              "description": "Координаты: широта",
              "label": "",
              "type": "DoubleValue",
              "longType": "google.protobuf.DoubleValue",
              "fullType": "google.protobuf.DoubleValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 32
            },
            {
              "name": "geo_lon",
              "description": "Координаты: долгота",
              "label": "",
              "type": "DoubleValue",
              "longType": "google.protobuf.DoubleValue",
              "fullType": "google.protobuf.DoubleValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 33
            },
            {
              "name": "okato",
              "description": "Код ОКАТО",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 34
            },
            {
              "name": "oktmo",
              "description": "Код ОКТМО",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 35
            },
            {
              "name": "postal_code",
              "description": "Почтовый индекс",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 36
            },
            {
              "name": "region",
              "description": "Наименование региона.\n# Диапазон: 0..64",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 37
            },
            {
              "name": "region_kladr",
              "description": "КЛАДР-код региона.\n# Диапазон: 0..32",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 38
            },
            {
              "name": "street_kladr",
              "description": "КЛАДР-код улицы.\n# Диапазон: 0..32",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 39
            },
            {
              "name": "street_orpon",
              "description": "ОРПОН улицы.\n# Диапазон: 0..9999999999",
              "label": "",
              "type": "Int64Value",
              "longType": "google.protobuf.Int64Value",
              "fullType": "google.protobuf.Int64Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 40
            }
          ]
        },
        {
          "name": "BuildingFilter",
          "longName": "BuildingFilter",
          "fullName": "keyapis.access_control.v1.BuildingFilter",
          "description": "Фильтр по домам",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "mrf_ids",
              "description": "По идентификаторам МРФ",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "rf_ids",
              "description": "По идентификаторам РФ",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "device_ids",
              "description": "По идентификаторам устройств",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "flatgramm_ids",
              "description": "По идентификаторам квартирограмм",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "orpons",
              "description": "По орпонам",
              "label": "repeated",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            }
          ]
        },
        {
          "name": "BuildingPaging",
          "longName": "BuildingPaging",
          "fullName": "keyapis.access_control.v1.BuildingPaging",
          "description": "Постраничный вывод",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "order_by_type",
              "description": "Тип значения сортировки.\nЕсли значение не передано, то будет взято значение по умолчанию.\n# По умолчанию: CREATED_AT",
              "label": "",
              "type": "OrderByType",
              "longType": "BuildingPaging.OrderByType",
              "fullType": "keyapis.access_control.v1.BuildingPaging.OrderByType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "direction_type",
              "description": "Тип направления сортировки.\n# По умолчанию: DESC",
              "label": "",
              "type": "DirectionType",
              "longType": "BuildingPaging.DirectionType",
              "fullType": "keyapis.access_control.v1.BuildingPaging.DirectionType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "limit",
              "description": "Количество записей на страницу.\nЕсли значение 0 (не передано), то будет взято значение по умолчанию.\n# Диапазон: 0..100.\n# По умолчанию: 20",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "offset",
              "description": "Сдвиг.\n# Диапазон: 0..2147483647",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            }
          ]
        },
        {
          "name": "BuildingSubscriptionMode",
          "longName": "BuildingSubscriptionMode",
          "fullName": "keyapis.access_control.v1.BuildingSubscriptionMode",
          "description": "Агрегированный статус режима работы с подписками на доме",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "subscription_mode_type",
              "description": "Режим работы с подписками на доме",
              "label": "",
              "type": "SubscriptionModeType",
              "longType": "BuildingSubscriptionMode.SubscriptionModeType",
              "fullType": "keyapis.access_control.v1.BuildingSubscriptionMode.SubscriptionModeType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingCountRequest",
          "longName": "GetBuildingCountRequest",
          "fullName": "keyapis.access_control.v1.GetBuildingCountRequest",
          "description": "Запрос получения количества домов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "BuildingFilter",
              "longType": "BuildingFilter",
              "fullType": "keyapis.access_control.v1.BuildingFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingCountResponse",
          "longName": "GetBuildingCountResponse",
          "fullName": "keyapis.access_control.v1.GetBuildingCountResponse",
          "description": "Ответ на запрос получения количества домов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Количество",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingListRequest",
          "longName": "GetBuildingListRequest",
          "fullName": "keyapis.access_control.v1.GetBuildingListRequest",
          "description": "Запрос получения списка домов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "BuildingFilter",
              "longType": "BuildingFilter",
              "fullType": "keyapis.access_control.v1.BuildingFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "paging",
              "description": "Стандартный постраничный вывод",
              "label": "",
              "type": "BuildingPaging",
              "longType": "BuildingPaging",
              "fullType": "keyapis.access_control.v1.BuildingPaging",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "pagination",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetBuildingListResponse",
          "longName": "GetBuildingListResponse",
          "fullName": "keyapis.access_control.v1.GetBuildingListResponse",
          "description": "Ответ на запрос получения списка домов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Квартира",
              "label": "",
              "type": "Building",
              "longType": "Building",
              "fullType": "keyapis.access_control.v1.Building",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetBuildingListResponse.Error",
              "fullType": "keyapis.access_control.v1.GetBuildingListResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetBuildingListResponse.Error",
          "fullName": "keyapis.access_control.v1.GetBuildingListResponse.Error",
          "description": "Ошибка",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.access_control.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingOrponExistsRequest",
          "longName": "GetBuildingOrponExistsRequest",
          "fullName": "keyapis.access_control.v1.GetBuildingOrponExistsRequest",
          "description": "Запрос проверки существования дома по ОРПОН",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "orpon",
              "description": "ОРПОН дома.\n# Диапазон: 1..9223372036854775807",
              "label": "",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingOrponExistsResponse",
          "longName": "GetBuildingOrponExistsResponse",
          "fullName": "keyapis.access_control.v1.GetBuildingOrponExistsResponse",
          "description": "Ответ на запрос проверки существования дома по ОРПОН",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Результат проверки: true - если дом существует, false - в противном случае",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetBuildingOrponExistsResponse.Error",
              "fullType": "keyapis.access_control.v1.GetBuildingOrponExistsResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetBuildingOrponExistsResponse.Error",
          "fullName": "keyapis.access_control.v1.GetBuildingOrponExistsResponse.Error",
          "description": "Ошибка",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.access_control.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingOrponSubscriptionModeRequest",
          "longName": "GetBuildingOrponSubscriptionModeRequest",
          "fullName": "keyapis.access_control.v1.GetBuildingOrponSubscriptionModeRequest",
          "description": "Запрос получения агрегированного статуса режима работы с подписками дома",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "orpon",
              "description": "ОРПОН.\n# Диапазон: 1..9223372036854775807",
              "label": "",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingOrponSubscriptionModeResponse",
          "longName": "GetBuildingOrponSubscriptionModeResponse",
          "fullName": "keyapis.access_control.v1.GetBuildingOrponSubscriptionModeResponse",
          "description": "Ответ на запрос получения агрегированного статуса режима работы с подписками дома",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Агрегированный статус режима работы с подписками дома",
              "label": "",
              "type": "BuildingSubscriptionMode",
              "longType": "BuildingSubscriptionMode",
              "fullType": "keyapis.access_control.v1.BuildingSubscriptionMode",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetBuildingOrponSubscriptionModeResponse.Error",
              "fullType": "keyapis.access_control.v1.GetBuildingOrponSubscriptionModeResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetBuildingOrponSubscriptionModeResponse.Error",
          "fullName": "keyapis.access_control.v1.GetBuildingOrponSubscriptionModeResponse.Error",
          "description": "Ошибка",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.access_control.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingRequest",
          "longName": "GetBuildingRequest",
          "fullName": "keyapis.access_control.v1.GetBuildingRequest",
          "description": "Запрос получения дома",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор дома",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetBuildingResponse",
          "longName": "GetBuildingResponse",
          "fullName": "keyapis.access_control.v1.GetBuildingResponse",
          "description": "Ответ на запрос получения дома",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Квартира",
              "label": "",
              "type": "Building",
              "longType": "Building",
              "fullType": "keyapis.access_control.v1.Building",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetBuildingResponse.Error",
              "fullType": "keyapis.access_control.v1.GetBuildingResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetBuildingResponse.Error",
          "fullName": "keyapis.access_control.v1.GetBuildingResponse.Error",
          "description": "Ошибка",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.access_control.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        }
      ],
      "services": [
        {
          "name": "BuildingService",
          "longName": "BuildingService",
          "fullName": "keyapis.access_control.v1.BuildingService",
          "description": "Сервис домов",
          "methods": [
            {
              "name": "GetBuilding",
              "description": "Метод получения Дома.\nДля пользователей типов owner, employee: в результат попадают только дома, которые привязаны к компании пользователя или дома квартирограамм привязанных к компании пользователя.\nМетод доступен для: admin, service, owner, employee, seller, external_seller, ltp_first, bti",
              "requestType": "GetBuildingRequest",
              "requestLongType": "GetBuildingRequest",
              "requestFullType": "keyapis.access_control.v1.GetBuildingRequest",
              "requestStreaming": false,
              "responseType": "GetBuildingResponse",
              "responseLongType": "GetBuildingResponse",
              "responseFullType": "keyapis.access_control.v1.GetBuildingResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/building/{id}"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetBuildingList",
              "description": "Метод получения списка домов.\nДля пользователей типов owner, employee: в результат попадают только дома, которые привязаны к компании пользователя или дома квартирограамм привязанных к компании пользователя.\nПри запросе через ApiKey происходит дополнительная фильтрация домов на основе доступности домов для этого ApiKey (фильтрация происходит по доступным AccessPoint для этой группы).\nМетод доступен для: admin, service, owner, employee, ltp_first, bti.\nМетод доступен для: ApiKey",
              "requestType": "GetBuildingListRequest",
              "requestLongType": "GetBuildingListRequest",
              "requestFullType": "keyapis.access_control.v1.GetBuildingListRequest",
              "requestStreaming": false,
              "responseType": "GetBuildingListResponse",
              "responseLongType": "GetBuildingListResponse",
              "responseFullType": "keyapis.access_control.v1.GetBuildingListResponse",
              "responseStreaming": true,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/building/list"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetBuildingCount",
              "description": "Метод получения количества домов.\nДля пользователей типов owner, employee: в результат попадают только дома, которые привязаны к компании пользователя или дома квартирограамм привязанных к компании пользователя.\nМетод доступен для: admin, service, owner, employee, ltp_first, bti",
              "requestType": "GetBuildingCountRequest",
              "requestLongType": "GetBuildingCountRequest",
              "requestFullType": "keyapis.access_control.v1.GetBuildingCountRequest",
              "requestStreaming": false,
              "responseType": "GetBuildingCountResponse",
              "responseLongType": "GetBuildingCountResponse",
              "responseFullType": "keyapis.access_control.v1.GetBuildingCountResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/building/count"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetBuildingOrponSubscriptionMode",
              "description": "Метод получения статуса режима работы с подписками у помещений дома.\nВозвращает агрегированный статус по всем помещениям дома.\nМетод доступен для: admin, service, ltp_first, bti",
              "requestType": "GetBuildingOrponSubscriptionModeRequest",
              "requestLongType": "GetBuildingOrponSubscriptionModeRequest",
              "requestFullType": "keyapis.access_control.v1.GetBuildingOrponSubscriptionModeRequest",
              "requestStreaming": false,
              "responseType": "GetBuildingOrponSubscriptionModeResponse",
              "responseLongType": "GetBuildingOrponSubscriptionModeResponse",
              "responseFullType": "keyapis.access_control.v1.GetBuildingOrponSubscriptionModeResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/building/orpon/{orpon}/subscription_mode"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetBuildingOrponExists",
              "description": "Метод проверки существования дома по ОРПОН.\nВозвращает true если найден дом с указанным ОРПОН.\nМетод доступен для: admin, service",
              "requestType": "GetBuildingOrponExistsRequest",
              "requestLongType": "GetBuildingOrponExistsRequest",
              "requestFullType": "keyapis.access_control.v1.GetBuildingOrponExistsRequest",
              "requestStreaming": false,
              "responseType": "GetBuildingOrponExistsResponse",
              "responseLongType": "GetBuildingOrponExistsResponse",
              "responseFullType": "keyapis.access_control.v1.GetBuildingOrponExistsResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/building/orpon/{orpon}/exists"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}