def METHOD_NAME(servicer, server):
    rpc_method_handlers = {
            'GetServerResponse': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServerResponse,
                    request_deserializer=test__pb2.Message.FromString,
                    response_serializer=test__pb2.MessageResponse.SerializeToString,
            ),
            'GetServerResponseAbort': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServerResponseAbort,
                    request_deserializer=test__pb2.Message.FromString,
                    response_serializer=test__pb2.MessageResponse.SerializeToString,
            ),
            'GetServerResponseUnavailable': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServerResponseUnavailable,
                    request_deserializer=test__pb2.Message.FromString,
                    response_serializer=test__pb2.MessageResponse.SerializeToString,
            ),
            'GetServerResponseException': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServerResponseException,
                    request_deserializer=test__pb2.Message.FromString,
                    response_serializer=test__pb2.MessageResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'test.TestService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
 # This class is part of an EXPERIMENTAL API.