private void initNodeLabels() { if (this.labels != null) { return; } GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder; this.labels = new HashSet<String>(); this.labels.addAll(p.getNodeLabelsList()); }
private void initLocalNodeLabels() { GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder; List<NodeLabelProto> attributesProtoList = p.getNodeLabelsList(); this.updatedNodeLabels = new ArrayList<NodeLabel>(); for (NodeLabelProto r : attributesProtoList) { this.updatedNodeLabels.add(convertFromProtoFormat(r)); } }