Re: [protobuf] Guid conventions

2017-12-07 Thread 'Adam Cozzette' via Protocol Buffers
I haven't had to store a GUID/UUID in a proto before but it seems like string or bytes would be the best choice. You would definitely want to use bytes (not string) if you're using the binary representation, since string fields are for UTF-8 only. We could consider eventually creating a well-known

Re: [protobuf] ParseFromArray always returning true

2017-12-07 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Dec 6, 2017 at 4:39 PM, 'Allen Vicencio' via Protocol Buffers < protobuf@googlegroups.com> wrote: > If all my fields in a protobuf are `optional`, will ParseFromArray ever > return false? I am doing some tests right now, and I am testing two > scenarios: > > >> Person > > optional string

Re: [protobuf] Validate .proto file in Java

2017-12-07 Thread Omar Al-Safi
I guess this might help, I found this class https://github.com/square/wire/blob/master/wire-schema/src/main/java/com/squareup/wire/schema/internal/parser/ProtoParser.java which looks like something I could use though. I will give it a shot and let you know. Thanks a lot for the tip! On 6 December