# Class StorageBatchOperationsClient (0.33.0)

0.33.0 (latest) 0.31.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.20.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java) | [Product Reference](https://cloud.google.com/storage/docs/batch-operations/overview) |

Service Description: Storage Batch Operations offers a managed experience to perform batch
operations on millions of Cloud Storage objects in a serverless fashion. With this service, you
can automate and simplify large scale API operations performed on Cloud Storage objects.

This class provides the ability to make remote calls to the backing service through method
calls that map to API methods. Sample code to get started:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
       Job response = storageBatchOperationsClient.getJob(name);
     }
     
Note: close() needs to be called on the StorageBatchOperationsClient object to clean up
resources such as threads. In the example above, try-with-resources is used, which automatically
calls close().

| Method | Description | Method Variants |
|---|---|---|
| ListJobs | Lists Jobs in a given project. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listJobs(ListJobsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listJobs(LocationName parent) - listJobs(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listJobsPagedCallable() - listJobsCallable() |
| GetJob | Gets a batch job. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getJob(GetJobRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getJob(JobName name) - getJob(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getJobCallable() |
| CreateJob | Creates a batch job. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createJobAsync(CreateJobRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createJobAsync(LocationName parent, Job job, String jobId) - createJobAsync(String parent, Job job, String jobId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createJobOperationCallable() - createJobCallable() |
| DeleteJob | Deletes a batch job. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteJob(DeleteJobRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - deleteJob(JobName name) - deleteJob(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - deleteJobCallable() |
| CancelJob | Cancels a batch job. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - cancelJob(CancelJobRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - cancelJob(JobName name) - cancelJob(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - cancelJobCallable() |
| ListBucketOperations | Lists BucketOperations in a given project and job. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listBucketOperations(ListBucketOperationsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listBucketOperations(JobName parent) - listBucketOperations(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listBucketOperationsPagedCallable() - listBucketOperationsCallable() |
| GetBucketOperation | Gets a BucketOperation. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getBucketOperation(GetBucketOperationRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getBucketOperation(BucketOperationName name) - getBucketOperation(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getBucketOperationCallable() |
| ListLocations | Lists information about the supported locations for this service. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listLocations(ListLocationsRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listLocationsPagedCallable() - listLocationsCallable() |
| GetLocation | Gets information about a location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getLocation(GetLocationRequest request) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getLocationCallable() |
[Methods]

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with
these names, this class includes a format method for each type of name, and additionally a parse
method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of StorageBatchOperationsSettings
to create(). For example:

To customize credentials:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     StorageBatchOperationsSettings storageBatchOperationsSettings =
         StorageBatchOperationsSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create(storageBatchOperationsSettings);
     
To customize the endpoint:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     StorageBatchOperationsSettings storageBatchOperationsSettings =
         StorageBatchOperationsSettings.newBuilder().setEndpoint(myEndpoint).build();
     StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create(storageBatchOperationsSettings);
     
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
the wire:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     StorageBatchOperationsSettings storageBatchOperationsSettings =
         StorageBatchOperationsSettings.newHttpJsonBuilder().build();
     StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create(storageBatchOperationsSettings);
     
Please refer to the GitHub repository's samples for more quickstart code snippets.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> StorageBatchOperationsClient

## Static Methods

### create()

    public static final StorageBatchOperationsClient create()

Constructs an instance of StorageBatchOperationsClient with default settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(StorageBatchOperationsSettings settings)

    public static final StorageBatchOperationsClient create(StorageBatchOperationsSettings settings)

Constructs an instance of StorageBatchOperationsClient, using the given settings. The channels
are created based on the settings passed in, or defaults for any settings that are not set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(StorageBatchOperationsStub stub)

    public static final StorageBatchOperationsClient create(StorageBatchOperationsStub stub)

Constructs an instance of StorageBatchOperationsClient, using the given stub for making calls.
This is for advanced usage - prefer using create(StorageBatchOperationsSettings).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.stub.StorageBatchOperationsStub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient` |   |

## Constructors

### StorageBatchOperationsClient(StorageBatchOperationsSettings settings)

    protected StorageBatchOperationsClient(StorageBatchOperationsSettings settings)

Constructs an instance of StorageBatchOperationsClient, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsSettings` |

### StorageBatchOperationsClient(StorageBatchOperationsStub stub)

    protected StorageBatchOperationsClient(StorageBatchOperationsStub stub)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.stub.StorageBatchOperationsStub` |

## Methods

### awaitTermination(long duration, TimeUnit unit)

    public boolean awaitTermination(long duration, TimeUnit unit)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `duration` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `unit` | `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### cancelJob(CancelJobRequest request)

    public final CancelJobResponse cancelJob(CancelJobRequest request)

Cancels a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       CancelJobRequest request =
           CancelJobRequest.newBuilder()
               .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .setRequestId("requestId693933066")
               .build();
       CancelJobResponse response = storageBatchOperationsClient.cancelJob(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CancelJobRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CancelJobResponse` |   |

### cancelJob(JobName name)

    public final CancelJobResponse cancelJob(JobName name)

Cancels a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
       CancelJobResponse response = storageBatchOperationsClient.cancelJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.JobName` Required. The `name` of the job to cancel. Format: projects/{project_id}/locations/global/jobs/{job_id}. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CancelJobResponse` |   |

### cancelJob(String name)

    public final CancelJobResponse cancelJob(String name)

Cancels a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
       CancelJobResponse response = storageBatchOperationsClient.cancelJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The `name` of the job to cancel. Format: projects/{project_id}/locations/global/jobs/{job_id}. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CancelJobResponse` |   |

### cancelJobCallable()

    public final UnaryCallable<CancelJobRequest,CancelJobResponse> cancelJobCallable()

Cancels a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       CancelJobRequest request =
           CancelJobRequest.newBuilder()
               .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<CancelJobResponse> future =
           storageBatchOperationsClient.cancelJobCallable().futureCall(request);
       // Do something.
       CancelJobResponse response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CancelJobRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CancelJobResponse>` |   |

### close()

    public final void close()

### createJobAsync(CreateJobRequest request)

    public final OperationFuture<Job,OperationMetadata> createJobAsync(CreateJobRequest request)

Creates a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       CreateJobRequest request =
           CreateJobRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setJobId("jobId101296568")
               .setJob(Job.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       Job response = storageBatchOperationsClient.createJobAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CreateJobRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.OperationMetadata>` |   |

### createJobAsync(LocationName parent, Job job, String jobId)

    public final OperationFuture<Job,OperationMetadata> createJobAsync(LocationName parent, Job job, String jobId)

Creates a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Job job = Job.newBuilder().build();
       String jobId = "jobId101296568";
       Job response = storageBatchOperationsClient.createJobAsync(parent, job, jobId).get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.LocationName` Required. Value for parent. |
| `job` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job` Required. The resource being created |
| `jobId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The optional `job_id` for this Job . If not specified, an id is generated. `job_id` should be no more than 128 characters and must include only characters available in DNS names, as defined by RFC-1123. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.OperationMetadata>` |   |

### createJobAsync(String parent, Job job, String jobId)

    public final OperationFuture<Job,OperationMetadata> createJobAsync(String parent, Job job, String jobId)

Creates a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Job job = Job.newBuilder().build();
       String jobId = "jobId101296568";
       Job response = storageBatchOperationsClient.createJobAsync(parent, job, jobId).get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Value for parent. |
| `job` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job` Required. The resource being created |
| `jobId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The optional `job_id` for this Job . If not specified, an id is generated. `job_id` should be no more than 128 characters and must include only characters available in DNS names, as defined by RFC-1123. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.OperationMetadata>` |   |

### createJobCallable()

    public final UnaryCallable<CreateJobRequest,Operation> createJobCallable()

Creates a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       CreateJobRequest request =
           CreateJobRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setJobId("jobId101296568")
               .setJob(Job.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           storageBatchOperationsClient.createJobCallable().futureCall(request);
       // Do something.
       Operation response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CreateJobRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createJobOperationCallable()

    public final OperationCallable<CreateJobRequest,Job,OperationMetadata> createJobOperationCallable()

Creates a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       CreateJobRequest request =
           CreateJobRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setJobId("jobId101296568")
               .setJob(Job.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<Job, OperationMetadata> future =
           storageBatchOperationsClient.createJobOperationCallable().futureCall(request);
       // Do something.
       Job response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CreateJobRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.OperationMetadata>` |   |

### deleteJob(DeleteJobRequest request)

    public final void deleteJob(DeleteJobRequest request)

Deletes a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       DeleteJobRequest request =
           DeleteJobRequest.newBuilder()
               .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .setRequestId("requestId693933066")
               .setForce(true)
               .build();
       storageBatchOperationsClient.deleteJob(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.DeleteJobRequest` The request object containing all of the parameters for the API call. |

### deleteJob(JobName name)

    public final void deleteJob(JobName name)

Deletes a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
       storageBatchOperationsClient.deleteJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.JobName` Required. The `name` of the job to delete. Format: projects/{project_id}/locations/global/jobs/{job_id} . |

### deleteJob(String name)

    public final void deleteJob(String name)

Deletes a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
       storageBatchOperationsClient.deleteJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The `name` of the job to delete. Format: projects/{project_id}/locations/global/jobs/{job_id} . |

### deleteJobCallable()

    public final UnaryCallable<DeleteJobRequest,Empty> deleteJobCallable()

Deletes a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       DeleteJobRequest request =
           DeleteJobRequest.newBuilder()
               .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .setRequestId("requestId693933066")
               .setForce(true)
               .build();
       ApiFuture<Empty> future =
           storageBatchOperationsClient.deleteJobCallable().futureCall(request);
       // Do something.
       future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.DeleteJobRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getBucketOperation(BucketOperationName name)

    public final BucketOperation getBucketOperation(BucketOperationName name)

Gets a BucketOperation.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       BucketOperationName name =
           BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]");
       BucketOperation response = storageBatchOperationsClient.getBucketOperation(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperationName` Required. `name` of the bucket operation to retrieve. Format: projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperation` |   |

### getBucketOperation(GetBucketOperationRequest request)

    public final BucketOperation getBucketOperation(GetBucketOperationRequest request)

Gets a BucketOperation.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       GetBucketOperationRequest request =
           GetBucketOperationRequest.newBuilder()
               .setName(
                   BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]")
                       .toString())
               .build();
       BucketOperation response = storageBatchOperationsClient.getBucketOperation(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperation` |   |

### getBucketOperation(String name)

    public final BucketOperation getBucketOperation(String name)

Gets a BucketOperation.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       String name =
           BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]")
               .toString();
       BucketOperation response = storageBatchOperationsClient.getBucketOperation(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. `name` of the bucket operation to retrieve. Format: projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperation` |   |

### getBucketOperationCallable()

    public final UnaryCallable<GetBucketOperationRequest,BucketOperation> getBucketOperationCallable()

Gets a BucketOperation.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       GetBucketOperationRequest request =
           GetBucketOperationRequest.newBuilder()
               .setName(
                   BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]")
                       .toString())
               .build();
       ApiFuture<BucketOperation> future =
           storageBatchOperationsClient.getBucketOperationCallable().futureCall(request);
       // Do something.
       BucketOperation response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperation>` |   |

### getHttpJsonOperationsClient()

    public final OperationsClient getHttpJsonOperationsClient()

> [!WARNING]
> **Beta**
>
> This feature is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1) of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.

Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.httpjson.longrunning.OperationsClient.html` |   |

### getJob(GetJobRequest request)

    public final Job getJob(GetJobRequest request)

Gets a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       GetJobRequest request =
           GetJobRequest.newBuilder()
               .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .build();
       Job response = storageBatchOperationsClient.getJob(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.GetJobRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job` |   |

### getJob(JobName name)

    public final Job getJob(JobName name)

Gets a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
       Job response = storageBatchOperationsClient.getJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.JobName` Required. `name` of the job to retrieve. Format: projects/{project_id}/locations/global/jobs/{job_id} . |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job` |   |

### getJob(String name)

    public final Job getJob(String name)

Gets a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
       Job response = storageBatchOperationsClient.getJob(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. `name` of the job to retrieve. Format: projects/{project_id}/locations/global/jobs/{job_id} . |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job` |   |

### getJobCallable()

    public final UnaryCallable<GetJobRequest,Job> getJobCallable()

Gets a batch job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       GetJobRequest request =
           GetJobRequest.newBuilder()
               .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .build();
       ApiFuture<Job> future = storageBatchOperationsClient.getJobCallable().futureCall(request);
       // Do something.
       Job response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.GetJobRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Job>` |   |

### getLocation(GetLocationRequest request)

    public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       Location response = storageBatchOperationsClient.getLocation(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.cloud.location.GetLocationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.location.Location` |   |

### getLocationCallable()

    public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       ApiFuture<Location> future =
           storageBatchOperationsClient.getLocationCallable().futureCall(request);
       // Do something.
       Location response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>` |   |

### getOperationsClient()

    public final OperationsClient getOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.OperationsClient.html` |   |

### getSettings()

    public final StorageBatchOperationsSettings getSettings()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsSettings` |   |

### getStub()

    public StorageBatchOperationsStub getStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.stub.StorageBatchOperationsStub` |   |

### isShutdown()

    public boolean isShutdown()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### isTerminated()

    public boolean isTerminated()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### listBucketOperations(JobName parent)

    public final StorageBatchOperationsClient.ListBucketOperationsPagedResponse listBucketOperations(JobName parent)

Lists BucketOperations in a given project and job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
       for (BucketOperation element :
           storageBatchOperationsClient.listBucketOperations(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.JobName` Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse` |   |

### listBucketOperations(ListBucketOperationsRequest request)

    public final StorageBatchOperationsClient.ListBucketOperationsPagedResponse listBucketOperations(ListBucketOperationsRequest request)

Lists BucketOperations in a given project and job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListBucketOperationsRequest request =
           ListBucketOperationsRequest.newBuilder()
               .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (BucketOperation element :
           storageBatchOperationsClient.listBucketOperations(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse` |   |

### listBucketOperations(String parent)

    public final StorageBatchOperationsClient.ListBucketOperationsPagedResponse listBucketOperations(String parent)

Lists BucketOperations in a given project and job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       String parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
       for (BucketOperation element :
           storageBatchOperationsClient.listBucketOperations(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse` |   |

### listBucketOperationsCallable()

    public final UnaryCallable<ListBucketOperationsRequest,ListBucketOperationsResponse> listBucketOperationsCallable()

Lists BucketOperations in a given project and job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListBucketOperationsRequest request =
           ListBucketOperationsRequest.newBuilder()
               .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListBucketOperationsResponse response =
             storageBatchOperationsClient.listBucketOperationsCallable().call(request);
         for (BucketOperation element : response.getBucketOperationsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse>` |   |

### listBucketOperationsPagedCallable()

    public final UnaryCallable<ListBucketOperationsRequest,StorageBatchOperationsClient.ListBucketOperationsPagedResponse> listBucketOperationsPagedCallable()

Lists BucketOperations in a given project and job.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListBucketOperationsRequest request =
           ListBucketOperationsRequest.newBuilder()
               .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<BucketOperation> future =
           storageBatchOperationsClient.listBucketOperationsPagedCallable().futureCall(request);
       // Do something.
       for (BucketOperation element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse>` |   |

### listJobs(ListJobsRequest request)

    public final StorageBatchOperationsClient.ListJobsPagedResponse listJobs(ListJobsRequest request)

Lists Jobs in a given project.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListJobsRequest request =
           ListJobsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (Job element : storageBatchOperationsClient.listJobs(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListJobsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse` |   |

### listJobs(LocationName parent)

    public final StorageBatchOperationsClient.ListJobsPagedResponse listJobs(LocationName parent)

Lists Jobs in a given project.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Job element : storageBatchOperationsClient.listJobs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.LocationName` Required. Format: projects/{project_id}/locations/global. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse` |   |

### listJobs(String parent)

    public final StorageBatchOperationsClient.ListJobsPagedResponse listJobs(String parent)

Lists Jobs in a given project.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Job element : storageBatchOperationsClient.listJobs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Format: projects/{project_id}/locations/global. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse` |   |

### listJobsCallable()

    public final UnaryCallable<ListJobsRequest,ListJobsResponse> listJobsCallable()

Lists Jobs in a given project.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListJobsRequest request =
           ListJobsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListJobsResponse response = storageBatchOperationsClient.listJobsCallable().call(request);
         for (Job element : response.getJobsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListJobsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListJobsResponse>` |   |

### listJobsPagedCallable()

    public final UnaryCallable<ListJobsRequest,StorageBatchOperationsClient.ListJobsPagedResponse> listJobsPagedCallable()

Lists Jobs in a given project.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListJobsRequest request =
           ListJobsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<Job> future =
           storageBatchOperationsClient.listJobsPagedCallable().futureCall(request);
       // Do something.
       for (Job element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ListJobsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse>` |   |

### listLocations(ListLocationsRequest request)

    public final StorageBatchOperationsClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (Location element : storageBatchOperationsClient.listLocations(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.cloud.location.ListLocationsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse` |   |

### listLocationsCallable()

    public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListLocationsResponse response =
             storageBatchOperationsClient.listLocationsCallable().call(request);
         for (Location element : response.getLocationsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>` |   |

### listLocationsPagedCallable()

    public final UnaryCallable<ListLocationsRequest,StorageBatchOperationsClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (StorageBatchOperationsClient storageBatchOperationsClient =
         StorageBatchOperationsClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<Location> future =
           storageBatchOperationsClient.listLocationsPagedCallable().futureCall(request);
       // Do something.
       for (Location element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse>` |   |

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()