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