def handle(name):
    """
    Indicate that a method handles a specific message. Should be used to
    decorate a method of a class that handles protobuf messages.

    Args:
        name (str): The name of the message the function handles.
    """
    def decorator(f):
        f.message_name = name
        return f

    return decorator