@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_CREATE_RECOGNIZER:
          serviceImpl.createRecognizer(
              (com.google.cloud.speech.v2.CreateRecognizerRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_LIST_RECOGNIZERS:
          serviceImpl.listRecognizers(
              (com.google.cloud.speech.v2.ListRecognizersRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.ListRecognizersResponse>)
                  responseObserver);
          break;
        case METHODID_GET_RECOGNIZER:
          serviceImpl.getRecognizer(
              (com.google.cloud.speech.v2.GetRecognizerRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.Recognizer>)
                  responseObserver);
          break;
        case METHODID_UPDATE_RECOGNIZER:
          serviceImpl.updateRecognizer(
              (com.google.cloud.speech.v2.UpdateRecognizerRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_RECOGNIZER:
          serviceImpl.deleteRecognizer(
              (com.google.cloud.speech.v2.DeleteRecognizerRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UNDELETE_RECOGNIZER:
          serviceImpl.undeleteRecognizer(
              (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_RECOGNIZE:
          serviceImpl.recognize(
              (com.google.cloud.speech.v2.RecognizeRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.RecognizeResponse>)
                  responseObserver);
          break;
        case METHODID_BATCH_RECOGNIZE:
          serviceImpl.batchRecognize(
              (com.google.cloud.speech.v2.BatchRecognizeRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_CONFIG:
          serviceImpl.getConfig(
              (com.google.cloud.speech.v2.GetConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.Config>) responseObserver);
          break;
        case METHODID_UPDATE_CONFIG:
          serviceImpl.updateConfig(
              (com.google.cloud.speech.v2.UpdateConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.Config>) responseObserver);
          break;
        case METHODID_CREATE_CUSTOM_CLASS:
          serviceImpl.createCustomClass(
              (com.google.cloud.speech.v2.CreateCustomClassRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_LIST_CUSTOM_CLASSES:
          serviceImpl.listCustomClasses(
              (com.google.cloud.speech.v2.ListCustomClassesRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.ListCustomClassesResponse>)
                  responseObserver);
          break;
        case METHODID_GET_CUSTOM_CLASS:
          serviceImpl.getCustomClass(
              (com.google.cloud.speech.v2.GetCustomClassRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.CustomClass>)
                  responseObserver);
          break;
        case METHODID_UPDATE_CUSTOM_CLASS:
          serviceImpl.updateCustomClass(
              (com.google.cloud.speech.v2.UpdateCustomClassRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_CUSTOM_CLASS:
          serviceImpl.deleteCustomClass(
              (com.google.cloud.speech.v2.DeleteCustomClassRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UNDELETE_CUSTOM_CLASS:
          serviceImpl.undeleteCustomClass(
              (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_CREATE_PHRASE_SET:
          serviceImpl.createPhraseSet(
              (com.google.cloud.speech.v2.CreatePhraseSetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_LIST_PHRASE_SETS:
          serviceImpl.listPhraseSets(
              (com.google.cloud.speech.v2.ListPhraseSetsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.ListPhraseSetsResponse>)
                  responseObserver);
          break;
        case METHODID_GET_PHRASE_SET:
          serviceImpl.getPhraseSet(
              (com.google.cloud.speech.v2.GetPhraseSetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.speech.v2.PhraseSet>) responseObserver);
          break;
        case METHODID_UPDATE_PHRASE_SET:
          serviceImpl.updatePhraseSet(
              (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_PHRASE_SET:
          serviceImpl.deletePhraseSet(
              (com.google.cloud.speech.v2.DeletePhraseSetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UNDELETE_PHRASE_SET:
          serviceImpl.undeletePhraseSet(
              (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }
<pre>
Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
</pre>
java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java