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