Goby v2
test.proto
1 
2 import "dccl/option_extensions.proto";
3 import "goby/common/protobuf/option_extensions.proto";
4 
5 message RouteMessage
6 {
7  option (dccl.msg).id = 1;
8  option (dccl.msg).max_bytes = 32;
9 
10  required uint64 time = 1
11  [(dccl.field).codec = "_time", (dccl.field).in_head = true];
12  required int32 src = 2 [
13  (dccl.field).min = 0,
14  (dccl.field).max = 65535,
15  (dccl.field).in_head = true
16  ];
17  required int32 dest = 3 [
18  (dccl.field).min = 0,
19  (dccl.field).max = 65535,
20  (dccl.field).in_head = true
21  ];
22  required string telegram = 4 [(dccl.field).max_length = 10];
23 }