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

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

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.cloud.netapp.v1.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.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
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.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.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * gRPC stub implementation for the NetApp service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcNetAppStub extends NetAppStub { private static final MethodDescriptor listStoragePoolsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListStoragePools") .setRequestMarshaller( ProtoUtils.marshaller(ListStoragePoolsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListStoragePoolsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createStoragePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateStoragePool") .setRequestMarshaller( ProtoUtils.marshaller(CreateStoragePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getStoragePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetStoragePool") .setRequestMarshaller( ProtoUtils.marshaller(GetStoragePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(StoragePool.getDefaultInstance())) .build(); private static final MethodDescriptor updateStoragePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateStoragePool") .setRequestMarshaller( ProtoUtils.marshaller(UpdateStoragePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteStoragePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteStoragePool") .setRequestMarshaller( ProtoUtils.marshaller(DeleteStoragePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listVolumesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListVolumes") .setRequestMarshaller(ProtoUtils.marshaller(ListVolumesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListVolumesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getVolumeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetVolume") .setRequestMarshaller(ProtoUtils.marshaller(GetVolumeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Volume.getDefaultInstance())) .build(); private static final MethodDescriptor createVolumeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateVolume") .setRequestMarshaller(ProtoUtils.marshaller(CreateVolumeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateVolumeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateVolume") .setRequestMarshaller(ProtoUtils.marshaller(UpdateVolumeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteVolumeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteVolume") .setRequestMarshaller(ProtoUtils.marshaller(DeleteVolumeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor revertVolumeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/RevertVolume") .setRequestMarshaller(ProtoUtils.marshaller(RevertVolumeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listSnapshotsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListSnapshots") .setRequestMarshaller( ProtoUtils.marshaller(ListSnapshotsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSnapshotsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getSnapshotMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetSnapshot") .setRequestMarshaller(ProtoUtils.marshaller(GetSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) .build(); private static final MethodDescriptor createSnapshotMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateSnapshot") .setRequestMarshaller( ProtoUtils.marshaller(CreateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteSnapshotMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteSnapshot") .setRequestMarshaller( ProtoUtils.marshaller(DeleteSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateSnapshotMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateSnapshot") .setRequestMarshaller( ProtoUtils.marshaller(UpdateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listActiveDirectoriesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListActiveDirectories") .setRequestMarshaller( ProtoUtils.marshaller(ListActiveDirectoriesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListActiveDirectoriesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getActiveDirectoryMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetActiveDirectory") .setRequestMarshaller( ProtoUtils.marshaller(GetActiveDirectoryRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ActiveDirectory.getDefaultInstance())) .build(); private static final MethodDescriptor createActiveDirectoryMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateActiveDirectory") .setRequestMarshaller( ProtoUtils.marshaller(CreateActiveDirectoryRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateActiveDirectoryMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateActiveDirectory") .setRequestMarshaller( ProtoUtils.marshaller(UpdateActiveDirectoryRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteActiveDirectoryMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteActiveDirectory") .setRequestMarshaller( ProtoUtils.marshaller(DeleteActiveDirectoryRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listKmsConfigsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListKmsConfigs") .setRequestMarshaller( ProtoUtils.marshaller(ListKmsConfigsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListKmsConfigsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createKmsConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateKmsConfig") .setRequestMarshaller( ProtoUtils.marshaller(CreateKmsConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getKmsConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetKmsConfig") .setRequestMarshaller(ProtoUtils.marshaller(GetKmsConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(KmsConfig.getDefaultInstance())) .build(); private static final MethodDescriptor updateKmsConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateKmsConfig") .setRequestMarshaller( ProtoUtils.marshaller(UpdateKmsConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor encryptVolumesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/EncryptVolumes") .setRequestMarshaller( ProtoUtils.marshaller(EncryptVolumesRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor verifyKmsConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/VerifyKmsConfig") .setRequestMarshaller( ProtoUtils.marshaller(VerifyKmsConfigRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(VerifyKmsConfigResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteKmsConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteKmsConfig") .setRequestMarshaller( ProtoUtils.marshaller(DeleteKmsConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listReplicationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListReplications") .setRequestMarshaller( ProtoUtils.marshaller(ListReplicationsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListReplicationsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getReplicationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetReplication") .setRequestMarshaller( ProtoUtils.marshaller(GetReplicationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Replication.getDefaultInstance())) .build(); private static final MethodDescriptor createReplicationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateReplication") .setRequestMarshaller( ProtoUtils.marshaller(CreateReplicationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteReplicationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteReplication") .setRequestMarshaller( ProtoUtils.marshaller(DeleteReplicationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateReplicationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateReplication") .setRequestMarshaller( ProtoUtils.marshaller(UpdateReplicationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor stopReplicationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/StopReplication") .setRequestMarshaller( ProtoUtils.marshaller(StopReplicationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor resumeReplicationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ResumeReplication") .setRequestMarshaller( ProtoUtils.marshaller(ResumeReplicationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor reverseReplicationDirectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ReverseReplicationDirection") .setRequestMarshaller( ProtoUtils.marshaller(ReverseReplicationDirectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createBackupVaultMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateBackupVault") .setRequestMarshaller( ProtoUtils.marshaller(CreateBackupVaultRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getBackupVaultMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetBackupVault") .setRequestMarshaller( ProtoUtils.marshaller(GetBackupVaultRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(BackupVault.getDefaultInstance())) .build(); private static final MethodDescriptor listBackupVaultsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListBackupVaults") .setRequestMarshaller( ProtoUtils.marshaller(ListBackupVaultsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListBackupVaultsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor updateBackupVaultMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateBackupVault") .setRequestMarshaller( ProtoUtils.marshaller(UpdateBackupVaultRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteBackupVaultMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteBackupVault") .setRequestMarshaller( ProtoUtils.marshaller(DeleteBackupVaultRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createBackupMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateBackup") .setRequestMarshaller(ProtoUtils.marshaller(CreateBackupRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getBackupMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetBackup") .setRequestMarshaller(ProtoUtils.marshaller(GetBackupRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Backup.getDefaultInstance())) .build(); private static final MethodDescriptor listBackupsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListBackups") .setRequestMarshaller(ProtoUtils.marshaller(ListBackupsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListBackupsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteBackupMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteBackup") .setRequestMarshaller(ProtoUtils.marshaller(DeleteBackupRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateBackupMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateBackup") .setRequestMarshaller(ProtoUtils.marshaller(UpdateBackupRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createBackupPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/CreateBackupPolicy") .setRequestMarshaller( ProtoUtils.marshaller(CreateBackupPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getBackupPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/GetBackupPolicy") .setRequestMarshaller( ProtoUtils.marshaller(GetBackupPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(BackupPolicy.getDefaultInstance())) .build(); private static final MethodDescriptor listBackupPoliciesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/ListBackupPolicies") .setRequestMarshaller( ProtoUtils.marshaller(ListBackupPoliciesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListBackupPoliciesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor updateBackupPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/UpdateBackupPolicy") .setRequestMarshaller( ProtoUtils.marshaller(UpdateBackupPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteBackupPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.netapp.v1.NetApp/DeleteBackupPolicy") .setRequestMarshaller( ProtoUtils.marshaller(DeleteBackupPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.location.Locations/ListLocations") .setRequestMarshaller( ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getLocationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.location.Locations/GetLocation") .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) .build(); private final UnaryCallable listStoragePoolsCallable; private final UnaryCallable listStoragePoolsPagedCallable; private final UnaryCallable createStoragePoolCallable; private final OperationCallable createStoragePoolOperationCallable; private final UnaryCallable getStoragePoolCallable; private final UnaryCallable updateStoragePoolCallable; private final OperationCallable updateStoragePoolOperationCallable; private final UnaryCallable deleteStoragePoolCallable; private final OperationCallable deleteStoragePoolOperationCallable; private final UnaryCallable listVolumesCallable; private final UnaryCallable listVolumesPagedCallable; private final UnaryCallable getVolumeCallable; private final UnaryCallable createVolumeCallable; private final OperationCallable createVolumeOperationCallable; private final UnaryCallable updateVolumeCallable; private final OperationCallable updateVolumeOperationCallable; private final UnaryCallable deleteVolumeCallable; private final OperationCallable deleteVolumeOperationCallable; private final UnaryCallable revertVolumeCallable; private final OperationCallable revertVolumeOperationCallable; private final UnaryCallable listSnapshotsCallable; private final UnaryCallable listSnapshotsPagedCallable; private final UnaryCallable getSnapshotCallable; private final UnaryCallable createSnapshotCallable; private final OperationCallable createSnapshotOperationCallable; private final UnaryCallable deleteSnapshotCallable; private final OperationCallable deleteSnapshotOperationCallable; private final UnaryCallable updateSnapshotCallable; private final OperationCallable updateSnapshotOperationCallable; private final UnaryCallable listActiveDirectoriesCallable; private final UnaryCallable listActiveDirectoriesPagedCallable; private final UnaryCallable getActiveDirectoryCallable; private final UnaryCallable createActiveDirectoryCallable; private final OperationCallable createActiveDirectoryOperationCallable; private final UnaryCallable updateActiveDirectoryCallable; private final OperationCallable updateActiveDirectoryOperationCallable; private final UnaryCallable deleteActiveDirectoryCallable; private final OperationCallable deleteActiveDirectoryOperationCallable; private final UnaryCallable listKmsConfigsCallable; private final UnaryCallable listKmsConfigsPagedCallable; private final UnaryCallable createKmsConfigCallable; private final OperationCallable createKmsConfigOperationCallable; private final UnaryCallable getKmsConfigCallable; private final UnaryCallable updateKmsConfigCallable; private final OperationCallable updateKmsConfigOperationCallable; private final UnaryCallable encryptVolumesCallable; private final OperationCallable encryptVolumesOperationCallable; private final UnaryCallable verifyKmsConfigCallable; private final UnaryCallable deleteKmsConfigCallable; private final OperationCallable deleteKmsConfigOperationCallable; private final UnaryCallable listReplicationsCallable; private final UnaryCallable listReplicationsPagedCallable; private final UnaryCallable getReplicationCallable; private final UnaryCallable createReplicationCallable; private final OperationCallable createReplicationOperationCallable; private final UnaryCallable deleteReplicationCallable; private final OperationCallable deleteReplicationOperationCallable; private final UnaryCallable updateReplicationCallable; private final OperationCallable updateReplicationOperationCallable; private final UnaryCallable stopReplicationCallable; private final OperationCallable stopReplicationOperationCallable; private final UnaryCallable resumeReplicationCallable; private final OperationCallable resumeReplicationOperationCallable; private final UnaryCallable reverseReplicationDirectionCallable; private final OperationCallable< ReverseReplicationDirectionRequest, Replication, OperationMetadata> reverseReplicationDirectionOperationCallable; private final UnaryCallable createBackupVaultCallable; private final OperationCallable createBackupVaultOperationCallable; private final UnaryCallable getBackupVaultCallable; private final UnaryCallable listBackupVaultsCallable; private final UnaryCallable listBackupVaultsPagedCallable; private final UnaryCallable updateBackupVaultCallable; private final OperationCallable updateBackupVaultOperationCallable; private final UnaryCallable deleteBackupVaultCallable; private final OperationCallable deleteBackupVaultOperationCallable; private final UnaryCallable createBackupCallable; private final OperationCallable createBackupOperationCallable; private final UnaryCallable getBackupCallable; private final UnaryCallable listBackupsCallable; private final UnaryCallable listBackupsPagedCallable; private final UnaryCallable deleteBackupCallable; private final OperationCallable deleteBackupOperationCallable; private final UnaryCallable updateBackupCallable; private final OperationCallable updateBackupOperationCallable; private final UnaryCallable createBackupPolicyCallable; private final OperationCallable createBackupPolicyOperationCallable; private final UnaryCallable getBackupPolicyCallable; private final UnaryCallable listBackupPoliciesCallable; private final UnaryCallable listBackupPoliciesPagedCallable; private final UnaryCallable updateBackupPolicyCallable; private final OperationCallable updateBackupPolicyOperationCallable; private final UnaryCallable deleteBackupPolicyCallable; private final OperationCallable deleteBackupPolicyOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcNetAppStub create(NetAppStubSettings settings) throws IOException { return new GrpcNetAppStub(settings, ClientContext.create(settings)); } public static final GrpcNetAppStub create(ClientContext clientContext) throws IOException { return new GrpcNetAppStub(NetAppStubSettings.newBuilder().build(), clientContext); } public static final GrpcNetAppStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcNetAppStub( NetAppStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcNetAppStub, using the given settings. This is protected so that * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. */ protected GrpcNetAppStub(NetAppStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcNetAppCallableFactory()); } /** * Constructs an instance of GrpcNetAppStub, using the given settings. This is protected so that * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. */ protected GrpcNetAppStub( NetAppStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings listStoragePoolsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listStoragePoolsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createStoragePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createStoragePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getStoragePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getStoragePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateStoragePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateStoragePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "storage_pool.name", String.valueOf(request.getStoragePool().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteStoragePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteStoragePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listVolumesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listVolumesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getVolumeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getVolumeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createVolumeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createVolumeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateVolumeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateVolumeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("volume.name", String.valueOf(request.getVolume().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteVolumeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteVolumeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings revertVolumeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(revertVolumeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listSnapshotsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSnapshotsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSnapshotMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSnapshotMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSnapshotMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSnapshotMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("snapshot.name", String.valueOf(request.getSnapshot().getName())); return builder.build(); }) .build(); GrpcCallSettings listActiveDirectoriesTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listActiveDirectoriesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getActiveDirectoryTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getActiveDirectoryMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createActiveDirectoryTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createActiveDirectoryMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateActiveDirectoryTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateActiveDirectoryMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "active_directory.name", String.valueOf(request.getActiveDirectory().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteActiveDirectoryTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteActiveDirectoryMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listKmsConfigsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listKmsConfigsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createKmsConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createKmsConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getKmsConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getKmsConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateKmsConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateKmsConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("kms_config.name", String.valueOf(request.getKmsConfig().getName())); return builder.build(); }) .build(); GrpcCallSettings encryptVolumesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(encryptVolumesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings verifyKmsConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(verifyKmsConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings deleteKmsConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteKmsConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listReplicationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listReplicationsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getReplicationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getReplicationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createReplicationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createReplicationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteReplicationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteReplicationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateReplicationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateReplicationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "replication.name", String.valueOf(request.getReplication().getName())); return builder.build(); }) .build(); GrpcCallSettings stopReplicationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(stopReplicationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings resumeReplicationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeReplicationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings reverseReplicationDirectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(reverseReplicationDirectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createBackupVaultTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createBackupVaultMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getBackupVaultTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getBackupVaultMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listBackupVaultsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listBackupVaultsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateBackupVaultTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateBackupVaultMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "backup_vault.name", String.valueOf(request.getBackupVault().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteBackupVaultTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteBackupVaultMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createBackupTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createBackupMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getBackupTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getBackupMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listBackupsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listBackupsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteBackupTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteBackupMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateBackupTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateBackupMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("backup.name", String.valueOf(request.getBackup().getName())); return builder.build(); }) .build(); GrpcCallSettings createBackupPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createBackupPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getBackupPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getBackupPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listBackupPoliciesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listBackupPoliciesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateBackupPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateBackupPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "backup_policy.name", String.valueOf(request.getBackupPolicy().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteBackupPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteBackupPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getLocationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getLocationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); this.listStoragePoolsCallable = callableFactory.createUnaryCallable( listStoragePoolsTransportSettings, settings.listStoragePoolsSettings(), clientContext); this.listStoragePoolsPagedCallable = callableFactory.createPagedCallable( listStoragePoolsTransportSettings, settings.listStoragePoolsSettings(), clientContext); this.createStoragePoolCallable = callableFactory.createUnaryCallable( createStoragePoolTransportSettings, settings.createStoragePoolSettings(), clientContext); this.createStoragePoolOperationCallable = callableFactory.createOperationCallable( createStoragePoolTransportSettings, settings.createStoragePoolOperationSettings(), clientContext, operationsStub); this.getStoragePoolCallable = callableFactory.createUnaryCallable( getStoragePoolTransportSettings, settings.getStoragePoolSettings(), clientContext); this.updateStoragePoolCallable = callableFactory.createUnaryCallable( updateStoragePoolTransportSettings, settings.updateStoragePoolSettings(), clientContext); this.updateStoragePoolOperationCallable = callableFactory.createOperationCallable( updateStoragePoolTransportSettings, settings.updateStoragePoolOperationSettings(), clientContext, operationsStub); this.deleteStoragePoolCallable = callableFactory.createUnaryCallable( deleteStoragePoolTransportSettings, settings.deleteStoragePoolSettings(), clientContext); this.deleteStoragePoolOperationCallable = callableFactory.createOperationCallable( deleteStoragePoolTransportSettings, settings.deleteStoragePoolOperationSettings(), clientContext, operationsStub); this.listVolumesCallable = callableFactory.createUnaryCallable( listVolumesTransportSettings, settings.listVolumesSettings(), clientContext); this.listVolumesPagedCallable = callableFactory.createPagedCallable( listVolumesTransportSettings, settings.listVolumesSettings(), clientContext); this.getVolumeCallable = callableFactory.createUnaryCallable( getVolumeTransportSettings, settings.getVolumeSettings(), clientContext); this.createVolumeCallable = callableFactory.createUnaryCallable( createVolumeTransportSettings, settings.createVolumeSettings(), clientContext); this.createVolumeOperationCallable = callableFactory.createOperationCallable( createVolumeTransportSettings, settings.createVolumeOperationSettings(), clientContext, operationsStub); this.updateVolumeCallable = callableFactory.createUnaryCallable( updateVolumeTransportSettings, settings.updateVolumeSettings(), clientContext); this.updateVolumeOperationCallable = callableFactory.createOperationCallable( updateVolumeTransportSettings, settings.updateVolumeOperationSettings(), clientContext, operationsStub); this.deleteVolumeCallable = callableFactory.createUnaryCallable( deleteVolumeTransportSettings, settings.deleteVolumeSettings(), clientContext); this.deleteVolumeOperationCallable = callableFactory.createOperationCallable( deleteVolumeTransportSettings, settings.deleteVolumeOperationSettings(), clientContext, operationsStub); this.revertVolumeCallable = callableFactory.createUnaryCallable( revertVolumeTransportSettings, settings.revertVolumeSettings(), clientContext); this.revertVolumeOperationCallable = callableFactory.createOperationCallable( revertVolumeTransportSettings, settings.revertVolumeOperationSettings(), clientContext, operationsStub); this.listSnapshotsCallable = callableFactory.createUnaryCallable( listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); this.listSnapshotsPagedCallable = callableFactory.createPagedCallable( listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); this.getSnapshotCallable = callableFactory.createUnaryCallable( getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext); this.createSnapshotCallable = callableFactory.createUnaryCallable( createSnapshotTransportSettings, settings.createSnapshotSettings(), clientContext); this.createSnapshotOperationCallable = callableFactory.createOperationCallable( createSnapshotTransportSettings, settings.createSnapshotOperationSettings(), clientContext, operationsStub); this.deleteSnapshotCallable = callableFactory.createUnaryCallable( deleteSnapshotTransportSettings, settings.deleteSnapshotSettings(), clientContext); this.deleteSnapshotOperationCallable = callableFactory.createOperationCallable( deleteSnapshotTransportSettings, settings.deleteSnapshotOperationSettings(), clientContext, operationsStub); this.updateSnapshotCallable = callableFactory.createUnaryCallable( updateSnapshotTransportSettings, settings.updateSnapshotSettings(), clientContext); this.updateSnapshotOperationCallable = callableFactory.createOperationCallable( updateSnapshotTransportSettings, settings.updateSnapshotOperationSettings(), clientContext, operationsStub); this.listActiveDirectoriesCallable = callableFactory.createUnaryCallable( listActiveDirectoriesTransportSettings, settings.listActiveDirectoriesSettings(), clientContext); this.listActiveDirectoriesPagedCallable = callableFactory.createPagedCallable( listActiveDirectoriesTransportSettings, settings.listActiveDirectoriesSettings(), clientContext); this.getActiveDirectoryCallable = callableFactory.createUnaryCallable( getActiveDirectoryTransportSettings, settings.getActiveDirectorySettings(), clientContext); this.createActiveDirectoryCallable = callableFactory.createUnaryCallable( createActiveDirectoryTransportSettings, settings.createActiveDirectorySettings(), clientContext); this.createActiveDirectoryOperationCallable = callableFactory.createOperationCallable( createActiveDirectoryTransportSettings, settings.createActiveDirectoryOperationSettings(), clientContext, operationsStub); this.updateActiveDirectoryCallable = callableFactory.createUnaryCallable( updateActiveDirectoryTransportSettings, settings.updateActiveDirectorySettings(), clientContext); this.updateActiveDirectoryOperationCallable = callableFactory.createOperationCallable( updateActiveDirectoryTransportSettings, settings.updateActiveDirectoryOperationSettings(), clientContext, operationsStub); this.deleteActiveDirectoryCallable = callableFactory.createUnaryCallable( deleteActiveDirectoryTransportSettings, settings.deleteActiveDirectorySettings(), clientContext); this.deleteActiveDirectoryOperationCallable = callableFactory.createOperationCallable( deleteActiveDirectoryTransportSettings, settings.deleteActiveDirectoryOperationSettings(), clientContext, operationsStub); this.listKmsConfigsCallable = callableFactory.createUnaryCallable( listKmsConfigsTransportSettings, settings.listKmsConfigsSettings(), clientContext); this.listKmsConfigsPagedCallable = callableFactory.createPagedCallable( listKmsConfigsTransportSettings, settings.listKmsConfigsSettings(), clientContext); this.createKmsConfigCallable = callableFactory.createUnaryCallable( createKmsConfigTransportSettings, settings.createKmsConfigSettings(), clientContext); this.createKmsConfigOperationCallable = callableFactory.createOperationCallable( createKmsConfigTransportSettings, settings.createKmsConfigOperationSettings(), clientContext, operationsStub); this.getKmsConfigCallable = callableFactory.createUnaryCallable( getKmsConfigTransportSettings, settings.getKmsConfigSettings(), clientContext); this.updateKmsConfigCallable = callableFactory.createUnaryCallable( updateKmsConfigTransportSettings, settings.updateKmsConfigSettings(), clientContext); this.updateKmsConfigOperationCallable = callableFactory.createOperationCallable( updateKmsConfigTransportSettings, settings.updateKmsConfigOperationSettings(), clientContext, operationsStub); this.encryptVolumesCallable = callableFactory.createUnaryCallable( encryptVolumesTransportSettings, settings.encryptVolumesSettings(), clientContext); this.encryptVolumesOperationCallable = callableFactory.createOperationCallable( encryptVolumesTransportSettings, settings.encryptVolumesOperationSettings(), clientContext, operationsStub); this.verifyKmsConfigCallable = callableFactory.createUnaryCallable( verifyKmsConfigTransportSettings, settings.verifyKmsConfigSettings(), clientContext); this.deleteKmsConfigCallable = callableFactory.createUnaryCallable( deleteKmsConfigTransportSettings, settings.deleteKmsConfigSettings(), clientContext); this.deleteKmsConfigOperationCallable = callableFactory.createOperationCallable( deleteKmsConfigTransportSettings, settings.deleteKmsConfigOperationSettings(), clientContext, operationsStub); this.listReplicationsCallable = callableFactory.createUnaryCallable( listReplicationsTransportSettings, settings.listReplicationsSettings(), clientContext); this.listReplicationsPagedCallable = callableFactory.createPagedCallable( listReplicationsTransportSettings, settings.listReplicationsSettings(), clientContext); this.getReplicationCallable = callableFactory.createUnaryCallable( getReplicationTransportSettings, settings.getReplicationSettings(), clientContext); this.createReplicationCallable = callableFactory.createUnaryCallable( createReplicationTransportSettings, settings.createReplicationSettings(), clientContext); this.createReplicationOperationCallable = callableFactory.createOperationCallable( createReplicationTransportSettings, settings.createReplicationOperationSettings(), clientContext, operationsStub); this.deleteReplicationCallable = callableFactory.createUnaryCallable( deleteReplicationTransportSettings, settings.deleteReplicationSettings(), clientContext); this.deleteReplicationOperationCallable = callableFactory.createOperationCallable( deleteReplicationTransportSettings, settings.deleteReplicationOperationSettings(), clientContext, operationsStub); this.updateReplicationCallable = callableFactory.createUnaryCallable( updateReplicationTransportSettings, settings.updateReplicationSettings(), clientContext); this.updateReplicationOperationCallable = callableFactory.createOperationCallable( updateReplicationTransportSettings, settings.updateReplicationOperationSettings(), clientContext, operationsStub); this.stopReplicationCallable = callableFactory.createUnaryCallable( stopReplicationTransportSettings, settings.stopReplicationSettings(), clientContext); this.stopReplicationOperationCallable = callableFactory.createOperationCallable( stopReplicationTransportSettings, settings.stopReplicationOperationSettings(), clientContext, operationsStub); this.resumeReplicationCallable = callableFactory.createUnaryCallable( resumeReplicationTransportSettings, settings.resumeReplicationSettings(), clientContext); this.resumeReplicationOperationCallable = callableFactory.createOperationCallable( resumeReplicationTransportSettings, settings.resumeReplicationOperationSettings(), clientContext, operationsStub); this.reverseReplicationDirectionCallable = callableFactory.createUnaryCallable( reverseReplicationDirectionTransportSettings, settings.reverseReplicationDirectionSettings(), clientContext); this.reverseReplicationDirectionOperationCallable = callableFactory.createOperationCallable( reverseReplicationDirectionTransportSettings, settings.reverseReplicationDirectionOperationSettings(), clientContext, operationsStub); this.createBackupVaultCallable = callableFactory.createUnaryCallable( createBackupVaultTransportSettings, settings.createBackupVaultSettings(), clientContext); this.createBackupVaultOperationCallable = callableFactory.createOperationCallable( createBackupVaultTransportSettings, settings.createBackupVaultOperationSettings(), clientContext, operationsStub); this.getBackupVaultCallable = callableFactory.createUnaryCallable( getBackupVaultTransportSettings, settings.getBackupVaultSettings(), clientContext); this.listBackupVaultsCallable = callableFactory.createUnaryCallable( listBackupVaultsTransportSettings, settings.listBackupVaultsSettings(), clientContext); this.listBackupVaultsPagedCallable = callableFactory.createPagedCallable( listBackupVaultsTransportSettings, settings.listBackupVaultsSettings(), clientContext); this.updateBackupVaultCallable = callableFactory.createUnaryCallable( updateBackupVaultTransportSettings, settings.updateBackupVaultSettings(), clientContext); this.updateBackupVaultOperationCallable = callableFactory.createOperationCallable( updateBackupVaultTransportSettings, settings.updateBackupVaultOperationSettings(), clientContext, operationsStub); this.deleteBackupVaultCallable = callableFactory.createUnaryCallable( deleteBackupVaultTransportSettings, settings.deleteBackupVaultSettings(), clientContext); this.deleteBackupVaultOperationCallable = callableFactory.createOperationCallable( deleteBackupVaultTransportSettings, settings.deleteBackupVaultOperationSettings(), clientContext, operationsStub); this.createBackupCallable = callableFactory.createUnaryCallable( createBackupTransportSettings, settings.createBackupSettings(), clientContext); this.createBackupOperationCallable = callableFactory.createOperationCallable( createBackupTransportSettings, settings.createBackupOperationSettings(), clientContext, operationsStub); this.getBackupCallable = callableFactory.createUnaryCallable( getBackupTransportSettings, settings.getBackupSettings(), clientContext); this.listBackupsCallable = callableFactory.createUnaryCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); this.listBackupsPagedCallable = callableFactory.createPagedCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); this.deleteBackupCallable = callableFactory.createUnaryCallable( deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext); this.deleteBackupOperationCallable = callableFactory.createOperationCallable( deleteBackupTransportSettings, settings.deleteBackupOperationSettings(), clientContext, operationsStub); this.updateBackupCallable = callableFactory.createUnaryCallable( updateBackupTransportSettings, settings.updateBackupSettings(), clientContext); this.updateBackupOperationCallable = callableFactory.createOperationCallable( updateBackupTransportSettings, settings.updateBackupOperationSettings(), clientContext, operationsStub); this.createBackupPolicyCallable = callableFactory.createUnaryCallable( createBackupPolicyTransportSettings, settings.createBackupPolicySettings(), clientContext); this.createBackupPolicyOperationCallable = callableFactory.createOperationCallable( createBackupPolicyTransportSettings, settings.createBackupPolicyOperationSettings(), clientContext, operationsStub); this.getBackupPolicyCallable = callableFactory.createUnaryCallable( getBackupPolicyTransportSettings, settings.getBackupPolicySettings(), clientContext); this.listBackupPoliciesCallable = callableFactory.createUnaryCallable( listBackupPoliciesTransportSettings, settings.listBackupPoliciesSettings(), clientContext); this.listBackupPoliciesPagedCallable = callableFactory.createPagedCallable( listBackupPoliciesTransportSettings, settings.listBackupPoliciesSettings(), clientContext); this.updateBackupPolicyCallable = callableFactory.createUnaryCallable( updateBackupPolicyTransportSettings, settings.updateBackupPolicySettings(), clientContext); this.updateBackupPolicyOperationCallable = callableFactory.createOperationCallable( updateBackupPolicyTransportSettings, settings.updateBackupPolicyOperationSettings(), clientContext, operationsStub); this.deleteBackupPolicyCallable = callableFactory.createUnaryCallable( deleteBackupPolicyTransportSettings, settings.deleteBackupPolicySettings(), clientContext); this.deleteBackupPolicyOperationCallable = callableFactory.createOperationCallable( deleteBackupPolicyTransportSettings, settings.deleteBackupPolicyOperationSettings(), clientContext, operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.listLocationsPagedCallable = callableFactory.createPagedCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.getLocationCallable = callableFactory.createUnaryCallable( getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable listStoragePoolsCallable() { return listStoragePoolsCallable; } @Override public UnaryCallable listStoragePoolsPagedCallable() { return listStoragePoolsPagedCallable; } @Override public UnaryCallable createStoragePoolCallable() { return createStoragePoolCallable; } @Override public OperationCallable createStoragePoolOperationCallable() { return createStoragePoolOperationCallable; } @Override public UnaryCallable getStoragePoolCallable() { return getStoragePoolCallable; } @Override public UnaryCallable updateStoragePoolCallable() { return updateStoragePoolCallable; } @Override public OperationCallable updateStoragePoolOperationCallable() { return updateStoragePoolOperationCallable; } @Override public UnaryCallable deleteStoragePoolCallable() { return deleteStoragePoolCallable; } @Override public OperationCallable deleteStoragePoolOperationCallable() { return deleteStoragePoolOperationCallable; } @Override public UnaryCallable listVolumesCallable() { return listVolumesCallable; } @Override public UnaryCallable listVolumesPagedCallable() { return listVolumesPagedCallable; } @Override public UnaryCallable getVolumeCallable() { return getVolumeCallable; } @Override public UnaryCallable createVolumeCallable() { return createVolumeCallable; } @Override public OperationCallable createVolumeOperationCallable() { return createVolumeOperationCallable; } @Override public UnaryCallable updateVolumeCallable() { return updateVolumeCallable; } @Override public OperationCallable updateVolumeOperationCallable() { return updateVolumeOperationCallable; } @Override public UnaryCallable deleteVolumeCallable() { return deleteVolumeCallable; } @Override public OperationCallable deleteVolumeOperationCallable() { return deleteVolumeOperationCallable; } @Override public UnaryCallable revertVolumeCallable() { return revertVolumeCallable; } @Override public OperationCallable revertVolumeOperationCallable() { return revertVolumeOperationCallable; } @Override public UnaryCallable listSnapshotsCallable() { return listSnapshotsCallable; } @Override public UnaryCallable listSnapshotsPagedCallable() { return listSnapshotsPagedCallable; } @Override public UnaryCallable getSnapshotCallable() { return getSnapshotCallable; } @Override public UnaryCallable createSnapshotCallable() { return createSnapshotCallable; } @Override public OperationCallable createSnapshotOperationCallable() { return createSnapshotOperationCallable; } @Override public UnaryCallable deleteSnapshotCallable() { return deleteSnapshotCallable; } @Override public OperationCallable deleteSnapshotOperationCallable() { return deleteSnapshotOperationCallable; } @Override public UnaryCallable updateSnapshotCallable() { return updateSnapshotCallable; } @Override public OperationCallable updateSnapshotOperationCallable() { return updateSnapshotOperationCallable; } @Override public UnaryCallable listActiveDirectoriesCallable() { return listActiveDirectoriesCallable; } @Override public UnaryCallable listActiveDirectoriesPagedCallable() { return listActiveDirectoriesPagedCallable; } @Override public UnaryCallable getActiveDirectoryCallable() { return getActiveDirectoryCallable; } @Override public UnaryCallable createActiveDirectoryCallable() { return createActiveDirectoryCallable; } @Override public OperationCallable createActiveDirectoryOperationCallable() { return createActiveDirectoryOperationCallable; } @Override public UnaryCallable updateActiveDirectoryCallable() { return updateActiveDirectoryCallable; } @Override public OperationCallable updateActiveDirectoryOperationCallable() { return updateActiveDirectoryOperationCallable; } @Override public UnaryCallable deleteActiveDirectoryCallable() { return deleteActiveDirectoryCallable; } @Override public OperationCallable deleteActiveDirectoryOperationCallable() { return deleteActiveDirectoryOperationCallable; } @Override public UnaryCallable listKmsConfigsCallable() { return listKmsConfigsCallable; } @Override public UnaryCallable listKmsConfigsPagedCallable() { return listKmsConfigsPagedCallable; } @Override public UnaryCallable createKmsConfigCallable() { return createKmsConfigCallable; } @Override public OperationCallable createKmsConfigOperationCallable() { return createKmsConfigOperationCallable; } @Override public UnaryCallable getKmsConfigCallable() { return getKmsConfigCallable; } @Override public UnaryCallable updateKmsConfigCallable() { return updateKmsConfigCallable; } @Override public OperationCallable updateKmsConfigOperationCallable() { return updateKmsConfigOperationCallable; } @Override public UnaryCallable encryptVolumesCallable() { return encryptVolumesCallable; } @Override public OperationCallable encryptVolumesOperationCallable() { return encryptVolumesOperationCallable; } @Override public UnaryCallable verifyKmsConfigCallable() { return verifyKmsConfigCallable; } @Override public UnaryCallable deleteKmsConfigCallable() { return deleteKmsConfigCallable; } @Override public OperationCallable deleteKmsConfigOperationCallable() { return deleteKmsConfigOperationCallable; } @Override public UnaryCallable listReplicationsCallable() { return listReplicationsCallable; } @Override public UnaryCallable listReplicationsPagedCallable() { return listReplicationsPagedCallable; } @Override public UnaryCallable getReplicationCallable() { return getReplicationCallable; } @Override public UnaryCallable createReplicationCallable() { return createReplicationCallable; } @Override public OperationCallable createReplicationOperationCallable() { return createReplicationOperationCallable; } @Override public UnaryCallable deleteReplicationCallable() { return deleteReplicationCallable; } @Override public OperationCallable deleteReplicationOperationCallable() { return deleteReplicationOperationCallable; } @Override public UnaryCallable updateReplicationCallable() { return updateReplicationCallable; } @Override public OperationCallable updateReplicationOperationCallable() { return updateReplicationOperationCallable; } @Override public UnaryCallable stopReplicationCallable() { return stopReplicationCallable; } @Override public OperationCallable stopReplicationOperationCallable() { return stopReplicationOperationCallable; } @Override public UnaryCallable resumeReplicationCallable() { return resumeReplicationCallable; } @Override public OperationCallable resumeReplicationOperationCallable() { return resumeReplicationOperationCallable; } @Override public UnaryCallable reverseReplicationDirectionCallable() { return reverseReplicationDirectionCallable; } @Override public OperationCallable reverseReplicationDirectionOperationCallable() { return reverseReplicationDirectionOperationCallable; } @Override public UnaryCallable createBackupVaultCallable() { return createBackupVaultCallable; } @Override public OperationCallable createBackupVaultOperationCallable() { return createBackupVaultOperationCallable; } @Override public UnaryCallable getBackupVaultCallable() { return getBackupVaultCallable; } @Override public UnaryCallable listBackupVaultsCallable() { return listBackupVaultsCallable; } @Override public UnaryCallable listBackupVaultsPagedCallable() { return listBackupVaultsPagedCallable; } @Override public UnaryCallable updateBackupVaultCallable() { return updateBackupVaultCallable; } @Override public OperationCallable updateBackupVaultOperationCallable() { return updateBackupVaultOperationCallable; } @Override public UnaryCallable deleteBackupVaultCallable() { return deleteBackupVaultCallable; } @Override public OperationCallable deleteBackupVaultOperationCallable() { return deleteBackupVaultOperationCallable; } @Override public UnaryCallable createBackupCallable() { return createBackupCallable; } @Override public OperationCallable createBackupOperationCallable() { return createBackupOperationCallable; } @Override public UnaryCallable getBackupCallable() { return getBackupCallable; } @Override public UnaryCallable listBackupsCallable() { return listBackupsCallable; } @Override public UnaryCallable listBackupsPagedCallable() { return listBackupsPagedCallable; } @Override public UnaryCallable deleteBackupCallable() { return deleteBackupCallable; } @Override public OperationCallable deleteBackupOperationCallable() { return deleteBackupOperationCallable; } @Override public UnaryCallable updateBackupCallable() { return updateBackupCallable; } @Override public OperationCallable updateBackupOperationCallable() { return updateBackupOperationCallable; } @Override public UnaryCallable createBackupPolicyCallable() { return createBackupPolicyCallable; } @Override public OperationCallable createBackupPolicyOperationCallable() { return createBackupPolicyOperationCallable; } @Override public UnaryCallable getBackupPolicyCallable() { return getBackupPolicyCallable; } @Override public UnaryCallable listBackupPoliciesCallable() { return listBackupPoliciesCallable; } @Override public UnaryCallable listBackupPoliciesPagedCallable() { return listBackupPoliciesPagedCallable; } @Override public UnaryCallable updateBackupPolicyCallable() { return updateBackupPolicyCallable; } @Override public OperationCallable updateBackupPolicyOperationCallable() { return updateBackupPolicyOperationCallable; } @Override public UnaryCallable deleteBackupPolicyCallable() { return deleteBackupPolicyCallable; } @Override public OperationCallable deleteBackupPolicyOperationCallable() { return deleteBackupPolicyOperationCallable; } @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; } @Override public UnaryCallable listLocationsPagedCallable() { return listLocationsPagedCallable; } @Override public UnaryCallable getLocationCallable() { return getLocationCallable; } @Override public final void close() { try { backgroundResources.close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Failed to close resource", e); } } @Override public void shutdown() { backgroundResources.shutdown(); } @Override public boolean isShutdown() { return backgroundResources.isShutdown(); } @Override public boolean isTerminated() { return backgroundResources.isTerminated(); } @Override public void shutdownNow() { backgroundResources.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return backgroundResources.awaitTermination(duration, unit); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy