Occupancy for the period prescribed by the Code of Civil Procedure as sufficient to bar any action for the recovery of the property confers a title thereto, denominated a title by prescription, which is sufficient against all, but no possession by any person, firm or corporation no matter how long continued of any land, water, water right, easement, or other property whatsoever dedicated to a public use by a public utility, or dedicated to or owned by the state or any public entity, shall ever ripen into any title, interest or right against the owner thereof.
Ca. Civ. Code § 1007