parameters: (type_name, descriptor_pool)
return_statement: return message_type()
docstring: Returns a protobuf message instance.
  
    Args:
      type_name: Fully-qualified protobuf  message type name string.
      descriptor_pool: DescriptorPool instance.
  
    Returns:
      A Message instance of type matching type_name, or None if the a Descriptor
      wasn't found matching type_name.
docstring_summary: Returns a protobuf message instance.
docstring_tokens: Returns a protobuf message instance .
function: def _BuildMessageFromTypeName(type_name, descriptor_pool):
    """Returns a protobuf message instance.
  
    Args:
      type_name: Fully-qualified protobuf  message type name string.
      descriptor_pool: DescriptorPool instance.
  
    Returns:
      A Message instance of type matching type_name, or None if the a Descriptor
      wasn't found matching type_name.
    """
    # pylint: disable=g-import-not-at-top
    if descriptor_pool is None:
      from google.protobuf import descriptor_pool as pool_mod
      descriptor_pool = pool_mod.Default()
    from google.protobuf import symbol_database
    database = symbol_database.Default()
    try:
      message_descriptor = descriptor_pool.FindMessageTypeByName(type_name)
    except KeyError:
      return None
    message_type = database.GetPrototype(message_descriptor)
    return message_type()
function_tokens: def _BuildMessageFromTypeName ( type_name , descriptor_pool ) : # pylint: disable=g-import-not-at-top if descriptor_pool is None : from google . protobuf import descriptor_pool as pool_mod descriptor_pool = pool_mod . Default ( ) from google . protobuf import symbol_database database = symbol_database . Default ( ) try : message_descriptor = descriptor_pool . FindMessageTypeByName ( type_name ) except KeyError : return None message_type = database . GetPrototype ( message_descriptor ) return message_type ( )