President Barack Obama on Friday defended his administration’s vast data-collection efforts, saying the programs help prevent terrorist attacks and represent only small encroachments of people’s privacy. Here is the transcript of his remarks, provided by Federal News Service (www.fednews.com)

PRESIDENT OBAMA: I’m going to take one question. And then remember, people are going to have opportunity to — I’ll also answer questions when I’m with the Chinese president today. So I don’t want the whole day to just be a bleeding press conference. But I’m going to take Jackie Calmes’s question.