parameters: (self, message_descriptor, number)
docstring: Try to Load extensions from descriptor db.
  
      Args:
        message_descriptor: descriptor of the extended message.
        number: the extension number that needs to be loaded.
docstring_summary: Try to Load extensions from descriptor db.
docstring_tokens: Try to Load extensions from descriptor db .
function: def _TryLoadExtensionFromDB(self, message_descriptor, number):
      """Try to Load extensions from descriptor db.
  
      Args:
        message_descriptor: descriptor of the extended message.
        number: the extension number that needs to be loaded.
      """
      if not self._descriptor_db:
        return
      # Only supported when FindFileContainingExtension is provided.
      if not hasattr(
          self._descriptor_db, 'FindFileContainingExtension'):
        return
  
      full_name = message_descriptor.full_name
      file_proto = self._descriptor_db.FindFileContainingExtension(
          full_name, number)
  
      if file_proto is None:
        return
  
      try:
        self._ConvertFileProtoToFileDescriptor(file_proto)
      except:
        warn_msg = ('Unable to load proto file %s for extension number %d.' %
                    (file_proto.name, number))
        warnings.warn(warn_msg, RuntimeWarning)
function_tokens: def _TryLoadExtensionFromDB ( self , message_descriptor , number ) : if not self . _descriptor_db : return # Only supported when FindFileContainingExtension is provided. if not hasattr ( self . _descriptor_db , 'FindFileContainingExtension' ) : return full_name = message_descriptor . full_name file_proto = self . _descriptor_db . FindFileContainingExtension ( full_name , number ) if file_proto is None : return try : self . _ConvertFileProtoToFileDescriptor ( file_proto ) except : warn_msg = ( 'Unable to load proto file %s for extension number %d.' % ( file_proto . name , number ) ) warnings . warn ( warn_msg , RuntimeWarning )