blob: e77f36c8c6042218468581adf34663ebd5261618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
syntax = "proto2";
message SomethingWithUINTs {
optional uint32 id = 1;
optional uint32 ip_address = 2;
optional uint32 port_num = 3;
}
message SomethingMore {
enum Errors {
SUCCESS = 200;
ERROR_BAD_REQUEST = 400;
ERROR_NOT_FOUND = 404;
ERROR_SERVER_ERROR = 500;
ERROR_SERVICE_UNAVAILABLE = 503;
}
optional Errors error_code = 1;
optional SomethingWithUINTs uints = 2;
}
message EvenMore {
enum SomeEnum {
FIRST = 0xFE;
SECOND = 0xFF;
}
required SomeEnum enum_value = 1;
repeated SomethingWithUINTs uints = 2;
required bytes name=3;
required bytes value=4;
optional string s=5;
}
|