{
  "files": [
    {
      "name": "deviceapis/device/v1/deviceapis_device_video_v1.proto",
      "description": "Сервис управления настройками видеоконфига",
      "package": "deviceapis.device.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "FlowControlModeType",
          "longName": "VideoChannel.FlowControlModeType",
          "fullName": "deviceapis.device.v1.VideoChannel.FlowControlModeType",
          "description": "Режим Flow control mode",
          "values": [
            {
              "name": "FLOW_CONTROL_MODE_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "VBR",
              "number": "1",
              "description": "Режим VBR"
            },
            {
              "name": "CBR",
              "number": "2",
              "description": "Режим CBR"
            },
            {
              "name": "CVBR",
              "number": "3",
              "description": "Режим CVBR"
            },
            {
              "name": "AVBR",
              "number": "4",
              "description": "Режим AVBR"
            },
            {
              "name": "FIXP",
              "number": "5",
              "description": "Режим FIXP"
            },
            {
              "name": "QVBR",
              "number": "6",
              "description": "Режим QVBR"
            }
          ]
        },
        {
          "name": "FormatType",
          "longName": "VideoChannel.FormatType",
          "fullName": "deviceapis.device.v1.VideoChannel.FormatType",
          "description": "Формат видео",
          "values": [
            {
              "name": "FORMAT_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "MPEG",
              "number": "1",
              "description": "Формат mjpeg"
            },
            {
              "name": "H264",
              "number": "2",
              "description": "Формат h.264"
            },
            {
              "name": "H264_PLUS",
              "number": "3",
              "description": "Формат h.264+"
            },
            {
              "name": "H265",
              "number": "4",
              "description": "Формат h.265"
            }
          ]
        },
        {
          "name": "ProfileType",
          "longName": "VideoChannel.ProfileType",
          "fullName": "deviceapis.device.v1.VideoChannel.ProfileType",
          "description": "Профиль",
          "values": [
            {
              "name": "PROFILE_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "PROFILE_HIGH",
              "number": "1",
              "description": "Высокий"
            },
            {
              "name": "PROFILE_MAIN",
              "number": "2",
              "description": "Основной"
            },
            {
              "name": "PROFILE_BASE",
              "number": "3",
              "description": "Базовый"
            }
          ]
        },
        {
          "name": "ResolutionType",
          "longName": "VideoChannel.ResolutionType",
          "fullName": "deviceapis.device.v1.VideoChannel.ResolutionType",
          "description": "Тип разрешения видео",
          "values": [
            {
              "name": "RESOLUTION_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "R2K",
              "number": "1",
              "description": "Тип разрешения 2K 2560*1440"
            },
            {
              "name": "FULLHD",
              "number": "2",
              "description": "Тип разрешения FULLHD 1920*1080"
            },
            {
              "name": "HD",
              "number": "3",
              "description": "Тип разрешения HD 1280*720"
            },
            {
              "name": "SD",
              "number": "4",
              "description": "Тип разрешения SD 720*576"
            },
            {
              "name": "R4CIF",
              "number": "5",
              "description": "Тип разрешения 4CIF 704*576"
            },
            {
              "name": "VGA",
              "number": "6",
              "description": "Тип разрешения VGA 640*480"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "EditVideoChannelRequest",
          "longName": "EditVideoChannelRequest",
          "fullName": "deviceapis.device.v1.EditVideoChannelRequest",
          "description": "Запрос редактирования единичной сущности VideoChannel по ключу",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Настройки видеоконфига",
              "label": "",
              "type": "VideoChannel",
              "longType": "VideoChannel",
              "fullType": "deviceapis.device.v1.VideoChannel",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "update_mask",
              "description": "Маска полей обновления",
              "label": "",
              "type": "FieldMask",
              "longType": "google.protobuf.FieldMask",
              "fullType": "google.protobuf.FieldMask",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "EditVideoChannelResponse",
          "longName": "EditVideoChannelResponse",
          "fullName": "deviceapis.device.v1.EditVideoChannelResponse",
          "description": "Ответ на запрос редактирования единичной сущности VideoChannel по ключу",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Настройки видеоконфига",
              "label": "",
              "type": "VideoChannel",
              "longType": "VideoChannel",
              "fullType": "deviceapis.device.v1.VideoChannel",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "EditVideoChannelResponse.Error",
              "fullType": "deviceapis.device.v1.EditVideoChannelResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "EditVideoChannelResponse.Error",
          "fullName": "deviceapis.device.v1.EditVideoChannelResponse.Error",
          "description": "Ошибка запроса",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "deviceapis.device.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetVideoChannelListRequest",
          "longName": "GetVideoChannelListRequest",
          "fullName": "deviceapis.device.v1.GetVideoChannelListRequest",
          "description": "Запрос получения списка сущностей VideoChannel по фильтру",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "GetVideoChannelListResponse",
          "longName": "GetVideoChannelListResponse",
          "fullName": "deviceapis.device.v1.GetVideoChannelListResponse",
          "description": "Ответ на запрос получения списка сущностей VideoChannel по фильтру",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Список VideoChannel",
              "label": "repeated",
              "type": "VideoChannel",
              "longType": "VideoChannel",
              "fullType": "deviceapis.device.v1.VideoChannel",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "VideoChannel",
          "longName": "VideoChannel",
          "fullName": "deviceapis.device.v1.VideoChannel",
          "description": "Настройки видеоконфига",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "chanel_number",
              "description": "Порядковый номер видеоконфига",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "is_enabled",
              "description": "Флаг активности",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "resolution_type",
              "description": "Тип разрешения видео",
              "label": "",
              "type": "ResolutionType",
              "longType": "VideoChannel.ResolutionType",
              "fullType": "deviceapis.device.v1.VideoChannel.ResolutionType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "format_type",
              "description": "Формат видео",
              "label": "",
              "type": "FormatType",
              "longType": "VideoChannel.FormatType",
              "fullType": "deviceapis.device.v1.VideoChannel.FormatType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "profile_type",
              "description": "Профиль",
              "label": "",
              "type": "ProfileType",
              "longType": "VideoChannel.ProfileType",
              "fullType": "deviceapis.device.v1.VideoChannel.ProfileType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "fps",
              "description": "Частота кадров",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "gop",
              "description": "Периодичность опорного кадра",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "flow_control_mode_type",
              "description": "Режим FlowControlModeType",
              "label": "",
              "type": "FlowControlModeType",
              "longType": "VideoChannel.FlowControlModeType",
              "fullType": "deviceapis.device.v1.VideoChannel.FlowControlModeType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            },
            {
              "name": "biterate",
              "description": "Целевая скорость потока, килобит",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 9
            },
            {
              "name": "is_rtsp_audio",
              "description": "Флаг rtsp_audio",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 10
            },
            {
              "name": "is_used_for_sip",
              "description": "Флаг use for sip",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 11
            }
          ]
        }
      ],
      "services": [
        {
          "name": "VideoChannelService",
          "longName": "VideoChannelService",
          "fullName": "deviceapis.device.v1.VideoChannelService",
          "description": "Сервис управления настройками видеоконфига",
          "methods": [
            {
              "name": "EditVideoChannel",
              "description": "Метод редактирования единичной сущности VideoChannel по ключу",
              "requestType": "EditVideoChannelRequest",
              "requestLongType": "EditVideoChannelRequest",
              "requestFullType": "deviceapis.device.v1.EditVideoChannelRequest",
              "requestStreaming": false,
              "responseType": "EditVideoChannelResponse",
              "responseLongType": "EditVideoChannelResponse",
              "responseFullType": "deviceapis.device.v1.EditVideoChannelResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "PATCH",
                      "pattern": "/device/api/v1/video_channel/{data.chanel_number}",
                      "body": "data"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetVideoChannelList",
              "description": "Метод получения списка сущностей VideoChannel по фильтру",
              "requestType": "GetVideoChannelListRequest",
              "requestLongType": "GetVideoChannelListRequest",
              "requestFullType": "deviceapis.device.v1.GetVideoChannelListRequest",
              "requestStreaming": false,
              "responseType": "GetVideoChannelListResponse",
              "responseLongType": "GetVideoChannelListResponse",
              "responseFullType": "deviceapis.device.v1.GetVideoChannelListResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/device/api/v1/video_channel/list"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}