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,
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
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