use of build.bazel.remote.execution.v2.FindMissingBlobsResponse in project bazel-buildfarm by bazelbuild.
the class StubInstance method findMissingBlobs.
@Override
public ListenableFuture<Iterable<Digest>> findMissingBlobs(Iterable<Digest> digests, RequestMetadata requestMetadata) {
throwIfStopped();
FindMissingBlobsRequest request = FindMissingBlobsRequest.newBuilder().setInstanceName(getName()).addAllBlobDigests(digests).build();
if (request.getSerializedSize() > Size.mbToBytes(4)) {
throw new IllegalStateException(String.format("FINDMISSINGBLOBS IS TOO LARGE: %d digests are required in one request!", request.getBlobDigestsCount()));
}
return transform(deadlined(casFutureStub).withInterceptors(attachMetadataInterceptor(requestMetadata)).findMissingBlobs(request), FindMissingBlobsResponse::getMissingBlobDigestsList, directExecutor());
}
Aggregations