Java 如何在谷歌云存储中上传批处理对象?

Java 如何在谷歌云存储中上传批处理对象?,java,google-cloud-storage,Java,Google Cloud Storage,我使用谷歌云存储和Java,我需要批量上传1000个对象到GCS 这是地面军事系统提供的文件 Storage storage = StorageOptions.getDefaultInstance().getService(); BlobId blobId = BlobId.of("bucket", "blob_name"); BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build();

我使用谷歌云存储和Java,我需要批量上传1000个对象到GCS

这是地面军事系统提供的文件

Storage storage = StorageOptions.getDefaultInstance().getService();
BlobId blobId = BlobId.of("bucket", "blob_name");
BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build();
Blob blob = storage.create(blobInfo, "Hello, Cloud Storage!".getBytes(UTF_8));

但它只针对一个对象,我正在寻找批处理函数,但没有找到它,因此我必须使用for逐个对象上载对象。

目前还没有。您可以在此处了解现有的积压功能请求: