parameters: (message_descriptor, cls)
docstring: Constructs a new message instance (called before instance's __init__).
docstring_summary: Constructs a new message instance (called before instance's __init__).
docstring_tokens: Constructs a new message instance ( called before instance s __init__ ) .
function: def InitMessage(message_descriptor, cls):
    """Constructs a new message instance (called before instance's __init__)."""
    cls._extensions_by_name = {}
    _AddInitMethod(message_descriptor, cls)
    _AddMessageMethods(message_descriptor, cls)
    _AddPropertiesForExtensions(message_descriptor, cls)
    copy_reg.pickle(cls, lambda obj: (cls, (), obj.__getstate__()))
function_tokens: def InitMessage ( message_descriptor , cls ) : cls . _extensions_by_name = { } _AddInitMethod ( message_descriptor , cls ) _AddMessageMethods ( message_descriptor , cls ) _AddPropertiesForExtensions ( message_descriptor , cls ) copy_reg . pickle ( cls , lambda obj : ( cls , ( ) , obj . __getstate__ ( ) ) )