Re: [protobuf] inheritance.. well sort of... and FieldDescriptors

2011-01-28 Thread TJ Rothwell
Is there a best practice for this use case? Here are some options. // Duplicate every field (sounds like you're doing this) message FooRequest { required string prompt = 1; required int64 timeout = 2; required Foo foo = 3; } message BarRequest { required string prompt = 1; required int

Re: [protobuf] Feature request: ability to suppress logging of message fields

2011-02-17 Thread TJ Rothwell
I have a similar need but haven't looked into a solution. However, would using "bytes" instead of "string" prevent the output? Or does the debug logging also output the contents of the bytes? -- TJ On Thu, Feb 17, 2011 at 6:10 PM, Robert H wrote: > If you use protobuf for confidential data, ena

Re: [protobuf] Re: Feature request: ability to suppress logging of message fields

2011-02-28 Thread TJ Rothwell
Kenton, I have a message that contains fields that should never be logged. It would be great if there was a way that the Message.toString() did not automatically convert everything to a text representation. I'd love it if it were an opt-in for the TextFormat instead of trying never to use toString