parameters: (descriptor, cls)
docstring: Adds properties for all fields in this protocol message type.
docstring_summary: Adds properties for all fields in this protocol message type.
docstring_tokens: Adds properties for all fields in this protocol message type .
function: def _AddPropertiesForExtensions(descriptor, cls):
    """Adds properties for all fields in this protocol message type."""
    extension_dict = descriptor.extensions_by_name
    for extension_name, extension_field in extension_dict.iteritems():
      constant_name = extension_name.upper() + "_FIELD_NUMBER"
      setattr(cls, constant_name, extension_field.number)
function_tokens: def _AddPropertiesForExtensions ( descriptor , cls ) : extension_dict = descriptor . extensions_by_name for extension_name , extension_field in extension_dict . iteritems ( ) : constant_name = extension_name . upper ( ) + "_FIELD_NUMBER" setattr ( cls , constant_name , extension_field . number )