{
  "files": [
    {
      "name": "keyapis/access_control/v1/keyapis_access_control_broadcast_alert_v1.proto",
      "description": "Сервис массового оповещения через домофоны",
      "package": "keyapis.access_control.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "PlayType",
          "longName": "PostBroadcastAlertStartRequest.PlayType",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStartRequest.PlayType",
          "description": "Тип проигрывания.\n# Тип: byte",
          "values": [
            {
              "name": "PLAY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "HANDSET_ONLY",
              "number": "1",
              "description": "Только на аналоговые трубки"
            },
            {
              "name": "SPEAKER_ONLY",
              "number": "2",
              "description": "Tолько на динамик домофона"
            },
            {
              "name": "HANDSET_AND_SPEAKER",
              "number": "3",
              "description": "Сначала на аналоговые трубки проигрываем заданное количество тактов, затем на динамик домофона"
            },
            {
              "name": "SPEAKER_AND_HANDSET",
              "number": "4",
              "description": "Сначала на динамик домофона проигрываем заданное количество тактов, затем на аналоговые трубки"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "PostBroadcastAlertStartRequest",
          "longName": "PostBroadcastAlertStartRequest",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStartRequest",
          "description": "Запрос на запуск массового оповещения через домофоны",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "sound_file_uri",
              "description": "Ссылка на звуковой файл для проигрывания.\nФайл должен лежать на внутреннем хранилище.\n# Диапазон: 2..100",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "orpons",
              "description": "Массив ОРПОНов домов, на которых запускаем проигрывание.\n# Диапазон: 1..100",
              "label": "repeated",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "tact_play_duration",
              "description": "Длительность воспроизведения такта в секундах.\nТакт включает в себя проигрывание файла на трубках или на динамике.\n# Диапазон: 0..65536",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 3
            },
            {
              "name": "tact_repeat_count",
              "description": "Количество последовательных повторов тактов перед сменой динамика на трубки или наоборот.\n# Диапазон: 0..65536",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 4
            },
            {
              "name": "play_repeat_count",
              "description": "Количество дополнительных повторов тактов, т.е. умолчание=0 - это проигрывание одного такта.\n# Диапазон: 0..65536",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 5
            },
            {
              "name": "play_type",
              "description": "Тип проигрывания",
              "label": "",
              "type": "PlayType",
              "longType": "PostBroadcastAlertStartRequest.PlayType",
              "fullType": "keyapis.access_control.v1.PostBroadcastAlertStartRequest.PlayType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 6
            }
          ]
        },
        {
          "name": "PostBroadcastAlertStartResponse",
          "longName": "PostBroadcastAlertStartResponse",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStartResponse",
          "description": "Ответ на запрос на запуск массового оповещения через домофоны",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "PostBroadcastAlertStartResponse.Error",
              "fullType": "keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Error",
          "longName": "PostBroadcastAlertStartResponse.Error",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStartResponse.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": "sound_file_not_found",
              "description": "Звуковой файл не найден",
              "label": "",
              "type": "SoundFileNotFound",
              "longType": "PostBroadcastAlertStartResponse.Error.SoundFileNotFound",
              "fullType": "keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error.SoundFileNotFound",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "SoundFileNotFound",
          "longName": "PostBroadcastAlertStartResponse.Error.SoundFileNotFound",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error.SoundFileNotFound",
          "description": "Звуковой файл не найден",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "PostBroadcastAlertStopRequest",
          "longName": "PostBroadcastAlertStopRequest",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStopRequest",
          "description": "Запрос на прекращение массового оповещения через домофоны",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "orpons",
              "description": "Массив ОРПОНов домов, на которых запускаем проигрывание.\n# Диапазон: 1..100",
              "label": "repeated",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "PostBroadcastAlertStopResponse",
          "longName": "PostBroadcastAlertStopResponse",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStopResponse",
          "description": "Ответ на запрос на прекращение массового оповещения через домофоны",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "PostBroadcastAlertStopResponse.Error",
              "fullType": "keyapis.access_control.v1.PostBroadcastAlertStopResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Error",
          "longName": "PostBroadcastAlertStopResponse.Error",
          "fullName": "keyapis.access_control.v1.PostBroadcastAlertStopResponse.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
            }
          ]
        }
      ],
      "services": [
        {
          "name": "BroadcastAlertService",
          "longName": "BroadcastAlertService",
          "fullName": "keyapis.access_control.v1.BroadcastAlertService",
          "description": "Сервис для массового оповещения через домофоны",
          "methods": [
            {
              "name": "PostBroadcastAlertStart",
              "description": "Метод запуска массового оповещения через домофоны.\nМетод доступен для: ApiKey",
              "requestType": "PostBroadcastAlertStartRequest",
              "requestLongType": "PostBroadcastAlertStartRequest",
              "requestFullType": "keyapis.access_control.v1.PostBroadcastAlertStartRequest",
              "requestStreaming": false,
              "responseType": "PostBroadcastAlertStartResponse",
              "responseLongType": "PostBroadcastAlertStartResponse",
              "responseFullType": "keyapis.access_control.v1.PostBroadcastAlertStartResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/access_control/internal/api/v1/broadcast_alert/start",
                      "body": "*"
                    }
                  ]
                }
              }
            },
            {
              "name": "PostBroadcastAlertStop",
              "description": "Метод прекращения массового оповещения через домофоны.\nМетод доступен для: ApiKey",
              "requestType": "PostBroadcastAlertStopRequest",
              "requestLongType": "PostBroadcastAlertStopRequest",
              "requestFullType": "keyapis.access_control.v1.PostBroadcastAlertStopRequest",
              "requestStreaming": false,
              "responseType": "PostBroadcastAlertStopResponse",
              "responseLongType": "PostBroadcastAlertStopResponse",
              "responseFullType": "keyapis.access_control.v1.PostBroadcastAlertStopResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/access_control/internal/api/v1/broadcast_alert/stop",
                      "body": "*"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}