Goby v2
on_demand.proto
1 
2 import "goby/common/protobuf/option_extensions.proto";
3 
4 message GobyMessage
5 {
6  option (dccl.msg).id = 4;
7  option (dccl.msg).max_bytes = 32;
8 
9  // enable "pass through" of data request to the application
10  option (goby.msg).queue.encode_on_demand = true;
11 
12  // how fast a newly encoded message goes stale
13  // you may not want to set this to zero or you can waste
14  // a good deal of time encoding if this queue isn't the highest
15  // priority
16  option (goby.msg).queue.on_demand_skew_seconds = 0.1;
17 
18  required int32 a = 1 [(dccl.field).min = 0, (dccl.field).max = 254];
19  required int32 b = 2 [(dccl.field).min = 0, (dccl.field).max = 510];
20 }