# Class StorageInsightsClient (0.78.0)

0.78.0 (latest) 0.76.0 0.73.0 0.72.0 0.70.0 0.68.0 0.67.0 0.65.0 0.63.0 0.61.0 0.60.0 0.59.0 0.58.0 0.57.0 0.55.0 0.53.0 0.52.0 0.49.0 0.48.0 0.47.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java) | [Product Reference](https://cloud.google.com/storage/docs/insights/storage-insights/) |

Service Description: Service describing handlers for resources

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ReportConfigName name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
       ReportConfig response = storageInsightsClient.getReportConfig(name);
     }
     
Note: close() needs to be called on the StorageInsightsClient 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 |
|---|---|---|
| ListReportConfigs | Lists ReportConfigs in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listReportConfigs(ListReportConfigsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listReportConfigs(LocationName parent) - listReportConfigs(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. - listReportConfigsPagedCallable() - listReportConfigsCallable() |
| GetReportConfig | Gets details of a single ReportConfig. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getReportConfig(GetReportConfigRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getReportConfig(ReportConfigName name) - getReportConfig(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. - getReportConfigCallable() |
| CreateReportConfig | Creates a new ReportConfig in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createReportConfig(CreateReportConfigRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - createReportConfig(LocationName parent, ReportConfig reportConfig) - createReportConfig(String parent, ReportConfig reportConfig) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createReportConfigCallable() |
| UpdateReportConfig | Updates the parameters of a single ReportConfig. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - updateReportConfig(UpdateReportConfigRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - updateReportConfig(ReportConfig reportConfig, FieldMask updateMask) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - updateReportConfigCallable() |
| DeleteReportConfig | Deletes a single ReportConfig. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteReportConfig(DeleteReportConfigRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - deleteReportConfig(ReportConfigName name) - deleteReportConfig(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. - deleteReportConfigCallable() |
| ListReportDetails | Lists ReportDetails in a given project and location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listReportDetails(ListReportDetailsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listReportDetails(ReportConfigName parent) - listReportDetails(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. - listReportDetailsPagedCallable() - listReportDetailsCallable() |
| GetReportDetail | Gets details of a single ReportDetail. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getReportDetail(GetReportDetailRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getReportDetail(ReportDetailName name) - getReportDetail(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. - getReportDetailCallable() |
| ListDatasetConfigs | Lists the dataset configurations in a given project for a given location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listDatasetConfigs(ListDatasetConfigsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listDatasetConfigs(LocationName parent) - listDatasetConfigs(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. - listDatasetConfigsPagedCallable() - listDatasetConfigsCallable() |
| GetDatasetConfig | Gets the dataset configuration in a given project for a given location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getDatasetConfig(GetDatasetConfigRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getDatasetConfig(DatasetConfigName name) - getDatasetConfig(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. - getDatasetConfigCallable() |
| CreateDatasetConfig | Creates a dataset configuration in a given project for a given location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createDatasetConfigAsync(CreateDatasetConfigRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createDatasetConfigAsync(LocationName parent, DatasetConfig datasetConfig, String datasetConfigId) - createDatasetConfigAsync(String parent, DatasetConfig datasetConfig, String datasetConfigId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createDatasetConfigOperationCallable() - createDatasetConfigCallable() |
| UpdateDatasetConfig | Updates a dataset configuration in a given project for a given location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - updateDatasetConfigAsync(UpdateDatasetConfigRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - updateDatasetConfigAsync(DatasetConfig datasetConfig, FieldMask updateMask) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - updateDatasetConfigOperationCallable() - updateDatasetConfigCallable() |
| DeleteDatasetConfig | Deletes a dataset configuration in a given project for a given location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteDatasetConfigAsync(DeleteDatasetConfigRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - deleteDatasetConfigAsync(DatasetConfigName name) - deleteDatasetConfigAsync(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. - deleteDatasetConfigOperationCallable() - deleteDatasetConfigCallable() |
| LinkDataset | Links a dataset to BigQuery in a given project for a given location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - linkDatasetAsync(LinkDatasetRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - linkDatasetAsync(DatasetConfigName name) - linkDatasetAsync(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. - linkDatasetOperationCallable() - linkDatasetCallable() |
| UnlinkDataset | Unlinks a dataset from BigQuery in a given project for a given location. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - unlinkDatasetAsync(UnlinkDatasetRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - unlinkDatasetAsync(DatasetConfigName name) - unlinkDatasetAsync(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. - unlinkDatasetOperationCallable() - unlinkDatasetCallable() |
| 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 StorageInsightsSettings 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
     StorageInsightsSettings storageInsightsSettings =
         StorageInsightsSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     StorageInsightsClient storageInsightsClient =
         StorageInsightsClient.create(storageInsightsSettings);
     
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
     StorageInsightsSettings storageInsightsSettings =
         StorageInsightsSettings.newBuilder().setEndpoint(myEndpoint).build();
     StorageInsightsClient storageInsightsClient =
         StorageInsightsClient.create(storageInsightsSettings);
     
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
     StorageInsightsSettings storageInsightsSettings =
         StorageInsightsSettings.newHttpJsonBuilder().build();
     StorageInsightsClient storageInsightsClient =
         StorageInsightsClient.create(storageInsightsSettings);
     
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) \> StorageInsightsClient

## Static Methods

### create()

    public static final StorageInsightsClient create()

Constructs an instance of StorageInsightsClient with default settings.

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

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

### create(StorageInsightsSettings settings)

    public static final StorageInsightsClient create(StorageInsightsSettings settings)

Constructs an instance of StorageInsightsClient, 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-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsSettings` |

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

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

### create(StorageInsightsStub stub)

    public static final StorageInsightsClient create(StorageInsightsStub stub)

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

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

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

## Constructors

### StorageInsightsClient(StorageInsightsSettings settings)

    protected StorageInsightsClient(StorageInsightsSettings settings)

Constructs an instance of StorageInsightsClient, 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-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsSettings` |

### StorageInsightsClient(StorageInsightsStub stub)

    protected StorageInsightsClient(StorageInsightsStub stub)

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

## 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` |   |

### close()

    public final void close()

### createDatasetConfigAsync(CreateDatasetConfigRequest request)

    public final OperationFuture<DatasetConfig,OperationMetadata> createDatasetConfigAsync(CreateDatasetConfigRequest request)

Creates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       CreateDatasetConfigRequest request =
           CreateDatasetConfigRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setDatasetConfigId("datasetConfigId7070869")
               .setDatasetConfig(DatasetConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       DatasetConfig response = storageInsightsClient.createDatasetConfigAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.CreateDatasetConfigRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### createDatasetConfigAsync(LocationName parent, DatasetConfig datasetConfig, String datasetConfigId)

    public final OperationFuture<DatasetConfig,OperationMetadata> createDatasetConfigAsync(LocationName parent, DatasetConfig datasetConfig, String datasetConfigId)

Creates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       DatasetConfig datasetConfig = DatasetConfig.newBuilder().build();
       String datasetConfigId = "datasetConfigId7070869";
       DatasetConfig response =
           storageInsightsClient
               .createDatasetConfigAsync(parent, datasetConfig, datasetConfigId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.LocationName` Required. Value for parent. |
| `datasetConfig` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig` Required. The resource being created |
| `datasetConfigId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and `dataset_config_id` from the method_signature of Create RPC Note: The value should not contain any hyphens. |

| **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-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### createDatasetConfigAsync(String parent, DatasetConfig datasetConfig, String datasetConfigId)

    public final OperationFuture<DatasetConfig,OperationMetadata> createDatasetConfigAsync(String parent, DatasetConfig datasetConfig, String datasetConfigId)

Creates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       DatasetConfig datasetConfig = DatasetConfig.newBuilder().build();
       String datasetConfigId = "datasetConfigId7070869";
       DatasetConfig response =
           storageInsightsClient
               .createDatasetConfigAsync(parent, datasetConfig, datasetConfigId)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Value for parent. |
| `datasetConfig` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig` Required. The resource being created |
| `datasetConfigId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and `dataset_config_id` from the method_signature of Create RPC Note: The value should not contain any hyphens. |

| **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-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### createDatasetConfigCallable()

    public final UnaryCallable<CreateDatasetConfigRequest,Operation> createDatasetConfigCallable()

Creates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       CreateDatasetConfigRequest request =
           CreateDatasetConfigRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setDatasetConfigId("datasetConfigId7070869")
               .setDatasetConfig(DatasetConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           storageInsightsClient.createDatasetConfigCallable().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-storageinsights/latest/com.google.cloud.storageinsights.v1.CreateDatasetConfigRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createDatasetConfigOperationCallable()

    public final OperationCallable<CreateDatasetConfigRequest,DatasetConfig,OperationMetadata> createDatasetConfigOperationCallable()

Creates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       CreateDatasetConfigRequest request =
           CreateDatasetConfigRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setDatasetConfigId("datasetConfigId7070869")
               .setDatasetConfig(DatasetConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<DatasetConfig, OperationMetadata> future =
           storageInsightsClient.createDatasetConfigOperationCallable().futureCall(request);
       // Do something.
       DatasetConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.CreateDatasetConfigRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### createReportConfig(CreateReportConfigRequest request)

    public final ReportConfig createReportConfig(CreateReportConfigRequest request)

Creates a new ReportConfig in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       CreateReportConfigRequest request =
           CreateReportConfigRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setReportConfig(ReportConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ReportConfig response = storageInsightsClient.createReportConfig(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.CreateReportConfigRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig` |   |

### createReportConfig(LocationName parent, ReportConfig reportConfig)

    public final ReportConfig createReportConfig(LocationName parent, ReportConfig reportConfig)

Creates a new ReportConfig in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       ReportConfig reportConfig = ReportConfig.newBuilder().build();
       ReportConfig response = storageInsightsClient.createReportConfig(parent, reportConfig);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.LocationName` Required. Value for parent. |
| `reportConfig` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig` Required. The resource being created |

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

### createReportConfig(String parent, ReportConfig reportConfig)

    public final ReportConfig createReportConfig(String parent, ReportConfig reportConfig)

Creates a new ReportConfig in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       ReportConfig reportConfig = ReportConfig.newBuilder().build();
       ReportConfig response = storageInsightsClient.createReportConfig(parent, reportConfig);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Value for parent. |
| `reportConfig` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig` Required. The resource being created |

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

### createReportConfigCallable()

    public final UnaryCallable<CreateReportConfigRequest,ReportConfig> createReportConfigCallable()

Creates a new ReportConfig in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       CreateReportConfigRequest request =
           CreateReportConfigRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setReportConfig(ReportConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<ReportConfig> future =
           storageInsightsClient.createReportConfigCallable().futureCall(request);
       // Do something.
       ReportConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.CreateReportConfigRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig>` |   |

### deleteDatasetConfigAsync(DatasetConfigName name)

    public final OperationFuture<Empty,OperationMetadata> deleteDatasetConfigAsync(DatasetConfigName name)

Deletes a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DatasetConfigName name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
       storageInsightsClient.deleteDatasetConfigAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfigName` Required. Name of the resource |

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

### deleteDatasetConfigAsync(DeleteDatasetConfigRequest request)

    public final OperationFuture<Empty,OperationMetadata> deleteDatasetConfigAsync(DeleteDatasetConfigRequest request)

Deletes a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DeleteDatasetConfigRequest request =
           DeleteDatasetConfigRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .setRequestId("requestId693933066")
               .build();
       storageInsightsClient.deleteDatasetConfigAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DeleteDatasetConfigRequest` 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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### deleteDatasetConfigAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> deleteDatasetConfigAsync(String name)

Deletes a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString();
       storageInsightsClient.deleteDatasetConfigAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

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

### deleteDatasetConfigCallable()

    public final UnaryCallable<DeleteDatasetConfigRequest,Operation> deleteDatasetConfigCallable()

Deletes a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DeleteDatasetConfigRequest request =
           DeleteDatasetConfigRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           storageInsightsClient.deleteDatasetConfigCallable().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-storageinsights/latest/com.google.cloud.storageinsights.v1.DeleteDatasetConfigRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteDatasetConfigOperationCallable()

    public final OperationCallable<DeleteDatasetConfigRequest,Empty,OperationMetadata> deleteDatasetConfigOperationCallable()

Deletes a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DeleteDatasetConfigRequest request =
           DeleteDatasetConfigRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           storageInsightsClient.deleteDatasetConfigOperationCallable().futureCall(request);
       // Do something.
       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-storageinsights/latest/com.google.cloud.storageinsights.v1.DeleteDatasetConfigRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### deleteReportConfig(DeleteReportConfigRequest request)

    public final void deleteReportConfig(DeleteReportConfigRequest request)

Deletes a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DeleteReportConfigRequest request =
           DeleteReportConfigRequest.newBuilder()
               .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
               .setForce(true)
               .setRequestId("requestId693933066")
               .build();
       storageInsightsClient.deleteReportConfig(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DeleteReportConfigRequest` The request object containing all of the parameters for the API call. |

### deleteReportConfig(ReportConfigName name)

    public final void deleteReportConfig(ReportConfigName name)

Deletes a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ReportConfigName name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
       storageInsightsClient.deleteReportConfig(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfigName` Required. Name of the resource |

### deleteReportConfig(String name)

    public final void deleteReportConfig(String name)

Deletes a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString();
       storageInsightsClient.deleteReportConfig(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

### deleteReportConfigCallable()

    public final UnaryCallable<DeleteReportConfigRequest,Empty> deleteReportConfigCallable()

Deletes a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DeleteReportConfigRequest request =
           DeleteReportConfigRequest.newBuilder()
               .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
               .setForce(true)
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Empty> future =
           storageInsightsClient.deleteReportConfigCallable().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-storageinsights/latest/com.google.cloud.storageinsights.v1.DeleteReportConfigRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getDatasetConfig(DatasetConfigName name)

    public final DatasetConfig getDatasetConfig(DatasetConfigName name)

Gets the dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DatasetConfigName name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
       DatasetConfig response = storageInsightsClient.getDatasetConfig(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfigName` Required. Name of the resource |

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

### getDatasetConfig(GetDatasetConfigRequest request)

    public final DatasetConfig getDatasetConfig(GetDatasetConfigRequest request)

Gets the dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetDatasetConfigRequest request =
           GetDatasetConfigRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       DatasetConfig response = storageInsightsClient.getDatasetConfig(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.GetDatasetConfigRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig` |   |

### getDatasetConfig(String name)

    public final DatasetConfig getDatasetConfig(String name)

Gets the dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString();
       DatasetConfig response = storageInsightsClient.getDatasetConfig(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

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

### getDatasetConfigCallable()

    public final UnaryCallable<GetDatasetConfigRequest,DatasetConfig> getDatasetConfigCallable()

Gets the dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetDatasetConfigRequest request =
           GetDatasetConfigRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       ApiFuture<DatasetConfig> future =
           storageInsightsClient.getDatasetConfigCallable().futureCall(request);
       // Do something.
       DatasetConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.GetDatasetConfigRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig>` |   |

### 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` |   |

### 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       Location response = storageInsightsClient.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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       ApiFuture<Location> future = storageInsightsClient.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` |   |

### getReportConfig(GetReportConfigRequest request)

    public final ReportConfig getReportConfig(GetReportConfigRequest request)

Gets details of a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetReportConfigRequest request =
           GetReportConfigRequest.newBuilder()
               .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
               .build();
       ReportConfig response = storageInsightsClient.getReportConfig(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.GetReportConfigRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig` |   |

### getReportConfig(ReportConfigName name)

    public final ReportConfig getReportConfig(ReportConfigName name)

Gets details of a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ReportConfigName name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
       ReportConfig response = storageInsightsClient.getReportConfig(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfigName` Required. Name of the resource |

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

### getReportConfig(String name)

    public final ReportConfig getReportConfig(String name)

Gets details of a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString();
       ReportConfig response = storageInsightsClient.getReportConfig(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

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

### getReportConfigCallable()

    public final UnaryCallable<GetReportConfigRequest,ReportConfig> getReportConfigCallable()

Gets details of a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetReportConfigRequest request =
           GetReportConfigRequest.newBuilder()
               .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
               .build();
       ApiFuture<ReportConfig> future =
           storageInsightsClient.getReportConfigCallable().futureCall(request);
       // Do something.
       ReportConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.GetReportConfigRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig>` |   |

### getReportDetail(GetReportDetailRequest request)

    public final ReportDetail getReportDetail(GetReportDetailRequest request)

Gets details of a single ReportDetail.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetReportDetailRequest request =
           GetReportDetailRequest.newBuilder()
               .setName(
                   ReportDetailName.of(
                           "[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]")
                       .toString())
               .build();
       ReportDetail response = storageInsightsClient.getReportDetail(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.GetReportDetailRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportDetail` |   |

### getReportDetail(ReportDetailName name)

    public final ReportDetail getReportDetail(ReportDetailName name)

Gets details of a single ReportDetail.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ReportDetailName name =
           ReportDetailName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]");
       ReportDetail response = storageInsightsClient.getReportDetail(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportDetailName` Required. Name of the resource |

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

### getReportDetail(String name)

    public final ReportDetail getReportDetail(String name)

Gets details of a single ReportDetail.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String name =
           ReportDetailName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]")
               .toString();
       ReportDetail response = storageInsightsClient.getReportDetail(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

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

### getReportDetailCallable()

    public final UnaryCallable<GetReportDetailRequest,ReportDetail> getReportDetailCallable()

Gets details of a single ReportDetail.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       GetReportDetailRequest request =
           GetReportDetailRequest.newBuilder()
               .setName(
                   ReportDetailName.of(
                           "[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]")
                       .toString())
               .build();
       ApiFuture<ReportDetail> future =
           storageInsightsClient.getReportDetailCallable().futureCall(request);
       // Do something.
       ReportDetail 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-storageinsights/latest/com.google.cloud.storageinsights.v1.GetReportDetailRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportDetail>` |   |

### getSettings()

    public final StorageInsightsSettings getSettings()

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

### getStub()

    public StorageInsightsStub getStub()

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

### 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` |   |

### linkDatasetAsync(DatasetConfigName name)

    public final OperationFuture<LinkDatasetResponse,OperationMetadata> linkDatasetAsync(DatasetConfigName name)

Links a dataset to BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DatasetConfigName name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
       LinkDatasetResponse response = storageInsightsClient.linkDatasetAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfigName` Required. Name of the resource |

| **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-storageinsights/latest/com.google.cloud.storageinsights.v1.LinkDatasetResponse,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### linkDatasetAsync(LinkDatasetRequest request)

    public final OperationFuture<LinkDatasetResponse,OperationMetadata> linkDatasetAsync(LinkDatasetRequest request)

Links a dataset to BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       LinkDatasetRequest request =
           LinkDatasetRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       LinkDatasetResponse response = storageInsightsClient.linkDatasetAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.LinkDatasetRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.LinkDatasetResponse,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### linkDatasetAsync(String name)

    public final OperationFuture<LinkDatasetResponse,OperationMetadata> linkDatasetAsync(String name)

Links a dataset to BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString();
       LinkDatasetResponse response = storageInsightsClient.linkDatasetAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

| **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-storageinsights/latest/com.google.cloud.storageinsights.v1.LinkDatasetResponse,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### linkDatasetCallable()

    public final UnaryCallable<LinkDatasetRequest,Operation> linkDatasetCallable()

Links a dataset to BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       LinkDatasetRequest request =
           LinkDatasetRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       ApiFuture<Operation> future = storageInsightsClient.linkDatasetCallable().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-storageinsights/latest/com.google.cloud.storageinsights.v1.LinkDatasetRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### linkDatasetOperationCallable()

    public final OperationCallable<LinkDatasetRequest,LinkDatasetResponse,OperationMetadata> linkDatasetOperationCallable()

Links a dataset to BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       LinkDatasetRequest request =
           LinkDatasetRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       OperationFuture<LinkDatasetResponse, OperationMetadata> future =
           storageInsightsClient.linkDatasetOperationCallable().futureCall(request);
       // Do something.
       LinkDatasetResponse 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-storageinsights/latest/com.google.cloud.storageinsights.v1.LinkDatasetRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.LinkDatasetResponse,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### listDatasetConfigs(ListDatasetConfigsRequest request)

    public final StorageInsightsClient.ListDatasetConfigsPagedResponse listDatasetConfigs(ListDatasetConfigsRequest request)

Lists the dataset configurations in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListDatasetConfigsRequest request =
           ListDatasetConfigsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (DatasetConfig element : storageInsightsClient.listDatasetConfigs(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ListDatasetConfigsRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListDatasetConfigsPagedResponse` |   |

### listDatasetConfigs(LocationName parent)

    public final StorageInsightsClient.ListDatasetConfigsPagedResponse listDatasetConfigs(LocationName parent)

Lists the dataset configurations in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (DatasetConfig element : storageInsightsClient.listDatasetConfigs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.LocationName` Required. Parent value for ListDatasetConfigsRequest |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListDatasetConfigsPagedResponse` |   |

### listDatasetConfigs(String parent)

    public final StorageInsightsClient.ListDatasetConfigsPagedResponse listDatasetConfigs(String parent)

Lists the dataset configurations in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (DatasetConfig element : storageInsightsClient.listDatasetConfigs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Parent value for ListDatasetConfigsRequest |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListDatasetConfigsPagedResponse` |   |

### listDatasetConfigsCallable()

    public final UnaryCallable<ListDatasetConfigsRequest,ListDatasetConfigsResponse> listDatasetConfigsCallable()

Lists the dataset configurations in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListDatasetConfigsRequest request =
           ListDatasetConfigsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListDatasetConfigsResponse response =
             storageInsightsClient.listDatasetConfigsCallable().call(request);
         for (DatasetConfig element : response.getDatasetConfigsList()) {
           // 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ListDatasetConfigsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ListDatasetConfigsResponse>` |   |

### listDatasetConfigsPagedCallable()

    public final UnaryCallable<ListDatasetConfigsRequest,StorageInsightsClient.ListDatasetConfigsPagedResponse> listDatasetConfigsPagedCallable()

Lists the dataset configurations in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListDatasetConfigsRequest request =
           ListDatasetConfigsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<DatasetConfig> future =
           storageInsightsClient.listDatasetConfigsPagedCallable().futureCall(request);
       // Do something.
       for (DatasetConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ListDatasetConfigsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListDatasetConfigsPagedResponse>` |   |

### listLocations(ListLocationsRequest request)

    public final StorageInsightsClient.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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (Location element : storageInsightsClient.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-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListLocationsResponse response =
             storageInsightsClient.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,StorageInsightsClient.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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<Location> future =
           storageInsightsClient.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-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListLocationsPagedResponse>` |   |

### listReportConfigs(ListReportConfigsRequest request)

    public final StorageInsightsClient.ListReportConfigsPagedResponse listReportConfigs(ListReportConfigsRequest request)

Lists ReportConfigs in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListReportConfigsRequest request =
           ListReportConfigsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (ReportConfig element : storageInsightsClient.listReportConfigs(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportConfigsRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportConfigsPagedResponse` |   |

### listReportConfigs(LocationName parent)

    public final StorageInsightsClient.ListReportConfigsPagedResponse listReportConfigs(LocationName parent)

Lists ReportConfigs in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (ReportConfig element : storageInsightsClient.listReportConfigs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.LocationName` Required. Parent value for ListReportConfigsRequest |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportConfigsPagedResponse` |   |

### listReportConfigs(String parent)

    public final StorageInsightsClient.ListReportConfigsPagedResponse listReportConfigs(String parent)

Lists ReportConfigs in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (ReportConfig element : storageInsightsClient.listReportConfigs(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Parent value for ListReportConfigsRequest |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportConfigsPagedResponse` |   |

### listReportConfigsCallable()

    public final UnaryCallable<ListReportConfigsRequest,ListReportConfigsResponse> listReportConfigsCallable()

Lists ReportConfigs in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListReportConfigsRequest request =
           ListReportConfigsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListReportConfigsResponse response =
             storageInsightsClient.listReportConfigsCallable().call(request);
         for (ReportConfig element : response.getReportConfigsList()) {
           // 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportConfigsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportConfigsResponse>` |   |

### listReportConfigsPagedCallable()

    public final UnaryCallable<ListReportConfigsRequest,StorageInsightsClient.ListReportConfigsPagedResponse> listReportConfigsPagedCallable()

Lists ReportConfigs in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListReportConfigsRequest request =
           ListReportConfigsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<ReportConfig> future =
           storageInsightsClient.listReportConfigsPagedCallable().futureCall(request);
       // Do something.
       for (ReportConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportConfigsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportConfigsPagedResponse>` |   |

### listReportDetails(ListReportDetailsRequest request)

    public final StorageInsightsClient.ListReportDetailsPagedResponse listReportDetails(ListReportDetailsRequest request)

Lists ReportDetails in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListReportDetailsRequest request =
           ListReportDetailsRequest.newBuilder()
               .setParent(
                   ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (ReportDetail element : storageInsightsClient.listReportDetails(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportDetailsRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportDetailsPagedResponse` |   |

### listReportDetails(ReportConfigName parent)

    public final StorageInsightsClient.ListReportDetailsPagedResponse listReportDetails(ReportConfigName parent)

Lists ReportDetails in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ReportConfigName parent = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
       for (ReportDetail element : storageInsightsClient.listReportDetails(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfigName` Required. Parent value for ListReportDetailsRequest |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportDetailsPagedResponse` |   |

### listReportDetails(String parent)

    public final StorageInsightsClient.ListReportDetailsPagedResponse listReportDetails(String parent)

Lists ReportDetails in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String parent = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString();
       for (ReportDetail element : storageInsightsClient.listReportDetails(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Parent value for ListReportDetailsRequest |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportDetailsPagedResponse` |   |

### listReportDetailsCallable()

    public final UnaryCallable<ListReportDetailsRequest,ListReportDetailsResponse> listReportDetailsCallable()

Lists ReportDetails in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListReportDetailsRequest request =
           ListReportDetailsRequest.newBuilder()
               .setParent(
                   ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListReportDetailsResponse response =
             storageInsightsClient.listReportDetailsCallable().call(request);
         for (ReportDetail element : response.getReportDetailsList()) {
           // 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportDetailsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportDetailsResponse>` |   |

### listReportDetailsPagedCallable()

    public final UnaryCallable<ListReportDetailsRequest,StorageInsightsClient.ListReportDetailsPagedResponse> listReportDetailsPagedCallable()

Lists ReportDetails in a given project and 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ListReportDetailsRequest request =
           ListReportDetailsRequest.newBuilder()
               .setParent(
                   ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<ReportDetail> future =
           storageInsightsClient.listReportDetailsPagedCallable().futureCall(request);
       // Do something.
       for (ReportDetail 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ListReportDetailsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.StorageInsightsClient.ListReportDetailsPagedResponse>` |   |

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()

### unlinkDatasetAsync(DatasetConfigName name)

    public final OperationFuture<Empty,OperationMetadata> unlinkDatasetAsync(DatasetConfigName name)

Unlinks a dataset from BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DatasetConfigName name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
       storageInsightsClient.unlinkDatasetAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfigName` Required. Name of the resource |

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

### unlinkDatasetAsync(UnlinkDatasetRequest request)

    public final OperationFuture<Empty,OperationMetadata> unlinkDatasetAsync(UnlinkDatasetRequest request)

Unlinks a dataset from BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UnlinkDatasetRequest request =
           UnlinkDatasetRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       storageInsightsClient.unlinkDatasetAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.UnlinkDatasetRequest` 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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### unlinkDatasetAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> unlinkDatasetAsync(String name)

Unlinks a dataset from BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       String name = DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString();
       storageInsightsClient.unlinkDatasetAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

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

### unlinkDatasetCallable()

    public final UnaryCallable<UnlinkDatasetRequest,Operation> unlinkDatasetCallable()

Unlinks a dataset from BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UnlinkDatasetRequest request =
           UnlinkDatasetRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       ApiFuture<Operation> future =
           storageInsightsClient.unlinkDatasetCallable().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-storageinsights/latest/com.google.cloud.storageinsights.v1.UnlinkDatasetRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### unlinkDatasetOperationCallable()

    public final OperationCallable<UnlinkDatasetRequest,Empty,OperationMetadata> unlinkDatasetOperationCallable()

Unlinks a dataset from BigQuery in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UnlinkDatasetRequest request =
           UnlinkDatasetRequest.newBuilder()
               .setName(
                   DatasetConfigName.of("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]").toString())
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           storageInsightsClient.unlinkDatasetOperationCallable().futureCall(request);
       // Do something.
       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-storageinsights/latest/com.google.cloud.storageinsights.v1.UnlinkDatasetRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### updateDatasetConfigAsync(DatasetConfig datasetConfig, FieldMask updateMask)

    public final OperationFuture<DatasetConfig,OperationMetadata> updateDatasetConfigAsync(DatasetConfig datasetConfig, FieldMask updateMask)

Updates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       DatasetConfig datasetConfig = DatasetConfig.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       DatasetConfig response =
           storageInsightsClient.updateDatasetConfigAsync(datasetConfig, updateMask).get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `datasetConfig` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig` Required. The resource being updated |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` Required. Field mask is used to specify the fields to be overwritten in the `DatasetConfig` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask then it returns an "Invalid Argument" error. |

| **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-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### updateDatasetConfigAsync(UpdateDatasetConfigRequest request)

    public final OperationFuture<DatasetConfig,OperationMetadata> updateDatasetConfigAsync(UpdateDatasetConfigRequest request)

Updates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UpdateDatasetConfigRequest request =
           UpdateDatasetConfigRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setDatasetConfig(DatasetConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       DatasetConfig response = storageInsightsClient.updateDatasetConfigAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.UpdateDatasetConfigRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### updateDatasetConfigCallable()

    public final UnaryCallable<UpdateDatasetConfigRequest,Operation> updateDatasetConfigCallable()

Updates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UpdateDatasetConfigRequest request =
           UpdateDatasetConfigRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setDatasetConfig(DatasetConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           storageInsightsClient.updateDatasetConfigCallable().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-storageinsights/latest/com.google.cloud.storageinsights.v1.UpdateDatasetConfigRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateDatasetConfigOperationCallable()

    public final OperationCallable<UpdateDatasetConfigRequest,DatasetConfig,OperationMetadata> updateDatasetConfigOperationCallable()

Updates a dataset configuration in a given project for a given 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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UpdateDatasetConfigRequest request =
           UpdateDatasetConfigRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setDatasetConfig(DatasetConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<DatasetConfig, OperationMetadata> future =
           storageInsightsClient.updateDatasetConfigOperationCallable().futureCall(request);
       // Do something.
       DatasetConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.UpdateDatasetConfigRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.DatasetConfig,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.OperationMetadata>` |   |

### updateReportConfig(ReportConfig reportConfig, FieldMask updateMask)

    public final ReportConfig updateReportConfig(ReportConfig reportConfig, FieldMask updateMask)

Updates the parameters of a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       ReportConfig reportConfig = ReportConfig.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       ReportConfig response = storageInsightsClient.updateReportConfig(reportConfig, updateMask);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `reportConfig` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig` Required. The resource being updated |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` Required. Field mask is used to specify the fields to be overwritten in the ReportConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |

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

### updateReportConfig(UpdateReportConfigRequest request)

    public final ReportConfig updateReportConfig(UpdateReportConfigRequest request)

Updates the parameters of a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UpdateReportConfigRequest request =
           UpdateReportConfigRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setReportConfig(ReportConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ReportConfig response = storageInsightsClient.updateReportConfig(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.UpdateReportConfigRequest` 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-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig` |   |

### updateReportConfigCallable()

    public final UnaryCallable<UpdateReportConfigRequest,ReportConfig> updateReportConfigCallable()

Updates the parameters of a single ReportConfig.

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 (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
       UpdateReportConfigRequest request =
           UpdateReportConfigRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setReportConfig(ReportConfig.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<ReportConfig> future =
           storageInsightsClient.updateReportConfigCallable().futureCall(request);
       // Do something.
       ReportConfig 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-storageinsights/latest/com.google.cloud.storageinsights.v1.UpdateReportConfigRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/com.google.cloud.storageinsights.v1.ReportConfig>` |   |