I'm having these two definitions in my .proto:
// all the shards on a server
message ConfigEntry {
repeated Shard shards = 2;
string server = 3;
}
// information on all the groups
message QueryResponse {
repeated ConfigEntry config = 1;
}
And in my c++ file, I have this map that I'm trying to set in QueryResponse:
std::map<std::string, std::vector<shard_t>> servers;
I can't find any way to set the values in my map to config in QueryResponse, any ideas how to do this?