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 import "goby/protobuf/option_extensions.proto";
4 
5 package goby.test.acomms.protobuf;
6 
7 message RouteMessage
8 {
9  option (dccl.msg).id = 1;
10  option (dccl.msg).max_bytes = 32;
11  option (dccl.msg).unit_system = "si";
12 
13  required uint64 time = 1 [
14  (dccl.field).codec = "_time",
15  (dccl.field).in_head = true,
16  (dccl.field).units = {prefix: "micro" base_dimensions: "T"}
17  ];
18  required int32 src = 2 [
19  (dccl.field).min = 0,
20  (dccl.field).max = 65535,
21  (dccl.field).in_head = true
22  ];
23  required int32 dest = 3 [
24  (dccl.field).min = 0,
25  (dccl.field).max = 65535,
26  (dccl.field).in_head = true
27  ];
28  required string telegram = 4 [(dccl.field).max_length = 10];
29 }