Are you looking for something more explicit than
http://code.google.com/apis/protocolbuffers/docs/reference/java/com/google/protobuf/MessageLite.Builder.html#mergeFrom(com.google.protobuf.CodedInputStream,
com.google.protobuf.ExtensionRegistryLite) ? Perhaps this isn't obvious
unless you know what you're looking for?

On Mon, Jan 24, 2011 at 9:10 AM, hp <hardi...@gmail.com> wrote:

> Thanks a lot.  ExtensionRegistry resolved the issue.  I didnt find
> this in any of documentation. Sorry for late response.. I tried this
> after reading in another post and worked!!! Thanks Again!.
>
> On Jan 21, 1:40 pm, Jason Hsueh <jas...@google.com> wrote:
> > You didn't provide a code snippet, so it's hard to say, but I would guess
> > that you need to provide an ExtensionRegistry and pass that to the
> parsing
> > method. (It looks like you are working in Java)
> >
> > e.g.
> > ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance();
> > YourFileContainerProto.registerAllExtensions(extensionRegistry);
> > Results r = Results.parseFrom(data, extensionRegistry);
> >
> >
> >
> > On Fri, Jan 21, 2011 at 8:39 AM, hp <hardi...@gmail.com> wrote:
> > > test below is failing..please please help
> >
> > > message Results {
> > >  extensions 100 to max
> >
> > > }
> >
> > > message Item1 {
> > >  extend Resultes {
> > >            repeated Item1 items = 100;
> > >        }
> > > }
> >
> > > message Item2 {
> > >  extend Resultes {
> > >            repeated Item2 items = 100;
> > >        }
> > > }
> >
> > > Results.getExtension(items) does not return anything when converted to
> > > and from byte array.. Works fine otherwise
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Protocol Buffers" group.
> > > To post to this group, send email to protobuf@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> <protobuf%2Bunsubscribe@googlegroups.c­om>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/protobuf?hl=en.- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to protobuf@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 protobuf@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