public class VmMigrationStubSettings extends StubSettings<VmMigrationStubSettings>
Settings class to configure an instance of VmMigrationStub.
The default instance has everything set to sensible defaults:
- The default service address (vmmigration.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When
build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getSource to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VmMigrationStubSettings.Builder vmMigrationSettingsBuilder =
VmMigrationStubSettings.newBuilder();
vmMigrationSettingsBuilder
.getSourceSettings()
.setRetrySettings(
vmMigrationSettingsBuilder
.getSourceSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
VmMigrationStubSettings vmMigrationSettings = vmMigrationSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns
newBuilder()
public static VmMigrationStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static VmMigrationStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static VmMigrationStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
VmMigrationStubSettings(VmMigrationStubSettings.Builder settingsBuilder)
protected VmMigrationStubSettings(VmMigrationStubSettings.Builder settingsBuilder)
Parameter
Methods
addGroupMigrationOperationSettings()
public OperationCallSettings<AddGroupMigrationRequest,AddGroupMigrationResponse,OperationMetadata> addGroupMigrationOperationSettings()
Returns the object with the settings used for calls to addGroupMigration.
Returns
addGroupMigrationSettings()
public UnaryCallSettings<AddGroupMigrationRequest,Operation> addGroupMigrationSettings()
Returns the object with the settings used for calls to addGroupMigration.
Returns
cancelCloneJobOperationSettings()
public OperationCallSettings<CancelCloneJobRequest,CancelCloneJobResponse,OperationMetadata> cancelCloneJobOperationSettings()
Returns the object with the settings used for calls to cancelCloneJob.
Returns
cancelCloneJobSettings()
public UnaryCallSettings<CancelCloneJobRequest,Operation> cancelCloneJobSettings()
Returns the object with the settings used for calls to cancelCloneJob.
Returns
cancelCutoverJobOperationSettings()
public OperationCallSettings<CancelCutoverJobRequest,CancelCutoverJobResponse,OperationMetadata> cancelCutoverJobOperationSettings()
Returns the object with the settings used for calls to cancelCutoverJob.
Returns
cancelCutoverJobSettings()
public UnaryCallSettings<CancelCutoverJobRequest,Operation> cancelCutoverJobSettings()
Returns the object with the settings used for calls to cancelCutoverJob.
Returns
createCloneJobOperationSettings()
public OperationCallSettings<CreateCloneJobRequest,CloneJob,OperationMetadata> createCloneJobOperationSettings()
Returns the object with the settings used for calls to createCloneJob.
Returns
createCloneJobSettings()
public UnaryCallSettings<CreateCloneJobRequest,Operation> createCloneJobSettings()
Returns the object with the settings used for calls to createCloneJob.
Returns
createCutoverJobOperationSettings()
public OperationCallSettings<CreateCutoverJobRequest,CutoverJob,OperationMetadata> createCutoverJobOperationSettings()
Returns the object with the settings used for calls to createCutoverJob.
Returns
createCutoverJobSettings()
public UnaryCallSettings<CreateCutoverJobRequest,Operation> createCutoverJobSettings()
Returns the object with the settings used for calls to createCutoverJob.
Returns
createDatacenterConnectorOperationSettings()
public OperationCallSettings<CreateDatacenterConnectorRequest,DatacenterConnector,OperationMetadata> createDatacenterConnectorOperationSettings()
Returns the object with the settings used for calls to createDatacenterConnector.
Returns
createDatacenterConnectorSettings()
public UnaryCallSettings<CreateDatacenterConnectorRequest,Operation> createDatacenterConnectorSettings()
Returns the object with the settings used for calls to createDatacenterConnector.
Returns
createGroupOperationSettings()
public OperationCallSettings<CreateGroupRequest,Group,OperationMetadata> createGroupOperationSettings()
Returns the object with the settings used for calls to createGroup.
Returns
createGroupSettings()
public UnaryCallSettings<CreateGroupRequest,Operation> createGroupSettings()
Returns the object with the settings used for calls to createGroup.
Returns
createMigratingVmOperationSettings()
public OperationCallSettings<CreateMigratingVmRequest,MigratingVm,OperationMetadata> createMigratingVmOperationSettings()
Returns the object with the settings used for calls to createMigratingVm.
Returns
createMigratingVmSettings()
public UnaryCallSettings<CreateMigratingVmRequest,Operation> createMigratingVmSettings()
Returns the object with the settings used for calls to createMigratingVm.
Returns
createSourceOperationSettings()
public OperationCallSettings<CreateSourceRequest,Source,OperationMetadata> createSourceOperationSettings()
Returns the object with the settings used for calls to createSource.
Returns
createSourceSettings()
public UnaryCallSettings<CreateSourceRequest,Operation> createSourceSettings()
Returns the object with the settings used for calls to createSource.
Returns
createStub()
public VmMigrationStub createStub()
Returns
Exceptions
createTargetProjectOperationSettings()
public OperationCallSettings<CreateTargetProjectRequest,TargetProject,OperationMetadata> createTargetProjectOperationSettings()
Returns the object with the settings used for calls to createTargetProject.
Returns
createTargetProjectSettings()
public UnaryCallSettings<CreateTargetProjectRequest,Operation> createTargetProjectSettings()
Returns the object with the settings used for calls to createTargetProject.
Returns
createUtilizationReportOperationSettings()
public OperationCallSettings<CreateUtilizationReportRequest,UtilizationReport,OperationMetadata> createUtilizationReportOperationSettings()
Returns the object with the settings used for calls to createUtilizationReport.
Returns
createUtilizationReportSettings()
public UnaryCallSettings<CreateUtilizationReportRequest,Operation> createUtilizationReportSettings()
Returns the object with the settings used for calls to createUtilizationReport.
Returns
deleteDatacenterConnectorOperationSettings()
public OperationCallSettings<DeleteDatacenterConnectorRequest,Empty,OperationMetadata> deleteDatacenterConnectorOperationSettings()
Returns the object with the settings used for calls to deleteDatacenterConnector.
Returns
deleteDatacenterConnectorSettings()
public UnaryCallSettings<DeleteDatacenterConnectorRequest,Operation> deleteDatacenterConnectorSettings()
Returns the object with the settings used for calls to deleteDatacenterConnector.
Returns
deleteGroupOperationSettings()
public OperationCallSettings<DeleteGroupRequest,Empty,OperationMetadata> deleteGroupOperationSettings()
Returns the object with the settings used for calls to deleteGroup.
Returns
deleteGroupSettings()
public UnaryCallSettings<DeleteGroupRequest,Operation> deleteGroupSettings()
Returns the object with the settings used for calls to deleteGroup.
Returns
deleteMigratingVmOperationSettings()
public OperationCallSettings<DeleteMigratingVmRequest,Empty,OperationMetadata> deleteMigratingVmOperationSettings()
Returns the object with the settings used for calls to deleteMigratingVm.
Returns
deleteMigratingVmSettings()
public UnaryCallSettings<DeleteMigratingVmRequest,Operation> deleteMigratingVmSettings()
Returns the object with the settings used for calls to deleteMigratingVm.
Returns
deleteSourceOperationSettings()
public OperationCallSettings<DeleteSourceRequest,Empty,OperationMetadata> deleteSourceOperationSettings()
Returns the object with the settings used for calls to deleteSource.
Returns
deleteSourceSettings()
public UnaryCallSettings<DeleteSourceRequest,Operation> deleteSourceSettings()
Returns the object with the settings used for calls to deleteSource.
Returns
deleteTargetProjectOperationSettings()
public OperationCallSettings<DeleteTargetProjectRequest,Empty,OperationMetadata> deleteTargetProjectOperationSettings()
Returns the object with the settings used for calls to deleteTargetProject.
Returns
deleteTargetProjectSettings()
public UnaryCallSettings<DeleteTargetProjectRequest,Operation> deleteTargetProjectSettings()
Returns the object with the settings used for calls to deleteTargetProject.
Returns
deleteUtilizationReportOperationSettings()
public OperationCallSettings<DeleteUtilizationReportRequest,Empty,OperationMetadata> deleteUtilizationReportOperationSettings()
Returns the object with the settings used for calls to deleteUtilizationReport.
Returns
deleteUtilizationReportSettings()
public UnaryCallSettings<DeleteUtilizationReportRequest,Operation> deleteUtilizationReportSettings()
Returns the object with the settings used for calls to deleteUtilizationReport.
Returns
fetchInventorySettings()
public UnaryCallSettings<FetchInventoryRequest,FetchInventoryResponse> fetchInventorySettings()
Returns the object with the settings used for calls to fetchInventory.
Returns
finalizeMigrationOperationSettings()
public OperationCallSettings<FinalizeMigrationRequest,FinalizeMigrationResponse,OperationMetadata> finalizeMigrationOperationSettings()
Returns the object with the settings used for calls to finalizeMigration.
Returns
finalizeMigrationSettings()
public UnaryCallSettings<FinalizeMigrationRequest,Operation> finalizeMigrationSettings()
Returns the object with the settings used for calls to finalizeMigration.
Returns
getCloneJobSettings()
public UnaryCallSettings<GetCloneJobRequest,CloneJob> getCloneJobSettings()
Returns the object with the settings used for calls to getCloneJob.
Returns
getCutoverJobSettings()
public UnaryCallSettings<GetCutoverJobRequest,CutoverJob> getCutoverJobSettings()
Returns the object with the settings used for calls to getCutoverJob.
Returns
getDatacenterConnectorSettings()
public UnaryCallSettings<GetDatacenterConnectorRequest,DatacenterConnector> getDatacenterConnectorSettings()
Returns the object with the settings used for calls to getDatacenterConnector.
Returns
getGroupSettings()
public UnaryCallSettings<GetGroupRequest,Group> getGroupSettings()
Returns the object with the settings used for calls to getGroup.
Returns
getLocationSettings()
public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
Returns
Type | Description |
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> | |
getMigratingVmSettings()
public UnaryCallSettings<GetMigratingVmRequest,MigratingVm> getMigratingVmSettings()
Returns the object with the settings used for calls to getMigratingVm.
Returns
getReplicationCycleSettings()
public UnaryCallSettings<GetReplicationCycleRequest,ReplicationCycle> getReplicationCycleSettings()
Returns the object with the settings used for calls to getReplicationCycle.
Returns
getSourceSettings()
public UnaryCallSettings<GetSourceRequest,Source> getSourceSettings()
Returns the object with the settings used for calls to getSource.
Returns
getTargetProjectSettings()
public UnaryCallSettings<GetTargetProjectRequest,TargetProject> getTargetProjectSettings()
Returns the object with the settings used for calls to getTargetProject.
Returns
getUtilizationReportSettings()
public UnaryCallSettings<GetUtilizationReportRequest,UtilizationReport> getUtilizationReportSettings()
Returns the object with the settings used for calls to getUtilizationReport.
Returns
listCloneJobsSettings()
public PagedCallSettings<ListCloneJobsRequest,ListCloneJobsResponse,VmMigrationClient.ListCloneJobsPagedResponse> listCloneJobsSettings()
Returns the object with the settings used for calls to listCloneJobs.
Returns
listCutoverJobsSettings()
public PagedCallSettings<ListCutoverJobsRequest,ListCutoverJobsResponse,VmMigrationClient.ListCutoverJobsPagedResponse> listCutoverJobsSettings()
Returns the object with the settings used for calls to listCutoverJobs.
Returns
public PagedCallSettings<ListDatacenterConnectorsRequest,ListDatacenterConnectorsResponse,VmMigrationClient.ListDatacenterConnectorsPagedResponse> listDatacenterConnectorsSettings()
Returns the object with the settings used for calls to listDatacenterConnectors.
Returns
listGroupsSettings()
public PagedCallSettings<ListGroupsRequest,ListGroupsResponse,VmMigrationClient.ListGroupsPagedResponse> listGroupsSettings()
Returns the object with the settings used for calls to listGroups.
Returns
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,VmMigrationClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
Returns
listMigratingVmsSettings()
public PagedCallSettings<ListMigratingVmsRequest,ListMigratingVmsResponse,VmMigrationClient.ListMigratingVmsPagedResponse> listMigratingVmsSettings()
Returns the object with the settings used for calls to listMigratingVms.
Returns
listReplicationCyclesSettings()
public PagedCallSettings<ListReplicationCyclesRequest,ListReplicationCyclesResponse,VmMigrationClient.ListReplicationCyclesPagedResponse> listReplicationCyclesSettings()
Returns the object with the settings used for calls to listReplicationCycles.
Returns
listSourcesSettings()
public PagedCallSettings<ListSourcesRequest,ListSourcesResponse,VmMigrationClient.ListSourcesPagedResponse> listSourcesSettings()
Returns the object with the settings used for calls to listSources.
Returns
listTargetProjectsSettings()
public PagedCallSettings<ListTargetProjectsRequest,ListTargetProjectsResponse,VmMigrationClient.ListTargetProjectsPagedResponse> listTargetProjectsSettings()
Returns the object with the settings used for calls to listTargetProjects.
Returns
listUtilizationReportsSettings()
public PagedCallSettings<ListUtilizationReportsRequest,ListUtilizationReportsResponse,VmMigrationClient.ListUtilizationReportsPagedResponse> listUtilizationReportsSettings()
Returns the object with the settings used for calls to listUtilizationReports.
Returns
pauseMigrationOperationSettings()
public OperationCallSettings<PauseMigrationRequest,PauseMigrationResponse,OperationMetadata> pauseMigrationOperationSettings()
Returns the object with the settings used for calls to pauseMigration.
Returns
pauseMigrationSettings()
public UnaryCallSettings<PauseMigrationRequest,Operation> pauseMigrationSettings()
Returns the object with the settings used for calls to pauseMigration.
Returns
removeGroupMigrationOperationSettings()
public OperationCallSettings<RemoveGroupMigrationRequest,RemoveGroupMigrationResponse,OperationMetadata> removeGroupMigrationOperationSettings()
Returns the object with the settings used for calls to removeGroupMigration.
Returns
removeGroupMigrationSettings()
public UnaryCallSettings<RemoveGroupMigrationRequest,Operation> removeGroupMigrationSettings()
Returns the object with the settings used for calls to removeGroupMigration.
Returns
resumeMigrationOperationSettings()
public OperationCallSettings<ResumeMigrationRequest,ResumeMigrationResponse,OperationMetadata> resumeMigrationOperationSettings()
Returns the object with the settings used for calls to resumeMigration.
Returns
resumeMigrationSettings()
public UnaryCallSettings<ResumeMigrationRequest,Operation> resumeMigrationSettings()
Returns the object with the settings used for calls to resumeMigration.
Returns
startMigrationOperationSettings()
public OperationCallSettings<StartMigrationRequest,StartMigrationResponse,OperationMetadata> startMigrationOperationSettings()
Returns the object with the settings used for calls to startMigration.
Returns
startMigrationSettings()
public UnaryCallSettings<StartMigrationRequest,Operation> startMigrationSettings()
Returns the object with the settings used for calls to startMigration.
Returns
toBuilder()
public VmMigrationStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
updateGroupOperationSettings()
public OperationCallSettings<UpdateGroupRequest,Group,OperationMetadata> updateGroupOperationSettings()
Returns the object with the settings used for calls to updateGroup.
Returns
updateGroupSettings()
public UnaryCallSettings<UpdateGroupRequest,Operation> updateGroupSettings()
Returns the object with the settings used for calls to updateGroup.
Returns
updateMigratingVmOperationSettings()
public OperationCallSettings<UpdateMigratingVmRequest,MigratingVm,OperationMetadata> updateMigratingVmOperationSettings()
Returns the object with the settings used for calls to updateMigratingVm.
Returns
updateMigratingVmSettings()
public UnaryCallSettings<UpdateMigratingVmRequest,Operation> updateMigratingVmSettings()
Returns the object with the settings used for calls to updateMigratingVm.
Returns
updateSourceOperationSettings()
public OperationCallSettings<UpdateSourceRequest,Source,OperationMetadata> updateSourceOperationSettings()
Returns the object with the settings used for calls to updateSource.
Returns
updateSourceSettings()
public UnaryCallSettings<UpdateSourceRequest,Operation> updateSourceSettings()
Returns the object with the settings used for calls to updateSource.
Returns
updateTargetProjectOperationSettings()
public OperationCallSettings<UpdateTargetProjectRequest,TargetProject,OperationMetadata> updateTargetProjectOperationSettings()
Returns the object with the settings used for calls to updateTargetProject.
Returns
updateTargetProjectSettings()
public UnaryCallSettings<UpdateTargetProjectRequest,Operation> updateTargetProjectSettings()
Returns the object with the settings used for calls to updateTargetProject.
Returns
upgradeApplianceOperationSettings()
public OperationCallSettings<UpgradeApplianceRequest,UpgradeApplianceResponse,OperationMetadata> upgradeApplianceOperationSettings()
Returns the object with the settings used for calls to upgradeAppliance.
Returns
upgradeApplianceSettings()
public UnaryCallSettings<UpgradeApplianceRequest,Operation> upgradeApplianceSettings()
Returns the object with the settings used for calls to upgradeAppliance.
Returns