final boolean hasValidMemberId() {
        return !hasUnknownGeneration() && generation.hasMemberId();
    }
@return true if the current generation's member ID is valid, false otherwise
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java