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