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

com.google.cloud.clouddms.v1.stub.GrpcDataMigrationServiceStub 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.clouddms.v1.stub;

import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.DescribeDatabaseEntitiesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;

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.clouddms.v1.ApplyConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.ConnectionProfile;
import com.google.cloud.clouddms.v1.ConversionWorkspace;
import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.CreateMappingRuleRequest;
import com.google.cloud.clouddms.v1.CreateMigrationJobRequest;
import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest;
import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest;
import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.DeleteMappingRuleRequest;
import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest;
import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest;
import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse;
import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest;
import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse;
import com.google.cloud.clouddms.v1.FetchStaticIpsRequest;
import com.google.cloud.clouddms.v1.FetchStaticIpsResponse;
import com.google.cloud.clouddms.v1.GenerateSshScriptRequest;
import com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest;
import com.google.cloud.clouddms.v1.GetConnectionProfileRequest;
import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.GetMappingRuleRequest;
import com.google.cloud.clouddms.v1.GetMigrationJobRequest;
import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest;
import com.google.cloud.clouddms.v1.ImportMappingRulesRequest;
import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest;
import com.google.cloud.clouddms.v1.ListConnectionProfilesResponse;
import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest;
import com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse;
import com.google.cloud.clouddms.v1.ListMappingRulesRequest;
import com.google.cloud.clouddms.v1.ListMappingRulesResponse;
import com.google.cloud.clouddms.v1.ListMigrationJobsRequest;
import com.google.cloud.clouddms.v1.ListMigrationJobsResponse;
import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest;
import com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse;
import com.google.cloud.clouddms.v1.MappingRule;
import com.google.cloud.clouddms.v1.MigrationJob;
import com.google.cloud.clouddms.v1.OperationMetadata;
import com.google.cloud.clouddms.v1.PrivateConnection;
import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest;
import com.google.cloud.clouddms.v1.RestartMigrationJobRequest;
import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest;
import com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest;
import com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse;
import com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.SshScript;
import com.google.cloud.clouddms.v1.StartMigrationJobRequest;
import com.google.cloud.clouddms.v1.StopMigrationJobRequest;
import com.google.cloud.clouddms.v1.TcpProxyScript;
import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest;
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 DataMigrationService service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub { private static final MethodDescriptor listMigrationJobsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/ListMigrationJobs") .setRequestMarshaller( ProtoUtils.marshaller(ListMigrationJobsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListMigrationJobsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/GetMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(GetMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(MigrationJob.getDefaultInstance())) .build(); private static final MethodDescriptor createMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/CreateMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(CreateMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/UpdateMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(UpdateMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/DeleteMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(DeleteMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor startMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/StartMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(StartMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor stopMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/StopMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(StopMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor resumeMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/ResumeMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(ResumeMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor promoteMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/PromoteMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(PromoteMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor verifyMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/VerifyMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(VerifyMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor restartMigrationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/RestartMigrationJob") .setRequestMarshaller( ProtoUtils.marshaller(RestartMigrationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor generateSshScriptMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/GenerateSshScript") .setRequestMarshaller( ProtoUtils.marshaller(GenerateSshScriptRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SshScript.getDefaultInstance())) .build(); private static final MethodDescriptor generateTcpProxyScriptMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/GenerateTcpProxyScript") .setRequestMarshaller( ProtoUtils.marshaller(GenerateTcpProxyScriptRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(TcpProxyScript.getDefaultInstance())) .build(); private static final MethodDescriptor< ListConnectionProfilesRequest, ListConnectionProfilesResponse> listConnectionProfilesMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/ListConnectionProfiles") .setRequestMarshaller( ProtoUtils.marshaller(ListConnectionProfilesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListConnectionProfilesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getConnectionProfileMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/GetConnectionProfile") .setRequestMarshaller( ProtoUtils.marshaller(GetConnectionProfileRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ConnectionProfile.getDefaultInstance())) .build(); private static final MethodDescriptor createConnectionProfileMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/CreateConnectionProfile") .setRequestMarshaller( ProtoUtils.marshaller(CreateConnectionProfileRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateConnectionProfileMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/UpdateConnectionProfile") .setRequestMarshaller( ProtoUtils.marshaller(UpdateConnectionProfileRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteConnectionProfileMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/DeleteConnectionProfile") .setRequestMarshaller( ProtoUtils.marshaller(DeleteConnectionProfileRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createPrivateConnectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/CreatePrivateConnection") .setRequestMarshaller( ProtoUtils.marshaller(CreatePrivateConnectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getPrivateConnectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/GetPrivateConnection") .setRequestMarshaller( ProtoUtils.marshaller(GetPrivateConnectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PrivateConnection.getDefaultInstance())) .build(); private static final MethodDescriptor< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse> listPrivateConnectionsMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/ListPrivateConnections") .setRequestMarshaller( ProtoUtils.marshaller(ListPrivateConnectionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListPrivateConnectionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deletePrivateConnectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/DeletePrivateConnection") .setRequestMarshaller( ProtoUtils.marshaller(DeletePrivateConnectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/GetConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(GetConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ConversionWorkspace.getDefaultInstance())) .build(); private static final MethodDescriptor< ListConversionWorkspacesRequest, ListConversionWorkspacesResponse> listConversionWorkspacesMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/ListConversionWorkspaces") .setRequestMarshaller( ProtoUtils.marshaller(ListConversionWorkspacesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListConversionWorkspacesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/CreateConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(CreateConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/UpdateConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(UpdateConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/DeleteConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(DeleteConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createMappingRuleMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/CreateMappingRule") .setRequestMarshaller( ProtoUtils.marshaller(CreateMappingRuleRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(MappingRule.getDefaultInstance())) .build(); private static final MethodDescriptor deleteMappingRuleMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/DeleteMappingRule") .setRequestMarshaller( ProtoUtils.marshaller(DeleteMappingRuleRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor listMappingRulesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/ListMappingRules") .setRequestMarshaller( ProtoUtils.marshaller(ListMappingRulesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListMappingRulesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getMappingRuleMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/GetMappingRule") .setRequestMarshaller( ProtoUtils.marshaller(GetMappingRuleRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(MappingRule.getDefaultInstance())) .build(); private static final MethodDescriptor seedConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/SeedConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(SeedConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor importMappingRulesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/ImportMappingRules") .setRequestMarshaller( ProtoUtils.marshaller(ImportMappingRulesRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor convertConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/ConvertConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(ConvertConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor commitConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/CommitConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(CommitConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor rollbackConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/RollbackConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(RollbackConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor applyConversionWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/ApplyConversionWorkspace") .setRequestMarshaller( ProtoUtils.marshaller(ApplyConversionWorkspaceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor< DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse> describeDatabaseEntitiesMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/DescribeDatabaseEntities") .setRequestMarshaller( ProtoUtils.marshaller(DescribeDatabaseEntitiesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(DescribeDatabaseEntitiesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor searchBackgroundJobsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/SearchBackgroundJobs") .setRequestMarshaller( ProtoUtils.marshaller(SearchBackgroundJobsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(SearchBackgroundJobsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor< DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> describeConversionWorkspaceRevisionsMethodDescriptor = MethodDescriptor . newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.clouddms.v1.DataMigrationService/DescribeConversionWorkspaceRevisions") .setRequestMarshaller( ProtoUtils.marshaller( DescribeConversionWorkspaceRevisionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller( DescribeConversionWorkspaceRevisionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor fetchStaticIpsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/FetchStaticIps") .setRequestMarshaller( ProtoUtils.marshaller(FetchStaticIpsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(FetchStaticIpsResponse.getDefaultInstance())) .build(); private final UnaryCallable listMigrationJobsCallable; private final UnaryCallable listMigrationJobsPagedCallable; private final UnaryCallable getMigrationJobCallable; private final UnaryCallable createMigrationJobCallable; private final OperationCallable createMigrationJobOperationCallable; private final UnaryCallable updateMigrationJobCallable; private final OperationCallable updateMigrationJobOperationCallable; private final UnaryCallable deleteMigrationJobCallable; private final OperationCallable deleteMigrationJobOperationCallable; private final UnaryCallable startMigrationJobCallable; private final OperationCallable startMigrationJobOperationCallable; private final UnaryCallable stopMigrationJobCallable; private final OperationCallable stopMigrationJobOperationCallable; private final UnaryCallable resumeMigrationJobCallable; private final OperationCallable resumeMigrationJobOperationCallable; private final UnaryCallable promoteMigrationJobCallable; private final OperationCallable promoteMigrationJobOperationCallable; private final UnaryCallable verifyMigrationJobCallable; private final OperationCallable verifyMigrationJobOperationCallable; private final UnaryCallable restartMigrationJobCallable; private final OperationCallable restartMigrationJobOperationCallable; private final UnaryCallable generateSshScriptCallable; private final UnaryCallable generateTcpProxyScriptCallable; private final UnaryCallable listConnectionProfilesCallable; private final UnaryCallable listConnectionProfilesPagedCallable; private final UnaryCallable getConnectionProfileCallable; private final UnaryCallable createConnectionProfileCallable; private final OperationCallable< CreateConnectionProfileRequest, ConnectionProfile, OperationMetadata> createConnectionProfileOperationCallable; private final UnaryCallable updateConnectionProfileCallable; private final OperationCallable< UpdateConnectionProfileRequest, ConnectionProfile, OperationMetadata> updateConnectionProfileOperationCallable; private final UnaryCallable deleteConnectionProfileCallable; private final OperationCallable deleteConnectionProfileOperationCallable; private final UnaryCallable createPrivateConnectionCallable; private final OperationCallable< CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> createPrivateConnectionOperationCallable; private final UnaryCallable getPrivateConnectionCallable; private final UnaryCallable listPrivateConnectionsCallable; private final UnaryCallable listPrivateConnectionsPagedCallable; private final UnaryCallable deletePrivateConnectionCallable; private final OperationCallable deletePrivateConnectionOperationCallable; private final UnaryCallable getConversionWorkspaceCallable; private final UnaryCallable listConversionWorkspacesCallable; private final UnaryCallable< ListConversionWorkspacesRequest, ListConversionWorkspacesPagedResponse> listConversionWorkspacesPagedCallable; private final UnaryCallable createConversionWorkspaceCallable; private final OperationCallable< CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> createConversionWorkspaceOperationCallable; private final UnaryCallable updateConversionWorkspaceCallable; private final OperationCallable< UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> updateConversionWorkspaceOperationCallable; private final UnaryCallable deleteConversionWorkspaceCallable; private final OperationCallable deleteConversionWorkspaceOperationCallable; private final UnaryCallable createMappingRuleCallable; private final UnaryCallable deleteMappingRuleCallable; private final UnaryCallable listMappingRulesCallable; private final UnaryCallable listMappingRulesPagedCallable; private final UnaryCallable getMappingRuleCallable; private final UnaryCallable seedConversionWorkspaceCallable; private final OperationCallable< SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> seedConversionWorkspaceOperationCallable; private final UnaryCallable importMappingRulesCallable; private final OperationCallable importMappingRulesOperationCallable; private final UnaryCallable convertConversionWorkspaceCallable; private final OperationCallable< ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> convertConversionWorkspaceOperationCallable; private final UnaryCallable commitConversionWorkspaceCallable; private final OperationCallable< CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> commitConversionWorkspaceOperationCallable; private final UnaryCallable rollbackConversionWorkspaceCallable; private final OperationCallable< RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> rollbackConversionWorkspaceOperationCallable; private final UnaryCallable applyConversionWorkspaceCallable; private final OperationCallable< ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> applyConversionWorkspaceOperationCallable; private final UnaryCallable describeDatabaseEntitiesCallable; private final UnaryCallable< DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesPagedResponse> describeDatabaseEntitiesPagedCallable; private final UnaryCallable searchBackgroundJobsCallable; private final UnaryCallable< DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> describeConversionWorkspaceRevisionsCallable; private final UnaryCallable fetchStaticIpsCallable; private final UnaryCallable fetchStaticIpsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcDataMigrationServiceStub create(DataMigrationServiceStubSettings settings) throws IOException { return new GrpcDataMigrationServiceStub(settings, ClientContext.create(settings)); } public static final GrpcDataMigrationServiceStub create(ClientContext clientContext) throws IOException { return new GrpcDataMigrationServiceStub( DataMigrationServiceStubSettings.newBuilder().build(), clientContext); } public static final GrpcDataMigrationServiceStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcDataMigrationServiceStub( DataMigrationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcDataMigrationServiceStub, 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 GrpcDataMigrationServiceStub( DataMigrationServiceStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcDataMigrationServiceCallableFactory()); } /** * Constructs an instance of GrpcDataMigrationServiceStub, 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 GrpcDataMigrationServiceStub( DataMigrationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings listMigrationJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listMigrationJobsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "migration_job.name", String.valueOf(request.getMigrationJob().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings startMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(startMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings stopMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(stopMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings resumeMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings promoteMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(promoteMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings verifyMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(verifyMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings restartMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(restartMigrationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings generateSshScriptTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(generateSshScriptMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("migration_job", String.valueOf(request.getMigrationJob())); return builder.build(); }) .build(); GrpcCallSettings generateTcpProxyScriptTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(generateTcpProxyScriptMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("migration_job", String.valueOf(request.getMigrationJob())); return builder.build(); }) .build(); GrpcCallSettings listConnectionProfilesTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listConnectionProfilesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getConnectionProfileTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getConnectionProfileMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createConnectionProfileTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createConnectionProfileMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateConnectionProfileTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateConnectionProfileMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "connection_profile.name", String.valueOf(request.getConnectionProfile().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteConnectionProfileTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteConnectionProfileMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createPrivateConnectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createPrivateConnectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getPrivateConnectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getPrivateConnectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listPrivateConnectionsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listPrivateConnectionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deletePrivateConnectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePrivateConnectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listConversionWorkspacesTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listConversionWorkspacesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "conversion_workspace.name", String.valueOf(request.getConversionWorkspace().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createMappingRuleTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMappingRuleMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteMappingRuleTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteMappingRuleMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listMappingRulesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listMappingRulesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getMappingRuleTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getMappingRuleMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings seedConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(seedConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings importMappingRulesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importMappingRulesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings convertConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(convertConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings commitConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(commitConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings rollbackConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(rollbackConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings applyConversionWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(applyConversionWorkspaceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings describeDatabaseEntitiesTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(describeDatabaseEntitiesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "conversion_workspace", String.valueOf(request.getConversionWorkspace())); return builder.build(); }) .build(); GrpcCallSettings searchBackgroundJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(searchBackgroundJobsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "conversion_workspace", String.valueOf(request.getConversionWorkspace())); return builder.build(); }) .build(); GrpcCallSettings< DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> describeConversionWorkspaceRevisionsTransportSettings = GrpcCallSettings . newBuilder() .setMethodDescriptor(describeConversionWorkspaceRevisionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "conversion_workspace", String.valueOf(request.getConversionWorkspace())); return builder.build(); }) .build(); GrpcCallSettings fetchStaticIpsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(fetchStaticIpsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); this.listMigrationJobsCallable = callableFactory.createUnaryCallable( listMigrationJobsTransportSettings, settings.listMigrationJobsSettings(), clientContext); this.listMigrationJobsPagedCallable = callableFactory.createPagedCallable( listMigrationJobsTransportSettings, settings.listMigrationJobsSettings(), clientContext); this.getMigrationJobCallable = callableFactory.createUnaryCallable( getMigrationJobTransportSettings, settings.getMigrationJobSettings(), clientContext); this.createMigrationJobCallable = callableFactory.createUnaryCallable( createMigrationJobTransportSettings, settings.createMigrationJobSettings(), clientContext); this.createMigrationJobOperationCallable = callableFactory.createOperationCallable( createMigrationJobTransportSettings, settings.createMigrationJobOperationSettings(), clientContext, operationsStub); this.updateMigrationJobCallable = callableFactory.createUnaryCallable( updateMigrationJobTransportSettings, settings.updateMigrationJobSettings(), clientContext); this.updateMigrationJobOperationCallable = callableFactory.createOperationCallable( updateMigrationJobTransportSettings, settings.updateMigrationJobOperationSettings(), clientContext, operationsStub); this.deleteMigrationJobCallable = callableFactory.createUnaryCallable( deleteMigrationJobTransportSettings, settings.deleteMigrationJobSettings(), clientContext); this.deleteMigrationJobOperationCallable = callableFactory.createOperationCallable( deleteMigrationJobTransportSettings, settings.deleteMigrationJobOperationSettings(), clientContext, operationsStub); this.startMigrationJobCallable = callableFactory.createUnaryCallable( startMigrationJobTransportSettings, settings.startMigrationJobSettings(), clientContext); this.startMigrationJobOperationCallable = callableFactory.createOperationCallable( startMigrationJobTransportSettings, settings.startMigrationJobOperationSettings(), clientContext, operationsStub); this.stopMigrationJobCallable = callableFactory.createUnaryCallable( stopMigrationJobTransportSettings, settings.stopMigrationJobSettings(), clientContext); this.stopMigrationJobOperationCallable = callableFactory.createOperationCallable( stopMigrationJobTransportSettings, settings.stopMigrationJobOperationSettings(), clientContext, operationsStub); this.resumeMigrationJobCallable = callableFactory.createUnaryCallable( resumeMigrationJobTransportSettings, settings.resumeMigrationJobSettings(), clientContext); this.resumeMigrationJobOperationCallable = callableFactory.createOperationCallable( resumeMigrationJobTransportSettings, settings.resumeMigrationJobOperationSettings(), clientContext, operationsStub); this.promoteMigrationJobCallable = callableFactory.createUnaryCallable( promoteMigrationJobTransportSettings, settings.promoteMigrationJobSettings(), clientContext); this.promoteMigrationJobOperationCallable = callableFactory.createOperationCallable( promoteMigrationJobTransportSettings, settings.promoteMigrationJobOperationSettings(), clientContext, operationsStub); this.verifyMigrationJobCallable = callableFactory.createUnaryCallable( verifyMigrationJobTransportSettings, settings.verifyMigrationJobSettings(), clientContext); this.verifyMigrationJobOperationCallable = callableFactory.createOperationCallable( verifyMigrationJobTransportSettings, settings.verifyMigrationJobOperationSettings(), clientContext, operationsStub); this.restartMigrationJobCallable = callableFactory.createUnaryCallable( restartMigrationJobTransportSettings, settings.restartMigrationJobSettings(), clientContext); this.restartMigrationJobOperationCallable = callableFactory.createOperationCallable( restartMigrationJobTransportSettings, settings.restartMigrationJobOperationSettings(), clientContext, operationsStub); this.generateSshScriptCallable = callableFactory.createUnaryCallable( generateSshScriptTransportSettings, settings.generateSshScriptSettings(), clientContext); this.generateTcpProxyScriptCallable = callableFactory.createUnaryCallable( generateTcpProxyScriptTransportSettings, settings.generateTcpProxyScriptSettings(), clientContext); this.listConnectionProfilesCallable = callableFactory.createUnaryCallable( listConnectionProfilesTransportSettings, settings.listConnectionProfilesSettings(), clientContext); this.listConnectionProfilesPagedCallable = callableFactory.createPagedCallable( listConnectionProfilesTransportSettings, settings.listConnectionProfilesSettings(), clientContext); this.getConnectionProfileCallable = callableFactory.createUnaryCallable( getConnectionProfileTransportSettings, settings.getConnectionProfileSettings(), clientContext); this.createConnectionProfileCallable = callableFactory.createUnaryCallable( createConnectionProfileTransportSettings, settings.createConnectionProfileSettings(), clientContext); this.createConnectionProfileOperationCallable = callableFactory.createOperationCallable( createConnectionProfileTransportSettings, settings.createConnectionProfileOperationSettings(), clientContext, operationsStub); this.updateConnectionProfileCallable = callableFactory.createUnaryCallable( updateConnectionProfileTransportSettings, settings.updateConnectionProfileSettings(), clientContext); this.updateConnectionProfileOperationCallable = callableFactory.createOperationCallable( updateConnectionProfileTransportSettings, settings.updateConnectionProfileOperationSettings(), clientContext, operationsStub); this.deleteConnectionProfileCallable = callableFactory.createUnaryCallable( deleteConnectionProfileTransportSettings, settings.deleteConnectionProfileSettings(), clientContext); this.deleteConnectionProfileOperationCallable = callableFactory.createOperationCallable( deleteConnectionProfileTransportSettings, settings.deleteConnectionProfileOperationSettings(), clientContext, operationsStub); this.createPrivateConnectionCallable = callableFactory.createUnaryCallable( createPrivateConnectionTransportSettings, settings.createPrivateConnectionSettings(), clientContext); this.createPrivateConnectionOperationCallable = callableFactory.createOperationCallable( createPrivateConnectionTransportSettings, settings.createPrivateConnectionOperationSettings(), clientContext, operationsStub); this.getPrivateConnectionCallable = callableFactory.createUnaryCallable( getPrivateConnectionTransportSettings, settings.getPrivateConnectionSettings(), clientContext); this.listPrivateConnectionsCallable = callableFactory.createUnaryCallable( listPrivateConnectionsTransportSettings, settings.listPrivateConnectionsSettings(), clientContext); this.listPrivateConnectionsPagedCallable = callableFactory.createPagedCallable( listPrivateConnectionsTransportSettings, settings.listPrivateConnectionsSettings(), clientContext); this.deletePrivateConnectionCallable = callableFactory.createUnaryCallable( deletePrivateConnectionTransportSettings, settings.deletePrivateConnectionSettings(), clientContext); this.deletePrivateConnectionOperationCallable = callableFactory.createOperationCallable( deletePrivateConnectionTransportSettings, settings.deletePrivateConnectionOperationSettings(), clientContext, operationsStub); this.getConversionWorkspaceCallable = callableFactory.createUnaryCallable( getConversionWorkspaceTransportSettings, settings.getConversionWorkspaceSettings(), clientContext); this.listConversionWorkspacesCallable = callableFactory.createUnaryCallable( listConversionWorkspacesTransportSettings, settings.listConversionWorkspacesSettings(), clientContext); this.listConversionWorkspacesPagedCallable = callableFactory.createPagedCallable( listConversionWorkspacesTransportSettings, settings.listConversionWorkspacesSettings(), clientContext); this.createConversionWorkspaceCallable = callableFactory.createUnaryCallable( createConversionWorkspaceTransportSettings, settings.createConversionWorkspaceSettings(), clientContext); this.createConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( createConversionWorkspaceTransportSettings, settings.createConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.updateConversionWorkspaceCallable = callableFactory.createUnaryCallable( updateConversionWorkspaceTransportSettings, settings.updateConversionWorkspaceSettings(), clientContext); this.updateConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( updateConversionWorkspaceTransportSettings, settings.updateConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.deleteConversionWorkspaceCallable = callableFactory.createUnaryCallable( deleteConversionWorkspaceTransportSettings, settings.deleteConversionWorkspaceSettings(), clientContext); this.deleteConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( deleteConversionWorkspaceTransportSettings, settings.deleteConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.createMappingRuleCallable = callableFactory.createUnaryCallable( createMappingRuleTransportSettings, settings.createMappingRuleSettings(), clientContext); this.deleteMappingRuleCallable = callableFactory.createUnaryCallable( deleteMappingRuleTransportSettings, settings.deleteMappingRuleSettings(), clientContext); this.listMappingRulesCallable = callableFactory.createUnaryCallable( listMappingRulesTransportSettings, settings.listMappingRulesSettings(), clientContext); this.listMappingRulesPagedCallable = callableFactory.createPagedCallable( listMappingRulesTransportSettings, settings.listMappingRulesSettings(), clientContext); this.getMappingRuleCallable = callableFactory.createUnaryCallable( getMappingRuleTransportSettings, settings.getMappingRuleSettings(), clientContext); this.seedConversionWorkspaceCallable = callableFactory.createUnaryCallable( seedConversionWorkspaceTransportSettings, settings.seedConversionWorkspaceSettings(), clientContext); this.seedConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( seedConversionWorkspaceTransportSettings, settings.seedConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.importMappingRulesCallable = callableFactory.createUnaryCallable( importMappingRulesTransportSettings, settings.importMappingRulesSettings(), clientContext); this.importMappingRulesOperationCallable = callableFactory.createOperationCallable( importMappingRulesTransportSettings, settings.importMappingRulesOperationSettings(), clientContext, operationsStub); this.convertConversionWorkspaceCallable = callableFactory.createUnaryCallable( convertConversionWorkspaceTransportSettings, settings.convertConversionWorkspaceSettings(), clientContext); this.convertConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( convertConversionWorkspaceTransportSettings, settings.convertConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.commitConversionWorkspaceCallable = callableFactory.createUnaryCallable( commitConversionWorkspaceTransportSettings, settings.commitConversionWorkspaceSettings(), clientContext); this.commitConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( commitConversionWorkspaceTransportSettings, settings.commitConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.rollbackConversionWorkspaceCallable = callableFactory.createUnaryCallable( rollbackConversionWorkspaceTransportSettings, settings.rollbackConversionWorkspaceSettings(), clientContext); this.rollbackConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( rollbackConversionWorkspaceTransportSettings, settings.rollbackConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.applyConversionWorkspaceCallable = callableFactory.createUnaryCallable( applyConversionWorkspaceTransportSettings, settings.applyConversionWorkspaceSettings(), clientContext); this.applyConversionWorkspaceOperationCallable = callableFactory.createOperationCallable( applyConversionWorkspaceTransportSettings, settings.applyConversionWorkspaceOperationSettings(), clientContext, operationsStub); this.describeDatabaseEntitiesCallable = callableFactory.createUnaryCallable( describeDatabaseEntitiesTransportSettings, settings.describeDatabaseEntitiesSettings(), clientContext); this.describeDatabaseEntitiesPagedCallable = callableFactory.createPagedCallable( describeDatabaseEntitiesTransportSettings, settings.describeDatabaseEntitiesSettings(), clientContext); this.searchBackgroundJobsCallable = callableFactory.createUnaryCallable( searchBackgroundJobsTransportSettings, settings.searchBackgroundJobsSettings(), clientContext); this.describeConversionWorkspaceRevisionsCallable = callableFactory.createUnaryCallable( describeConversionWorkspaceRevisionsTransportSettings, settings.describeConversionWorkspaceRevisionsSettings(), clientContext); this.fetchStaticIpsCallable = callableFactory.createUnaryCallable( fetchStaticIpsTransportSettings, settings.fetchStaticIpsSettings(), clientContext); this.fetchStaticIpsPagedCallable = callableFactory.createPagedCallable( fetchStaticIpsTransportSettings, settings.fetchStaticIpsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable listMigrationJobsCallable() { return listMigrationJobsCallable; } @Override public UnaryCallable listMigrationJobsPagedCallable() { return listMigrationJobsPagedCallable; } @Override public UnaryCallable getMigrationJobCallable() { return getMigrationJobCallable; } @Override public UnaryCallable createMigrationJobCallable() { return createMigrationJobCallable; } @Override public OperationCallable createMigrationJobOperationCallable() { return createMigrationJobOperationCallable; } @Override public UnaryCallable updateMigrationJobCallable() { return updateMigrationJobCallable; } @Override public OperationCallable updateMigrationJobOperationCallable() { return updateMigrationJobOperationCallable; } @Override public UnaryCallable deleteMigrationJobCallable() { return deleteMigrationJobCallable; } @Override public OperationCallable deleteMigrationJobOperationCallable() { return deleteMigrationJobOperationCallable; } @Override public UnaryCallable startMigrationJobCallable() { return startMigrationJobCallable; } @Override public OperationCallable startMigrationJobOperationCallable() { return startMigrationJobOperationCallable; } @Override public UnaryCallable stopMigrationJobCallable() { return stopMigrationJobCallable; } @Override public OperationCallable stopMigrationJobOperationCallable() { return stopMigrationJobOperationCallable; } @Override public UnaryCallable resumeMigrationJobCallable() { return resumeMigrationJobCallable; } @Override public OperationCallable resumeMigrationJobOperationCallable() { return resumeMigrationJobOperationCallable; } @Override public UnaryCallable promoteMigrationJobCallable() { return promoteMigrationJobCallable; } @Override public OperationCallable promoteMigrationJobOperationCallable() { return promoteMigrationJobOperationCallable; } @Override public UnaryCallable verifyMigrationJobCallable() { return verifyMigrationJobCallable; } @Override public OperationCallable verifyMigrationJobOperationCallable() { return verifyMigrationJobOperationCallable; } @Override public UnaryCallable restartMigrationJobCallable() { return restartMigrationJobCallable; } @Override public OperationCallable restartMigrationJobOperationCallable() { return restartMigrationJobOperationCallable; } @Override public UnaryCallable generateSshScriptCallable() { return generateSshScriptCallable; } @Override public UnaryCallable generateTcpProxyScriptCallable() { return generateTcpProxyScriptCallable; } @Override public UnaryCallable listConnectionProfilesCallable() { return listConnectionProfilesCallable; } @Override public UnaryCallable listConnectionProfilesPagedCallable() { return listConnectionProfilesPagedCallable; } @Override public UnaryCallable getConnectionProfileCallable() { return getConnectionProfileCallable; } @Override public UnaryCallable createConnectionProfileCallable() { return createConnectionProfileCallable; } @Override public OperationCallable createConnectionProfileOperationCallable() { return createConnectionProfileOperationCallable; } @Override public UnaryCallable updateConnectionProfileCallable() { return updateConnectionProfileCallable; } @Override public OperationCallable updateConnectionProfileOperationCallable() { return updateConnectionProfileOperationCallable; } @Override public UnaryCallable deleteConnectionProfileCallable() { return deleteConnectionProfileCallable; } @Override public OperationCallable deleteConnectionProfileOperationCallable() { return deleteConnectionProfileOperationCallable; } @Override public UnaryCallable createPrivateConnectionCallable() { return createPrivateConnectionCallable; } @Override public OperationCallable createPrivateConnectionOperationCallable() { return createPrivateConnectionOperationCallable; } @Override public UnaryCallable getPrivateConnectionCallable() { return getPrivateConnectionCallable; } @Override public UnaryCallable listPrivateConnectionsCallable() { return listPrivateConnectionsCallable; } @Override public UnaryCallable listPrivateConnectionsPagedCallable() { return listPrivateConnectionsPagedCallable; } @Override public UnaryCallable deletePrivateConnectionCallable() { return deletePrivateConnectionCallable; } @Override public OperationCallable deletePrivateConnectionOperationCallable() { return deletePrivateConnectionOperationCallable; } @Override public UnaryCallable getConversionWorkspaceCallable() { return getConversionWorkspaceCallable; } @Override public UnaryCallable listConversionWorkspacesCallable() { return listConversionWorkspacesCallable; } @Override public UnaryCallable listConversionWorkspacesPagedCallable() { return listConversionWorkspacesPagedCallable; } @Override public UnaryCallable createConversionWorkspaceCallable() { return createConversionWorkspaceCallable; } @Override public OperationCallable createConversionWorkspaceOperationCallable() { return createConversionWorkspaceOperationCallable; } @Override public UnaryCallable updateConversionWorkspaceCallable() { return updateConversionWorkspaceCallable; } @Override public OperationCallable updateConversionWorkspaceOperationCallable() { return updateConversionWorkspaceOperationCallable; } @Override public UnaryCallable deleteConversionWorkspaceCallable() { return deleteConversionWorkspaceCallable; } @Override public OperationCallable deleteConversionWorkspaceOperationCallable() { return deleteConversionWorkspaceOperationCallable; } @Override public UnaryCallable createMappingRuleCallable() { return createMappingRuleCallable; } @Override public UnaryCallable deleteMappingRuleCallable() { return deleteMappingRuleCallable; } @Override public UnaryCallable listMappingRulesCallable() { return listMappingRulesCallable; } @Override public UnaryCallable listMappingRulesPagedCallable() { return listMappingRulesPagedCallable; } @Override public UnaryCallable getMappingRuleCallable() { return getMappingRuleCallable; } @Override public UnaryCallable seedConversionWorkspaceCallable() { return seedConversionWorkspaceCallable; } @Override public OperationCallable seedConversionWorkspaceOperationCallable() { return seedConversionWorkspaceOperationCallable; } @Override public UnaryCallable importMappingRulesCallable() { return importMappingRulesCallable; } @Override public OperationCallable importMappingRulesOperationCallable() { return importMappingRulesOperationCallable; } @Override public UnaryCallable convertConversionWorkspaceCallable() { return convertConversionWorkspaceCallable; } @Override public OperationCallable< ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> convertConversionWorkspaceOperationCallable() { return convertConversionWorkspaceOperationCallable; } @Override public UnaryCallable commitConversionWorkspaceCallable() { return commitConversionWorkspaceCallable; } @Override public OperationCallable commitConversionWorkspaceOperationCallable() { return commitConversionWorkspaceOperationCallable; } @Override public UnaryCallable rollbackConversionWorkspaceCallable() { return rollbackConversionWorkspaceCallable; } @Override public OperationCallable< RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> rollbackConversionWorkspaceOperationCallable() { return rollbackConversionWorkspaceOperationCallable; } @Override public UnaryCallable applyConversionWorkspaceCallable() { return applyConversionWorkspaceCallable; } @Override public OperationCallable applyConversionWorkspaceOperationCallable() { return applyConversionWorkspaceOperationCallable; } @Override public UnaryCallable describeDatabaseEntitiesCallable() { return describeDatabaseEntitiesCallable; } @Override public UnaryCallable describeDatabaseEntitiesPagedCallable() { return describeDatabaseEntitiesPagedCallable; } @Override public UnaryCallable searchBackgroundJobsCallable() { return searchBackgroundJobsCallable; } @Override public UnaryCallable< DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> describeConversionWorkspaceRevisionsCallable() { return describeConversionWorkspaceRevisionsCallable; } @Override public UnaryCallable fetchStaticIpsCallable() { return fetchStaticIpsCallable; } @Override public UnaryCallable fetchStaticIpsPagedCallable() { return fetchStaticIpsPagedCallable; } @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 - 2025 Weber Informatics LLC | Privacy Policy