Search for a Higgs boson in the diphoton final state using the full CDF data set from $p\barp$ collisions at $\sqrts =$ 1.96 TeV