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

com.google.cloud.dataplex.v1.stub.GrpcDataplexServiceStub Maven / Gradle / Ivy

/*
 * Copyright 2024 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.stub;

import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListAssetActionsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListAssetsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListEnvironmentsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListJobsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListLakeActionsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListLakesPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListSessionsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListTasksPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListZoneActionsPagedResponse;
import static com.google.cloud.dataplex.v1.DataplexServiceClient.ListZonesPagedResponse;

import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.dataplex.v1.Asset;
import com.google.cloud.dataplex.v1.CancelJobRequest;
import com.google.cloud.dataplex.v1.CreateAssetRequest;
import com.google.cloud.dataplex.v1.CreateEnvironmentRequest;
import com.google.cloud.dataplex.v1.CreateLakeRequest;
import com.google.cloud.dataplex.v1.CreateTaskRequest;
import com.google.cloud.dataplex.v1.CreateZoneRequest;
import com.google.cloud.dataplex.v1.DeleteAssetRequest;
import com.google.cloud.dataplex.v1.DeleteEnvironmentRequest;
import com.google.cloud.dataplex.v1.DeleteLakeRequest;
import com.google.cloud.dataplex.v1.DeleteTaskRequest;
import com.google.cloud.dataplex.v1.DeleteZoneRequest;
import com.google.cloud.dataplex.v1.Environment;
import com.google.cloud.dataplex.v1.GetAssetRequest;
import com.google.cloud.dataplex.v1.GetEnvironmentRequest;
import com.google.cloud.dataplex.v1.GetJobRequest;
import com.google.cloud.dataplex.v1.GetLakeRequest;
import com.google.cloud.dataplex.v1.GetTaskRequest;
import com.google.cloud.dataplex.v1.GetZoneRequest;
import com.google.cloud.dataplex.v1.Job;
import com.google.cloud.dataplex.v1.Lake;
import com.google.cloud.dataplex.v1.ListActionsResponse;
import com.google.cloud.dataplex.v1.ListAssetActionsRequest;
import com.google.cloud.dataplex.v1.ListAssetsRequest;
import com.google.cloud.dataplex.v1.ListAssetsResponse;
import com.google.cloud.dataplex.v1.ListEnvironmentsRequest;
import com.google.cloud.dataplex.v1.ListEnvironmentsResponse;
import com.google.cloud.dataplex.v1.ListJobsRequest;
import com.google.cloud.dataplex.v1.ListJobsResponse;
import com.google.cloud.dataplex.v1.ListLakeActionsRequest;
import com.google.cloud.dataplex.v1.ListLakesRequest;
import com.google.cloud.dataplex.v1.ListLakesResponse;
import com.google.cloud.dataplex.v1.ListSessionsRequest;
import com.google.cloud.dataplex.v1.ListSessionsResponse;
import com.google.cloud.dataplex.v1.ListTasksRequest;
import com.google.cloud.dataplex.v1.ListTasksResponse;
import com.google.cloud.dataplex.v1.ListZoneActionsRequest;
import com.google.cloud.dataplex.v1.ListZonesRequest;
import com.google.cloud.dataplex.v1.ListZonesResponse;
import com.google.cloud.dataplex.v1.OperationMetadata;
import com.google.cloud.dataplex.v1.RunTaskRequest;
import com.google.cloud.dataplex.v1.RunTaskResponse;
import com.google.cloud.dataplex.v1.Task;
import com.google.cloud.dataplex.v1.UpdateAssetRequest;
import com.google.cloud.dataplex.v1.UpdateEnvironmentRequest;
import com.google.cloud.dataplex.v1.UpdateLakeRequest;
import com.google.cloud.dataplex.v1.UpdateTaskRequest;
import com.google.cloud.dataplex.v1.UpdateZoneRequest;
import com.google.cloud.dataplex.v1.Zone;
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.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * gRPC stub implementation for the DataplexService service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcDataplexServiceStub extends DataplexServiceStub { private static final MethodDescriptor createLakeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/CreateLake") .setRequestMarshaller(ProtoUtils.marshaller(CreateLakeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateLakeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/UpdateLake") .setRequestMarshaller(ProtoUtils.marshaller(UpdateLakeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteLakeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/DeleteLake") .setRequestMarshaller(ProtoUtils.marshaller(DeleteLakeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listLakesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListLakes") .setRequestMarshaller(ProtoUtils.marshaller(ListLakesRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListLakesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getLakeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/GetLake") .setRequestMarshaller(ProtoUtils.marshaller(GetLakeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Lake.getDefaultInstance())) .build(); private static final MethodDescriptor listLakeActionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListLakeActions") .setRequestMarshaller( ProtoUtils.marshaller(ListLakeActionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListActionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createZoneMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/CreateZone") .setRequestMarshaller(ProtoUtils.marshaller(CreateZoneRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateZoneMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/UpdateZone") .setRequestMarshaller(ProtoUtils.marshaller(UpdateZoneRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteZoneMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/DeleteZone") .setRequestMarshaller(ProtoUtils.marshaller(DeleteZoneRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listZonesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListZones") .setRequestMarshaller(ProtoUtils.marshaller(ListZonesRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListZonesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getZoneMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/GetZone") .setRequestMarshaller(ProtoUtils.marshaller(GetZoneRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Zone.getDefaultInstance())) .build(); private static final MethodDescriptor listZoneActionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListZoneActions") .setRequestMarshaller( ProtoUtils.marshaller(ListZoneActionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListActionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/CreateAsset") .setRequestMarshaller(ProtoUtils.marshaller(CreateAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/UpdateAsset") .setRequestMarshaller(ProtoUtils.marshaller(UpdateAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/DeleteAsset") .setRequestMarshaller(ProtoUtils.marshaller(DeleteAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listAssetsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListAssets") .setRequestMarshaller(ProtoUtils.marshaller(ListAssetsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListAssetsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/GetAsset") .setRequestMarshaller(ProtoUtils.marshaller(GetAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Asset.getDefaultInstance())) .build(); private static final MethodDescriptor listAssetActionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListAssetActions") .setRequestMarshaller( ProtoUtils.marshaller(ListAssetActionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListActionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createTaskMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/CreateTask") .setRequestMarshaller(ProtoUtils.marshaller(CreateTaskRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateTaskMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/UpdateTask") .setRequestMarshaller(ProtoUtils.marshaller(UpdateTaskRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteTaskMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/DeleteTask") .setRequestMarshaller(ProtoUtils.marshaller(DeleteTaskRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listTasksMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListTasks") .setRequestMarshaller(ProtoUtils.marshaller(ListTasksRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListTasksResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getTaskMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/GetTask") .setRequestMarshaller(ProtoUtils.marshaller(GetTaskRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) .build(); private static final MethodDescriptor listJobsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListJobs") .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor runTaskMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/RunTask") .setRequestMarshaller(ProtoUtils.marshaller(RunTaskRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(RunTaskResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/GetJob") .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); private static final MethodDescriptor cancelJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/CancelJob") .setRequestMarshaller(ProtoUtils.marshaller(CancelJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor createEnvironmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/CreateEnvironment") .setRequestMarshaller( ProtoUtils.marshaller(CreateEnvironmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateEnvironmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/UpdateEnvironment") .setRequestMarshaller( ProtoUtils.marshaller(UpdateEnvironmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteEnvironmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/DeleteEnvironment") .setRequestMarshaller( ProtoUtils.marshaller(DeleteEnvironmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listEnvironmentsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListEnvironments") .setRequestMarshaller( ProtoUtils.marshaller(ListEnvironmentsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListEnvironmentsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getEnvironmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/GetEnvironment") .setRequestMarshaller( ProtoUtils.marshaller(GetEnvironmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Environment.getDefaultInstance())) .build(); private static final MethodDescriptor listSessionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataplexService/ListSessions") .setRequestMarshaller(ProtoUtils.marshaller(ListSessionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSessionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.location.Locations/ListLocations") .setRequestMarshaller( ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getLocationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.location.Locations/GetLocation") .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) .build(); private final UnaryCallable createLakeCallable; private final OperationCallable createLakeOperationCallable; private final UnaryCallable updateLakeCallable; private final OperationCallable updateLakeOperationCallable; private final UnaryCallable deleteLakeCallable; private final OperationCallable deleteLakeOperationCallable; private final UnaryCallable listLakesCallable; private final UnaryCallable listLakesPagedCallable; private final UnaryCallable getLakeCallable; private final UnaryCallable listLakeActionsCallable; private final UnaryCallable listLakeActionsPagedCallable; private final UnaryCallable createZoneCallable; private final OperationCallable createZoneOperationCallable; private final UnaryCallable updateZoneCallable; private final OperationCallable updateZoneOperationCallable; private final UnaryCallable deleteZoneCallable; private final OperationCallable deleteZoneOperationCallable; private final UnaryCallable listZonesCallable; private final UnaryCallable listZonesPagedCallable; private final UnaryCallable getZoneCallable; private final UnaryCallable listZoneActionsCallable; private final UnaryCallable listZoneActionsPagedCallable; private final UnaryCallable createAssetCallable; private final OperationCallable createAssetOperationCallable; private final UnaryCallable updateAssetCallable; private final OperationCallable updateAssetOperationCallable; private final UnaryCallable deleteAssetCallable; private final OperationCallable deleteAssetOperationCallable; private final UnaryCallable listAssetsCallable; private final UnaryCallable listAssetsPagedCallable; private final UnaryCallable getAssetCallable; private final UnaryCallable listAssetActionsCallable; private final UnaryCallable listAssetActionsPagedCallable; private final UnaryCallable createTaskCallable; private final OperationCallable createTaskOperationCallable; private final UnaryCallable updateTaskCallable; private final OperationCallable updateTaskOperationCallable; private final UnaryCallable deleteTaskCallable; private final OperationCallable deleteTaskOperationCallable; private final UnaryCallable listTasksCallable; private final UnaryCallable listTasksPagedCallable; private final UnaryCallable getTaskCallable; private final UnaryCallable listJobsCallable; private final UnaryCallable listJobsPagedCallable; private final UnaryCallable runTaskCallable; private final UnaryCallable getJobCallable; private final UnaryCallable cancelJobCallable; private final UnaryCallable createEnvironmentCallable; private final OperationCallable createEnvironmentOperationCallable; private final UnaryCallable updateEnvironmentCallable; private final OperationCallable updateEnvironmentOperationCallable; private final UnaryCallable deleteEnvironmentCallable; private final OperationCallable deleteEnvironmentOperationCallable; private final UnaryCallable listEnvironmentsCallable; private final UnaryCallable listEnvironmentsPagedCallable; private final UnaryCallable getEnvironmentCallable; private final UnaryCallable listSessionsCallable; private final UnaryCallable listSessionsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcDataplexServiceStub create(DataplexServiceStubSettings settings) throws IOException { return new GrpcDataplexServiceStub(settings, ClientContext.create(settings)); } public static final GrpcDataplexServiceStub create(ClientContext clientContext) throws IOException { return new GrpcDataplexServiceStub( DataplexServiceStubSettings.newBuilder().build(), clientContext); } public static final GrpcDataplexServiceStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcDataplexServiceStub( DataplexServiceStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcDataplexServiceStub, 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 GrpcDataplexServiceStub( DataplexServiceStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcDataplexServiceCallableFactory()); } /** * Constructs an instance of GrpcDataplexServiceStub, 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 GrpcDataplexServiceStub( DataplexServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createLakeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createLakeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateLakeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateLakeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("lake.name", String.valueOf(request.getLake().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteLakeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteLakeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listLakesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLakesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getLakeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getLakeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listLakeActionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLakeActionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createZoneTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createZoneMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateZoneTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateZoneMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("zone.name", String.valueOf(request.getZone().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteZoneTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteZoneMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listZonesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listZonesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getZoneTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getZoneMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listZoneActionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listZoneActionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("asset.name", String.valueOf(request.getAsset().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAssetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listAssetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAssetActionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listAssetActionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createTaskMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateTaskMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("task.name", String.valueOf(request.getTask().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTaskMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listTasksTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTasksMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTaskMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings runTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(runTaskMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings cancelJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createEnvironmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createEnvironmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateEnvironmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateEnvironmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "environment.name", String.valueOf(request.getEnvironment().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteEnvironmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEnvironmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listEnvironmentsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listEnvironmentsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getEnvironmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getEnvironmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listSessionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSessionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getLocationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getLocationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); this.createLakeCallable = callableFactory.createUnaryCallable( createLakeTransportSettings, settings.createLakeSettings(), clientContext); this.createLakeOperationCallable = callableFactory.createOperationCallable( createLakeTransportSettings, settings.createLakeOperationSettings(), clientContext, operationsStub); this.updateLakeCallable = callableFactory.createUnaryCallable( updateLakeTransportSettings, settings.updateLakeSettings(), clientContext); this.updateLakeOperationCallable = callableFactory.createOperationCallable( updateLakeTransportSettings, settings.updateLakeOperationSettings(), clientContext, operationsStub); this.deleteLakeCallable = callableFactory.createUnaryCallable( deleteLakeTransportSettings, settings.deleteLakeSettings(), clientContext); this.deleteLakeOperationCallable = callableFactory.createOperationCallable( deleteLakeTransportSettings, settings.deleteLakeOperationSettings(), clientContext, operationsStub); this.listLakesCallable = callableFactory.createUnaryCallable( listLakesTransportSettings, settings.listLakesSettings(), clientContext); this.listLakesPagedCallable = callableFactory.createPagedCallable( listLakesTransportSettings, settings.listLakesSettings(), clientContext); this.getLakeCallable = callableFactory.createUnaryCallable( getLakeTransportSettings, settings.getLakeSettings(), clientContext); this.listLakeActionsCallable = callableFactory.createUnaryCallable( listLakeActionsTransportSettings, settings.listLakeActionsSettings(), clientContext); this.listLakeActionsPagedCallable = callableFactory.createPagedCallable( listLakeActionsTransportSettings, settings.listLakeActionsSettings(), clientContext); this.createZoneCallable = callableFactory.createUnaryCallable( createZoneTransportSettings, settings.createZoneSettings(), clientContext); this.createZoneOperationCallable = callableFactory.createOperationCallable( createZoneTransportSettings, settings.createZoneOperationSettings(), clientContext, operationsStub); this.updateZoneCallable = callableFactory.createUnaryCallable( updateZoneTransportSettings, settings.updateZoneSettings(), clientContext); this.updateZoneOperationCallable = callableFactory.createOperationCallable( updateZoneTransportSettings, settings.updateZoneOperationSettings(), clientContext, operationsStub); this.deleteZoneCallable = callableFactory.createUnaryCallable( deleteZoneTransportSettings, settings.deleteZoneSettings(), clientContext); this.deleteZoneOperationCallable = callableFactory.createOperationCallable( deleteZoneTransportSettings, settings.deleteZoneOperationSettings(), clientContext, operationsStub); this.listZonesCallable = callableFactory.createUnaryCallable( listZonesTransportSettings, settings.listZonesSettings(), clientContext); this.listZonesPagedCallable = callableFactory.createPagedCallable( listZonesTransportSettings, settings.listZonesSettings(), clientContext); this.getZoneCallable = callableFactory.createUnaryCallable( getZoneTransportSettings, settings.getZoneSettings(), clientContext); this.listZoneActionsCallable = callableFactory.createUnaryCallable( listZoneActionsTransportSettings, settings.listZoneActionsSettings(), clientContext); this.listZoneActionsPagedCallable = callableFactory.createPagedCallable( listZoneActionsTransportSettings, settings.listZoneActionsSettings(), clientContext); this.createAssetCallable = callableFactory.createUnaryCallable( createAssetTransportSettings, settings.createAssetSettings(), clientContext); this.createAssetOperationCallable = callableFactory.createOperationCallable( createAssetTransportSettings, settings.createAssetOperationSettings(), clientContext, operationsStub); this.updateAssetCallable = callableFactory.createUnaryCallable( updateAssetTransportSettings, settings.updateAssetSettings(), clientContext); this.updateAssetOperationCallable = callableFactory.createOperationCallable( updateAssetTransportSettings, settings.updateAssetOperationSettings(), clientContext, operationsStub); this.deleteAssetCallable = callableFactory.createUnaryCallable( deleteAssetTransportSettings, settings.deleteAssetSettings(), clientContext); this.deleteAssetOperationCallable = callableFactory.createOperationCallable( deleteAssetTransportSettings, settings.deleteAssetOperationSettings(), clientContext, operationsStub); this.listAssetsCallable = callableFactory.createUnaryCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); this.listAssetsPagedCallable = callableFactory.createPagedCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); this.getAssetCallable = callableFactory.createUnaryCallable( getAssetTransportSettings, settings.getAssetSettings(), clientContext); this.listAssetActionsCallable = callableFactory.createUnaryCallable( listAssetActionsTransportSettings, settings.listAssetActionsSettings(), clientContext); this.listAssetActionsPagedCallable = callableFactory.createPagedCallable( listAssetActionsTransportSettings, settings.listAssetActionsSettings(), clientContext); this.createTaskCallable = callableFactory.createUnaryCallable( createTaskTransportSettings, settings.createTaskSettings(), clientContext); this.createTaskOperationCallable = callableFactory.createOperationCallable( createTaskTransportSettings, settings.createTaskOperationSettings(), clientContext, operationsStub); this.updateTaskCallable = callableFactory.createUnaryCallable( updateTaskTransportSettings, settings.updateTaskSettings(), clientContext); this.updateTaskOperationCallable = callableFactory.createOperationCallable( updateTaskTransportSettings, settings.updateTaskOperationSettings(), clientContext, operationsStub); this.deleteTaskCallable = callableFactory.createUnaryCallable( deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); this.deleteTaskOperationCallable = callableFactory.createOperationCallable( deleteTaskTransportSettings, settings.deleteTaskOperationSettings(), clientContext, operationsStub); this.listTasksCallable = callableFactory.createUnaryCallable( listTasksTransportSettings, settings.listTasksSettings(), clientContext); this.listTasksPagedCallable = callableFactory.createPagedCallable( listTasksTransportSettings, settings.listTasksSettings(), clientContext); this.getTaskCallable = callableFactory.createUnaryCallable( getTaskTransportSettings, settings.getTaskSettings(), clientContext); this.listJobsCallable = callableFactory.createUnaryCallable( listJobsTransportSettings, settings.listJobsSettings(), clientContext); this.listJobsPagedCallable = callableFactory.createPagedCallable( listJobsTransportSettings, settings.listJobsSettings(), clientContext); this.runTaskCallable = callableFactory.createUnaryCallable( runTaskTransportSettings, settings.runTaskSettings(), clientContext); this.getJobCallable = callableFactory.createUnaryCallable( getJobTransportSettings, settings.getJobSettings(), clientContext); this.cancelJobCallable = callableFactory.createUnaryCallable( cancelJobTransportSettings, settings.cancelJobSettings(), clientContext); this.createEnvironmentCallable = callableFactory.createUnaryCallable( createEnvironmentTransportSettings, settings.createEnvironmentSettings(), clientContext); this.createEnvironmentOperationCallable = callableFactory.createOperationCallable( createEnvironmentTransportSettings, settings.createEnvironmentOperationSettings(), clientContext, operationsStub); this.updateEnvironmentCallable = callableFactory.createUnaryCallable( updateEnvironmentTransportSettings, settings.updateEnvironmentSettings(), clientContext); this.updateEnvironmentOperationCallable = callableFactory.createOperationCallable( updateEnvironmentTransportSettings, settings.updateEnvironmentOperationSettings(), clientContext, operationsStub); this.deleteEnvironmentCallable = callableFactory.createUnaryCallable( deleteEnvironmentTransportSettings, settings.deleteEnvironmentSettings(), clientContext); this.deleteEnvironmentOperationCallable = callableFactory.createOperationCallable( deleteEnvironmentTransportSettings, settings.deleteEnvironmentOperationSettings(), clientContext, operationsStub); this.listEnvironmentsCallable = callableFactory.createUnaryCallable( listEnvironmentsTransportSettings, settings.listEnvironmentsSettings(), clientContext); this.listEnvironmentsPagedCallable = callableFactory.createPagedCallable( listEnvironmentsTransportSettings, settings.listEnvironmentsSettings(), clientContext); this.getEnvironmentCallable = callableFactory.createUnaryCallable( getEnvironmentTransportSettings, settings.getEnvironmentSettings(), clientContext); this.listSessionsCallable = callableFactory.createUnaryCallable( listSessionsTransportSettings, settings.listSessionsSettings(), clientContext); this.listSessionsPagedCallable = callableFactory.createPagedCallable( listSessionsTransportSettings, settings.listSessionsSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.listLocationsPagedCallable = callableFactory.createPagedCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.getLocationCallable = callableFactory.createUnaryCallable( getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable createLakeCallable() { return createLakeCallable; } @Override public OperationCallable createLakeOperationCallable() { return createLakeOperationCallable; } @Override public UnaryCallable updateLakeCallable() { return updateLakeCallable; } @Override public OperationCallable updateLakeOperationCallable() { return updateLakeOperationCallable; } @Override public UnaryCallable deleteLakeCallable() { return deleteLakeCallable; } @Override public OperationCallable deleteLakeOperationCallable() { return deleteLakeOperationCallable; } @Override public UnaryCallable listLakesCallable() { return listLakesCallable; } @Override public UnaryCallable listLakesPagedCallable() { return listLakesPagedCallable; } @Override public UnaryCallable getLakeCallable() { return getLakeCallable; } @Override public UnaryCallable listLakeActionsCallable() { return listLakeActionsCallable; } @Override public UnaryCallable listLakeActionsPagedCallable() { return listLakeActionsPagedCallable; } @Override public UnaryCallable createZoneCallable() { return createZoneCallable; } @Override public OperationCallable createZoneOperationCallable() { return createZoneOperationCallable; } @Override public UnaryCallable updateZoneCallable() { return updateZoneCallable; } @Override public OperationCallable updateZoneOperationCallable() { return updateZoneOperationCallable; } @Override public UnaryCallable deleteZoneCallable() { return deleteZoneCallable; } @Override public OperationCallable deleteZoneOperationCallable() { return deleteZoneOperationCallable; } @Override public UnaryCallable listZonesCallable() { return listZonesCallable; } @Override public UnaryCallable listZonesPagedCallable() { return listZonesPagedCallable; } @Override public UnaryCallable getZoneCallable() { return getZoneCallable; } @Override public UnaryCallable listZoneActionsCallable() { return listZoneActionsCallable; } @Override public UnaryCallable listZoneActionsPagedCallable() { return listZoneActionsPagedCallable; } @Override public UnaryCallable createAssetCallable() { return createAssetCallable; } @Override public OperationCallable createAssetOperationCallable() { return createAssetOperationCallable; } @Override public UnaryCallable updateAssetCallable() { return updateAssetCallable; } @Override public OperationCallable updateAssetOperationCallable() { return updateAssetOperationCallable; } @Override public UnaryCallable deleteAssetCallable() { return deleteAssetCallable; } @Override public OperationCallable deleteAssetOperationCallable() { return deleteAssetOperationCallable; } @Override public UnaryCallable listAssetsCallable() { return listAssetsCallable; } @Override public UnaryCallable listAssetsPagedCallable() { return listAssetsPagedCallable; } @Override public UnaryCallable getAssetCallable() { return getAssetCallable; } @Override public UnaryCallable listAssetActionsCallable() { return listAssetActionsCallable; } @Override public UnaryCallable listAssetActionsPagedCallable() { return listAssetActionsPagedCallable; } @Override public UnaryCallable createTaskCallable() { return createTaskCallable; } @Override public OperationCallable createTaskOperationCallable() { return createTaskOperationCallable; } @Override public UnaryCallable updateTaskCallable() { return updateTaskCallable; } @Override public OperationCallable updateTaskOperationCallable() { return updateTaskOperationCallable; } @Override public UnaryCallable deleteTaskCallable() { return deleteTaskCallable; } @Override public OperationCallable deleteTaskOperationCallable() { return deleteTaskOperationCallable; } @Override public UnaryCallable listTasksCallable() { return listTasksCallable; } @Override public UnaryCallable listTasksPagedCallable() { return listTasksPagedCallable; } @Override public UnaryCallable getTaskCallable() { return getTaskCallable; } @Override public UnaryCallable listJobsCallable() { return listJobsCallable; } @Override public UnaryCallable listJobsPagedCallable() { return listJobsPagedCallable; } @Override public UnaryCallable runTaskCallable() { return runTaskCallable; } @Override public UnaryCallable getJobCallable() { return getJobCallable; } @Override public UnaryCallable cancelJobCallable() { return cancelJobCallable; } @Override public UnaryCallable createEnvironmentCallable() { return createEnvironmentCallable; } @Override public OperationCallable createEnvironmentOperationCallable() { return createEnvironmentOperationCallable; } @Override public UnaryCallable updateEnvironmentCallable() { return updateEnvironmentCallable; } @Override public OperationCallable updateEnvironmentOperationCallable() { return updateEnvironmentOperationCallable; } @Override public UnaryCallable deleteEnvironmentCallable() { return deleteEnvironmentCallable; } @Override public OperationCallable deleteEnvironmentOperationCallable() { return deleteEnvironmentOperationCallable; } @Override public UnaryCallable listEnvironmentsCallable() { return listEnvironmentsCallable; } @Override public UnaryCallable listEnvironmentsPagedCallable() { return listEnvironmentsPagedCallable; } @Override public UnaryCallable getEnvironmentCallable() { return getEnvironmentCallable; } @Override public UnaryCallable listSessionsCallable() { return listSessionsCallable; } @Override public UnaryCallable listSessionsPagedCallable() { return listSessionsPagedCallable; } @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; } @Override public UnaryCallable listLocationsPagedCallable() { return listLocationsPagedCallable; } @Override public UnaryCallable getLocationCallable() { return getLocationCallable; } @Override public final void close() { try { backgroundResources.close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Failed to close resource", e); } } @Override public void shutdown() { backgroundResources.shutdown(); } @Override public boolean isShutdown() { return backgroundResources.isShutdown(); } @Override public boolean isTerminated() { return backgroundResources.isTerminated(); } @Override public void shutdownNow() { backgroundResources.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return backgroundResources.awaitTermination(duration, unit); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy