ANAHEIM -- Brandon Belt hung in for an epic 21-pitch at-bat before flying out, but later homered to lead Johnny Cueto and the San Francisco Giants over the Los Angeles Angels 4-2 on Sunday.
Belt fouled off 11 straight pitches from rookie right-hander Jaime Barria in the first inning in the majors' longest at-bat since records began in 1988. The previous high of 20 pitches in a plate appearance since 1988 was when Houston's Ricky Gutierrez struck out against Cleveland's Bartolo Colon on June 26, 1998, according to Retrosheet.
In all, the left-handed Belt peppered the crowd with 16 foul balls his first time up. He hit two long fouls down the right-field line before lining out to right fielder Kole Calhoun, ending an at-bat the Giants said lasted 12 minutes, 45 seconds.
It took nine pitches for Belt to work the count full, as he fouled off five pitches in the process. He swung and missed just once, and was greeted with high-fives when he returned to the dugout.
Angels pitching coach Charles Nagy made a mound visit to check on Barria (1-1) after Belt batted. Barria had thrown nine pitches to Joe Panik, who hit a leadoff single, before throwing 21 to Belt.
Belt singled and scored in the third and launched a leadoff homer to right against Blake Parker in the fifth. Belt saw a total of 38 pitches in his first three at-bats, then hit the first pitch his last two times up.
Cueto (2-0) allowed only two hits in six shutout innings against cleanup batter Shohei Ohtani and the Angels. Cueto took a no-hitter into the sixth and struck out seven.
Cueto twice fanned the lefty-hitting Ohtani by getting the Japanese two-way sensation to flail at change-ups. Cueto also struck out Mike Trout twice.
The Giants right-hander walked two, hit two batters and lowered his ERA in four starts to 0.35.
The Angels were scoreless until Trout hit a two-run homer in the eighth, his big league-leading ninth and his third in as many games. The opposite-field shot to right-center came off Cory Gearrin.
Los Angeles had runners on the corners with two outs in the ninth before Hunter Strickland got Ian Kinsler to fly out to center for his third save in five chances.
Kinsler led off the sixth with a single for the Angels' first hit. Ohtani singled with one out to load the bases, but Cueto got Luis Valbuena to ground into a 3-6-1 double play. Cueto excitedly pumped his right fist after taking the throw from shortstop Brandon Crawford.
Ohtani batted cleanup for the first time because Albert Pujols got his first day off this season. He finished 1 for 4.
Panik also had three hits apiece for the Giants, who took two of three for their first series win of the season.
Barria threw 49 pitches in the first inning. He loaded the bases on three singles with one out before retiring Evan Longoria and Pablo Sandoval.
Barria loaded the bases with no outs in the third before making way for Noe Ramirez. Joe Panik scored on Buster Posey's double-play ball and Evan Longoria followed with a two-run homer, his fourth.
Barria allowed two runs and six hits, struck out one and walked one. He got only six outs on 77 pitches.
The 23-year-old threw a bullpen session some 90 minutes before first pitch and is scheduled to make his next start Tuesday at Houston. A blister on his right middle finger forced him out of his start after just two innings Tuesday night against Boston.
Angels: SS Andrelton Simmons suffered a bruised right forearm when he was hit by a pitch by Cueto in the second. He was replaced in the top of the third by Jefrey Marte.
Giants: RHP Chris Stratton (1-1, 2.22) is scheduled to start Monday night in the opener of a home three-game series with Washington, which counters with LHP Gio Gonzalez (2-1, 2.49).
Angels: LHP Tyler Skaggs (2-1, 3.98) looks to go 3-0 on the road this season when he opens series at Houston versus UCLA product Gerrit Cole (2-0, 0.96).