Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
test.proto
Go to the documentation of this file.
1syntax = "proto2";
2import "dccl/option_extensions.proto";
3
4package goby.test.acomms.protobuf;
5
6message TestMsg
7{
8 option (dccl.msg).id = 2;
9 option (dccl.msg).max_bytes = 32;
10 option (dccl.msg).codec_version = 3;
11
12 // test default enc/dec
13 optional double double_default_optional = 1 [
14 (dccl.field).min = -100,
15 (dccl.field).max = 126,
16 (dccl.field).precision = 2,
17 (dccl.field).in_head = true
18 ];
19 optional float float_default_optional = 2 [
20 (dccl.field).min = -20,
21 (dccl.field).max = 150,
22 (dccl.field).precision = 3
23 ];
24}