2 import "goby/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;
11 option (dccl.msg).codec_version = 3;
13 required int32 src = 1 [
15 (dccl.field).max = 32,
16 (dccl.field).in_head = true
18 optional int32 dest = 2 [
20 (dccl.field).max = 32,
21 (dccl.field).in_head = true
24 required uint64 time = 3
25 [(dccl.field).codec = "_time", (dccl.field).in_head = true];
27 required int32 update_time_for_id = 4 [
29 (dccl.field).max = 32,
30 (dccl.field).in_head = true
34 message TimeUpdateResponse
36 option (dccl.msg).id = 0x0205;
37 option (dccl.msg).max_bytes = 32;
38 option (dccl.msg).codec_version = 3;
40 required int32 src = 1 [
42 (dccl.field).max = 32,
43 (dccl.field).in_head = true
45 optional int32 dest = 2 [
47 (dccl.field).max = 32,
48 (dccl.field).in_head = true
51 required uint64 time = 3 [
52 (dccl.field).codec = "_time",
53 (dccl.field).in_head = true,
54 (dccl.field).precision = -3
57 required uint64 time_of_flight_microsec = 4 [
59 (dccl.field).max = 20000000,
60 (dccl.field).precision = -3
61 ]; // microsec correction applied to `time` field - good for 20 sec (about
64 optional int32 request_src = 5 [(dccl.field).omit = true];