{
  "files": [
    {
      "name": "deviceapis/device/v1/deviceapis_device_safe_osd_v1.proto",
      "description": "Спецификация АПИ управления сущностью SafeCityOsd",
      "package": "deviceapis.device.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "PlacementType",
          "longName": "SafeCityOsd.PlacementType",
          "fullName": "deviceapis.device.v1.SafeCityOsd.PlacementType",
          "description": "Тип размещения текста",
          "values": [
            {
              "name": "PLACEMENT_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "TOP_LEFT",
              "number": "1",
              "description": "Сверху слева"
            },
            {
              "name": "TOP_RIGHT",
              "number": "2",
              "description": "Сверху справа"
            },
            {
              "name": "BOTTOM_LEFT",
              "number": "3",
              "description": "Снизу слева"
            },
            {
              "name": "BOTTOM_RIGHT",
              "number": "4",
              "description": "Снизу справа"
            }
          ]
        },
        {
          "name": "ShowDatetimeType",
          "longName": "SafeCityOsd.ShowDatetimeType",
          "fullName": "deviceapis.device.v1.SafeCityOsd.ShowDatetimeType",
          "description": "Тип добавления формата даты",
          "values": [
            {
              "name": "SHOW_DATETIME_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ABSENT",
              "number": "1",
              "description": "Формат отсутствует"
            },
            {
              "name": "DAY_TIME",
              "number": "2",
              "description": "День и время yyyy-mm-dd HH:MM:SS"
            },
            {
              "name": "TIME",
              "number": "3",
              "description": "Время HH:MM:SS"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "EditSafeCityOsdRequest",
          "longName": "EditSafeCityOsdRequest",
          "fullName": "deviceapis.device.v1.EditSafeCityOsdRequest",
          "description": "Запрос редактирования настроек OSD",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Настройки OSD",
              "label": "",
              "type": "SafeCityOsd",
              "longType": "SafeCityOsd",
              "fullType": "deviceapis.device.v1.SafeCityOsd",
              "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": "EditSafeCityOsdResponse",
          "longName": "EditSafeCityOsdResponse",
          "fullName": "deviceapis.device.v1.EditSafeCityOsdResponse",
          "description": "Ответ на запрос редактирования настроек OSD",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Настройки OSD",
              "label": "",
              "type": "SafeCityOsd",
              "longType": "SafeCityOsd",
              "fullType": "deviceapis.device.v1.SafeCityOsd",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "EditSafeCityOsdResponse.Error",
              "fullType": "deviceapis.device.v1.EditSafeCityOsdResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "EditSafeCityOsdResponse.Error",
          "fullName": "deviceapis.device.v1.EditSafeCityOsdResponse.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": "GetSafeCityOsdRequest",
          "longName": "GetSafeCityOsdRequest",
          "fullName": "deviceapis.device.v1.GetSafeCityOsdRequest",
          "description": "Запрос получения настроек OSD",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "GetSafeCityOsdResponse",
          "longName": "GetSafeCityOsdResponse",
          "fullName": "deviceapis.device.v1.GetSafeCityOsdResponse",
          "description": "Ответ на запрос получения настроек OSD",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Настройки OSD",
              "label": "",
              "type": "SafeCityOsd",
              "longType": "SafeCityOsd",
              "fullType": "deviceapis.device.v1.SafeCityOsd",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "SafeCityOsd",
          "longName": "SafeCityOsd",
          "fullName": "deviceapis.device.v1.SafeCityOsd",
          "description": "Настройки OSD",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "is_osd_enabled",
              "description": "Флаг включения OSD",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "textline",
              "description": "Текст",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "textsize",
              "description": "Размер текста, пикселей",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "placement_type",
              "description": "Размещение текста",
              "label": "",
              "type": "PlacementType",
              "longType": "SafeCityOsd.PlacementType",
              "fullType": "deviceapis.device.v1.SafeCityOsd.PlacementType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "show_datetime_type",
              "description": "Вариант добавления даты",
              "label": "",
              "type": "ShowDatetimeType",
              "longType": "SafeCityOsd.ShowDatetimeType",
              "fullType": "deviceapis.device.v1.SafeCityOsd.ShowDatetimeType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "is_show_fps",
              "description": "Флаг отображения количества кадров в секунду",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "is_show_bitrate",
              "description": "Флаг отображения битрейта",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "is_show_count_of_streams",
              "description": "Флаг отображения количества потоков",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            },
            {
              "name": "is_show_name_of_device",
              "description": "Флаг отображения имени устройства",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 9
            }
          ]
        }
      ],
      "services": [
        {
          "name": "SafeCityOsdService",
          "longName": "SafeCityOsdService",
          "fullName": "deviceapis.device.v1.SafeCityOsdService",
          "description": "Сервис управления настройками OSD",
          "methods": [
            {
              "name": "EditSafeCityOsd",
              "description": "Метод редактирования настроек OSD",
              "requestType": "EditSafeCityOsdRequest",
              "requestLongType": "EditSafeCityOsdRequest",
              "requestFullType": "deviceapis.device.v1.EditSafeCityOsdRequest",
              "requestStreaming": false,
              "responseType": "EditSafeCityOsdResponse",
              "responseLongType": "EditSafeCityOsdResponse",
              "responseFullType": "deviceapis.device.v1.EditSafeCityOsdResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "PATCH",
                      "pattern": "/device/api/v1/safe_city/osd",
                      "body": "data"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetSafeCityOsd",
              "description": "Метод получения настроек OSD",
              "requestType": "GetSafeCityOsdRequest",
              "requestLongType": "GetSafeCityOsdRequest",
              "requestFullType": "deviceapis.device.v1.GetSafeCityOsdRequest",
              "requestStreaming": false,
              "responseType": "GetSafeCityOsdResponse",
              "responseLongType": "GetSafeCityOsdResponse",
              "responseFullType": "deviceapis.device.v1.GetSafeCityOsdResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/device/api/v1/safe_city/osd"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}