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.middleware.protobuf;
5 
6 message CTDSample
7 {
8  option (dccl.msg).id = 127;
9  option (dccl.msg).max_bytes = 32;
10  option (dccl.msg).codec_version = 3;
11 
12  optional double salinity = 1 [(dccl.field) = {min: 0 max: 40 precision: 1}];
13  optional double temperature = 2
14  [(dccl.field) = {min: 3 max: 30 precision: 1}];
15  optional double depth = 3 [(dccl.field) = {min: 0 max: 5000}];
16 }
17 
18 message TempSample
19 {
20  optional double temperature = 1;
21 }