1syntax = "proto3";
2
3message Error
4{
5    int32 code = 1;
6    string message = 2;
7}
8
9message SubSubAMessage
10{
11    string somestring = 1;
12}
13
14message SubSubBMessage
15{
16    string somestring = 1;
17}
18
19message SubMessage
20{
21    SubSubAMessage subsubmessageA = 1;
22    repeated SubSubBMessage subsubmessageB = 2;
23}
24
25message Reply
26{
27    enum Result
28    {
29        ERROR = 0;
30        OK = 1;
31        SOME_A = 2;
32    }
33
34    Result result = 1;
35    Error error = 2;
36    SubMessage submessage = 3;
37}
38