Yes, you can. What is your target language? The accessor names are generated differently - in C++ you would get lower-cased names. Have you looked at the generated header? You may also want to see http://code.google.com/apis/protocolbuffers/docs/style.html
On Fri, May 14, 2010 at 1:29 AM, Jacques <[email protected]> wrote: > Hi, > > Given the .proto file as below: > > > message NestedObject { > required string field = 1; > } > > message OuterObject { > required NestedObject nestedObject = 1; > } > > > Question: Can one define the nested object within the OuterObject as > required? > > If you can use required, what will the getters/setters methods be? > > I have tried with the required field but then no getters/setters are > generated. > > Thanks > > -- > 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]<protobuf%[email protected]> > . > 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 [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.
