public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
            getCreateRecognizerMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.CreateRecognizerRequest,
                    com.google.longrunning.Operation>(service, METHODID_CREATE_RECOGNIZER)))
        .addMethod(
            getListRecognizersMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.ListRecognizersRequest,
                    com.google.cloud.speech.v2.ListRecognizersResponse>(
                    service, METHODID_LIST_RECOGNIZERS)))
        .addMethod(
            getGetRecognizerMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.GetRecognizerRequest,
                    com.google.cloud.speech.v2.Recognizer>(service, METHODID_GET_RECOGNIZER)))
        .addMethod(
            getUpdateRecognizerMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.UpdateRecognizerRequest,
                    com.google.longrunning.Operation>(service, METHODID_UPDATE_RECOGNIZER)))
        .addMethod(
            getDeleteRecognizerMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.DeleteRecognizerRequest,
                    com.google.longrunning.Operation>(service, METHODID_DELETE_RECOGNIZER)))
        .addMethod(
            getUndeleteRecognizerMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.UndeleteRecognizerRequest,
                    com.google.longrunning.Operation>(service, METHODID_UNDELETE_RECOGNIZER)))
        .addMethod(
            getRecognizeMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.RecognizeRequest,
                    com.google.cloud.speech.v2.RecognizeResponse>(service, METHODID_RECOGNIZE)))
        .addMethod(
            getStreamingRecognizeMethod(),
            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.StreamingRecognizeRequest,
                    com.google.cloud.speech.v2.StreamingRecognizeResponse>(
                    service, METHODID_STREAMING_RECOGNIZE)))
        .addMethod(
            getBatchRecognizeMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.BatchRecognizeRequest,
                    com.google.longrunning.Operation>(service, METHODID_BATCH_RECOGNIZE)))
        .addMethod(
            getGetConfigMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config>(
                    service, METHODID_GET_CONFIG)))
        .addMethod(
            getUpdateConfigMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.UpdateConfigRequest,
                    com.google.cloud.speech.v2.Config>(service, METHODID_UPDATE_CONFIG)))
        .addMethod(
            getCreateCustomClassMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.CreateCustomClassRequest,
                    com.google.longrunning.Operation>(service, METHODID_CREATE_CUSTOM_CLASS)))
        .addMethod(
            getListCustomClassesMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.ListCustomClassesRequest,
                    com.google.cloud.speech.v2.ListCustomClassesResponse>(
                    service, METHODID_LIST_CUSTOM_CLASSES)))
        .addMethod(
            getGetCustomClassMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.GetCustomClassRequest,
                    com.google.cloud.speech.v2.CustomClass>(service, METHODID_GET_CUSTOM_CLASS)))
        .addMethod(
            getUpdateCustomClassMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.UpdateCustomClassRequest,
                    com.google.longrunning.Operation>(service, METHODID_UPDATE_CUSTOM_CLASS)))
        .addMethod(
            getDeleteCustomClassMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.DeleteCustomClassRequest,
                    com.google.longrunning.Operation>(service, METHODID_DELETE_CUSTOM_CLASS)))
        .addMethod(
            getUndeleteCustomClassMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.UndeleteCustomClassRequest,
                    com.google.longrunning.Operation>(service, METHODID_UNDELETE_CUSTOM_CLASS)))
        .addMethod(
            getCreatePhraseSetMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.CreatePhraseSetRequest,
                    com.google.longrunning.Operation>(service, METHODID_CREATE_PHRASE_SET)))
        .addMethod(
            getListPhraseSetsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.ListPhraseSetsRequest,
                    com.google.cloud.speech.v2.ListPhraseSetsResponse>(
                    service, METHODID_LIST_PHRASE_SETS)))
        .addMethod(
            getGetPhraseSetMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.GetPhraseSetRequest,
                    com.google.cloud.speech.v2.PhraseSet>(service, METHODID_GET_PHRASE_SET)))
        .addMethod(
            getUpdatePhraseSetMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.UpdatePhraseSetRequest,
                    com.google.longrunning.Operation>(service, METHODID_UPDATE_PHRASE_SET)))
        .addMethod(
            getDeletePhraseSetMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.DeletePhraseSetRequest,
                    com.google.longrunning.Operation>(service, METHODID_DELETE_PHRASE_SET)))
        .addMethod(
            getUndeletePhraseSetMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.speech.v2.UndeletePhraseSetRequest,
                    com.google.longrunning.Operation>(service, METHODID_UNDELETE_PHRASE_SET)))
        .build();
  }
<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