public static EndpointType fromId(byte id) {
        if (id == BROKER.id) {
            return BROKER;
        } else if (id == CONTROLLER.id) {
            return CONTROLLER;
        } else {
            return UNKNOWN;
        }
    }
Identifies the endpoint type, as specified by KIP-919.
clients/src/main/java/org/apache/kafka/clients/admin/EndpointType.java