@@ -1864,6 +1864,15 @@ message GetCapabilitiesRequest {
1864
1864
// between them in an implementation-defined fashion, otherwise it can be
1865
1865
// omitted.
1866
1866
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 ;
1867
1876
}
1868
1877
1869
1878
// A response message for
@@ -2110,6 +2119,16 @@ message CacheCapabilities {
2110
2119
// The digest of the
2111
2120
// [ZstdDictionaries][build.bazel.remote.execution.v2.ZstdDictionaries]
2112
2121
// 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.
2113
2132
QualifiedDigest zstd_dictionaries = 8 ;
2114
2133
}
2115
2134
0 commit comments