public class MigrationCenterStubSettings extends StubSettings<MigrationCenterStubSettings>
Settings class to configure an instance of MigrationCenterStub .
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 total timeout of getAsset 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
MigrationCenterStubSettings.Builder migrationCenterSettingsBuilder =
MigrationCenterStubSettings.newBuilder();
migrationCenterSettingsBuilder
.getAssetSettings()
.setRetrySettings(
migrationCenterSettingsBuilder
.getAssetSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
MigrationCenterStubSettings migrationCenterSettings = migrationCenterSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
public static MigrationCenterStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static MigrationCenterStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static MigrationCenterStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
MigrationCenterStubSettings(MigrationCenterStubSettings.Builder settingsBuilder)
protected MigrationCenterStubSettings(MigrationCenterStubSettings.Builder settingsBuilder)
Methods
addAssetsToGroupOperationSettings()
public OperationCallSettings<AddAssetsToGroupRequest,Group,OperationMetadata> addAssetsToGroupOperationSettings()
Returns the object with the settings used for calls to addAssetsToGroup.
addAssetsToGroupSettings()
public UnaryCallSettings<AddAssetsToGroupRequest,Operation> addAssetsToGroupSettings()
Returns the object with the settings used for calls to addAssetsToGroup.
aggregateAssetsValuesSettings()
public UnaryCallSettings<AggregateAssetsValuesRequest,AggregateAssetsValuesResponse> aggregateAssetsValuesSettings()
Returns the object with the settings used for calls to aggregateAssetsValues.
batchDeleteAssetsSettings()
public UnaryCallSettings<BatchDeleteAssetsRequest,Empty> batchDeleteAssetsSettings()
Returns the object with the settings used for calls to batchDeleteAssets.
batchUpdateAssetsSettings()
public UnaryCallSettings<BatchUpdateAssetsRequest,BatchUpdateAssetsResponse> batchUpdateAssetsSettings()
Returns the object with the settings used for calls to batchUpdateAssets.
createGroupOperationSettings()
public OperationCallSettings<CreateGroupRequest,Group,OperationMetadata> createGroupOperationSettings()
Returns the object with the settings used for calls to createGroup.
createGroupSettings()
public UnaryCallSettings<CreateGroupRequest,Operation> createGroupSettings()
Returns the object with the settings used for calls to createGroup.
createImportDataFileOperationSettings()
public OperationCallSettings<CreateImportDataFileRequest,ImportDataFile,OperationMetadata> createImportDataFileOperationSettings()
Returns the object with the settings used for calls to createImportDataFile.
createImportDataFileSettings()
public UnaryCallSettings<CreateImportDataFileRequest,Operation> createImportDataFileSettings()
Returns the object with the settings used for calls to createImportDataFile.
createImportJobOperationSettings()
public OperationCallSettings<CreateImportJobRequest,ImportJob,OperationMetadata> createImportJobOperationSettings()
Returns the object with the settings used for calls to createImportJob.
createImportJobSettings()
public UnaryCallSettings<CreateImportJobRequest,Operation> createImportJobSettings()
Returns the object with the settings used for calls to createImportJob.
createPreferenceSetOperationSettings()
public OperationCallSettings<CreatePreferenceSetRequest,PreferenceSet,OperationMetadata> createPreferenceSetOperationSettings()
Returns the object with the settings used for calls to createPreferenceSet.
createPreferenceSetSettings()
public UnaryCallSettings<CreatePreferenceSetRequest,Operation> createPreferenceSetSettings()
Returns the object with the settings used for calls to createPreferenceSet.
createReportConfigOperationSettings()
public OperationCallSettings<CreateReportConfigRequest,ReportConfig,OperationMetadata> createReportConfigOperationSettings()
Returns the object with the settings used for calls to createReportConfig.
createReportConfigSettings()
public UnaryCallSettings<CreateReportConfigRequest,Operation> createReportConfigSettings()
Returns the object with the settings used for calls to createReportConfig.
createReportOperationSettings()
public OperationCallSettings<CreateReportRequest,Report,OperationMetadata> createReportOperationSettings()
Returns the object with the settings used for calls to createReport.
createReportSettings()
public UnaryCallSettings<CreateReportRequest,Operation> createReportSettings()
Returns the object with the settings used for calls to createReport.
createSourceOperationSettings()
public OperationCallSettings<CreateSourceRequest,Source,OperationMetadata> createSourceOperationSettings()
Returns the object with the settings used for calls to createSource.
createSourceSettings()
public UnaryCallSettings<CreateSourceRequest,Operation> createSourceSettings()
Returns the object with the settings used for calls to createSource.
createStub()
public MigrationCenterStub createStub()
deleteAssetSettings()
public UnaryCallSettings<DeleteAssetRequest,Empty> deleteAssetSettings()
Returns the object with the settings used for calls to deleteAsset.
deleteGroupOperationSettings()
public OperationCallSettings<DeleteGroupRequest,Empty,OperationMetadata> deleteGroupOperationSettings()
Returns the object with the settings used for calls to deleteGroup.
deleteGroupSettings()
public UnaryCallSettings<DeleteGroupRequest,Operation> deleteGroupSettings()
Returns the object with the settings used for calls to deleteGroup.
deleteImportDataFileOperationSettings()
public OperationCallSettings<DeleteImportDataFileRequest,Empty,OperationMetadata> deleteImportDataFileOperationSettings()
Returns the object with the settings used for calls to deleteImportDataFile.
deleteImportDataFileSettings()
public UnaryCallSettings<DeleteImportDataFileRequest,Operation> deleteImportDataFileSettings()
Returns the object with the settings used for calls to deleteImportDataFile.
deleteImportJobOperationSettings()
public OperationCallSettings<DeleteImportJobRequest,Empty,OperationMetadata> deleteImportJobOperationSettings()
Returns the object with the settings used for calls to deleteImportJob.
deleteImportJobSettings()
public UnaryCallSettings<DeleteImportJobRequest,Operation> deleteImportJobSettings()
Returns the object with the settings used for calls to deleteImportJob.
deletePreferenceSetOperationSettings()
public OperationCallSettings<DeletePreferenceSetRequest,Empty,OperationMetadata> deletePreferenceSetOperationSettings()
Returns the object with the settings used for calls to deletePreferenceSet.
deletePreferenceSetSettings()
public UnaryCallSettings<DeletePreferenceSetRequest,Operation> deletePreferenceSetSettings()
Returns the object with the settings used for calls to deletePreferenceSet.
deleteReportConfigOperationSettings()
public OperationCallSettings<DeleteReportConfigRequest,Empty,OperationMetadata> deleteReportConfigOperationSettings()
Returns the object with the settings used for calls to deleteReportConfig.
deleteReportConfigSettings()
public UnaryCallSettings<DeleteReportConfigRequest,Operation> deleteReportConfigSettings()
Returns the object with the settings used for calls to deleteReportConfig.
deleteReportOperationSettings()
public OperationCallSettings<DeleteReportRequest,Empty,OperationMetadata> deleteReportOperationSettings()
Returns the object with the settings used for calls to deleteReport.
deleteReportSettings()
public UnaryCallSettings<DeleteReportRequest,Operation> deleteReportSettings()
Returns the object with the settings used for calls to deleteReport.
deleteSourceOperationSettings()
public OperationCallSettings<DeleteSourceRequest,Empty,OperationMetadata> deleteSourceOperationSettings()
Returns the object with the settings used for calls to deleteSource.
deleteSourceSettings()
public UnaryCallSettings<DeleteSourceRequest,Operation> deleteSourceSettings()
Returns the object with the settings used for calls to deleteSource.
getAssetSettings()
public UnaryCallSettings<GetAssetRequest,Asset> getAssetSettings()
Returns the object with the settings used for calls to getAsset.
getErrorFrameSettings()
public UnaryCallSettings<GetErrorFrameRequest,ErrorFrame> getErrorFrameSettings()
Returns the object with the settings used for calls to getErrorFrame.
getGroupSettings()
public UnaryCallSettings<GetGroupRequest,Group> getGroupSettings()
Returns the object with the settings used for calls to getGroup.
getImportDataFileSettings()
public UnaryCallSettings<GetImportDataFileRequest,ImportDataFile> getImportDataFileSettings()
Returns the object with the settings used for calls to getImportDataFile.
getImportJobSettings()
public UnaryCallSettings<GetImportJobRequest,ImportJob> getImportJobSettings()
Returns the object with the settings used for calls to getImportJob.
getLocationSettings()
public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
Returns Type Description UnaryCallSettings <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location >
getPreferenceSetSettings()
public UnaryCallSettings<GetPreferenceSetRequest,PreferenceSet> getPreferenceSetSettings()
Returns the object with the settings used for calls to getPreferenceSet.
getReportConfigSettings()
public UnaryCallSettings<GetReportConfigRequest,ReportConfig> getReportConfigSettings()
Returns the object with the settings used for calls to getReportConfig.
getReportSettings()
public UnaryCallSettings<GetReportRequest,Report> getReportSettings()
Returns the object with the settings used for calls to getReport.
getServiceName()
public String getServiceName()
Returns the default service name.
Overrides
getSettingsSettings()
public UnaryCallSettings<GetSettingsRequest,Settings> getSettingsSettings()
Returns the object with the settings used for calls to getSettings.
getSourceSettings()
public UnaryCallSettings<GetSourceRequest,Source> getSourceSettings()
Returns the object with the settings used for calls to getSource.
listAssetsSettings()
public PagedCallSettings<ListAssetsRequest,ListAssetsResponse,MigrationCenterClient.ListAssetsPagedResponse> listAssetsSettings()
Returns the object with the settings used for calls to listAssets.
listErrorFramesSettings()
public PagedCallSettings<ListErrorFramesRequest,ListErrorFramesResponse,MigrationCenterClient.ListErrorFramesPagedResponse> listErrorFramesSettings()
Returns the object with the settings used for calls to listErrorFrames.
listGroupsSettings()
public PagedCallSettings<ListGroupsRequest,ListGroupsResponse,MigrationCenterClient.ListGroupsPagedResponse> listGroupsSettings()
Returns the object with the settings used for calls to listGroups.
listImportDataFilesSettings()
public PagedCallSettings<ListImportDataFilesRequest,ListImportDataFilesResponse,MigrationCenterClient.ListImportDataFilesPagedResponse> listImportDataFilesSettings()
Returns the object with the settings used for calls to listImportDataFiles.
listImportJobsSettings()
public PagedCallSettings<ListImportJobsRequest,ListImportJobsResponse,MigrationCenterClient.ListImportJobsPagedResponse> listImportJobsSettings()
Returns the object with the settings used for calls to listImportJobs.
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,MigrationCenterClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
listPreferenceSetsSettings()
public PagedCallSettings<ListPreferenceSetsRequest,ListPreferenceSetsResponse,MigrationCenterClient.ListPreferenceSetsPagedResponse> listPreferenceSetsSettings()
Returns the object with the settings used for calls to listPreferenceSets.
listReportConfigsSettings()
public PagedCallSettings<ListReportConfigsRequest,ListReportConfigsResponse,MigrationCenterClient.ListReportConfigsPagedResponse> listReportConfigsSettings()
Returns the object with the settings used for calls to listReportConfigs.
listReportsSettings()
public PagedCallSettings<ListReportsRequest,ListReportsResponse,MigrationCenterClient.ListReportsPagedResponse> listReportsSettings()
Returns the object with the settings used for calls to listReports.
listSourcesSettings()
public PagedCallSettings<ListSourcesRequest,ListSourcesResponse,MigrationCenterClient.ListSourcesPagedResponse> listSourcesSettings()
Returns the object with the settings used for calls to listSources.
removeAssetsFromGroupOperationSettings()
public OperationCallSettings<RemoveAssetsFromGroupRequest,Group,OperationMetadata> removeAssetsFromGroupOperationSettings()
Returns the object with the settings used for calls to removeAssetsFromGroup.
removeAssetsFromGroupSettings()
public UnaryCallSettings<RemoveAssetsFromGroupRequest,Operation> removeAssetsFromGroupSettings()
Returns the object with the settings used for calls to removeAssetsFromGroup.
reportAssetFramesSettings()
public UnaryCallSettings<ReportAssetFramesRequest,ReportAssetFramesResponse> reportAssetFramesSettings()
Returns the object with the settings used for calls to reportAssetFrames.
runImportJobOperationSettings()
public OperationCallSettings<RunImportJobRequest,Empty,OperationMetadata> runImportJobOperationSettings()
Returns the object with the settings used for calls to runImportJob.
runImportJobSettings()
public UnaryCallSettings<RunImportJobRequest,Operation> runImportJobSettings()
Returns the object with the settings used for calls to runImportJob.
toBuilder()
public MigrationCenterStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateAssetSettings()
public UnaryCallSettings<UpdateAssetRequest,Asset> updateAssetSettings()
Returns the object with the settings used for calls to updateAsset.
updateGroupOperationSettings()
public OperationCallSettings<UpdateGroupRequest,Group,OperationMetadata> updateGroupOperationSettings()
Returns the object with the settings used for calls to updateGroup.
updateGroupSettings()
public UnaryCallSettings<UpdateGroupRequest,Operation> updateGroupSettings()
Returns the object with the settings used for calls to updateGroup.
updateImportJobOperationSettings()
public OperationCallSettings<UpdateImportJobRequest,ImportJob,OperationMetadata> updateImportJobOperationSettings()
Returns the object with the settings used for calls to updateImportJob.
updateImportJobSettings()
public UnaryCallSettings<UpdateImportJobRequest,Operation> updateImportJobSettings()
Returns the object with the settings used for calls to updateImportJob.
updatePreferenceSetOperationSettings()
public OperationCallSettings<UpdatePreferenceSetRequest,PreferenceSet,OperationMetadata> updatePreferenceSetOperationSettings()
Returns the object with the settings used for calls to updatePreferenceSet.
updatePreferenceSetSettings()
public UnaryCallSettings<UpdatePreferenceSetRequest,Operation> updatePreferenceSetSettings()
Returns the object with the settings used for calls to updatePreferenceSet.
updateSettingsOperationSettings()
public OperationCallSettings<UpdateSettingsRequest,Settings,OperationMetadata> updateSettingsOperationSettings()
Returns the object with the settings used for calls to updateSettings.
updateSettingsSettings()
public UnaryCallSettings<UpdateSettingsRequest,Operation> updateSettingsSettings()
Returns the object with the settings used for calls to updateSettings.
updateSourceOperationSettings()
public OperationCallSettings<UpdateSourceRequest,Source,OperationMetadata> updateSourceOperationSettings()
Returns the object with the settings used for calls to updateSource.
updateSourceSettings()
public UnaryCallSettings<UpdateSourceRequest,Operation> updateSourceSettings()
Returns the object with the settings used for calls to updateSource.
validateImportJobOperationSettings()
public OperationCallSettings<ValidateImportJobRequest,Empty,OperationMetadata> validateImportJobOperationSettings()
Returns the object with the settings used for calls to validateImportJob.
validateImportJobSettings()
public UnaryCallSettings<ValidateImportJobRequest,Operation> validateImportJobSettings()
Returns the object with the settings used for calls to validateImportJob.