Probably a gate valve to regulate the flow of the downpipe. Gate valve can control/restrict the flow to fill up the 2" pipe. If the 2" pipe is fully filled, there wouldn't be any noise from the falling water that hit the elbow.
2" gate valve is very X.