John~ If this were only an issue of DebugString, you would be correct. Unfortunately, the behavior of enum's showing up in the unknown field set vs the field itself is observable in many different ways.
Matt On Thu, Aug 18, 2022 at 1:42 PM John McCabe <[email protected]> wrote: > On Thursday, 18 August 2022 at 16:28:20 UTC+1 [email protected] wrote: > >> John~ >> >> Honestly, I don't particularly like it, but that is the API we have right >> now and we need to move forward because changing it would be extremely >> disruptive. >> >> Thanks for your reply Matt. FWIW, I notice in the message.h file there's > the following declaration of DebugString(): > > // Generates a human-readable form of this message for debugging > purposes. > // Note that the format and content of a debug string is not guaranteed, > may > // change without notice, and should not be depended on. Code that does > // anything except display a string to assist in debugging should use > // TextFormat instead. > std::string DebugString() const; > > Surely that suggests that anyone who's dependent on the content and format > of the DebugString() is _wrong_, and if it changes, it's their problem for > relying on it in the first place? Hence the 'disruptive' aspect should be > limited to those who're misusing DebugString in the first place? :-) > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/protobuf/9e22b722-2678-4cdc-b5f6-35f4b25f134en%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/9e22b722-2678-4cdc-b5f6-35f4b25f134en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/CAMiELU0UAdScAkS%3Dk9jZ79TemTj2NF1ADuxEisiwEqHUArpqxg%40mail.gmail.com.
