The pressure at each point in the vessel varies with the depth. To find the pressure at each point, calculate the weight, W, of liquid above a rectangle of area A. The pressure at that point is W/A then take the limit as A goes to 0. Similarly for the case of an air bubble or oil bubble except that, inside the bubble, you use the density of air or oil to calculate the weight above that point.
