@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_GET_GOOGLE_SERVICE_ACCOUNT:
          serviceImpl.getGoogleServiceAccount(
              (com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest)
                  request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>)
                  responseObserver);
          break;
        case METHODID_CREATE_TRANSFER_JOB:
          serviceImpl.createTransferJob(
              (com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>)
                  responseObserver);
          break;
        case METHODID_UPDATE_TRANSFER_JOB:
          serviceImpl.updateTransferJob(
              (com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>)
                  responseObserver);
          break;
        case METHODID_GET_TRANSFER_JOB:
          serviceImpl.getTransferJob(
              (com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>)
                  responseObserver);
          break;
        case METHODID_LIST_TRANSFER_JOBS:
          serviceImpl.listTransferJobs(
              (com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>)
                  responseObserver);
          break;
        case METHODID_PAUSE_TRANSFER_OPERATION:
          serviceImpl.pauseTransferOperation(
              (com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest)
                  request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_RESUME_TRANSFER_OPERATION:
          serviceImpl.resumeTransferOperation(
              (com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest)
                  request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_RUN_TRANSFER_JOB:
          serviceImpl.runTransferJob(
              (com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_TRANSFER_JOB:
          serviceImpl.deleteTransferJob(
              (com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_CREATE_AGENT_POOL:
          serviceImpl.createAgentPool(
              (com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>)
                  responseObserver);
          break;
        case METHODID_UPDATE_AGENT_POOL:
          serviceImpl.updateAgentPool(
              (com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>)
                  responseObserver);
          break;
        case METHODID_GET_AGENT_POOL:
          serviceImpl.getAgentPool(
              (com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>)
                  responseObserver);
          break;
        case METHODID_LIST_AGENT_POOLS:
          serviceImpl.listAgentPools(
              (com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>)
                  responseObserver);
          break;
        case METHODID_DELETE_AGENT_POOL:
          serviceImpl.deleteAgentPool(
              (com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }
<pre>
Deletes an agent pool.
</pre>
java-storage-transfer/grpc-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceGrpc.java