Skip to content

Commit 1b98094

Browse files
committed
added digest functions negotiation
1 parent 754500d commit 1b98094

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
@@ -1864,6 +1864,15 @@ message GetCapabilitiesRequest {
18641864
// between them in an implementation-defined fashion, otherwise it can be
18651865
// omitted.
18661866
string instance_name = 1;
1867+
1868+
// All the digest functions supported by the client.
1869+
// Server should consider which digest functions the client supports to use
1870+
// the correct Digest in the
1871+
// [ServerCapabilities][build.bazel.remote.execution.v2.ServerCapabilities]
1872+
// response.
1873+
// If there is no overlapping between client's and server's supported digest
1874+
// functions, then server MAY omit the digest fields in the response.
1875+
repeated DigestFunction.Value digest_functions = 1;
18671876
}
18681877

18691878
// A response message for
@@ -2110,6 +2119,16 @@ message CacheCapabilities {
21102119
// The digest of the
21112120
// [ZstdDictionaries][build.bazel.remote.execution.v2.ZstdDictionaries]
21122121
// that contains all the dictionaries supported by the remote cache.
2122+
//
2123+
// Digest function used should be one of the digest functions that both
2124+
// client and server support, as specified in digest_functions field in
2125+
// [CacheCapabilities.digest_functions][build.bazel.remote.execution.v2.CacheCapabilities.digest_functions]
2126+
// and
2127+
// [GetCapabilitiesRequest.digest_functions][build.bazel.remote.execution.v2.GetCapabilitiesRequest.digest_functions].
2128+
//
2129+
// If there is no overlapping between client's and server's supported
2130+
// dictionaries, then server MAY omit the dictionaries field in the
2131+
// response.
21132132
QualifiedDigest zstd_dictionaries = 8;
21142133
}
21152134

0 commit comments

Comments
 (0)