code: def __non_body_parameter_descriptor(self, param):
      
      descriptor = {}
  
      descriptor['name'] = param.name
  
      param_type, param_format = self.__field_to_parameter_type_and_format(param)
  
      # Required
      if param.required:
        descriptor['required'] = True
  
      # Type
      descriptor['type'] = param_type
  
      # Format (optional)
      if param_format:
        descriptor['format'] = param_format
  
      # Default
      default = self.__parameter_default(param)
      if default is not None:
        descriptor['default'] = default
  
      # Repeated
      if param.repeated:
        descriptor['repeated'] = True
  
      # Enum
      enum_descriptor = self.__parameter_enum(param)
      if enum_descriptor is not None:
        descriptor['enum'] = enum_descriptor
  
      return descriptor
docs: Creates descriptor for a parameter.
  
      Args:
        param: The parameter to be described.
  
      Returns:
        Dictionary containing a descriptor for the parameter.