Class MigrationCenterSettings
java.lang.Object
com.google.api.gax.rpc.ClientSettings<MigrationCenterSettings>
com.google.cloud.migrationcenter.v1.MigrationCenterSettings
@Generated("by gapic-generator-java")
public class MigrationCenterSettings
extends ClientSettings<MigrationCenterSettings>
Settings class to configure an instance of
MigrationCenterClient.
The default instance has everything set to sensible defaults:
- The default service address (migrationcenter.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 [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of getAsset:
// 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
MigrationCenterSettings.Builder migrationCenterSettingsBuilder =
MigrationCenterSettings.newBuilder();
migrationCenterSettingsBuilder
.getAssetSettings()
.setRetrySettings(
migrationCenterSettingsBuilder
.getAssetSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
MigrationCenterSettings migrationCenterSettings = migrationCenterSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
retries.
To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for createImportJob:
// 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
MigrationCenterSettings.Builder migrationCenterSettingsBuilder =
MigrationCenterSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
migrationCenterSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for MigrationCenterSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMigrationCenterSettings(MigrationCenterSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionReturns the object with the settings used for calls to addAssetsToGroup.Returns the object with the settings used for calls to addAssetsToGroup.Returns the object with the settings used for calls to aggregateAssetsValues.UnaryCallSettings<BatchDeleteAssetsRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to batchDeleteAssets.Returns the object with the settings used for calls to batchUpdateAssets.static final MigrationCenterSettingsReturns the object with the settings used for calls to createGroup.Returns the object with the settings used for calls to createGroup.Returns the object with the settings used for calls to createImportDataFile.Returns the object with the settings used for calls to createImportDataFile.Returns the object with the settings used for calls to createImportJob.Returns the object with the settings used for calls to createImportJob.Returns the object with the settings used for calls to createPreferenceSet.Returns the object with the settings used for calls to createPreferenceSet.Returns the object with the settings used for calls to createReportConfig.Returns the object with the settings used for calls to createReportConfig.Returns the object with the settings used for calls to createReport.Returns the object with the settings used for calls to createReport.Returns the object with the settings used for calls to createSource.Returns the object with the settings used for calls to createSource.Returns a builder for the default credentials for this service.Returns a builder for the default ExecutorProvider for this service.Returns a builder for the default gRPC ChannelProvider for this service.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderUnaryCallSettings<DeleteAssetRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteAsset.OperationCallSettings<DeleteGroupRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteGroup.Returns the object with the settings used for calls to deleteGroup.OperationCallSettings<DeleteImportDataFileRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteImportDataFile.Returns the object with the settings used for calls to deleteImportDataFile.OperationCallSettings<DeleteImportJobRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteImportJob.Returns the object with the settings used for calls to deleteImportJob.OperationCallSettings<DeletePreferenceSetRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deletePreferenceSet.Returns the object with the settings used for calls to deletePreferenceSet.OperationCallSettings<DeleteReportConfigRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteReportConfig.Returns the object with the settings used for calls to deleteReportConfig.OperationCallSettings<DeleteReportRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteReport.Returns the object with the settings used for calls to deleteReport.OperationCallSettings<DeleteSourceRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteSource.Returns the object with the settings used for calls to deleteSource.Returns the object with the settings used for calls to getAsset.static StringReturns the default service endpoint.Returns the default service scopes.Returns the object with the settings used for calls to getErrorFrame.Returns the object with the settings used for calls to getGroup.Returns the object with the settings used for calls to getImportDataFile.Returns the object with the settings used for calls to getImportJob.Returns the object with the settings used for calls to getLocation.Returns the object with the settings used for calls to getPreferenceSet.Returns the object with the settings used for calls to getReportConfig.Returns the object with the settings used for calls to getReport.Returns the object with the settings used for calls to getSettings.Returns the object with the settings used for calls to getSource.PagedCallSettings<ListAssetsRequest,ListAssetsResponse, MigrationCenterClient.ListAssetsPagedResponse> Returns the object with the settings used for calls to listAssets.PagedCallSettings<ListErrorFramesRequest,ListErrorFramesResponse, MigrationCenterClient.ListErrorFramesPagedResponse> Returns the object with the settings used for calls to listErrorFrames.PagedCallSettings<ListGroupsRequest,ListGroupsResponse, MigrationCenterClient.ListGroupsPagedResponse> Returns the object with the settings used for calls to listGroups.PagedCallSettings<ListImportDataFilesRequest,ListImportDataFilesResponse, MigrationCenterClient.ListImportDataFilesPagedResponse> Returns the object with the settings used for calls to listImportDataFiles.PagedCallSettings<ListImportJobsRequest,ListImportJobsResponse, MigrationCenterClient.ListImportJobsPagedResponse> Returns the object with the settings used for calls to listImportJobs.PagedCallSettings<ListLocationsRequest,ListLocationsResponse, MigrationCenterClient.ListLocationsPagedResponse> Returns the object with the settings used for calls to listLocations.PagedCallSettings<ListPreferenceSetsRequest,ListPreferenceSetsResponse, MigrationCenterClient.ListPreferenceSetsPagedResponse> Returns the object with the settings used for calls to listPreferenceSets.PagedCallSettings<ListReportConfigsRequest,ListReportConfigsResponse, MigrationCenterClient.ListReportConfigsPagedResponse> Returns the object with the settings used for calls to listReportConfigs.PagedCallSettings<ListReportsRequest,ListReportsResponse, MigrationCenterClient.ListReportsPagedResponse> Returns the object with the settings used for calls to listReports.PagedCallSettings<ListSourcesRequest,ListSourcesResponse, MigrationCenterClient.ListSourcesPagedResponse> Returns the object with the settings used for calls to listSources.Returns a new gRPC builder for this class.newBuilder(ClientContext clientContext) Returns a new builder for this class.Returns a new REST builder for this class.Returns the object with the settings used for calls to removeAssetsFromGroup.Returns the object with the settings used for calls to removeAssetsFromGroup.Returns the object with the settings used for calls to reportAssetFrames.OperationCallSettings<RunImportJobRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to runImportJob.Returns the object with the settings used for calls to runImportJob.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateAsset.Returns the object with the settings used for calls to updateGroup.Returns the object with the settings used for calls to updateGroup.Returns the object with the settings used for calls to updateImportJob.Returns the object with the settings used for calls to updateImportJob.Returns the object with the settings used for calls to updatePreferenceSet.Returns the object with the settings used for calls to updatePreferenceSet.Returns the object with the settings used for calls to updateSettings.Returns the object with the settings used for calls to updateSettings.Returns the object with the settings used for calls to updateSource.Returns the object with the settings used for calls to updateSource.OperationCallSettings<ValidateImportJobRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to validateImportJob.Returns the object with the settings used for calls to validateImportJob.Methods inherited from class com.google.api.gax.rpc.ClientSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toString
-
Constructor Details
-
MigrationCenterSettings
protected MigrationCenterSettings(MigrationCenterSettings.Builder settingsBuilder) throws IOException - Throws:
IOException
-
-
Method Details
-
listAssetsSettings
public PagedCallSettings<ListAssetsRequest,ListAssetsResponse, listAssetsSettings()MigrationCenterClient.ListAssetsPagedResponse> Returns the object with the settings used for calls to listAssets. -
getAssetSettings
Returns the object with the settings used for calls to getAsset. -
updateAssetSettings
Returns the object with the settings used for calls to updateAsset. -
batchUpdateAssetsSettings
public UnaryCallSettings<BatchUpdateAssetsRequest,BatchUpdateAssetsResponse> batchUpdateAssetsSettings()Returns the object with the settings used for calls to batchUpdateAssets. -
deleteAssetSettings
Returns the object with the settings used for calls to deleteAsset. -
batchDeleteAssetsSettings
public UnaryCallSettings<BatchDeleteAssetsRequest,com.google.protobuf.Empty> batchDeleteAssetsSettings()Returns the object with the settings used for calls to batchDeleteAssets. -
reportAssetFramesSettings
public UnaryCallSettings<ReportAssetFramesRequest,ReportAssetFramesResponse> reportAssetFramesSettings()Returns the object with the settings used for calls to reportAssetFrames. -
aggregateAssetsValuesSettings
public UnaryCallSettings<AggregateAssetsValuesRequest,AggregateAssetsValuesResponse> aggregateAssetsValuesSettings()Returns the object with the settings used for calls to aggregateAssetsValues. -
createImportJobSettings
Returns the object with the settings used for calls to createImportJob. -
createImportJobOperationSettings
public OperationCallSettings<CreateImportJobRequest,ImportJob, createImportJobOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createImportJob. -
listImportJobsSettings
public PagedCallSettings<ListImportJobsRequest,ListImportJobsResponse, listImportJobsSettings()MigrationCenterClient.ListImportJobsPagedResponse> Returns the object with the settings used for calls to listImportJobs. -
getImportJobSettings
Returns the object with the settings used for calls to getImportJob. -
deleteImportJobSettings
Returns the object with the settings used for calls to deleteImportJob. -
deleteImportJobOperationSettings
public OperationCallSettings<DeleteImportJobRequest,com.google.protobuf.Empty, deleteImportJobOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteImportJob. -
updateImportJobSettings
Returns the object with the settings used for calls to updateImportJob. -
updateImportJobOperationSettings
public OperationCallSettings<UpdateImportJobRequest,ImportJob, updateImportJobOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateImportJob. -
validateImportJobSettings
Returns the object with the settings used for calls to validateImportJob. -
validateImportJobOperationSettings
public OperationCallSettings<ValidateImportJobRequest,com.google.protobuf.Empty, validateImportJobOperationSettings()OperationMetadata> Returns the object with the settings used for calls to validateImportJob. -
runImportJobSettings
Returns the object with the settings used for calls to runImportJob. -
runImportJobOperationSettings
public OperationCallSettings<RunImportJobRequest,com.google.protobuf.Empty, runImportJobOperationSettings()OperationMetadata> Returns the object with the settings used for calls to runImportJob. -
getImportDataFileSettings
Returns the object with the settings used for calls to getImportDataFile. -
listImportDataFilesSettings
public PagedCallSettings<ListImportDataFilesRequest,ListImportDataFilesResponse, listImportDataFilesSettings()MigrationCenterClient.ListImportDataFilesPagedResponse> Returns the object with the settings used for calls to listImportDataFiles. -
createImportDataFileSettings
Returns the object with the settings used for calls to createImportDataFile. -
createImportDataFileOperationSettings
public OperationCallSettings<CreateImportDataFileRequest,ImportDataFile, createImportDataFileOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createImportDataFile. -
deleteImportDataFileSettings
Returns the object with the settings used for calls to deleteImportDataFile. -
deleteImportDataFileOperationSettings
public OperationCallSettings<DeleteImportDataFileRequest,com.google.protobuf.Empty, deleteImportDataFileOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteImportDataFile. -
listGroupsSettings
public PagedCallSettings<ListGroupsRequest,ListGroupsResponse, listGroupsSettings()MigrationCenterClient.ListGroupsPagedResponse> Returns the object with the settings used for calls to listGroups. -
getGroupSettings
Returns the object with the settings used for calls to getGroup. -
createGroupSettings
Returns the object with the settings used for calls to createGroup. -
createGroupOperationSettings
public OperationCallSettings<CreateGroupRequest,Group, createGroupOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createGroup. -
updateGroupSettings
Returns the object with the settings used for calls to updateGroup. -
updateGroupOperationSettings
public OperationCallSettings<UpdateGroupRequest,Group, updateGroupOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateGroup. -
deleteGroupSettings
Returns the object with the settings used for calls to deleteGroup. -
deleteGroupOperationSettings
public OperationCallSettings<DeleteGroupRequest,com.google.protobuf.Empty, deleteGroupOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteGroup. -
addAssetsToGroupSettings
Returns the object with the settings used for calls to addAssetsToGroup. -
addAssetsToGroupOperationSettings
public OperationCallSettings<AddAssetsToGroupRequest,Group, addAssetsToGroupOperationSettings()OperationMetadata> Returns the object with the settings used for calls to addAssetsToGroup. -
removeAssetsFromGroupSettings
Returns the object with the settings used for calls to removeAssetsFromGroup. -
removeAssetsFromGroupOperationSettings
public OperationCallSettings<RemoveAssetsFromGroupRequest,Group, removeAssetsFromGroupOperationSettings()OperationMetadata> Returns the object with the settings used for calls to removeAssetsFromGroup. -
listErrorFramesSettings
public PagedCallSettings<ListErrorFramesRequest,ListErrorFramesResponse, listErrorFramesSettings()MigrationCenterClient.ListErrorFramesPagedResponse> Returns the object with the settings used for calls to listErrorFrames. -
getErrorFrameSettings
Returns the object with the settings used for calls to getErrorFrame. -
listSourcesSettings
public PagedCallSettings<ListSourcesRequest,ListSourcesResponse, listSourcesSettings()MigrationCenterClient.ListSourcesPagedResponse> Returns the object with the settings used for calls to listSources. -
getSourceSettings
Returns the object with the settings used for calls to getSource. -
createSourceSettings
Returns the object with the settings used for calls to createSource. -
createSourceOperationSettings
public OperationCallSettings<CreateSourceRequest,Source, createSourceOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createSource. -
updateSourceSettings
Returns the object with the settings used for calls to updateSource. -
updateSourceOperationSettings
public OperationCallSettings<UpdateSourceRequest,Source, updateSourceOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateSource. -
deleteSourceSettings
Returns the object with the settings used for calls to deleteSource. -
deleteSourceOperationSettings
public OperationCallSettings<DeleteSourceRequest,com.google.protobuf.Empty, deleteSourceOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteSource. -
listPreferenceSetsSettings
public PagedCallSettings<ListPreferenceSetsRequest,ListPreferenceSetsResponse, listPreferenceSetsSettings()MigrationCenterClient.ListPreferenceSetsPagedResponse> Returns the object with the settings used for calls to listPreferenceSets. -
getPreferenceSetSettings
Returns the object with the settings used for calls to getPreferenceSet. -
createPreferenceSetSettings
Returns the object with the settings used for calls to createPreferenceSet. -
createPreferenceSetOperationSettings
public OperationCallSettings<CreatePreferenceSetRequest,PreferenceSet, createPreferenceSetOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createPreferenceSet. -
updatePreferenceSetSettings
Returns the object with the settings used for calls to updatePreferenceSet. -
updatePreferenceSetOperationSettings
public OperationCallSettings<UpdatePreferenceSetRequest,PreferenceSet, updatePreferenceSetOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updatePreferenceSet. -
deletePreferenceSetSettings
Returns the object with the settings used for calls to deletePreferenceSet. -
deletePreferenceSetOperationSettings
public OperationCallSettings<DeletePreferenceSetRequest,com.google.protobuf.Empty, deletePreferenceSetOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deletePreferenceSet. -
getSettingsSettings
Returns the object with the settings used for calls to getSettings. -
updateSettingsSettings
Returns the object with the settings used for calls to updateSettings. -
updateSettingsOperationSettings
public OperationCallSettings<UpdateSettingsRequest,Settings, updateSettingsOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateSettings. -
createReportConfigSettings
Returns the object with the settings used for calls to createReportConfig. -
createReportConfigOperationSettings
public OperationCallSettings<CreateReportConfigRequest,ReportConfig, createReportConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createReportConfig. -
getReportConfigSettings
Returns the object with the settings used for calls to getReportConfig. -
listReportConfigsSettings
public PagedCallSettings<ListReportConfigsRequest,ListReportConfigsResponse, listReportConfigsSettings()MigrationCenterClient.ListReportConfigsPagedResponse> Returns the object with the settings used for calls to listReportConfigs. -
deleteReportConfigSettings
Returns the object with the settings used for calls to deleteReportConfig. -
deleteReportConfigOperationSettings
public OperationCallSettings<DeleteReportConfigRequest,com.google.protobuf.Empty, deleteReportConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteReportConfig. -
createReportSettings
Returns the object with the settings used for calls to createReport. -
createReportOperationSettings
public OperationCallSettings<CreateReportRequest,Report, createReportOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createReport. -
getReportSettings
Returns the object with the settings used for calls to getReport. -
listReportsSettings
public PagedCallSettings<ListReportsRequest,ListReportsResponse, listReportsSettings()MigrationCenterClient.ListReportsPagedResponse> Returns the object with the settings used for calls to listReports. -
deleteReportSettings
Returns the object with the settings used for calls to deleteReport. -
deleteReportOperationSettings
public OperationCallSettings<DeleteReportRequest,com.google.protobuf.Empty, deleteReportOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteReport. -
listLocationsSettings
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse, listLocationsSettings()MigrationCenterClient.ListLocationsPagedResponse> Returns the object with the settings used for calls to listLocations. -
getLocationSettings
Returns the object with the settings used for calls to getLocation. -
create
public static final MigrationCenterSettings create(MigrationCenterStubSettings stub) throws IOException - Throws:
IOException
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classClientSettings<MigrationCenterSettings>
-