Any marriage which has not been contracted publicly, and which has not been celebrated before the competent public officer, may be contested, within a period of thirty years from its celebration, by the spouses themselves, by the father and mother, by the ascendants and by all those who have a born and present interest therein, as well as by the public prosecutor.