Fetching details from the dictionary...

you; buddy; pal
monarch; ruler; sovereign; (one's) master
「公」 has other readings with different meanings.
源氏物語には光源氏の公が登場する。
The Tale of Genji features Lord Hikaru Genji.
公に忠誠を誓った夜のことを覚えている。
I remember the night I pledged loyalty to my sovereign.
公のことを想っています。
I'm thinking of you.