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 type but I'm not sure how much demand there is for one.

On Wed, Dec 6, 2017 at 11:46 AM, Marc Gravell <marc.grav...@gmail.com>
wrote:

> A question on Stack Overflow earlier (https://stackoverflow.com/
> questions/47674930/google-protobuf-proto-file-query/4767629) reminded me
> that I'm not fully "up" on the conventions for using guids in protobuf.
>
> There's no primitive / keyword for them, and AFAIK no "well known type".
> So : how do folks tend to handle guids? Strings? Bytes? *Should* there be a
> stronger guid story? Or is this just a non-issue?
>
> Thoughts?
>
> Marc
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to