Goby3  3.1.5a
2024.05.23
test.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 import "dccl/option_extensions.proto";
3 
4 package goby.test.acomms.protobuf;
5 
6 message 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 }