def Definition(self):
    result = self._FormatDescriptionComment()

    result += "  enum %s {\n" % self.enum_name
    for k, v in sorted(self.reverse_enum.items()):
      result += "    %s = %s;\n" % (v, k)

    result += "  }\n"

    result += self._FormatField()
    return result
Return a string with the definition of this field.
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/structs.py/ProtoEnum.Definition