Remote: Async upload (Part 4)

Remove RemoteCache#upload. Use UploadManifest#upload directly in RemoteExecutionService.

Part of https://github.com/bazelbuild/bazel/pull/13655.

PiperOrigin-RevId: 394606309
diff --git a/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java b/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java
index 1645009..ee3043a 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java
@@ -337,6 +337,11 @@
     throw new UserExecException(failureDetail);
   }
 
+  @VisibleForTesting
+  ActionResult getActionResult() {
+    return result.build();
+  }
+
   /** Uploads outputs and action result (if exit code is 0) to remote cache. */
   public ActionResult upload(RemoteActionExecutionContext context, RemoteCache remoteCache)
       throws IOException, InterruptedException {