On Tue, Oct 26, 2010 at 11:29, Paul <mjpabl...@gmail.com> wrote: > Hi, > Suppose I have two files, file1.proto and file2.proto, and I have a > message defined in file1 that I want to use in file2. How would I > include the message from file1? Is there an "include" statement I > would use as in C or C++?
'import' is the thing you're looking for. http://code.google.com/apis/protocolbuffers/docs/proto.html#other > > **** file1.proto **** > message M1 { > optional string id = 1; > } > > **** file2.proto **** > message M2 { > optional string id = 1; > optional M1 m1; // how do I include this? > } > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to proto...@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.