Yes.
In general, you can always change names of things in protobufs without affecting the wire format, as long as you don't change numbers. (Though if you ever encode your protobuf to JSON or some similar encoding, names might matter there.)
In fact, Bar
could even just contain a subset of the fields in Foo
, since Protobuf backwards compatibility allows you to add and remove fields.