The Padres acquired left-hander Robbie Ray from the San Francisco Giants and right-hander Casey Mize from the Detroit Tigers on Monday, giving up three of their highest-rated prospects in deadline trades for two proven starting pitchers. San Diego sent right-hander Miguel Mendez and 17-year-old shortstop Joniel Hernandez to San Francisco, which will pay part of Ray’s $25 million salary. Ray is 10-6 with a 3.08 ERA and 107 strikeouts in 122 2/3 innings this season, his third with San Francisco. San Francisco has made one playoff appearance since 2016. ___AP Sports Writer Janie McCauley in San Francisco and AP freelance reporter Jack Thompson in Phoenix contributed to this report.