[protobuf] Protobuf 3 optional values in Java bindings

2020-10-13 Thread marko
I'm generating Java bindings from Protobuf 3 schema definitions that include optional values represented with protobuf wrapper types. Decoding the fields as Java Optional would work nicely if the generated accessors would be able to return null when the optional value is missing: Optional.ofNu

[protobuf] Handling multiple messages in Java

2020-10-13 Thread Carlos Pereira
Hi, Currently I'm working with ProtoBuf at work. There's a client device that sends us messages using ProtoBuf, so we can't change the protocol. The first 3 bytes is the length of the ProtoBuf message with big endian bytes order and then after that is the message itself. However, the .proto fil

[protobuf] Re: Handling multiple messages in Java

2020-10-13 Thread Carlos Pereira
I forgot to mention that the file they sent us is using Protocol Buffers 2. BR, A terça-feira, 13 de outubro de 2020 à(s) 15:25:07 UTC+2, Carlos Pereira escreveu: > Hi, > > Currently I'm working with ProtoBuf at work. There's a client device that > sends us messages using ProtoBuf, so we can't

Re: [protobuf] Re: Handling multiple messages in Java

2020-10-13 Thread 'Adam Cozzette' via Protocol Buffers
Serialized protocol buffers don't contain any metadata to indicate what type they are, so you have to have some other mechanism to know what the type is. I would guess that your .proto file probably has a parent message containing the other messages, and the parent is probably the one that is alway

[protobuf] grpc Unit Testing In C++ using google test framwork

2020-10-13 Thread sanjeev sharma
How can I do UNIT Testing using gtest frame work in C++ for grpc . May have any example ? -- 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.