All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.netapp.v1.stub.NetAppStubSettings Maven / Gradle / Ivy

Go to download

NetApp API Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability.

The newest version!
/*
 * 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.stub;

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.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.GaxGrpcProperties;
import com.google.api.gax.grpc.GrpcTransportChannel;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
import com.google.api.gax.grpc.ProtoOperationTransformers;
import com.google.api.gax.httpjson.GaxHttpJsonProperties;
import com.google.api.gax.httpjson.HttpJsonTransportChannel;
import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
import com.google.api.gax.longrunning.OperationSnapshot;
import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
import com.google.api.gax.retrying.RetrySettings;
import com.google.api.gax.rpc.ApiCallContext;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.PagedListDescriptor;
import com.google.api.gax.rpc.PagedListResponseFactory;
import com.google.api.gax.rpc.StatusCode;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
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.ActiveDirectory;
import com.google.cloud.netapp.v1.Backup;
import com.google.cloud.netapp.v1.BackupPolicy;
import com.google.cloud.netapp.v1.BackupVault;
import com.google.cloud.netapp.v1.CreateActiveDirectoryRequest;
import com.google.cloud.netapp.v1.CreateBackupPolicyRequest;
import com.google.cloud.netapp.v1.CreateBackupRequest;
import com.google.cloud.netapp.v1.CreateBackupVaultRequest;
import com.google.cloud.netapp.v1.CreateKmsConfigRequest;
import com.google.cloud.netapp.v1.CreateReplicationRequest;
import com.google.cloud.netapp.v1.CreateSnapshotRequest;
import com.google.cloud.netapp.v1.CreateStoragePoolRequest;
import com.google.cloud.netapp.v1.CreateVolumeRequest;
import com.google.cloud.netapp.v1.DeleteActiveDirectoryRequest;
import com.google.cloud.netapp.v1.DeleteBackupPolicyRequest;
import com.google.cloud.netapp.v1.DeleteBackupRequest;
import com.google.cloud.netapp.v1.DeleteBackupVaultRequest;
import com.google.cloud.netapp.v1.DeleteKmsConfigRequest;
import com.google.cloud.netapp.v1.DeleteReplicationRequest;
import com.google.cloud.netapp.v1.DeleteSnapshotRequest;
import com.google.cloud.netapp.v1.DeleteStoragePoolRequest;
import com.google.cloud.netapp.v1.DeleteVolumeRequest;
import com.google.cloud.netapp.v1.EncryptVolumesRequest;
import com.google.cloud.netapp.v1.GetActiveDirectoryRequest;
import com.google.cloud.netapp.v1.GetBackupPolicyRequest;
import com.google.cloud.netapp.v1.GetBackupRequest;
import com.google.cloud.netapp.v1.GetBackupVaultRequest;
import com.google.cloud.netapp.v1.GetKmsConfigRequest;
import com.google.cloud.netapp.v1.GetReplicationRequest;
import com.google.cloud.netapp.v1.GetSnapshotRequest;
import com.google.cloud.netapp.v1.GetStoragePoolRequest;
import com.google.cloud.netapp.v1.GetVolumeRequest;
import com.google.cloud.netapp.v1.KmsConfig;
import com.google.cloud.netapp.v1.ListActiveDirectoriesRequest;
import com.google.cloud.netapp.v1.ListActiveDirectoriesResponse;
import com.google.cloud.netapp.v1.ListBackupPoliciesRequest;
import com.google.cloud.netapp.v1.ListBackupPoliciesResponse;
import com.google.cloud.netapp.v1.ListBackupVaultsRequest;
import com.google.cloud.netapp.v1.ListBackupVaultsResponse;
import com.google.cloud.netapp.v1.ListBackupsRequest;
import com.google.cloud.netapp.v1.ListBackupsResponse;
import com.google.cloud.netapp.v1.ListKmsConfigsRequest;
import com.google.cloud.netapp.v1.ListKmsConfigsResponse;
import com.google.cloud.netapp.v1.ListReplicationsRequest;
import com.google.cloud.netapp.v1.ListReplicationsResponse;
import com.google.cloud.netapp.v1.ListSnapshotsRequest;
import com.google.cloud.netapp.v1.ListSnapshotsResponse;
import com.google.cloud.netapp.v1.ListStoragePoolsRequest;
import com.google.cloud.netapp.v1.ListStoragePoolsResponse;
import com.google.cloud.netapp.v1.ListVolumesRequest;
import com.google.cloud.netapp.v1.ListVolumesResponse;
import com.google.cloud.netapp.v1.OperationMetadata;
import com.google.cloud.netapp.v1.Replication;
import com.google.cloud.netapp.v1.ResumeReplicationRequest;
import com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest;
import com.google.cloud.netapp.v1.RevertVolumeRequest;
import com.google.cloud.netapp.v1.Snapshot;
import com.google.cloud.netapp.v1.StopReplicationRequest;
import com.google.cloud.netapp.v1.StoragePool;
import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest;
import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest;
import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest;
import com.google.cloud.netapp.v1.UpdateBackupRequest;
import com.google.cloud.netapp.v1.UpdateBackupVaultRequest;
import com.google.cloud.netapp.v1.UpdateKmsConfigRequest;
import com.google.cloud.netapp.v1.UpdateReplicationRequest;
import com.google.cloud.netapp.v1.UpdateSnapshotRequest;
import com.google.cloud.netapp.v1.UpdateStoragePoolRequest;
import com.google.cloud.netapp.v1.UpdateVolumeRequest;
import com.google.cloud.netapp.v1.VerifyKmsConfigRequest;
import com.google.cloud.netapp.v1.VerifyKmsConfigResponse;
import com.google.cloud.netapp.v1.Volume;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
import org.threeten.bp.Duration;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * Settings class to configure an instance of {@link NetAppStub}.
 *
 * 

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 * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) * of getStoragePool: * *

{@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
 * NetAppStubSettings.Builder netAppSettingsBuilder = NetAppStubSettings.newBuilder();
 * netAppSettingsBuilder
 *     .getStoragePoolSettings()
 *     .setRetrySettings(
 *         netAppSettingsBuilder
 *             .getStoragePoolSettings()
 *             .getRetrySettings()
 *             .toBuilder()
 *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
 *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
 *             .setMaxAttempts(5)
 *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
 *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
 *             .setRetryDelayMultiplier(1.3)
 *             .setRpcTimeoutMultiplier(1.5)
 *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
 *             .build());
 * NetAppStubSettings netAppSettings = netAppSettingsBuilder.build();
 * }
* * Please refer to the [Client Side Retry * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for * additional support in setting retries. * *

To configure the RetrySettings of a Long Running Operation method, create an * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to * configure the RetrySettings for createStoragePool: * *

{@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
 * NetAppStubSettings.Builder netAppSettingsBuilder = NetAppStubSettings.newBuilder();
 * TimedRetryAlgorithm timedRetryAlgorithm =
 *     OperationalTimedPollAlgorithm.create(
 *         RetrySettings.newBuilder()
 *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
 *             .setRetryDelayMultiplier(1.5)
 *             .setMaxRetryDelay(Duration.ofMillis(5000))
 *             .setTotalTimeoutDuration(Duration.ofHours(24))
 *             .build());
 * netAppSettingsBuilder
 *     .createClusterOperationSettings()
 *     .setPollingAlgorithm(timedRetryAlgorithm)
 *     .build();
 * }
*/ @Generated("by gapic-generator-java") public class NetAppStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse> listStoragePoolsSettings; private final UnaryCallSettings createStoragePoolSettings; private final OperationCallSettings createStoragePoolOperationSettings; private final UnaryCallSettings getStoragePoolSettings; private final UnaryCallSettings updateStoragePoolSettings; private final OperationCallSettings updateStoragePoolOperationSettings; private final UnaryCallSettings deleteStoragePoolSettings; private final OperationCallSettings deleteStoragePoolOperationSettings; private final UnaryCallSettings switchActiveReplicaZoneSettings; private final OperationCallSettings< SwitchActiveReplicaZoneRequest, StoragePool, OperationMetadata> switchActiveReplicaZoneOperationSettings; private final PagedCallSettings listVolumesSettings; private final UnaryCallSettings getVolumeSettings; private final UnaryCallSettings createVolumeSettings; private final OperationCallSettings createVolumeOperationSettings; private final UnaryCallSettings updateVolumeSettings; private final OperationCallSettings updateVolumeOperationSettings; private final UnaryCallSettings deleteVolumeSettings; private final OperationCallSettings deleteVolumeOperationSettings; private final UnaryCallSettings revertVolumeSettings; private final OperationCallSettings revertVolumeOperationSettings; private final PagedCallSettings< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> listSnapshotsSettings; private final UnaryCallSettings getSnapshotSettings; private final UnaryCallSettings createSnapshotSettings; private final OperationCallSettings createSnapshotOperationSettings; private final UnaryCallSettings deleteSnapshotSettings; private final OperationCallSettings deleteSnapshotOperationSettings; private final UnaryCallSettings updateSnapshotSettings; private final OperationCallSettings updateSnapshotOperationSettings; private final PagedCallSettings< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ListActiveDirectoriesPagedResponse> listActiveDirectoriesSettings; private final UnaryCallSettings getActiveDirectorySettings; private final UnaryCallSettings createActiveDirectorySettings; private final OperationCallSettings< CreateActiveDirectoryRequest, ActiveDirectory, OperationMetadata> createActiveDirectoryOperationSettings; private final UnaryCallSettings updateActiveDirectorySettings; private final OperationCallSettings< UpdateActiveDirectoryRequest, ActiveDirectory, OperationMetadata> updateActiveDirectoryOperationSettings; private final UnaryCallSettings deleteActiveDirectorySettings; private final OperationCallSettings deleteActiveDirectoryOperationSettings; private final PagedCallSettings< ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse> listKmsConfigsSettings; private final UnaryCallSettings createKmsConfigSettings; private final OperationCallSettings createKmsConfigOperationSettings; private final UnaryCallSettings getKmsConfigSettings; private final UnaryCallSettings updateKmsConfigSettings; private final OperationCallSettings updateKmsConfigOperationSettings; private final UnaryCallSettings encryptVolumesSettings; private final OperationCallSettings encryptVolumesOperationSettings; private final UnaryCallSettings verifyKmsConfigSettings; private final UnaryCallSettings deleteKmsConfigSettings; private final OperationCallSettings deleteKmsConfigOperationSettings; private final PagedCallSettings< ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse> listReplicationsSettings; private final UnaryCallSettings getReplicationSettings; private final UnaryCallSettings createReplicationSettings; private final OperationCallSettings createReplicationOperationSettings; private final UnaryCallSettings deleteReplicationSettings; private final OperationCallSettings deleteReplicationOperationSettings; private final UnaryCallSettings updateReplicationSettings; private final OperationCallSettings updateReplicationOperationSettings; private final UnaryCallSettings stopReplicationSettings; private final OperationCallSettings stopReplicationOperationSettings; private final UnaryCallSettings resumeReplicationSettings; private final OperationCallSettings resumeReplicationOperationSettings; private final UnaryCallSettings reverseReplicationDirectionSettings; private final OperationCallSettings< ReverseReplicationDirectionRequest, Replication, OperationMetadata> reverseReplicationDirectionOperationSettings; private final UnaryCallSettings createBackupVaultSettings; private final OperationCallSettings createBackupVaultOperationSettings; private final UnaryCallSettings getBackupVaultSettings; private final PagedCallSettings< ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse> listBackupVaultsSettings; private final UnaryCallSettings updateBackupVaultSettings; private final OperationCallSettings updateBackupVaultOperationSettings; private final UnaryCallSettings deleteBackupVaultSettings; private final OperationCallSettings deleteBackupVaultOperationSettings; private final UnaryCallSettings createBackupSettings; private final OperationCallSettings createBackupOperationSettings; private final UnaryCallSettings getBackupSettings; private final PagedCallSettings listBackupsSettings; private final UnaryCallSettings deleteBackupSettings; private final OperationCallSettings deleteBackupOperationSettings; private final UnaryCallSettings updateBackupSettings; private final OperationCallSettings updateBackupOperationSettings; private final UnaryCallSettings createBackupPolicySettings; private final OperationCallSettings createBackupPolicyOperationSettings; private final UnaryCallSettings getBackupPolicySettings; private final PagedCallSettings< ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse> listBackupPoliciesSettings; private final UnaryCallSettings updateBackupPolicySettings; private final OperationCallSettings updateBackupPolicyOperationSettings; private final UnaryCallSettings deleteBackupPolicySettings; private final OperationCallSettings deleteBackupPolicyOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings getLocationSettings; private static final PagedListDescriptor< ListStoragePoolsRequest, ListStoragePoolsResponse, StoragePool> LIST_STORAGE_POOLS_PAGE_STR_DESC = new PagedListDescriptor< ListStoragePoolsRequest, ListStoragePoolsResponse, StoragePool>() { @Override public String emptyToken() { return ""; } @Override public ListStoragePoolsRequest injectToken( ListStoragePoolsRequest payload, String token) { return ListStoragePoolsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListStoragePoolsRequest injectPageSize( ListStoragePoolsRequest payload, int pageSize) { return ListStoragePoolsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListStoragePoolsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListStoragePoolsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListStoragePoolsResponse payload) { return payload.getStoragePoolsList(); } }; private static final PagedListDescriptor LIST_VOLUMES_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListVolumesRequest injectToken(ListVolumesRequest payload, String token) { return ListVolumesRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListVolumesRequest injectPageSize(ListVolumesRequest payload, int pageSize) { return ListVolumesRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListVolumesRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListVolumesResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListVolumesResponse payload) { return payload.getVolumesList(); } }; private static final PagedListDescriptor LIST_SNAPSHOTS_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListSnapshotsRequest injectToken(ListSnapshotsRequest payload, String token) { return ListSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListSnapshotsRequest injectPageSize(ListSnapshotsRequest payload, int pageSize) { return ListSnapshotsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListSnapshotsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListSnapshotsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListSnapshotsResponse payload) { return payload.getSnapshotsList(); } }; private static final PagedListDescriptor< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ActiveDirectory> LIST_ACTIVE_DIRECTORIES_PAGE_STR_DESC = new PagedListDescriptor< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ActiveDirectory>() { @Override public String emptyToken() { return ""; } @Override public ListActiveDirectoriesRequest injectToken( ListActiveDirectoriesRequest payload, String token) { return ListActiveDirectoriesRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListActiveDirectoriesRequest injectPageSize( ListActiveDirectoriesRequest payload, int pageSize) { return ListActiveDirectoriesRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListActiveDirectoriesRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListActiveDirectoriesResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources( ListActiveDirectoriesResponse payload) { return payload.getActiveDirectoriesList(); } }; private static final PagedListDescriptor LIST_KMS_CONFIGS_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListKmsConfigsRequest injectToken(ListKmsConfigsRequest payload, String token) { return ListKmsConfigsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListKmsConfigsRequest injectPageSize( ListKmsConfigsRequest payload, int pageSize) { return ListKmsConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListKmsConfigsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListKmsConfigsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListKmsConfigsResponse payload) { return payload.getKmsConfigsList(); } }; private static final PagedListDescriptor< ListReplicationsRequest, ListReplicationsResponse, Replication> LIST_REPLICATIONS_PAGE_STR_DESC = new PagedListDescriptor< ListReplicationsRequest, ListReplicationsResponse, Replication>() { @Override public String emptyToken() { return ""; } @Override public ListReplicationsRequest injectToken( ListReplicationsRequest payload, String token) { return ListReplicationsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListReplicationsRequest injectPageSize( ListReplicationsRequest payload, int pageSize) { return ListReplicationsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListReplicationsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListReplicationsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListReplicationsResponse payload) { return payload.getReplicationsList(); } }; private static final PagedListDescriptor< ListBackupVaultsRequest, ListBackupVaultsResponse, BackupVault> LIST_BACKUP_VAULTS_PAGE_STR_DESC = new PagedListDescriptor< ListBackupVaultsRequest, ListBackupVaultsResponse, BackupVault>() { @Override public String emptyToken() { return ""; } @Override public ListBackupVaultsRequest injectToken( ListBackupVaultsRequest payload, String token) { return ListBackupVaultsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListBackupVaultsRequest injectPageSize( ListBackupVaultsRequest payload, int pageSize) { return ListBackupVaultsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListBackupVaultsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListBackupVaultsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListBackupVaultsResponse payload) { return payload.getBackupVaultsList(); } }; private static final PagedListDescriptor LIST_BACKUPS_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListBackupsRequest injectToken(ListBackupsRequest payload, String token) { return ListBackupsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListBackupsRequest injectPageSize(ListBackupsRequest payload, int pageSize) { return ListBackupsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListBackupsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListBackupsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListBackupsResponse payload) { return payload.getBackupsList(); } }; private static final PagedListDescriptor< ListBackupPoliciesRequest, ListBackupPoliciesResponse, BackupPolicy> LIST_BACKUP_POLICIES_PAGE_STR_DESC = new PagedListDescriptor< ListBackupPoliciesRequest, ListBackupPoliciesResponse, BackupPolicy>() { @Override public String emptyToken() { return ""; } @Override public ListBackupPoliciesRequest injectToken( ListBackupPoliciesRequest payload, String token) { return ListBackupPoliciesRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListBackupPoliciesRequest injectPageSize( ListBackupPoliciesRequest payload, int pageSize) { return ListBackupPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListBackupPoliciesRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListBackupPoliciesResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListBackupPoliciesResponse payload) { return payload.getBackupPoliciesList(); } }; private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListLocationsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListLocationsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListLocationsResponse payload) { return payload.getLocationsList(); } }; private static final PagedListResponseFactory< ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse> LIST_STORAGE_POOLS_PAGE_STR_FACT = new PagedListResponseFactory< ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListStoragePoolsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create( callable, LIST_STORAGE_POOLS_PAGE_STR_DESC, request, context); return ListStoragePoolsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse> LIST_VOLUMES_PAGE_STR_FACT = new PagedListResponseFactory< ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListVolumesRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_VOLUMES_PAGE_STR_DESC, request, context); return ListVolumesPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> LIST_SNAPSHOTS_PAGE_STR_FACT = new PagedListResponseFactory< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListSnapshotsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_SNAPSHOTS_PAGE_STR_DESC, request, context); return ListSnapshotsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ListActiveDirectoriesPagedResponse> LIST_ACTIVE_DIRECTORIES_PAGE_STR_FACT = new PagedListResponseFactory< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ListActiveDirectoriesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListActiveDirectoriesRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ActiveDirectory> pageContext = PageContext.create( callable, LIST_ACTIVE_DIRECTORIES_PAGE_STR_DESC, request, context); return ListActiveDirectoriesPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse> LIST_KMS_CONFIGS_PAGE_STR_FACT = new PagedListResponseFactory< ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListKmsConfigsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_KMS_CONFIGS_PAGE_STR_DESC, request, context); return ListKmsConfigsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse> LIST_REPLICATIONS_PAGE_STR_FACT = new PagedListResponseFactory< ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListReplicationsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create( callable, LIST_REPLICATIONS_PAGE_STR_DESC, request, context); return ListReplicationsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse> LIST_BACKUP_VAULTS_PAGE_STR_FACT = new PagedListResponseFactory< ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListBackupVaultsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create( callable, LIST_BACKUP_VAULTS_PAGE_STR_DESC, request, context); return ListBackupVaultsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> LIST_BACKUPS_PAGE_STR_FACT = new PagedListResponseFactory< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListBackupsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_BACKUPS_PAGE_STR_DESC, request, context); return ListBackupsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse> LIST_BACKUP_POLICIES_PAGE_STR_FACT = new PagedListResponseFactory< ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListBackupPoliciesRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create( callable, LIST_BACKUP_POLICIES_PAGE_STR_DESC, request, context); return ListBackupPoliciesPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = new PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListLocationsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); } }; /** Returns the object with the settings used for calls to listStoragePools. */ public PagedCallSettings< ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse> listStoragePoolsSettings() { return listStoragePoolsSettings; } /** Returns the object with the settings used for calls to createStoragePool. */ public UnaryCallSettings createStoragePoolSettings() { return createStoragePoolSettings; } /** Returns the object with the settings used for calls to createStoragePool. */ public OperationCallSettings createStoragePoolOperationSettings() { return createStoragePoolOperationSettings; } /** Returns the object with the settings used for calls to getStoragePool. */ public UnaryCallSettings getStoragePoolSettings() { return getStoragePoolSettings; } /** Returns the object with the settings used for calls to updateStoragePool. */ public UnaryCallSettings updateStoragePoolSettings() { return updateStoragePoolSettings; } /** Returns the object with the settings used for calls to updateStoragePool. */ public OperationCallSettings updateStoragePoolOperationSettings() { return updateStoragePoolOperationSettings; } /** Returns the object with the settings used for calls to deleteStoragePool. */ public UnaryCallSettings deleteStoragePoolSettings() { return deleteStoragePoolSettings; } /** Returns the object with the settings used for calls to deleteStoragePool. */ public OperationCallSettings deleteStoragePoolOperationSettings() { return deleteStoragePoolOperationSettings; } /** Returns the object with the settings used for calls to switchActiveReplicaZone. */ public UnaryCallSettings switchActiveReplicaZoneSettings() { return switchActiveReplicaZoneSettings; } /** Returns the object with the settings used for calls to switchActiveReplicaZone. */ public OperationCallSettings switchActiveReplicaZoneOperationSettings() { return switchActiveReplicaZoneOperationSettings; } /** Returns the object with the settings used for calls to listVolumes. */ public PagedCallSettings listVolumesSettings() { return listVolumesSettings; } /** Returns the object with the settings used for calls to getVolume. */ public UnaryCallSettings getVolumeSettings() { return getVolumeSettings; } /** Returns the object with the settings used for calls to createVolume. */ public UnaryCallSettings createVolumeSettings() { return createVolumeSettings; } /** Returns the object with the settings used for calls to createVolume. */ public OperationCallSettings createVolumeOperationSettings() { return createVolumeOperationSettings; } /** Returns the object with the settings used for calls to updateVolume. */ public UnaryCallSettings updateVolumeSettings() { return updateVolumeSettings; } /** Returns the object with the settings used for calls to updateVolume. */ public OperationCallSettings updateVolumeOperationSettings() { return updateVolumeOperationSettings; } /** Returns the object with the settings used for calls to deleteVolume. */ public UnaryCallSettings deleteVolumeSettings() { return deleteVolumeSettings; } /** Returns the object with the settings used for calls to deleteVolume. */ public OperationCallSettings deleteVolumeOperationSettings() { return deleteVolumeOperationSettings; } /** Returns the object with the settings used for calls to revertVolume. */ public UnaryCallSettings revertVolumeSettings() { return revertVolumeSettings; } /** Returns the object with the settings used for calls to revertVolume. */ public OperationCallSettings revertVolumeOperationSettings() { return revertVolumeOperationSettings; } /** Returns the object with the settings used for calls to listSnapshots. */ public PagedCallSettings listSnapshotsSettings() { return listSnapshotsSettings; } /** Returns the object with the settings used for calls to getSnapshot. */ public UnaryCallSettings getSnapshotSettings() { return getSnapshotSettings; } /** Returns the object with the settings used for calls to createSnapshot. */ public UnaryCallSettings createSnapshotSettings() { return createSnapshotSettings; } /** Returns the object with the settings used for calls to createSnapshot. */ public OperationCallSettings createSnapshotOperationSettings() { return createSnapshotOperationSettings; } /** Returns the object with the settings used for calls to deleteSnapshot. */ public UnaryCallSettings deleteSnapshotSettings() { return deleteSnapshotSettings; } /** Returns the object with the settings used for calls to deleteSnapshot. */ public OperationCallSettings deleteSnapshotOperationSettings() { return deleteSnapshotOperationSettings; } /** Returns the object with the settings used for calls to updateSnapshot. */ public UnaryCallSettings updateSnapshotSettings() { return updateSnapshotSettings; } /** Returns the object with the settings used for calls to updateSnapshot. */ public OperationCallSettings updateSnapshotOperationSettings() { return updateSnapshotOperationSettings; } /** Returns the object with the settings used for calls to listActiveDirectories. */ public PagedCallSettings< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ListActiveDirectoriesPagedResponse> listActiveDirectoriesSettings() { return listActiveDirectoriesSettings; } /** Returns the object with the settings used for calls to getActiveDirectory. */ public UnaryCallSettings getActiveDirectorySettings() { return getActiveDirectorySettings; } /** Returns the object with the settings used for calls to createActiveDirectory. */ public UnaryCallSettings createActiveDirectorySettings() { return createActiveDirectorySettings; } /** Returns the object with the settings used for calls to createActiveDirectory. */ public OperationCallSettings createActiveDirectoryOperationSettings() { return createActiveDirectoryOperationSettings; } /** Returns the object with the settings used for calls to updateActiveDirectory. */ public UnaryCallSettings updateActiveDirectorySettings() { return updateActiveDirectorySettings; } /** Returns the object with the settings used for calls to updateActiveDirectory. */ public OperationCallSettings updateActiveDirectoryOperationSettings() { return updateActiveDirectoryOperationSettings; } /** Returns the object with the settings used for calls to deleteActiveDirectory. */ public UnaryCallSettings deleteActiveDirectorySettings() { return deleteActiveDirectorySettings; } /** Returns the object with the settings used for calls to deleteActiveDirectory. */ public OperationCallSettings deleteActiveDirectoryOperationSettings() { return deleteActiveDirectoryOperationSettings; } /** Returns the object with the settings used for calls to listKmsConfigs. */ public PagedCallSettings< ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse> listKmsConfigsSettings() { return listKmsConfigsSettings; } /** Returns the object with the settings used for calls to createKmsConfig. */ public UnaryCallSettings createKmsConfigSettings() { return createKmsConfigSettings; } /** Returns the object with the settings used for calls to createKmsConfig. */ public OperationCallSettings createKmsConfigOperationSettings() { return createKmsConfigOperationSettings; } /** Returns the object with the settings used for calls to getKmsConfig. */ public UnaryCallSettings getKmsConfigSettings() { return getKmsConfigSettings; } /** Returns the object with the settings used for calls to updateKmsConfig. */ public UnaryCallSettings updateKmsConfigSettings() { return updateKmsConfigSettings; } /** Returns the object with the settings used for calls to updateKmsConfig. */ public OperationCallSettings updateKmsConfigOperationSettings() { return updateKmsConfigOperationSettings; } /** Returns the object with the settings used for calls to encryptVolumes. */ public UnaryCallSettings encryptVolumesSettings() { return encryptVolumesSettings; } /** Returns the object with the settings used for calls to encryptVolumes. */ public OperationCallSettings encryptVolumesOperationSettings() { return encryptVolumesOperationSettings; } /** Returns the object with the settings used for calls to verifyKmsConfig. */ public UnaryCallSettings verifyKmsConfigSettings() { return verifyKmsConfigSettings; } /** Returns the object with the settings used for calls to deleteKmsConfig. */ public UnaryCallSettings deleteKmsConfigSettings() { return deleteKmsConfigSettings; } /** Returns the object with the settings used for calls to deleteKmsConfig. */ public OperationCallSettings deleteKmsConfigOperationSettings() { return deleteKmsConfigOperationSettings; } /** Returns the object with the settings used for calls to listReplications. */ public PagedCallSettings< ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse> listReplicationsSettings() { return listReplicationsSettings; } /** Returns the object with the settings used for calls to getReplication. */ public UnaryCallSettings getReplicationSettings() { return getReplicationSettings; } /** Returns the object with the settings used for calls to createReplication. */ public UnaryCallSettings createReplicationSettings() { return createReplicationSettings; } /** Returns the object with the settings used for calls to createReplication. */ public OperationCallSettings createReplicationOperationSettings() { return createReplicationOperationSettings; } /** Returns the object with the settings used for calls to deleteReplication. */ public UnaryCallSettings deleteReplicationSettings() { return deleteReplicationSettings; } /** Returns the object with the settings used for calls to deleteReplication. */ public OperationCallSettings deleteReplicationOperationSettings() { return deleteReplicationOperationSettings; } /** Returns the object with the settings used for calls to updateReplication. */ public UnaryCallSettings updateReplicationSettings() { return updateReplicationSettings; } /** Returns the object with the settings used for calls to updateReplication. */ public OperationCallSettings updateReplicationOperationSettings() { return updateReplicationOperationSettings; } /** Returns the object with the settings used for calls to stopReplication. */ public UnaryCallSettings stopReplicationSettings() { return stopReplicationSettings; } /** Returns the object with the settings used for calls to stopReplication. */ public OperationCallSettings stopReplicationOperationSettings() { return stopReplicationOperationSettings; } /** Returns the object with the settings used for calls to resumeReplication. */ public UnaryCallSettings resumeReplicationSettings() { return resumeReplicationSettings; } /** Returns the object with the settings used for calls to resumeReplication. */ public OperationCallSettings resumeReplicationOperationSettings() { return resumeReplicationOperationSettings; } /** Returns the object with the settings used for calls to reverseReplicationDirection. */ public UnaryCallSettings reverseReplicationDirectionSettings() { return reverseReplicationDirectionSettings; } /** Returns the object with the settings used for calls to reverseReplicationDirection. */ public OperationCallSettings reverseReplicationDirectionOperationSettings() { return reverseReplicationDirectionOperationSettings; } /** Returns the object with the settings used for calls to createBackupVault. */ public UnaryCallSettings createBackupVaultSettings() { return createBackupVaultSettings; } /** Returns the object with the settings used for calls to createBackupVault. */ public OperationCallSettings createBackupVaultOperationSettings() { return createBackupVaultOperationSettings; } /** Returns the object with the settings used for calls to getBackupVault. */ public UnaryCallSettings getBackupVaultSettings() { return getBackupVaultSettings; } /** Returns the object with the settings used for calls to listBackupVaults. */ public PagedCallSettings< ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse> listBackupVaultsSettings() { return listBackupVaultsSettings; } /** Returns the object with the settings used for calls to updateBackupVault. */ public UnaryCallSettings updateBackupVaultSettings() { return updateBackupVaultSettings; } /** Returns the object with the settings used for calls to updateBackupVault. */ public OperationCallSettings updateBackupVaultOperationSettings() { return updateBackupVaultOperationSettings; } /** Returns the object with the settings used for calls to deleteBackupVault. */ public UnaryCallSettings deleteBackupVaultSettings() { return deleteBackupVaultSettings; } /** Returns the object with the settings used for calls to deleteBackupVault. */ public OperationCallSettings deleteBackupVaultOperationSettings() { return deleteBackupVaultOperationSettings; } /** Returns the object with the settings used for calls to createBackup. */ public UnaryCallSettings createBackupSettings() { return createBackupSettings; } /** Returns the object with the settings used for calls to createBackup. */ public OperationCallSettings createBackupOperationSettings() { return createBackupOperationSettings; } /** Returns the object with the settings used for calls to getBackup. */ public UnaryCallSettings getBackupSettings() { return getBackupSettings; } /** Returns the object with the settings used for calls to listBackups. */ public PagedCallSettings listBackupsSettings() { return listBackupsSettings; } /** Returns the object with the settings used for calls to deleteBackup. */ public UnaryCallSettings deleteBackupSettings() { return deleteBackupSettings; } /** Returns the object with the settings used for calls to deleteBackup. */ public OperationCallSettings deleteBackupOperationSettings() { return deleteBackupOperationSettings; } /** Returns the object with the settings used for calls to updateBackup. */ public UnaryCallSettings updateBackupSettings() { return updateBackupSettings; } /** Returns the object with the settings used for calls to updateBackup. */ public OperationCallSettings updateBackupOperationSettings() { return updateBackupOperationSettings; } /** Returns the object with the settings used for calls to createBackupPolicy. */ public UnaryCallSettings createBackupPolicySettings() { return createBackupPolicySettings; } /** Returns the object with the settings used for calls to createBackupPolicy. */ public OperationCallSettings createBackupPolicyOperationSettings() { return createBackupPolicyOperationSettings; } /** Returns the object with the settings used for calls to getBackupPolicy. */ public UnaryCallSettings getBackupPolicySettings() { return getBackupPolicySettings; } /** Returns the object with the settings used for calls to listBackupPolicies. */ public PagedCallSettings< ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse> listBackupPoliciesSettings() { return listBackupPoliciesSettings; } /** Returns the object with the settings used for calls to updateBackupPolicy. */ public UnaryCallSettings updateBackupPolicySettings() { return updateBackupPolicySettings; } /** Returns the object with the settings used for calls to updateBackupPolicy. */ public OperationCallSettings updateBackupPolicyOperationSettings() { return updateBackupPolicyOperationSettings; } /** Returns the object with the settings used for calls to deleteBackupPolicy. */ public UnaryCallSettings deleteBackupPolicySettings() { return deleteBackupPolicySettings; } /** Returns the object with the settings used for calls to deleteBackupPolicy. */ public OperationCallSettings deleteBackupPolicyOperationSettings() { return deleteBackupPolicyOperationSettings; } /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { return listLocationsSettings; } /** Returns the object with the settings used for calls to getLocation. */ public UnaryCallSettings getLocationSettings() { return getLocationSettings; } public NetAppStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcNetAppStub.create(this); } if (getTransportChannelProvider() .getTransportName() .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { return HttpJsonNetAppStub.create(this); } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns the default service name. */ @Override public String getServiceName() { return "netapp"; } /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); } /** Returns the default service endpoint. */ @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "netapp.googleapis.com:443"; } /** Returns the default mTLS service endpoint. */ public static String getDefaultMtlsEndpoint() { return "netapp.mtls.googleapis.com:443"; } /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; } /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { return GoogleCredentialsProvider.newBuilder() .setScopesToApply(DEFAULT_SERVICE_SCOPES) .setUseJwtAccessWithScope(true); } /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } /** Returns a builder for the default REST ChannelProvider for this service. */ @BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder() { return InstantiatingHttpJsonChannelProvider.newBuilder(); } public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(NetAppStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(NetAppStubSettings.class)) .setTransportToken( GaxHttpJsonProperties.getHttpJsonTokenName(), GaxHttpJsonProperties.getHttpJsonVersion()); } public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return NetAppStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); } /** 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 NetAppStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); listStoragePoolsSettings = settingsBuilder.listStoragePoolsSettings().build(); createStoragePoolSettings = settingsBuilder.createStoragePoolSettings().build(); createStoragePoolOperationSettings = settingsBuilder.createStoragePoolOperationSettings().build(); getStoragePoolSettings = settingsBuilder.getStoragePoolSettings().build(); updateStoragePoolSettings = settingsBuilder.updateStoragePoolSettings().build(); updateStoragePoolOperationSettings = settingsBuilder.updateStoragePoolOperationSettings().build(); deleteStoragePoolSettings = settingsBuilder.deleteStoragePoolSettings().build(); deleteStoragePoolOperationSettings = settingsBuilder.deleteStoragePoolOperationSettings().build(); switchActiveReplicaZoneSettings = settingsBuilder.switchActiveReplicaZoneSettings().build(); switchActiveReplicaZoneOperationSettings = settingsBuilder.switchActiveReplicaZoneOperationSettings().build(); listVolumesSettings = settingsBuilder.listVolumesSettings().build(); getVolumeSettings = settingsBuilder.getVolumeSettings().build(); createVolumeSettings = settingsBuilder.createVolumeSettings().build(); createVolumeOperationSettings = settingsBuilder.createVolumeOperationSettings().build(); updateVolumeSettings = settingsBuilder.updateVolumeSettings().build(); updateVolumeOperationSettings = settingsBuilder.updateVolumeOperationSettings().build(); deleteVolumeSettings = settingsBuilder.deleteVolumeSettings().build(); deleteVolumeOperationSettings = settingsBuilder.deleteVolumeOperationSettings().build(); revertVolumeSettings = settingsBuilder.revertVolumeSettings().build(); revertVolumeOperationSettings = settingsBuilder.revertVolumeOperationSettings().build(); listSnapshotsSettings = settingsBuilder.listSnapshotsSettings().build(); getSnapshotSettings = settingsBuilder.getSnapshotSettings().build(); createSnapshotSettings = settingsBuilder.createSnapshotSettings().build(); createSnapshotOperationSettings = settingsBuilder.createSnapshotOperationSettings().build(); deleteSnapshotSettings = settingsBuilder.deleteSnapshotSettings().build(); deleteSnapshotOperationSettings = settingsBuilder.deleteSnapshotOperationSettings().build(); updateSnapshotSettings = settingsBuilder.updateSnapshotSettings().build(); updateSnapshotOperationSettings = settingsBuilder.updateSnapshotOperationSettings().build(); listActiveDirectoriesSettings = settingsBuilder.listActiveDirectoriesSettings().build(); getActiveDirectorySettings = settingsBuilder.getActiveDirectorySettings().build(); createActiveDirectorySettings = settingsBuilder.createActiveDirectorySettings().build(); createActiveDirectoryOperationSettings = settingsBuilder.createActiveDirectoryOperationSettings().build(); updateActiveDirectorySettings = settingsBuilder.updateActiveDirectorySettings().build(); updateActiveDirectoryOperationSettings = settingsBuilder.updateActiveDirectoryOperationSettings().build(); deleteActiveDirectorySettings = settingsBuilder.deleteActiveDirectorySettings().build(); deleteActiveDirectoryOperationSettings = settingsBuilder.deleteActiveDirectoryOperationSettings().build(); listKmsConfigsSettings = settingsBuilder.listKmsConfigsSettings().build(); createKmsConfigSettings = settingsBuilder.createKmsConfigSettings().build(); createKmsConfigOperationSettings = settingsBuilder.createKmsConfigOperationSettings().build(); getKmsConfigSettings = settingsBuilder.getKmsConfigSettings().build(); updateKmsConfigSettings = settingsBuilder.updateKmsConfigSettings().build(); updateKmsConfigOperationSettings = settingsBuilder.updateKmsConfigOperationSettings().build(); encryptVolumesSettings = settingsBuilder.encryptVolumesSettings().build(); encryptVolumesOperationSettings = settingsBuilder.encryptVolumesOperationSettings().build(); verifyKmsConfigSettings = settingsBuilder.verifyKmsConfigSettings().build(); deleteKmsConfigSettings = settingsBuilder.deleteKmsConfigSettings().build(); deleteKmsConfigOperationSettings = settingsBuilder.deleteKmsConfigOperationSettings().build(); listReplicationsSettings = settingsBuilder.listReplicationsSettings().build(); getReplicationSettings = settingsBuilder.getReplicationSettings().build(); createReplicationSettings = settingsBuilder.createReplicationSettings().build(); createReplicationOperationSettings = settingsBuilder.createReplicationOperationSettings().build(); deleteReplicationSettings = settingsBuilder.deleteReplicationSettings().build(); deleteReplicationOperationSettings = settingsBuilder.deleteReplicationOperationSettings().build(); updateReplicationSettings = settingsBuilder.updateReplicationSettings().build(); updateReplicationOperationSettings = settingsBuilder.updateReplicationOperationSettings().build(); stopReplicationSettings = settingsBuilder.stopReplicationSettings().build(); stopReplicationOperationSettings = settingsBuilder.stopReplicationOperationSettings().build(); resumeReplicationSettings = settingsBuilder.resumeReplicationSettings().build(); resumeReplicationOperationSettings = settingsBuilder.resumeReplicationOperationSettings().build(); reverseReplicationDirectionSettings = settingsBuilder.reverseReplicationDirectionSettings().build(); reverseReplicationDirectionOperationSettings = settingsBuilder.reverseReplicationDirectionOperationSettings().build(); createBackupVaultSettings = settingsBuilder.createBackupVaultSettings().build(); createBackupVaultOperationSettings = settingsBuilder.createBackupVaultOperationSettings().build(); getBackupVaultSettings = settingsBuilder.getBackupVaultSettings().build(); listBackupVaultsSettings = settingsBuilder.listBackupVaultsSettings().build(); updateBackupVaultSettings = settingsBuilder.updateBackupVaultSettings().build(); updateBackupVaultOperationSettings = settingsBuilder.updateBackupVaultOperationSettings().build(); deleteBackupVaultSettings = settingsBuilder.deleteBackupVaultSettings().build(); deleteBackupVaultOperationSettings = settingsBuilder.deleteBackupVaultOperationSettings().build(); createBackupSettings = settingsBuilder.createBackupSettings().build(); createBackupOperationSettings = settingsBuilder.createBackupOperationSettings().build(); getBackupSettings = settingsBuilder.getBackupSettings().build(); listBackupsSettings = settingsBuilder.listBackupsSettings().build(); deleteBackupSettings = settingsBuilder.deleteBackupSettings().build(); deleteBackupOperationSettings = settingsBuilder.deleteBackupOperationSettings().build(); updateBackupSettings = settingsBuilder.updateBackupSettings().build(); updateBackupOperationSettings = settingsBuilder.updateBackupOperationSettings().build(); createBackupPolicySettings = settingsBuilder.createBackupPolicySettings().build(); createBackupPolicyOperationSettings = settingsBuilder.createBackupPolicyOperationSettings().build(); getBackupPolicySettings = settingsBuilder.getBackupPolicySettings().build(); listBackupPoliciesSettings = settingsBuilder.listBackupPoliciesSettings().build(); updateBackupPolicySettings = settingsBuilder.updateBackupPolicySettings().build(); updateBackupPolicyOperationSettings = settingsBuilder.updateBackupPolicyOperationSettings().build(); deleteBackupPolicySettings = settingsBuilder.deleteBackupPolicySettings().build(); deleteBackupPolicyOperationSettings = settingsBuilder.deleteBackupPolicyOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } /** Builder for NetAppStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse> listStoragePoolsSettings; private final UnaryCallSettings.Builder createStoragePoolSettings; private final OperationCallSettings.Builder< CreateStoragePoolRequest, StoragePool, OperationMetadata> createStoragePoolOperationSettings; private final UnaryCallSettings.Builder getStoragePoolSettings; private final UnaryCallSettings.Builder updateStoragePoolSettings; private final OperationCallSettings.Builder< UpdateStoragePoolRequest, StoragePool, OperationMetadata> updateStoragePoolOperationSettings; private final UnaryCallSettings.Builder deleteStoragePoolSettings; private final OperationCallSettings.Builder deleteStoragePoolOperationSettings; private final UnaryCallSettings.Builder switchActiveReplicaZoneSettings; private final OperationCallSettings.Builder< SwitchActiveReplicaZoneRequest, StoragePool, OperationMetadata> switchActiveReplicaZoneOperationSettings; private final PagedCallSettings.Builder< ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse> listVolumesSettings; private final UnaryCallSettings.Builder getVolumeSettings; private final UnaryCallSettings.Builder createVolumeSettings; private final OperationCallSettings.Builder createVolumeOperationSettings; private final UnaryCallSettings.Builder updateVolumeSettings; private final OperationCallSettings.Builder updateVolumeOperationSettings; private final UnaryCallSettings.Builder deleteVolumeSettings; private final OperationCallSettings.Builder deleteVolumeOperationSettings; private final UnaryCallSettings.Builder revertVolumeSettings; private final OperationCallSettings.Builder revertVolumeOperationSettings; private final PagedCallSettings.Builder< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> listSnapshotsSettings; private final UnaryCallSettings.Builder getSnapshotSettings; private final UnaryCallSettings.Builder createSnapshotSettings; private final OperationCallSettings.Builder createSnapshotOperationSettings; private final UnaryCallSettings.Builder deleteSnapshotSettings; private final OperationCallSettings.Builder deleteSnapshotOperationSettings; private final UnaryCallSettings.Builder updateSnapshotSettings; private final OperationCallSettings.Builder updateSnapshotOperationSettings; private final PagedCallSettings.Builder< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ListActiveDirectoriesPagedResponse> listActiveDirectoriesSettings; private final UnaryCallSettings.Builder getActiveDirectorySettings; private final UnaryCallSettings.Builder createActiveDirectorySettings; private final OperationCallSettings.Builder< CreateActiveDirectoryRequest, ActiveDirectory, OperationMetadata> createActiveDirectoryOperationSettings; private final UnaryCallSettings.Builder updateActiveDirectorySettings; private final OperationCallSettings.Builder< UpdateActiveDirectoryRequest, ActiveDirectory, OperationMetadata> updateActiveDirectoryOperationSettings; private final UnaryCallSettings.Builder deleteActiveDirectorySettings; private final OperationCallSettings.Builder< DeleteActiveDirectoryRequest, Empty, OperationMetadata> deleteActiveDirectoryOperationSettings; private final PagedCallSettings.Builder< ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse> listKmsConfigsSettings; private final UnaryCallSettings.Builder createKmsConfigSettings; private final OperationCallSettings.Builder< CreateKmsConfigRequest, KmsConfig, OperationMetadata> createKmsConfigOperationSettings; private final UnaryCallSettings.Builder getKmsConfigSettings; private final UnaryCallSettings.Builder updateKmsConfigSettings; private final OperationCallSettings.Builder< UpdateKmsConfigRequest, KmsConfig, OperationMetadata> updateKmsConfigOperationSettings; private final UnaryCallSettings.Builder encryptVolumesSettings; private final OperationCallSettings.Builder encryptVolumesOperationSettings; private final UnaryCallSettings.Builder verifyKmsConfigSettings; private final UnaryCallSettings.Builder deleteKmsConfigSettings; private final OperationCallSettings.Builder deleteKmsConfigOperationSettings; private final PagedCallSettings.Builder< ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse> listReplicationsSettings; private final UnaryCallSettings.Builder getReplicationSettings; private final UnaryCallSettings.Builder createReplicationSettings; private final OperationCallSettings.Builder< CreateReplicationRequest, Replication, OperationMetadata> createReplicationOperationSettings; private final UnaryCallSettings.Builder deleteReplicationSettings; private final OperationCallSettings.Builder deleteReplicationOperationSettings; private final UnaryCallSettings.Builder updateReplicationSettings; private final OperationCallSettings.Builder< UpdateReplicationRequest, Replication, OperationMetadata> updateReplicationOperationSettings; private final UnaryCallSettings.Builder stopReplicationSettings; private final OperationCallSettings.Builder< StopReplicationRequest, Replication, OperationMetadata> stopReplicationOperationSettings; private final UnaryCallSettings.Builder resumeReplicationSettings; private final OperationCallSettings.Builder< ResumeReplicationRequest, Replication, OperationMetadata> resumeReplicationOperationSettings; private final UnaryCallSettings.Builder reverseReplicationDirectionSettings; private final OperationCallSettings.Builder< ReverseReplicationDirectionRequest, Replication, OperationMetadata> reverseReplicationDirectionOperationSettings; private final UnaryCallSettings.Builder createBackupVaultSettings; private final OperationCallSettings.Builder< CreateBackupVaultRequest, BackupVault, OperationMetadata> createBackupVaultOperationSettings; private final UnaryCallSettings.Builder getBackupVaultSettings; private final PagedCallSettings.Builder< ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse> listBackupVaultsSettings; private final UnaryCallSettings.Builder updateBackupVaultSettings; private final OperationCallSettings.Builder< UpdateBackupVaultRequest, BackupVault, OperationMetadata> updateBackupVaultOperationSettings; private final UnaryCallSettings.Builder deleteBackupVaultSettings; private final OperationCallSettings.Builder deleteBackupVaultOperationSettings; private final UnaryCallSettings.Builder createBackupSettings; private final OperationCallSettings.Builder createBackupOperationSettings; private final UnaryCallSettings.Builder getBackupSettings; private final PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> listBackupsSettings; private final UnaryCallSettings.Builder deleteBackupSettings; private final OperationCallSettings.Builder deleteBackupOperationSettings; private final UnaryCallSettings.Builder updateBackupSettings; private final OperationCallSettings.Builder updateBackupOperationSettings; private final UnaryCallSettings.Builder createBackupPolicySettings; private final OperationCallSettings.Builder< CreateBackupPolicyRequest, BackupPolicy, OperationMetadata> createBackupPolicyOperationSettings; private final UnaryCallSettings.Builder getBackupPolicySettings; private final PagedCallSettings.Builder< ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse> listBackupPoliciesSettings; private final UnaryCallSettings.Builder updateBackupPolicySettings; private final OperationCallSettings.Builder< UpdateBackupPolicyRequest, BackupPolicy, OperationMetadata> updateBackupPolicyOperationSettings; private final UnaryCallSettings.Builder deleteBackupPolicySettings; private final OperationCallSettings.Builder deleteBackupPolicyOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings.Builder getLocationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } private static final ImmutableMap RETRY_PARAM_DEFINITIONS; static { ImmutableMap.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(1.3) .setMaxRetryDelay(Duration.ofMillis(10000L)) .setInitialRpcTimeout(Duration.ofMillis(60000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(60000L)) .setTotalTimeout(Duration.ofMillis(60000L)) .build(); definitions.put("retry_policy_0_params", settings); settings = RetrySettings.newBuilder() .setInitialRpcTimeout(Duration.ofMillis(60000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(60000L)) .setTotalTimeout(Duration.ofMillis(60000L)) .build(); definitions.put("no_retry_1_params", settings); settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } protected Builder() { this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(clientContext); listStoragePoolsSettings = PagedCallSettings.newBuilder(LIST_STORAGE_POOLS_PAGE_STR_FACT); createStoragePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createStoragePoolOperationSettings = OperationCallSettings.newBuilder(); getStoragePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateStoragePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateStoragePoolOperationSettings = OperationCallSettings.newBuilder(); deleteStoragePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteStoragePoolOperationSettings = OperationCallSettings.newBuilder(); switchActiveReplicaZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); switchActiveReplicaZoneOperationSettings = OperationCallSettings.newBuilder(); listVolumesSettings = PagedCallSettings.newBuilder(LIST_VOLUMES_PAGE_STR_FACT); getVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createVolumeOperationSettings = OperationCallSettings.newBuilder(); updateVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateVolumeOperationSettings = OperationCallSettings.newBuilder(); deleteVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteVolumeOperationSettings = OperationCallSettings.newBuilder(); revertVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); revertVolumeOperationSettings = OperationCallSettings.newBuilder(); listSnapshotsSettings = PagedCallSettings.newBuilder(LIST_SNAPSHOTS_PAGE_STR_FACT); getSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createSnapshotOperationSettings = OperationCallSettings.newBuilder(); deleteSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteSnapshotOperationSettings = OperationCallSettings.newBuilder(); updateSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSnapshotOperationSettings = OperationCallSettings.newBuilder(); listActiveDirectoriesSettings = PagedCallSettings.newBuilder(LIST_ACTIVE_DIRECTORIES_PAGE_STR_FACT); getActiveDirectorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createActiveDirectorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createActiveDirectoryOperationSettings = OperationCallSettings.newBuilder(); updateActiveDirectorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateActiveDirectoryOperationSettings = OperationCallSettings.newBuilder(); deleteActiveDirectorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteActiveDirectoryOperationSettings = OperationCallSettings.newBuilder(); listKmsConfigsSettings = PagedCallSettings.newBuilder(LIST_KMS_CONFIGS_PAGE_STR_FACT); createKmsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createKmsConfigOperationSettings = OperationCallSettings.newBuilder(); getKmsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateKmsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateKmsConfigOperationSettings = OperationCallSettings.newBuilder(); encryptVolumesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); encryptVolumesOperationSettings = OperationCallSettings.newBuilder(); verifyKmsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteKmsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteKmsConfigOperationSettings = OperationCallSettings.newBuilder(); listReplicationsSettings = PagedCallSettings.newBuilder(LIST_REPLICATIONS_PAGE_STR_FACT); getReplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createReplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createReplicationOperationSettings = OperationCallSettings.newBuilder(); deleteReplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteReplicationOperationSettings = OperationCallSettings.newBuilder(); updateReplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateReplicationOperationSettings = OperationCallSettings.newBuilder(); stopReplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); stopReplicationOperationSettings = OperationCallSettings.newBuilder(); resumeReplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); resumeReplicationOperationSettings = OperationCallSettings.newBuilder(); reverseReplicationDirectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); reverseReplicationDirectionOperationSettings = OperationCallSettings.newBuilder(); createBackupVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupVaultOperationSettings = OperationCallSettings.newBuilder(); getBackupVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listBackupVaultsSettings = PagedCallSettings.newBuilder(LIST_BACKUP_VAULTS_PAGE_STR_FACT); updateBackupVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupVaultOperationSettings = OperationCallSettings.newBuilder(); deleteBackupVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteBackupVaultOperationSettings = OperationCallSettings.newBuilder(); createBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupOperationSettings = OperationCallSettings.newBuilder(); getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); deleteBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteBackupOperationSettings = OperationCallSettings.newBuilder(); updateBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupOperationSettings = OperationCallSettings.newBuilder(); createBackupPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupPolicyOperationSettings = OperationCallSettings.newBuilder(); getBackupPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listBackupPoliciesSettings = PagedCallSettings.newBuilder(LIST_BACKUP_POLICIES_PAGE_STR_FACT); updateBackupPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupPolicyOperationSettings = OperationCallSettings.newBuilder(); deleteBackupPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteBackupPolicyOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listStoragePoolsSettings, createStoragePoolSettings, getStoragePoolSettings, updateStoragePoolSettings, deleteStoragePoolSettings, switchActiveReplicaZoneSettings, listVolumesSettings, getVolumeSettings, createVolumeSettings, updateVolumeSettings, deleteVolumeSettings, revertVolumeSettings, listSnapshotsSettings, getSnapshotSettings, createSnapshotSettings, deleteSnapshotSettings, updateSnapshotSettings, listActiveDirectoriesSettings, getActiveDirectorySettings, createActiveDirectorySettings, updateActiveDirectorySettings, deleteActiveDirectorySettings, listKmsConfigsSettings, createKmsConfigSettings, getKmsConfigSettings, updateKmsConfigSettings, encryptVolumesSettings, verifyKmsConfigSettings, deleteKmsConfigSettings, listReplicationsSettings, getReplicationSettings, createReplicationSettings, deleteReplicationSettings, updateReplicationSettings, stopReplicationSettings, resumeReplicationSettings, reverseReplicationDirectionSettings, createBackupVaultSettings, getBackupVaultSettings, listBackupVaultsSettings, updateBackupVaultSettings, deleteBackupVaultSettings, createBackupSettings, getBackupSettings, listBackupsSettings, deleteBackupSettings, updateBackupSettings, createBackupPolicySettings, getBackupPolicySettings, listBackupPoliciesSettings, updateBackupPolicySettings, deleteBackupPolicySettings, listLocationsSettings, getLocationSettings); initDefaults(this); } protected Builder(NetAppStubSettings settings) { super(settings); listStoragePoolsSettings = settings.listStoragePoolsSettings.toBuilder(); createStoragePoolSettings = settings.createStoragePoolSettings.toBuilder(); createStoragePoolOperationSettings = settings.createStoragePoolOperationSettings.toBuilder(); getStoragePoolSettings = settings.getStoragePoolSettings.toBuilder(); updateStoragePoolSettings = settings.updateStoragePoolSettings.toBuilder(); updateStoragePoolOperationSettings = settings.updateStoragePoolOperationSettings.toBuilder(); deleteStoragePoolSettings = settings.deleteStoragePoolSettings.toBuilder(); deleteStoragePoolOperationSettings = settings.deleteStoragePoolOperationSettings.toBuilder(); switchActiveReplicaZoneSettings = settings.switchActiveReplicaZoneSettings.toBuilder(); switchActiveReplicaZoneOperationSettings = settings.switchActiveReplicaZoneOperationSettings.toBuilder(); listVolumesSettings = settings.listVolumesSettings.toBuilder(); getVolumeSettings = settings.getVolumeSettings.toBuilder(); createVolumeSettings = settings.createVolumeSettings.toBuilder(); createVolumeOperationSettings = settings.createVolumeOperationSettings.toBuilder(); updateVolumeSettings = settings.updateVolumeSettings.toBuilder(); updateVolumeOperationSettings = settings.updateVolumeOperationSettings.toBuilder(); deleteVolumeSettings = settings.deleteVolumeSettings.toBuilder(); deleteVolumeOperationSettings = settings.deleteVolumeOperationSettings.toBuilder(); revertVolumeSettings = settings.revertVolumeSettings.toBuilder(); revertVolumeOperationSettings = settings.revertVolumeOperationSettings.toBuilder(); listSnapshotsSettings = settings.listSnapshotsSettings.toBuilder(); getSnapshotSettings = settings.getSnapshotSettings.toBuilder(); createSnapshotSettings = settings.createSnapshotSettings.toBuilder(); createSnapshotOperationSettings = settings.createSnapshotOperationSettings.toBuilder(); deleteSnapshotSettings = settings.deleteSnapshotSettings.toBuilder(); deleteSnapshotOperationSettings = settings.deleteSnapshotOperationSettings.toBuilder(); updateSnapshotSettings = settings.updateSnapshotSettings.toBuilder(); updateSnapshotOperationSettings = settings.updateSnapshotOperationSettings.toBuilder(); listActiveDirectoriesSettings = settings.listActiveDirectoriesSettings.toBuilder(); getActiveDirectorySettings = settings.getActiveDirectorySettings.toBuilder(); createActiveDirectorySettings = settings.createActiveDirectorySettings.toBuilder(); createActiveDirectoryOperationSettings = settings.createActiveDirectoryOperationSettings.toBuilder(); updateActiveDirectorySettings = settings.updateActiveDirectorySettings.toBuilder(); updateActiveDirectoryOperationSettings = settings.updateActiveDirectoryOperationSettings.toBuilder(); deleteActiveDirectorySettings = settings.deleteActiveDirectorySettings.toBuilder(); deleteActiveDirectoryOperationSettings = settings.deleteActiveDirectoryOperationSettings.toBuilder(); listKmsConfigsSettings = settings.listKmsConfigsSettings.toBuilder(); createKmsConfigSettings = settings.createKmsConfigSettings.toBuilder(); createKmsConfigOperationSettings = settings.createKmsConfigOperationSettings.toBuilder(); getKmsConfigSettings = settings.getKmsConfigSettings.toBuilder(); updateKmsConfigSettings = settings.updateKmsConfigSettings.toBuilder(); updateKmsConfigOperationSettings = settings.updateKmsConfigOperationSettings.toBuilder(); encryptVolumesSettings = settings.encryptVolumesSettings.toBuilder(); encryptVolumesOperationSettings = settings.encryptVolumesOperationSettings.toBuilder(); verifyKmsConfigSettings = settings.verifyKmsConfigSettings.toBuilder(); deleteKmsConfigSettings = settings.deleteKmsConfigSettings.toBuilder(); deleteKmsConfigOperationSettings = settings.deleteKmsConfigOperationSettings.toBuilder(); listReplicationsSettings = settings.listReplicationsSettings.toBuilder(); getReplicationSettings = settings.getReplicationSettings.toBuilder(); createReplicationSettings = settings.createReplicationSettings.toBuilder(); createReplicationOperationSettings = settings.createReplicationOperationSettings.toBuilder(); deleteReplicationSettings = settings.deleteReplicationSettings.toBuilder(); deleteReplicationOperationSettings = settings.deleteReplicationOperationSettings.toBuilder(); updateReplicationSettings = settings.updateReplicationSettings.toBuilder(); updateReplicationOperationSettings = settings.updateReplicationOperationSettings.toBuilder(); stopReplicationSettings = settings.stopReplicationSettings.toBuilder(); stopReplicationOperationSettings = settings.stopReplicationOperationSettings.toBuilder(); resumeReplicationSettings = settings.resumeReplicationSettings.toBuilder(); resumeReplicationOperationSettings = settings.resumeReplicationOperationSettings.toBuilder(); reverseReplicationDirectionSettings = settings.reverseReplicationDirectionSettings.toBuilder(); reverseReplicationDirectionOperationSettings = settings.reverseReplicationDirectionOperationSettings.toBuilder(); createBackupVaultSettings = settings.createBackupVaultSettings.toBuilder(); createBackupVaultOperationSettings = settings.createBackupVaultOperationSettings.toBuilder(); getBackupVaultSettings = settings.getBackupVaultSettings.toBuilder(); listBackupVaultsSettings = settings.listBackupVaultsSettings.toBuilder(); updateBackupVaultSettings = settings.updateBackupVaultSettings.toBuilder(); updateBackupVaultOperationSettings = settings.updateBackupVaultOperationSettings.toBuilder(); deleteBackupVaultSettings = settings.deleteBackupVaultSettings.toBuilder(); deleteBackupVaultOperationSettings = settings.deleteBackupVaultOperationSettings.toBuilder(); createBackupSettings = settings.createBackupSettings.toBuilder(); createBackupOperationSettings = settings.createBackupOperationSettings.toBuilder(); getBackupSettings = settings.getBackupSettings.toBuilder(); listBackupsSettings = settings.listBackupsSettings.toBuilder(); deleteBackupSettings = settings.deleteBackupSettings.toBuilder(); deleteBackupOperationSettings = settings.deleteBackupOperationSettings.toBuilder(); updateBackupSettings = settings.updateBackupSettings.toBuilder(); updateBackupOperationSettings = settings.updateBackupOperationSettings.toBuilder(); createBackupPolicySettings = settings.createBackupPolicySettings.toBuilder(); createBackupPolicyOperationSettings = settings.createBackupPolicyOperationSettings.toBuilder(); getBackupPolicySettings = settings.getBackupPolicySettings.toBuilder(); listBackupPoliciesSettings = settings.listBackupPoliciesSettings.toBuilder(); updateBackupPolicySettings = settings.updateBackupPolicySettings.toBuilder(); updateBackupPolicyOperationSettings = settings.updateBackupPolicyOperationSettings.toBuilder(); deleteBackupPolicySettings = settings.deleteBackupPolicySettings.toBuilder(); deleteBackupPolicyOperationSettings = settings.deleteBackupPolicyOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listStoragePoolsSettings, createStoragePoolSettings, getStoragePoolSettings, updateStoragePoolSettings, deleteStoragePoolSettings, switchActiveReplicaZoneSettings, listVolumesSettings, getVolumeSettings, createVolumeSettings, updateVolumeSettings, deleteVolumeSettings, revertVolumeSettings, listSnapshotsSettings, getSnapshotSettings, createSnapshotSettings, deleteSnapshotSettings, updateSnapshotSettings, listActiveDirectoriesSettings, getActiveDirectorySettings, createActiveDirectorySettings, updateActiveDirectorySettings, deleteActiveDirectorySettings, listKmsConfigsSettings, createKmsConfigSettings, getKmsConfigSettings, updateKmsConfigSettings, encryptVolumesSettings, verifyKmsConfigSettings, deleteKmsConfigSettings, listReplicationsSettings, getReplicationSettings, createReplicationSettings, deleteReplicationSettings, updateReplicationSettings, stopReplicationSettings, resumeReplicationSettings, reverseReplicationDirectionSettings, createBackupVaultSettings, getBackupVaultSettings, listBackupVaultsSettings, updateBackupVaultSettings, deleteBackupVaultSettings, createBackupSettings, getBackupSettings, listBackupsSettings, deleteBackupSettings, updateBackupSettings, createBackupPolicySettings, getBackupPolicySettings, listBackupPoliciesSettings, updateBackupPolicySettings, deleteBackupPolicySettings, listLocationsSettings, getLocationSettings); } private static Builder createDefault() { Builder builder = new Builder(((ClientContext) null)); builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } private static Builder createHttpJsonDefault() { Builder builder = new Builder(((ClientContext) null)); builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } private static Builder initDefaults(Builder builder) { builder .listStoragePoolsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createStoragePoolSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getStoragePoolSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateStoragePoolSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteStoragePoolSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .switchActiveReplicaZoneSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .listVolumesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .updateVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .revertVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listSnapshotsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getSnapshotSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createSnapshotSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteSnapshotSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .updateSnapshotSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listActiveDirectoriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getActiveDirectorySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createActiveDirectorySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .updateActiveDirectorySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteActiveDirectorySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listKmsConfigsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createKmsConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getKmsConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateKmsConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .encryptVolumesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .verifyKmsConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteKmsConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listReplicationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getReplicationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createReplicationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteReplicationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .updateReplicationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .stopReplicationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .resumeReplicationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .reverseReplicationDirectionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .createBackupVaultSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getBackupVaultSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listBackupVaultsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateBackupVaultSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteBackupVaultSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .createBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listBackupsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .updateBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .createBackupPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getBackupPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listBackupPoliciesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateBackupPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteBackupPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .getLocationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .createStoragePoolOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(StoragePool.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateStoragePoolOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(StoragePool.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteStoragePoolOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .switchActiveReplicaZoneOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(StoragePool.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createVolumeOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Volume.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateVolumeOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Volume.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteVolumeOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .revertVolumeOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Volume.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createSnapshotOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Snapshot.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteSnapshotOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateSnapshotOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Snapshot.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createActiveDirectoryOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ActiveDirectory.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateActiveDirectoryOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ActiveDirectory.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteActiveDirectoryOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createKmsConfigOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(KmsConfig.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateKmsConfigOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(KmsConfig.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .encryptVolumesOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(KmsConfig.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteKmsConfigOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createReplicationOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Replication.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteReplicationOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateReplicationOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Replication.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .stopReplicationOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Replication.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .resumeReplicationOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Replication.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .reverseReplicationDirectionOperationSettings() .setInitialCallSettings( UnaryCallSettings . newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Replication.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createBackupVaultOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BackupVault.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateBackupVaultOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BackupVault.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteBackupVaultOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createBackupOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Backup.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteBackupOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateBackupOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Backup.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createBackupPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BackupPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateBackupPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BackupPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteBackupPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); return builder; } /** * 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(unaryMethodSettingsBuilders, settingsUpdater); return this; } public ImmutableList> unaryMethodSettingsBuilders() { return unaryMethodSettingsBuilders; } /** Returns the builder for the settings used for calls to listStoragePools. */ public PagedCallSettings.Builder< ListStoragePoolsRequest, ListStoragePoolsResponse, ListStoragePoolsPagedResponse> listStoragePoolsSettings() { return listStoragePoolsSettings; } /** Returns the builder for the settings used for calls to createStoragePool. */ public UnaryCallSettings.Builder createStoragePoolSettings() { return createStoragePoolSettings; } /** Returns the builder for the settings used for calls to createStoragePool. */ public OperationCallSettings.Builder createStoragePoolOperationSettings() { return createStoragePoolOperationSettings; } /** Returns the builder for the settings used for calls to getStoragePool. */ public UnaryCallSettings.Builder getStoragePoolSettings() { return getStoragePoolSettings; } /** Returns the builder for the settings used for calls to updateStoragePool. */ public UnaryCallSettings.Builder updateStoragePoolSettings() { return updateStoragePoolSettings; } /** Returns the builder for the settings used for calls to updateStoragePool. */ public OperationCallSettings.Builder updateStoragePoolOperationSettings() { return updateStoragePoolOperationSettings; } /** Returns the builder for the settings used for calls to deleteStoragePool. */ public UnaryCallSettings.Builder deleteStoragePoolSettings() { return deleteStoragePoolSettings; } /** Returns the builder for the settings used for calls to deleteStoragePool. */ public OperationCallSettings.Builder deleteStoragePoolOperationSettings() { return deleteStoragePoolOperationSettings; } /** Returns the builder for the settings used for calls to switchActiveReplicaZone. */ public UnaryCallSettings.Builder switchActiveReplicaZoneSettings() { return switchActiveReplicaZoneSettings; } /** Returns the builder for the settings used for calls to switchActiveReplicaZone. */ public OperationCallSettings.Builder< SwitchActiveReplicaZoneRequest, StoragePool, OperationMetadata> switchActiveReplicaZoneOperationSettings() { return switchActiveReplicaZoneOperationSettings; } /** Returns the builder for the settings used for calls to listVolumes. */ public PagedCallSettings.Builder< ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse> listVolumesSettings() { return listVolumesSettings; } /** Returns the builder for the settings used for calls to getVolume. */ public UnaryCallSettings.Builder getVolumeSettings() { return getVolumeSettings; } /** Returns the builder for the settings used for calls to createVolume. */ public UnaryCallSettings.Builder createVolumeSettings() { return createVolumeSettings; } /** Returns the builder for the settings used for calls to createVolume. */ public OperationCallSettings.Builder createVolumeOperationSettings() { return createVolumeOperationSettings; } /** Returns the builder for the settings used for calls to updateVolume. */ public UnaryCallSettings.Builder updateVolumeSettings() { return updateVolumeSettings; } /** Returns the builder for the settings used for calls to updateVolume. */ public OperationCallSettings.Builder updateVolumeOperationSettings() { return updateVolumeOperationSettings; } /** Returns the builder for the settings used for calls to deleteVolume. */ public UnaryCallSettings.Builder deleteVolumeSettings() { return deleteVolumeSettings; } /** Returns the builder for the settings used for calls to deleteVolume. */ public OperationCallSettings.Builder deleteVolumeOperationSettings() { return deleteVolumeOperationSettings; } /** Returns the builder for the settings used for calls to revertVolume. */ public UnaryCallSettings.Builder revertVolumeSettings() { return revertVolumeSettings; } /** Returns the builder for the settings used for calls to revertVolume. */ public OperationCallSettings.Builder revertVolumeOperationSettings() { return revertVolumeOperationSettings; } /** Returns the builder for the settings used for calls to listSnapshots. */ public PagedCallSettings.Builder< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> listSnapshotsSettings() { return listSnapshotsSettings; } /** Returns the builder for the settings used for calls to getSnapshot. */ public UnaryCallSettings.Builder getSnapshotSettings() { return getSnapshotSettings; } /** Returns the builder for the settings used for calls to createSnapshot. */ public UnaryCallSettings.Builder createSnapshotSettings() { return createSnapshotSettings; } /** Returns the builder for the settings used for calls to createSnapshot. */ public OperationCallSettings.Builder createSnapshotOperationSettings() { return createSnapshotOperationSettings; } /** Returns the builder for the settings used for calls to deleteSnapshot. */ public UnaryCallSettings.Builder deleteSnapshotSettings() { return deleteSnapshotSettings; } /** Returns the builder for the settings used for calls to deleteSnapshot. */ public OperationCallSettings.Builder deleteSnapshotOperationSettings() { return deleteSnapshotOperationSettings; } /** Returns the builder for the settings used for calls to updateSnapshot. */ public UnaryCallSettings.Builder updateSnapshotSettings() { return updateSnapshotSettings; } /** Returns the builder for the settings used for calls to updateSnapshot. */ public OperationCallSettings.Builder updateSnapshotOperationSettings() { return updateSnapshotOperationSettings; } /** Returns the builder for the settings used for calls to listActiveDirectories. */ public PagedCallSettings.Builder< ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ListActiveDirectoriesPagedResponse> listActiveDirectoriesSettings() { return listActiveDirectoriesSettings; } /** Returns the builder for the settings used for calls to getActiveDirectory. */ public UnaryCallSettings.Builder getActiveDirectorySettings() { return getActiveDirectorySettings; } /** Returns the builder for the settings used for calls to createActiveDirectory. */ public UnaryCallSettings.Builder createActiveDirectorySettings() { return createActiveDirectorySettings; } /** Returns the builder for the settings used for calls to createActiveDirectory. */ public OperationCallSettings.Builder< CreateActiveDirectoryRequest, ActiveDirectory, OperationMetadata> createActiveDirectoryOperationSettings() { return createActiveDirectoryOperationSettings; } /** Returns the builder for the settings used for calls to updateActiveDirectory. */ public UnaryCallSettings.Builder updateActiveDirectorySettings() { return updateActiveDirectorySettings; } /** Returns the builder for the settings used for calls to updateActiveDirectory. */ public OperationCallSettings.Builder< UpdateActiveDirectoryRequest, ActiveDirectory, OperationMetadata> updateActiveDirectoryOperationSettings() { return updateActiveDirectoryOperationSettings; } /** Returns the builder for the settings used for calls to deleteActiveDirectory. */ public UnaryCallSettings.Builder deleteActiveDirectorySettings() { return deleteActiveDirectorySettings; } /** Returns the builder for the settings used for calls to deleteActiveDirectory. */ public OperationCallSettings.Builder deleteActiveDirectoryOperationSettings() { return deleteActiveDirectoryOperationSettings; } /** Returns the builder for the settings used for calls to listKmsConfigs. */ public PagedCallSettings.Builder< ListKmsConfigsRequest, ListKmsConfigsResponse, ListKmsConfigsPagedResponse> listKmsConfigsSettings() { return listKmsConfigsSettings; } /** Returns the builder for the settings used for calls to createKmsConfig. */ public UnaryCallSettings.Builder createKmsConfigSettings() { return createKmsConfigSettings; } /** Returns the builder for the settings used for calls to createKmsConfig. */ public OperationCallSettings.Builder createKmsConfigOperationSettings() { return createKmsConfigOperationSettings; } /** Returns the builder for the settings used for calls to getKmsConfig. */ public UnaryCallSettings.Builder getKmsConfigSettings() { return getKmsConfigSettings; } /** Returns the builder for the settings used for calls to updateKmsConfig. */ public UnaryCallSettings.Builder updateKmsConfigSettings() { return updateKmsConfigSettings; } /** Returns the builder for the settings used for calls to updateKmsConfig. */ public OperationCallSettings.Builder updateKmsConfigOperationSettings() { return updateKmsConfigOperationSettings; } /** Returns the builder for the settings used for calls to encryptVolumes. */ public UnaryCallSettings.Builder encryptVolumesSettings() { return encryptVolumesSettings; } /** Returns the builder for the settings used for calls to encryptVolumes. */ public OperationCallSettings.Builder encryptVolumesOperationSettings() { return encryptVolumesOperationSettings; } /** Returns the builder for the settings used for calls to verifyKmsConfig. */ public UnaryCallSettings.Builder verifyKmsConfigSettings() { return verifyKmsConfigSettings; } /** Returns the builder for the settings used for calls to deleteKmsConfig. */ public UnaryCallSettings.Builder deleteKmsConfigSettings() { return deleteKmsConfigSettings; } /** Returns the builder for the settings used for calls to deleteKmsConfig. */ public OperationCallSettings.Builder deleteKmsConfigOperationSettings() { return deleteKmsConfigOperationSettings; } /** Returns the builder for the settings used for calls to listReplications. */ public PagedCallSettings.Builder< ListReplicationsRequest, ListReplicationsResponse, ListReplicationsPagedResponse> listReplicationsSettings() { return listReplicationsSettings; } /** Returns the builder for the settings used for calls to getReplication. */ public UnaryCallSettings.Builder getReplicationSettings() { return getReplicationSettings; } /** Returns the builder for the settings used for calls to createReplication. */ public UnaryCallSettings.Builder createReplicationSettings() { return createReplicationSettings; } /** Returns the builder for the settings used for calls to createReplication. */ public OperationCallSettings.Builder createReplicationOperationSettings() { return createReplicationOperationSettings; } /** Returns the builder for the settings used for calls to deleteReplication. */ public UnaryCallSettings.Builder deleteReplicationSettings() { return deleteReplicationSettings; } /** Returns the builder for the settings used for calls to deleteReplication. */ public OperationCallSettings.Builder deleteReplicationOperationSettings() { return deleteReplicationOperationSettings; } /** Returns the builder for the settings used for calls to updateReplication. */ public UnaryCallSettings.Builder updateReplicationSettings() { return updateReplicationSettings; } /** Returns the builder for the settings used for calls to updateReplication. */ public OperationCallSettings.Builder updateReplicationOperationSettings() { return updateReplicationOperationSettings; } /** Returns the builder for the settings used for calls to stopReplication. */ public UnaryCallSettings.Builder stopReplicationSettings() { return stopReplicationSettings; } /** Returns the builder for the settings used for calls to stopReplication. */ public OperationCallSettings.Builder stopReplicationOperationSettings() { return stopReplicationOperationSettings; } /** Returns the builder for the settings used for calls to resumeReplication. */ public UnaryCallSettings.Builder resumeReplicationSettings() { return resumeReplicationSettings; } /** Returns the builder for the settings used for calls to resumeReplication. */ public OperationCallSettings.Builder resumeReplicationOperationSettings() { return resumeReplicationOperationSettings; } /** Returns the builder for the settings used for calls to reverseReplicationDirection. */ public UnaryCallSettings.Builder reverseReplicationDirectionSettings() { return reverseReplicationDirectionSettings; } /** Returns the builder for the settings used for calls to reverseReplicationDirection. */ public OperationCallSettings.Builder< ReverseReplicationDirectionRequest, Replication, OperationMetadata> reverseReplicationDirectionOperationSettings() { return reverseReplicationDirectionOperationSettings; } /** Returns the builder for the settings used for calls to createBackupVault. */ public UnaryCallSettings.Builder createBackupVaultSettings() { return createBackupVaultSettings; } /** Returns the builder for the settings used for calls to createBackupVault. */ public OperationCallSettings.Builder createBackupVaultOperationSettings() { return createBackupVaultOperationSettings; } /** Returns the builder for the settings used for calls to getBackupVault. */ public UnaryCallSettings.Builder getBackupVaultSettings() { return getBackupVaultSettings; } /** Returns the builder for the settings used for calls to listBackupVaults. */ public PagedCallSettings.Builder< ListBackupVaultsRequest, ListBackupVaultsResponse, ListBackupVaultsPagedResponse> listBackupVaultsSettings() { return listBackupVaultsSettings; } /** Returns the builder for the settings used for calls to updateBackupVault. */ public UnaryCallSettings.Builder updateBackupVaultSettings() { return updateBackupVaultSettings; } /** Returns the builder for the settings used for calls to updateBackupVault. */ public OperationCallSettings.Builder updateBackupVaultOperationSettings() { return updateBackupVaultOperationSettings; } /** Returns the builder for the settings used for calls to deleteBackupVault. */ public UnaryCallSettings.Builder deleteBackupVaultSettings() { return deleteBackupVaultSettings; } /** Returns the builder for the settings used for calls to deleteBackupVault. */ public OperationCallSettings.Builder deleteBackupVaultOperationSettings() { return deleteBackupVaultOperationSettings; } /** Returns the builder for the settings used for calls to createBackup. */ public UnaryCallSettings.Builder createBackupSettings() { return createBackupSettings; } /** Returns the builder for the settings used for calls to createBackup. */ public OperationCallSettings.Builder createBackupOperationSettings() { return createBackupOperationSettings; } /** Returns the builder for the settings used for calls to getBackup. */ public UnaryCallSettings.Builder getBackupSettings() { return getBackupSettings; } /** Returns the builder for the settings used for calls to listBackups. */ public PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> listBackupsSettings() { return listBackupsSettings; } /** Returns the builder for the settings used for calls to deleteBackup. */ public UnaryCallSettings.Builder deleteBackupSettings() { return deleteBackupSettings; } /** Returns the builder for the settings used for calls to deleteBackup. */ public OperationCallSettings.Builder deleteBackupOperationSettings() { return deleteBackupOperationSettings; } /** Returns the builder for the settings used for calls to updateBackup. */ public UnaryCallSettings.Builder updateBackupSettings() { return updateBackupSettings; } /** Returns the builder for the settings used for calls to updateBackup. */ public OperationCallSettings.Builder updateBackupOperationSettings() { return updateBackupOperationSettings; } /** Returns the builder for the settings used for calls to createBackupPolicy. */ public UnaryCallSettings.Builder createBackupPolicySettings() { return createBackupPolicySettings; } /** Returns the builder for the settings used for calls to createBackupPolicy. */ public OperationCallSettings.Builder createBackupPolicyOperationSettings() { return createBackupPolicyOperationSettings; } /** Returns the builder for the settings used for calls to getBackupPolicy. */ public UnaryCallSettings.Builder getBackupPolicySettings() { return getBackupPolicySettings; } /** Returns the builder for the settings used for calls to listBackupPolicies. */ public PagedCallSettings.Builder< ListBackupPoliciesRequest, ListBackupPoliciesResponse, ListBackupPoliciesPagedResponse> listBackupPoliciesSettings() { return listBackupPoliciesSettings; } /** Returns the builder for the settings used for calls to updateBackupPolicy. */ public UnaryCallSettings.Builder updateBackupPolicySettings() { return updateBackupPolicySettings; } /** Returns the builder for the settings used for calls to updateBackupPolicy. */ public OperationCallSettings.Builder updateBackupPolicyOperationSettings() { return updateBackupPolicyOperationSettings; } /** Returns the builder for the settings used for calls to deleteBackupPolicy. */ public UnaryCallSettings.Builder deleteBackupPolicySettings() { return deleteBackupPolicySettings; } /** Returns the builder for the settings used for calls to deleteBackupPolicy. */ public OperationCallSettings.Builder deleteBackupPolicyOperationSettings() { return deleteBackupPolicyOperationSettings; } /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings() { return listLocationsSettings; } /** Returns the builder for the settings used for calls to getLocation. */ public UnaryCallSettings.Builder getLocationSettings() { return getLocationSettings; } @Override public NetAppStubSettings build() throws IOException { return new NetAppStubSettings(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy