[protobuf] How to get optional data?
here is the .proto message Bar{ required int32 l = 1; } message Foo{ option Bar bar = 1; } Foo foo; foo.get_bar()??? it returns a pointer to the message bar? -- 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.
[protobuf] How to get the number of the repeated data?
here is .proto message foo{ required xxx repeated xxx } how to figure out the exact number of the repeated filed? -- 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.
[protobuf] Re: How to get optional data?
Thanks very much! On Mar 17, 3:07 pm, Jason Hsueh jas...@google.com wrote: The getters for embedded messages return a reference - seehttp://code.google.com/apis/protocolbuffers/docs/reference/cpp-genera... On Tue, Mar 16, 2010 at 9:02 PM, jungle www1...@gmail.com wrote: here is the .proto message Bar{ required int32 l = 1; } message Foo{ option Bar bar = 1; } Foo foo; foo.get_bar()??? it returns a pointer to the message bar? -- 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.comprotobuf%2bunsubscr...@googlegroups.c om . 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.
[protobuf] Re: How to get the number of the repeated data?
Thank you for answering my stupid question. On Mar 17, 3:05 pm, Jason Hsueh jas...@google.com wrote: This is covered in the tutorial - select the one for your language fromhttp://code.google.com/apis/protocolbuffers/docs/overview.html On Tue, Mar 16, 2010 at 8:57 PM, jungle www1...@gmail.com wrote: here is .proto message foo{ required xxx repeated xxx } how to figure out the exact number of the repeated filed? -- 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.comprotobuf%2bunsubscr...@googlegroups.c om . 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.