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 <jacques.de...@gmail.com> 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 proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@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.

Reply via email to