I am trying to use the message keys to specify the property type in another message. Is there a way to do it in Proto or I need to create a oneOf and repeat the keys ?
message MessageName {
string name = 1;
string id = 2;
}
message AnotherMessage {
[name|id] orderBy = 1; //here is where I need to use it as a type.
}