I've been wishing for this once in a while.
There's a workaround: Protobuf actually does have a syntax for literal
values: field defaults. So you can define:
message Constants {
optional string constant = 1 [default = "foo"];
}
and access it as Constants::default_instance().constant();
But even though it had getters and setters,
here need only the getters..