In the Protagoras Socrates persuades Protagoras that goodness is identical with pleasure. He advocates a form of hedonism. In the Gorgias, Callicles espouses hedonism and Socrates refutes him. Socrates gets Callicles to admit that, after all, some pleasures are not good. [...] So Socrates holds contradictory views on pleasure in the Protagoras and the Gorgias.
Socrates in the Platonic Dialogues (2006)