I am trying to add a functionality to only save a small set of messages
that are defined in a huge proto, where the definition of small set of
messages will be defined by this another proto that the users will declare.
Example:
message LargeProto {
optional int32 id = 1;
optional Type type = 2;
optional Image img1 = 3;
optional Image img2 = 4;
}
message SmallProto1 {
optional int32 id = 1;
optional Type type = 2;
optional Image img1 = 3;
}
message SmallProto2 {
optional int32 id = 1;
optional Type type = 2;
optional Image img2 = 4;
}
SmallProto1 = readFrom(LargeProto lp);
SmallProto2 = readFrom(LargeProto lp);
Do we have an already existing functionality that will allow us to only
read specific messages from one proto to another proto without hardcoding
all this in C++? Do we have some form of generic implementation available
to do something as above?
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/e9aeae57-5fc1-4b63-9a24-c38786bddeecn%40googlegroups.com.