My .proto (3) file:
message MessageCollector {
oneof subtype {
Message_MessagePacket Message_MessagePacket = 1;
Message_GetMessages Message_GetMessages = 2;
}
}
message Message_GetMessages {
repeated MessageCollector ListMessages = 1;
}
message Message_MessagePacket {
string messageText = 1;
string messageType = 2;
string messageOwner = 3;
}
How can I create a Message_GetMessages List and add like 50 messages
(Message_MessagePacket) to it in C++? I've seen something about
RepeatedField, but I have no Idea how I can go about adding items to it.
Any help would be appreciated.
--
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/a6cd3323-6f40-4be7-afea-b935fae2aecdn%40googlegroups.com.