[protobuf] Need descriptor for in memory proto schema

2022-08-05 Thread Vikas Dahiya
I have an in memory proto schema which I am reading from the schema registry. I am looking for a way or the best way if there are more than one, to get the descriptor for this schema. How can I do that? I am new to protobuf and pardon me if the provided information is not sufficient, but I can

Re: [protobuf] Need descriptor for in memory proto schema

2022-08-06 Thread Vikas Dahiya
Matt, I am using Java. Thanks! Vikas On Saturday, August 6, 2022 at 11:57:25 AM UTC-7 k...@google.com wrote: > Vikas~ > > What language are you using (C++, Java, Python, etc)? > > Matt > > On Fri, Aug 5, 2022 at 5:14 PM Vikas Dahiya wrote: > >> I have an in

Re: [protobuf] Need descriptor for in memory proto schema

2022-08-06 Thread Vikas Dahiya
; > Do you have links to your code or snippets you can share? Are you using > kafka or AWS schema registry or something? > > Matt > > On Sat, Aug 6, 2022 at 3:23 PM Vikas Dahiya > wrote: > >> Matt, I am using Java. >> >> Thanks! >> Vikas &g

Re: [protobuf] Need descriptor for in memory proto schema

2022-08-08 Thread Vikas Dahiya
geOrBuilder)o).getDescriptorForType(); > } > return nullptr; > ``` > > If you are using the JavaLite runtime, you may not have descriptor > information available, so this can produce nullptr. > > Matt > > On Sat, Aug 6, 2022 at 4:13 PM Vikas Dahiya wrote: > >>

Re: [protobuf] Need descriptor for in memory proto schema

2022-08-08 Thread Vikas Dahiya
sking how to dynamically compile a .proto message into a > descriptor that you can load at runtime. I don't have a good answer here > short of launching `protoc` as a subprocess. > > Matt > > On Mon, Aug 8, 2022 at 1:29 PM Vikas Dahiya wrote: > >> Thanks, Matt! >> >

Re: [protobuf] Need descriptor for in memory proto schema

2022-08-06 Thread Vikas Dahiya
sk on one > of their lists or maybe stack overflow. > > Matt > > On Sat, Aug 6, 2022 at 3:57 PM Vikas Dahiya wrote: > >> Matt, I am using kafka, I don’t have a code snippet as I am just getting >> the schema from confulant schema registry and need a descriptor to create >&g

Re: [protobuf] Need descriptor for in memory proto schema

2022-08-08 Thread Vikas Dahiya
m wrote: >> >>> Vikas~ >>> >>> You are asking how to dynamically compile a .proto message into a >>> descriptor that you can load at runtime. I don't have a good answer here >>> short of launching `protoc` as a subprocess. >>> >