public void setGroupEpoch(int groupEpoch) {
        this.groupEpoch.set(groupEpoch);
        maybeUpdateGroupState();
    }
Sets the group epoch.

@param groupEpoch The new group epoch.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/ModernGroup.java