parameters: (self, message_descriptor)
return_statement: return list(self._extensions_by_number[message_descriptor].values())
docstring: Gets all the known extensions of a given message.
  
      Extensions have to be registered to this pool by build related
      :func:`Add` or :func:`AddExtensionDescriptor`.
  
      Args:
        message_descriptor (Descriptor): Descriptor of the extended message.
  
      Returns:
        list[FieldDescriptor]: Field descriptors describing the extensions.
docstring_summary: Gets all the known extensions of a given message.
docstring_tokens: Gets all the known extensions of a given message .
function: def FindAllExtensions(self, message_descriptor):
      """Gets all the known extensions of a given message.
  
      Extensions have to be registered to this pool by build related
      :func:`Add` or :func:`AddExtensionDescriptor`.
  
      Args:
        message_descriptor (Descriptor): Descriptor of the extended message.
  
      Returns:
        list[FieldDescriptor]: Field descriptors describing the extensions.
      """
      # Fallback to descriptor db if FindAllExtensionNumbers is provided.
      if self._descriptor_db and hasattr(
          self._descriptor_db, 'FindAllExtensionNumbers'):
        full_name = message_descriptor.full_name
        all_numbers = self._descriptor_db.FindAllExtensionNumbers(full_name)
        for number in all_numbers:
          if number in self._extensions_by_number[message_descriptor]:
            continue
          self._TryLoadExtensionFromDB(message_descriptor, number)
  
      return list(self._extensions_by_number[message_descriptor].values())
function_tokens: def FindAllExtensions ( self , message_descriptor ) : # Fallback to descriptor db if FindAllExtensionNumbers is provided. if self . _descriptor_db and hasattr ( self . _descriptor_db , 'FindAllExtensionNumbers' ) : full_name = message_descriptor . full_name all_numbers = self . _descriptor_db . FindAllExtensionNumbers ( full_name ) for number in all_numbers : if number in self . _extensions_by_number [ message_descriptor ] : continue self . _TryLoadExtensionFromDB ( message_descriptor , number ) return list ( self . _extensions_by_number [ message_descriptor ] . values ( ) )