-
Notifications
You must be signed in to change notification settings - Fork 52
/
fileset.proto
60 lines (50 loc) · 958 Bytes
/
fileset.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
syntax = "proto3";
package reflow;
option go_package = "github.com/grailbio/reflow";
message Timestamp {
int64 Seconds = 1;
int64 Nanos = 2;
}
message FileP {
string id = 1;
int64 size = 2;
string source = 3;
string etag = 4;
Timestamp lastModified = 5;
string contentHash = 6;
}
message FilePart {
int32 id = 1;
FileP file = 2;
int32 assertionsGroupId = 3;
}
message FileMappingPart {
int32 depth = 1;
int32 index = 2;
string key = 3;
int32 fileId = 4;
}
message BlobProperties {
string etag = 1;
string lastModified = 2;
string size = 3;
}
message AssertionsKeyPart {
int32 id = 1;
string subject = 2;
oneof properties {
BlobProperties bp = 3;
}
}
message AssertionsGroupPart {
int32 id = 1;
repeated int32 keyIds = 2 [packed = true];
}
message FilesetPart {
oneof part {
FilePart fp = 1;
FileMappingPart fmp = 2;
AssertionsKeyPart akp = 3;
AssertionsGroupPart agp = 4;
}
}