Re: [protobuf] Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread Chris Zhang
Thanks for the Help, so far we are trying to aviod converting the protobuf to JSON/BSON and then convert back. That might cause performance issue. It would be great if we can convert directly. Thank you very much. On Thursday, September 6, 2018 at 2:22:16 PM UTC-4, Adam Cozzette wrote: > >

Re: [protobuf] Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread 'Adam Cozzette' via Protocol Buffers
There is some documentation and examples here showing the basics of how to parse and serialize protos in Java. Ilia is right that doing this and using the official protobuf binary format would be the most reliable way to go.

Re: [protobuf] Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread Chris Zhang
Sure, but do you know which util is best for convert the stored protobuf data back to Java Object? On Thursday, September 6, 2018 at 1:39:12 PM UTC-4, Ilia Mirkin wrote: > > Why not just store the serialized data of the protobuf instead? That's > kind of the whole point of protobuf... > > On

[protobuf] Re: Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread Chris Zhang
So in our case, we can store the protobuf java object into mongoDB, and inside mongoDB, you can see the object is represented as BSON with fieldname has underscore, which cause the problem when we try to query from database by passing some field critiria. Since spring can not recognize the

Re: [protobuf] Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread Ilia Mirkin
Why not just store the serialized data of the protobuf instead? That's kind of the whole point of protobuf... On Thu, Sep 6, 2018 at 1:27 PM, Chris Zhang wrote: > Hi Adam, > > Thanks for the response. > > We are trying to persist the protobuf generated java object into mongoDB > using Spring

Re: [protobuf] Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread 'Adam Cozzette' via Protocol Buffers
I am not familiar with the Spring framework, but how does it even know about the private variable names? If it is somehow accessing the private variables then I would worry that that would be a fragile setup, since the private variables are an implementation detail that could change at any time.

Re: [protobuf] Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread Chris Zhang
Hi Adam, Thanks for the response. We are trying to persist the protobuf generated java object into mongoDB using Spring framework. However, when doing the querying from database, the spring framework does not support any field name with underscore. Is there anyway we can work around?

Re: [protobuf] Protobuf Java Generated Code field name has underscore at the end.

2018-09-06 Thread 'Adam Cozzette' via Protocol Buffers
There is no way to remove the underscores without changing protoc. But why do you want to get rid of the underscores anyway? Those variables are just a private implementation detail and make no difference to the public API. On Wed, Sep 5, 2018 at 1:07 PM Chris Zhang wrote: > Hi, > > I am new to

Re: [protobuf] Dealing with TLS on gRPC

2018-09-06 Thread 'Adam Cozzette' via Protocol Buffers
I'm afraid this is outside our area of expertise since this mailing list is just about protocol buffers, but you could try posting your question to the gRPC mailing list here . On Wed, Sep 5, 2018 at 5:25 PM Desai, Bhavin wrote: > Hello, I am

[protobuf] No CMAKE_C_COMPILER could be found with VS2015

2018-09-06 Thread Natalia Duality
I followed the instruction in cmake README during compilation I get error No CMAKE_C_COMPILER could be found. Which Cmake release to use for VS 2015 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop

Re: [protobuf] protobuf version 3.6 a compile libprotobuf?

2018-09-06 Thread Marc Gravell
You mention both 3.5 and 3.6 - which did you mean? As for both compiling and links: it kinda depends what platform and/or language you are targeting. So: what are you targeting? You'll usually have to run the protoc output through your own build tools. On Thu, 6 Sep 2018, 07:47 Natalia Duality,

[protobuf] protobuf version 3.6 a compile libprotobuf?

2018-09-06 Thread Natalia Duality
Hello, is it possible to create static link with protobuf version 3.5??? And second question, I found protoc.exe to generate files, but hot to compile dll? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group