com.google.cloud.vmmigration.v1.VmMigrationSettings Maven / Gradle / Ivy
Show all versions of google-cloud-vmmigration Show documentation
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.vmmigration.v1;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListSourcesPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListTargetProjectsPagedResponse;
import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListUtilizationReportsPagedResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.cloud.vmmigration.v1.stub.VmMigrationStubSettings;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link VmMigrationClient}.
*
* 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:
*
*
{@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
* VmMigrationSettings.Builder vmMigrationSettingsBuilder = VmMigrationSettings.newBuilder();
* vmMigrationSettingsBuilder
* .getSourceSettings()
* .setRetrySettings(
* vmMigrationSettingsBuilder
* .getSourceSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* VmMigrationSettings vmMigrationSettings = vmMigrationSettingsBuilder.build();
* }
*/
@Generated("by gapic-generator-java")
public class VmMigrationSettings extends ClientSettings {
/** Returns the object with the settings used for calls to listSources. */
public PagedCallSettings
listSourcesSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listSourcesSettings();
}
/** Returns the object with the settings used for calls to getSource. */
public UnaryCallSettings getSourceSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getSourceSettings();
}
/** Returns the object with the settings used for calls to createSource. */
public UnaryCallSettings createSourceSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createSourceSettings();
}
/** Returns the object with the settings used for calls to createSource. */
public OperationCallSettings
createSourceOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createSourceOperationSettings();
}
/** Returns the object with the settings used for calls to updateSource. */
public UnaryCallSettings updateSourceSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateSourceSettings();
}
/** Returns the object with the settings used for calls to updateSource. */
public OperationCallSettings
updateSourceOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateSourceOperationSettings();
}
/** Returns the object with the settings used for calls to deleteSource. */
public UnaryCallSettings deleteSourceSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteSourceSettings();
}
/** Returns the object with the settings used for calls to deleteSource. */
public OperationCallSettings
deleteSourceOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteSourceOperationSettings();
}
/** Returns the object with the settings used for calls to fetchInventory. */
public UnaryCallSettings fetchInventorySettings() {
return ((VmMigrationStubSettings) getStubSettings()).fetchInventorySettings();
}
/** Returns the object with the settings used for calls to listUtilizationReports. */
public PagedCallSettings<
ListUtilizationReportsRequest,
ListUtilizationReportsResponse,
ListUtilizationReportsPagedResponse>
listUtilizationReportsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listUtilizationReportsSettings();
}
/** Returns the object with the settings used for calls to getUtilizationReport. */
public UnaryCallSettings
getUtilizationReportSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getUtilizationReportSettings();
}
/** Returns the object with the settings used for calls to createUtilizationReport. */
public UnaryCallSettings
createUtilizationReportSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createUtilizationReportSettings();
}
/** Returns the object with the settings used for calls to createUtilizationReport. */
public OperationCallSettings
createUtilizationReportOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createUtilizationReportOperationSettings();
}
/** Returns the object with the settings used for calls to deleteUtilizationReport. */
public UnaryCallSettings
deleteUtilizationReportSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteUtilizationReportSettings();
}
/** Returns the object with the settings used for calls to deleteUtilizationReport. */
public OperationCallSettings
deleteUtilizationReportOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteUtilizationReportOperationSettings();
}
/** Returns the object with the settings used for calls to listDatacenterConnectors. */
public PagedCallSettings<
ListDatacenterConnectorsRequest,
ListDatacenterConnectorsResponse,
ListDatacenterConnectorsPagedResponse>
listDatacenterConnectorsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listDatacenterConnectorsSettings();
}
/** Returns the object with the settings used for calls to getDatacenterConnector. */
public UnaryCallSettings
getDatacenterConnectorSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getDatacenterConnectorSettings();
}
/** Returns the object with the settings used for calls to createDatacenterConnector. */
public UnaryCallSettings
createDatacenterConnectorSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createDatacenterConnectorSettings();
}
/** Returns the object with the settings used for calls to createDatacenterConnector. */
public OperationCallSettings<
CreateDatacenterConnectorRequest, DatacenterConnector, OperationMetadata>
createDatacenterConnectorOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings())
.createDatacenterConnectorOperationSettings();
}
/** Returns the object with the settings used for calls to deleteDatacenterConnector. */
public UnaryCallSettings
deleteDatacenterConnectorSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteDatacenterConnectorSettings();
}
/** Returns the object with the settings used for calls to deleteDatacenterConnector. */
public OperationCallSettings
deleteDatacenterConnectorOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings())
.deleteDatacenterConnectorOperationSettings();
}
/** Returns the object with the settings used for calls to upgradeAppliance. */
public UnaryCallSettings upgradeApplianceSettings() {
return ((VmMigrationStubSettings) getStubSettings()).upgradeApplianceSettings();
}
/** Returns the object with the settings used for calls to upgradeAppliance. */
public OperationCallSettings
upgradeApplianceOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).upgradeApplianceOperationSettings();
}
/** Returns the object with the settings used for calls to createMigratingVm. */
public UnaryCallSettings createMigratingVmSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createMigratingVmSettings();
}
/** Returns the object with the settings used for calls to createMigratingVm. */
public OperationCallSettings
createMigratingVmOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createMigratingVmOperationSettings();
}
/** Returns the object with the settings used for calls to listMigratingVms. */
public PagedCallSettings<
ListMigratingVmsRequest, ListMigratingVmsResponse, ListMigratingVmsPagedResponse>
listMigratingVmsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listMigratingVmsSettings();
}
/** Returns the object with the settings used for calls to getMigratingVm. */
public UnaryCallSettings getMigratingVmSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getMigratingVmSettings();
}
/** Returns the object with the settings used for calls to updateMigratingVm. */
public UnaryCallSettings updateMigratingVmSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateMigratingVmSettings();
}
/** Returns the object with the settings used for calls to updateMigratingVm. */
public OperationCallSettings
updateMigratingVmOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateMigratingVmOperationSettings();
}
/** Returns the object with the settings used for calls to deleteMigratingVm. */
public UnaryCallSettings deleteMigratingVmSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteMigratingVmSettings();
}
/** Returns the object with the settings used for calls to deleteMigratingVm. */
public OperationCallSettings
deleteMigratingVmOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteMigratingVmOperationSettings();
}
/** Returns the object with the settings used for calls to startMigration. */
public UnaryCallSettings startMigrationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).startMigrationSettings();
}
/** Returns the object with the settings used for calls to startMigration. */
public OperationCallSettings
startMigrationOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).startMigrationOperationSettings();
}
/** Returns the object with the settings used for calls to resumeMigration. */
public UnaryCallSettings resumeMigrationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).resumeMigrationSettings();
}
/** Returns the object with the settings used for calls to resumeMigration. */
public OperationCallSettings
resumeMigrationOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).resumeMigrationOperationSettings();
}
/** Returns the object with the settings used for calls to pauseMigration. */
public UnaryCallSettings pauseMigrationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).pauseMigrationSettings();
}
/** Returns the object with the settings used for calls to pauseMigration. */
public OperationCallSettings
pauseMigrationOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).pauseMigrationOperationSettings();
}
/** Returns the object with the settings used for calls to finalizeMigration. */
public UnaryCallSettings finalizeMigrationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).finalizeMigrationSettings();
}
/** Returns the object with the settings used for calls to finalizeMigration. */
public OperationCallSettings<
FinalizeMigrationRequest, FinalizeMigrationResponse, OperationMetadata>
finalizeMigrationOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).finalizeMigrationOperationSettings();
}
/** Returns the object with the settings used for calls to createCloneJob. */
public UnaryCallSettings createCloneJobSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createCloneJobSettings();
}
/** Returns the object with the settings used for calls to createCloneJob. */
public OperationCallSettings
createCloneJobOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createCloneJobOperationSettings();
}
/** Returns the object with the settings used for calls to cancelCloneJob. */
public UnaryCallSettings cancelCloneJobSettings() {
return ((VmMigrationStubSettings) getStubSettings()).cancelCloneJobSettings();
}
/** Returns the object with the settings used for calls to cancelCloneJob. */
public OperationCallSettings
cancelCloneJobOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).cancelCloneJobOperationSettings();
}
/** Returns the object with the settings used for calls to listCloneJobs. */
public PagedCallSettings
listCloneJobsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listCloneJobsSettings();
}
/** Returns the object with the settings used for calls to getCloneJob. */
public UnaryCallSettings getCloneJobSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getCloneJobSettings();
}
/** Returns the object with the settings used for calls to createCutoverJob. */
public UnaryCallSettings createCutoverJobSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createCutoverJobSettings();
}
/** Returns the object with the settings used for calls to createCutoverJob. */
public OperationCallSettings
createCutoverJobOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createCutoverJobOperationSettings();
}
/** Returns the object with the settings used for calls to cancelCutoverJob. */
public UnaryCallSettings cancelCutoverJobSettings() {
return ((VmMigrationStubSettings) getStubSettings()).cancelCutoverJobSettings();
}
/** Returns the object with the settings used for calls to cancelCutoverJob. */
public OperationCallSettings
cancelCutoverJobOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).cancelCutoverJobOperationSettings();
}
/** Returns the object with the settings used for calls to listCutoverJobs. */
public PagedCallSettings<
ListCutoverJobsRequest, ListCutoverJobsResponse, ListCutoverJobsPagedResponse>
listCutoverJobsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listCutoverJobsSettings();
}
/** Returns the object with the settings used for calls to getCutoverJob. */
public UnaryCallSettings getCutoverJobSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getCutoverJobSettings();
}
/** Returns the object with the settings used for calls to listGroups. */
public PagedCallSettings
listGroupsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listGroupsSettings();
}
/** Returns the object with the settings used for calls to getGroup. */
public UnaryCallSettings getGroupSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getGroupSettings();
}
/** Returns the object with the settings used for calls to createGroup. */
public UnaryCallSettings createGroupSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createGroupSettings();
}
/** Returns the object with the settings used for calls to createGroup. */
public OperationCallSettings
createGroupOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createGroupOperationSettings();
}
/** Returns the object with the settings used for calls to updateGroup. */
public UnaryCallSettings updateGroupSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateGroupSettings();
}
/** Returns the object with the settings used for calls to updateGroup. */
public OperationCallSettings
updateGroupOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateGroupOperationSettings();
}
/** Returns the object with the settings used for calls to deleteGroup. */
public UnaryCallSettings deleteGroupSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteGroupSettings();
}
/** Returns the object with the settings used for calls to deleteGroup. */
public OperationCallSettings
deleteGroupOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteGroupOperationSettings();
}
/** Returns the object with the settings used for calls to addGroupMigration. */
public UnaryCallSettings addGroupMigrationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).addGroupMigrationSettings();
}
/** Returns the object with the settings used for calls to addGroupMigration. */
public OperationCallSettings<
AddGroupMigrationRequest, AddGroupMigrationResponse, OperationMetadata>
addGroupMigrationOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).addGroupMigrationOperationSettings();
}
/** Returns the object with the settings used for calls to removeGroupMigration. */
public UnaryCallSettings removeGroupMigrationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).removeGroupMigrationSettings();
}
/** Returns the object with the settings used for calls to removeGroupMigration. */
public OperationCallSettings<
RemoveGroupMigrationRequest, RemoveGroupMigrationResponse, OperationMetadata>
removeGroupMigrationOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).removeGroupMigrationOperationSettings();
}
/** Returns the object with the settings used for calls to listTargetProjects. */
public PagedCallSettings<
ListTargetProjectsRequest, ListTargetProjectsResponse, ListTargetProjectsPagedResponse>
listTargetProjectsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listTargetProjectsSettings();
}
/** Returns the object with the settings used for calls to getTargetProject. */
public UnaryCallSettings getTargetProjectSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getTargetProjectSettings();
}
/** Returns the object with the settings used for calls to createTargetProject. */
public UnaryCallSettings createTargetProjectSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createTargetProjectSettings();
}
/** Returns the object with the settings used for calls to createTargetProject. */
public OperationCallSettings
createTargetProjectOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).createTargetProjectOperationSettings();
}
/** Returns the object with the settings used for calls to updateTargetProject. */
public UnaryCallSettings updateTargetProjectSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateTargetProjectSettings();
}
/** Returns the object with the settings used for calls to updateTargetProject. */
public OperationCallSettings
updateTargetProjectOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).updateTargetProjectOperationSettings();
}
/** Returns the object with the settings used for calls to deleteTargetProject. */
public UnaryCallSettings deleteTargetProjectSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteTargetProjectSettings();
}
/** Returns the object with the settings used for calls to deleteTargetProject. */
public OperationCallSettings
deleteTargetProjectOperationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).deleteTargetProjectOperationSettings();
}
/** Returns the object with the settings used for calls to listReplicationCycles. */
public PagedCallSettings<
ListReplicationCyclesRequest,
ListReplicationCyclesResponse,
ListReplicationCyclesPagedResponse>
listReplicationCyclesSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listReplicationCyclesSettings();
}
/** Returns the object with the settings used for calls to getReplicationCycle. */
public UnaryCallSettings
getReplicationCycleSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getReplicationCycleSettings();
}
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
return ((VmMigrationStubSettings) getStubSettings()).listLocationsSettings();
}
/** Returns the object with the settings used for calls to getLocation. */
public UnaryCallSettings getLocationSettings() {
return ((VmMigrationStubSettings) getStubSettings()).getLocationSettings();
}
public static final VmMigrationSettings create(VmMigrationStubSettings stub) throws IOException {
return new VmMigrationSettings.Builder(stub.toBuilder()).build();
}
/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return VmMigrationStubSettings.defaultExecutorProviderBuilder();
}
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return VmMigrationStubSettings.getDefaultEndpoint();
}
/** Returns the default service scopes. */
public static List getDefaultServiceScopes() {
return VmMigrationStubSettings.getDefaultServiceScopes();
}
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return VmMigrationStubSettings.defaultCredentialsProviderBuilder();
}
/** Returns a builder for the default gRPC ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return VmMigrationStubSettings.defaultGrpcTransportProviderBuilder();
}
/** Returns a builder for the default REST ChannelProvider for this service. */
@BetaApi
public static InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder() {
return VmMigrationStubSettings.defaultHttpJsonTransportProviderBuilder();
}
public static TransportChannelProvider defaultTransportChannelProvider() {
return VmMigrationStubSettings.defaultTransportChannelProvider();
}
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return VmMigrationStubSettings.defaultApiClientHeaderProviderBuilder();
}
/** Returns a new gRPC builder for this class. */
public static Builder newBuilder() {
return Builder.createDefault();
}
/** Returns a new REST builder for this class. */
public static Builder newHttpJsonBuilder() {
return Builder.createHttpJsonDefault();
}
/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
return new Builder(clientContext);
}
/** Returns a builder containing all the values of this settings class. */
public Builder toBuilder() {
return new Builder(this);
}
protected VmMigrationSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
}
/** Builder for VmMigrationSettings. */
public static class Builder extends ClientSettings.Builder {
protected Builder() throws IOException {
this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(VmMigrationStubSettings.newBuilder(clientContext));
}
protected Builder(VmMigrationSettings settings) {
super(settings.getStubSettings().toBuilder());
}
protected Builder(VmMigrationStubSettings.Builder stubSettings) {
super(stubSettings);
}
private static Builder createDefault() {
return new Builder(VmMigrationStubSettings.newBuilder());
}
private static Builder createHttpJsonDefault() {
return new Builder(VmMigrationStubSettings.newHttpJsonBuilder());
}
public VmMigrationStubSettings.Builder getStubSettingsBuilder() {
return ((VmMigrationStubSettings.Builder) getStubSettings());
}
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
}
/** Returns the builder for the settings used for calls to listSources. */
public PagedCallSettings.Builder<
ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
listSourcesSettings() {
return getStubSettingsBuilder().listSourcesSettings();
}
/** Returns the builder for the settings used for calls to getSource. */
public UnaryCallSettings.Builder getSourceSettings() {
return getStubSettingsBuilder().getSourceSettings();
}
/** Returns the builder for the settings used for calls to createSource. */
public UnaryCallSettings.Builder createSourceSettings() {
return getStubSettingsBuilder().createSourceSettings();
}
/** Returns the builder for the settings used for calls to createSource. */
public OperationCallSettings.Builder
createSourceOperationSettings() {
return getStubSettingsBuilder().createSourceOperationSettings();
}
/** Returns the builder for the settings used for calls to updateSource. */
public UnaryCallSettings.Builder updateSourceSettings() {
return getStubSettingsBuilder().updateSourceSettings();
}
/** Returns the builder for the settings used for calls to updateSource. */
public OperationCallSettings.Builder
updateSourceOperationSettings() {
return getStubSettingsBuilder().updateSourceOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteSource. */
public UnaryCallSettings.Builder deleteSourceSettings() {
return getStubSettingsBuilder().deleteSourceSettings();
}
/** Returns the builder for the settings used for calls to deleteSource. */
public OperationCallSettings.Builder
deleteSourceOperationSettings() {
return getStubSettingsBuilder().deleteSourceOperationSettings();
}
/** Returns the builder for the settings used for calls to fetchInventory. */
public UnaryCallSettings.Builder
fetchInventorySettings() {
return getStubSettingsBuilder().fetchInventorySettings();
}
/** Returns the builder for the settings used for calls to listUtilizationReports. */
public PagedCallSettings.Builder<
ListUtilizationReportsRequest,
ListUtilizationReportsResponse,
ListUtilizationReportsPagedResponse>
listUtilizationReportsSettings() {
return getStubSettingsBuilder().listUtilizationReportsSettings();
}
/** Returns the builder for the settings used for calls to getUtilizationReport. */
public UnaryCallSettings.Builder
getUtilizationReportSettings() {
return getStubSettingsBuilder().getUtilizationReportSettings();
}
/** Returns the builder for the settings used for calls to createUtilizationReport. */
public UnaryCallSettings.Builder
createUtilizationReportSettings() {
return getStubSettingsBuilder().createUtilizationReportSettings();
}
/** Returns the builder for the settings used for calls to createUtilizationReport. */
public OperationCallSettings.Builder<
CreateUtilizationReportRequest, UtilizationReport, OperationMetadata>
createUtilizationReportOperationSettings() {
return getStubSettingsBuilder().createUtilizationReportOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteUtilizationReport. */
public UnaryCallSettings.Builder
deleteUtilizationReportSettings() {
return getStubSettingsBuilder().deleteUtilizationReportSettings();
}
/** Returns the builder for the settings used for calls to deleteUtilizationReport. */
public OperationCallSettings.Builder
deleteUtilizationReportOperationSettings() {
return getStubSettingsBuilder().deleteUtilizationReportOperationSettings();
}
/** Returns the builder for the settings used for calls to listDatacenterConnectors. */
public PagedCallSettings.Builder<
ListDatacenterConnectorsRequest,
ListDatacenterConnectorsResponse,
ListDatacenterConnectorsPagedResponse>
listDatacenterConnectorsSettings() {
return getStubSettingsBuilder().listDatacenterConnectorsSettings();
}
/** Returns the builder for the settings used for calls to getDatacenterConnector. */
public UnaryCallSettings.Builder
getDatacenterConnectorSettings() {
return getStubSettingsBuilder().getDatacenterConnectorSettings();
}
/** Returns the builder for the settings used for calls to createDatacenterConnector. */
public UnaryCallSettings.Builder
createDatacenterConnectorSettings() {
return getStubSettingsBuilder().createDatacenterConnectorSettings();
}
/** Returns the builder for the settings used for calls to createDatacenterConnector. */
public OperationCallSettings.Builder<
CreateDatacenterConnectorRequest, DatacenterConnector, OperationMetadata>
createDatacenterConnectorOperationSettings() {
return getStubSettingsBuilder().createDatacenterConnectorOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteDatacenterConnector. */
public UnaryCallSettings.Builder
deleteDatacenterConnectorSettings() {
return getStubSettingsBuilder().deleteDatacenterConnectorSettings();
}
/** Returns the builder for the settings used for calls to deleteDatacenterConnector. */
public OperationCallSettings.Builder
deleteDatacenterConnectorOperationSettings() {
return getStubSettingsBuilder().deleteDatacenterConnectorOperationSettings();
}
/** Returns the builder for the settings used for calls to upgradeAppliance. */
public UnaryCallSettings.Builder
upgradeApplianceSettings() {
return getStubSettingsBuilder().upgradeApplianceSettings();
}
/** Returns the builder for the settings used for calls to upgradeAppliance. */
public OperationCallSettings.Builder<
UpgradeApplianceRequest, UpgradeApplianceResponse, OperationMetadata>
upgradeApplianceOperationSettings() {
return getStubSettingsBuilder().upgradeApplianceOperationSettings();
}
/** Returns the builder for the settings used for calls to createMigratingVm. */
public UnaryCallSettings.Builder
createMigratingVmSettings() {
return getStubSettingsBuilder().createMigratingVmSettings();
}
/** Returns the builder for the settings used for calls to createMigratingVm. */
public OperationCallSettings.Builder
createMigratingVmOperationSettings() {
return getStubSettingsBuilder().createMigratingVmOperationSettings();
}
/** Returns the builder for the settings used for calls to listMigratingVms. */
public PagedCallSettings.Builder<
ListMigratingVmsRequest, ListMigratingVmsResponse, ListMigratingVmsPagedResponse>
listMigratingVmsSettings() {
return getStubSettingsBuilder().listMigratingVmsSettings();
}
/** Returns the builder for the settings used for calls to getMigratingVm. */
public UnaryCallSettings.Builder getMigratingVmSettings() {
return getStubSettingsBuilder().getMigratingVmSettings();
}
/** Returns the builder for the settings used for calls to updateMigratingVm. */
public UnaryCallSettings.Builder
updateMigratingVmSettings() {
return getStubSettingsBuilder().updateMigratingVmSettings();
}
/** Returns the builder for the settings used for calls to updateMigratingVm. */
public OperationCallSettings.Builder
updateMigratingVmOperationSettings() {
return getStubSettingsBuilder().updateMigratingVmOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteMigratingVm. */
public UnaryCallSettings.Builder
deleteMigratingVmSettings() {
return getStubSettingsBuilder().deleteMigratingVmSettings();
}
/** Returns the builder for the settings used for calls to deleteMigratingVm. */
public OperationCallSettings.Builder
deleteMigratingVmOperationSettings() {
return getStubSettingsBuilder().deleteMigratingVmOperationSettings();
}
/** Returns the builder for the settings used for calls to startMigration. */
public UnaryCallSettings.Builder startMigrationSettings() {
return getStubSettingsBuilder().startMigrationSettings();
}
/** Returns the builder for the settings used for calls to startMigration. */
public OperationCallSettings.Builder<
StartMigrationRequest, StartMigrationResponse, OperationMetadata>
startMigrationOperationSettings() {
return getStubSettingsBuilder().startMigrationOperationSettings();
}
/** Returns the builder for the settings used for calls to resumeMigration. */
public UnaryCallSettings.Builder resumeMigrationSettings() {
return getStubSettingsBuilder().resumeMigrationSettings();
}
/** Returns the builder for the settings used for calls to resumeMigration. */
public OperationCallSettings.Builder<
ResumeMigrationRequest, ResumeMigrationResponse, OperationMetadata>
resumeMigrationOperationSettings() {
return getStubSettingsBuilder().resumeMigrationOperationSettings();
}
/** Returns the builder for the settings used for calls to pauseMigration. */
public UnaryCallSettings.Builder pauseMigrationSettings() {
return getStubSettingsBuilder().pauseMigrationSettings();
}
/** Returns the builder for the settings used for calls to pauseMigration. */
public OperationCallSettings.Builder<
PauseMigrationRequest, PauseMigrationResponse, OperationMetadata>
pauseMigrationOperationSettings() {
return getStubSettingsBuilder().pauseMigrationOperationSettings();
}
/** Returns the builder for the settings used for calls to finalizeMigration. */
public UnaryCallSettings.Builder
finalizeMigrationSettings() {
return getStubSettingsBuilder().finalizeMigrationSettings();
}
/** Returns the builder for the settings used for calls to finalizeMigration. */
public OperationCallSettings.Builder<
FinalizeMigrationRequest, FinalizeMigrationResponse, OperationMetadata>
finalizeMigrationOperationSettings() {
return getStubSettingsBuilder().finalizeMigrationOperationSettings();
}
/** Returns the builder for the settings used for calls to createCloneJob. */
public UnaryCallSettings.Builder createCloneJobSettings() {
return getStubSettingsBuilder().createCloneJobSettings();
}
/** Returns the builder for the settings used for calls to createCloneJob. */
public OperationCallSettings.Builder
createCloneJobOperationSettings() {
return getStubSettingsBuilder().createCloneJobOperationSettings();
}
/** Returns the builder for the settings used for calls to cancelCloneJob. */
public UnaryCallSettings.Builder cancelCloneJobSettings() {
return getStubSettingsBuilder().cancelCloneJobSettings();
}
/** Returns the builder for the settings used for calls to cancelCloneJob. */
public OperationCallSettings.Builder<
CancelCloneJobRequest, CancelCloneJobResponse, OperationMetadata>
cancelCloneJobOperationSettings() {
return getStubSettingsBuilder().cancelCloneJobOperationSettings();
}
/** Returns the builder for the settings used for calls to listCloneJobs. */
public PagedCallSettings.Builder<
ListCloneJobsRequest, ListCloneJobsResponse, ListCloneJobsPagedResponse>
listCloneJobsSettings() {
return getStubSettingsBuilder().listCloneJobsSettings();
}
/** Returns the builder for the settings used for calls to getCloneJob. */
public UnaryCallSettings.Builder getCloneJobSettings() {
return getStubSettingsBuilder().getCloneJobSettings();
}
/** Returns the builder for the settings used for calls to createCutoverJob. */
public UnaryCallSettings.Builder
createCutoverJobSettings() {
return getStubSettingsBuilder().createCutoverJobSettings();
}
/** Returns the builder for the settings used for calls to createCutoverJob. */
public OperationCallSettings.Builder
createCutoverJobOperationSettings() {
return getStubSettingsBuilder().createCutoverJobOperationSettings();
}
/** Returns the builder for the settings used for calls to cancelCutoverJob. */
public UnaryCallSettings.Builder
cancelCutoverJobSettings() {
return getStubSettingsBuilder().cancelCutoverJobSettings();
}
/** Returns the builder for the settings used for calls to cancelCutoverJob. */
public OperationCallSettings.Builder<
CancelCutoverJobRequest, CancelCutoverJobResponse, OperationMetadata>
cancelCutoverJobOperationSettings() {
return getStubSettingsBuilder().cancelCutoverJobOperationSettings();
}
/** Returns the builder for the settings used for calls to listCutoverJobs. */
public PagedCallSettings.Builder<
ListCutoverJobsRequest, ListCutoverJobsResponse, ListCutoverJobsPagedResponse>
listCutoverJobsSettings() {
return getStubSettingsBuilder().listCutoverJobsSettings();
}
/** Returns the builder for the settings used for calls to getCutoverJob. */
public UnaryCallSettings.Builder getCutoverJobSettings() {
return getStubSettingsBuilder().getCutoverJobSettings();
}
/** Returns the builder for the settings used for calls to listGroups. */
public PagedCallSettings.Builder
listGroupsSettings() {
return getStubSettingsBuilder().listGroupsSettings();
}
/** Returns the builder for the settings used for calls to getGroup. */
public UnaryCallSettings.Builder getGroupSettings() {
return getStubSettingsBuilder().getGroupSettings();
}
/** Returns the builder for the settings used for calls to createGroup. */
public UnaryCallSettings.Builder createGroupSettings() {
return getStubSettingsBuilder().createGroupSettings();
}
/** Returns the builder for the settings used for calls to createGroup. */
public OperationCallSettings.Builder
createGroupOperationSettings() {
return getStubSettingsBuilder().createGroupOperationSettings();
}
/** Returns the builder for the settings used for calls to updateGroup. */
public UnaryCallSettings.Builder updateGroupSettings() {
return getStubSettingsBuilder().updateGroupSettings();
}
/** Returns the builder for the settings used for calls to updateGroup. */
public OperationCallSettings.Builder
updateGroupOperationSettings() {
return getStubSettingsBuilder().updateGroupOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteGroup. */
public UnaryCallSettings.Builder deleteGroupSettings() {
return getStubSettingsBuilder().deleteGroupSettings();
}
/** Returns the builder for the settings used for calls to deleteGroup. */
public OperationCallSettings.Builder
deleteGroupOperationSettings() {
return getStubSettingsBuilder().deleteGroupOperationSettings();
}
/** Returns the builder for the settings used for calls to addGroupMigration. */
public UnaryCallSettings.Builder
addGroupMigrationSettings() {
return getStubSettingsBuilder().addGroupMigrationSettings();
}
/** Returns the builder for the settings used for calls to addGroupMigration. */
public OperationCallSettings.Builder<
AddGroupMigrationRequest, AddGroupMigrationResponse, OperationMetadata>
addGroupMigrationOperationSettings() {
return getStubSettingsBuilder().addGroupMigrationOperationSettings();
}
/** Returns the builder for the settings used for calls to removeGroupMigration. */
public UnaryCallSettings.Builder
removeGroupMigrationSettings() {
return getStubSettingsBuilder().removeGroupMigrationSettings();
}
/** Returns the builder for the settings used for calls to removeGroupMigration. */
public OperationCallSettings.Builder<
RemoveGroupMigrationRequest, RemoveGroupMigrationResponse, OperationMetadata>
removeGroupMigrationOperationSettings() {
return getStubSettingsBuilder().removeGroupMigrationOperationSettings();
}
/** Returns the builder for the settings used for calls to listTargetProjects. */
public PagedCallSettings.Builder<
ListTargetProjectsRequest, ListTargetProjectsResponse, ListTargetProjectsPagedResponse>
listTargetProjectsSettings() {
return getStubSettingsBuilder().listTargetProjectsSettings();
}
/** Returns the builder for the settings used for calls to getTargetProject. */
public UnaryCallSettings.Builder
getTargetProjectSettings() {
return getStubSettingsBuilder().getTargetProjectSettings();
}
/** Returns the builder for the settings used for calls to createTargetProject. */
public UnaryCallSettings.Builder
createTargetProjectSettings() {
return getStubSettingsBuilder().createTargetProjectSettings();
}
/** Returns the builder for the settings used for calls to createTargetProject. */
public OperationCallSettings.Builder<
CreateTargetProjectRequest, TargetProject, OperationMetadata>
createTargetProjectOperationSettings() {
return getStubSettingsBuilder().createTargetProjectOperationSettings();
}
/** Returns the builder for the settings used for calls to updateTargetProject. */
public UnaryCallSettings.Builder
updateTargetProjectSettings() {
return getStubSettingsBuilder().updateTargetProjectSettings();
}
/** Returns the builder for the settings used for calls to updateTargetProject. */
public OperationCallSettings.Builder<
UpdateTargetProjectRequest, TargetProject, OperationMetadata>
updateTargetProjectOperationSettings() {
return getStubSettingsBuilder().updateTargetProjectOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteTargetProject. */
public UnaryCallSettings.Builder
deleteTargetProjectSettings() {
return getStubSettingsBuilder().deleteTargetProjectSettings();
}
/** Returns the builder for the settings used for calls to deleteTargetProject. */
public OperationCallSettings.Builder
deleteTargetProjectOperationSettings() {
return getStubSettingsBuilder().deleteTargetProjectOperationSettings();
}
/** Returns the builder for the settings used for calls to listReplicationCycles. */
public PagedCallSettings.Builder<
ListReplicationCyclesRequest,
ListReplicationCyclesResponse,
ListReplicationCyclesPagedResponse>
listReplicationCyclesSettings() {
return getStubSettingsBuilder().listReplicationCyclesSettings();
}
/** Returns the builder for the settings used for calls to getReplicationCycle. */
public UnaryCallSettings.Builder
getReplicationCycleSettings() {
return getStubSettingsBuilder().getReplicationCycleSettings();
}
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings() {
return getStubSettingsBuilder().listLocationsSettings();
}
/** Returns the builder for the settings used for calls to getLocation. */
public UnaryCallSettings.Builder getLocationSettings() {
return getStubSettingsBuilder().getLocationSettings();
}
@Override
public VmMigrationSettings build() throws IOException {
return new VmMigrationSettings(this);
}
}
}