Class MigrationCenterClient (0.30.0)

GitHub RepositoryProduct Reference

Service Description: Service describing handlers for resources.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AssetName name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]");
   Asset response = migrationCenterClient.getAsset(name);
 }
 

Note: close() needs to be called on the MigrationCenterClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

Methods
Method Description Method Variants

ListAssets

Lists all the assets in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listAssets(ListAssetsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listAssets(LocationName parent)

  • listAssets(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listAssetsPagedCallable()

  • listAssetsCallable()

GetAsset

Gets the details of an asset.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getAsset(GetAssetRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getAsset(AssetName name)

  • getAsset(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getAssetCallable()

UpdateAsset

Updates the parameters of an asset.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateAsset(UpdateAssetRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • updateAsset(Asset asset, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateAssetCallable()

BatchUpdateAssets

Updates the parameters of a list of assets.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchUpdateAssets(LocationName parent, List<UpdateAssetRequest> requests)

  • batchUpdateAssets(String parent, List<UpdateAssetRequest> requests)

  • batchUpdateAssets(BatchUpdateAssetsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchUpdateAssetsCallable()

DeleteAsset

Deletes an asset.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteAsset(DeleteAssetRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • deleteAsset(AssetName name)

  • deleteAsset(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteAssetCallable()

BatchDeleteAssets

Deletes list of Assets.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • batchDeleteAssets(BatchDeleteAssetsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • batchDeleteAssets(LocationName parent, List<String> names)

  • batchDeleteAssets(String parent, List<String> names)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchDeleteAssetsCallable()

ReportAssetFrames

Reports a set of frames.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • reportAssetFrames(ReportAssetFramesRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • reportAssetFramesCallable()

AggregateAssetsValues

Aggregates the requested fields based on provided function.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • aggregateAssetsValues(AggregateAssetsValuesRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • aggregateAssetsValuesCallable()

CreateImportJob

Creates an import job.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createImportJobAsync(CreateImportJobRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createImportJobAsync(LocationName parent, ImportJob importJob, String importJobId)

  • createImportJobAsync(String parent, ImportJob importJob, String importJobId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createImportJobOperationCallable()

  • createImportJobCallable()

ListImportJobs

Lists all import jobs.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listImportJobs(ListImportJobsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listImportJobs(LocationName parent)

  • listImportJobs(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listImportJobsPagedCallable()

  • listImportJobsCallable()

GetImportJob

Gets the details of an import job.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getImportJob(GetImportJobRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getImportJob(ImportJobName name)

  • getImportJob(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getImportJobCallable()

DeleteImportJob

Deletes an import job.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteImportJobAsync(DeleteImportJobRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteImportJobAsync(ImportJobName name)

  • deleteImportJobAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteImportJobOperationCallable()

  • deleteImportJobCallable()

UpdateImportJob

Updates an import job.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateImportJobAsync(UpdateImportJobRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateImportJobAsync(ImportJob importJob, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateImportJobOperationCallable()

  • updateImportJobCallable()

ValidateImportJob

Validates an import job.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • validateImportJobAsync(ValidateImportJobRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • validateImportJobAsync(ImportJobName name)

  • validateImportJobAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • validateImportJobOperationCallable()

  • validateImportJobCallable()

RunImportJob

Runs an import job.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • runImportJobAsync(RunImportJobRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • runImportJobAsync(ImportJobName name)

  • runImportJobAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • runImportJobOperationCallable()

  • runImportJobCallable()

GetImportDataFile

Gets an import data file.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getImportDataFile(GetImportDataFileRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getImportDataFile(ImportDataFileName name)

  • getImportDataFile(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getImportDataFileCallable()

ListImportDataFiles

List import data files.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listImportDataFiles(ListImportDataFilesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listImportDataFiles(ImportJobName parent)

  • listImportDataFiles(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listImportDataFilesPagedCallable()

  • listImportDataFilesCallable()

CreateImportDataFile

Creates an import data file.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createImportDataFileAsync(CreateImportDataFileRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createImportDataFileAsync(ImportJobName parent, ImportDataFile importDataFile, String importDataFileId)

  • createImportDataFileAsync(String parent, ImportDataFile importDataFile, String importDataFileId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createImportDataFileOperationCallable()

  • createImportDataFileCallable()

DeleteImportDataFile

Delete an import data file.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteImportDataFileAsync(DeleteImportDataFileRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteImportDataFileAsync(ImportDataFileName name)

  • deleteImportDataFileAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteImportDataFileOperationCallable()

  • deleteImportDataFileCallable()

ListGroups

Lists all groups in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listGroups(ListGroupsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listGroups(LocationName parent)

  • listGroups(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listGroupsPagedCallable()

  • listGroupsCallable()

GetGroup

Gets the details of a group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getGroup(GetGroupRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getGroup(GroupName name)

  • getGroup(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getGroupCallable()

CreateGroup

Creates a new group in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createGroupAsync(CreateGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createGroupAsync(LocationName parent, Group group, String groupId)

  • createGroupAsync(String parent, Group group, String groupId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createGroupOperationCallable()

  • createGroupCallable()

UpdateGroup

Updates the parameters of a group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateGroupAsync(UpdateGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateGroupAsync(Group group, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateGroupOperationCallable()

  • updateGroupCallable()

DeleteGroup

Deletes a group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteGroupAsync(DeleteGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteGroupAsync(GroupName name)

  • deleteGroupAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteGroupOperationCallable()

  • deleteGroupCallable()

AddAssetsToGroup

Adds assets to a group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • addAssetsToGroupAsync(AddAssetsToGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • addAssetsToGroupAsync(GroupName group)

  • addAssetsToGroupAsync(String group)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • addAssetsToGroupOperationCallable()

  • addAssetsToGroupCallable()

RemoveAssetsFromGroup

Removes assets from a group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • removeAssetsFromGroupAsync(RemoveAssetsFromGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • removeAssetsFromGroupAsync(GroupName group)

  • removeAssetsFromGroupAsync(String group)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • removeAssetsFromGroupOperationCallable()

  • removeAssetsFromGroupCallable()

ListErrorFrames

Lists all error frames in a given source and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listErrorFrames(ListErrorFramesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listErrorFrames(SourceName parent)

  • listErrorFrames(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listErrorFramesPagedCallable()

  • listErrorFramesCallable()

GetErrorFrame

Gets the details of an error frame.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getErrorFrame(GetErrorFrameRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getErrorFrame(ErrorFrameName name)

  • getErrorFrame(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getErrorFrameCallable()

ListSources

Lists all the sources in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listSources(ListSourcesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listSources(LocationName parent)

  • listSources(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listSourcesPagedCallable()

  • listSourcesCallable()

GetSource

Gets the details of a source.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getSource(GetSourceRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getSource(SourceName name)

  • getSource(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getSourceCallable()

CreateSource

Creates a new source in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createSourceAsync(CreateSourceRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createSourceAsync(LocationName parent, Source source, String sourceId)

  • createSourceAsync(String parent, Source source, String sourceId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createSourceOperationCallable()

  • createSourceCallable()

UpdateSource

Updates the parameters of a source.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateSourceAsync(UpdateSourceRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateSourceAsync(Source source, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateSourceOperationCallable()

  • updateSourceCallable()

DeleteSource

Deletes a source.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteSourceAsync(DeleteSourceRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteSourceAsync(SourceName name)

  • deleteSourceAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteSourceOperationCallable()

  • deleteSourceCallable()

ListPreferenceSets

Lists all the preference sets in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listPreferenceSets(ListPreferenceSetsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listPreferenceSets(LocationName parent)

  • listPreferenceSets(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listPreferenceSetsPagedCallable()

  • listPreferenceSetsCallable()

GetPreferenceSet

Gets the details of a preference set.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getPreferenceSet(GetPreferenceSetRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getPreferenceSet(PreferenceSetName name)

  • getPreferenceSet(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getPreferenceSetCallable()

CreatePreferenceSet

Creates a new preference set in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createPreferenceSetAsync(CreatePreferenceSetRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createPreferenceSetAsync(LocationName parent, PreferenceSet preferenceSet, String preferenceSetId)

  • createPreferenceSetAsync(String parent, PreferenceSet preferenceSet, String preferenceSetId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createPreferenceSetOperationCallable()

  • createPreferenceSetCallable()

UpdatePreferenceSet

Updates the parameters of a preference set.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updatePreferenceSetAsync(UpdatePreferenceSetRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updatePreferenceSetAsync(PreferenceSet preferenceSet, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updatePreferenceSetOperationCallable()

  • updatePreferenceSetCallable()

DeletePreferenceSet

Deletes a preference set.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deletePreferenceSetAsync(DeletePreferenceSetRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deletePreferenceSetAsync(PreferenceSetName name)

  • deletePreferenceSetAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deletePreferenceSetOperationCallable()

  • deletePreferenceSetCallable()

GetSettings

Gets the details of regional settings.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getSettings(GetSettingsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getSettings(SettingsName name)

  • getSettings(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getSettingsCallable()

UpdateSettings

Updates the regional-level project settings.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateSettingsAsync(UpdateSettingsRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateSettingsAsync(Settings settings, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateSettingsOperationCallable()

  • updateSettingsCallable()

CreateReportConfig

Creates a report configuration.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createReportConfigAsync(CreateReportConfigRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createReportConfigAsync(LocationName parent, ReportConfig reportConfig, String reportConfigId)

  • createReportConfigAsync(String parent, ReportConfig reportConfig, String reportConfigId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createReportConfigOperationCallable()

  • createReportConfigCallable()

GetReportConfig

Gets details of a single ReportConfig.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getReportConfig(GetReportConfigRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getReportConfig(ReportConfigName name)

  • getReportConfig(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getReportConfigCallable()

ListReportConfigs

Lists ReportConfigs in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listReportConfigs(ListReportConfigsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listReportConfigs(LocationName parent)

  • listReportConfigs(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listReportConfigsPagedCallable()

  • listReportConfigsCallable()

DeleteReportConfig

Deletes a ReportConfig.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteReportConfigAsync(DeleteReportConfigRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteReportConfigAsync(ReportConfigName name)

  • deleteReportConfigAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteReportConfigOperationCallable()

  • deleteReportConfigCallable()

CreateReport

Creates a report.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createReportAsync(CreateReportRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createReportAsync(ReportConfigName parent, Report report, String reportId)

  • createReportAsync(String parent, Report report, String reportId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createReportOperationCallable()

  • createReportCallable()

GetReport

Gets details of a single Report.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getReport(GetReportRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getReport(ReportName name)

  • getReport(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getReportCallable()

ListReports

Lists Reports in a given ReportConfig.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listReports(ListReportsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listReports(ReportConfigName parent)

  • listReports(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listReportsPagedCallable()

  • listReportsCallable()

DeleteReport

Deletes a Report.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteReportAsync(DeleteReportRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteReportAsync(ReportName name)

  • deleteReportAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteReportOperationCallable()

  • deleteReportCallable()

ListLocations

Lists information about the supported locations for this service.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listLocations(ListLocationsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listLocationsPagedCallable()

  • listLocationsCallable()

GetLocation

Gets information about a location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getLocation(GetLocationRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getLocationCallable()

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of MigrationCenterSettings to create(). For example:

To customize credentials:


 // 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 migrationCenterSettings =
     MigrationCenterSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 MigrationCenterClient migrationCenterClient =
     MigrationCenterClient.create(migrationCenterSettings);
 

To customize the endpoint:


 // 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 migrationCenterSettings =
     MigrationCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
 MigrationCenterClient migrationCenterClient =
     MigrationCenterClient.create(migrationCenterSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // 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 migrationCenterSettings =
     MigrationCenterSettings.newHttpJsonBuilder().build();
 MigrationCenterClient migrationCenterClient =
     MigrationCenterClient.create(migrationCenterSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > MigrationCenterClient

Static Methods

create()

public static final MigrationCenterClient create()

Constructs an instance of MigrationCenterClient with default settings.

Returns
Type Description
MigrationCenterClient
Exceptions
Type Description
IOException

create(MigrationCenterSettings settings)

public static final MigrationCenterClient create(MigrationCenterSettings settings)

Constructs an instance of MigrationCenterClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
Name Description
settings MigrationCenterSettings
Returns
Type Description
MigrationCenterClient
Exceptions
Type Description
IOException

create(MigrationCenterStub stub)

public static final MigrationCenterClient create(MigrationCenterStub stub)

Constructs an instance of MigrationCenterClient, using the given stub for making calls. This is for advanced usage - prefer using create(MigrationCenterSettings).

Parameter
Name Description
stub MigrationCenterStub
Returns
Type Description
MigrationCenterClient

Constructors

MigrationCenterClient(MigrationCenterSettings settings)

protected MigrationCenterClient(MigrationCenterSettings settings)

Constructs an instance of MigrationCenterClient, 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.

Parameter
Name Description
settings MigrationCenterSettings

MigrationCenterClient(MigrationCenterStub stub)

protected MigrationCenterClient(MigrationCenterStub stub)
Parameter
Name Description
stub MigrationCenterStub

Methods

addAssetsToGroupAsync(AddAssetsToGroupRequest request)

public final OperationFuture<Group,OperationMetadata> addAssetsToGroupAsync(AddAssetsToGroupRequest request)

Adds assets to a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AddAssetsToGroupRequest request =
       AddAssetsToGroupRequest.newBuilder()
           .setGroup(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .setAssets(AssetList.newBuilder().build())
           .setAllowExisting(true)
           .build();
   Group response = migrationCenterClient.addAssetsToGroupAsync(request).get();
 }
 
Parameter
Name Description
request AddAssetsToGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

addAssetsToGroupAsync(GroupName group)

public final OperationFuture<Group,OperationMetadata> addAssetsToGroupAsync(GroupName group)

Adds assets to a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GroupName group = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]");
   Group response = migrationCenterClient.addAssetsToGroupAsync(group).get();
 }
 
Parameter
Name Description
group GroupName

Required. Group reference.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

addAssetsToGroupAsync(String group)

public final OperationFuture<Group,OperationMetadata> addAssetsToGroupAsync(String group)

Adds assets to a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String group = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString();
   Group response = migrationCenterClient.addAssetsToGroupAsync(group).get();
 }
 
Parameter
Name Description
group String

Required. Group reference.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

addAssetsToGroupCallable()

public final UnaryCallable<AddAssetsToGroupRequest,Operation> addAssetsToGroupCallable()

Adds assets to a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AddAssetsToGroupRequest request =
       AddAssetsToGroupRequest.newBuilder()
           .setGroup(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .setAssets(AssetList.newBuilder().build())
           .setAllowExisting(true)
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.addAssetsToGroupCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<AddAssetsToGroupRequest,Operation>

addAssetsToGroupOperationCallable()

public final OperationCallable<AddAssetsToGroupRequest,Group,OperationMetadata> addAssetsToGroupOperationCallable()

Adds assets to a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AddAssetsToGroupRequest request =
       AddAssetsToGroupRequest.newBuilder()
           .setGroup(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .setAssets(AssetList.newBuilder().build())
           .setAllowExisting(true)
           .build();
   OperationFuture<Group, OperationMetadata> future =
       migrationCenterClient.addAssetsToGroupOperationCallable().futureCall(request);
   // Do something.
   Group response = future.get();
 }
 
Returns
Type Description
OperationCallable<AddAssetsToGroupRequest,Group,OperationMetadata>

aggregateAssetsValues(AggregateAssetsValuesRequest request)

public final AggregateAssetsValuesResponse aggregateAssetsValues(AggregateAssetsValuesRequest request)

Aggregates the requested fields based on provided function.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AggregateAssetsValuesRequest request =
       AggregateAssetsValuesRequest.newBuilder()
           .setParent("parent-995424086")
           .addAllAggregations(new ArrayList<Aggregation>())
           .setFilter("filter-1274492040")
           .build();
   AggregateAssetsValuesResponse response = migrationCenterClient.aggregateAssetsValues(request);
 }
 
Parameter
Name Description
request AggregateAssetsValuesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
AggregateAssetsValuesResponse

aggregateAssetsValuesCallable()

public final UnaryCallable<AggregateAssetsValuesRequest,AggregateAssetsValuesResponse> aggregateAssetsValuesCallable()

Aggregates the requested fields based on provided function.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AggregateAssetsValuesRequest request =
       AggregateAssetsValuesRequest.newBuilder()
           .setParent("parent-995424086")
           .addAllAggregations(new ArrayList<Aggregation>())
           .setFilter("filter-1274492040")
           .build();
   ApiFuture<AggregateAssetsValuesResponse> future =
       migrationCenterClient.aggregateAssetsValuesCallable().futureCall(request);
   // Do something.
   AggregateAssetsValuesResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<AggregateAssetsValuesRequest,AggregateAssetsValuesResponse>

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchDeleteAssets(BatchDeleteAssetsRequest request)

public final void batchDeleteAssets(BatchDeleteAssetsRequest request)

Deletes list of Assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   BatchDeleteAssetsRequest request =
       BatchDeleteAssetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .addAllNames(new ArrayList<String>())
           .setAllowMissing(true)
           .build();
   migrationCenterClient.batchDeleteAssets(request);
 }
 
Parameter
Name Description
request BatchDeleteAssetsRequest

The request object containing all of the parameters for the API call.

batchDeleteAssets(LocationName parent, List<String> names)

public final void batchDeleteAssets(LocationName parent, List<String> names)

Deletes list of Assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   List<String> names = new ArrayList<>();
   migrationCenterClient.batchDeleteAssets(parent, names);
 }
 
Parameters
Name Description
parent LocationName

Required. Parent value for batch asset delete.

names List<String>

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

batchDeleteAssets(String parent, List<String> names)

public final void batchDeleteAssets(String parent, List<String> names)

Deletes list of Assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   List<String> names = new ArrayList<>();
   migrationCenterClient.batchDeleteAssets(parent, names);
 }
 
Parameters
Name Description
parent String

Required. Parent value for batch asset delete.

names List<String>

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

batchDeleteAssetsCallable()

public final UnaryCallable<BatchDeleteAssetsRequest,Empty> batchDeleteAssetsCallable()

Deletes list of Assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   BatchDeleteAssetsRequest request =
       BatchDeleteAssetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .addAllNames(new ArrayList<String>())
           .setAllowMissing(true)
           .build();
   ApiFuture<Empty> future =
       migrationCenterClient.batchDeleteAssetsCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchDeleteAssetsRequest,Empty>

batchUpdateAssets(BatchUpdateAssetsRequest request)

public final BatchUpdateAssetsResponse batchUpdateAssets(BatchUpdateAssetsRequest request)

Updates the parameters of a list of assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   BatchUpdateAssetsRequest request =
       BatchUpdateAssetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .addAllRequests(new ArrayList<UpdateAssetRequest>())
           .build();
   BatchUpdateAssetsResponse response = migrationCenterClient.batchUpdateAssets(request);
 }
 
Parameter
Name Description
request BatchUpdateAssetsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
BatchUpdateAssetsResponse

batchUpdateAssets(LocationName parent, List<UpdateAssetRequest> requests)

public final BatchUpdateAssetsResponse batchUpdateAssets(LocationName parent, List<UpdateAssetRequest> requests)

Updates the parameters of a list of assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   List<UpdateAssetRequest> requests = new ArrayList<>();
   BatchUpdateAssetsResponse response =
       migrationCenterClient.batchUpdateAssets(parent, requests);
 }
 
Parameters
Name Description
parent LocationName

Required. Parent value for batch asset update.

requests List<UpdateAssetRequest>

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

Returns
Type Description
BatchUpdateAssetsResponse

batchUpdateAssets(String parent, List<UpdateAssetRequest> requests)

public final BatchUpdateAssetsResponse batchUpdateAssets(String parent, List<UpdateAssetRequest> requests)

Updates the parameters of a list of assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   List<UpdateAssetRequest> requests = new ArrayList<>();
   BatchUpdateAssetsResponse response =
       migrationCenterClient.batchUpdateAssets(parent, requests);
 }
 
Parameters
Name Description
parent String

Required. Parent value for batch asset update.

requests List<UpdateAssetRequest>

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

Returns
Type Description
BatchUpdateAssetsResponse

batchUpdateAssetsCallable()

public final UnaryCallable<BatchUpdateAssetsRequest,BatchUpdateAssetsResponse> batchUpdateAssetsCallable()

Updates the parameters of a list of assets.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   BatchUpdateAssetsRequest request =
       BatchUpdateAssetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .addAllRequests(new ArrayList<UpdateAssetRequest>())
           .build();
   ApiFuture<BatchUpdateAssetsResponse> future =
       migrationCenterClient.batchUpdateAssetsCallable().futureCall(request);
   // Do something.
   BatchUpdateAssetsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchUpdateAssetsRequest,BatchUpdateAssetsResponse>

close()

public final void close()

createGroupAsync(CreateGroupRequest request)

public final OperationFuture<Group,OperationMetadata> createGroupAsync(CreateGroupRequest request)

Creates a new group in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateGroupRequest request =
       CreateGroupRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setGroupId("groupId293428218")
           .setGroup(Group.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Group response = migrationCenterClient.createGroupAsync(request).get();
 }
 
Parameter
Name Description
request CreateGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

createGroupAsync(LocationName parent, Group group, String groupId)

public final OperationFuture<Group,OperationMetadata> createGroupAsync(LocationName parent, Group group, String groupId)

Creates a new group in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Group group = Group.newBuilder().build();
   String groupId = "groupId293428218";
   Group response = migrationCenterClient.createGroupAsync(parent, group, groupId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

group Group

Required. The group resource being created.

groupId String

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

createGroupAsync(String parent, Group group, String groupId)

public final OperationFuture<Group,OperationMetadata> createGroupAsync(String parent, Group group, String groupId)

Creates a new group in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Group group = Group.newBuilder().build();
   String groupId = "groupId293428218";
   Group response = migrationCenterClient.createGroupAsync(parent, group, groupId).get();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

group Group

Required. The group resource being created.

groupId String

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

createGroupCallable()

public final UnaryCallable<CreateGroupRequest,Operation> createGroupCallable()

Creates a new group in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateGroupRequest request =
       CreateGroupRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setGroupId("groupId293428218")
           .setGroup(Group.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future = migrationCenterClient.createGroupCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateGroupRequest,Operation>

createGroupOperationCallable()

public final OperationCallable<CreateGroupRequest,Group,OperationMetadata> createGroupOperationCallable()

Creates a new group in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateGroupRequest request =
       CreateGroupRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setGroupId("groupId293428218")
           .setGroup(Group.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Group, OperationMetadata> future =
       migrationCenterClient.createGroupOperationCallable().futureCall(request);
   // Do something.
   Group response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateGroupRequest,Group,OperationMetadata>

createImportDataFileAsync(CreateImportDataFileRequest request)

public final OperationFuture<ImportDataFile,OperationMetadata> createImportDataFileAsync(CreateImportDataFileRequest request)

Creates an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateImportDataFileRequest request =
       CreateImportDataFileRequest.newBuilder()
           .setParent(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setImportDataFileId("importDataFileId-1812510330")
           .setImportDataFile(ImportDataFile.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ImportDataFile response = migrationCenterClient.createImportDataFileAsync(request).get();
 }
 
Parameter
Name Description
request CreateImportDataFileRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<ImportDataFile,OperationMetadata>

createImportDataFileAsync(ImportJobName parent, ImportDataFile importDataFile, String importDataFileId)

public final OperationFuture<ImportDataFile,OperationMetadata> createImportDataFileAsync(ImportJobName parent, ImportDataFile importDataFile, String importDataFileId)

Creates an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportJobName parent = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
   ImportDataFile importDataFile = ImportDataFile.newBuilder().build();
   String importDataFileId = "importDataFileId-1812510330";
   ImportDataFile response =
       migrationCenterClient
           .createImportDataFileAsync(parent, importDataFile, importDataFileId)
           .get();
 }
 
Parameters
Name Description
parent ImportJobName

Required. Name of the parent of the ImportDataFile.

importDataFile ImportDataFile

Required. The resource being created.

importDataFileId String

Required. The ID of the new data file.

Returns
Type Description
OperationFuture<ImportDataFile,OperationMetadata>

createImportDataFileAsync(String parent, ImportDataFile importDataFile, String importDataFileId)

public final OperationFuture<ImportDataFile,OperationMetadata> createImportDataFileAsync(String parent, ImportDataFile importDataFile, String importDataFileId)

Creates an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString();
   ImportDataFile importDataFile = ImportDataFile.newBuilder().build();
   String importDataFileId = "importDataFileId-1812510330";
   ImportDataFile response =
       migrationCenterClient
           .createImportDataFileAsync(parent, importDataFile, importDataFileId)
           .get();
 }
 
Parameters
Name Description
parent String

Required. Name of the parent of the ImportDataFile.

importDataFile ImportDataFile

Required. The resource being created.

importDataFileId String

Required. The ID of the new data file.

Returns
Type Description
OperationFuture<ImportDataFile,OperationMetadata>

createImportDataFileCallable()

public final UnaryCallable<CreateImportDataFileRequest,Operation> createImportDataFileCallable()

Creates an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateImportDataFileRequest request =
       CreateImportDataFileRequest.newBuilder()
           .setParent(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setImportDataFileId("importDataFileId-1812510330")
           .setImportDataFile(ImportDataFile.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.createImportDataFileCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateImportDataFileRequest,Operation>

createImportDataFileOperationCallable()

public final OperationCallable<CreateImportDataFileRequest,ImportDataFile,OperationMetadata> createImportDataFileOperationCallable()

Creates an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateImportDataFileRequest request =
       CreateImportDataFileRequest.newBuilder()
           .setParent(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setImportDataFileId("importDataFileId-1812510330")
           .setImportDataFile(ImportDataFile.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<ImportDataFile, OperationMetadata> future =
       migrationCenterClient.createImportDataFileOperationCallable().futureCall(request);
   // Do something.
   ImportDataFile response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateImportDataFileRequest,ImportDataFile,OperationMetadata>

createImportJobAsync(CreateImportJobRequest request)

public final OperationFuture<ImportJob,OperationMetadata> createImportJobAsync(CreateImportJobRequest request)

Creates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateImportJobRequest request =
       CreateImportJobRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setImportJobId("importJobId1449444627")
           .setImportJob(ImportJob.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ImportJob response = migrationCenterClient.createImportJobAsync(request).get();
 }
 
Parameter
Name Description
request CreateImportJobRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<ImportJob,OperationMetadata>

createImportJobAsync(LocationName parent, ImportJob importJob, String importJobId)

public final OperationFuture<ImportJob,OperationMetadata> createImportJobAsync(LocationName parent, ImportJob importJob, String importJobId)

Creates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   ImportJob importJob = ImportJob.newBuilder().build();
   String importJobId = "importJobId1449444627";
   ImportJob response =
       migrationCenterClient.createImportJobAsync(parent, importJob, importJobId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

importJob ImportJob

Required. The resource being created.

importJobId String

Required. ID of the import job.

Returns
Type Description
OperationFuture<ImportJob,OperationMetadata>

createImportJobAsync(String parent, ImportJob importJob, String importJobId)

public final OperationFuture<ImportJob,OperationMetadata> createImportJobAsync(String parent, ImportJob importJob, String importJobId)

Creates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   ImportJob importJob = ImportJob.newBuilder().build();
   String importJobId = "importJobId1449444627";
   ImportJob response =
       migrationCenterClient.createImportJobAsync(parent, importJob, importJobId).get();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

importJob ImportJob

Required. The resource being created.

importJobId String

Required. ID of the import job.

Returns
Type Description
OperationFuture<ImportJob,OperationMetadata>

createImportJobCallable()

public final UnaryCallable<CreateImportJobRequest,Operation> createImportJobCallable()

Creates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateImportJobRequest request =
       CreateImportJobRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setImportJobId("importJobId1449444627")
           .setImportJob(ImportJob.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.createImportJobCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateImportJobRequest,Operation>

createImportJobOperationCallable()

public final OperationCallable<CreateImportJobRequest,ImportJob,OperationMetadata> createImportJobOperationCallable()

Creates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateImportJobRequest request =
       CreateImportJobRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setImportJobId("importJobId1449444627")
           .setImportJob(ImportJob.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<ImportJob, OperationMetadata> future =
       migrationCenterClient.createImportJobOperationCallable().futureCall(request);
   // Do something.
   ImportJob response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateImportJobRequest,ImportJob,OperationMetadata>

createPreferenceSetAsync(CreatePreferenceSetRequest request)

public final OperationFuture<PreferenceSet,OperationMetadata> createPreferenceSetAsync(CreatePreferenceSetRequest request)

Creates a new preference set in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreatePreferenceSetRequest request =
       CreatePreferenceSetRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPreferenceSetId("preferenceSetId-569419518")
           .setPreferenceSet(PreferenceSet.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   PreferenceSet response = migrationCenterClient.createPreferenceSetAsync(request).get();
 }
 
Parameter
Name Description
request CreatePreferenceSetRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<PreferenceSet,OperationMetadata>

createPreferenceSetAsync(LocationName parent, PreferenceSet preferenceSet, String preferenceSetId)

public final OperationFuture<PreferenceSet,OperationMetadata> createPreferenceSetAsync(LocationName parent, PreferenceSet preferenceSet, String preferenceSetId)

Creates a new preference set in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   PreferenceSet preferenceSet = PreferenceSet.newBuilder().build();
   String preferenceSetId = "preferenceSetId-569419518";
   PreferenceSet response =
       migrationCenterClient
           .createPreferenceSetAsync(parent, preferenceSet, preferenceSetId)
           .get();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

preferenceSet PreferenceSet

Required. The preference set resource being created.

preferenceSetId String

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression a-z?.

Returns
Type Description
OperationFuture<PreferenceSet,OperationMetadata>

createPreferenceSetAsync(String parent, PreferenceSet preferenceSet, String preferenceSetId)

public final OperationFuture<PreferenceSet,OperationMetadata> createPreferenceSetAsync(String parent, PreferenceSet preferenceSet, String preferenceSetId)

Creates a new preference set in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   PreferenceSet preferenceSet = PreferenceSet.newBuilder().build();
   String preferenceSetId = "preferenceSetId-569419518";
   PreferenceSet response =
       migrationCenterClient
           .createPreferenceSetAsync(parent, preferenceSet, preferenceSetId)
           .get();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

preferenceSet PreferenceSet

Required. The preference set resource being created.

preferenceSetId String

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression a-z?.

Returns
Type Description
OperationFuture<PreferenceSet,OperationMetadata>

createPreferenceSetCallable()

public final UnaryCallable<CreatePreferenceSetRequest,Operation> createPreferenceSetCallable()

Creates a new preference set in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreatePreferenceSetRequest request =
       CreatePreferenceSetRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPreferenceSetId("preferenceSetId-569419518")
           .setPreferenceSet(PreferenceSet.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.createPreferenceSetCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreatePreferenceSetRequest,Operation>

createPreferenceSetOperationCallable()

public final OperationCallable<CreatePreferenceSetRequest,PreferenceSet,OperationMetadata> createPreferenceSetOperationCallable()

Creates a new preference set in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreatePreferenceSetRequest request =
       CreatePreferenceSetRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPreferenceSetId("preferenceSetId-569419518")
           .setPreferenceSet(PreferenceSet.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<PreferenceSet, OperationMetadata> future =
       migrationCenterClient.createPreferenceSetOperationCallable().futureCall(request);
   // Do something.
   PreferenceSet response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreatePreferenceSetRequest,PreferenceSet,OperationMetadata>

createReportAsync(CreateReportRequest request)

public final OperationFuture<Report,OperationMetadata> createReportAsync(CreateReportRequest request)

Creates a report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateReportRequest request =
       CreateReportRequest.newBuilder()
           .setParent(
               ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setReportId("reportId-427040401")
           .setReport(Report.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Report response = migrationCenterClient.createReportAsync(request).get();
 }
 
Parameter
Name Description
request CreateReportRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Report,OperationMetadata>

createReportAsync(ReportConfigName parent, Report report, String reportId)

public final OperationFuture<Report,OperationMetadata> createReportAsync(ReportConfigName parent, Report report, String reportId)

Creates a report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportConfigName parent = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
   Report report = Report.newBuilder().build();
   String reportId = "reportId-427040401";
   Report response = migrationCenterClient.createReportAsync(parent, report, reportId).get();
 }
 
Parameters
Name Description
parent ReportConfigName

Required. Value for parent.

report Report

Required. The report resource being created.

reportId String

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<Report,OperationMetadata>

createReportAsync(String parent, Report report, String reportId)

public final OperationFuture<Report,OperationMetadata> createReportAsync(String parent, Report report, String reportId)

Creates a report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString();
   Report report = Report.newBuilder().build();
   String reportId = "reportId-427040401";
   Report response = migrationCenterClient.createReportAsync(parent, report, reportId).get();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

report Report

Required. The report resource being created.

reportId String

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<Report,OperationMetadata>

createReportCallable()

public final UnaryCallable<CreateReportRequest,Operation> createReportCallable()

Creates a report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateReportRequest request =
       CreateReportRequest.newBuilder()
           .setParent(
               ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setReportId("reportId-427040401")
           .setReport(Report.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.createReportCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateReportRequest,Operation>

createReportConfigAsync(CreateReportConfigRequest request)

public final OperationFuture<ReportConfig,OperationMetadata> createReportConfigAsync(CreateReportConfigRequest request)

Creates a report configuration.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateReportConfigRequest request =
       CreateReportConfigRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setReportConfigId("reportConfigId1951664465")
           .setReportConfig(ReportConfig.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ReportConfig response = migrationCenterClient.createReportConfigAsync(request).get();
 }
 
Parameter
Name Description
request CreateReportConfigRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<ReportConfig,OperationMetadata>

createReportConfigAsync(LocationName parent, ReportConfig reportConfig, String reportConfigId)

public final OperationFuture<ReportConfig,OperationMetadata> createReportConfigAsync(LocationName parent, ReportConfig reportConfig, String reportConfigId)

Creates a report configuration.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   ReportConfig reportConfig = ReportConfig.newBuilder().build();
   String reportConfigId = "reportConfigId1951664465";
   ReportConfig response =
       migrationCenterClient.createReportConfigAsync(parent, reportConfig, reportConfigId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

reportConfig ReportConfig

Required. The report config set resource being created.

reportConfigId String

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<ReportConfig,OperationMetadata>

createReportConfigAsync(String parent, ReportConfig reportConfig, String reportConfigId)

public final OperationFuture<ReportConfig,OperationMetadata> createReportConfigAsync(String parent, ReportConfig reportConfig, String reportConfigId)

Creates a report configuration.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   ReportConfig reportConfig = ReportConfig.newBuilder().build();
   String reportConfigId = "reportConfigId1951664465";
   ReportConfig response =
       migrationCenterClient.createReportConfigAsync(parent, reportConfig, reportConfigId).get();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

reportConfig ReportConfig

Required. The report config set resource being created.

reportConfigId String

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<ReportConfig,OperationMetadata>

createReportConfigCallable()

public final UnaryCallable<CreateReportConfigRequest,Operation> createReportConfigCallable()

Creates a report configuration.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateReportConfigRequest request =
       CreateReportConfigRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setReportConfigId("reportConfigId1951664465")
           .setReportConfig(ReportConfig.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.createReportConfigCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateReportConfigRequest,Operation>

createReportConfigOperationCallable()

public final OperationCallable<CreateReportConfigRequest,ReportConfig,OperationMetadata> createReportConfigOperationCallable()

Creates a report configuration.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateReportConfigRequest request =
       CreateReportConfigRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setReportConfigId("reportConfigId1951664465")
           .setReportConfig(ReportConfig.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<ReportConfig, OperationMetadata> future =
       migrationCenterClient.createReportConfigOperationCallable().futureCall(request);
   // Do something.
   ReportConfig response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateReportConfigRequest,ReportConfig,OperationMetadata>

createReportOperationCallable()

public final OperationCallable<CreateReportRequest,Report,OperationMetadata> createReportOperationCallable()

Creates a report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateReportRequest request =
       CreateReportRequest.newBuilder()
           .setParent(
               ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setReportId("reportId-427040401")
           .setReport(Report.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Report, OperationMetadata> future =
       migrationCenterClient.createReportOperationCallable().futureCall(request);
   // Do something.
   Report response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateReportRequest,Report,OperationMetadata>

createSourceAsync(CreateSourceRequest request)

public final OperationFuture<Source,OperationMetadata> createSourceAsync(CreateSourceRequest request)

Creates a new source in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateSourceRequest request =
       CreateSourceRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSourceId("sourceId1746327190")
           .setSource(Source.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Source response = migrationCenterClient.createSourceAsync(request).get();
 }
 
Parameter
Name Description
request CreateSourceRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Source,OperationMetadata>

createSourceAsync(LocationName parent, Source source, String sourceId)

public final OperationFuture<Source,OperationMetadata> createSourceAsync(LocationName parent, Source source, String sourceId)

Creates a new source in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Source source = Source.newBuilder().build();
   String sourceId = "sourceId1746327190";
   Source response = migrationCenterClient.createSourceAsync(parent, source, sourceId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

source Source

Required. The resource being created.

sourceId String

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<Source,OperationMetadata>

createSourceAsync(String parent, Source source, String sourceId)

public final OperationFuture<Source,OperationMetadata> createSourceAsync(String parent, Source source, String sourceId)

Creates a new source in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Source source = Source.newBuilder().build();
   String sourceId = "sourceId1746327190";
   Source response = migrationCenterClient.createSourceAsync(parent, source, sourceId).get();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

source Source

Required. The resource being created.

sourceId String

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

Returns
Type Description
OperationFuture<Source,OperationMetadata>

createSourceCallable()

public final UnaryCallable<CreateSourceRequest,Operation> createSourceCallable()

Creates a new source in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateSourceRequest request =
       CreateSourceRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSourceId("sourceId1746327190")
           .setSource(Source.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.createSourceCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateSourceRequest,Operation>

createSourceOperationCallable()

public final OperationCallable<CreateSourceRequest,Source,OperationMetadata> createSourceOperationCallable()

Creates a new source in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   CreateSourceRequest request =
       CreateSourceRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSourceId("sourceId1746327190")
           .setSource(Source.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Source, OperationMetadata> future =
       migrationCenterClient.createSourceOperationCallable().futureCall(request);
   // Do something.
   Source response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateSourceRequest,Source,OperationMetadata>

deleteAsset(AssetName name)

public final void deleteAsset(AssetName name)

Deletes an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AssetName name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]");
   migrationCenterClient.deleteAsset(name);
 }
 
Parameter
Name Description
name AssetName

Required. Name of the resource.

deleteAsset(DeleteAssetRequest request)

public final void deleteAsset(DeleteAssetRequest request)

Deletes an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteAssetRequest request =
       DeleteAssetRequest.newBuilder()
           .setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.deleteAsset(request);
 }
 
Parameter
Name Description
request DeleteAssetRequest

The request object containing all of the parameters for the API call.

deleteAsset(String name)

public final void deleteAsset(String name)

Deletes an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString();
   migrationCenterClient.deleteAsset(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

deleteAssetCallable()

public final UnaryCallable<DeleteAssetRequest,Empty> deleteAssetCallable()

Deletes an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteAssetRequest request =
       DeleteAssetRequest.newBuilder()
           .setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Empty> future = migrationCenterClient.deleteAssetCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteAssetRequest,Empty>

deleteGroupAsync(DeleteGroupRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteGroupAsync(DeleteGroupRequest request)

Deletes a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteGroupRequest request =
       DeleteGroupRequest.newBuilder()
           .setName(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.deleteGroupAsync(request).get();
 }
 
Parameter
Name Description
request DeleteGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteGroupAsync(GroupName name)

public final OperationFuture<Empty,OperationMetadata> deleteGroupAsync(GroupName name)

Deletes a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GroupName name = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]");
   migrationCenterClient.deleteGroupAsync(name).get();
 }
 
Parameter
Name Description
name GroupName

Required. Name of the group resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteGroupAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteGroupAsync(String name)

Deletes a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString();
   migrationCenterClient.deleteGroupAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. Name of the group resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteGroupCallable()

public final UnaryCallable<DeleteGroupRequest,Operation> deleteGroupCallable()

Deletes a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteGroupRequest request =
       DeleteGroupRequest.newBuilder()
           .setName(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future = migrationCenterClient.deleteGroupCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteGroupRequest,Operation>

deleteGroupOperationCallable()

public final OperationCallable<DeleteGroupRequest,Empty,OperationMetadata> deleteGroupOperationCallable()

Deletes a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteGroupRequest request =
       DeleteGroupRequest.newBuilder()
           .setName(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.deleteGroupOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteGroupRequest,Empty,OperationMetadata>

deleteImportDataFileAsync(DeleteImportDataFileRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteImportDataFileAsync(DeleteImportDataFileRequest request)

Delete an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteImportDataFileRequest request =
       DeleteImportDataFileRequest.newBuilder()
           .setName(
               ImportDataFileName.of(
                       "[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.deleteImportDataFileAsync(request).get();
 }
 
Parameter
Name Description
request DeleteImportDataFileRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteImportDataFileAsync(ImportDataFileName name)

public final OperationFuture<Empty,OperationMetadata> deleteImportDataFileAsync(ImportDataFileName name)

Delete an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportDataFileName name =
       ImportDataFileName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
   migrationCenterClient.deleteImportDataFileAsync(name).get();
 }
 
Parameter
Name Description
name ImportDataFileName

Required. Name of the ImportDataFile to delete.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteImportDataFileAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteImportDataFileAsync(String name)

Delete an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name =
       ImportDataFileName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]")
           .toString();
   migrationCenterClient.deleteImportDataFileAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. Name of the ImportDataFile to delete.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteImportDataFileCallable()

public final UnaryCallable<DeleteImportDataFileRequest,Operation> deleteImportDataFileCallable()

Delete an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteImportDataFileRequest request =
       DeleteImportDataFileRequest.newBuilder()
           .setName(
               ImportDataFileName.of(
                       "[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.deleteImportDataFileCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteImportDataFileRequest,Operation>

deleteImportDataFileOperationCallable()

public final OperationCallable<DeleteImportDataFileRequest,Empty,OperationMetadata> deleteImportDataFileOperationCallable()

Delete an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteImportDataFileRequest request =
       DeleteImportDataFileRequest.newBuilder()
           .setName(
               ImportDataFileName.of(
                       "[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.deleteImportDataFileOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteImportDataFileRequest,Empty,OperationMetadata>

deleteImportJobAsync(DeleteImportJobRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteImportJobAsync(DeleteImportJobRequest request)

Deletes an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteImportJobRequest request =
       DeleteImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   migrationCenterClient.deleteImportJobAsync(request).get();
 }
 
Parameter
Name Description
request DeleteImportJobRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteImportJobAsync(ImportJobName name)

public final OperationFuture<Empty,OperationMetadata> deleteImportJobAsync(ImportJobName name)

Deletes an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportJobName name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
   migrationCenterClient.deleteImportJobAsync(name).get();
 }
 
Parameter
Name Description
name ImportJobName

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteImportJobAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteImportJobAsync(String name)

Deletes an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString();
   migrationCenterClient.deleteImportJobAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteImportJobCallable()

public final UnaryCallable<DeleteImportJobRequest,Operation> deleteImportJobCallable()

Deletes an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteImportJobRequest request =
       DeleteImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.deleteImportJobCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteImportJobRequest,Operation>

deleteImportJobOperationCallable()

public final OperationCallable<DeleteImportJobRequest,Empty,OperationMetadata> deleteImportJobOperationCallable()

Deletes an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteImportJobRequest request =
       DeleteImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.deleteImportJobOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteImportJobRequest,Empty,OperationMetadata>

deletePreferenceSetAsync(DeletePreferenceSetRequest request)

public final OperationFuture<Empty,OperationMetadata> deletePreferenceSetAsync(DeletePreferenceSetRequest request)

Deletes a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeletePreferenceSetRequest request =
       DeletePreferenceSetRequest.newBuilder()
           .setName(
               PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]").toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.deletePreferenceSetAsync(request).get();
 }
 
Parameter
Name Description
request DeletePreferenceSetRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deletePreferenceSetAsync(PreferenceSetName name)

public final OperationFuture<Empty,OperationMetadata> deletePreferenceSetAsync(PreferenceSetName name)

Deletes a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   PreferenceSetName name = PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
   migrationCenterClient.deletePreferenceSetAsync(name).get();
 }
 
Parameter
Name Description
name PreferenceSetName

Required. Name of the group resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deletePreferenceSetAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deletePreferenceSetAsync(String name)

Deletes a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]").toString();
   migrationCenterClient.deletePreferenceSetAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. Name of the group resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deletePreferenceSetCallable()

public final UnaryCallable<DeletePreferenceSetRequest,Operation> deletePreferenceSetCallable()

Deletes a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeletePreferenceSetRequest request =
       DeletePreferenceSetRequest.newBuilder()
           .setName(
               PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.deletePreferenceSetCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeletePreferenceSetRequest,Operation>

deletePreferenceSetOperationCallable()

public final OperationCallable<DeletePreferenceSetRequest,Empty,OperationMetadata> deletePreferenceSetOperationCallable()

Deletes a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeletePreferenceSetRequest request =
       DeletePreferenceSetRequest.newBuilder()
           .setName(
               PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.deletePreferenceSetOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeletePreferenceSetRequest,Empty,OperationMetadata>

deleteReportAsync(DeleteReportRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteReportAsync(DeleteReportRequest request)

Deletes a Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteReportRequest request =
       DeleteReportRequest.newBuilder()
           .setName(
               ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.deleteReportAsync(request).get();
 }
 
Parameter
Name Description
request DeleteReportRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReportAsync(ReportName name)

public final OperationFuture<Empty,OperationMetadata> deleteReportAsync(ReportName name)

Deletes a Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportName name = ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
   migrationCenterClient.deleteReportAsync(name).get();
 }
 
Parameter
Name Description
name ReportName

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReportAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteReportAsync(String name)

Deletes a Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name =
       ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]").toString();
   migrationCenterClient.deleteReportAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReportCallable()

public final UnaryCallable<DeleteReportRequest,Operation> deleteReportCallable()

Deletes a Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteReportRequest request =
       DeleteReportRequest.newBuilder()
           .setName(
               ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.deleteReportCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteReportRequest,Operation>

deleteReportConfigAsync(DeleteReportConfigRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteReportConfigAsync(DeleteReportConfigRequest request)

Deletes a ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteReportConfigRequest request =
       DeleteReportConfigRequest.newBuilder()
           .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   migrationCenterClient.deleteReportConfigAsync(request).get();
 }
 
Parameter
Name Description
request DeleteReportConfigRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReportConfigAsync(ReportConfigName name)

public final OperationFuture<Empty,OperationMetadata> deleteReportConfigAsync(ReportConfigName name)

Deletes a ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportConfigName name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
   migrationCenterClient.deleteReportConfigAsync(name).get();
 }
 
Parameter
Name Description
name ReportConfigName

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReportConfigAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteReportConfigAsync(String name)

Deletes a ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString();
   migrationCenterClient.deleteReportConfigAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReportConfigCallable()

public final UnaryCallable<DeleteReportConfigRequest,Operation> deleteReportConfigCallable()

Deletes a ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteReportConfigRequest request =
       DeleteReportConfigRequest.newBuilder()
           .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.deleteReportConfigCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteReportConfigRequest,Operation>

deleteReportConfigOperationCallable()

public final OperationCallable<DeleteReportConfigRequest,Empty,OperationMetadata> deleteReportConfigOperationCallable()

Deletes a ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteReportConfigRequest request =
       DeleteReportConfigRequest.newBuilder()
           .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.deleteReportConfigOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteReportConfigRequest,Empty,OperationMetadata>

deleteReportOperationCallable()

public final OperationCallable<DeleteReportRequest,Empty,OperationMetadata> deleteReportOperationCallable()

Deletes a Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteReportRequest request =
       DeleteReportRequest.newBuilder()
           .setName(
               ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.deleteReportOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteReportRequest,Empty,OperationMetadata>

deleteSourceAsync(DeleteSourceRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteSourceAsync(DeleteSourceRequest request)

Deletes a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteSourceRequest request =
       DeleteSourceRequest.newBuilder()
           .setName(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.deleteSourceAsync(request).get();
 }
 
Parameter
Name Description
request DeleteSourceRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteSourceAsync(SourceName name)

public final OperationFuture<Empty,OperationMetadata> deleteSourceAsync(SourceName name)

Deletes a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   SourceName name = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
   migrationCenterClient.deleteSourceAsync(name).get();
 }
 
Parameter
Name Description
name SourceName

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteSourceAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteSourceAsync(String name)

Deletes a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString();
   migrationCenterClient.deleteSourceAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteSourceCallable()

public final UnaryCallable<DeleteSourceRequest,Operation> deleteSourceCallable()

Deletes a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteSourceRequest request =
       DeleteSourceRequest.newBuilder()
           .setName(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.deleteSourceCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteSourceRequest,Operation>

deleteSourceOperationCallable()

public final OperationCallable<DeleteSourceRequest,Empty,OperationMetadata> deleteSourceOperationCallable()

Deletes a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   DeleteSourceRequest request =
       DeleteSourceRequest.newBuilder()
           .setName(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.deleteSourceOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteSourceRequest,Empty,OperationMetadata>

getAsset(AssetName name)

public final Asset getAsset(AssetName name)

Gets the details of an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   AssetName name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]");
   Asset response = migrationCenterClient.getAsset(name);
 }
 
Parameter
Name Description
name AssetName

Required. Name of the resource.

Returns
Type Description
Asset

getAsset(GetAssetRequest request)

public final Asset getAsset(GetAssetRequest request)

Gets the details of an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetAssetRequest request =
       GetAssetRequest.newBuilder()
           .setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
           .setView(AssetView.forNumber(0))
           .build();
   Asset response = migrationCenterClient.getAsset(request);
 }
 
Parameter
Name Description
request GetAssetRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Asset

getAsset(String name)

public final Asset getAsset(String name)

Gets the details of an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString();
   Asset response = migrationCenterClient.getAsset(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Asset

getAssetCallable()

public final UnaryCallable<GetAssetRequest,Asset> getAssetCallable()

Gets the details of an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetAssetRequest request =
       GetAssetRequest.newBuilder()
           .setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
           .setView(AssetView.forNumber(0))
           .build();
   ApiFuture<Asset> future = migrationCenterClient.getAssetCallable().futureCall(request);
   // Do something.
   Asset response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetAssetRequest,Asset>

getErrorFrame(ErrorFrameName name)

public final ErrorFrame getErrorFrame(ErrorFrameName name)

Gets the details of an error frame.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ErrorFrameName name =
       ErrorFrameName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]");
   ErrorFrame response = migrationCenterClient.getErrorFrame(name);
 }
 
Parameter
Name Description
name ErrorFrameName

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

Returns
Type Description
ErrorFrame

getErrorFrame(GetErrorFrameRequest request)

public final ErrorFrame getErrorFrame(GetErrorFrameRequest request)

Gets the details of an error frame.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetErrorFrameRequest request =
       GetErrorFrameRequest.newBuilder()
           .setName(
               ErrorFrameName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]")
                   .toString())
           .setView(ErrorFrameView.forNumber(0))
           .build();
   ErrorFrame response = migrationCenterClient.getErrorFrame(request);
 }
 
Parameter
Name Description
request GetErrorFrameRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ErrorFrame

getErrorFrame(String name)

public final ErrorFrame getErrorFrame(String name)

Gets the details of an error frame.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name =
       ErrorFrameName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]").toString();
   ErrorFrame response = migrationCenterClient.getErrorFrame(name);
 }
 
Parameter
Name Description
name String

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

Returns
Type Description
ErrorFrame

getErrorFrameCallable()

public final UnaryCallable<GetErrorFrameRequest,ErrorFrame> getErrorFrameCallable()

Gets the details of an error frame.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetErrorFrameRequest request =
       GetErrorFrameRequest.newBuilder()
           .setName(
               ErrorFrameName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]")
                   .toString())
           .setView(ErrorFrameView.forNumber(0))
           .build();
   ApiFuture<ErrorFrame> future =
       migrationCenterClient.getErrorFrameCallable().futureCall(request);
   // Do something.
   ErrorFrame response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetErrorFrameRequest,ErrorFrame>

getGroup(GetGroupRequest request)

public final Group getGroup(GetGroupRequest request)

Gets the details of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetGroupRequest request =
       GetGroupRequest.newBuilder()
           .setName(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .build();
   Group response = migrationCenterClient.getGroup(request);
 }
 
Parameter
Name Description
request GetGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Group

getGroup(GroupName name)

public final Group getGroup(GroupName name)

Gets the details of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GroupName name = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]");
   Group response = migrationCenterClient.getGroup(name);
 }
 
Parameter
Name Description
name GroupName

Required. Name of the resource.

Returns
Type Description
Group

getGroup(String name)

public final Group getGroup(String name)

Gets the details of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString();
   Group response = migrationCenterClient.getGroup(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Group

getGroupCallable()

public final UnaryCallable<GetGroupRequest,Group> getGroupCallable()

Gets the details of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetGroupRequest request =
       GetGroupRequest.newBuilder()
           .setName(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .build();
   ApiFuture<Group> future = migrationCenterClient.getGroupCallable().futureCall(request);
   // Do something.
   Group response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetGroupRequest,Group>

getHttpJsonOperationsClient()

public final OperationsClient getHttpJsonOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getImportDataFile(GetImportDataFileRequest request)

public final ImportDataFile getImportDataFile(GetImportDataFileRequest request)

Gets an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetImportDataFileRequest request =
       GetImportDataFileRequest.newBuilder()
           .setName(
               ImportDataFileName.of(
                       "[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]")
                   .toString())
           .build();
   ImportDataFile response = migrationCenterClient.getImportDataFile(request);
 }
 
Parameter
Name Description
request GetImportDataFileRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ImportDataFile

getImportDataFile(ImportDataFileName name)

public final ImportDataFile getImportDataFile(ImportDataFileName name)

Gets an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportDataFileName name =
       ImportDataFileName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
   ImportDataFile response = migrationCenterClient.getImportDataFile(name);
 }
 
Parameter
Name Description
name ImportDataFileName

Required. Name of the ImportDataFile.

Returns
Type Description
ImportDataFile

getImportDataFile(String name)

public final ImportDataFile getImportDataFile(String name)

Gets an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name =
       ImportDataFileName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]")
           .toString();
   ImportDataFile response = migrationCenterClient.getImportDataFile(name);
 }
 
Parameter
Name Description
name String

Required. Name of the ImportDataFile.

Returns
Type Description
ImportDataFile

getImportDataFileCallable()

public final UnaryCallable<GetImportDataFileRequest,ImportDataFile> getImportDataFileCallable()

Gets an import data file.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetImportDataFileRequest request =
       GetImportDataFileRequest.newBuilder()
           .setName(
               ImportDataFileName.of(
                       "[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]")
                   .toString())
           .build();
   ApiFuture<ImportDataFile> future =
       migrationCenterClient.getImportDataFileCallable().futureCall(request);
   // Do something.
   ImportDataFile response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetImportDataFileRequest,ImportDataFile>

getImportJob(GetImportJobRequest request)

public final ImportJob getImportJob(GetImportJobRequest request)

Gets the details of an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetImportJobRequest request =
       GetImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setView(ImportJobView.forNumber(0))
           .build();
   ImportJob response = migrationCenterClient.getImportJob(request);
 }
 
Parameter
Name Description
request GetImportJobRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ImportJob

getImportJob(ImportJobName name)

public final ImportJob getImportJob(ImportJobName name)

Gets the details of an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportJobName name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
   ImportJob response = migrationCenterClient.getImportJob(name);
 }
 
Parameter
Name Description
name ImportJobName

Required. Name of the resource.

Returns
Type Description
ImportJob

getImportJob(String name)

public final ImportJob getImportJob(String name)

Gets the details of an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString();
   ImportJob response = migrationCenterClient.getImportJob(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
ImportJob

getImportJobCallable()

public final UnaryCallable<GetImportJobRequest,ImportJob> getImportJobCallable()

Gets the details of an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetImportJobRequest request =
       GetImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setView(ImportJobView.forNumber(0))
           .build();
   ApiFuture<ImportJob> future =
       migrationCenterClient.getImportJobCallable().futureCall(request);
   // Do something.
   ImportJob response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetImportJobRequest,ImportJob>

getLocation(GetLocationRequest request)

public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   Location response = migrationCenterClient.getLocation(request);
 }
 
Parameter
Name Description
request com.google.cloud.location.GetLocationRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
com.google.cloud.location.Location

getLocationCallable()

public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   ApiFuture<Location> future = migrationCenterClient.getLocationCallable().futureCall(request);
   // Do something.
   Location response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getOperationsClient()

public final OperationsClient getOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getPreferenceSet(GetPreferenceSetRequest request)

public final PreferenceSet getPreferenceSet(GetPreferenceSetRequest request)

Gets the details of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetPreferenceSetRequest request =
       GetPreferenceSetRequest.newBuilder()
           .setName(
               PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]").toString())
           .build();
   PreferenceSet response = migrationCenterClient.getPreferenceSet(request);
 }
 
Parameter
Name Description
request GetPreferenceSetRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
PreferenceSet

getPreferenceSet(PreferenceSetName name)

public final PreferenceSet getPreferenceSet(PreferenceSetName name)

Gets the details of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   PreferenceSetName name = PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
   PreferenceSet response = migrationCenterClient.getPreferenceSet(name);
 }
 
Parameter
Name Description
name PreferenceSetName

Required. Name of the resource.

Returns
Type Description
PreferenceSet

getPreferenceSet(String name)

public final PreferenceSet getPreferenceSet(String name)

Gets the details of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]").toString();
   PreferenceSet response = migrationCenterClient.getPreferenceSet(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
PreferenceSet

getPreferenceSetCallable()

public final UnaryCallable<GetPreferenceSetRequest,PreferenceSet> getPreferenceSetCallable()

Gets the details of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetPreferenceSetRequest request =
       GetPreferenceSetRequest.newBuilder()
           .setName(
               PreferenceSetName.of("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]").toString())
           .build();
   ApiFuture<PreferenceSet> future =
       migrationCenterClient.getPreferenceSetCallable().futureCall(request);
   // Do something.
   PreferenceSet response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetPreferenceSetRequest,PreferenceSet>

getReport(GetReportRequest request)

public final Report getReport(GetReportRequest request)

Gets details of a single Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetReportRequest request =
       GetReportRequest.newBuilder()
           .setName(
               ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]")
                   .toString())
           .setView(ReportView.forNumber(0))
           .build();
   Report response = migrationCenterClient.getReport(request);
 }
 
Parameter
Name Description
request GetReportRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Report

getReport(ReportName name)

public final Report getReport(ReportName name)

Gets details of a single Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportName name = ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
   Report response = migrationCenterClient.getReport(name);
 }
 
Parameter
Name Description
name ReportName

Required. Name of the resource.

Returns
Type Description
Report

getReport(String name)

public final Report getReport(String name)

Gets details of a single Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name =
       ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]").toString();
   Report response = migrationCenterClient.getReport(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Report

getReportCallable()

public final UnaryCallable<GetReportRequest,Report> getReportCallable()

Gets details of a single Report.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetReportRequest request =
       GetReportRequest.newBuilder()
           .setName(
               ReportName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]")
                   .toString())
           .setView(ReportView.forNumber(0))
           .build();
   ApiFuture<Report> future = migrationCenterClient.getReportCallable().futureCall(request);
   // Do something.
   Report response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetReportRequest,Report>

getReportConfig(GetReportConfigRequest request)

public final ReportConfig getReportConfig(GetReportConfigRequest request)

Gets details of a single ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetReportConfigRequest request =
       GetReportConfigRequest.newBuilder()
           .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .build();
   ReportConfig response = migrationCenterClient.getReportConfig(request);
 }
 
Parameter
Name Description
request GetReportConfigRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ReportConfig

getReportConfig(ReportConfigName name)

public final ReportConfig getReportConfig(ReportConfigName name)

Gets details of a single ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportConfigName name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
   ReportConfig response = migrationCenterClient.getReportConfig(name);
 }
 
Parameter
Name Description
name ReportConfigName

Required. Name of the resource.

Returns
Type Description
ReportConfig

getReportConfig(String name)

public final ReportConfig getReportConfig(String name)

Gets details of a single ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString();
   ReportConfig response = migrationCenterClient.getReportConfig(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
ReportConfig

getReportConfigCallable()

public final UnaryCallable<GetReportConfigRequest,ReportConfig> getReportConfigCallable()

Gets details of a single ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetReportConfigRequest request =
       GetReportConfigRequest.newBuilder()
           .setName(ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .build();
   ApiFuture<ReportConfig> future =
       migrationCenterClient.getReportConfigCallable().futureCall(request);
   // Do something.
   ReportConfig response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetReportConfigRequest,ReportConfig>

getSettings()

public final MigrationCenterSettings getSettings()
Returns
Type Description
MigrationCenterSettings

getSettings(GetSettingsRequest request)

public final Settings getSettings(GetSettingsRequest request)

Gets the details of regional settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetSettingsRequest request =
       GetSettingsRequest.newBuilder()
           .setName(SettingsName.of("[PROJECT]", "[LOCATION]").toString())
           .build();
   Settings response = migrationCenterClient.getSettings(request);
 }
 
Parameter
Name Description
request GetSettingsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Settings

getSettings(SettingsName name)

public final Settings getSettings(SettingsName name)

Gets the details of regional settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   SettingsName name = SettingsName.of("[PROJECT]", "[LOCATION]");
   Settings response = migrationCenterClient.getSettings(name);
 }
 
Parameter
Name Description
name SettingsName

Required. Name of the resource.

Returns
Type Description
Settings

getSettings(String name)

public final Settings getSettings(String name)

Gets the details of regional settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = SettingsName.of("[PROJECT]", "[LOCATION]").toString();
   Settings response = migrationCenterClient.getSettings(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Settings

getSettingsCallable()

public final UnaryCallable<GetSettingsRequest,Settings> getSettingsCallable()

Gets the details of regional settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetSettingsRequest request =
       GetSettingsRequest.newBuilder()
           .setName(SettingsName.of("[PROJECT]", "[LOCATION]").toString())
           .build();
   ApiFuture<Settings> future = migrationCenterClient.getSettingsCallable().futureCall(request);
   // Do something.
   Settings response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetSettingsRequest,Settings>

getSource(GetSourceRequest request)

public final Source getSource(GetSourceRequest request)

Gets the details of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetSourceRequest request =
       GetSourceRequest.newBuilder()
           .setName(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .build();
   Source response = migrationCenterClient.getSource(request);
 }
 
Parameter
Name Description
request GetSourceRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Source

getSource(SourceName name)

public final Source getSource(SourceName name)

Gets the details of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   SourceName name = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
   Source response = migrationCenterClient.getSource(name);
 }
 
Parameter
Name Description
name SourceName

Required. Name of the resource.

Returns
Type Description
Source

getSource(String name)

public final Source getSource(String name)

Gets the details of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString();
   Source response = migrationCenterClient.getSource(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Source

getSourceCallable()

public final UnaryCallable<GetSourceRequest,Source> getSourceCallable()

Gets the details of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GetSourceRequest request =
       GetSourceRequest.newBuilder()
           .setName(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .build();
   ApiFuture<Source> future = migrationCenterClient.getSourceCallable().futureCall(request);
   // Do something.
   Source response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetSourceRequest,Source>

getStub()

public MigrationCenterStub getStub()
Returns
Type Description
MigrationCenterStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAssets(ListAssetsRequest request)

public final MigrationCenterClient.ListAssetsPagedResponse listAssets(ListAssetsRequest request)

Lists all the assets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListAssetsRequest request =
       ListAssetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(AssetView.forNumber(0))
           .build();
   for (Asset element : migrationCenterClient.listAssets(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListAssetsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListAssetsPagedResponse

listAssets(LocationName parent)

public final MigrationCenterClient.ListAssetsPagedResponse listAssets(LocationName parent)

Lists all the assets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Asset element : migrationCenterClient.listAssets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListAssetsRequest.

Returns
Type Description
MigrationCenterClient.ListAssetsPagedResponse

listAssets(String parent)

public final MigrationCenterClient.ListAssetsPagedResponse listAssets(String parent)

Lists all the assets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Asset element : migrationCenterClient.listAssets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListAssetsRequest.

Returns
Type Description
MigrationCenterClient.ListAssetsPagedResponse

listAssetsCallable()

public final UnaryCallable<ListAssetsRequest,ListAssetsResponse> listAssetsCallable()

Lists all the assets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListAssetsRequest request =
       ListAssetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(AssetView.forNumber(0))
           .build();
   while (true) {
     ListAssetsResponse response = migrationCenterClient.listAssetsCallable().call(request);
     for (Asset element : response.getAssetsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListAssetsRequest,ListAssetsResponse>

listAssetsPagedCallable()

public final UnaryCallable<ListAssetsRequest,MigrationCenterClient.ListAssetsPagedResponse> listAssetsPagedCallable()

Lists all the assets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListAssetsRequest request =
       ListAssetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(AssetView.forNumber(0))
           .build();
   ApiFuture<Asset> future = migrationCenterClient.listAssetsPagedCallable().futureCall(request);
   // Do something.
   for (Asset element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListAssetsRequest,ListAssetsPagedResponse>

listErrorFrames(ListErrorFramesRequest request)

public final MigrationCenterClient.ListErrorFramesPagedResponse listErrorFrames(ListErrorFramesRequest request)

Lists all error frames in a given source and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListErrorFramesRequest request =
       ListErrorFramesRequest.newBuilder()
           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setView(ErrorFrameView.forNumber(0))
           .build();
   for (ErrorFrame element : migrationCenterClient.listErrorFrames(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListErrorFramesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListErrorFramesPagedResponse

listErrorFrames(SourceName parent)

public final MigrationCenterClient.ListErrorFramesPagedResponse listErrorFrames(SourceName parent)

Lists all error frames in a given source and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
   for (ErrorFrame element : migrationCenterClient.listErrorFrames(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent SourceName

Required. Parent value (the source) for ListErrorFramesRequest.

Returns
Type Description
MigrationCenterClient.ListErrorFramesPagedResponse

listErrorFrames(String parent)

public final MigrationCenterClient.ListErrorFramesPagedResponse listErrorFrames(String parent)

Lists all error frames in a given source and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString();
   for (ErrorFrame element : migrationCenterClient.listErrorFrames(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value (the source) for ListErrorFramesRequest.

Returns
Type Description
MigrationCenterClient.ListErrorFramesPagedResponse

listErrorFramesCallable()

public final UnaryCallable<ListErrorFramesRequest,ListErrorFramesResponse> listErrorFramesCallable()

Lists all error frames in a given source and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListErrorFramesRequest request =
       ListErrorFramesRequest.newBuilder()
           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setView(ErrorFrameView.forNumber(0))
           .build();
   while (true) {
     ListErrorFramesResponse response =
         migrationCenterClient.listErrorFramesCallable().call(request);
     for (ErrorFrame element : response.getErrorFramesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListErrorFramesRequest,ListErrorFramesResponse>

listErrorFramesPagedCallable()

public final UnaryCallable<ListErrorFramesRequest,MigrationCenterClient.ListErrorFramesPagedResponse> listErrorFramesPagedCallable()

Lists all error frames in a given source and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListErrorFramesRequest request =
       ListErrorFramesRequest.newBuilder()
           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setView(ErrorFrameView.forNumber(0))
           .build();
   ApiFuture<ErrorFrame> future =
       migrationCenterClient.listErrorFramesPagedCallable().futureCall(request);
   // Do something.
   for (ErrorFrame element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListErrorFramesRequest,ListErrorFramesPagedResponse>

listGroups(ListGroupsRequest request)

public final MigrationCenterClient.ListGroupsPagedResponse listGroups(ListGroupsRequest request)

Lists all groups in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListGroupsRequest request =
       ListGroupsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Group element : migrationCenterClient.listGroups(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListGroupsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListGroupsPagedResponse

listGroups(LocationName parent)

public final MigrationCenterClient.ListGroupsPagedResponse listGroups(LocationName parent)

Lists all groups in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Group element : migrationCenterClient.listGroups(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListGroupsRequest.

Returns
Type Description
MigrationCenterClient.ListGroupsPagedResponse

listGroups(String parent)

public final MigrationCenterClient.ListGroupsPagedResponse listGroups(String parent)

Lists all groups in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Group element : migrationCenterClient.listGroups(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListGroupsRequest.

Returns
Type Description
MigrationCenterClient.ListGroupsPagedResponse

listGroupsCallable()

public final UnaryCallable<ListGroupsRequest,ListGroupsResponse> listGroupsCallable()

Lists all groups in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListGroupsRequest request =
       ListGroupsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListGroupsResponse response = migrationCenterClient.listGroupsCallable().call(request);
     for (Group element : response.getGroupsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListGroupsRequest,ListGroupsResponse>

listGroupsPagedCallable()

public final UnaryCallable<ListGroupsRequest,MigrationCenterClient.ListGroupsPagedResponse> listGroupsPagedCallable()

Lists all groups in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListGroupsRequest request =
       ListGroupsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Group> future = migrationCenterClient.listGroupsPagedCallable().futureCall(request);
   // Do something.
   for (Group element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListGroupsRequest,ListGroupsPagedResponse>

listImportDataFiles(ImportJobName parent)

public final MigrationCenterClient.ListImportDataFilesPagedResponse listImportDataFiles(ImportJobName parent)

List import data files.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportJobName parent = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
   for (ImportDataFile element :
       migrationCenterClient.listImportDataFiles(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent ImportJobName

Required. Name of the parent of the ImportDataFiles resource.

Returns
Type Description
MigrationCenterClient.ListImportDataFilesPagedResponse

listImportDataFiles(ListImportDataFilesRequest request)

public final MigrationCenterClient.ListImportDataFilesPagedResponse listImportDataFiles(ListImportDataFilesRequest request)

List import data files.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListImportDataFilesRequest request =
       ListImportDataFilesRequest.newBuilder()
           .setParent(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (ImportDataFile element :
       migrationCenterClient.listImportDataFiles(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListImportDataFilesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListImportDataFilesPagedResponse

listImportDataFiles(String parent)

public final MigrationCenterClient.ListImportDataFilesPagedResponse listImportDataFiles(String parent)

List import data files.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString();
   for (ImportDataFile element :
       migrationCenterClient.listImportDataFiles(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Name of the parent of the ImportDataFiles resource.

Returns
Type Description
MigrationCenterClient.ListImportDataFilesPagedResponse

listImportDataFilesCallable()

public final UnaryCallable<ListImportDataFilesRequest,ListImportDataFilesResponse> listImportDataFilesCallable()

List import data files.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListImportDataFilesRequest request =
       ListImportDataFilesRequest.newBuilder()
           .setParent(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListImportDataFilesResponse response =
         migrationCenterClient.listImportDataFilesCallable().call(request);
     for (ImportDataFile element : response.getImportDataFilesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListImportDataFilesRequest,ListImportDataFilesResponse>

listImportDataFilesPagedCallable()

public final UnaryCallable<ListImportDataFilesRequest,MigrationCenterClient.ListImportDataFilesPagedResponse> listImportDataFilesPagedCallable()

List import data files.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListImportDataFilesRequest request =
       ListImportDataFilesRequest.newBuilder()
           .setParent(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<ImportDataFile> future =
       migrationCenterClient.listImportDataFilesPagedCallable().futureCall(request);
   // Do something.
   for (ImportDataFile element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListImportDataFilesRequest,ListImportDataFilesPagedResponse>

listImportJobs(ListImportJobsRequest request)

public final MigrationCenterClient.ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest request)

Lists all import jobs.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListImportJobsRequest request =
       ListImportJobsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(ImportJobView.forNumber(0))
           .build();
   for (ImportJob element : migrationCenterClient.listImportJobs(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListImportJobsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListImportJobsPagedResponse

listImportJobs(LocationName parent)

public final MigrationCenterClient.ListImportJobsPagedResponse listImportJobs(LocationName parent)

Lists all import jobs.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (ImportJob element : migrationCenterClient.listImportJobs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListImportJobsRequest.

Returns
Type Description
MigrationCenterClient.ListImportJobsPagedResponse

listImportJobs(String parent)

public final MigrationCenterClient.ListImportJobsPagedResponse listImportJobs(String parent)

Lists all import jobs.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (ImportJob element : migrationCenterClient.listImportJobs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListImportJobsRequest.

Returns
Type Description
MigrationCenterClient.ListImportJobsPagedResponse

listImportJobsCallable()

public final UnaryCallable<ListImportJobsRequest,ListImportJobsResponse> listImportJobsCallable()

Lists all import jobs.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListImportJobsRequest request =
       ListImportJobsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(ImportJobView.forNumber(0))
           .build();
   while (true) {
     ListImportJobsResponse response =
         migrationCenterClient.listImportJobsCallable().call(request);
     for (ImportJob element : response.getImportJobsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListImportJobsRequest,ListImportJobsResponse>

listImportJobsPagedCallable()

public final UnaryCallable<ListImportJobsRequest,MigrationCenterClient.ListImportJobsPagedResponse> listImportJobsPagedCallable()

Lists all import jobs.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListImportJobsRequest request =
       ListImportJobsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(ImportJobView.forNumber(0))
           .build();
   ApiFuture<ImportJob> future =
       migrationCenterClient.listImportJobsPagedCallable().futureCall(request);
   // Do something.
   for (ImportJob element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListImportJobsRequest,ListImportJobsPagedResponse>

listLocations(ListLocationsRequest request)

public final MigrationCenterClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Location element : migrationCenterClient.listLocations(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request com.google.cloud.location.ListLocationsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListLocationsResponse response =
         migrationCenterClient.listLocationsCallable().call(request);
     for (Location element : response.getLocationsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public final UnaryCallable<ListLocationsRequest,MigrationCenterClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Location> future =
       migrationCenterClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

listPreferenceSets(ListPreferenceSetsRequest request)

public final MigrationCenterClient.ListPreferenceSetsPagedResponse listPreferenceSets(ListPreferenceSetsRequest request)

Lists all the preference sets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListPreferenceSetsRequest request =
       ListPreferenceSetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (PreferenceSet element : migrationCenterClient.listPreferenceSets(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListPreferenceSetsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListPreferenceSetsPagedResponse

listPreferenceSets(LocationName parent)

public final MigrationCenterClient.ListPreferenceSetsPagedResponse listPreferenceSets(LocationName parent)

Lists all the preference sets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (PreferenceSet element : migrationCenterClient.listPreferenceSets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListPreferenceSetsRequest.

Returns
Type Description
MigrationCenterClient.ListPreferenceSetsPagedResponse

listPreferenceSets(String parent)

public final MigrationCenterClient.ListPreferenceSetsPagedResponse listPreferenceSets(String parent)

Lists all the preference sets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (PreferenceSet element : migrationCenterClient.listPreferenceSets(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListPreferenceSetsRequest.

Returns
Type Description
MigrationCenterClient.ListPreferenceSetsPagedResponse

listPreferenceSetsCallable()

public final UnaryCallable<ListPreferenceSetsRequest,ListPreferenceSetsResponse> listPreferenceSetsCallable()

Lists all the preference sets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListPreferenceSetsRequest request =
       ListPreferenceSetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListPreferenceSetsResponse response =
         migrationCenterClient.listPreferenceSetsCallable().call(request);
     for (PreferenceSet element : response.getPreferenceSetsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListPreferenceSetsRequest,ListPreferenceSetsResponse>

listPreferenceSetsPagedCallable()

public final UnaryCallable<ListPreferenceSetsRequest,MigrationCenterClient.ListPreferenceSetsPagedResponse> listPreferenceSetsPagedCallable()

Lists all the preference sets in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListPreferenceSetsRequest request =
       ListPreferenceSetsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<PreferenceSet> future =
       migrationCenterClient.listPreferenceSetsPagedCallable().futureCall(request);
   // Do something.
   for (PreferenceSet element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListPreferenceSetsRequest,ListPreferenceSetsPagedResponse>

listReportConfigs(ListReportConfigsRequest request)

public final MigrationCenterClient.ListReportConfigsPagedResponse listReportConfigs(ListReportConfigsRequest request)

Lists ReportConfigs in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListReportConfigsRequest request =
       ListReportConfigsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (ReportConfig element : migrationCenterClient.listReportConfigs(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListReportConfigsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListReportConfigsPagedResponse

listReportConfigs(LocationName parent)

public final MigrationCenterClient.ListReportConfigsPagedResponse listReportConfigs(LocationName parent)

Lists ReportConfigs in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (ReportConfig element : migrationCenterClient.listReportConfigs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListReportConfigsRequest.

Returns
Type Description
MigrationCenterClient.ListReportConfigsPagedResponse

listReportConfigs(String parent)

public final MigrationCenterClient.ListReportConfigsPagedResponse listReportConfigs(String parent)

Lists ReportConfigs in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (ReportConfig element : migrationCenterClient.listReportConfigs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListReportConfigsRequest.

Returns
Type Description
MigrationCenterClient.ListReportConfigsPagedResponse

listReportConfigsCallable()

public final UnaryCallable<ListReportConfigsRequest,ListReportConfigsResponse> listReportConfigsCallable()

Lists ReportConfigs in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListReportConfigsRequest request =
       ListReportConfigsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListReportConfigsResponse response =
         migrationCenterClient.listReportConfigsCallable().call(request);
     for (ReportConfig element : response.getReportConfigsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListReportConfigsRequest,ListReportConfigsResponse>

listReportConfigsPagedCallable()

public final UnaryCallable<ListReportConfigsRequest,MigrationCenterClient.ListReportConfigsPagedResponse> listReportConfigsPagedCallable()

Lists ReportConfigs in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListReportConfigsRequest request =
       ListReportConfigsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<ReportConfig> future =
       migrationCenterClient.listReportConfigsPagedCallable().futureCall(request);
   // Do something.
   for (ReportConfig element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListReportConfigsRequest,ListReportConfigsPagedResponse>

listReports(ListReportsRequest request)

public final MigrationCenterClient.ListReportsPagedResponse listReports(ListReportsRequest request)

Lists Reports in a given ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListReportsRequest request =
       ListReportsRequest.newBuilder()
           .setParent(
               ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(ReportView.forNumber(0))
           .build();
   for (Report element : migrationCenterClient.listReports(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListReportsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListReportsPagedResponse

listReports(ReportConfigName parent)

public final MigrationCenterClient.ListReportsPagedResponse listReports(ReportConfigName parent)

Lists Reports in a given ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportConfigName parent = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
   for (Report element : migrationCenterClient.listReports(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent ReportConfigName

Required. Parent value for ListReportsRequest.

Returns
Type Description
MigrationCenterClient.ListReportsPagedResponse

listReports(String parent)

public final MigrationCenterClient.ListReportsPagedResponse listReports(String parent)

Lists Reports in a given ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString();
   for (Report element : migrationCenterClient.listReports(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListReportsRequest.

Returns
Type Description
MigrationCenterClient.ListReportsPagedResponse

listReportsCallable()

public final UnaryCallable<ListReportsRequest,ListReportsResponse> listReportsCallable()

Lists Reports in a given ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListReportsRequest request =
       ListReportsRequest.newBuilder()
           .setParent(
               ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(ReportView.forNumber(0))
           .build();
   while (true) {
     ListReportsResponse response = migrationCenterClient.listReportsCallable().call(request);
     for (Report element : response.getReportsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListReportsRequest,ListReportsResponse>

listReportsPagedCallable()

public final UnaryCallable<ListReportsRequest,MigrationCenterClient.ListReportsPagedResponse> listReportsPagedCallable()

Lists Reports in a given ReportConfig.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListReportsRequest request =
       ListReportsRequest.newBuilder()
           .setParent(
               ReportConfigName.of("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .setView(ReportView.forNumber(0))
           .build();
   ApiFuture<Report> future =
       migrationCenterClient.listReportsPagedCallable().futureCall(request);
   // Do something.
   for (Report element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListReportsRequest,ListReportsPagedResponse>

listSources(ListSourcesRequest request)

public final MigrationCenterClient.ListSourcesPagedResponse listSources(ListSourcesRequest request)

Lists all the sources in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListSourcesRequest request =
       ListSourcesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Source element : migrationCenterClient.listSources(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListSourcesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
MigrationCenterClient.ListSourcesPagedResponse

listSources(LocationName parent)

public final MigrationCenterClient.ListSourcesPagedResponse listSources(LocationName parent)

Lists all the sources in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Source element : migrationCenterClient.listSources(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListSourcesRequest.

Returns
Type Description
MigrationCenterClient.ListSourcesPagedResponse

listSources(String parent)

public final MigrationCenterClient.ListSourcesPagedResponse listSources(String parent)

Lists all the sources in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Source element : migrationCenterClient.listSources(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListSourcesRequest.

Returns
Type Description
MigrationCenterClient.ListSourcesPagedResponse

listSourcesCallable()

public final UnaryCallable<ListSourcesRequest,ListSourcesResponse> listSourcesCallable()

Lists all the sources in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListSourcesRequest request =
       ListSourcesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListSourcesResponse response = migrationCenterClient.listSourcesCallable().call(request);
     for (Source element : response.getSourcesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListSourcesRequest,ListSourcesResponse>

listSourcesPagedCallable()

public final UnaryCallable<ListSourcesRequest,MigrationCenterClient.ListSourcesPagedResponse> listSourcesPagedCallable()

Lists all the sources in a given project and location.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ListSourcesRequest request =
       ListSourcesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Source> future =
       migrationCenterClient.listSourcesPagedCallable().futureCall(request);
   // Do something.
   for (Source element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListSourcesRequest,ListSourcesPagedResponse>

removeAssetsFromGroupAsync(GroupName group)

public final OperationFuture<Group,OperationMetadata> removeAssetsFromGroupAsync(GroupName group)

Removes assets from a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   GroupName group = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]");
   Group response = migrationCenterClient.removeAssetsFromGroupAsync(group).get();
 }
 
Parameter
Name Description
group GroupName

Required. Group reference.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

removeAssetsFromGroupAsync(RemoveAssetsFromGroupRequest request)

public final OperationFuture<Group,OperationMetadata> removeAssetsFromGroupAsync(RemoveAssetsFromGroupRequest request)

Removes assets from a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   RemoveAssetsFromGroupRequest request =
       RemoveAssetsFromGroupRequest.newBuilder()
           .setGroup(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .setAssets(AssetList.newBuilder().build())
           .setAllowMissing(true)
           .build();
   Group response = migrationCenterClient.removeAssetsFromGroupAsync(request).get();
 }
 
Parameter
Name Description
request RemoveAssetsFromGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

removeAssetsFromGroupAsync(String group)

public final OperationFuture<Group,OperationMetadata> removeAssetsFromGroupAsync(String group)

Removes assets from a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String group = GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString();
   Group response = migrationCenterClient.removeAssetsFromGroupAsync(group).get();
 }
 
Parameter
Name Description
group String

Required. Group reference.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

removeAssetsFromGroupCallable()

public final UnaryCallable<RemoveAssetsFromGroupRequest,Operation> removeAssetsFromGroupCallable()

Removes assets from a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   RemoveAssetsFromGroupRequest request =
       RemoveAssetsFromGroupRequest.newBuilder()
           .setGroup(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .setAssets(AssetList.newBuilder().build())
           .setAllowMissing(true)
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.removeAssetsFromGroupCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<RemoveAssetsFromGroupRequest,Operation>

removeAssetsFromGroupOperationCallable()

public final OperationCallable<RemoveAssetsFromGroupRequest,Group,OperationMetadata> removeAssetsFromGroupOperationCallable()

Removes assets from a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   RemoveAssetsFromGroupRequest request =
       RemoveAssetsFromGroupRequest.newBuilder()
           .setGroup(GroupName.of("[PROJECT]", "[LOCATION]", "[GROUP]").toString())
           .setRequestId("requestId693933066")
           .setAssets(AssetList.newBuilder().build())
           .setAllowMissing(true)
           .build();
   OperationFuture<Group, OperationMetadata> future =
       migrationCenterClient.removeAssetsFromGroupOperationCallable().futureCall(request);
   // Do something.
   Group response = future.get();
 }
 
Returns
Type Description
OperationCallable<RemoveAssetsFromGroupRequest,Group,OperationMetadata>

reportAssetFrames(ReportAssetFramesRequest request)

public final ReportAssetFramesResponse reportAssetFrames(ReportAssetFramesRequest request)

Reports a set of frames.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportAssetFramesRequest request =
       ReportAssetFramesRequest.newBuilder()
           .setParent("parent-995424086")
           .setFrames(Frames.newBuilder().build())
           .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .build();
   ReportAssetFramesResponse response = migrationCenterClient.reportAssetFrames(request);
 }
 
Parameter
Name Description
request ReportAssetFramesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ReportAssetFramesResponse

reportAssetFramesCallable()

public final UnaryCallable<ReportAssetFramesRequest,ReportAssetFramesResponse> reportAssetFramesCallable()

Reports a set of frames.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ReportAssetFramesRequest request =
       ReportAssetFramesRequest.newBuilder()
           .setParent("parent-995424086")
           .setFrames(Frames.newBuilder().build())
           .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
           .build();
   ApiFuture<ReportAssetFramesResponse> future =
       migrationCenterClient.reportAssetFramesCallable().futureCall(request);
   // Do something.
   ReportAssetFramesResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ReportAssetFramesRequest,ReportAssetFramesResponse>

runImportJobAsync(ImportJobName name)

public final OperationFuture<Empty,OperationMetadata> runImportJobAsync(ImportJobName name)

Runs an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportJobName name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
   migrationCenterClient.runImportJobAsync(name).get();
 }
 
Parameter
Name Description
name ImportJobName

Required. The name of the import job to run.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

runImportJobAsync(RunImportJobRequest request)

public final OperationFuture<Empty,OperationMetadata> runImportJobAsync(RunImportJobRequest request)

Runs an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   RunImportJobRequest request =
       RunImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.runImportJobAsync(request).get();
 }
 
Parameter
Name Description
request RunImportJobRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

runImportJobAsync(String name)

public final OperationFuture<Empty,OperationMetadata> runImportJobAsync(String name)

Runs an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString();
   migrationCenterClient.runImportJobAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the import job to run.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

runImportJobCallable()

public final UnaryCallable<RunImportJobRequest,Operation> runImportJobCallable()

Runs an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   RunImportJobRequest request =
       RunImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.runImportJobCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<RunImportJobRequest,Operation>

runImportJobOperationCallable()

public final OperationCallable<RunImportJobRequest,Empty,OperationMetadata> runImportJobOperationCallable()

Runs an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   RunImportJobRequest request =
       RunImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.runImportJobOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<RunImportJobRequest,Empty,OperationMetadata>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAsset(Asset asset, FieldMask updateMask)

public final Asset updateAsset(Asset asset, FieldMask updateMask)

Updates the parameters of an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   Asset asset = Asset.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Asset response = migrationCenterClient.updateAsset(asset, updateMask);
 }
 
Parameters
Name Description
asset Asset

Required. The resource being updated.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

Returns
Type Description
Asset

updateAsset(UpdateAssetRequest request)

public final Asset updateAsset(UpdateAssetRequest request)

Updates the parameters of an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateAssetRequest request =
       UpdateAssetRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setAsset(Asset.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Asset response = migrationCenterClient.updateAsset(request);
 }
 
Parameter
Name Description
request UpdateAssetRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Asset

updateAssetCallable()

public final UnaryCallable<UpdateAssetRequest,Asset> updateAssetCallable()

Updates the parameters of an asset.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateAssetRequest request =
       UpdateAssetRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setAsset(Asset.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Asset> future = migrationCenterClient.updateAssetCallable().futureCall(request);
   // Do something.
   Asset response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateAssetRequest,Asset>

updateGroupAsync(Group group, FieldMask updateMask)

public final OperationFuture<Group,OperationMetadata> updateGroupAsync(Group group, FieldMask updateMask)

Updates the parameters of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   Group group = Group.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Group response = migrationCenterClient.updateGroupAsync(group, updateMask).get();
 }
 
Parameters
Name Description
group Group

Required. The group resource being updated.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Group resource by the update. The values specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

updateGroupAsync(UpdateGroupRequest request)

public final OperationFuture<Group,OperationMetadata> updateGroupAsync(UpdateGroupRequest request)

Updates the parameters of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateGroupRequest request =
       UpdateGroupRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setGroup(Group.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Group response = migrationCenterClient.updateGroupAsync(request).get();
 }
 
Parameter
Name Description
request UpdateGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Group,OperationMetadata>

updateGroupCallable()

public final UnaryCallable<UpdateGroupRequest,Operation> updateGroupCallable()

Updates the parameters of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateGroupRequest request =
       UpdateGroupRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setGroup(Group.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future = migrationCenterClient.updateGroupCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateGroupRequest,Operation>

updateGroupOperationCallable()

public final OperationCallable<UpdateGroupRequest,Group,OperationMetadata> updateGroupOperationCallable()

Updates the parameters of a group.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateGroupRequest request =
       UpdateGroupRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setGroup(Group.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Group, OperationMetadata> future =
       migrationCenterClient.updateGroupOperationCallable().futureCall(request);
   // Do something.
   Group response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateGroupRequest,Group,OperationMetadata>

updateImportJobAsync(ImportJob importJob, FieldMask updateMask)

public final OperationFuture<ImportJob,OperationMetadata> updateImportJobAsync(ImportJob importJob, FieldMask updateMask)

Updates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportJob importJob = ImportJob.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   ImportJob response = migrationCenterClient.updateImportJobAsync(importJob, updateMask).get();
 }
 
Parameters
Name Description
importJob ImportJob

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

Returns
Type Description
OperationFuture<ImportJob,OperationMetadata>

updateImportJobAsync(UpdateImportJobRequest request)

public final OperationFuture<ImportJob,OperationMetadata> updateImportJobAsync(UpdateImportJobRequest request)

Updates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateImportJobRequest request =
       UpdateImportJobRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setImportJob(ImportJob.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ImportJob response = migrationCenterClient.updateImportJobAsync(request).get();
 }
 
Parameter
Name Description
request UpdateImportJobRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<ImportJob,OperationMetadata>

updateImportJobCallable()

public final UnaryCallable<UpdateImportJobRequest,Operation> updateImportJobCallable()

Updates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateImportJobRequest request =
       UpdateImportJobRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setImportJob(ImportJob.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.updateImportJobCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateImportJobRequest,Operation>

updateImportJobOperationCallable()

public final OperationCallable<UpdateImportJobRequest,ImportJob,OperationMetadata> updateImportJobOperationCallable()

Updates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateImportJobRequest request =
       UpdateImportJobRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setImportJob(ImportJob.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<ImportJob, OperationMetadata> future =
       migrationCenterClient.updateImportJobOperationCallable().futureCall(request);
   // Do something.
   ImportJob response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateImportJobRequest,ImportJob,OperationMetadata>

updatePreferenceSetAsync(PreferenceSet preferenceSet, FieldMask updateMask)

public final OperationFuture<PreferenceSet,OperationMetadata> updatePreferenceSetAsync(PreferenceSet preferenceSet, FieldMask updateMask)

Updates the parameters of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   PreferenceSet preferenceSet = PreferenceSet.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   PreferenceSet response =
       migrationCenterClient.updatePreferenceSetAsync(preferenceSet, updateMask).get();
 }
 
Parameters
Name Description
preferenceSet PreferenceSet

Required. The preference set resource being updated.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the PreferenceSet resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

Returns
Type Description
OperationFuture<PreferenceSet,OperationMetadata>

updatePreferenceSetAsync(UpdatePreferenceSetRequest request)

public final OperationFuture<PreferenceSet,OperationMetadata> updatePreferenceSetAsync(UpdatePreferenceSetRequest request)

Updates the parameters of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdatePreferenceSetRequest request =
       UpdatePreferenceSetRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setPreferenceSet(PreferenceSet.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   PreferenceSet response = migrationCenterClient.updatePreferenceSetAsync(request).get();
 }
 
Parameter
Name Description
request UpdatePreferenceSetRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<PreferenceSet,OperationMetadata>

updatePreferenceSetCallable()

public final UnaryCallable<UpdatePreferenceSetRequest,Operation> updatePreferenceSetCallable()

Updates the parameters of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdatePreferenceSetRequest request =
       UpdatePreferenceSetRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setPreferenceSet(PreferenceSet.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.updatePreferenceSetCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdatePreferenceSetRequest,Operation>

updatePreferenceSetOperationCallable()

public final OperationCallable<UpdatePreferenceSetRequest,PreferenceSet,OperationMetadata> updatePreferenceSetOperationCallable()

Updates the parameters of a preference set.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdatePreferenceSetRequest request =
       UpdatePreferenceSetRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setPreferenceSet(PreferenceSet.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<PreferenceSet, OperationMetadata> future =
       migrationCenterClient.updatePreferenceSetOperationCallable().futureCall(request);
   // Do something.
   PreferenceSet response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdatePreferenceSetRequest,PreferenceSet,OperationMetadata>

updateSettingsAsync(Settings settings, FieldMask updateMask)

public final OperationFuture<Settings,OperationMetadata> updateSettingsAsync(Settings settings, FieldMask updateMask)

Updates the regional-level project settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   Settings settings = Settings.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Settings response = migrationCenterClient.updateSettingsAsync(settings, updateMask).get();
 }
 
Parameters
Name Description
settings Settings

Required. The project settings resource being updated.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Settings resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

Returns
Type Description
OperationFuture<Settings,OperationMetadata>

updateSettingsAsync(UpdateSettingsRequest request)

public final OperationFuture<Settings,OperationMetadata> updateSettingsAsync(UpdateSettingsRequest request)

Updates the regional-level project settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateSettingsRequest request =
       UpdateSettingsRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSettings(Settings.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Settings response = migrationCenterClient.updateSettingsAsync(request).get();
 }
 
Parameter
Name Description
request UpdateSettingsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Settings,OperationMetadata>

updateSettingsCallable()

public final UnaryCallable<UpdateSettingsRequest,Operation> updateSettingsCallable()

Updates the regional-level project settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateSettingsRequest request =
       UpdateSettingsRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSettings(Settings.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.updateSettingsCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateSettingsRequest,Operation>

updateSettingsOperationCallable()

public final OperationCallable<UpdateSettingsRequest,Settings,OperationMetadata> updateSettingsOperationCallable()

Updates the regional-level project settings.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateSettingsRequest request =
       UpdateSettingsRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSettings(Settings.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Settings, OperationMetadata> future =
       migrationCenterClient.updateSettingsOperationCallable().futureCall(request);
   // Do something.
   Settings response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateSettingsRequest,Settings,OperationMetadata>

updateSourceAsync(Source source, FieldMask updateMask)

public final OperationFuture<Source,OperationMetadata> updateSourceAsync(Source source, FieldMask updateMask)

Updates the parameters of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   Source source = Source.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Source response = migrationCenterClient.updateSourceAsync(source, updateMask).get();
 }
 
Parameters
Name Description
source Source

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Source resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

Returns
Type Description
OperationFuture<Source,OperationMetadata>

updateSourceAsync(UpdateSourceRequest request)

public final OperationFuture<Source,OperationMetadata> updateSourceAsync(UpdateSourceRequest request)

Updates the parameters of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateSourceRequest request =
       UpdateSourceRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSource(Source.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Source response = migrationCenterClient.updateSourceAsync(request).get();
 }
 
Parameter
Name Description
request UpdateSourceRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Source,OperationMetadata>

updateSourceCallable()

public final UnaryCallable<UpdateSourceRequest,Operation> updateSourceCallable()

Updates the parameters of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateSourceRequest request =
       UpdateSourceRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSource(Source.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.updateSourceCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateSourceRequest,Operation>

updateSourceOperationCallable()

public final OperationCallable<UpdateSourceRequest,Source,OperationMetadata> updateSourceOperationCallable()

Updates the parameters of a source.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   UpdateSourceRequest request =
       UpdateSourceRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSource(Source.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Source, OperationMetadata> future =
       migrationCenterClient.updateSourceOperationCallable().futureCall(request);
   // Do something.
   Source response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateSourceRequest,Source,OperationMetadata>

validateImportJobAsync(ImportJobName name)

public final OperationFuture<Empty,OperationMetadata> validateImportJobAsync(ImportJobName name)

Validates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ImportJobName name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
   migrationCenterClient.validateImportJobAsync(name).get();
 }
 
Parameter
Name Description
name ImportJobName

Required. The name of the import job to validate.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

validateImportJobAsync(ValidateImportJobRequest request)

public final OperationFuture<Empty,OperationMetadata> validateImportJobAsync(ValidateImportJobRequest request)

Validates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ValidateImportJobRequest request =
       ValidateImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .build();
   migrationCenterClient.validateImportJobAsync(request).get();
 }
 
Parameter
Name Description
request ValidateImportJobRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

validateImportJobAsync(String name)

public final OperationFuture<Empty,OperationMetadata> validateImportJobAsync(String name)

Validates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   String name = ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString();
   migrationCenterClient.validateImportJobAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the import job to validate.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

validateImportJobCallable()

public final UnaryCallable<ValidateImportJobRequest,Operation> validateImportJobCallable()

Validates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ValidateImportJobRequest request =
       ValidateImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       migrationCenterClient.validateImportJobCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<ValidateImportJobRequest,Operation>

validateImportJobOperationCallable()

public final OperationCallable<ValidateImportJobRequest,Empty,OperationMetadata> validateImportJobOperationCallable()

Validates an import job.

Sample code:


 // 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
 try (MigrationCenterClient migrationCenterClient = MigrationCenterClient.create()) {
   ValidateImportJobRequest request =
       ValidateImportJobRequest.newBuilder()
           .setName(ImportJobName.of("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       migrationCenterClient.validateImportJobOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<ValidateImportJobRequest,Empty,OperationMetadata>