A 37-year-old Salinas resident was sentenced to four years behind bars for setting fire to a building in 2024 and violating a domestic violence restraining order in 2023, according to prosecutors.