All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.DataplexServiceClient Maven / Gradle / Ivy

Go to download

Cloud Dataplex provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale.

There is a newer version: 1.52.0
Show newest version
/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.cloud.dataplex.v1;

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.httpjson.longrunning.OperationsClient;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
import com.google.api.gax.paging.AbstractPagedListResponse;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.dataplex.v1.stub.DataplexServiceStub;
import com.google.cloud.dataplex.v1.stub.DataplexServiceStubSettings;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * Service Description: Dataplex service provides data lakes as a service. The primary resources
 * offered by this service are Lakes, Zones and Assets which collectively allow a data administrator
 * to organize, manage, secure and catalog data across their organization located across cloud
 * projects in a variety of storage systems including Cloud Storage and BigQuery.
 *
 * 

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: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
 *   LakeName name = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
 *   Lake response = dataplexServiceClient.getLake(name);
 * }
 * }
* *

Note: close() needs to be called on the DataplexServiceClient object to clean up resources * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * *

The surface of this class includes several types of Java methods for each of the API's * methods: * *

    *
  1. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. *
  2. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* *

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 DataplexServiceSettings to * create(). For example: * *

To customize credentials: * *

{@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
 * DataplexServiceSettings dataplexServiceSettings =
 *     DataplexServiceSettings.newBuilder()
 *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
 *         .build();
 * DataplexServiceClient dataplexServiceClient =
 *     DataplexServiceClient.create(dataplexServiceSettings);
 * }
* *

To customize the endpoint: * *

{@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
 * DataplexServiceSettings dataplexServiceSettings =
 *     DataplexServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 * DataplexServiceClient dataplexServiceClient =
 *     DataplexServiceClient.create(dataplexServiceSettings);
 * }
* *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over * the wire: * *

{@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
 * DataplexServiceSettings dataplexServiceSettings =
 *     DataplexServiceSettings.newHttpJsonBuilder().build();
 * DataplexServiceClient dataplexServiceClient =
 *     DataplexServiceClient.create(dataplexServiceSettings);
 * }
* *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class DataplexServiceClient implements BackgroundResource { private final DataplexServiceSettings settings; private final DataplexServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of DataplexServiceClient with default settings. */ public static final DataplexServiceClient create() throws IOException { return create(DataplexServiceSettings.newBuilder().build()); } /** * Constructs an instance of DataplexServiceClient, using the given settings. The channels are * created based on the settings passed in, or defaults for any settings that are not set. */ public static final DataplexServiceClient create(DataplexServiceSettings settings) throws IOException { return new DataplexServiceClient(settings); } /** * Constructs an instance of DataplexServiceClient, using the given stub for making calls. This is * for advanced usage - prefer using create(DataplexServiceSettings). */ public static final DataplexServiceClient create(DataplexServiceStub stub) { return new DataplexServiceClient(stub); } /** * Constructs an instance of DataplexServiceClient, 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. */ protected DataplexServiceClient(DataplexServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((DataplexServiceStubSettings) settings.getStubSettings()).createStub(); this.operationsClient = com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected DataplexServiceClient(DataplexServiceStub stub) { this.settings = null; this.stub = stub; this.operationsClient = com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final DataplexServiceSettings getSettings() { return settings; } public DataplexServiceStub getStub() { return stub; } /** * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } /** * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   *   Lake lake = Lake.newBuilder().build();
   *   String lakeId = "lakeId-1110150390";
   *   Lake response = dataplexServiceClient.createLakeAsync(parent, lake, lakeId).get();
   * }
   * }
* * @param parent Required. The resource name of the lake location, of the form: * projects/{project_number}/locations/{location_id} where `location_id` refers to a GCP * region. * @param lake Required. Lake resource * @param lakeId Required. Lake identifier. This ID will be used to generate names such as * database and dataset names when publishing metadata to Hive Metastore and BigQuery. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must end with a number or a letter. *
  • Must be between 1-63 characters. *
  • Must be unique within the customer project / location. *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLakeAsync( LocationName parent, Lake lake, String lakeId) { CreateLakeRequest request = CreateLakeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setLake(lake) .setLakeId(lakeId) .build(); return createLakeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   *   Lake lake = Lake.newBuilder().build();
   *   String lakeId = "lakeId-1110150390";
   *   Lake response = dataplexServiceClient.createLakeAsync(parent, lake, lakeId).get();
   * }
   * }
* * @param parent Required. The resource name of the lake location, of the form: * projects/{project_number}/locations/{location_id} where `location_id` refers to a GCP * region. * @param lake Required. Lake resource * @param lakeId Required. Lake identifier. This ID will be used to generate names such as * database and dataset names when publishing metadata to Hive Metastore and BigQuery. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must end with a number or a letter. *
  • Must be between 1-63 characters. *
  • Must be unique within the customer project / location. *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLakeAsync( String parent, Lake lake, String lakeId) { CreateLakeRequest request = CreateLakeRequest.newBuilder().setParent(parent).setLake(lake).setLakeId(lakeId).build(); return createLakeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateLakeRequest request =
   *       CreateLakeRequest.newBuilder()
   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
   *           .setLakeId("lakeId-1110150390")
   *           .setLake(Lake.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Lake response = dataplexServiceClient.createLakeAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLakeAsync(CreateLakeRequest request) { return createLakeOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateLakeRequest request =
   *       CreateLakeRequest.newBuilder()
   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
   *           .setLakeId("lakeId-1110150390")
   *           .setLake(Lake.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.createLakeOperationCallable().futureCall(request);
   *   // Do something.
   *   Lake response = future.get();
   * }
   * }
*/ public final OperationCallable createLakeOperationCallable() { return stub.createLakeOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateLakeRequest request =
   *       CreateLakeRequest.newBuilder()
   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
   *           .setLakeId("lakeId-1110150390")
   *           .setLake(Lake.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.createLakeCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable createLakeCallable() { return stub.createLakeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   Lake lake = Lake.newBuilder().build();
   *   FieldMask updateMask = FieldMask.newBuilder().build();
   *   Lake response = dataplexServiceClient.updateLakeAsync(lake, updateMask).get();
   * }
   * }
* * @param lake Required. Update description. Only fields specified in `update_mask` are updated. * @param updateMask Required. Mask of fields to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateLakeAsync( Lake lake, FieldMask updateMask) { UpdateLakeRequest request = UpdateLakeRequest.newBuilder().setLake(lake).setUpdateMask(updateMask).build(); return updateLakeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateLakeRequest request =
   *       UpdateLakeRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setLake(Lake.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Lake response = dataplexServiceClient.updateLakeAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateLakeAsync(UpdateLakeRequest request) { return updateLakeOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateLakeRequest request =
   *       UpdateLakeRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setLake(Lake.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.updateLakeOperationCallable().futureCall(request);
   *   // Do something.
   *   Lake response = future.get();
   * }
   * }
*/ public final OperationCallable updateLakeOperationCallable() { return stub.updateLakeOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateLakeRequest request =
   *       UpdateLakeRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setLake(Lake.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.updateLakeCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable updateLakeCallable() { return stub.updateLakeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a lake resource. All zones within the lake must be deleted before the lake can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName name = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   dataplexServiceClient.deleteLakeAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLakeAsync(LakeName name) { DeleteLakeRequest request = DeleteLakeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteLakeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a lake resource. All zones within the lake must be deleted before the lake can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   dataplexServiceClient.deleteLakeAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLakeAsync(String name) { DeleteLakeRequest request = DeleteLakeRequest.newBuilder().setName(name).build(); return deleteLakeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a lake resource. All zones within the lake must be deleted before the lake can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteLakeRequest request =
   *       DeleteLakeRequest.newBuilder()
   *           .setName(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .build();
   *   dataplexServiceClient.deleteLakeAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLakeAsync( DeleteLakeRequest request) { return deleteLakeOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a lake resource. All zones within the lake must be deleted before the lake can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteLakeRequest request =
   *       DeleteLakeRequest.newBuilder()
   *           .setName(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.deleteLakeOperationCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final OperationCallable deleteLakeOperationCallable() { return stub.deleteLakeOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a lake resource. All zones within the lake must be deleted before the lake can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteLakeRequest request =
   *       DeleteLakeRequest.newBuilder()
   *           .setName(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.deleteLakeCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final UnaryCallable deleteLakeCallable() { return stub.deleteLakeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists lake resources in a project and location. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   *   for (Lake element : dataplexServiceClient.listLakes(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the lake location, of the form: * `projects/{project_number}/locations/{location_id}` where `location_id` refers to a GCP * region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLakesPagedResponse listLakes(LocationName parent) { ListLakesRequest request = ListLakesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLakes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists lake resources in a project and location. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   *   for (Lake element : dataplexServiceClient.listLakes(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the lake location, of the form: * `projects/{project_number}/locations/{location_id}` where `location_id` refers to a GCP * region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLakesPagedResponse listLakes(String parent) { ListLakesRequest request = ListLakesRequest.newBuilder().setParent(parent).build(); return listLakes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists lake resources in a project and location. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLakesRequest request =
   *       ListLakesRequest.newBuilder()
   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   for (Lake element : dataplexServiceClient.listLakes(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLakesPagedResponse listLakes(ListLakesRequest request) { return listLakesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists lake resources in a project and location. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLakesRequest request =
   *       ListLakesRequest.newBuilder()
   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   ApiFuture future = dataplexServiceClient.listLakesPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Lake element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listLakesPagedCallable() { return stub.listLakesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists lake resources in a project and location. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLakesRequest request =
   *       ListLakesRequest.newBuilder()
   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   while (true) {
   *     ListLakesResponse response = dataplexServiceClient.listLakesCallable().call(request);
   *     for (Lake element : response.getLakesList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listLakesCallable() { return stub.listLakesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName name = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   Lake response = dataplexServiceClient.getLake(name);
   * }
   * }
* * @param name Required. The resource name of the lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Lake getLake(LakeName name) { GetLakeRequest request = GetLakeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLake(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   Lake response = dataplexServiceClient.getLake(name);
   * }
   * }
* * @param name Required. The resource name of the lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Lake getLake(String name) { GetLakeRequest request = GetLakeRequest.newBuilder().setName(name).build(); return getLake(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetLakeRequest request =
   *       GetLakeRequest.newBuilder()
   *           .setName(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .build();
   *   Lake response = dataplexServiceClient.getLake(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Lake getLake(GetLakeRequest request) { return getLakeCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a lake resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetLakeRequest request =
   *       GetLakeRequest.newBuilder()
   *           .setName(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.getLakeCallable().futureCall(request);
   *   // Do something.
   *   Lake response = future.get();
   * }
   * }
*/ public final UnaryCallable getLakeCallable() { return stub.getLakeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   for (Action element : dataplexServiceClient.listLakeActions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLakeActionsPagedResponse listLakeActions(LakeName parent) { ListLakeActionsRequest request = ListLakeActionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listLakeActions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   for (Action element : dataplexServiceClient.listLakeActions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLakeActionsPagedResponse listLakeActions(String parent) { ListLakeActionsRequest request = ListLakeActionsRequest.newBuilder().setParent(parent).build(); return listLakeActions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLakeActionsRequest request =
   *       ListLakeActionsRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   for (Action element : dataplexServiceClient.listLakeActions(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLakeActionsPagedResponse listLakeActions(ListLakeActionsRequest request) { return listLakeActionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLakeActionsRequest request =
   *       ListLakeActionsRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.listLakeActionsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Action element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listLakeActionsPagedCallable() { return stub.listLakeActionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLakeActionsRequest request =
   *       ListLakeActionsRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   while (true) {
   *     ListActionsResponse response =
   *         dataplexServiceClient.listLakeActionsCallable().call(request);
   *     for (Action element : response.getActionsList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listLakeActionsCallable() { return stub.listLakeActionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a zone resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   Zone zone = Zone.newBuilder().build();
   *   String zoneId = "zoneId-696323609";
   *   Zone response = dataplexServiceClient.createZoneAsync(parent, zone, zoneId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @param zone Required. Zone resource. * @param zoneId Required. Zone identifier. This ID will be used to generate names such as * database and dataset names when publishing metadata to Hive Metastore and BigQuery. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must end with a number or a letter. *
  • Must be between 1-63 characters. *
  • Must be unique across all lakes from all locations in a project. *
  • Must not be one of the reserved IDs (i.e. "default", "global-temp") *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createZoneAsync( LakeName parent, Zone zone, String zoneId) { CreateZoneRequest request = CreateZoneRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setZone(zone) .setZoneId(zoneId) .build(); return createZoneAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a zone resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   Zone zone = Zone.newBuilder().build();
   *   String zoneId = "zoneId-696323609";
   *   Zone response = dataplexServiceClient.createZoneAsync(parent, zone, zoneId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @param zone Required. Zone resource. * @param zoneId Required. Zone identifier. This ID will be used to generate names such as * database and dataset names when publishing metadata to Hive Metastore and BigQuery. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must end with a number or a letter. *
  • Must be between 1-63 characters. *
  • Must be unique across all lakes from all locations in a project. *
  • Must not be one of the reserved IDs (i.e. "default", "global-temp") *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createZoneAsync( String parent, Zone zone, String zoneId) { CreateZoneRequest request = CreateZoneRequest.newBuilder().setParent(parent).setZone(zone).setZoneId(zoneId).build(); return createZoneAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a zone resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateZoneRequest request =
   *       CreateZoneRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setZoneId("zoneId-696323609")
   *           .setZone(Zone.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Zone response = dataplexServiceClient.createZoneAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createZoneAsync(CreateZoneRequest request) { return createZoneOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a zone resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateZoneRequest request =
   *       CreateZoneRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setZoneId("zoneId-696323609")
   *           .setZone(Zone.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.createZoneOperationCallable().futureCall(request);
   *   // Do something.
   *   Zone response = future.get();
   * }
   * }
*/ public final OperationCallable createZoneOperationCallable() { return stub.createZoneOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a zone resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateZoneRequest request =
   *       CreateZoneRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setZoneId("zoneId-696323609")
   *           .setZone(Zone.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.createZoneCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable createZoneCallable() { return stub.createZoneCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   Zone zone = Zone.newBuilder().build();
   *   FieldMask updateMask = FieldMask.newBuilder().build();
   *   Zone response = dataplexServiceClient.updateZoneAsync(zone, updateMask).get();
   * }
   * }
* * @param zone Required. Update description. Only fields specified in `update_mask` are updated. * @param updateMask Required. Mask of fields to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateZoneAsync( Zone zone, FieldMask updateMask) { UpdateZoneRequest request = UpdateZoneRequest.newBuilder().setZone(zone).setUpdateMask(updateMask).build(); return updateZoneAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateZoneRequest request =
   *       UpdateZoneRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setZone(Zone.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Zone response = dataplexServiceClient.updateZoneAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateZoneAsync(UpdateZoneRequest request) { return updateZoneOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateZoneRequest request =
   *       UpdateZoneRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setZone(Zone.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.updateZoneOperationCallable().futureCall(request);
   *   // Do something.
   *   Zone response = future.get();
   * }
   * }
*/ public final OperationCallable updateZoneOperationCallable() { return stub.updateZoneOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateZoneRequest request =
   *       UpdateZoneRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setZone(Zone.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.updateZoneCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable updateZoneCallable() { return stub.updateZoneCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a zone resource. All assets within a zone must be deleted before the zone can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
   *   dataplexServiceClient.deleteZoneAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteZoneAsync(ZoneName name) { DeleteZoneRequest request = DeleteZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteZoneAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a zone resource. All assets within a zone must be deleted before the zone can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString();
   *   dataplexServiceClient.deleteZoneAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteZoneAsync(String name) { DeleteZoneRequest request = DeleteZoneRequest.newBuilder().setName(name).build(); return deleteZoneAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a zone resource. All assets within a zone must be deleted before the zone can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteZoneRequest request =
   *       DeleteZoneRequest.newBuilder()
   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .build();
   *   dataplexServiceClient.deleteZoneAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteZoneAsync( DeleteZoneRequest request) { return deleteZoneOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a zone resource. All assets within a zone must be deleted before the zone can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteZoneRequest request =
   *       DeleteZoneRequest.newBuilder()
   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.deleteZoneOperationCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final OperationCallable deleteZoneOperationCallable() { return stub.deleteZoneOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a zone resource. All assets within a zone must be deleted before the zone can be * deleted. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteZoneRequest request =
   *       DeleteZoneRequest.newBuilder()
   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.deleteZoneCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final UnaryCallable deleteZoneCallable() { return stub.deleteZoneCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists zone resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   for (Zone element : dataplexServiceClient.listZones(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZonesPagedResponse listZones(LakeName parent) { ListZonesRequest request = ListZonesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listZones(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists zone resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   for (Zone element : dataplexServiceClient.listZones(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZonesPagedResponse listZones(String parent) { ListZonesRequest request = ListZonesRequest.newBuilder().setParent(parent).build(); return listZones(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists zone resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListZonesRequest request =
   *       ListZonesRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   for (Zone element : dataplexServiceClient.listZones(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZonesPagedResponse listZones(ListZonesRequest request) { return listZonesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists zone resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListZonesRequest request =
   *       ListZonesRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   ApiFuture future = dataplexServiceClient.listZonesPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Zone element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listZonesPagedCallable() { return stub.listZonesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists zone resources in a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListZonesRequest request =
   *       ListZonesRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   while (true) {
   *     ListZonesResponse response = dataplexServiceClient.listZonesCallable().call(request);
   *     for (Zone element : response.getZonesList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listZonesCallable() { return stub.listZonesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
   *   Zone response = dataplexServiceClient.getZone(name);
   * }
   * }
* * @param name Required. The resource name of the zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Zone getZone(ZoneName name) { GetZoneRequest request = GetZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getZone(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString();
   *   Zone response = dataplexServiceClient.getZone(name);
   * }
   * }
* * @param name Required. The resource name of the zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Zone getZone(String name) { GetZoneRequest request = GetZoneRequest.newBuilder().setName(name).build(); return getZone(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetZoneRequest request =
   *       GetZoneRequest.newBuilder()
   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .build();
   *   Zone response = dataplexServiceClient.getZone(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Zone getZone(GetZoneRequest request) { return getZoneCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a zone resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetZoneRequest request =
   *       GetZoneRequest.newBuilder()
   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.getZoneCallable().futureCall(request);
   *   // Do something.
   *   Zone response = future.get();
   * }
   * }
*/ public final UnaryCallable getZoneCallable() { return stub.getZoneCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
   *   for (Action element : dataplexServiceClient.listZoneActions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZoneActionsPagedResponse listZoneActions(ZoneName parent) { ListZoneActionsRequest request = ListZoneActionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listZoneActions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString();
   *   for (Action element : dataplexServiceClient.listZoneActions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZoneActionsPagedResponse listZoneActions(String parent) { ListZoneActionsRequest request = ListZoneActionsRequest.newBuilder().setParent(parent).build(); return listZoneActions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListZoneActionsRequest request =
   *       ListZoneActionsRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   for (Action element : dataplexServiceClient.listZoneActions(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListZoneActionsPagedResponse listZoneActions(ListZoneActionsRequest request) { return listZoneActionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListZoneActionsRequest request =
   *       ListZoneActionsRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.listZoneActionsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Action element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listZoneActionsPagedCallable() { return stub.listZoneActionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListZoneActionsRequest request =
   *       ListZoneActionsRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   while (true) {
   *     ListActionsResponse response =
   *         dataplexServiceClient.listZoneActionsCallable().call(request);
   *     for (Action element : response.getActionsList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listZoneActionsCallable() { return stub.listZoneActionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
   *   Asset asset = Asset.newBuilder().build();
   *   String assetId = "assetId-704776149";
   *   Asset response = dataplexServiceClient.createAssetAsync(parent, asset, assetId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @param asset Required. Asset resource. * @param assetId Required. Asset identifier. This ID will be used to generate names such as table * names when publishing metadata to Hive Metastore and BigQuery. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must end with a number or a letter. *
  • Must be between 1-63 characters. *
  • Must be unique within the zone. *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAssetAsync( ZoneName parent, Asset asset, String assetId) { CreateAssetRequest request = CreateAssetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setAsset(asset) .setAssetId(assetId) .build(); return createAssetAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString();
   *   Asset asset = Asset.newBuilder().build();
   *   String assetId = "assetId-704776149";
   *   Asset response = dataplexServiceClient.createAssetAsync(parent, asset, assetId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @param asset Required. Asset resource. * @param assetId Required. Asset identifier. This ID will be used to generate names such as table * names when publishing metadata to Hive Metastore and BigQuery. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must end with a number or a letter. *
  • Must be between 1-63 characters. *
  • Must be unique within the zone. *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAssetAsync( String parent, Asset asset, String assetId) { CreateAssetRequest request = CreateAssetRequest.newBuilder() .setParent(parent) .setAsset(asset) .setAssetId(assetId) .build(); return createAssetAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateAssetRequest request =
   *       CreateAssetRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setAssetId("assetId-704776149")
   *           .setAsset(Asset.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Asset response = dataplexServiceClient.createAssetAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAssetAsync( CreateAssetRequest request) { return createAssetOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateAssetRequest request =
   *       CreateAssetRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setAssetId("assetId-704776149")
   *           .setAsset(Asset.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.createAssetOperationCallable().futureCall(request);
   *   // Do something.
   *   Asset response = future.get();
   * }
   * }
*/ public final OperationCallable createAssetOperationCallable() { return stub.createAssetOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateAssetRequest request =
   *       CreateAssetRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setAssetId("assetId-704776149")
   *           .setAsset(Asset.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.createAssetCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable createAssetCallable() { return stub.createAssetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   Asset asset = Asset.newBuilder().build();
   *   FieldMask updateMask = FieldMask.newBuilder().build();
   *   Asset response = dataplexServiceClient.updateAssetAsync(asset, updateMask).get();
   * }
   * }
* * @param asset Required. Update description. Only fields specified in `update_mask` are updated. * @param updateMask Required. Mask of fields to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateAssetAsync( Asset asset, FieldMask updateMask) { UpdateAssetRequest request = UpdateAssetRequest.newBuilder().setAsset(asset).setUpdateMask(updateMask).build(); return updateAssetAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateAssetRequest request =
   *       UpdateAssetRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setAsset(Asset.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Asset response = dataplexServiceClient.updateAssetAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateAssetAsync( UpdateAssetRequest request) { return updateAssetOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateAssetRequest request =
   *       UpdateAssetRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setAsset(Asset.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.updateAssetOperationCallable().futureCall(request);
   *   // Do something.
   *   Asset response = future.get();
   * }
   * }
*/ public final OperationCallable updateAssetOperationCallable() { return stub.updateAssetOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateAssetRequest request =
   *       UpdateAssetRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setAsset(Asset.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.updateAssetCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable updateAssetCallable() { return stub.updateAssetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an asset resource. The referenced storage resource is detached (default) or deleted * based on the associated Lifecycle policy. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   AssetName name = AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]");
   *   dataplexServiceClient.deleteAssetAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the asset: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAssetAsync(AssetName name) { DeleteAssetRequest request = DeleteAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAssetAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an asset resource. The referenced storage resource is detached (default) or deleted * based on the associated Lifecycle policy. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name =
   *       AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString();
   *   dataplexServiceClient.deleteAssetAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the asset: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAssetAsync(String name) { DeleteAssetRequest request = DeleteAssetRequest.newBuilder().setName(name).build(); return deleteAssetAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an asset resource. The referenced storage resource is detached (default) or deleted * based on the associated Lifecycle policy. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteAssetRequest request =
   *       DeleteAssetRequest.newBuilder()
   *           .setName(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .build();
   *   dataplexServiceClient.deleteAssetAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAssetAsync( DeleteAssetRequest request) { return deleteAssetOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an asset resource. The referenced storage resource is detached (default) or deleted * based on the associated Lifecycle policy. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteAssetRequest request =
   *       DeleteAssetRequest.newBuilder()
   *           .setName(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.deleteAssetOperationCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final OperationCallable deleteAssetOperationCallable() { return stub.deleteAssetOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an asset resource. The referenced storage resource is detached (default) or deleted * based on the associated Lifecycle policy. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteAssetRequest request =
   *       DeleteAssetRequest.newBuilder()
   *           .setName(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.deleteAssetCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final UnaryCallable deleteAssetCallable() { return stub.deleteAssetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists asset resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ZoneName parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
   *   for (Asset element : dataplexServiceClient.listAssets(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAssetsPagedResponse listAssets(ZoneName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists asset resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString();
   *   for (Asset element : dataplexServiceClient.listAssets(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent zone: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAssetsPagedResponse listAssets(String parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent).build(); return listAssets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists asset resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListAssetsRequest request =
   *       ListAssetsRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   for (Asset element : dataplexServiceClient.listAssets(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAssetsPagedResponse listAssets(ListAssetsRequest request) { return listAssetsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists asset resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListAssetsRequest request =
   *       ListAssetsRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   ApiFuture future = dataplexServiceClient.listAssetsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Asset element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listAssetsPagedCallable() { return stub.listAssetsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists asset resources in a zone. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListAssetsRequest request =
   *       ListAssetsRequest.newBuilder()
   *           .setParent(ZoneName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   while (true) {
   *     ListAssetsResponse response = dataplexServiceClient.listAssetsCallable().call(request);
   *     for (Asset element : response.getAssetsList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listAssetsCallable() { return stub.listAssetsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   AssetName name = AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]");
   *   Asset response = dataplexServiceClient.getAsset(name);
   * }
   * }
* * @param name Required. The resource name of the asset: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Asset getAsset(AssetName name) { GetAssetRequest request = GetAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAsset(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name =
   *       AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString();
   *   Asset response = dataplexServiceClient.getAsset(name);
   * }
   * }
* * @param name Required. The resource name of the asset: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Asset getAsset(String name) { GetAssetRequest request = GetAssetRequest.newBuilder().setName(name).build(); return getAsset(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetAssetRequest request =
   *       GetAssetRequest.newBuilder()
   *           .setName(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .build();
   *   Asset response = dataplexServiceClient.getAsset(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Asset getAsset(GetAssetRequest request) { return getAssetCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves an asset resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetAssetRequest request =
   *       GetAssetRequest.newBuilder()
   *           .setName(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.getAssetCallable().futureCall(request);
   *   // Do something.
   *   Asset response = future.get();
   * }
   * }
*/ public final UnaryCallable getAssetCallable() { return stub.getAssetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in an asset. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   AssetName parent = AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]");
   *   for (Action element : dataplexServiceClient.listAssetActions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent asset: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAssetActionsPagedResponse listAssetActions(AssetName parent) { ListAssetActionsRequest request = ListAssetActionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listAssetActions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in an asset. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent =
   *       AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString();
   *   for (Action element : dataplexServiceClient.listAssetActions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent asset: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAssetActionsPagedResponse listAssetActions(String parent) { ListAssetActionsRequest request = ListAssetActionsRequest.newBuilder().setParent(parent).build(); return listAssetActions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in an asset. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListAssetActionsRequest request =
   *       ListAssetActionsRequest.newBuilder()
   *           .setParent(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   for (Action element : dataplexServiceClient.listAssetActions(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAssetActionsPagedResponse listAssetActions(ListAssetActionsRequest request) { return listAssetActionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in an asset. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListAssetActionsRequest request =
   *       ListAssetActionsRequest.newBuilder()
   *           .setParent(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.listAssetActionsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Action element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listAssetActionsPagedCallable() { return stub.listAssetActionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists action resources in an asset. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListAssetActionsRequest request =
   *       ListAssetActionsRequest.newBuilder()
   *           .setParent(
   *               AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   while (true) {
   *     ListActionsResponse response =
   *         dataplexServiceClient.listAssetActionsCallable().call(request);
   *     for (Action element : response.getActionsList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listAssetActionsCallable() { return stub.listAssetActionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a task resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   Task task = Task.newBuilder().build();
   *   String taskId = "taskId-880873088";
   *   Task response = dataplexServiceClient.createTaskAsync(parent, task, taskId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @param task Required. Task resource. * @param taskId Required. Task identifier. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTaskAsync( LakeName parent, Task task, String taskId) { CreateTaskRequest request = CreateTaskRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setTask(task) .setTaskId(taskId) .build(); return createTaskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a task resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   Task task = Task.newBuilder().build();
   *   String taskId = "taskId-880873088";
   *   Task response = dataplexServiceClient.createTaskAsync(parent, task, taskId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @param task Required. Task resource. * @param taskId Required. Task identifier. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTaskAsync( String parent, Task task, String taskId) { CreateTaskRequest request = CreateTaskRequest.newBuilder().setParent(parent).setTask(task).setTaskId(taskId).build(); return createTaskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a task resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateTaskRequest request =
   *       CreateTaskRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setTaskId("taskId-880873088")
   *           .setTask(Task.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Task response = dataplexServiceClient.createTaskAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTaskAsync(CreateTaskRequest request) { return createTaskOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a task resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateTaskRequest request =
   *       CreateTaskRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setTaskId("taskId-880873088")
   *           .setTask(Task.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.createTaskOperationCallable().futureCall(request);
   *   // Do something.
   *   Task response = future.get();
   * }
   * }
*/ public final OperationCallable createTaskOperationCallable() { return stub.createTaskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a task resource within a lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateTaskRequest request =
   *       CreateTaskRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setTaskId("taskId-880873088")
   *           .setTask(Task.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.createTaskCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable createTaskCallable() { return stub.createTaskCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   Task task = Task.newBuilder().build();
   *   FieldMask updateMask = FieldMask.newBuilder().build();
   *   Task response = dataplexServiceClient.updateTaskAsync(task, updateMask).get();
   * }
   * }
* * @param task Required. Update description. Only fields specified in `update_mask` are updated. * @param updateMask Required. Mask of fields to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateTaskAsync( Task task, FieldMask updateMask) { UpdateTaskRequest request = UpdateTaskRequest.newBuilder().setTask(task).setUpdateMask(updateMask).build(); return updateTaskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateTaskRequest request =
   *       UpdateTaskRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setTask(Task.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Task response = dataplexServiceClient.updateTaskAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateTaskAsync(UpdateTaskRequest request) { return updateTaskOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateTaskRequest request =
   *       UpdateTaskRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setTask(Task.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.updateTaskOperationCallable().futureCall(request);
   *   // Do something.
   *   Task response = future.get();
   * }
   * }
*/ public final OperationCallable updateTaskOperationCallable() { return stub.updateTaskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateTaskRequest request =
   *       UpdateTaskRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setTask(Task.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future = dataplexServiceClient.updateTaskCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable updateTaskCallable() { return stub.updateTaskCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]");
   *   dataplexServiceClient.deleteTaskAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the task: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTaskAsync(TaskName name) { DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTaskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString();
   *   dataplexServiceClient.deleteTaskAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the task: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTaskAsync(String name) { DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name).build(); return deleteTaskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteTaskRequest request =
   *       DeleteTaskRequest.newBuilder()
   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .build();
   *   dataplexServiceClient.deleteTaskAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTaskAsync( DeleteTaskRequest request) { return deleteTaskOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteTaskRequest request =
   *       DeleteTaskRequest.newBuilder()
   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.deleteTaskOperationCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final OperationCallable deleteTaskOperationCallable() { return stub.deleteTaskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteTaskRequest request =
   *       DeleteTaskRequest.newBuilder()
   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.deleteTaskCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final UnaryCallable deleteTaskCallable() { return stub.deleteTaskCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists tasks under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   for (Task element : dataplexServiceClient.listTasks(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTasksPagedResponse listTasks(LakeName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists tasks under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   for (Task element : dataplexServiceClient.listTasks(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTasksPagedResponse listTasks(String parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent).build(); return listTasks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists tasks under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListTasksRequest request =
   *       ListTasksRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   for (Task element : dataplexServiceClient.listTasks(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTasksPagedResponse listTasks(ListTasksRequest request) { return listTasksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists tasks under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListTasksRequest request =
   *       ListTasksRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   ApiFuture future = dataplexServiceClient.listTasksPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Task element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listTasksPagedCallable() { return stub.listTasksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists tasks under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListTasksRequest request =
   *       ListTasksRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   while (true) {
   *     ListTasksResponse response = dataplexServiceClient.listTasksCallable().call(request);
   *     for (Task element : response.getTasksList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listTasksCallable() { return stub.listTasksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]");
   *   Task response = dataplexServiceClient.getTask(name);
   * }
   * }
* * @param name Required. The resource name of the task: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Task getTask(TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString();
   *   Task response = dataplexServiceClient.getTask(name);
   * }
   * }
* * @param name Required. The resource name of the task: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Task getTask(String name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name).build(); return getTask(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetTaskRequest request =
   *       GetTaskRequest.newBuilder()
   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .build();
   *   Task response = dataplexServiceClient.getTask(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Task getTask(GetTaskRequest request) { return getTaskCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetTaskRequest request =
   *       GetTaskRequest.newBuilder()
   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.getTaskCallable().futureCall(request);
   *   // Do something.
   *   Task response = future.get();
   * }
   * }
*/ public final UnaryCallable getTaskCallable() { return stub.getTaskCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Jobs under the given task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   TaskName parent = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]");
   *   for (Job element : dataplexServiceClient.listJobs(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent environment: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListJobsPagedResponse listJobs(TaskName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Jobs under the given task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString();
   *   for (Job element : dataplexServiceClient.listJobs(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent environment: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListJobsPagedResponse listJobs(String parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent).build(); return listJobs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Jobs under the given task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListJobsRequest request =
   *       ListJobsRequest.newBuilder()
   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   for (Job element : dataplexServiceClient.listJobs(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { return listJobsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Jobs under the given task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListJobsRequest request =
   *       ListJobsRequest.newBuilder()
   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   ApiFuture future = dataplexServiceClient.listJobsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Job element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listJobsPagedCallable() { return stub.listJobsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Jobs under the given task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListJobsRequest request =
   *       ListJobsRequest.newBuilder()
   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   while (true) {
   *     ListJobsResponse response = dataplexServiceClient.listJobsCallable().call(request);
   *     for (Job element : response.getJobsList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listJobsCallable() { return stub.listJobsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Run an on demand execution of a Task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]");
   *   RunTaskResponse response = dataplexServiceClient.runTask(name);
   * }
   * }
* * @param name Required. The resource name of the task: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RunTaskResponse runTask(TaskName name) { RunTaskRequest request = RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runTask(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Run an on demand execution of a Task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString();
   *   RunTaskResponse response = dataplexServiceClient.runTask(name);
   * }
   * }
* * @param name Required. The resource name of the task: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RunTaskResponse runTask(String name) { RunTaskRequest request = RunTaskRequest.newBuilder().setName(name).build(); return runTask(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Run an on demand execution of a Task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   RunTaskRequest request =
   *       RunTaskRequest.newBuilder()
   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .putAllLabels(new HashMap())
   *           .putAllArgs(new HashMap())
   *           .build();
   *   RunTaskResponse response = dataplexServiceClient.runTask(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RunTaskResponse runTask(RunTaskRequest request) { return runTaskCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Run an on demand execution of a Task. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   RunTaskRequest request =
   *       RunTaskRequest.newBuilder()
   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]").toString())
   *           .putAllLabels(new HashMap())
   *           .putAllArgs(new HashMap())
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.runTaskCallable().futureCall(request);
   *   // Do something.
   *   RunTaskResponse response = future.get();
   * }
   * }
*/ public final UnaryCallable runTaskCallable() { return stub.runTaskCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get job resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]");
   *   Job response = dataplexServiceClient.getJob(name);
   * }
   * }
* * @param name Required. The resource name of the job: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job getJob(JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get job resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]").toString();
   *   Job response = dataplexServiceClient.getJob(name);
   * }
   * }
* * @param name Required. The resource name of the job: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job getJob(String name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name).build(); return getJob(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get job resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetJobRequest request =
   *       GetJobRequest.newBuilder()
   *           .setName(
   *               JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]").toString())
   *           .build();
   *   Job response = dataplexServiceClient.getJob(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job getJob(GetJobRequest request) { return getJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get job resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetJobRequest request =
   *       GetJobRequest.newBuilder()
   *           .setName(
   *               JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.getJobCallable().futureCall(request);
   *   // Do something.
   *   Job response = future.get();
   * }
   * }
*/ public final UnaryCallable getJobCallable() { return stub.getJobCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancel jobs running for the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]");
   *   dataplexServiceClient.cancelJob(name);
   * }
   * }
* * @param name Required. The resource name of the job: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelJob(JobName name) { CancelJobRequest request = CancelJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelJob(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancel jobs running for the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name = JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]").toString();
   *   dataplexServiceClient.cancelJob(name);
   * }
   * }
* * @param name Required. The resource name of the job: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelJob(String name) { CancelJobRequest request = CancelJobRequest.newBuilder().setName(name).build(); cancelJob(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancel jobs running for the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CancelJobRequest request =
   *       CancelJobRequest.newBuilder()
   *           .setName(
   *               JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]").toString())
   *           .build();
   *   dataplexServiceClient.cancelJob(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelJob(CancelJobRequest request) { cancelJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancel jobs running for the task resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CancelJobRequest request =
   *       CancelJobRequest.newBuilder()
   *           .setName(
   *               JobName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[TASK]", "[JOB]").toString())
   *           .build();
   *   ApiFuture future = dataplexServiceClient.cancelJobCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final UnaryCallable cancelJobCallable() { return stub.cancelJobCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create an environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   Environment environment = Environment.newBuilder().build();
   *   String environmentId = "environmentId-950205810";
   *   Environment response =
   *       dataplexServiceClient.createEnvironmentAsync(parent, environment, environmentId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`. * @param environment Required. Environment resource. * @param environmentId Required. Environment identifier. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must be between 1-63 characters. *
  • Must end with a number or a letter. *
  • Must be unique within the lake. *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEnvironmentAsync( LakeName parent, Environment environment, String environmentId) { CreateEnvironmentRequest request = CreateEnvironmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setEnvironment(environment) .setEnvironmentId(environmentId) .build(); return createEnvironmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create an environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   Environment environment = Environment.newBuilder().build();
   *   String environmentId = "environmentId-950205810";
   *   Environment response =
   *       dataplexServiceClient.createEnvironmentAsync(parent, environment, environmentId).get();
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`. * @param environment Required. Environment resource. * @param environmentId Required. Environment identifier. *
    *
  • Must contain only lowercase letters, numbers and hyphens. *
  • Must start with a letter. *
  • Must be between 1-63 characters. *
  • Must end with a number or a letter. *
  • Must be unique within the lake. *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEnvironmentAsync( String parent, Environment environment, String environmentId) { CreateEnvironmentRequest request = CreateEnvironmentRequest.newBuilder() .setParent(parent) .setEnvironment(environment) .setEnvironmentId(environmentId) .build(); return createEnvironmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create an environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateEnvironmentRequest request =
   *       CreateEnvironmentRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setEnvironmentId("environmentId-950205810")
   *           .setEnvironment(Environment.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Environment response = dataplexServiceClient.createEnvironmentAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEnvironmentAsync( CreateEnvironmentRequest request) { return createEnvironmentOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create an environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateEnvironmentRequest request =
   *       CreateEnvironmentRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setEnvironmentId("environmentId-950205810")
   *           .setEnvironment(Environment.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.createEnvironmentOperationCallable().futureCall(request);
   *   // Do something.
   *   Environment response = future.get();
   * }
   * }
*/ public final OperationCallable createEnvironmentOperationCallable() { return stub.createEnvironmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create an environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   CreateEnvironmentRequest request =
   *       CreateEnvironmentRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setEnvironmentId("environmentId-950205810")
   *           .setEnvironment(Environment.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.createEnvironmentCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable createEnvironmentCallable() { return stub.createEnvironmentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   Environment environment = Environment.newBuilder().build();
   *   FieldMask updateMask = FieldMask.newBuilder().build();
   *   Environment response =
   *       dataplexServiceClient.updateEnvironmentAsync(environment, updateMask).get();
   * }
   * }
* * @param environment Required. Update description. Only fields specified in `update_mask` are * updated. * @param updateMask Required. Mask of fields to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateEnvironmentAsync( Environment environment, FieldMask updateMask) { UpdateEnvironmentRequest request = UpdateEnvironmentRequest.newBuilder() .setEnvironment(environment) .setUpdateMask(updateMask) .build(); return updateEnvironmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateEnvironmentRequest request =
   *       UpdateEnvironmentRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setEnvironment(Environment.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   Environment response = dataplexServiceClient.updateEnvironmentAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateEnvironmentAsync( UpdateEnvironmentRequest request) { return updateEnvironmentOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateEnvironmentRequest request =
   *       UpdateEnvironmentRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setEnvironment(Environment.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.updateEnvironmentOperationCallable().futureCall(request);
   *   // Do something.
   *   Environment response = future.get();
   * }
   * }
*/ public final OperationCallable updateEnvironmentOperationCallable() { return stub.updateEnvironmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update the environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   UpdateEnvironmentRequest request =
   *       UpdateEnvironmentRequest.newBuilder()
   *           .setUpdateMask(FieldMask.newBuilder().build())
   *           .setEnvironment(Environment.newBuilder().build())
   *           .setValidateOnly(true)
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.updateEnvironmentCallable().futureCall(request);
   *   // Do something.
   *   Operation response = future.get();
   * }
   * }
*/ public final UnaryCallable updateEnvironmentCallable() { return stub.updateEnvironmentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the environment resource. All the child resources must have been deleted before * environment deletion can be initiated. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   EnvironmentName name =
   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]");
   *   dataplexServiceClient.deleteEnvironmentAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the environment: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/{environment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEnvironmentAsync( EnvironmentName name) { DeleteEnvironmentRequest request = DeleteEnvironmentRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); return deleteEnvironmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the environment resource. All the child resources must have been deleted before * environment deletion can be initiated. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name =
   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]").toString();
   *   dataplexServiceClient.deleteEnvironmentAsync(name).get();
   * }
   * }
* * @param name Required. The resource name of the environment: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/{environment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEnvironmentAsync(String name) { DeleteEnvironmentRequest request = DeleteEnvironmentRequest.newBuilder().setName(name).build(); return deleteEnvironmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the environment resource. All the child resources must have been deleted before * environment deletion can be initiated. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteEnvironmentRequest request =
   *       DeleteEnvironmentRequest.newBuilder()
   *           .setName(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .build();
   *   dataplexServiceClient.deleteEnvironmentAsync(request).get();
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEnvironmentAsync( DeleteEnvironmentRequest request) { return deleteEnvironmentOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the environment resource. All the child resources must have been deleted before * environment deletion can be initiated. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteEnvironmentRequest request =
   *       DeleteEnvironmentRequest.newBuilder()
   *           .setName(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .build();
   *   OperationFuture future =
   *       dataplexServiceClient.deleteEnvironmentOperationCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final OperationCallable deleteEnvironmentOperationCallable() { return stub.deleteEnvironmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Delete the environment resource. All the child resources must have been deleted before * environment deletion can be initiated. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   DeleteEnvironmentRequest request =
   *       DeleteEnvironmentRequest.newBuilder()
   *           .setName(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.deleteEnvironmentCallable().futureCall(request);
   *   // Do something.
   *   future.get();
   * }
   * }
*/ public final UnaryCallable deleteEnvironmentCallable() { return stub.deleteEnvironmentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists environments under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   LakeName parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]");
   *   for (Environment element : dataplexServiceClient.listEnvironments(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEnvironmentsPagedResponse listEnvironments(LakeName parent) { ListEnvironmentsRequest request = ListEnvironmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listEnvironments(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists environments under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent = LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString();
   *   for (Environment element : dataplexServiceClient.listEnvironments(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent lake: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEnvironmentsPagedResponse listEnvironments(String parent) { ListEnvironmentsRequest request = ListEnvironmentsRequest.newBuilder().setParent(parent).build(); return listEnvironments(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists environments under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListEnvironmentsRequest request =
   *       ListEnvironmentsRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   for (Environment element : dataplexServiceClient.listEnvironments(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequest request) { return listEnvironmentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists environments under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListEnvironmentsRequest request =
   *       ListEnvironmentsRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.listEnvironmentsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Environment element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listEnvironmentsPagedCallable() { return stub.listEnvironmentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists environments under the given lake. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListEnvironmentsRequest request =
   *       ListEnvironmentsRequest.newBuilder()
   *           .setParent(LakeName.of("[PROJECT]", "[LOCATION]", "[LAKE]").toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .setOrderBy("orderBy-1207110587")
   *           .build();
   *   while (true) {
   *     ListEnvironmentsResponse response =
   *         dataplexServiceClient.listEnvironmentsCallable().call(request);
   *     for (Environment element : response.getEnvironmentsList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listEnvironmentsCallable() { return stub.listEnvironmentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   EnvironmentName name =
   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]");
   *   Environment response = dataplexServiceClient.getEnvironment(name);
   * }
   * }
* * @param name Required. The resource name of the environment: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/{environment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Environment getEnvironment(EnvironmentName name) { GetEnvironmentRequest request = GetEnvironmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEnvironment(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String name =
   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]").toString();
   *   Environment response = dataplexServiceClient.getEnvironment(name);
   * }
   * }
* * @param name Required. The resource name of the environment: * `projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/{environment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Environment getEnvironment(String name) { GetEnvironmentRequest request = GetEnvironmentRequest.newBuilder().setName(name).build(); return getEnvironment(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetEnvironmentRequest request =
   *       GetEnvironmentRequest.newBuilder()
   *           .setName(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .build();
   *   Environment response = dataplexServiceClient.getEnvironment(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Environment getEnvironment(GetEnvironmentRequest request) { return getEnvironmentCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Get environment resource. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetEnvironmentRequest request =
   *       GetEnvironmentRequest.newBuilder()
   *           .setName(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.getEnvironmentCallable().futureCall(request);
   *   // Do something.
   *   Environment response = future.get();
   * }
   * }
*/ public final UnaryCallable getEnvironmentCallable() { return stub.getEnvironmentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists session resources in an environment. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   EnvironmentName parent =
   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]");
   *   for (Session element : dataplexServiceClient.listSessions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent environment: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSessionsPagedResponse listSessions(EnvironmentName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listSessions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists session resources in an environment. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   String parent =
   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]").toString();
   *   for (Session element : dataplexServiceClient.listSessions(parent).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param parent Required. The resource name of the parent environment: * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSessionsPagedResponse listSessions(String parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder().setParent(parent).build(); return listSessions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists session resources in an environment. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListSessionsRequest request =
   *       ListSessionsRequest.newBuilder()
   *           .setParent(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .build();
   *   for (Session element : dataplexServiceClient.listSessions(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSessionsPagedResponse listSessions(ListSessionsRequest request) { return listSessionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists session resources in an environment. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListSessionsRequest request =
   *       ListSessionsRequest.newBuilder()
   *           .setParent(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.listSessionsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Session element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listSessionsPagedCallable() { return stub.listSessionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists session resources in an environment. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListSessionsRequest request =
   *       ListSessionsRequest.newBuilder()
   *           .setParent(
   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ENVIRONMENT]")
   *                   .toString())
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .setFilter("filter-1274492040")
   *           .build();
   *   while (true) {
   *     ListSessionsResponse response = dataplexServiceClient.listSessionsCallable().call(request);
   *     for (Session element : response.getSessionsList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listSessionsCallable() { return stub.listSessionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLocationsRequest request =
   *       ListLocationsRequest.newBuilder()
   *           .setName("name3373707")
   *           .setFilter("filter-1274492040")
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   for (Location element : dataplexServiceClient.listLocations(request).iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { return listLocationsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLocationsRequest request =
   *       ListLocationsRequest.newBuilder()
   *           .setName("name3373707")
   *           .setFilter("filter-1274492040")
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   ApiFuture future =
   *       dataplexServiceClient.listLocationsPagedCallable().futureCall(request);
   *   // Do something.
   *   for (Location element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
   * }
*/ public final UnaryCallable listLocationsPagedCallable() { return stub.listLocationsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   ListLocationsRequest request =
   *       ListLocationsRequest.newBuilder()
   *           .setName("name3373707")
   *           .setFilter("filter-1274492040")
   *           .setPageSize(883849137)
   *           .setPageToken("pageToken873572522")
   *           .build();
   *   while (true) {
   *     ListLocationsResponse response =
   *         dataplexServiceClient.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;
   *     }
   *   }
   * }
   * }
*/ public final UnaryCallable listLocationsCallable() { return stub.listLocationsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets information about a location. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   *   Location response = dataplexServiceClient.getLocation(request);
   * }
   * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Location getLocation(GetLocationRequest request) { return getLocationCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets information about a location. * *

Sample code: * *

{@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 (DataplexServiceClient dataplexServiceClient = DataplexServiceClient.create()) {
   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   *   ApiFuture future = dataplexServiceClient.getLocationCallable().futureCall(request);
   *   // Do something.
   *   Location response = future.get();
   * }
   * }
*/ public final UnaryCallable getLocationCallable() { return stub.getLocationCallable(); } @Override public final void close() { stub.close(); } @Override public void shutdown() { stub.shutdown(); } @Override public boolean isShutdown() { return stub.isShutdown(); } @Override public boolean isTerminated() { return stub.isTerminated(); } @Override public void shutdownNow() { stub.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } public static class ListLakesPagedResponse extends AbstractPagedListResponse< ListLakesRequest, ListLakesResponse, Lake, ListLakesPage, ListLakesFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListLakesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListLakesPagedResponse(input), MoreExecutors.directExecutor()); } private ListLakesPagedResponse(ListLakesPage page) { super(page, ListLakesFixedSizeCollection.createEmptyCollection()); } } public static class ListLakesPage extends AbstractPage { private ListLakesPage( PageContext context, ListLakesResponse response) { super(context, response); } private static ListLakesPage createEmptyPage() { return new ListLakesPage(null, null); } @Override protected ListLakesPage createPage( PageContext context, ListLakesResponse response) { return new ListLakesPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListLakesFixedSizeCollection extends AbstractFixedSizeCollection< ListLakesRequest, ListLakesResponse, Lake, ListLakesPage, ListLakesFixedSizeCollection> { private ListLakesFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } private static ListLakesFixedSizeCollection createEmptyCollection() { return new ListLakesFixedSizeCollection(null, 0); } @Override protected ListLakesFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListLakesFixedSizeCollection(pages, collectionSize); } } public static class ListLakeActionsPagedResponse extends AbstractPagedListResponse< ListLakeActionsRequest, ListActionsResponse, Action, ListLakeActionsPage, ListLakeActionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListLakeActionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListLakeActionsPagedResponse(input), MoreExecutors.directExecutor()); } private ListLakeActionsPagedResponse(ListLakeActionsPage page) { super(page, ListLakeActionsFixedSizeCollection.createEmptyCollection()); } } public static class ListLakeActionsPage extends AbstractPage< ListLakeActionsRequest, ListActionsResponse, Action, ListLakeActionsPage> { private ListLakeActionsPage( PageContext context, ListActionsResponse response) { super(context, response); } private static ListLakeActionsPage createEmptyPage() { return new ListLakeActionsPage(null, null); } @Override protected ListLakeActionsPage createPage( PageContext context, ListActionsResponse response) { return new ListLakeActionsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListLakeActionsFixedSizeCollection extends AbstractFixedSizeCollection< ListLakeActionsRequest, ListActionsResponse, Action, ListLakeActionsPage, ListLakeActionsFixedSizeCollection> { private ListLakeActionsFixedSizeCollection( List pages, int collectionSize) { super(pages, collectionSize); } private static ListLakeActionsFixedSizeCollection createEmptyCollection() { return new ListLakeActionsFixedSizeCollection(null, 0); } @Override protected ListLakeActionsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListLakeActionsFixedSizeCollection(pages, collectionSize); } } public static class ListZonesPagedResponse extends AbstractPagedListResponse< ListZonesRequest, ListZonesResponse, Zone, ListZonesPage, ListZonesFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListZonesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListZonesPagedResponse(input), MoreExecutors.directExecutor()); } private ListZonesPagedResponse(ListZonesPage page) { super(page, ListZonesFixedSizeCollection.createEmptyCollection()); } } public static class ListZonesPage extends AbstractPage { private ListZonesPage( PageContext context, ListZonesResponse response) { super(context, response); } private static ListZonesPage createEmptyPage() { return new ListZonesPage(null, null); } @Override protected ListZonesPage createPage( PageContext context, ListZonesResponse response) { return new ListZonesPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListZonesFixedSizeCollection extends AbstractFixedSizeCollection< ListZonesRequest, ListZonesResponse, Zone, ListZonesPage, ListZonesFixedSizeCollection> { private ListZonesFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } private static ListZonesFixedSizeCollection createEmptyCollection() { return new ListZonesFixedSizeCollection(null, 0); } @Override protected ListZonesFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListZonesFixedSizeCollection(pages, collectionSize); } } public static class ListZoneActionsPagedResponse extends AbstractPagedListResponse< ListZoneActionsRequest, ListActionsResponse, Action, ListZoneActionsPage, ListZoneActionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListZoneActionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListZoneActionsPagedResponse(input), MoreExecutors.directExecutor()); } private ListZoneActionsPagedResponse(ListZoneActionsPage page) { super(page, ListZoneActionsFixedSizeCollection.createEmptyCollection()); } } public static class ListZoneActionsPage extends AbstractPage< ListZoneActionsRequest, ListActionsResponse, Action, ListZoneActionsPage> { private ListZoneActionsPage( PageContext context, ListActionsResponse response) { super(context, response); } private static ListZoneActionsPage createEmptyPage() { return new ListZoneActionsPage(null, null); } @Override protected ListZoneActionsPage createPage( PageContext context, ListActionsResponse response) { return new ListZoneActionsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListZoneActionsFixedSizeCollection extends AbstractFixedSizeCollection< ListZoneActionsRequest, ListActionsResponse, Action, ListZoneActionsPage, ListZoneActionsFixedSizeCollection> { private ListZoneActionsFixedSizeCollection( List pages, int collectionSize) { super(pages, collectionSize); } private static ListZoneActionsFixedSizeCollection createEmptyCollection() { return new ListZoneActionsFixedSizeCollection(null, 0); } @Override protected ListZoneActionsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListZoneActionsFixedSizeCollection(pages, collectionSize); } } public static class ListAssetsPagedResponse extends AbstractPagedListResponse< ListAssetsRequest, ListAssetsResponse, Asset, ListAssetsPage, ListAssetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListAssetsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListAssetsPagedResponse(input), MoreExecutors.directExecutor()); } private ListAssetsPagedResponse(ListAssetsPage page) { super(page, ListAssetsFixedSizeCollection.createEmptyCollection()); } } public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( PageContext context, ListAssetsResponse response) { super(context, response); } private static ListAssetsPage createEmptyPage() { return new ListAssetsPage(null, null); } @Override protected ListAssetsPage createPage( PageContext context, ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListAssetsFixedSizeCollection extends AbstractFixedSizeCollection< ListAssetsRequest, ListAssetsResponse, Asset, ListAssetsPage, ListAssetsFixedSizeCollection> { private ListAssetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } private static ListAssetsFixedSizeCollection createEmptyCollection() { return new ListAssetsFixedSizeCollection(null, 0); } @Override protected ListAssetsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } public static class ListAssetActionsPagedResponse extends AbstractPagedListResponse< ListAssetActionsRequest, ListActionsResponse, Action, ListAssetActionsPage, ListAssetActionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListAssetActionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListAssetActionsPagedResponse(input), MoreExecutors.directExecutor()); } private ListAssetActionsPagedResponse(ListAssetActionsPage page) { super(page, ListAssetActionsFixedSizeCollection.createEmptyCollection()); } } public static class ListAssetActionsPage extends AbstractPage< ListAssetActionsRequest, ListActionsResponse, Action, ListAssetActionsPage> { private ListAssetActionsPage( PageContext context, ListActionsResponse response) { super(context, response); } private static ListAssetActionsPage createEmptyPage() { return new ListAssetActionsPage(null, null); } @Override protected ListAssetActionsPage createPage( PageContext context, ListActionsResponse response) { return new ListAssetActionsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListAssetActionsFixedSizeCollection extends AbstractFixedSizeCollection< ListAssetActionsRequest, ListActionsResponse, Action, ListAssetActionsPage, ListAssetActionsFixedSizeCollection> { private ListAssetActionsFixedSizeCollection( List pages, int collectionSize) { super(pages, collectionSize); } private static ListAssetActionsFixedSizeCollection createEmptyCollection() { return new ListAssetActionsFixedSizeCollection(null, 0); } @Override protected ListAssetActionsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListAssetActionsFixedSizeCollection(pages, collectionSize); } } public static class ListTasksPagedResponse extends AbstractPagedListResponse< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); } private ListTasksPagedResponse(ListTasksPage page) { super(page, ListTasksFixedSizeCollection.createEmptyCollection()); } } public static class ListTasksPage extends AbstractPage { private ListTasksPage( PageContext context, ListTasksResponse response) { super(context, response); } private static ListTasksPage createEmptyPage() { return new ListTasksPage(null, null); } @Override protected ListTasksPage createPage( PageContext context, ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { private ListTasksFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } private static ListTasksFixedSizeCollection createEmptyCollection() { return new ListTasksFixedSizeCollection(null, 0); } @Override protected ListTasksFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } public static class ListJobsPagedResponse extends AbstractPagedListResponse< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { super(page, ListJobsFixedSizeCollection.createEmptyCollection()); } } public static class ListJobsPage extends AbstractPage { private ListJobsPage( PageContext context, ListJobsResponse response) { super(context, response); } private static ListJobsPage createEmptyPage() { return new ListJobsPage(null, null); } @Override protected ListJobsPage createPage( PageContext context, ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { private ListJobsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } private static ListJobsFixedSizeCollection createEmptyCollection() { return new ListJobsFixedSizeCollection(null, 0); } @Override protected ListJobsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } public static class ListEnvironmentsPagedResponse extends AbstractPagedListResponse< ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage, ListEnvironmentsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListEnvironmentsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListEnvironmentsPagedResponse(input), MoreExecutors.directExecutor()); } private ListEnvironmentsPagedResponse(ListEnvironmentsPage page) { super(page, ListEnvironmentsFixedSizeCollection.createEmptyCollection()); } } public static class ListEnvironmentsPage extends AbstractPage< ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( PageContext context, ListEnvironmentsResponse response) { super(context, response); } private static ListEnvironmentsPage createEmptyPage() { return new ListEnvironmentsPage(null, null); } @Override protected ListEnvironmentsPage createPage( PageContext context, ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListEnvironmentsFixedSizeCollection extends AbstractFixedSizeCollection< ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage, ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( List pages, int collectionSize) { super(pages, collectionSize); } private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { return new ListEnvironmentsFixedSizeCollection(null, 0); } @Override protected ListEnvironmentsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } public static class ListSessionsPagedResponse extends AbstractPagedListResponse< ListSessionsRequest, ListSessionsResponse, Session, ListSessionsPage, ListSessionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListSessionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListSessionsPagedResponse(input), MoreExecutors.directExecutor()); } private ListSessionsPagedResponse(ListSessionsPage page) { super(page, ListSessionsFixedSizeCollection.createEmptyCollection()); } } public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( PageContext context, ListSessionsResponse response) { super(context, response); } private static ListSessionsPage createEmptyPage() { return new ListSessionsPage(null, null); } @Override protected ListSessionsPage createPage( PageContext context, ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListSessionsFixedSizeCollection extends AbstractFixedSizeCollection< ListSessionsRequest, ListSessionsResponse, Session, ListSessionsPage, ListSessionsFixedSizeCollection> { private ListSessionsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } private static ListSessionsFixedSizeCollection createEmptyCollection() { return new ListSessionsFixedSizeCollection(null, 0); } @Override protected ListSessionsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, input -> new ListLocationsPagedResponse(input), MoreExecutors.directExecutor()); } private ListLocationsPagedResponse(ListLocationsPage page) { super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); } } public static class ListLocationsPage extends AbstractPage< ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( PageContext context, ListLocationsResponse response) { super(context, response); } private static ListLocationsPage createEmptyPage() { return new ListLocationsPage(null, null); } @Override protected ListLocationsPage createPage( PageContext context, ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } private static ListLocationsFixedSizeCollection createEmptyCollection() { return new ListLocationsFixedSizeCollection(null, 0); } @Override protected ListLocationsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy