Re: [grpc-io] [grpc-java] Get custom method option from interceptors

2017-07-20 Thread 'Eric Anderson' via grpc.io
https://github.com/grpc/grpc-java/pull/3086 will add the details to gRPC's MethodDescriptor as well. It also adds ProtoServiceDescriptorSupplier and ProtoMethodDescriptorSupplier for convenience. (The schema object in the service implements the file and service descriptor suppliers, the schema

Re: [grpc-io] [grpc-java] Get custom method option from interceptors

2017-07-19 Thread 'Ran Bi' via grpc.io
Thanks, Josh. It is helpful! On Wed, Jul 19, 2017 at 7:28 AM Josh Humphries wrote: > I'm guessing you are interested in doing this with Java (since I see > "[grpc-java]" in the subject). > > You can query the grpc ServiceDescriptor for its "schema descriptor". For >

Re: [grpc-io] [grpc-java] Get custom method option from interceptors

2017-07-19 Thread Josh Humphries
I'm guessing you are interested in doing this with Java (since I see "[grpc-java]" in the subject). You can query the grpc ServiceDescriptor for its "schema descriptor". For proto-generated services, this will be a ProtoFileDescriptorSupplier, that provides access to the FileDescriptor, which in

[grpc-io] [grpc-java] Get custom method option from interceptors

2017-07-18 Thread ran.bi via grpc.io
What's the best way to get custom method option data (https://developers.google.com/protocol-buffers/docs/proto3#custom_options) from server interceptors? -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop