public void setSubscriptionMetadata(
        Map<String, TopicMetadata> subscriptionMetadata
    ) {
        this.subscribedTopicMetadata.clear();
        this.subscribedTopicMetadata.putAll(subscriptionMetadata);
    }
Updates the subscription metadata. This replaces the previous one.

@param subscriptionMetadata The new subscription metadata.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/ModernGroup.java