public void setTargetAssignmentEpoch(int targetAssignmentEpoch) {
        this.targetAssignmentEpoch.set(targetAssignmentEpoch);
        maybeUpdateGroupState();
    }
Sets the assignment epoch.

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