com.google.cloud.netapp.v1.stub.NetAppStubSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloud-netapp Show documentation
Show all versions of google-cloud-netapp Show documentation
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