use of com.google.storage.v2.QueryWriteStatusResponse in project gapic-generator-java by googleapis.
the class AsyncQueryWriteStatus method asyncQueryWriteStatus.
public static void asyncQueryWriteStatus() throws Exception {
// It may require modifications to work in your environment.
try (StorageClient storageClient = StorageClient.create()) {
QueryWriteStatusRequest request = QueryWriteStatusRequest.newBuilder().setUploadId("uploadId1563990780").setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()).setCommonRequestParams(CommonRequestParams.newBuilder().build()).build();
ApiFuture<QueryWriteStatusResponse> future = storageClient.queryWriteStatusCallable().futureCall(request);
// Do something.
QueryWriteStatusResponse response = future.get();
}
}
use of com.google.storage.v2.QueryWriteStatusResponse in project gapic-generator-java by googleapis.
the class SyncQueryWriteStatus method syncQueryWriteStatus.
public static void syncQueryWriteStatus() throws Exception {
// It may require modifications to work in your environment.
try (StorageClient storageClient = StorageClient.create()) {
QueryWriteStatusRequest request = QueryWriteStatusRequest.newBuilder().setUploadId("uploadId1563990780").setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build()).setCommonRequestParams(CommonRequestParams.newBuilder().build()).build();
QueryWriteStatusResponse response = storageClient.queryWriteStatus(request);
}
}
use of com.google.storage.v2.QueryWriteStatusResponse in project gapic-generator-java by googleapis.
the class SyncQueryWriteStatusString method syncQueryWriteStatusString.
public static void syncQueryWriteStatusString() throws Exception {
// It may require modifications to work in your environment.
try (StorageClient storageClient = StorageClient.create()) {
String uploadId = "uploadId1563990780";
QueryWriteStatusResponse response = storageClient.queryWriteStatus(uploadId);
}
}
Aggregations