@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ConsumerGroupListing)) return false;
        ConsumerGroupListing that = (ConsumerGroupListing) o;
        return isSimpleConsumerGroup() == that.isSimpleConsumerGroup() &&
            Objects.equals(groupId, that.groupId) &&
            Objects.equals(state, that.state) &&
            Objects.equals(type, that.type);
    }
The type of the consumer group.

@return An Optional containing the type, if available.
clients/src/main/java/org/apache/kafka/clients/admin/ConsumerGroupListing.java