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 = 54;
9  option (dccl.msg).codec_version = 3;
10 
11  required bytes req_bytes = 1 [(dccl.field) = { max_length: 10 codec: "dccl.var_bytes" } ];
12  optional bytes opt_bytes = 2 [(dccl.field) = { max_length: 10 codec: "dccl.var_bytes" } ];
13  repeated bytes rep_bytes = 3 [(dccl.field) = { max_length: 10 max_repeat: 3 codec: "dccl.var_bytes" } ];
14 }