class_docstr: A database of Python generated symbols.
class_docstr_tok: ["A","database","of","Python","generated","symbols","."]
docstr: Registers the given message type in the local database.
  
  Calls to GetSymbol() and GetMessages() will return messages registered here.
  
  Args:
    message: A :class:`google.protobuf.message.Message` subclass (or
      instance); its descriptor will be registered.
  
  Returns:
    The provided message.
docstr_tok: ["Registers","the","given","message","type","in","the","local","database",".","Calls","to","GetSymbol","(",")","and","GetMessages","(",")","will","return","messages","registered","here",".","Args",":","message",":","A",":","class",":","`","google.protobuf.message.Message","`","subclass","(","or","instance",")",";","its","descriptor","will","be","registered",".","Returns",":","The","provided","message","."]
code: def RegisterMessage(self, message):
      """Registers the given message type in the local database.
  
      Calls to GetSymbol() and GetMessages() will return messages registered here.
  
      Args:
        message: A :class:`google.protobuf.message.Message` subclass (or
          instance); its descriptor will be registered.
  
      Returns:
        The provided message.
      """
  
      desc = message.DESCRIPTOR
      self._classes[desc] = message
      self.RegisterMessageDescriptor(desc)
      return message
  
file_path: catboost/contrib/python/protobuf/py2/google/protobuf/symbol_database.py
imports: from google.protobuf.internal import api_implementation
  from google.protobuf import descriptor_pool
  from google.protobuf import message_factory
label_desc: Use image node_id 1 for calling the SymbolDatabase obj's underlying member method code with example usage: obj.RegisterMessage(message) and returns: message