2 import "goby/common/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
5 package goby.acomms.protobuf;
7 message TimeUpdateRequest
9 option (dccl.msg).id = 0x0204;
10 option (dccl.msg).max_bytes = 32;
12 required int32 src = 1 [
14 (dccl.field).max = 32,
15 (dccl.field).in_head = true
17 optional int32 dest = 2 [
19 (dccl.field).max = 32,
20 (dccl.field).in_head = true
23 required uint64 time = 3
24 [(dccl.field).codec = "_time", (dccl.field).in_head = true];
26 required int32 update_time_for_id = 4 [
28 (dccl.field).max = 32,
29 (dccl.field).in_head = true
33 message TimeUpdateResponse
35 option (dccl.msg).id = 0x0205;
36 option (dccl.msg).max_bytes = 32;
38 required int32 src = 1 [
40 (dccl.field).max = 32,
41 (dccl.field).in_head = true
43 optional int32 dest = 2 [
45 (dccl.field).max = 32,
46 (dccl.field).in_head = true
49 required uint64 time = 3 [
50 (dccl.field).codec = "_time",
51 (dccl.field).in_head = true,
52 (dccl.field).precision = -3
55 required uint64 time_of_flight_microsec = 4 [
57 (dccl.field).max = 20000000,
58 (dccl.field).precision = -3
59 ]; // microsec correction applied to `time` field - good for 20 sec (about
62 optional int32 request_src = 5 [(dccl.field).omit = true];