[protobuf] Re: Get enum as string in Python

2013-04-01 Thread Emilio Rojas
I followed the directions here but my 'enum_values_by_name' is an empty dictionary. Any clues as to why this would be? I looked for options to protoc but none appeared relevant. thanks, emilio On Wednesday, August 25, 2010 11:07:30 PM UTC-7, Mike wrote: > > I'm pretty sure this is possible,

Re: [protobuf] Re: Get enum as string in Python

2010-08-26 Thread Jason Hsueh
Oh, indeed enum_types_by_name is what you want - my bad! On Thu, Aug 26, 2010 at 5:51 PM, Mike wrote: > Got it, Thanks! > > In your first statement, I believe the method is actually > "enum_types_by_name" - at least that's what worked for me. > > On Aug 26, 12:29 am, Jason Hsueh wrote: > > You

[protobuf] Re: Get enum as string in Python

2010-08-26 Thread Mike
Got it, Thanks! In your first statement, I believe the method is actually "enum_types_by_name" - at least that's what worked for me. On Aug 26, 12:29 am, Jason Hsueh wrote: > You can pull this from the descriptors: > my_enum_descriptor = SomeMessage.DESCRIPTOR.enums_by_name['MyType'] > my_enum_d