2 import "goby/common/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
5 package goby.acomms.protobuf;
9 option (dccl.msg).id = 7;
10 option (dccl.msg).max_bytes = 64;
12 required int32 src = 1 [
13 (dccl.field).min = -1,
14 (dccl.field).max = 62,
15 (dccl.field).in_head = true
17 required int32 dest = 2 [
18 (dccl.field).min = -1,
19 (dccl.field).max = 62,
20 (dccl.field).in_head = true
23 required int32 fragment = 3 [
25 (dccl.field).max = 18079
26 ]; // max file: 1048576 / data length: 58
28 required bool is_last_fragment = 4;
30 required int32 num_bytes = 5 [(dccl.field).min = 1, (dccl.field).max = 58];
31 required bytes data = 6 [(dccl.field).max_length = 58];
34 message TransferRequest
36 option (dccl.msg).id = 8;
37 option (dccl.msg).max_bytes = 64;
38 required int32 src = 1 [
39 (dccl.field).min = -1,
40 (dccl.field).max = 62,
41 (dccl.field).in_head = true
43 required int32 dest = 2 [
44 (dccl.field).min = -1,
45 (dccl.field).max = 62,
46 (dccl.field).in_head = true
54 required PushPull push_or_pull = 3 [(dccl.field).in_head = true];
55 required string file = 10 [(dccl.field).max_length = 60];
58 message TransferResponse
60 option (dccl.msg).id = 9;
61 option (dccl.msg).max_bytes = 64;
63 required int32 src = 1 [
64 (dccl.field).min = -1,
65 (dccl.field).max = 62,
66 (dccl.field).in_head = true
68 required int32 dest = 2 [
69 (dccl.field).min = -1,
70 (dccl.field).max = 62,
71 (dccl.field).in_head = true
74 required bool transfer_successful = 3;
78 COULD_NOT_READ_FILE = 1;
81 COULD_NOT_WRITE_FILE = 4;
82 ERROR_WHILE_READING = 5;
85 optional ErrorCode error = 4;
87 optional int32 num_fragments = 5 [
89 (dccl.field).max = 18079
90 ]; // max file: 1048576 / data length: 58