Skip to content

Commit 7592702

Browse files
committed
added digest functions negotiation
1 parent 4cd5944 commit 7592702

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

build/bazel/remote/execution/v2/remote_execution.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,6 +1823,15 @@ message GetCapabilitiesRequest {
18231823
// between them in an implementation-defined fashion, otherwise it can be
18241824
// omitted.
18251825
string instance_name = 1;
1826+
1827+
// All the digest functions supported by the client.
1828+
// Server should consider which digest functions the client supports to use
1829+
// the correct Digest in the
1830+
// [ServerCapabilities][build.bazel.remote.execution.v2.ServerCapabilities]
1831+
// response.
1832+
// If there is no overlapping between client's and server's supported digest
1833+
// functions, then server MAY omit the digest fields in the response.
1834+
repeated DigestFunction.Value digest_functions = 1;
18261835
}
18271836

18281837
// A response message for
@@ -2069,6 +2078,16 @@ message CacheCapabilities {
20692078
// The digest of the
20702079
// [ZstdDictionaries][build.bazel.remote.execution.v2.ZstdDictionaries]
20712080
// that contains all the dictionaries supported by the remote cache.
2081+
//
2082+
// Digest function used should be one of the digest functions that both
2083+
// client and server support, as specified in digest_functions field in
2084+
// [CacheCapabilities.digest_functions][build.bazel.remote.execution.v2.CacheCapabilities.digest_functions]
2085+
// and
2086+
// [GetCapabilitiesRequest.digest_functions][build.bazel.remote.execution.v2.GetCapabilitiesRequest.digest_functions].
2087+
//
2088+
// If there is no overlapping between client's and server's supported
2089+
// dictionaries, then server MAY omit the dictionaries field in the
2090+
// response.
20722091
QualifiedDigest zstd_dictionaries = 8;
20732092
}
20742093

0 commit comments

Comments
 (0)