def Value(self, name):
if name in self._enum_type.values_by_name:<EOL><INDENT>return self._enum_type.values_by_name[name].number<EOL><DEDENT>raise ValueError('<STR_LIT>' % (<EOL>self._enum_type.name, name))<EOL>
Returns the value coresponding to the given enum name.