change to_protobuf implementations for conciseness