public static UpgradeType fromCode(int code) {
            if (code == 1) {
                return UPGRADE;
            } else if (code == 2) {
                return SAFE_DOWNGRADE;
            } else if (code == 3) {
                return UNSAFE_DOWNGRADE;
            } else {
                return UNKNOWN;
            }
        }
Encapsulates details about an update to a finalized feature.
clients/src/main/java/org/apache/kafka/clients/admin/FeatureUpdate.java