(self, message)
return message
Registers the given message type in the local database.

    Calls to GetSymbol() and GetMessages() will return messages registered here.

    Args:
      message: a message.Message, to be registered.

    Returns:
      The provided message.
Registers the given message type in the local database.
Registers the given message type in the local database .
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 message.Message, to be registered.

    Returns:
      The provided message.
    """

    desc = message.DESCRIPTOR
    self._classes[desc.full_name] = message
    self.pool.AddDescriptor(desc)
    return message
def RegisterMessage ( self , message ) : desc = message . DESCRIPTOR self . _classes [ desc . full_name ] = message self . pool . AddDescriptor ( desc ) return message