I think you're interested in 
https://godoc.org/github.com/golang/protobuf/proto#HasExtension
and
https://godoc.org/github.com/golang/protobuf/proto#HasExtension

-tmc

On Saturday, November 12, 2016 at 7:42:32 PM UTC-8, Jungho Ahn wrote:
>
> Hello,
>
> I'm using custom options in proto like
>
> extend google.protobuf.MessageOptions {
>   MyOption my_option = 10000;
> }
> message MyOption { string name = 1; }
>
> message MyMessage {
>   option (my_option).name = 'snaps';
>   ...
> }
>
> I can access this option by getting extension of the message descriptor in 
> Java.
> But I couldn't a way to do in Go. I saw the same issue in 
> https://github.com/golang/protobuf/issues/179, but couldn't find answer.
>
> Is this not supported in Go?
>
> Thanks,
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to