{
  "files": [
    {
      "name": "keyapis/vc/v1/keyapis_vc_monitoring_v1.proto",
      "description": "Спецификация для получения данных мониторинга",
      "package": "keyapis.vc.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [],
      "extensions": [],
      "messages": [
        {
          "name": "CameraMonitoringBadge",
          "longName": "CameraMonitoringBadge",
          "fullName": "keyapis.vc.v1.CameraMonitoringBadge",
          "description": "Бейдж данных мониторинга камеры",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "color",
              "description": "Цвет",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "title",
              "description": "Наименование",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "additional_data",
              "description": "Дополнительные данные",
              "label": "repeated",
              "type": "AdditionalDataEntry",
              "longType": "CameraMonitoringBadge.AdditionalDataEntry",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge.AdditionalDataEntry",
              "ismap": true,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            }
          ]
        },
        {
          "name": "AdditionalDataEntry",
          "longName": "CameraMonitoringBadge.AdditionalDataEntry",
          "fullName": "keyapis.vc.v1.CameraMonitoringBadge.AdditionalDataEntry",
          "description": "",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "key",
              "description": "",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "value",
              "description": "",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetMonitoringCompanyCameraRequest",
          "longName": "GetMonitoringCompanyCameraRequest",
          "fullName": "keyapis.vc.v1.GetMonitoringCompanyCameraRequest",
          "description": "Запрос на получение данных мониторинга камеры",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "camera_uid",
              "description": "uid видеопотока камеры",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "company_id",
              "description": "Идентификатор компании.\n# Диапазон: 1..2147483647",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            }
          ]
        },
        {
          "name": "GetMonitoringCompanyCameraResponse",
          "longName": "GetMonitoringCompanyCameraResponse",
          "fullName": "keyapis.vc.v1.GetMonitoringCompanyCameraResponse",
          "description": "Ответ на запрос на получение данных мониторинга камеры",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Мониторинг камеры",
              "label": "",
              "type": "MonitoringData",
              "longType": "MonitoringData",
              "fullType": "keyapis.vc.v1.MonitoringData",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetMonitoringCompanyCameraResponse.Error",
              "fullType": "keyapis.vc.v1.GetMonitoringCompanyCameraResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetMonitoringCompanyCameraResponse.Error",
          "fullName": "keyapis.vc.v1.GetMonitoringCompanyCameraResponse.Error",
          "description": "Ошибка запроса",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.vc.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "MonitoringData",
          "longName": "MonitoringData",
          "fullName": "keyapis.vc.v1.MonitoringData",
          "description": "Мониторинг камеры",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "camera_uid",
              "description": "uid видеопотока камеры",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "company_id",
              "description": "Идентификатор компании",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "is_channel_presence",
              "description": "Флаг наличия каналов",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "data_center_name",
              "description": "Название дата-центра",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "vuf_status_badge",
              "description": "Бейдж состояния vuf",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "violet_status_badge",
              "description": "Бейдж состояния фиалки",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "violet_cameras_count_badge",
              "description": "Бейдж кол-ва камер фиалки",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "rose_status_badge",
              "description": "Бейдж кол-ва камер розы",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            },
            {
              "name": "rabbit_status_badge",
              "description": "Бейдж состояния RabbitMQ",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 9
            },
            {
              "name": "vuf_camera_status_badge",
              "description": "Бейдж состояния камеры vuf",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 10
            },
            {
              "name": "camera_receiving_status_badge",
              "description": "Бейдж приёма данных камеры",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 11
            },
            {
              "name": "camera_streaming_status_badge",
              "description": "Бейдж трансляции данных камеры",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 12
            },
            {
              "name": "camera_uptime_status_badge",
              "description": "Бейдж активного времени камеры",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 13
            },
            {
              "name": "camera_uuc_status_badge",
              "description": "Бейдж состояния камеры пользователя",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 14
            },
            {
              "name": "pg_status_badge",
              "description": "Бейдж состояния pg",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 15
            },
            {
              "name": "redis_status_badge",
              "description": "Бейдж состояния redis",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 16
            },
            {
              "name": "camera_online_badge",
              "description": "Бейдж онлайн состояния камеры",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 17
            },
            {
              "name": "channel_status_badge",
              "description": "Бейдж состояния канала камеры",
              "label": "",
              "type": "CameraMonitoringBadge",
              "longType": "CameraMonitoringBadge",
              "fullType": "keyapis.vc.v1.CameraMonitoringBadge",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 18
            }
          ]
        }
      ],
      "services": [
        {
          "name": "MonitoringService",
          "longName": "MonitoringService",
          "fullName": "keyapis.vc.v1.MonitoringService",
          "description": "Сервис получения данных мониторинга",
          "methods": [
            {
              "name": "GetMonitoringCompanyCamera",
              "description": "Метод получения данных мониторинга камеры.\nМетод доступен для: admin, service, bti",
              "requestType": "GetMonitoringCompanyCameraRequest",
              "requestLongType": "GetMonitoringCompanyCameraRequest",
              "requestFullType": "keyapis.vc.v1.GetMonitoringCompanyCameraRequest",
              "requestStreaming": false,
              "responseType": "GetMonitoringCompanyCameraResponse",
              "responseLongType": "GetMonitoringCompanyCameraResponse",
              "responseFullType": "keyapis.vc.v1.GetMonitoringCompanyCameraResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/vc/api/v1/monitoring/company/{company_id}/camera/{camera_uid}"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}