FWIW, I've implemented this logic in Go in a library called protoreflect,
with the intention that it could be used for the type server functionality,
as documented.

Take a look at the methods MessageAsPType and EnumAsPType in MessageRegistry:
https://godoc.org/github.com/jhump/protoreflect/dynamic/msgregistry

----
*Josh Humphries*
jh...@bluegosling.com

On Thu, Oct 19, 2017 at 2:52 PM, <pradeep...@gmail.com> wrote:

> Hi All,
>
> The documentation for google.protobuf.Any says that an HTTP GET on the URL
> should return a Type object in binary. However, I can't find any
> documentation on how create a Type object from a protobuf definition file.
> Given a compiled Message, how can I get a Type?
>
> Thanks,
> Pradeep
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to