Goby v2
test.proto
1 
2 import "dccl/option_extensions.proto";
3 
4 message BytesMsg
5 {
6  option (dccl.msg).id = 10;
7  option (dccl.msg).max_bytes = 32;
8 
9  required bytes req_bytes = 1 [(dccl.field).max_length = 8];
10  optional bytes opt_bytes = 2 [(dccl.field).max_length = 8];
11 }