(self)
return [(value_descriptor.name, value_descriptor.number)
            for value_descriptor in self._enum_type.values]
Return a list of the (name, value) pairs of the enum.

    These are returned in the order they were defined in the .proto file.
Return a list of the (name, value) pairs of the enum.
Return a list of the ( name value ) pairs of the enum .
def items(self):
    """Return a list of the (name, value) pairs of the enum.

    These are returned in the order they were defined in the .proto file.
    """
    return [(value_descriptor.name, value_descriptor.number)
            for value_descriptor in self._enum_type.values]
def items ( self ) : return [ ( value_descriptor . name , value_descriptor . number ) for value_descriptor in self . _enum_type . values ]