Hi,
I am new to Google Protobuf and was wondering if I can create a
message in Google Protobuf, which is generic to represent other
Protobuf messages. These other protobuf messages will be dynamic and
the number will grow over time.
e.g.
message Person
{
optional string name = 1;
optional int32 age = 2;
}
message Employee
{
optional string name = 1;
optional int32 deptId = 2;
}
message GenericList
{
repeated Person/Employee/(... any message in GPB) list = 1;
}
Any help is greatly appreciated.
Thanks
Harshad
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.