(self, name, full_name, filename, values,
               containing_type=None, options=None, file=None,
               serialized_start=None, serialized_end=None)
Arguments are as described in the attribute description above.

    Note that filename is an obsolete argument, that is not used anymore.
    Please use file.name to access this as an attribute.
Arguments are as described in the attribute description above.
Arguments are as described in the attribute description above .
def __init__(self, name, full_name, filename, values,
               containing_type=None, options=None, file=None,
               serialized_start=None, serialized_end=None):
    """Arguments are as described in the attribute description above.

    Note that filename is an obsolete argument, that is not used anymore.
    Please use file.name to access this as an attribute.
    """
    super(EnumDescriptor, self).__init__(
        options, 'EnumOptions', name, full_name, file,
        containing_type, serialized_start=serialized_start,
        serialized_end=serialized_end)

    self.values = values
    for value in self.values:
      value.type = self
    self.values_by_name = dict((v.name, v) for v in values)
    self.values_by_number = dict((v.number, v) for v in values)
def __init__ ( self , name , full_name , filename , values , containing_type = None , options = None , file = None , serialized_start = None , serialized_end = None ) : super ( EnumDescriptor , self ) . __init__ ( options , 'EnumOptions' , name , full_name , file , containing_type , serialized_start = serialized_start , serialized_end = serialized_end ) self . values = values for value in self . values : value . type = self self . values_by_name = dict ( ( v . name , v ) for v in values ) self . values_by_number = dict ( ( v . number , v ) for v in values )