{
  "files": [
    {
      "name": "keyapis/vc/v1/keyapis_vc_archive_minutes_v1.proto",
      "description": "Сервис управления архивными минутками",
      "package": "keyapis.vc.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [],
      "extensions": [],
      "messages": [
        {
          "name": "ArchiveMinute",
          "longName": "ArchiveMinute",
          "fullName": "keyapis.vc.v1.ArchiveMinute",
          "description": "Информация об архивной минутке",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "company_id",
              "description": "Идентификатор компании",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "camera_uid",
              "description": "Идентификатор камеры",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "channel_uid",
              "description": "Идентификатор канала",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "data",
              "description": "Границы архивной минутки",
              "label": "",
              "type": "ArchiveMinuteInterval",
              "longType": "ArchiveMinuteInterval",
              "fullType": "keyapis.vc.v1.ArchiveMinuteInterval",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "size",
              "description": "Размер",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "md5",
              "description": "Хэш md5",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            }
          ]
        },
        {
          "name": "ArchiveMinuteInterval",
          "longName": "ArchiveMinuteInterval",
          "fullName": "keyapis.vc.v1.ArchiveMinuteInterval",
          "description": "Интервал архивной минутки",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "since_timestamp",
              "description": "Начало минутки.\nДата в формате Unix.\nПример 1598269021.755",
              "label": "",
              "type": "double",
              "longType": "double",
              "fullType": "double",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "till_timestamp",
              "description": "Конец минутки.\nДата в формате Unix.\nПример 1598269021.755",
              "label": "",
              "type": "double",
              "longType": "double",
              "fullType": "double",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "CameraArchiveMinuteIntervals",
          "longName": "CameraArchiveMinuteIntervals",
          "fullName": "keyapis.vc.v1.CameraArchiveMinuteIntervals",
          "description": "Интервалы архивных минуток камеры",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "available",
              "description": "Доступные минутки",
              "label": "repeated",
              "type": "ArchiveMinuteInterval",
              "longType": "ArchiveMinuteInterval",
              "fullType": "keyapis.vc.v1.ArchiveMinuteInterval",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "frozen",
              "description": "Замороженные минутки",
              "label": "repeated",
              "type": "ArchiveMinuteInterval",
              "longType": "ArchiveMinuteInterval",
              "fullType": "keyapis.vc.v1.ArchiveMinuteInterval",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetArchiveMinutesCompanyCameraChannelRequest",
          "longName": "GetArchiveMinutesCompanyCameraChannelRequest",
          "fullName": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelRequest",
          "description": "Запрос получения архивных минуток для канала камеры компании",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "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": 1
            },
            {
              "name": "camera_uid",
              "description": "Идентификатор камеры",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "channel_uid",
              "description": "Идентификатор канала",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 3
            },
            {
              "name": "since_timestamp",
              "description": "Начало промежутка минуток.\nДата в формате Unix.\nПример 1598269021.755.\n# Не превышает: till_timestamp",
              "label": "",
              "type": "DoubleValue",
              "longType": "google.protobuf.DoubleValue",
              "fullType": "google.protobuf.DoubleValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "till_timestamp",
              "description": "Конец промежутка минуток.\nДата в формате Unix.\nПример 1598269021.755",
              "label": "",
              "type": "DoubleValue",
              "longType": "google.protobuf.DoubleValue",
              "fullType": "google.protobuf.DoubleValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            }
          ]
        },
        {
          "name": "GetArchiveMinutesCompanyCameraChannelResponse",
          "longName": "GetArchiveMinutesCompanyCameraChannelResponse",
          "fullName": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelResponse",
          "description": "Ответ на запрос получения архивных минуток для канала камеры компании",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Архивные минутки компании",
              "label": "",
              "type": "CameraArchiveMinuteIntervals",
              "longType": "CameraArchiveMinuteIntervals",
              "fullType": "keyapis.vc.v1.CameraArchiveMinuteIntervals",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetArchiveMinutesCompanyCameraChannelResponse.Error",
              "fullType": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetArchiveMinutesCompanyCameraChannelResponse.Error",
          "fullName": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelResponse.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": "GetArchiveMinutesCompanyCameraChannelTimestampRequest",
          "longName": "GetArchiveMinutesCompanyCameraChannelTimestampRequest",
          "fullName": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampRequest",
          "description": "Запрос получения информации об архивной минутке для канала камеры компании",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "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": 1
            },
            {
              "name": "camera_uid",
              "description": "Идентификатор камеры",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "channel_uid",
              "description": "Идентификатор канала",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 3
            },
            {
              "name": "timestamp_value",
              "description": "Метка времени архивной минутки.\nБерется та минутка, которая попадает этой меткой времени в границы интервала архивной архивной минутки.\nДата в формате Unix.\nПример 1598269021",
              "label": "",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 4
            }
          ]
        },
        {
          "name": "GetArchiveMinutesCompanyCameraChannelTimestampResponse",
          "longName": "GetArchiveMinutesCompanyCameraChannelTimestampResponse",
          "fullName": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampResponse",
          "description": "Ответ на запрос получения информации об архивной минутке для канала камеры компании",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Информация об архивной минутке",
              "label": "",
              "type": "ArchiveMinute",
              "longType": "ArchiveMinute",
              "fullType": "keyapis.vc.v1.ArchiveMinute",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetArchiveMinutesCompanyCameraChannelTimestampResponse.Error",
              "fullType": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetArchiveMinutesCompanyCameraChannelTimestampResponse.Error",
          "fullName": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.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": "vcfront_service_error",
              "description": "Ошибка взаимодействия с сервисом vcfront",
              "label": "",
              "type": "VcfrontServiceError",
              "longType": "GetArchiveMinutesCompanyCameraChannelTimestampResponse.Error.VcfrontServiceError",
              "fullType": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Error.VcfrontServiceError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "VcfrontServiceError",
          "longName": "GetArchiveMinutesCompanyCameraChannelTimestampResponse.Error.VcfrontServiceError",
          "fullName": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Error.VcfrontServiceError",
          "description": "Ошибка взаимодействия с сервисом vcfront",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "text",
              "description": "Текст ошибки",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        }
      ],
      "services": [
        {
          "name": "ArchiveMinutesService",
          "longName": "ArchiveMinutesService",
          "fullName": "keyapis.vc.v1.ArchiveMinutesService",
          "description": "Сервис управления архивными минутками",
          "methods": [
            {
              "name": "GetArchiveMinutesCompanyCameraChannel",
              "description": "Метод получения архивных минуток для канала камеры компании.\nМетод доступен для: admin, service, bti",
              "requestType": "GetArchiveMinutesCompanyCameraChannelRequest",
              "requestLongType": "GetArchiveMinutesCompanyCameraChannelRequest",
              "requestFullType": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelRequest",
              "requestStreaming": false,
              "responseType": "GetArchiveMinutesCompanyCameraChannelResponse",
              "responseLongType": "GetArchiveMinutesCompanyCameraChannelResponse",
              "responseFullType": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/vc/api/v1/archive_minutes/company/{company_id}/camera/{camera_uid}/channel/{channel_uid}"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetArchiveMinutesCompanyCameraChannelTimestamp",
              "description": "Метод получения информации об архивной минутке для канала камеры компании по метке времени.\nМетод доступен для: admin, service, bti",
              "requestType": "GetArchiveMinutesCompanyCameraChannelTimestampRequest",
              "requestLongType": "GetArchiveMinutesCompanyCameraChannelTimestampRequest",
              "requestFullType": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampRequest",
              "requestStreaming": false,
              "responseType": "GetArchiveMinutesCompanyCameraChannelTimestampResponse",
              "responseLongType": "GetArchiveMinutesCompanyCameraChannelTimestampResponse",
              "responseFullType": "keyapis.vc.v1.GetArchiveMinutesCompanyCameraChannelTimestampResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/vc/api/v1/archive_minutes/company/{company_id}/camera/{camera_uid}/channel/{channel_uid}/timestamp/{timestamp_value}"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}