-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathfile.proto
More file actions
97 lines (86 loc) · 3.3 KB
/
Copy pathfile.proto
File metadata and controls
97 lines (86 loc) · 3.3 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
syntax = "proto3";
package api.v1;
// Request object for GetFile
message GetFileRequest {
// File URI corresponding to the `uri` field in a File message from a build
// event stream.
//
// If the BuildBuddy instance supports ZSTD transcoding, the literal string
// "/blobs/" in the URI (third-to-last path segment) may be replaced with
// "/compressed-blobs/zstd/", and the server will return a compressed payload.
//
// Examples:
// * Uncompressed blob with remote instance name of "ci":
// bytestream://remote.buildbuddy.io/ci/blobs/09e6fe6e1fd8c8734339a0a84c3c7a0eb121b57a45d21cfeb1f265bffe4c4888/216
//
// * zstd-compressed blob with no remote instance name:
// bytestream://remote.buildbuddy.io/compressed-blobs/zstd/09e6fe6e1fd8c8734339a0a84c3c7a0eb121b57a45d21cfeb1f265bffe4c4888/216
string uri = 1;
}
// Response object for GetFile
message GetFileResponse {
// The file data.
bytes data = 1;
}
// Request object for GetFileRange
message GetFileRangeRequest {
// File URI corresponding to the `uri` field in a File message from a build
// event stream.
//
// If the BuildBuddy instance supports ZSTD transcoding, the literal string
// "/blobs/" in the URI (third-to-last path segment) may be replaced with
// "/compressed-blobs/zstd/", and the server will return a compressed payload.
//
// Examples:
// * Uncompressed blob with remote instance name of "ci":
// bytestream://remote.buildbuddy.io/ci/blobs/09e6fe6e1fd8c8734339a0a84c3c7a0eb121b57a45d21cfeb1f265bffe4c4888/216
//
// * zstd-compressed blob with no remote instance name:
// bytestream://remote.buildbuddy.io/compressed-blobs/zstd/09e6fe6e1fd8c8734339a0a84c3c7a0eb121b57a45d21cfeb1f265bffe4c4888/216
string uri = 1;
// Inclusive byte offset to start reading from.
int64 start = 2;
// Exclusive byte offset to stop reading at. Must be greater than `start`. The
// requested range size (end - start) must be no larger than 16 MiB.
int64 end = 3;
}
// Response object for GetFileRange
message GetFileRangeResponse {
// The requested file data.
bytes data = 1;
}
// A file associated with a BuildBuddy build.
message File {
string name = 1;
string uri = 2;
string hash = 3;
int64 size_bytes = 4;
// Inline file contents, if present in the build event stream. In JSON
// responses, this is base64-encoded.
bytes contents = 5;
}
// Request object for DeleteFile
message DeleteFileRequest {
// URI of file to delete.
//
// CAS URI format:
// <instance_name>/<blobs|compressed-blobs/zstd>/<digest_hash>/<digest_size>
// Action cache URI format:
// <instance_name>/<blobs|compressed-blobs/zstd>/ac/<digest_hash>/<digest_size>
//
// Examples:
// * CAS artifact:
// compressed-blobs/zstd/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/2084
//
// * CAS artifact with remote_instance_name
// my_remote_instance_name/blobs/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/2084
//
// * Action cache artifact:
// blobs/ac/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/2084
//
// * Action cache artifact with remote_instance_name
// my_remote_instance_name/blobs/ac/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/2084
string uri = 1;
}
// Response object for DeleteFile
message DeleteFileResponse {}