public List<Level> getLabels() {
        return levels.stream()
                .filter(Level::isLabel)
                .collect(Collectors.toList());
    }
Gets all of the label levels in the topic.

@return Returns the label levels.
smithy-mqtt-traits/src/main/java/software/amazon/smithy/mqtt/traits/Topic.java