Class DataMigrationServiceSettings


  • @Generated("by gapic-generator-java")
    public class DataMigrationServiceSettings
    extends com.google.api.gax.rpc.ClientSettings<DataMigrationServiceSettings>
    Settings class to configure an instance of DataMigrationServiceClient.

    The default instance has everything set to sensible defaults:

    • The default service address (datamigration.googleapis.com) and default port (443) are used.
    • Credentials are acquired automatically through Application Default Credentials.
    • Retries are configured for idempotent methods but not for non-idempotent methods.

    The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

    For example, to set the total timeout of getMigrationJob to 30 seconds:

    
     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DataMigrationServiceSettings.Builder dataMigrationServiceSettingsBuilder =
         DataMigrationServiceSettings.newBuilder();
     dataMigrationServiceSettingsBuilder
         .getMigrationJobSettings()
         .setRetrySettings(
             dataMigrationServiceSettingsBuilder
                 .getMigrationJobSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     DataMigrationServiceSettings dataMigrationServiceSettings =
         dataMigrationServiceSettingsBuilder.build();
     
    • Method Detail

      • getMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetMigrationJobRequest,​MigrationJob> getMigrationJobSettings()
        Returns the object with the settings used for calls to getMigrationJob.
      • createMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateMigrationJobRequest,​com.google.longrunning.Operation> createMigrationJobSettings()
        Returns the object with the settings used for calls to createMigrationJob.
      • updateMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateMigrationJobRequest,​com.google.longrunning.Operation> updateMigrationJobSettings()
        Returns the object with the settings used for calls to updateMigrationJob.
      • deleteMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteMigrationJobRequest,​com.google.longrunning.Operation> deleteMigrationJobSettings()
        Returns the object with the settings used for calls to deleteMigrationJob.
      • deleteMigrationJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteMigrationJobRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteMigrationJobOperationSettings()
        Returns the object with the settings used for calls to deleteMigrationJob.
      • startMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<StartMigrationJobRequest,​com.google.longrunning.Operation> startMigrationJobSettings()
        Returns the object with the settings used for calls to startMigrationJob.
      • stopMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<StopMigrationJobRequest,​com.google.longrunning.Operation> stopMigrationJobSettings()
        Returns the object with the settings used for calls to stopMigrationJob.
      • stopMigrationJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<StopMigrationJobRequest,​MigrationJob,​OperationMetadata> stopMigrationJobOperationSettings()
        Returns the object with the settings used for calls to stopMigrationJob.
      • resumeMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ResumeMigrationJobRequest,​com.google.longrunning.Operation> resumeMigrationJobSettings()
        Returns the object with the settings used for calls to resumeMigrationJob.
      • promoteMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<PromoteMigrationJobRequest,​com.google.longrunning.Operation> promoteMigrationJobSettings()
        Returns the object with the settings used for calls to promoteMigrationJob.
      • verifyMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<VerifyMigrationJobRequest,​com.google.longrunning.Operation> verifyMigrationJobSettings()
        Returns the object with the settings used for calls to verifyMigrationJob.
      • restartMigrationJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<RestartMigrationJobRequest,​com.google.longrunning.Operation> restartMigrationJobSettings()
        Returns the object with the settings used for calls to restartMigrationJob.
      • generateSshScriptSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GenerateSshScriptRequest,​SshScript> generateSshScriptSettings()
        Returns the object with the settings used for calls to generateSshScript.
      • generateTcpProxyScriptSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GenerateTcpProxyScriptRequest,​TcpProxyScript> generateTcpProxyScriptSettings()
        Returns the object with the settings used for calls to generateTcpProxyScript.
      • getConnectionProfileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetConnectionProfileRequest,​ConnectionProfile> getConnectionProfileSettings()
        Returns the object with the settings used for calls to getConnectionProfile.
      • createConnectionProfileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateConnectionProfileRequest,​com.google.longrunning.Operation> createConnectionProfileSettings()
        Returns the object with the settings used for calls to createConnectionProfile.
      • updateConnectionProfileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateConnectionProfileRequest,​com.google.longrunning.Operation> updateConnectionProfileSettings()
        Returns the object with the settings used for calls to updateConnectionProfile.
      • deleteConnectionProfileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteConnectionProfileRequest,​com.google.longrunning.Operation> deleteConnectionProfileSettings()
        Returns the object with the settings used for calls to deleteConnectionProfile.
      • deleteConnectionProfileOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteConnectionProfileRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteConnectionProfileOperationSettings()
        Returns the object with the settings used for calls to deleteConnectionProfile.
      • createPrivateConnectionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreatePrivateConnectionRequest,​com.google.longrunning.Operation> createPrivateConnectionSettings()
        Returns the object with the settings used for calls to createPrivateConnection.
      • getPrivateConnectionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetPrivateConnectionRequest,​PrivateConnection> getPrivateConnectionSettings()
        Returns the object with the settings used for calls to getPrivateConnection.
      • deletePrivateConnectionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeletePrivateConnectionRequest,​com.google.longrunning.Operation> deletePrivateConnectionSettings()
        Returns the object with the settings used for calls to deletePrivateConnection.
      • deletePrivateConnectionOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeletePrivateConnectionRequest,​com.google.protobuf.Empty,​OperationMetadata> deletePrivateConnectionOperationSettings()
        Returns the object with the settings used for calls to deletePrivateConnection.
      • getConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetConversionWorkspaceRequest,​ConversionWorkspace> getConversionWorkspaceSettings()
        Returns the object with the settings used for calls to getConversionWorkspace.
      • createConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateConversionWorkspaceRequest,​com.google.longrunning.Operation> createConversionWorkspaceSettings()
        Returns the object with the settings used for calls to createConversionWorkspace.
      • updateConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateConversionWorkspaceRequest,​com.google.longrunning.Operation> updateConversionWorkspaceSettings()
        Returns the object with the settings used for calls to updateConversionWorkspace.
      • deleteConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteConversionWorkspaceRequest,​com.google.longrunning.Operation> deleteConversionWorkspaceSettings()
        Returns the object with the settings used for calls to deleteConversionWorkspace.
      • deleteConversionWorkspaceOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteConversionWorkspaceRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteConversionWorkspaceOperationSettings()
        Returns the object with the settings used for calls to deleteConversionWorkspace.
      • createMappingRuleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateMappingRuleRequest,​MappingRule> createMappingRuleSettings()
        Returns the object with the settings used for calls to createMappingRule.
      • deleteMappingRuleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteMappingRuleRequest,​com.google.protobuf.Empty> deleteMappingRuleSettings()
        Returns the object with the settings used for calls to deleteMappingRule.
      • getMappingRuleSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetMappingRuleRequest,​MappingRule> getMappingRuleSettings()
        Returns the object with the settings used for calls to getMappingRule.
      • seedConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<SeedConversionWorkspaceRequest,​com.google.longrunning.Operation> seedConversionWorkspaceSettings()
        Returns the object with the settings used for calls to seedConversionWorkspace.
      • importMappingRulesSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ImportMappingRulesRequest,​com.google.longrunning.Operation> importMappingRulesSettings()
        Returns the object with the settings used for calls to importMappingRules.
      • convertConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ConvertConversionWorkspaceRequest,​com.google.longrunning.Operation> convertConversionWorkspaceSettings()
        Returns the object with the settings used for calls to convertConversionWorkspace.
      • commitConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CommitConversionWorkspaceRequest,​com.google.longrunning.Operation> commitConversionWorkspaceSettings()
        Returns the object with the settings used for calls to commitConversionWorkspace.
      • rollbackConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<RollbackConversionWorkspaceRequest,​com.google.longrunning.Operation> rollbackConversionWorkspaceSettings()
        Returns the object with the settings used for calls to rollbackConversionWorkspace.
      • applyConversionWorkspaceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ApplyConversionWorkspaceRequest,​com.google.longrunning.Operation> applyConversionWorkspaceSettings()
        Returns the object with the settings used for calls to applyConversionWorkspace.
      • defaultExecutorProviderBuilder

        public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
        Returns a builder for the default ExecutorProvider for this service.
      • getDefaultEndpoint

        public static String getDefaultEndpoint()
        Returns the default service endpoint.
      • getDefaultServiceScopes

        public static List<String> getDefaultServiceScopes()
        Returns the default service scopes.
      • defaultCredentialsProviderBuilder

        public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
        Returns a builder for the default credentials for this service.
      • defaultGrpcTransportProviderBuilder

        public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
        Returns a builder for the default ChannelProvider for this service.
      • defaultTransportChannelProvider

        public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
      • defaultApiClientHeaderProviderBuilder

        @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()