The opposite of “public” is “private”
“Public” means connecting to people or multiple people. For example, “It just feels good to be a public servant.”
“Private” implies to denote one particular person. For example, “Mia keeps the location of her new home private.”