public static List<LogEntry>
    getBalancerDecisionEntries(MasterProtos.BalancerDecisionsResponse response) {
    List<RecentLogs.BalancerDecision> balancerDecisions = response.getBalancerDecisionList();
    if (CollectionUtils.isEmpty(balancerDecisions)) {
      return Collections.emptyList();
    }
    return balancerDecisions.stream()
      .map(balancerDecision -> new BalancerDecision.Builder()
        .setInitTotalCost(balancerDecision.getInitTotalCost())
        .setInitialFunctionCosts(balancerDecision.getInitialFunctionCosts())
        .setComputedTotalCost(balancerDecision.getComputedTotalCost())
        .setFinalFunctionCosts(balancerDecision.getFinalFunctionCosts())
        .setComputedSteps(balancerDecision.getComputedSteps())
        .setRegionPlans(balancerDecision.getRegionPlansList()).build())
      .collect(Collectors.toList());
  }
Convert {@link ClearSlowLogResponses} to boolean
@param clearSlowLogResponses Clear slowlog response protobuf instance
@return boolean representing clear slowlog response
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java