{
  "files": [
    {
      "name": "keyapis/access_control/v1/keyapis_access_control_rfid_v1.proto",
      "description": "Сервис ключей",
      "package": "keyapis.access_control.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "HolderType",
          "longName": "Rfid.HolderType",
          "fullName": "keyapis.access_control.v1.Rfid.HolderType",
          "description": "Тип владельца ключа",
          "values": [
            {
              "name": "HOLDER_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "MASTER",
              "number": "1",
              "description": "Жилец"
            },
            {
              "name": "COMPANY",
              "number": "2",
              "description": "Сотрудник УК"
            },
            {
              "name": "EXTERNAL_SELLER",
              "number": "3",
              "description": "Ключ сотрудника ГАП"
            },
            {
              "name": "SYSTEM",
              "number": "4",
              "description": "Системный ключ"
            }
          ]
        },
        {
          "name": "PayType",
          "longName": "Rfid.PayType",
          "fullName": "keyapis.access_control.v1.Rfid.PayType",
          "description": "Тип оплаты",
          "values": [
            {
              "name": "PAY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "PAID",
              "number": "1",
              "description": "Платный"
            },
            {
              "name": "FREE",
              "number": "2",
              "description": "Бесплатный"
            }
          ]
        },
        {
          "name": "DirectionType",
          "longName": "RfidPaging.DirectionType",
          "fullName": "keyapis.access_control.v1.RfidPaging.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": "RfidPaging.OrderByType",
          "fullName": "keyapis.access_control.v1.RfidPaging.OrderByType",
          "description": "Справочник типов значений сортировки.\n# Тип: byte",
          "values": [
            {
              "name": "ORDER_BY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "CREATED_AT",
              "number": "1",
              "description": "По времени создания"
            },
            {
              "name": "CHANGED_AT",
              "number": "2",
              "description": "По времени изменения"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "DeleteRfidRequest",
          "longName": "DeleteRfidRequest",
          "fullName": "keyapis.access_control.v1.DeleteRfidRequest",
          "description": "Запрос удаления ключа",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор ключа.\n# Диапазон: 0..2147483647",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "is_force_delete",
              "description": "Флаг принудительного удаления ключа.\nПри принудительном удалении не гарантируется удаление ключа со всех физических устройств",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "DeleteRfidResponse",
          "longName": "DeleteRfidResponse",
          "fullName": "keyapis.access_control.v1.DeleteRfidResponse",
          "description": "Ответ на запрос удаления ключа",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "DeleteRfidResponse.Error",
              "fullType": "keyapis.access_control.v1.DeleteRfidResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Error",
          "longName": "DeleteRfidResponse.Error",
          "fullName": "keyapis.access_control.v1.DeleteRfidResponse.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": "GetRfidCountRequest",
          "longName": "GetRfidCountRequest",
          "fullName": "keyapis.access_control.v1.GetRfidCountRequest",
          "description": "Запрос получения количества ключей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "RfidFilter",
              "longType": "RfidFilter",
              "fullType": "keyapis.access_control.v1.RfidFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetRfidCountResponse",
          "longName": "GetRfidCountResponse",
          "fullName": "keyapis.access_control.v1.GetRfidCountResponse",
          "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": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetRfidCountResponse.Error",
              "fullType": "keyapis.access_control.v1.GetRfidCountResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetRfidCountResponse.Error",
          "fullName": "keyapis.access_control.v1.GetRfidCountResponse.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": "GetRfidListRequest",
          "longName": "GetRfidListRequest",
          "fullName": "keyapis.access_control.v1.GetRfidListRequest",
          "description": "Запрос получения списка ключей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "RfidFilter",
              "longType": "RfidFilter",
              "fullType": "keyapis.access_control.v1.RfidFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "paging",
              "description": "Стандартный постраничный вывод",
              "label": "",
              "type": "RfidPaging",
              "longType": "RfidPaging",
              "fullType": "keyapis.access_control.v1.RfidPaging",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "pagination",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetRfidListResponse",
          "longName": "GetRfidListResponse",
          "fullName": "keyapis.access_control.v1.GetRfidListResponse",
          "description": "Ответ на запрос получения списка ключей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Ключ",
              "label": "",
              "type": "Rfid",
              "longType": "Rfid",
              "fullType": "keyapis.access_control.v1.Rfid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetRfidListResponse.Error",
              "fullType": "keyapis.access_control.v1.GetRfidListResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetRfidListResponse.Error",
          "fullName": "keyapis.access_control.v1.GetRfidListResponse.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": "GetRfidRequest",
          "longName": "GetRfidRequest",
          "fullName": "keyapis.access_control.v1.GetRfidRequest",
          "description": "Запрос получения ключа",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор ключа.\n# Диапазон: 0..2147483647",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetRfidResponse",
          "longName": "GetRfidResponse",
          "fullName": "keyapis.access_control.v1.GetRfidResponse",
          "description": "Ответ на запрос получения ключа",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Ключ",
              "label": "",
              "type": "Rfid",
              "longType": "Rfid",
              "fullType": "keyapis.access_control.v1.Rfid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetRfidResponse.Error",
              "fullType": "keyapis.access_control.v1.GetRfidResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetRfidResponse.Error",
          "fullName": "keyapis.access_control.v1.GetRfidResponse.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": "PostRfidRequest",
          "longName": "PostRfidRequest",
          "fullName": "keyapis.access_control.v1.PostRfidRequest",
          "description": "Запрос создания ключа",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Ключ",
              "label": "",
              "type": "Rfid",
              "longType": "Rfid",
              "fullType": "keyapis.access_control.v1.Rfid",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "PostRfidResponse",
          "longName": "PostRfidResponse",
          "fullName": "keyapis.access_control.v1.PostRfidResponse",
          "description": "Ответ на запрос создания ключа",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Ключ",
              "label": "",
              "type": "Rfid",
              "longType": "Rfid",
              "fullType": "keyapis.access_control.v1.Rfid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "PostRfidResponse.Error",
              "fullType": "keyapis.access_control.v1.PostRfidResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "PostRfidResponse.Error",
          "fullName": "keyapis.access_control.v1.PostRfidResponse.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": "saving",
              "description": "Ошибка сохранения",
              "label": "",
              "type": "SavingError",
              "longType": "Rfid.SavingError",
              "fullType": "keyapis.access_control.v1.Rfid.SavingError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Rfid",
          "longName": "Rfid",
          "fullName": "keyapis.access_control.v1.Rfid",
          "description": "Ключ.\n# Описание модели",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор ключа.\n# Диапазон: 0..2147483647",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "user_id",
              "description": "Идентификатор пользователя",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "description",
              "description": "Системное описание.\nОбычно оставляет УК/Админ, пользователь его не видет",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "company_id",
              "description": "Идентификатор компании",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "creator_id",
              "description": "Идентификатор создателя",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "key",
              "description": "Код ключа (UID).\nУникальное значение.\n# Паттерн: /^[0-9a-fA-F]{1,14}$/",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 6
            },
            {
              "name": "pay_type",
              "description": "Тип оплаты",
              "label": "",
              "type": "PayType",
              "longType": "Rfid.PayType",
              "fullType": "keyapis.access_control.v1.Rfid.PayType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 7
            },
            {
              "name": "holder_type",
              "description": "Тип владельца ключа",
              "label": "",
              "type": "HolderType",
              "longType": "Rfid.HolderType",
              "fullType": "keyapis.access_control.v1.Rfid.HolderType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 8
            },
            {
              "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": 9
            },
            {
              "name": "changed_at",
              "description": "Дата обновления.\n# Тип: DateTime?",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 10
            },
            {
              "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": 11
            },
            {
              "name": "room_number",
              "description": "Номер квартиры.\n# Диапазон: 1..4",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 12
            }
          ]
        },
        {
          "name": "SavingError",
          "longName": "Rfid.SavingError",
          "fullName": "keyapis.access_control.v1.Rfid.SavingError",
          "description": "Ошибка сохранения ключа.\nЭти проверки выполняются при работе с базой данных и сторонними сервисами",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "conflict",
              "description": "Конфликт версий",
              "label": "",
              "type": "Conflict",
              "longType": "Rfid.SavingError.Conflict",
              "fullType": "keyapis.access_control.v1.Rfid.SavingError.Conflict",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "key_exist",
              "description": "Данный ключ уже существует",
              "label": "",
              "type": "KeyExist",
              "longType": "Rfid.SavingError.KeyExist",
              "fullType": "keyapis.access_control.v1.Rfid.SavingError.KeyExist",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "key_code_cannot_be_changed",
              "description": "Нельзя изменить код ключа",
              "label": "",
              "type": "KeyCodeCannotBeChanged",
              "longType": "Rfid.SavingError.KeyCodeCannotBeChanged",
              "fullType": "keyapis.access_control.v1.Rfid.SavingError.KeyCodeCannotBeChanged",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "exceeded_quantity_of_keys_for_room",
              "description": "Превышено максимально допустимое количество ключей (16) для квартиры",
              "label": "",
              "type": "ExceededQuantityOfKeysForRoom",
              "longType": "Rfid.SavingError.ExceededQuantityOfKeysForRoom",
              "fullType": "keyapis.access_control.v1.Rfid.SavingError.ExceededQuantityOfKeysForRoom",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "key_is_used",
              "description": "Ключ используется на другой квартире",
              "label": "",
              "type": "KeyIsUsed",
              "longType": "Rfid.SavingError.KeyIsUsed",
              "fullType": "keyapis.access_control.v1.Rfid.SavingError.KeyIsUsed",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "holder_type_forbidden",
              "description": "Нельзя создавать / изменять ключ с переданным типом владельца",
              "label": "",
              "type": "HolderTypeForbidden",
              "longType": "Rfid.SavingError.HolderTypeForbidden",
              "fullType": "keyapis.access_control.v1.Rfid.SavingError.HolderTypeForbidden",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 6
            }
          ]
        },
        {
          "name": "Conflict",
          "longName": "Rfid.SavingError.Conflict",
          "fullName": "keyapis.access_control.v1.Rfid.SavingError.Conflict",
          "description": "Конфликт версий.\nПричины:\n- В базе хранится другая версия строки, значения changed_at отличаются",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "ExceededQuantityOfKeysForRoom",
          "longName": "Rfid.SavingError.ExceededQuantityOfKeysForRoom",
          "fullName": "keyapis.access_control.v1.Rfid.SavingError.ExceededQuantityOfKeysForRoom",
          "description": "Превышено максимально допустимое количество ключей (16) для квартиры",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "HolderTypeForbidden",
          "longName": "Rfid.SavingError.HolderTypeForbidden",
          "fullName": "keyapis.access_control.v1.Rfid.SavingError.HolderTypeForbidden",
          "description": "Нельзя создавать / изменять ключ с переданным типом владельца.\nДоступные типы владельца:\n- Жилец (мастер)",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "KeyCodeCannotBeChanged",
          "longName": "Rfid.SavingError.KeyCodeCannotBeChanged",
          "fullName": "keyapis.access_control.v1.Rfid.SavingError.KeyCodeCannotBeChanged",
          "description": "Нельзя изменить код ключа.\nПричины:\n- При изменении ключа нельзя менять поле key (код ключа)",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "KeyExist",
          "longName": "Rfid.SavingError.KeyExist",
          "fullName": "keyapis.access_control.v1.Rfid.SavingError.KeyExist",
          "description": "Данный ключ уже существует.\nПричины:\n- При попытке создания ключа в системе уже существует ключ с таким же кодом",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "KeyIsUsed",
          "longName": "Rfid.SavingError.KeyIsUsed",
          "fullName": "keyapis.access_control.v1.Rfid.SavingError.KeyIsUsed",
          "description": "Ключ используется на другой квартире",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "RfidFilter",
          "longName": "RfidFilter",
          "fullName": "keyapis.access_control.v1.RfidFilter",
          "description": "Фильтр по ключам",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "holder_types",
              "description": "По типам владельца",
              "label": "repeated",
              "type": "HolderType",
              "longType": "Rfid.HolderType",
              "fullType": "keyapis.access_control.v1.Rfid.HolderType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "pay_types",
              "description": "По типам оплаты",
              "label": "repeated",
              "type": "PayType",
              "longType": "Rfid.PayType",
              "fullType": "keyapis.access_control.v1.Rfid.PayType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "orpons",
              "description": "По ОРПОНам",
              "label": "repeated",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "room_numbers",
              "description": "По номерам квартир",
              "label": "repeated",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "user_ids",
              "description": "По идентификаторам пользователей",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "company_ids",
              "description": "По идентификаторам компаний",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "keys",
              "description": "По кодам ключа",
              "label": "repeated",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            }
          ]
        },
        {
          "name": "RfidPaging",
          "longName": "RfidPaging",
          "fullName": "keyapis.access_control.v1.RfidPaging",
          "description": "Постраничный вывод",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "order_by_type",
              "description": "Тип значения сортировки.\nЕсли значение не передано, то будет взято значение по умолчанию.\n# По умолчанию: CHANGED_AT",
              "label": "",
              "type": "OrderByType",
              "longType": "RfidPaging.OrderByType",
              "fullType": "keyapis.access_control.v1.RfidPaging.OrderByType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "direction_type",
              "description": "Тип направления сортировки.\n# По умолчанию: DESC",
              "label": "",
              "type": "DirectionType",
              "longType": "RfidPaging.DirectionType",
              "fullType": "keyapis.access_control.v1.RfidPaging.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
            }
          ]
        }
      ],
      "services": [
        {
          "name": "RfidService",
          "longName": "RfidService",
          "fullName": "keyapis.access_control.v1.RfidService",
          "description": "Сервис ключей",
          "methods": [
            {
              "name": "GetRfid",
              "description": "Метод получения ключа.\nМетод доступен для: admin, service, ltp_first, owner, employee",
              "requestType": "GetRfidRequest",
              "requestLongType": "GetRfidRequest",
              "requestFullType": "keyapis.access_control.v1.GetRfidRequest",
              "requestStreaming": false,
              "responseType": "GetRfidResponse",
              "responseLongType": "GetRfidResponse",
              "responseFullType": "keyapis.access_control.v1.GetRfidResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/rfid/{id}"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetRfidList",
              "description": "Метод получения списка ключей.\nМетод доступен для: admin, service, ltp_first, owner, employee",
              "requestType": "GetRfidListRequest",
              "requestLongType": "GetRfidListRequest",
              "requestFullType": "keyapis.access_control.v1.GetRfidListRequest",
              "requestStreaming": false,
              "responseType": "GetRfidListResponse",
              "responseLongType": "GetRfidListResponse",
              "responseFullType": "keyapis.access_control.v1.GetRfidListResponse",
              "responseStreaming": true,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/rfid/list"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetRfidCount",
              "description": "Метод получения количества ключей.\nМетод доступен для: admin, service, ltp_first, owner, employee",
              "requestType": "GetRfidCountRequest",
              "requestLongType": "GetRfidCountRequest",
              "requestFullType": "keyapis.access_control.v1.GetRfidCountRequest",
              "requestStreaming": false,
              "responseType": "GetRfidCountResponse",
              "responseLongType": "GetRfidCountResponse",
              "responseFullType": "keyapis.access_control.v1.GetRfidCountResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/access_control/api/v1/rfid/count"
                    }
                  ]
                }
              }
            },
            {
              "name": "PostRfid",
              "description": "Метод создания ключа.\nМетод доступен для: admin, service, ltp_first, owner, employee",
              "requestType": "PostRfidRequest",
              "requestLongType": "PostRfidRequest",
              "requestFullType": "keyapis.access_control.v1.PostRfidRequest",
              "requestStreaming": false,
              "responseType": "PostRfidResponse",
              "responseLongType": "PostRfidResponse",
              "responseFullType": "keyapis.access_control.v1.PostRfidResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/access_control/api/v1/rfid",
                      "body": "*"
                    }
                  ]
                }
              }
            },
            {
              "name": "DeleteRfid",
              "description": "Метод удаления ключа.\nМетод доступен для: admin, service, ltp_first, owner, employee",
              "requestType": "DeleteRfidRequest",
              "requestLongType": "DeleteRfidRequest",
              "requestFullType": "keyapis.access_control.v1.DeleteRfidRequest",
              "requestStreaming": false,
              "responseType": "DeleteRfidResponse",
              "responseLongType": "DeleteRfidResponse",
              "responseFullType": "keyapis.access_control.v1.DeleteRfidResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "DELETE",
                      "pattern": "/access_control/api/v1/rfid/{id}"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}