How do I define a parentS <-> childrenS relationship in proto
syntax = "proto3";
message Root {
repeated Category category = 2;
}
message Category {
string name = 2;
repeated Category parent = 3;
}
The key here is that I want to be able to summon the children
MamyCategoryInstance
|
|--- FooCategoryInstance
...//
PapaCategoryInstance
|
|---- FooCategoryInstance
|---- BarCategoryInstance
Thank you