{"namespace": "example.proto",
 "protocol": "Mail",

 "types": [
     {"name": "Message", "type": "record",
      "fields": [
          {"name": "to",   "type": "string"},
          {"name": "from", "type": "string"},
          {"name": "body", "type": "string"}
      ]
     },
     {"name":"ServerError","type":"error",
     "fields":[
        {"name":"message","type":"string"}
     ]}
 ],

 "messages": {
     "send": {
         "request": [{"name": "message", "type": "Message"}],
         "response": "string",
         "erros":["ServerError"]
     },
     "checkSpam": {
     	"request": [{"name": "message","type":"Message"}],
     	"response" : "boolean"
     }
 }
}
