private void initNodeStates() { if (this.states != null) { return; } GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder; List<NodeStateProto> list = p.getNodeStatesList(); this.states = EnumSet.noneOf(NodeState.class); for (NodeStateProto c : list) { this.states.add(ProtoUtils.convertFromProtoFormat(c)); } }