Definition of "flow"

In Kibana, what constitutes a “flow”? If I download a 1 GB file over the course of 10 minutes via a single TCP connection, does that constitute one flow? What about UDP?