com.google.cloud.netapp.v1.NetAppSettings Maven / Gradle / Ivy
/*
* 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.netapp.v1;
import static com.google.cloud.netapp.v1.NetAppClient.ListActiveDirectoriesPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListBackupPoliciesPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListBackupVaultsPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListBackupsPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListKmsConfigsPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListLocationsPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListReplicationsPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListSnapshotsPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListStoragePoolsPagedResponse;
import static com.google.cloud.netapp.v1.NetAppClient.ListVolumesPagedResponse;
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.netapp.v1.stub.NetAppStubSettings;
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 NetAppClient}.
*
* The default instance has everything set to sensible defaults:
*
*
* - The default service address (netapp.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 getStoragePool 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
* NetAppSettings.Builder netAppSettingsBuilder = NetAppSettings.newBuilder();
* netAppSettingsBuilder
* .getStoragePoolSettings()
* .setRetrySettings(
* netAppSettingsBuilder
* .getStoragePoolSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* NetAppSettings netAppSettings = netAppSettingsBuilder.build();
* }
*/
@Generated("by gapic-generator-java")
public class NetAppSettings extends ClientSettings {
/** Returns the object with the settings used for calls to listStoragePools. */
public PagedCallSettings<
ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse>
listStoragePoolsSettings() {
return ((NetAppStubSettings) getStubSettings()).listStoragePoolsSettings();
}
/** Returns the object with the settings used for calls to createStoragePool. */
public UnaryCallSettings createStoragePoolSettings() {
return ((NetAppStubSettings) getStubSettings()).createStoragePoolSettings();
}
/** Returns the object with the settings used for calls to createStoragePool. */
public OperationCallSettings
createStoragePoolOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createStoragePoolOperationSettings();
}
/** Returns the object with the settings used for calls to getStoragePool. */
public UnaryCallSettings getStoragePoolSettings() {
return ((NetAppStubSettings) getStubSettings()).getStoragePoolSettings();
}
/** Returns the object with the settings used for calls to updateStoragePool. */
public UnaryCallSettings updateStoragePoolSettings() {
return ((NetAppStubSettings) getStubSettings()).updateStoragePoolSettings();
}
/** Returns the object with the settings used for calls to updateStoragePool. */
public OperationCallSettings
updateStoragePoolOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateStoragePoolOperationSettings();
}
/** Returns the object with the settings used for calls to deleteStoragePool. */
public UnaryCallSettings deleteStoragePoolSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteStoragePoolSettings();
}
/** Returns the object with the settings used for calls to deleteStoragePool. */
public OperationCallSettings
deleteStoragePoolOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteStoragePoolOperationSettings();
}
/** Returns the object with the settings used for calls to listVolumes. */
public PagedCallSettings
listVolumesSettings() {
return ((NetAppStubSettings) getStubSettings()).listVolumesSettings();
}
/** Returns the object with the settings used for calls to getVolume. */
public UnaryCallSettings getVolumeSettings() {
return ((NetAppStubSettings) getStubSettings()).getVolumeSettings();
}
/** Returns the object with the settings used for calls to createVolume. */
public UnaryCallSettings createVolumeSettings() {
return ((NetAppStubSettings) getStubSettings()).createVolumeSettings();
}
/** Returns the object with the settings used for calls to createVolume. */
public OperationCallSettings
createVolumeOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createVolumeOperationSettings();
}
/** Returns the object with the settings used for calls to updateVolume. */
public UnaryCallSettings updateVolumeSettings() {
return ((NetAppStubSettings) getStubSettings()).updateVolumeSettings();
}
/** Returns the object with the settings used for calls to updateVolume. */
public OperationCallSettings
updateVolumeOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateVolumeOperationSettings();
}
/** Returns the object with the settings used for calls to deleteVolume. */
public UnaryCallSettings deleteVolumeSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteVolumeSettings();
}
/** Returns the object with the settings used for calls to deleteVolume. */
public OperationCallSettings
deleteVolumeOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteVolumeOperationSettings();
}
/** Returns the object with the settings used for calls to revertVolume. */
public UnaryCallSettings revertVolumeSettings() {
return ((NetAppStubSettings) getStubSettings()).revertVolumeSettings();
}
/** Returns the object with the settings used for calls to revertVolume. */
public OperationCallSettings
revertVolumeOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).revertVolumeOperationSettings();
}
/** Returns the object with the settings used for calls to listSnapshots. */
public PagedCallSettings
listSnapshotsSettings() {
return ((NetAppStubSettings) getStubSettings()).listSnapshotsSettings();
}
/** Returns the object with the settings used for calls to getSnapshot. */
public UnaryCallSettings getSnapshotSettings() {
return ((NetAppStubSettings) getStubSettings()).getSnapshotSettings();
}
/** Returns the object with the settings used for calls to createSnapshot. */
public UnaryCallSettings createSnapshotSettings() {
return ((NetAppStubSettings) getStubSettings()).createSnapshotSettings();
}
/** Returns the object with the settings used for calls to createSnapshot. */
public OperationCallSettings
createSnapshotOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createSnapshotOperationSettings();
}
/** Returns the object with the settings used for calls to deleteSnapshot. */
public UnaryCallSettings deleteSnapshotSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteSnapshotSettings();
}
/** Returns the object with the settings used for calls to deleteSnapshot. */
public OperationCallSettings
deleteSnapshotOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteSnapshotOperationSettings();
}
/** Returns the object with the settings used for calls to updateSnapshot. */
public UnaryCallSettings updateSnapshotSettings() {
return ((NetAppStubSettings) getStubSettings()).updateSnapshotSettings();
}
/** Returns the object with the settings used for calls to updateSnapshot. */
public OperationCallSettings
updateSnapshotOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateSnapshotOperationSettings();
}
/** Returns the object with the settings used for calls to listActiveDirectories. */
public PagedCallSettings<
ListActiveDirectoriesRequest,
ListActiveDirectoriesResponse,
ListActiveDirectoriesPagedResponse>
listActiveDirectoriesSettings() {
return ((NetAppStubSettings) getStubSettings()).listActiveDirectoriesSettings();
}
/** Returns the object with the settings used for calls to getActiveDirectory. */
public UnaryCallSettings
getActiveDirectorySettings() {
return ((NetAppStubSettings) getStubSettings()).getActiveDirectorySettings();
}
/** Returns the object with the settings used for calls to createActiveDirectory. */
public UnaryCallSettings
createActiveDirectorySettings() {
return ((NetAppStubSettings) getStubSettings()).createActiveDirectorySettings();
}
/** Returns the object with the settings used for calls to createActiveDirectory. */
public OperationCallSettings
createActiveDirectoryOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createActiveDirectoryOperationSettings();
}
/** Returns the object with the settings used for calls to updateActiveDirectory. */
public UnaryCallSettings
updateActiveDirectorySettings() {
return ((NetAppStubSettings) getStubSettings()).updateActiveDirectorySettings();
}
/** Returns the object with the settings used for calls to updateActiveDirectory. */
public OperationCallSettings
updateActiveDirectoryOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateActiveDirectoryOperationSettings();
}
/** Returns the object with the settings used for calls to deleteActiveDirectory. */
public UnaryCallSettings
deleteActiveDirectorySettings() {
return ((NetAppStubSettings) getStubSettings()).deleteActiveDirectorySettings();
}
/** Returns the object with the settings used for calls to deleteActiveDirectory. */
public OperationCallSettings
deleteActiveDirectoryOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteActiveDirectoryOperationSettings();
}
/** Returns the object with the settings used for calls to listKmsConfigs. */
public PagedCallSettings<
ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse>
listKmsConfigsSettings() {
return ((NetAppStubSettings) getStubSettings()).listKmsConfigsSettings();
}
/** Returns the object with the settings used for calls to createKmsConfig. */
public UnaryCallSettings createKmsConfigSettings() {
return ((NetAppStubSettings) getStubSettings()).createKmsConfigSettings();
}
/** Returns the object with the settings used for calls to createKmsConfig. */
public OperationCallSettings
createKmsConfigOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createKmsConfigOperationSettings();
}
/** Returns the object with the settings used for calls to getKmsConfig. */
public UnaryCallSettings getKmsConfigSettings() {
return ((NetAppStubSettings) getStubSettings()).getKmsConfigSettings();
}
/** Returns the object with the settings used for calls to updateKmsConfig. */
public UnaryCallSettings updateKmsConfigSettings() {
return ((NetAppStubSettings) getStubSettings()).updateKmsConfigSettings();
}
/** Returns the object with the settings used for calls to updateKmsConfig. */
public OperationCallSettings
updateKmsConfigOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateKmsConfigOperationSettings();
}
/** Returns the object with the settings used for calls to encryptVolumes. */
public UnaryCallSettings encryptVolumesSettings() {
return ((NetAppStubSettings) getStubSettings()).encryptVolumesSettings();
}
/** Returns the object with the settings used for calls to encryptVolumes. */
public OperationCallSettings
encryptVolumesOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).encryptVolumesOperationSettings();
}
/** Returns the object with the settings used for calls to verifyKmsConfig. */
public UnaryCallSettings
verifyKmsConfigSettings() {
return ((NetAppStubSettings) getStubSettings()).verifyKmsConfigSettings();
}
/** Returns the object with the settings used for calls to deleteKmsConfig. */
public UnaryCallSettings deleteKmsConfigSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteKmsConfigSettings();
}
/** Returns the object with the settings used for calls to deleteKmsConfig. */
public OperationCallSettings
deleteKmsConfigOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteKmsConfigOperationSettings();
}
/** Returns the object with the settings used for calls to listReplications. */
public PagedCallSettings<
ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse>
listReplicationsSettings() {
return ((NetAppStubSettings) getStubSettings()).listReplicationsSettings();
}
/** Returns the object with the settings used for calls to getReplication. */
public UnaryCallSettings getReplicationSettings() {
return ((NetAppStubSettings) getStubSettings()).getReplicationSettings();
}
/** Returns the object with the settings used for calls to createReplication. */
public UnaryCallSettings createReplicationSettings() {
return ((NetAppStubSettings) getStubSettings()).createReplicationSettings();
}
/** Returns the object with the settings used for calls to createReplication. */
public OperationCallSettings
createReplicationOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createReplicationOperationSettings();
}
/** Returns the object with the settings used for calls to deleteReplication. */
public UnaryCallSettings deleteReplicationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteReplicationSettings();
}
/** Returns the object with the settings used for calls to deleteReplication. */
public OperationCallSettings
deleteReplicationOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteReplicationOperationSettings();
}
/** Returns the object with the settings used for calls to updateReplication. */
public UnaryCallSettings updateReplicationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateReplicationSettings();
}
/** Returns the object with the settings used for calls to updateReplication. */
public OperationCallSettings
updateReplicationOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateReplicationOperationSettings();
}
/** Returns the object with the settings used for calls to stopReplication. */
public UnaryCallSettings stopReplicationSettings() {
return ((NetAppStubSettings) getStubSettings()).stopReplicationSettings();
}
/** Returns the object with the settings used for calls to stopReplication. */
public OperationCallSettings
stopReplicationOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).stopReplicationOperationSettings();
}
/** Returns the object with the settings used for calls to resumeReplication. */
public UnaryCallSettings resumeReplicationSettings() {
return ((NetAppStubSettings) getStubSettings()).resumeReplicationSettings();
}
/** Returns the object with the settings used for calls to resumeReplication. */
public OperationCallSettings
resumeReplicationOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).resumeReplicationOperationSettings();
}
/** Returns the object with the settings used for calls to reverseReplicationDirection. */
public UnaryCallSettings
reverseReplicationDirectionSettings() {
return ((NetAppStubSettings) getStubSettings()).reverseReplicationDirectionSettings();
}
/** Returns the object with the settings used for calls to reverseReplicationDirection. */
public OperationCallSettings
reverseReplicationDirectionOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).reverseReplicationDirectionOperationSettings();
}
/** Returns the object with the settings used for calls to createBackupVault. */
public UnaryCallSettings createBackupVaultSettings() {
return ((NetAppStubSettings) getStubSettings()).createBackupVaultSettings();
}
/** Returns the object with the settings used for calls to createBackupVault. */
public OperationCallSettings
createBackupVaultOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createBackupVaultOperationSettings();
}
/** Returns the object with the settings used for calls to getBackupVault. */
public UnaryCallSettings getBackupVaultSettings() {
return ((NetAppStubSettings) getStubSettings()).getBackupVaultSettings();
}
/** Returns the object with the settings used for calls to listBackupVaults. */
public PagedCallSettings<
ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse>
listBackupVaultsSettings() {
return ((NetAppStubSettings) getStubSettings()).listBackupVaultsSettings();
}
/** Returns the object with the settings used for calls to updateBackupVault. */
public UnaryCallSettings updateBackupVaultSettings() {
return ((NetAppStubSettings) getStubSettings()).updateBackupVaultSettings();
}
/** Returns the object with the settings used for calls to updateBackupVault. */
public OperationCallSettings
updateBackupVaultOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateBackupVaultOperationSettings();
}
/** Returns the object with the settings used for calls to deleteBackupVault. */
public UnaryCallSettings deleteBackupVaultSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteBackupVaultSettings();
}
/** Returns the object with the settings used for calls to deleteBackupVault. */
public OperationCallSettings
deleteBackupVaultOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteBackupVaultOperationSettings();
}
/** Returns the object with the settings used for calls to createBackup. */
public UnaryCallSettings createBackupSettings() {
return ((NetAppStubSettings) getStubSettings()).createBackupSettings();
}
/** Returns the object with the settings used for calls to createBackup. */
public OperationCallSettings
createBackupOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createBackupOperationSettings();
}
/** Returns the object with the settings used for calls to getBackup. */
public UnaryCallSettings getBackupSettings() {
return ((NetAppStubSettings) getStubSettings()).getBackupSettings();
}
/** Returns the object with the settings used for calls to listBackups. */
public PagedCallSettings
listBackupsSettings() {
return ((NetAppStubSettings) getStubSettings()).listBackupsSettings();
}
/** Returns the object with the settings used for calls to deleteBackup. */
public UnaryCallSettings deleteBackupSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteBackupSettings();
}
/** Returns the object with the settings used for calls to deleteBackup. */
public OperationCallSettings
deleteBackupOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteBackupOperationSettings();
}
/** Returns the object with the settings used for calls to updateBackup. */
public UnaryCallSettings updateBackupSettings() {
return ((NetAppStubSettings) getStubSettings()).updateBackupSettings();
}
/** Returns the object with the settings used for calls to updateBackup. */
public OperationCallSettings
updateBackupOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateBackupOperationSettings();
}
/** Returns the object with the settings used for calls to createBackupPolicy. */
public UnaryCallSettings createBackupPolicySettings() {
return ((NetAppStubSettings) getStubSettings()).createBackupPolicySettings();
}
/** Returns the object with the settings used for calls to createBackupPolicy. */
public OperationCallSettings
createBackupPolicyOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).createBackupPolicyOperationSettings();
}
/** Returns the object with the settings used for calls to getBackupPolicy. */
public UnaryCallSettings getBackupPolicySettings() {
return ((NetAppStubSettings) getStubSettings()).getBackupPolicySettings();
}
/** Returns the object with the settings used for calls to listBackupPolicies. */
public PagedCallSettings<
ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse>
listBackupPoliciesSettings() {
return ((NetAppStubSettings) getStubSettings()).listBackupPoliciesSettings();
}
/** Returns the object with the settings used for calls to updateBackupPolicy. */
public UnaryCallSettings updateBackupPolicySettings() {
return ((NetAppStubSettings) getStubSettings()).updateBackupPolicySettings();
}
/** Returns the object with the settings used for calls to updateBackupPolicy. */
public OperationCallSettings
updateBackupPolicyOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).updateBackupPolicyOperationSettings();
}
/** Returns the object with the settings used for calls to deleteBackupPolicy. */
public UnaryCallSettings deleteBackupPolicySettings() {
return ((NetAppStubSettings) getStubSettings()).deleteBackupPolicySettings();
}
/** Returns the object with the settings used for calls to deleteBackupPolicy. */
public OperationCallSettings
deleteBackupPolicyOperationSettings() {
return ((NetAppStubSettings) getStubSettings()).deleteBackupPolicyOperationSettings();
}
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
return ((NetAppStubSettings) getStubSettings()).listLocationsSettings();
}
/** Returns the object with the settings used for calls to getLocation. */
public UnaryCallSettings getLocationSettings() {
return ((NetAppStubSettings) getStubSettings()).getLocationSettings();
}
public static final NetAppSettings create(NetAppStubSettings stub) throws IOException {
return new NetAppSettings.Builder(stub.toBuilder()).build();
}
/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return NetAppStubSettings.defaultExecutorProviderBuilder();
}
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return NetAppStubSettings.getDefaultEndpoint();
}
/** Returns the default service scopes. */
public static List getDefaultServiceScopes() {
return NetAppStubSettings.getDefaultServiceScopes();
}
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return NetAppStubSettings.defaultCredentialsProviderBuilder();
}
/** Returns a builder for the default gRPC ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return NetAppStubSettings.defaultGrpcTransportProviderBuilder();
}
/** Returns a builder for the default REST ChannelProvider for this service. */
@BetaApi
public static InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder() {
return NetAppStubSettings.defaultHttpJsonTransportProviderBuilder();
}
public static TransportChannelProvider defaultTransportChannelProvider() {
return NetAppStubSettings.defaultTransportChannelProvider();
}
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return NetAppStubSettings.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 NetAppSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
}
/** Builder for NetAppSettings. */
public static class Builder extends ClientSettings.Builder {
protected Builder() throws IOException {
this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(NetAppStubSettings.newBuilder(clientContext));
}
protected Builder(NetAppSettings settings) {
super(settings.getStubSettings().toBuilder());
}
protected Builder(NetAppStubSettings.Builder stubSettings) {
super(stubSettings);
}
private static Builder createDefault() {
return new Builder(NetAppStubSettings.newBuilder());
}
private static Builder createHttpJsonDefault() {
return new Builder(NetAppStubSettings.newHttpJsonBuilder());
}
public NetAppStubSettings.Builder getStubSettingsBuilder() {
return ((NetAppStubSettings.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 listStoragePools. */
public PagedCallSettings.Builder<
ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse>
listStoragePoolsSettings() {
return getStubSettingsBuilder().listStoragePoolsSettings();
}
/** Returns the builder for the settings used for calls to createStoragePool. */
public UnaryCallSettings.Builder
createStoragePoolSettings() {
return getStubSettingsBuilder().createStoragePoolSettings();
}
/** Returns the builder for the settings used for calls to createStoragePool. */
public OperationCallSettings.Builder
createStoragePoolOperationSettings() {
return getStubSettingsBuilder().createStoragePoolOperationSettings();
}
/** Returns the builder for the settings used for calls to getStoragePool. */
public UnaryCallSettings.Builder getStoragePoolSettings() {
return getStubSettingsBuilder().getStoragePoolSettings();
}
/** Returns the builder for the settings used for calls to updateStoragePool. */
public UnaryCallSettings.Builder
updateStoragePoolSettings() {
return getStubSettingsBuilder().updateStoragePoolSettings();
}
/** Returns the builder for the settings used for calls to updateStoragePool. */
public OperationCallSettings.Builder
updateStoragePoolOperationSettings() {
return getStubSettingsBuilder().updateStoragePoolOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteStoragePool. */
public UnaryCallSettings.Builder
deleteStoragePoolSettings() {
return getStubSettingsBuilder().deleteStoragePoolSettings();
}
/** Returns the builder for the settings used for calls to deleteStoragePool. */
public OperationCallSettings.Builder
deleteStoragePoolOperationSettings() {
return getStubSettingsBuilder().deleteStoragePoolOperationSettings();
}
/** Returns the builder for the settings used for calls to listVolumes. */
public PagedCallSettings.Builder<
ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse>
listVolumesSettings() {
return getStubSettingsBuilder().listVolumesSettings();
}
/** Returns the builder for the settings used for calls to getVolume. */
public UnaryCallSettings.Builder getVolumeSettings() {
return getStubSettingsBuilder().getVolumeSettings();
}
/** Returns the builder for the settings used for calls to createVolume. */
public UnaryCallSettings.Builder createVolumeSettings() {
return getStubSettingsBuilder().createVolumeSettings();
}
/** Returns the builder for the settings used for calls to createVolume. */
public OperationCallSettings.Builder
createVolumeOperationSettings() {
return getStubSettingsBuilder().createVolumeOperationSettings();
}
/** Returns the builder for the settings used for calls to updateVolume. */
public UnaryCallSettings.Builder updateVolumeSettings() {
return getStubSettingsBuilder().updateVolumeSettings();
}
/** Returns the builder for the settings used for calls to updateVolume. */
public OperationCallSettings.Builder
updateVolumeOperationSettings() {
return getStubSettingsBuilder().updateVolumeOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteVolume. */
public UnaryCallSettings.Builder deleteVolumeSettings() {
return getStubSettingsBuilder().deleteVolumeSettings();
}
/** Returns the builder for the settings used for calls to deleteVolume. */
public OperationCallSettings.Builder
deleteVolumeOperationSettings() {
return getStubSettingsBuilder().deleteVolumeOperationSettings();
}
/** Returns the builder for the settings used for calls to revertVolume. */
public UnaryCallSettings.Builder revertVolumeSettings() {
return getStubSettingsBuilder().revertVolumeSettings();
}
/** Returns the builder for the settings used for calls to revertVolume. */
public OperationCallSettings.Builder
revertVolumeOperationSettings() {
return getStubSettingsBuilder().revertVolumeOperationSettings();
}
/** Returns the builder for the settings used for calls to listSnapshots. */
public PagedCallSettings.Builder<
ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>
listSnapshotsSettings() {
return getStubSettingsBuilder().listSnapshotsSettings();
}
/** Returns the builder for the settings used for calls to getSnapshot. */
public UnaryCallSettings.Builder getSnapshotSettings() {
return getStubSettingsBuilder().getSnapshotSettings();
}
/** Returns the builder for the settings used for calls to createSnapshot. */
public UnaryCallSettings.Builder createSnapshotSettings() {
return getStubSettingsBuilder().createSnapshotSettings();
}
/** Returns the builder for the settings used for calls to createSnapshot. */
public OperationCallSettings.Builder
createSnapshotOperationSettings() {
return getStubSettingsBuilder().createSnapshotOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteSnapshot. */
public UnaryCallSettings.Builder deleteSnapshotSettings() {
return getStubSettingsBuilder().deleteSnapshotSettings();
}
/** Returns the builder for the settings used for calls to deleteSnapshot. */
public OperationCallSettings.Builder
deleteSnapshotOperationSettings() {
return getStubSettingsBuilder().deleteSnapshotOperationSettings();
}
/** Returns the builder for the settings used for calls to updateSnapshot. */
public UnaryCallSettings.Builder updateSnapshotSettings() {
return getStubSettingsBuilder().updateSnapshotSettings();
}
/** Returns the builder for the settings used for calls to updateSnapshot. */
public OperationCallSettings.Builder
updateSnapshotOperationSettings() {
return getStubSettingsBuilder().updateSnapshotOperationSettings();
}
/** Returns the builder for the settings used for calls to listActiveDirectories. */
public PagedCallSettings.Builder<
ListActiveDirectoriesRequest,
ListActiveDirectoriesResponse,
ListActiveDirectoriesPagedResponse>
listActiveDirectoriesSettings() {
return getStubSettingsBuilder().listActiveDirectoriesSettings();
}
/** Returns the builder for the settings used for calls to getActiveDirectory. */
public UnaryCallSettings.Builder
getActiveDirectorySettings() {
return getStubSettingsBuilder().getActiveDirectorySettings();
}
/** Returns the builder for the settings used for calls to createActiveDirectory. */
public UnaryCallSettings.Builder
createActiveDirectorySettings() {
return getStubSettingsBuilder().createActiveDirectorySettings();
}
/** Returns the builder for the settings used for calls to createActiveDirectory. */
public OperationCallSettings.Builder<
CreateActiveDirectoryRequest, ActiveDirectory, OperationMetadata>
createActiveDirectoryOperationSettings() {
return getStubSettingsBuilder().createActiveDirectoryOperationSettings();
}
/** Returns the builder for the settings used for calls to updateActiveDirectory. */
public UnaryCallSettings.Builder
updateActiveDirectorySettings() {
return getStubSettingsBuilder().updateActiveDirectorySettings();
}
/** Returns the builder for the settings used for calls to updateActiveDirectory. */
public OperationCallSettings.Builder<
UpdateActiveDirectoryRequest, ActiveDirectory, OperationMetadata>
updateActiveDirectoryOperationSettings() {
return getStubSettingsBuilder().updateActiveDirectoryOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteActiveDirectory. */
public UnaryCallSettings.Builder
deleteActiveDirectorySettings() {
return getStubSettingsBuilder().deleteActiveDirectorySettings();
}
/** Returns the builder for the settings used for calls to deleteActiveDirectory. */
public OperationCallSettings.Builder
deleteActiveDirectoryOperationSettings() {
return getStubSettingsBuilder().deleteActiveDirectoryOperationSettings();
}
/** Returns the builder for the settings used for calls to listKmsConfigs. */
public PagedCallSettings.Builder<
ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse>
listKmsConfigsSettings() {
return getStubSettingsBuilder().listKmsConfigsSettings();
}
/** Returns the builder for the settings used for calls to createKmsConfig. */
public UnaryCallSettings.Builder createKmsConfigSettings() {
return getStubSettingsBuilder().createKmsConfigSettings();
}
/** Returns the builder for the settings used for calls to createKmsConfig. */
public OperationCallSettings.Builder
createKmsConfigOperationSettings() {
return getStubSettingsBuilder().createKmsConfigOperationSettings();
}
/** Returns the builder for the settings used for calls to getKmsConfig. */
public UnaryCallSettings.Builder getKmsConfigSettings() {
return getStubSettingsBuilder().getKmsConfigSettings();
}
/** Returns the builder for the settings used for calls to updateKmsConfig. */
public UnaryCallSettings.Builder updateKmsConfigSettings() {
return getStubSettingsBuilder().updateKmsConfigSettings();
}
/** Returns the builder for the settings used for calls to updateKmsConfig. */
public OperationCallSettings.Builder
updateKmsConfigOperationSettings() {
return getStubSettingsBuilder().updateKmsConfigOperationSettings();
}
/** Returns the builder for the settings used for calls to encryptVolumes. */
public UnaryCallSettings.Builder encryptVolumesSettings() {
return getStubSettingsBuilder().encryptVolumesSettings();
}
/** Returns the builder for the settings used for calls to encryptVolumes. */
public OperationCallSettings.Builder
encryptVolumesOperationSettings() {
return getStubSettingsBuilder().encryptVolumesOperationSettings();
}
/** Returns the builder for the settings used for calls to verifyKmsConfig. */
public UnaryCallSettings.Builder
verifyKmsConfigSettings() {
return getStubSettingsBuilder().verifyKmsConfigSettings();
}
/** Returns the builder for the settings used for calls to deleteKmsConfig. */
public UnaryCallSettings.Builder deleteKmsConfigSettings() {
return getStubSettingsBuilder().deleteKmsConfigSettings();
}
/** Returns the builder for the settings used for calls to deleteKmsConfig. */
public OperationCallSettings.Builder
deleteKmsConfigOperationSettings() {
return getStubSettingsBuilder().deleteKmsConfigOperationSettings();
}
/** Returns the builder for the settings used for calls to listReplications. */
public PagedCallSettings.Builder<
ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse>
listReplicationsSettings() {
return getStubSettingsBuilder().listReplicationsSettings();
}
/** Returns the builder for the settings used for calls to getReplication. */
public UnaryCallSettings.Builder getReplicationSettings() {
return getStubSettingsBuilder().getReplicationSettings();
}
/** Returns the builder for the settings used for calls to createReplication. */
public UnaryCallSettings.Builder
createReplicationSettings() {
return getStubSettingsBuilder().createReplicationSettings();
}
/** Returns the builder for the settings used for calls to createReplication. */
public OperationCallSettings.Builder
createReplicationOperationSettings() {
return getStubSettingsBuilder().createReplicationOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteReplication. */
public UnaryCallSettings.Builder
deleteReplicationSettings() {
return getStubSettingsBuilder().deleteReplicationSettings();
}
/** Returns the builder for the settings used for calls to deleteReplication. */
public OperationCallSettings.Builder
deleteReplicationOperationSettings() {
return getStubSettingsBuilder().deleteReplicationOperationSettings();
}
/** Returns the builder for the settings used for calls to updateReplication. */
public UnaryCallSettings.Builder
updateReplicationSettings() {
return getStubSettingsBuilder().updateReplicationSettings();
}
/** Returns the builder for the settings used for calls to updateReplication. */
public OperationCallSettings.Builder
updateReplicationOperationSettings() {
return getStubSettingsBuilder().updateReplicationOperationSettings();
}
/** Returns the builder for the settings used for calls to stopReplication. */
public UnaryCallSettings.Builder stopReplicationSettings() {
return getStubSettingsBuilder().stopReplicationSettings();
}
/** Returns the builder for the settings used for calls to stopReplication. */
public OperationCallSettings.Builder
stopReplicationOperationSettings() {
return getStubSettingsBuilder().stopReplicationOperationSettings();
}
/** Returns the builder for the settings used for calls to resumeReplication. */
public UnaryCallSettings.Builder
resumeReplicationSettings() {
return getStubSettingsBuilder().resumeReplicationSettings();
}
/** Returns the builder for the settings used for calls to resumeReplication. */
public OperationCallSettings.Builder
resumeReplicationOperationSettings() {
return getStubSettingsBuilder().resumeReplicationOperationSettings();
}
/** Returns the builder for the settings used for calls to reverseReplicationDirection. */
public UnaryCallSettings.Builder
reverseReplicationDirectionSettings() {
return getStubSettingsBuilder().reverseReplicationDirectionSettings();
}
/** Returns the builder for the settings used for calls to reverseReplicationDirection. */
public OperationCallSettings.Builder<
ReverseReplicationDirectionRequest, Replication, OperationMetadata>
reverseReplicationDirectionOperationSettings() {
return getStubSettingsBuilder().reverseReplicationDirectionOperationSettings();
}
/** Returns the builder for the settings used for calls to createBackupVault. */
public UnaryCallSettings.Builder
createBackupVaultSettings() {
return getStubSettingsBuilder().createBackupVaultSettings();
}
/** Returns the builder for the settings used for calls to createBackupVault. */
public OperationCallSettings.Builder
createBackupVaultOperationSettings() {
return getStubSettingsBuilder().createBackupVaultOperationSettings();
}
/** Returns the builder for the settings used for calls to getBackupVault. */
public UnaryCallSettings.Builder getBackupVaultSettings() {
return getStubSettingsBuilder().getBackupVaultSettings();
}
/** Returns the builder for the settings used for calls to listBackupVaults. */
public PagedCallSettings.Builder<
ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse>
listBackupVaultsSettings() {
return getStubSettingsBuilder().listBackupVaultsSettings();
}
/** Returns the builder for the settings used for calls to updateBackupVault. */
public UnaryCallSettings.Builder
updateBackupVaultSettings() {
return getStubSettingsBuilder().updateBackupVaultSettings();
}
/** Returns the builder for the settings used for calls to updateBackupVault. */
public OperationCallSettings.Builder
updateBackupVaultOperationSettings() {
return getStubSettingsBuilder().updateBackupVaultOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteBackupVault. */
public UnaryCallSettings.Builder
deleteBackupVaultSettings() {
return getStubSettingsBuilder().deleteBackupVaultSettings();
}
/** Returns the builder for the settings used for calls to deleteBackupVault. */
public OperationCallSettings.Builder
deleteBackupVaultOperationSettings() {
return getStubSettingsBuilder().deleteBackupVaultOperationSettings();
}
/** Returns the builder for the settings used for calls to createBackup. */
public UnaryCallSettings.Builder createBackupSettings() {
return getStubSettingsBuilder().createBackupSettings();
}
/** Returns the builder for the settings used for calls to createBackup. */
public OperationCallSettings.Builder
createBackupOperationSettings() {
return getStubSettingsBuilder().createBackupOperationSettings();
}
/** Returns the builder for the settings used for calls to getBackup. */
public UnaryCallSettings.Builder getBackupSettings() {
return getStubSettingsBuilder().getBackupSettings();
}
/** Returns the builder for the settings used for calls to listBackups. */
public PagedCallSettings.Builder<
ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
listBackupsSettings() {
return getStubSettingsBuilder().listBackupsSettings();
}
/** Returns the builder for the settings used for calls to deleteBackup. */
public UnaryCallSettings.Builder deleteBackupSettings() {
return getStubSettingsBuilder().deleteBackupSettings();
}
/** Returns the builder for the settings used for calls to deleteBackup. */
public OperationCallSettings.Builder
deleteBackupOperationSettings() {
return getStubSettingsBuilder().deleteBackupOperationSettings();
}
/** Returns the builder for the settings used for calls to updateBackup. */
public UnaryCallSettings.Builder updateBackupSettings() {
return getStubSettingsBuilder().updateBackupSettings();
}
/** Returns the builder for the settings used for calls to updateBackup. */
public OperationCallSettings.Builder
updateBackupOperationSettings() {
return getStubSettingsBuilder().updateBackupOperationSettings();
}
/** Returns the builder for the settings used for calls to createBackupPolicy. */
public UnaryCallSettings.Builder
createBackupPolicySettings() {
return getStubSettingsBuilder().createBackupPolicySettings();
}
/** Returns the builder for the settings used for calls to createBackupPolicy. */
public OperationCallSettings.Builder
createBackupPolicyOperationSettings() {
return getStubSettingsBuilder().createBackupPolicyOperationSettings();
}
/** Returns the builder for the settings used for calls to getBackupPolicy. */
public UnaryCallSettings.Builder
getBackupPolicySettings() {
return getStubSettingsBuilder().getBackupPolicySettings();
}
/** Returns the builder for the settings used for calls to listBackupPolicies. */
public PagedCallSettings.Builder<
ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse>
listBackupPoliciesSettings() {
return getStubSettingsBuilder().listBackupPoliciesSettings();
}
/** Returns the builder for the settings used for calls to updateBackupPolicy. */
public UnaryCallSettings.Builder
updateBackupPolicySettings() {
return getStubSettingsBuilder().updateBackupPolicySettings();
}
/** Returns the builder for the settings used for calls to updateBackupPolicy. */
public OperationCallSettings.Builder
updateBackupPolicyOperationSettings() {
return getStubSettingsBuilder().updateBackupPolicyOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteBackupPolicy. */
public UnaryCallSettings.Builder
deleteBackupPolicySettings() {
return getStubSettingsBuilder().deleteBackupPolicySettings();
}
/** Returns the builder for the settings used for calls to deleteBackupPolicy. */
public OperationCallSettings.Builder
deleteBackupPolicyOperationSettings() {
return getStubSettingsBuilder().deleteBackupPolicyOperationSettings();
}
/** 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 NetAppSettings build() throws IOException {
return new NetAppSettings(this);
}
}
}