@classmethod
def match_topic_from_topic_name(cls, topic_name):
    """Parses the topic from a topic resource.

        Args:
          topic_name (string): A fully-qualified path representing a topic
            resource.

        Returns:
          A string representing the topic.
        """
    return cls._TOPIC_PATH_TEMPLATE.match(topic_name).get('topic')
